@ixon-cdk/simulator 1.17.0-next.1 → 1.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import{require_jszip_min}from"./chunk-4R2H3OTM.js";import{quill_default}from"./chunk-6ET5GQYW.js";import{A11yModule,ACTIVE_RUNTIME_CHECKS,ANIMATION_MODULE_TYPE,APP_CONFIG,APP_INITIALIZER,AUTO_STYLE,Actions,ActionsSubject,ActivatedRoute,AnimationGroupPlayer,AnimationMetadataType,AnonymousSubject,ApplicationRef,AsyncPipe,BackendComponentCallerService,BackendComponentCallerServiceFactory,BackendComponentClient,BackendComponentClientProxyService,BehaviorSubject,BreakpointObserver,Breakpoints,BrowserModule,CdkDrag,CdkDragPlaceholder,CdkDragPreview,CdkDropList,CdkPortalOutlet,CdkTextareaAutosize,ChangeDetectorRef,CommonModule,ComponentFactoryResolver$1,ComponentPortal,ComponentTemplateValidatorService,DEFAULT_CARD_DIMENSIONS,DEFAULT_CBC_INGRESS_URL,DEFAULT_REPORT_DIMENSIONS,DEFAULT_SHEET_DIMENSIONS,DOCUMENT,DateAdapter,DefaultClassDirective,DefaultFlexDirective,DefaultLayoutAlignDirective,DefaultLayoutDirective,DefaultLayoutGapDirective,DefaultValueAccessor,DestroyRef,DomRendererFactory2,DomSanitizer,DragDropModule,EMPTY,EffectsModule,ElementRef,ErrorHandler,EventEmitter,FlexLayoutModule,FlexModule,FormArray,FormBuilder,FormControl,FormControlDirective,FormControlName,FormGroup,FormGroupDirective,FormGroupName,FormsModule,HTTP_INTERCEPTORS,HttpClient,HttpContext,HttpErrorResponse,HttpHeaders,HttpParams,HttpResponse,INIT,INITIAL_STATE,IXAPI_OPTIONS,InjectionToken,Injector,IxApi2RequestErrorMessages,IxApiErrorMessages,IxApiErrors,IxApiHeaderKeys,IxApiModule,IxApiRequestErrorMessages,IxApiRequestErrors,IxApiService,LayoutModule,Location,LowerCasePipe,MAT_BOTTOM_SHEET_DATA,MAT_DATE_FORMATS,MAT_DATE_LOCALE,MAT_DIALOG_DATA,MatActionList,MatBottomSheet,MatBottomSheetRef,MatButton,MatButtonModule,MatCard,MatCardActions,MatCardHeader,MatCardModule,MatCardSubtitle,MatCardTitle,MatCheckbox,MatCheckboxModule,MatDatepicker,MatDatepickerInput,MatDatepickerToggle,MatDialog,MatDialogActions,MatDialogClose,MatDialogContainer,MatDialogContent,MatDialogModule,MatDialogRef,MatDialogTitle,MatDivider,MatDividerModule,MatDrawer,MatDrawerContainer,MatDrawerContent,MatError,MatExpansionPanel,MatFormField,MatFormFieldModule,MatHint,MatIcon,MatIconAnchor,MatIconButton,MatIconModule,MatIconRegistry,MatInput,MatInputModule,MatLabel,MatList,MatListItem,MatListItemIcon,MatListItemLine,MatListItemMeta,MatListItemTitle,MatListModule,MatListOption,MatListSubheaderCssMatStyler,MatMenu,MatMenuItem,MatMenuModule,MatMenuTrigger,MatOptgroup,MatOption,MatPaginatorModule,MatPrefix,MatProgressSpinner,MatProgressSpinnerModule,MatSelect,MatSelectModule,MatSelectTrigger,MatSelectionList,MatSidenavModule,MatSnackBar,MatSnackBarModule,MatSuffix,MatTab,MatTabGroup,MatTabsModule,MatToolbar,MatToolbarModule,MatTooltip,MatTooltipModule,MediaObserver,Meta,MinValidator,NG_VALIDATORS,NG_VALUE_ACCESSOR,NavigationCancel,NavigationEnd,NavigationError,NavigationStart,NgClass,NgControl,NgControlStatus,NgControlStatusGroup,NgForOf,NgIf,NgModel,NgSelectOption,NgStyle,NgTemplateOutlet,NgZone,NoopAnimationPlayer,NumberValueAccessor,ONE_WEEK,OTP_SMS_REQUIRED_PATTERN,Observable,Overlay,OverlayConfig,PAGE_COMPONENT,PLATFORM_ID,PageComponentTemplateManifestModule,PageComponentTemplateModule,PageComponentTemplateService,Platform,PortalInjector,PortalModule,REQUIRES_BRANDING,REQUIRES_COMPANY,ReactiveFormsModule,ReducerManagerDispatcher,ReducerObservable,Renderer2,RendererFactory2,ReplaySubject,RequiredValidator,ResourceDataClient,ResourceDataClientProxyService,ResourceDataServiceFactory,Router,RouterLink,RouterModule,RouterOutlet,RoutesRecognized,RuntimeError,SESSION_STORAGE,STORAGE_KEY_CBC_CONFIG_VALUES,STORAGE_KEY_CBC_INGRESS,STORAGE_KEY_CBC_INGRESS_URL,STORAGE_KEY_CBC_PUBLIC_ID,ScannedActionsSubject,SecurityContext,SelectControlValueAccessor,SettingsModule,SharedModule,StateObservable,StorageEventContext,StorageModule,StorageService,Store,StoreModule,Subject,Subscriber,Subscription,TemplateRef,Title,TitleCasePipe,TranslateDirective,TranslateLoader,TranslateModule,TranslatePipe,TranslateService,UPDATE,USER_PROVIDED_EFFECTS,Validators,ViewContainerRef,ViewportRuler,WINDOW,add,addFailure,addSuccess,appConfigFactory,booleanAttribute,buffer,buildFields,catchError,combineLatest,compactFields,computed,concatMap,createAction,createEffect,createEntityAdapter,createFeature,createFeatureSelector,createReducer,createResourceAdapter,createResourceSelectorFactory,createSelector,debounceTime,decryptValue,defaultOptions,defer,delay,delayWhen,didAdd,didAddList,didRemove,didRemoveList,didUpdate,didUpdateList,distinctUntilChanged,effect,ensureAll,ensureMany,ensureOne,environment,filter,first,firstValueFrom,forkJoin,forwardRef,from,fromEvent,getLinkMap,getLinkUrl,getMissingFields,getPageParams,hasFields,hasNonPublicIdFields,haveFields,inject,input,isDevMode,isNgrxMockEnvironment,isObservable,isPlatformBrowser,isPlatformServer,last,lastValueFrom,loadAllForIntentSuccess,loadAllSuccess,loadAppConfig,loadHost,loadHostFailure,loadHostSuccess,loadManySuccess,makeEnvironmentProviders,map,mapPageComponentTemplateManifestToDefaultInputs,mapPageComponentTemplateToCustomElementName,mapPageComponentTemplateToTemplateBaseUrl,mapPageComponentTemplateToTemplateUrl,mapResourceToSubResourceList,mapTemplateUrlToMainPath,mapTemplateUrlToManifestUrl,mapTemplateUrlToPublicId,merge,mergeFields,mergeLoadedFields,mergeMap,moveItemInArray,mustache_default,observeOn,of,ofStatus,ofType,omitLoadedFields,omitSubresources,on,output,pairwise,parseBody,platformBrowser,props,provideEnvironmentInitializer,provideHttpClient,queueScheduler,remove,removeFailure,removeSuccess,require_crypto_js,reset,reset2,reset3,resetPendingUpdates,retryBackoff,scan,select,selectAll,selectEntities,selectEntities2,selectEntity,selectEntity2,sequence,share,shareReplay,signal,skip,sortByNameAndPublicIdComparer,startWith,style,switchMap,take,takeUntil,takeUntilDestroyed,tap,throwError,throwNotFoundError,timeout,timer,toObservable,toSignal,update,updateFailure,updateMany,updateManyFailure,updateManySuccess,updateResource,updateSuccess,validateOptions,viewChild,whileMoreAfter,withInterceptorsFromDi,withLatestFrom,ɵNgNoValidate,ɵNgSelectMultipleOption,ɵPRE_STYLE,ɵɵInheritDefinitionFeature,ɵɵNgOnChangesFeature,ɵɵProvidersFeature,ɵɵadvance,ɵɵattribute,ɵɵclassMap,ɵɵclassMapInterpolate1,ɵɵclassProp,ɵɵconditional,ɵɵcontentQuery,ɵɵdeclareLet,ɵɵdefineComponent,ɵɵdefineDirective,ɵɵdefineInjectable,ɵɵdefineInjector,ɵɵdefineNgModule,ɵɵdefinePipe,ɵɵdirectiveInject,ɵɵelement,ɵɵelementContainer,ɵɵelementContainerEnd,ɵɵelementContainerStart,ɵɵelementEnd,ɵɵelementStart,ɵɵgetCurrentView,ɵɵgetInheritedFactory,ɵɵinject,ɵɵlistener,ɵɵloadQuery,ɵɵnamespaceSVG,ɵɵnextContext,ɵɵpipe,ɵɵpipeBind1,ɵɵpipeBind2,ɵɵpipeBind3,ɵɵprojection,ɵɵprojectionDef,ɵɵproperty,ɵɵpropertyInterpolate,ɵɵpureFunction0,ɵɵpureFunction1,ɵɵpureFunction2,ɵɵpureFunction7,ɵɵqueryAdvance,ɵɵqueryRefresh,ɵɵreadContextLet,ɵɵreference,ɵɵrepeater,ɵɵrepeaterCreate,ɵɵrepeaterTrackByIdentity,ɵɵrepeaterTrackByIndex,ɵɵresetView,ɵɵresolveDocument,ɵɵrestoreView,ɵɵsanitizeHtml,ɵɵsanitizeUrl,ɵɵstoreLet,ɵɵstyleMap,ɵɵstyleProp,ɵɵtemplate,ɵɵtemplateRefExtractor,ɵɵtext,ɵɵtextInterpolate,ɵɵtextInterpolate1,ɵɵtextInterpolate2,ɵɵtextInterpolate3,ɵɵtwoWayBindingSet,ɵɵtwoWayListener,ɵɵtwoWayProperty,ɵɵviewQuery,ɵɵviewQuerySignal}from"./chunk-U33TTIC7.js";import"./chunk-H2MDWMMO.js";import{camelCase_default,capitalize_default,cloneDeep_default,compact_default,deburr_default,escape_default,flatMap_default,flatten_default,get_default,groupBy_default,has_default,isArray_default,isEmpty_default,isEqual_default,isNil_default,isObject_default,isString_default,isUndefined_default,kebabCase_default,memoize_default,merge_default,omitBy_default,omit_default,orderBy_default,pick_default,range_default,set_default,snakeCase_default,sortBy_default,startCase_default,template_default,uniqBy_default,uniq_default,upperFirst_default}from"./chunk-B66ZPH3R.js";import{__async,__commonJS,__esm,__export,__objRest,__require,__spreadProps,__spreadValues,__superGet,__toCommonJS,__toESM,__yieldStar}from"./chunk-IHZVASS3.js";var require_FileSaver_min=__commonJS({"node_modules/file-saver/dist/FileSaver.min.js"(exports,module){(function(a,b){typeof define=="function"&&define.amd?define([],b):typeof exports<"u"?b():(b(),a.FileSaver={})})(exports,function(){"use strict";function b(a2,b2){return typeof b2>"u"?b2={autoBom:!1}:typeof b2!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),b2={autoBom:!b2}),b2.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(a2.type)?new Blob(["\uFEFF",a2],{type:a2.type}):a2}function c(a2,b2,c2){var d2=new XMLHttpRequest;d2.open("GET",a2),d2.responseType="blob",d2.onload=function(){g(d2.response,b2,c2)},d2.onerror=function(){console.error("could not download file")},d2.send()}function d(a2){var b2=new XMLHttpRequest;b2.open("HEAD",a2,!1);try{b2.send()}catch{}return 200<=b2.status&&299>=b2.status}function e(a2){try{a2.dispatchEvent(new MouseEvent("click"))}catch{var b2=document.createEvent("MouseEvents");b2.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),a2.dispatchEvent(b2)}}var f=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof global=="object"&&global.global===global?global:void 0,a=f.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),g=f.saveAs||(typeof window!="object"||window!==f?function(){}:"download"in HTMLAnchorElement.prototype&&!a?function(b2,g2,h){var i=f.URL||f.webkitURL,j=document.createElement("a");g2=g2||b2.name||"download",j.download=g2,j.rel="noopener",typeof b2=="string"?(j.href=b2,j.origin===location.origin?e(j):d(j.href)?c(b2,g2,h):e(j,j.target="_blank")):(j.href=i.createObjectURL(b2),setTimeout(function(){i.revokeObjectURL(j.href)},4e4),setTimeout(function(){e(j)},0))}:"msSaveOrOpenBlob"in navigator?function(f2,g2,h){if(g2=g2||f2.name||"download",typeof f2!="string")navigator.msSaveOrOpenBlob(b(f2,h),g2);else if(d(f2))c(f2,g2,h);else{var i=document.createElement("a");i.href=f2,i.target="_blank",setTimeout(function(){e(i)})}}:function(b2,d2,e2,g2){if(g2=g2||open("","_blank"),g2&&(g2.document.title=g2.document.body.innerText="downloading..."),typeof b2=="string")return c(b2,d2,e2);var h=b2.type==="application/octet-stream",i=/constructor/i.test(f.HTMLElement)||f.safari,j=/CriOS\/[\d]+/.test(navigator.userAgent);if((j||h&&i||a)&&typeof FileReader<"u"){var k=new FileReader;k.onloadend=function(){var a2=k.result;a2=j?a2:a2.replace(/^data:[^;]*;/,"data:attachment/file;"),g2?g2.location.href=a2:location=a2,g2=null},k.readAsDataURL(b2)}else{var l2=f.URL||f.webkitURL,m=l2.createObjectURL(b2);g2?g2.location=m:location.href=m,g2=null,setTimeout(function(){l2.revokeObjectURL(m)},4e4)}});f.saveAs=g.saveAs=g,typeof module<"u"&&(module.exports=g)})}});var require_ua_parser=__commonJS({"node_modules/ua-parser-js/src/ua-parser.js"(exports,module){(function(window2,undefined2){"use strict";var LIBVERSION="1.0.37",EMPTY2="",UNKNOWN="?",FUNC_TYPE="function",UNDEF_TYPE="undefined",OBJ_TYPE="object",STR_TYPE="string",MAJOR="major",MODEL="model",NAME="name",TYPE="type",VENDOR="vendor",VERSION2="version",ARCHITECTURE="architecture",CONSOLE="console",MOBILE="mobile",TABLET="tablet",SMARTTV="smarttv",WEARABLE="wearable",EMBEDDED="embedded",UA_MAX_LENGTH=500,AMAZON="Amazon",APPLE="Apple",ASUS="ASUS",BLACKBERRY="BlackBerry",BROWSER="Browser",CHROME="Chrome",EDGE="Edge",FIREFOX="Firefox",GOOGLE="Google",HUAWEI="Huawei",LG="LG",MICROSOFT="Microsoft",MOTOROLA="Motorola",OPERA="Opera",SAMSUNG="Samsung",SHARP="Sharp",SONY="Sony",XIAOMI="Xiaomi",ZEBRA="Zebra",FACEBOOK="Facebook",CHROMIUM_OS="Chromium OS",MAC_OS="Mac OS",extend3=function(regexes2,extensions){var mergedRegexes={};for(var i in regexes2)extensions[i]&&extensions[i].length%2===0?mergedRegexes[i]=extensions[i].concat(regexes2[i]):mergedRegexes[i]=regexes2[i];return mergedRegexes},enumerize=function(arr){for(var enums={},i=0;i<arr.length;i++)enums[arr[i].toUpperCase()]=arr[i];return enums},has=function(str1,str2){return typeof str1===STR_TYPE?lowerize(str2).indexOf(lowerize(str1))!==-1:!1},lowerize=function(str){return str.toLowerCase()},majorize=function(version2){return typeof version2===STR_TYPE?version2.replace(/[^\d\.]/g,EMPTY2).split(".")[0]:undefined2},trim=function(str,len){if(typeof str===STR_TYPE)return str=str.replace(/^\s\s*/,EMPTY2),typeof len===UNDEF_TYPE?str:str.substring(0,UA_MAX_LENGTH)},rgxMapper=function(ua,arrays){for(var i=0,j,k,p,q,matches,match2;i<arrays.length&&!matches;){var regex=arrays[i],props2=arrays[i+1];for(j=k=0;j<regex.length&&!matches&&regex[j];)if(matches=regex[j++].exec(ua),matches)for(p=0;p<props2.length;p++)match2=matches[++k],q=props2[p],typeof q===OBJ_TYPE&&q.length>0?q.length===2?typeof q[1]==FUNC_TYPE?this[q[0]]=q[1].call(this,match2):this[q[0]]=q[1]:q.length===3?typeof q[1]===FUNC_TYPE&&!(q[1].exec&&q[1].test)?this[q[0]]=match2?q[1].call(this,match2,q[2]):undefined2:this[q[0]]=match2?match2.replace(q[1],q[2]):undefined2:q.length===4&&(this[q[0]]=match2?q[3].call(this,match2.replace(q[1],q[2])):undefined2):this[q]=match2||undefined2;i+=2}},strMapper=function(str,map4){for(var i in map4)if(typeof map4[i]===OBJ_TYPE&&map4[i].length>0){for(var j=0;j<map4[i].length;j++)if(has(map4[i][j],str))return i===UNKNOWN?undefined2:i}else if(has(map4[i],str))return i===UNKNOWN?undefined2:i;return str},oldSafariMap={"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},windowsVersionMap={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"},regexes={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[VERSION2,[NAME,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[VERSION2,[NAME,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[NAME,VERSION2],[/opios[\/ ]+([\w\.]+)/i],[VERSION2,[NAME,OPERA+" Mini"]],[/\bopr\/([\w\.]+)/i],[VERSION2,[NAME,OPERA]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[VERSION2,[NAME,"Baidu"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[NAME,VERSION2],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[VERSION2,[NAME,"UC"+BROWSER]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[VERSION2,[NAME,"WeChat"]],[/konqueror\/([\w\.]+)/i],[VERSION2,[NAME,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[VERSION2,[NAME,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[VERSION2,[NAME,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[VERSION2,[NAME,"Smart Lenovo "+BROWSER]],[/(avast|avg)\/([\w\.]+)/i],[[NAME,/(.+)/,"$1 Secure "+BROWSER],VERSION2],[/\bfocus\/([\w\.]+)/i],[VERSION2,[NAME,FIREFOX+" Focus"]],[/\bopt\/([\w\.]+)/i],[VERSION2,[NAME,OPERA+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[VERSION2,[NAME,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[VERSION2,[NAME,"Dolphin"]],[/coast\/([\w\.]+)/i],[VERSION2,[NAME,OPERA+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[VERSION2,[NAME,"MIUI "+BROWSER]],[/fxios\/([-\w\.]+)/i],[VERSION2,[NAME,FIREFOX]],[/\bqihu|(qi?ho?o?|360)browser/i],[[NAME,"360 "+BROWSER]],[/(oculus|sailfish|huawei|vivo)browser\/([\w\.]+)/i],[[NAME,/(.+)/,"$1 "+BROWSER],VERSION2],[/samsungbrowser\/([\w\.]+)/i],[VERSION2,[NAME,SAMSUNG+" Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[NAME,/_/g," "],VERSION2],[/metasr[\/ ]?([\d\.]+)/i],[VERSION2,[NAME,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[NAME,"Sogou Mobile"],VERSION2],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[NAME,VERSION2],[/(lbbrowser)/i,/\[(linkedin)app\]/i],[NAME],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[NAME,FACEBOOK],VERSION2],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[NAME,VERSION2],[/\bgsa\/([\w\.]+) .*safari\//i],[VERSION2,[NAME,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[VERSION2,[NAME,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[VERSION2,[NAME,CHROME+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[NAME,CHROME+" WebView"],VERSION2],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[VERSION2,[NAME,"Android "+BROWSER]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[NAME,VERSION2],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[VERSION2,[NAME,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[VERSION2,NAME],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[NAME,[VERSION2,strMapper,oldSafariMap]],[/(webkit|khtml)\/([\w\.]+)/i],[NAME,VERSION2],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[NAME,"Netscape"],VERSION2],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[VERSION2,[NAME,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,/panasonic;(viera)/i],[NAME,VERSION2],[/(cobalt)\/([\w\.]+)/i],[NAME,[VERSION2,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[ARCHITECTURE,"amd64"]],[/(ia32(?=;))/i],[[ARCHITECTURE,lowerize]],[/((?:i[346]|x)86)[;\)]/i],[[ARCHITECTURE,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[ARCHITECTURE,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[ARCHITECTURE,"armhf"]],[/windows (ce|mobile); ppc;/i],[[ARCHITECTURE,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[ARCHITECTURE,/ower/,EMPTY2,lowerize]],[/(sun4\w)[;\)]/i],[[ARCHITECTURE,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[ARCHITECTURE,lowerize]]],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],[MODEL,[VENDOR,SAMSUNG],[TYPE,TABLET]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[MODEL,[VENDOR,SAMSUNG],[TYPE,MOBILE]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[MODEL,[VENDOR,APPLE],[TYPE,MOBILE]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[MODEL,[VENDOR,APPLE],[TYPE,TABLET]],[/(macintosh);/i],[MODEL,[VENDOR,APPLE]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[MODEL,[VENDOR,SHARP],[TYPE,MOBILE]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[MODEL,[VENDOR,HUAWEI],[TYPE,TABLET]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[MODEL,[VENDOR,HUAWEI],[TYPE,MOBILE]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[MODEL,/_/g," "],[VENDOR,XIAOMI],[TYPE,MOBILE]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[MODEL,/_/g," "],[VENDOR,XIAOMI],[TYPE,TABLET]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[MODEL,[VENDOR,"OPPO"],[TYPE,MOBILE]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[MODEL,[VENDOR,"Vivo"],[TYPE,MOBILE]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[MODEL,[VENDOR,"Realme"],[TYPE,MOBILE]],[/\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],[MODEL,[VENDOR,MOTOROLA],[TYPE,MOBILE]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[MODEL,[VENDOR,MOTOROLA],[TYPE,TABLET]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[MODEL,[VENDOR,LG],[TYPE,TABLET]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[MODEL,[VENDOR,LG],[TYPE,MOBILE]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[MODEL,[VENDOR,"Lenovo"],[TYPE,TABLET]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[MODEL,/_/g," "],[VENDOR,"Nokia"],[TYPE,MOBILE]],[/(pixel c)\b/i],[MODEL,[VENDOR,GOOGLE],[TYPE,TABLET]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[MODEL,[VENDOR,GOOGLE],[TYPE,MOBILE]],[/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],[MODEL,[VENDOR,SONY],[TYPE,MOBILE]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[MODEL,"Xperia Tablet"],[VENDOR,SONY],[TYPE,TABLET]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[MODEL,[VENDOR,"OnePlus"],[TYPE,MOBILE]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[MODEL,[VENDOR,AMAZON],[TYPE,TABLET]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[MODEL,/(.+)/g,"Fire Phone $1"],[VENDOR,AMAZON],[TYPE,MOBILE]],[/(playbook);[-\w\),; ]+(rim)/i],[MODEL,VENDOR,[TYPE,TABLET]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[MODEL,[VENDOR,BLACKBERRY],[TYPE,MOBILE]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[MODEL,[VENDOR,ASUS],[TYPE,TABLET]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[MODEL,[VENDOR,ASUS],[TYPE,MOBILE]],[/(nexus 9)/i],[MODEL,[VENDOR,"HTC"],[TYPE,TABLET]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[VENDOR,[MODEL,/_/g," "],[TYPE,MOBILE]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[MODEL,[VENDOR,"Acer"],[TYPE,TABLET]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[MODEL,[VENDOR,"Meizu"],[TYPE,MOBILE]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[MODEL,[VENDOR,"Ulefone"],[TYPE,MOBILE]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[VENDOR,MODEL,[TYPE,MOBILE]],[/(kobo)\s(ereader|touch)/i,/(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],[VENDOR,MODEL,[TYPE,TABLET]],[/(surface duo)/i],[MODEL,[VENDOR,MICROSOFT],[TYPE,TABLET]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[MODEL,[VENDOR,"Fairphone"],[TYPE,MOBILE]],[/(u304aa)/i],[MODEL,[VENDOR,"AT&T"],[TYPE,MOBILE]],[/\bsie-(\w*)/i],[MODEL,[VENDOR,"Siemens"],[TYPE,MOBILE]],[/\b(rct\w+) b/i],[MODEL,[VENDOR,"RCA"],[TYPE,TABLET]],[/\b(venue[\d ]{2,7}) b/i],[MODEL,[VENDOR,"Dell"],[TYPE,TABLET]],[/\b(q(?:mv|ta)\w+) b/i],[MODEL,[VENDOR,"Verizon"],[TYPE,TABLET]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[MODEL,[VENDOR,"Barnes & Noble"],[TYPE,TABLET]],[/\b(tm\d{3}\w+) b/i],[MODEL,[VENDOR,"NuVision"],[TYPE,TABLET]],[/\b(k88) b/i],[MODEL,[VENDOR,"ZTE"],[TYPE,TABLET]],[/\b(nx\d{3}j) b/i],[MODEL,[VENDOR,"ZTE"],[TYPE,MOBILE]],[/\b(gen\d{3}) b.+49h/i],[MODEL,[VENDOR,"Swiss"],[TYPE,MOBILE]],[/\b(zur\d{3}) b/i],[MODEL,[VENDOR,"Swiss"],[TYPE,TABLET]],[/\b((zeki)?tb.*\b) b/i],[MODEL,[VENDOR,"Zeki"],[TYPE,TABLET]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[VENDOR,"Dragon Touch"],MODEL,[TYPE,TABLET]],[/\b(ns-?\w{0,9}) b/i],[MODEL,[VENDOR,"Insignia"],[TYPE,TABLET]],[/\b((nxa|next)-?\w{0,9}) b/i],[MODEL,[VENDOR,"NextBook"],[TYPE,TABLET]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[VENDOR,"Voice"],MODEL,[TYPE,MOBILE]],[/\b(lvtel\-)?(v1[12]) b/i],[[VENDOR,"LvTel"],MODEL,[TYPE,MOBILE]],[/\b(ph-1) /i],[MODEL,[VENDOR,"Essential"],[TYPE,MOBILE]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[MODEL,[VENDOR,"Envizen"],[TYPE,TABLET]],[/\b(trio[-\w\. ]+) b/i],[MODEL,[VENDOR,"MachSpeed"],[TYPE,TABLET]],[/\btu_(1491) b/i],[MODEL,[VENDOR,"Rotor"],[TYPE,TABLET]],[/(shield[\w ]+) b/i],[MODEL,[VENDOR,"Nvidia"],[TYPE,TABLET]],[/(sprint) (\w+)/i],[VENDOR,MODEL,[TYPE,MOBILE]],[/(kin\.[onetw]{3})/i],[[MODEL,/\./g," "],[VENDOR,MICROSOFT],[TYPE,MOBILE]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[MODEL,[VENDOR,ZEBRA],[TYPE,TABLET]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[MODEL,[VENDOR,ZEBRA],[TYPE,MOBILE]],[/smart-tv.+(samsung)/i],[VENDOR,[TYPE,SMARTTV]],[/hbbtv.+maple;(\d+)/i],[[MODEL,/^/,"SmartTV"],[VENDOR,SAMSUNG],[TYPE,SMARTTV]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[VENDOR,LG],[TYPE,SMARTTV]],[/(apple) ?tv/i],[VENDOR,[MODEL,APPLE+" TV"],[TYPE,SMARTTV]],[/crkey/i],[[MODEL,CHROME+"cast"],[VENDOR,GOOGLE],[TYPE,SMARTTV]],[/droid.+aft(\w+)( bui|\))/i],[MODEL,[VENDOR,AMAZON],[TYPE,SMARTTV]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[MODEL,[VENDOR,SHARP],[TYPE,SMARTTV]],[/(bravia[\w ]+)( bui|\))/i],[MODEL,[VENDOR,SONY],[TYPE,SMARTTV]],[/(mitv-\w{5}) bui/i],[MODEL,[VENDOR,XIAOMI],[TYPE,SMARTTV]],[/Hbbtv.*(technisat) (.*);/i],[VENDOR,MODEL,[TYPE,SMARTTV]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[VENDOR,trim],[MODEL,trim],[TYPE,SMARTTV]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[TYPE,SMARTTV]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[VENDOR,MODEL,[TYPE,CONSOLE]],[/droid.+; (shield) bui/i],[MODEL,[VENDOR,"Nvidia"],[TYPE,CONSOLE]],[/(playstation [345portablevi]+)/i],[MODEL,[VENDOR,SONY],[TYPE,CONSOLE]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[MODEL,[VENDOR,MICROSOFT],[TYPE,CONSOLE]],[/((pebble))app/i],[VENDOR,MODEL,[TYPE,WEARABLE]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[MODEL,[VENDOR,APPLE],[TYPE,WEARABLE]],[/droid.+; (glass) \d/i],[MODEL,[VENDOR,GOOGLE],[TYPE,WEARABLE]],[/droid.+; (wt63?0{2,3})\)/i],[MODEL,[VENDOR,ZEBRA],[TYPE,WEARABLE]],[/(quest( 2| pro)?)/i],[MODEL,[VENDOR,FACEBOOK],[TYPE,WEARABLE]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[VENDOR,[TYPE,EMBEDDED]],[/(aeobc)\b/i],[MODEL,[VENDOR,AMAZON],[TYPE,EMBEDDED]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[MODEL,[TYPE,MOBILE]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[MODEL,[TYPE,TABLET]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[TYPE,TABLET]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[TYPE,MOBILE]],[/(android[-\w\. ]{0,9});.+buil/i],[MODEL,[VENDOR,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[VERSION2,[NAME,EDGE+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[VERSION2,[NAME,"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,/\b(libweb)/i],[NAME,VERSION2],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[VERSION2,NAME]],os:[[/microsoft (windows) (vista|xp)/i],[NAME,VERSION2],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[NAME,[VERSION2,strMapper,windowsVersionMap]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[VERSION2,strMapper,windowsVersionMap],[NAME,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[VERSION2,/_/g,"."],[NAME,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[NAME,MAC_OS],[VERSION2,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[VERSION2,NAME],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[NAME,VERSION2],[/\(bb(10);/i],[VERSION2,[NAME,BLACKBERRY]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[VERSION2,[NAME,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[VERSION2,[NAME,FIREFOX+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[VERSION2,[NAME,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[VERSION2,[NAME,"watchOS"]],[/crkey\/([\d\.]+)/i],[VERSION2,[NAME,CHROME+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[NAME,CHROMIUM_OS],VERSION2],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(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],[NAME,VERSION2],[/(sunos) ?([\w\.\d]*)/i],[[NAME,"Solaris"],VERSION2],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[NAME,VERSION2]]},UAParser2=function(ua,extensions){if(typeof ua===OBJ_TYPE&&(extensions=ua,ua=undefined2),!(this instanceof UAParser2))return new UAParser2(ua,extensions).getResult();var _navigator=typeof window2!==UNDEF_TYPE&&window2.navigator?window2.navigator:undefined2,_ua=ua||(_navigator&&_navigator.userAgent?_navigator.userAgent:EMPTY2),_uach=_navigator&&_navigator.userAgentData?_navigator.userAgentData:undefined2,_rgxmap=extensions?extend3(regexes,extensions):regexes,_isSelfNav=_navigator&&_navigator.userAgent==_ua;return this.getBrowser=function(){var _browser={};return _browser[NAME]=undefined2,_browser[VERSION2]=undefined2,rgxMapper.call(_browser,_ua,_rgxmap.browser),_browser[MAJOR]=majorize(_browser[VERSION2]),_isSelfNav&&_navigator&&_navigator.brave&&typeof _navigator.brave.isBrave==FUNC_TYPE&&(_browser[NAME]="Brave"),_browser},this.getCPU=function(){var _cpu={};return _cpu[ARCHITECTURE]=undefined2,rgxMapper.call(_cpu,_ua,_rgxmap.cpu),_cpu},this.getDevice=function(){var _device={};return _device[VENDOR]=undefined2,_device[MODEL]=undefined2,_device[TYPE]=undefined2,rgxMapper.call(_device,_ua,_rgxmap.device),_isSelfNav&&!_device[TYPE]&&_uach&&_uach.mobile&&(_device[TYPE]=MOBILE),_isSelfNav&&_device[MODEL]=="Macintosh"&&_navigator&&typeof _navigator.standalone!==UNDEF_TYPE&&_navigator.maxTouchPoints&&_navigator.maxTouchPoints>2&&(_device[MODEL]="iPad",_device[TYPE]=TABLET),_device},this.getEngine=function(){var _engine={};return _engine[NAME]=undefined2,_engine[VERSION2]=undefined2,rgxMapper.call(_engine,_ua,_rgxmap.engine),_engine},this.getOS=function(){var _os={};return _os[NAME]=undefined2,_os[VERSION2]=undefined2,rgxMapper.call(_os,_ua,_rgxmap.os),_isSelfNav&&!_os[NAME]&&_uach&&_uach.platform!="Unknown"&&(_os[NAME]=_uach.platform.replace(/chrome os/i,CHROMIUM_OS).replace(/macos/i,MAC_OS)),_os},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 _ua},this.setUA=function(ua2){return _ua=typeof ua2===STR_TYPE&&ua2.length>UA_MAX_LENGTH?trim(ua2,UA_MAX_LENGTH):ua2,this},this.setUA(_ua),this};UAParser2.VERSION=LIBVERSION,UAParser2.BROWSER=enumerize([NAME,VERSION2,MAJOR]),UAParser2.CPU=enumerize([ARCHITECTURE]),UAParser2.DEVICE=enumerize([MODEL,VENDOR,TYPE,CONSOLE,MOBILE,SMARTTV,TABLET,WEARABLE,EMBEDDED]),UAParser2.ENGINE=UAParser2.OS=enumerize([NAME,VERSION2]),typeof exports!==UNDEF_TYPE?(typeof module!==UNDEF_TYPE&&module.exports&&(exports=module.exports=UAParser2),exports.UAParser=UAParser2):typeof define===FUNC_TYPE&&define.amd?define(function(){return UAParser2}):typeof window2!==UNDEF_TYPE&&(window2.UAParser=UAParser2);var $=typeof window2!==UNDEF_TYPE&&(window2.jQuery||window2.Zepto);if($&&!$.ua){var parser=new UAParser2;$.ua=parser.getResult(),$.ua.get=function(){return parser.getUA()},$.ua.set=function(ua){parser.setUA(ua);var result=parser.getResult();for(var prop in result)$.ua[prop]=result[prop]}}})(typeof window=="object"?window:exports)}});var require_dayjs_min=__commonJS({"node_modules/dayjs/dayjs.min.js"(exports,module){(function(t,e){typeof exports=="object"&&typeof module<"u"?module.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs=e()})(exports,function(){"use strict";var t=1e3,e=6e4,n2=36e5,r="millisecond",i="second",s2="minute",u="hour",a="day",o="week",c="month",f="quarter",h="year",d="date",l2="Invalid Date",$=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t2){var e2=["th","st","nd","rd"],n3=t2%100;return"["+t2+(e2[(n3-20)%10]||e2[n3]||e2[0])+"]"}},m=function(t2,e2,n3){var r2=String(t2);return!r2||r2.length>=e2?t2:""+Array(e2+1-r2.length).join(n3)+t2},v={s:m,z:function(t2){var e2=-t2.utcOffset(),n3=Math.abs(e2),r2=Math.floor(n3/60),i2=n3%60;return(e2<=0?"+":"-")+m(r2,2,"0")+":"+m(i2,2,"0")},m:function t2(e2,n3){if(e2.date()<n3.date())return-t2(n3,e2);var r2=12*(n3.year()-e2.year())+(n3.month()-e2.month()),i2=e2.clone().add(r2,c),s3=n3-i2<0,u2=e2.clone().add(r2+(s3?-1:1),c);return+(-(r2+(n3-i2)/(s3?i2-u2:u2-i2))||0)},a:function(t2){return t2<0?Math.ceil(t2)||0:Math.floor(t2)},p:function(t2){return{M:c,y:h,w:o,d:a,D:d,h:u,m:s2,s:i,ms:r,Q:f}[t2]||String(t2||"").toLowerCase().replace(/s$/,"")},u:function(t2){return t2===void 0}},g="en",D={};D[g]=M;var p="$isDayjsObject",S=function(t2){return t2 instanceof _||!(!t2||!t2[p])},w=function t2(e2,n3,r2){var i2;if(!e2)return g;if(typeof e2=="string"){var s3=e2.toLowerCase();D[s3]&&(i2=s3),n3&&(D[s3]=n3,i2=s3);var u2=e2.split("-");if(!i2&&u2.length>1)return t2(u2[0])}else{var a2=e2.name;D[a2]=e2,i2=a2}return!r2&&i2&&(g=i2),i2||!r2&&g},O=function(t2,e2){if(S(t2))return t2.clone();var n3=typeof e2=="object"?e2:{};return n3.date=t2,n3.args=arguments,new _(n3)},b=v;b.l=w,b.i=S,b.w=function(t2,e2){return O(t2,{locale:e2.$L,utc:e2.$u,x:e2.$x,$offset:e2.$offset})};var _=function(){function M2(t2){this.$L=w(t2.locale,null,!0),this.parse(t2),this.$x=this.$x||t2.x||{},this[p]=!0}var m2=M2.prototype;return m2.parse=function(t2){this.$d=function(t3){var e2=t3.date,n3=t3.utc;if(e2===null)return new Date(NaN);if(b.u(e2))return new Date;if(e2 instanceof Date)return new Date(e2);if(typeof e2=="string"&&!/Z$/i.test(e2)){var r2=e2.match($);if(r2){var i2=r2[2]-1||0,s3=(r2[7]||"0").substring(0,3);return n3?new Date(Date.UTC(r2[1],i2,r2[3]||1,r2[4]||0,r2[5]||0,r2[6]||0,s3)):new Date(r2[1],i2,r2[3]||1,r2[4]||0,r2[5]||0,r2[6]||0,s3)}}return new Date(e2)}(t2),this.init()},m2.init=function(){var t2=this.$d;this.$y=t2.getFullYear(),this.$M=t2.getMonth(),this.$D=t2.getDate(),this.$W=t2.getDay(),this.$H=t2.getHours(),this.$m=t2.getMinutes(),this.$s=t2.getSeconds(),this.$ms=t2.getMilliseconds()},m2.$utils=function(){return b},m2.isValid=function(){return this.$d.toString()!==l2},m2.isSame=function(t2,e2){var n3=O(t2);return this.startOf(e2)<=n3&&n3<=this.endOf(e2)},m2.isAfter=function(t2,e2){return O(t2)<this.startOf(e2)},m2.isBefore=function(t2,e2){return this.endOf(e2)<O(t2)},m2.$g=function(t2,e2,n3){return b.u(t2)?this[e2]:this.set(n3,t2)},m2.unix=function(){return Math.floor(this.valueOf()/1e3)},m2.valueOf=function(){return this.$d.getTime()},m2.startOf=function(t2,e2){var n3=this,r2=!!b.u(e2)||e2,f2=b.p(t2),l3=function(t3,e3){var i2=b.w(n3.$u?Date.UTC(n3.$y,e3,t3):new Date(n3.$y,e3,t3),n3);return r2?i2:i2.endOf(a)},$2=function(t3,e3){return b.w(n3.toDate()[t3].apply(n3.toDate("s"),(r2?[0,0,0,0]:[23,59,59,999]).slice(e3)),n3)},y2=this.$W,M3=this.$M,m3=this.$D,v2="set"+(this.$u?"UTC":"");switch(f2){case h:return r2?l3(1,0):l3(31,11);case c:return r2?l3(1,M3):l3(0,M3+1);case o:var g2=this.$locale().weekStart||0,D2=(y2<g2?y2+7:y2)-g2;return l3(r2?m3-D2:m3+(6-D2),M3);case a:case d:return $2(v2+"Hours",0);case u:return $2(v2+"Minutes",1);case s2:return $2(v2+"Seconds",2);case i:return $2(v2+"Milliseconds",3);default:return this.clone()}},m2.endOf=function(t2){return this.startOf(t2,!1)},m2.$set=function(t2,e2){var n3,o2=b.p(t2),f2="set"+(this.$u?"UTC":""),l3=(n3={},n3[a]=f2+"Date",n3[d]=f2+"Date",n3[c]=f2+"Month",n3[h]=f2+"FullYear",n3[u]=f2+"Hours",n3[s2]=f2+"Minutes",n3[i]=f2+"Seconds",n3[r]=f2+"Milliseconds",n3)[o2],$2=o2===a?this.$D+(e2-this.$W):e2;if(o2===c||o2===h){var y2=this.clone().set(d,1);y2.$d[l3]($2),y2.init(),this.$d=y2.set(d,Math.min(this.$D,y2.daysInMonth())).$d}else l3&&this.$d[l3]($2);return this.init(),this},m2.set=function(t2,e2){return this.clone().$set(t2,e2)},m2.get=function(t2){return this[b.p(t2)]()},m2.add=function(r2,f2){var d2,l3=this;r2=Number(r2);var $2=b.p(f2),y2=function(t2){var e2=O(l3);return b.w(e2.date(e2.date()+Math.round(t2*r2)),l3)};if($2===c)return this.set(c,this.$M+r2);if($2===h)return this.set(h,this.$y+r2);if($2===a)return y2(1);if($2===o)return y2(7);var M3=(d2={},d2[s2]=e,d2[u]=n2,d2[i]=t,d2)[$2]||1,m3=this.$d.getTime()+r2*M3;return b.w(m3,this)},m2.subtract=function(t2,e2){return this.add(-1*t2,e2)},m2.format=function(t2){var e2=this,n3=this.$locale();if(!this.isValid())return n3.invalidDate||l2;var r2=t2||"YYYY-MM-DDTHH:mm:ssZ",i2=b.z(this),s3=this.$H,u2=this.$m,a2=this.$M,o2=n3.weekdays,c2=n3.months,f2=n3.meridiem,h2=function(t3,n4,i3,s4){return t3&&(t3[n4]||t3(e2,r2))||i3[n4].slice(0,s4)},d2=function(t3){return b.s(s3%12||12,t3,"0")},$2=f2||function(t3,e3,n4){var r3=t3<12?"AM":"PM";return n4?r3.toLowerCase():r3};return r2.replace(y,function(t3,r3){return r3||function(t4){switch(t4){case"YY":return String(e2.$y).slice(-2);case"YYYY":return b.s(e2.$y,4,"0");case"M":return a2+1;case"MM":return b.s(a2+1,2,"0");case"MMM":return h2(n3.monthsShort,a2,c2,3);case"MMMM":return h2(c2,a2);case"D":return e2.$D;case"DD":return b.s(e2.$D,2,"0");case"d":return String(e2.$W);case"dd":return h2(n3.weekdaysMin,e2.$W,o2,2);case"ddd":return h2(n3.weekdaysShort,e2.$W,o2,3);case"dddd":return o2[e2.$W];case"H":return String(s3);case"HH":return b.s(s3,2,"0");case"h":return d2(1);case"hh":return d2(2);case"a":return $2(s3,u2,!0);case"A":return $2(s3,u2,!1);case"m":return String(u2);case"mm":return b.s(u2,2,"0");case"s":return String(e2.$s);case"ss":return b.s(e2.$s,2,"0");case"SSS":return b.s(e2.$ms,3,"0");case"Z":return i2}return null}(t3)||i2.replace(":","")})},m2.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m2.diff=function(r2,d2,l3){var $2,y2=this,M3=b.p(d2),m3=O(r2),v2=(m3.utcOffset()-this.utcOffset())*e,g2=this-m3,D2=function(){return b.m(y2,m3)};switch(M3){case h:$2=D2()/12;break;case c:$2=D2();break;case f:$2=D2()/3;break;case o:$2=(g2-v2)/6048e5;break;case a:$2=(g2-v2)/864e5;break;case u:$2=g2/n2;break;case s2:$2=g2/e;break;case i:$2=g2/t;break;default:$2=g2}return l3?$2:b.a($2)},m2.daysInMonth=function(){return this.endOf(c).$D},m2.$locale=function(){return D[this.$L]},m2.locale=function(t2,e2){if(!t2)return this.$L;var n3=this.clone(),r2=w(t2,e2,!0);return r2&&(n3.$L=r2),n3},m2.clone=function(){return b.w(this.$d,this)},m2.toDate=function(){return new Date(this.valueOf())},m2.toJSON=function(){return this.isValid()?this.toISOString():null},m2.toISOString=function(){return this.$d.toISOString()},m2.toString=function(){return this.$d.toUTCString()},M2}(),k=_.prototype;return O.prototype=k,[["$ms",r],["$s",i],["$m",s2],["$H",u],["$W",a],["$M",c],["$y",h],["$D",d]].forEach(function(t2){k[t2[1]]=function(e2){return this.$g(e2,t2[0],t2[1])}}),O.extend=function(t2,e2){return t2.$i||(t2(e2,_,O),t2.$i=!0),O},O.locale=w,O.isDayjs=S,O.unix=function(t2){return O(1e3*t2)},O.en=D[g],O.Ls=D,O.p={},O})}});var require_localeData=__commonJS({"node_modules/dayjs/plugin/localeData.js"(exports,module){(function(n2,e){typeof exports=="object"&&typeof module<"u"?module.exports=e():typeof define=="function"&&define.amd?define(e):(n2=typeof globalThis<"u"?globalThis:n2||self).dayjs_plugin_localeData=e()})(exports,function(){"use strict";return function(n2,e,t){var r=e.prototype,o=function(n3){return n3&&(n3.indexOf?n3:n3.s)},u=function(n3,e2,t2,r2,u2){var i2=n3.name?n3:n3.$locale(),a2=o(i2[e2]),s3=o(i2[t2]),f=a2||s3.map(function(n4){return n4.slice(0,r2)});if(!u2)return f;var d=i2.weekStart;return f.map(function(n4,e3){return f[(e3+(d||0))%7]})},i=function(){return t.Ls[t.locale()]},a=function(n3,e2){return n3.formats[e2]||function(n4){return n4.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(n5,e3,t2){return e3||t2.slice(1)})}(n3.formats[e2.toUpperCase()])},s2=function(){var n3=this;return{months:function(e2){return e2?e2.format("MMMM"):u(n3,"months")},monthsShort:function(e2){return e2?e2.format("MMM"):u(n3,"monthsShort","months",3)},firstDayOfWeek:function(){return n3.$locale().weekStart||0},weekdays:function(e2){return e2?e2.format("dddd"):u(n3,"weekdays")},weekdaysMin:function(e2){return e2?e2.format("dd"):u(n3,"weekdaysMin","weekdays",2)},weekdaysShort:function(e2){return e2?e2.format("ddd"):u(n3,"weekdaysShort","weekdays",3)},longDateFormat:function(e2){return a(n3.$locale(),e2)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return s2.bind(this)()},t.localeData=function(){var n3=i();return{firstDayOfWeek:function(){return n3.weekStart||0},weekdays:function(){return t.weekdays()},weekdaysShort:function(){return t.weekdaysShort()},weekdaysMin:function(){return t.weekdaysMin()},months:function(){return t.months()},monthsShort:function(){return t.monthsShort()},longDateFormat:function(e2){return a(n3,e2)},meridiem:n3.meridiem,ordinal:n3.ordinal}},t.months=function(){return u(i(),"months")},t.monthsShort=function(){return u(i(),"monthsShort","months",3)},t.weekdays=function(n3){return u(i(),"weekdays",null,null,n3)},t.weekdaysShort=function(n3){return u(i(),"weekdaysShort","weekdays",3,n3)},t.weekdaysMin=function(n3){return u(i(),"weekdaysMin","weekdays",2,n3)}}})}});var require_localizedFormat=__commonJS({"node_modules/dayjs/plugin/localizedFormat.js"(exports,module){(function(e,t){typeof exports=="object"&&typeof module<"u"?module.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_localizedFormat=t()})(exports,function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(t,o,n2){var r=o.prototype,i=r.format;n2.en.formats=e,r.format=function(t2){t2===void 0&&(t2="YYYY-MM-DDTHH:mm:ssZ");var o2=this.$locale().formats,n3=function(t3,o3){return t3.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(t4,n4,r2){var i2=r2&&r2.toUpperCase();return n4||o3[r2]||e[r2]||o3[i2].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e2,t5,o4){return t5||o4.slice(1)})})}(t2,o2===void 0?{}:o2);return i.call(this,n3)}}})}});var require_isoWeek=__commonJS({"node_modules/dayjs/plugin/isoWeek.js"(exports,module){(function(e,t){typeof exports=="object"&&typeof module<"u"?module.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_isoWeek=t()})(exports,function(){"use strict";var e="day";return function(t,i,s2){var a=function(t2){return t2.add(4-t2.isoWeekday(),e)},d=i.prototype;d.isoWeekYear=function(){return a(this).year()},d.isoWeek=function(t2){if(!this.$utils().u(t2))return this.add(7*(t2-this.isoWeek()),e);var i2,d2,n3,o,r=a(this),u=(i2=this.isoWeekYear(),d2=this.$u,n3=(d2?s2.utc:s2)().year(i2).startOf("year"),o=4-n3.isoWeekday(),n3.isoWeekday()>4&&(o+=7),n3.add(o,e));return r.diff(u,"week")+1},d.isoWeekday=function(e2){return this.$utils().u(e2)?this.day()||7:this.day(this.day()%7?e2:e2-7)};var n2=d.startOf;d.startOf=function(e2,t2){var i2=this.$utils(),s3=!!i2.u(t2)||t2;return i2.p(e2)==="isoweek"?s3?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):n2.bind(this)(e2,t2)}}})}});var require_weekOfYear=__commonJS({"node_modules/dayjs/plugin/weekOfYear.js"(exports,module){(function(e,t){typeof exports=="object"&&typeof module<"u"?module.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_weekOfYear=t()})(exports,function(){"use strict";var e="week",t="year";return function(i,n2,r){var f=n2.prototype;f.week=function(i2){if(i2===void 0&&(i2=null),i2!==null)return this.add(7*(i2-this.week()),"day");var n3=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var f2=r(this).startOf(t).add(1,t).date(n3),s2=r(this).endOf(e);if(f2.isBefore(s2))return 1}var a=r(this).startOf(t).date(n3).startOf(e).subtract(1,"millisecond"),o=this.diff(a,e,!0);return o<0?r(this).startOf("week").week():Math.ceil(o)},f.weeks=function(e2){return e2===void 0&&(e2=null),this.week(e2)}}})}});var require_customParseFormat=__commonJS({"node_modules/dayjs/plugin/customParseFormat.js"(exports,module){(function(e,t){typeof exports=="object"&&typeof module<"u"?module.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_customParseFormat=t()})(exports,function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n2=/\d\d/,r=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,o={},s2=function(e2){return(e2=+e2)+(e2>68?1900:2e3)},a=function(e2){return function(t2){this[e2]=+t2}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(e2){(this.zone||(this.zone={})).offset=function(e3){if(!e3||e3==="Z")return 0;var t2=e3.match(/([+-]|\d\d)/g),n3=60*t2[1]+(+t2[2]||0);return n3===0?0:t2[0]==="+"?-n3:n3}(e2)}],h=function(e2){var t2=o[e2];return t2&&(t2.indexOf?t2:t2.s.concat(t2.f))},u=function(e2,t2){var n3,r2=o.meridiem;if(r2){for(var i2=1;i2<=24;i2+=1)if(e2.indexOf(r2(i2,0,t2))>-1){n3=i2>12;break}}else n3=e2===(t2?"pm":"PM");return n3},d={A:[i,function(e2){this.afternoon=u(e2,!1)}],a:[i,function(e2){this.afternoon=u(e2,!0)}],S:[/\d/,function(e2){this.milliseconds=100*+e2}],SS:[n2,function(e2){this.milliseconds=10*+e2}],SSS:[/\d{3}/,function(e2){this.milliseconds=+e2}],s:[r,a("seconds")],ss:[r,a("seconds")],m:[r,a("minutes")],mm:[r,a("minutes")],H:[r,a("hours")],h:[r,a("hours")],HH:[r,a("hours")],hh:[r,a("hours")],D:[r,a("day")],DD:[n2,a("day")],Do:[i,function(e2){var t2=o.ordinal,n3=e2.match(/\d+/);if(this.day=n3[0],t2)for(var r2=1;r2<=31;r2+=1)t2(r2).replace(/\[|\]/g,"")===e2&&(this.day=r2)}],M:[r,a("month")],MM:[n2,a("month")],MMM:[i,function(e2){var t2=h("months"),n3=(h("monthsShort")||t2.map(function(e3){return e3.slice(0,3)})).indexOf(e2)+1;if(n3<1)throw new Error;this.month=n3%12||n3}],MMMM:[i,function(e2){var t2=h("months").indexOf(e2)+1;if(t2<1)throw new Error;this.month=t2%12||t2}],Y:[/[+-]?\d+/,a("year")],YY:[n2,function(e2){this.year=s2(e2)}],YYYY:[/\d{4}/,a("year")],Z:f,ZZ:f};function c(n3){var r2,i2;r2=n3,i2=o&&o.formats;for(var s3=(n3=r2.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(t2,n4,r3){var o2=r3&&r3.toUpperCase();return n4||i2[r3]||e[r3]||i2[o2].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e2,t3,n5){return t3||n5.slice(1)})})).match(t),a2=s3.length,f2=0;f2<a2;f2+=1){var h2=s3[f2],u2=d[h2],c2=u2&&u2[0],l2=u2&&u2[1];s3[f2]=l2?{regex:c2,parser:l2}:h2.replace(/^\[|\]$/g,"")}return function(e2){for(var t2={},n4=0,r3=0;n4<a2;n4+=1){var i3=s3[n4];if(typeof i3=="string")r3+=i3.length;else{var o2=i3.regex,f3=i3.parser,h3=e2.slice(r3),u3=o2.exec(h3)[0];f3.call(t2,u3),e2=e2.replace(u3,"")}}return function(e3){var t3=e3.afternoon;if(t3!==void 0){var n5=e3.hours;t3?n5<12&&(e3.hours+=12):n5===12&&(e3.hours=0),delete e3.afternoon}}(t2),t2}}return function(e2,t2,n3){n3.p.customParseFormat=!0,e2&&e2.parseTwoDigitYear&&(s2=e2.parseTwoDigitYear);var r2=t2.prototype,i2=r2.parse;r2.parse=function(e3){var t3=e3.date,r3=e3.utc,s3=e3.args;this.$u=r3;var a2=s3[1];if(typeof a2=="string"){var f2=s3[2]===!0,h2=s3[3]===!0,u2=f2||h2,d2=s3[2];h2&&(d2=s3[2]),o=this.$locale(),!f2&&d2&&(o=n3.Ls[d2]),this.$d=function(e4,t4,n4){try{if(["x","X"].indexOf(t4)>-1)return new Date((t4==="X"?1e3:1)*e4);var r4=c(t4)(e4),i3=r4.year,o2=r4.month,s4=r4.day,a3=r4.hours,f3=r4.minutes,h3=r4.seconds,u3=r4.milliseconds,d3=r4.zone,l3=new Date,m2=s4||(i3||o2?1:l3.getDate()),M2=i3||l3.getFullYear(),Y=0;i3&&!o2||(Y=o2>0?o2-1:l3.getMonth());var p=a3||0,v=f3||0,D=h3||0,g=u3||0;return d3?new Date(Date.UTC(M2,Y,m2,p,v,D,g+60*d3.offset*1e3)):n4?new Date(Date.UTC(M2,Y,m2,p,v,D,g)):new Date(M2,Y,m2,p,v,D,g)}catch{return new Date("")}}(t3,a2,r3),this.init(),d2&&d2!==!0&&(this.$L=this.locale(d2).$L),u2&&t3!=this.format(a2)&&(this.$d=new Date("")),o={}}else if(a2 instanceof Array)for(var l2=a2.length,m=1;m<=l2;m+=1){s3[1]=a2[m-1];var M=n3.apply(this,s3);if(M.isValid()){this.$d=M.$d,this.$L=M.$L,this.init();break}m===l2&&(this.$d=new Date(""))}else i2.call(this,e3)}}})}});var require_papaparse_min=__commonJS({"node_modules/papaparse/papaparse.min.js"(exports,module){(function(e,t){typeof define=="function"&&define.amd?define([],t):typeof module=="object"&&typeof exports<"u"?module.exports=t():e.Papa=t()})(exports,function s2(){"use strict";var f=typeof self<"u"?self:typeof window<"u"?window:f!==void 0?f:{},n2=!f.document&&!!f.postMessage,o=f.IS_PAPA_WORKER||!1,a={},u=0,b={parse:function(e,t){var r2=(t=t||{}).dynamicTyping||!1;if(J(r2)&&(t.dynamicTypingFunction=r2,r2={}),t.dynamicTyping=r2,t.transform=!!J(t.transform)&&t.transform,t.worker&&b.WORKERS_SUPPORTED){var i=function(){if(!b.WORKERS_SUPPORTED)return!1;var e2=(r3=f.URL||f.webkitURL||null,i2=s2.toString(),b.BLOB_URL||(b.BLOB_URL=r3.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",i2,")();"],{type:"text/javascript"})))),t2=new f.Worker(e2),r3,i2;return t2.onmessage=_,t2.id=u++,a[t2.id]=t2}();return i.userStep=t.step,i.userChunk=t.chunk,i.userComplete=t.complete,i.userError=t.error,t.step=J(t.step),t.chunk=J(t.chunk),t.complete=J(t.complete),t.error=J(t.error),delete t.worker,void i.postMessage({input:e,config:t,workerId:i.id})}var n3=null;return b.NODE_STREAM_INPUT,typeof e=="string"?(e=function(e2){return e2.charCodeAt(0)===65279?e2.slice(1):e2}(e),n3=t.download?new l2(t):new p(t)):e.readable===!0&&J(e.read)&&J(e.on)?n3=new g(t):(f.File&&e instanceof File||e instanceof Object)&&(n3=new c(t)),n3.stream(e)},unparse:function(e,t){var n3=!1,_2=!0,m2=",",y2=`\r
1
+ import{require_jszip_min}from"./chunk-4R2H3OTM.js";import{quill_default}from"./chunk-6ET5GQYW.js";import{A11yModule,ACTIVE_RUNTIME_CHECKS,ANIMATION_MODULE_TYPE,APP_CONFIG,APP_INITIALIZER,AUTO_STYLE,Actions,ActionsSubject,ActivatedRoute,AnimationGroupPlayer,AnimationMetadataType,AnonymousSubject,ApplicationRef,AsyncPipe,BackendComponentCallerService,BackendComponentCallerServiceFactory,BackendComponentClient,BackendComponentClientProxyService,BehaviorSubject,BreakpointObserver,Breakpoints,BrowserModule,CdkDrag,CdkDragPlaceholder,CdkDragPreview,CdkDropList,CdkPortalOutlet,CdkTextareaAutosize,ChangeDetectorRef,CommonModule,ComponentFactoryResolver$1,ComponentPortal,ComponentTemplateValidatorService,DEFAULT_CARD_DIMENSIONS,DEFAULT_CBC_INGRESS_URL,DEFAULT_REPORT_DIMENSIONS,DEFAULT_SHEET_DIMENSIONS,DOCUMENT,DateAdapter,DefaultClassDirective,DefaultFlexDirective,DefaultLayoutAlignDirective,DefaultLayoutDirective,DefaultLayoutGapDirective,DefaultValueAccessor,DestroyRef,DomRendererFactory2,DomSanitizer,DragDropModule,EMPTY,EffectsModule,ElementRef,ErrorHandler,EventEmitter,FlexLayoutModule,FlexModule,FormArray,FormBuilder,FormControl,FormControlDirective,FormControlName,FormGroup,FormGroupDirective,FormGroupName,FormsModule,HTTP_INTERCEPTORS,HttpClient,HttpContext,HttpErrorResponse,HttpHeaders,HttpParams,HttpResponse,INIT,INITIAL_STATE,IXAPI_OPTIONS,InjectionToken,Injector,IxApi2RequestErrorMessages,IxApiErrorMessages,IxApiErrors,IxApiHeaderKeys,IxApiModule,IxApiRequestErrorMessages,IxApiRequestErrors,IxApiService,LayoutModule,Location,LowerCasePipe,MAT_BOTTOM_SHEET_DATA,MAT_DATE_FORMATS,MAT_DATE_LOCALE,MAT_DIALOG_DATA,MatActionList,MatBottomSheet,MatBottomSheetRef,MatButton,MatButtonModule,MatCard,MatCardActions,MatCardHeader,MatCardModule,MatCardSubtitle,MatCardTitle,MatCheckbox,MatCheckboxModule,MatDatepicker,MatDatepickerInput,MatDatepickerToggle,MatDialog,MatDialogActions,MatDialogClose,MatDialogContainer,MatDialogContent,MatDialogModule,MatDialogRef,MatDialogTitle,MatDivider,MatDividerModule,MatDrawer,MatDrawerContainer,MatDrawerContent,MatError,MatExpansionPanel,MatFormField,MatFormFieldModule,MatHint,MatIcon,MatIconAnchor,MatIconButton,MatIconModule,MatIconRegistry,MatInput,MatInputModule,MatLabel,MatList,MatListItem,MatListItemIcon,MatListItemLine,MatListItemMeta,MatListItemTitle,MatListModule,MatListOption,MatListSubheaderCssMatStyler,MatMenu,MatMenuItem,MatMenuModule,MatMenuTrigger,MatOptgroup,MatOption,MatPaginatorModule,MatPrefix,MatProgressSpinner,MatProgressSpinnerModule,MatSelect,MatSelectModule,MatSelectTrigger,MatSelectionList,MatSidenavModule,MatSnackBar,MatSnackBarModule,MatSuffix,MatTab,MatTabGroup,MatTabsModule,MatToolbar,MatToolbarModule,MatTooltip,MatTooltipModule,MediaObserver,Meta,MinValidator,NG_VALIDATORS,NG_VALUE_ACCESSOR,NavigationCancel,NavigationEnd,NavigationError,NavigationStart,NgClass,NgControl,NgControlStatus,NgControlStatusGroup,NgForOf,NgIf,NgModel,NgSelectOption,NgStyle,NgTemplateOutlet,NgZone,NoopAnimationPlayer,NumberValueAccessor,ONE_WEEK,OTP_SMS_REQUIRED_PATTERN,Observable,Overlay,OverlayConfig,PAGE_COMPONENT,PLATFORM_ID,PageComponentTemplateManifestModule,PageComponentTemplateModule,PageComponentTemplateService,Platform,PortalInjector,PortalModule,REQUIRES_BRANDING,REQUIRES_COMPANY,ReactiveFormsModule,ReducerManagerDispatcher,ReducerObservable,Renderer2,RendererFactory2,ReplaySubject,RequiredValidator,ResourceDataClient,ResourceDataClientProxyService,ResourceDataServiceFactory,Router,RouterLink,RouterModule,RouterOutlet,RoutesRecognized,RuntimeError,SESSION_STORAGE,STORAGE_KEY_CBC_CONFIG_VALUES,STORAGE_KEY_CBC_INGRESS,STORAGE_KEY_CBC_INGRESS_URL,STORAGE_KEY_CBC_PUBLIC_ID,ScannedActionsSubject,SecurityContext,SelectControlValueAccessor,SettingsModule,SharedModule,StateObservable,StorageEventContext,StorageModule,StorageService,Store,StoreModule,Subject,Subscriber,Subscription,TemplateRef,Title,TitleCasePipe,TranslateDirective,TranslateLoader,TranslateModule,TranslatePipe,TranslateService,UPDATE,USER_PROVIDED_EFFECTS,Validators,ViewContainerRef,ViewportRuler,WINDOW,add,addFailure,addSuccess,appConfigFactory,booleanAttribute,buffer,buildFields,catchError,coerceBooleanProperty,combineLatest,compactFields,computed,concatMap,createAction,createEffect,createEntityAdapter,createFeature,createFeatureSelector,createReducer,createResourceAdapter,createResourceSelectorFactory,createSelector,debounceTime,decryptValue,defaultOptions,defer,delay,delayWhen,didAdd,didAddList,didRemove,didRemoveList,didUpdate,didUpdateList,distinctUntilChanged,effect,ensureAll,ensureMany,ensureOne,environment,filter,first,firstValueFrom,forkJoin,forwardRef,from,fromEvent,getLinkMap,getLinkUrl,getMissingFields,getPageParams,hasFields,hasNonPublicIdFields,haveFields,inject,input,isDevMode,isNgrxMockEnvironment,isObservable,isPlatformBrowser,isPlatformServer,last,lastValueFrom,loadAllForIntentSuccess,loadAllSuccess,loadAppConfig,loadHost,loadHostFailure,loadHostSuccess,loadManySuccess,makeEnvironmentProviders,map,mapPageComponentTemplateManifestToDefaultInputs,mapPageComponentTemplateToCustomElementName,mapPageComponentTemplateToTemplateBaseUrl,mapPageComponentTemplateToTemplateUrl,mapResourceToSubResourceList,mapTemplateUrlToMainPath,mapTemplateUrlToManifestUrl,mapTemplateUrlToPublicId,merge,mergeFields,mergeLoadedFields,mergeMap,moveItemInArray,mustache_default,observeOn,of,ofStatus,ofType,omitLoadedFields,omitSubresources,on,output,pairwise,parseBody,platformBrowser,props,provideEnvironmentInitializer,provideHttpClient,queueScheduler,remove,removeFailure,removeSuccess,require_crypto_js,reset,reset2,reset3,resetPendingUpdates,retryBackoff,scan,select,selectAll,selectEntities,selectEntities2,selectEntity,selectEntity2,sequence,share,shareReplay,signal,skip,sortByNameAndPublicIdComparer,startWith,style,switchMap,take,takeUntil,takeUntilDestroyed,tap,throwError,throwNotFoundError,timeout,timer,toObservable,toSignal,update,updateFailure,updateMany,updateManyFailure,updateManySuccess,updateResource,updateSuccess,validateOptions,viewChild,whileMoreAfter,withInterceptorsFromDi,withLatestFrom,ɵNgNoValidate,ɵNgSelectMultipleOption,ɵPRE_STYLE,ɵɵInheritDefinitionFeature,ɵɵNgOnChangesFeature,ɵɵProvidersFeature,ɵɵadvance,ɵɵattribute,ɵɵclassMap,ɵɵclassMapInterpolate1,ɵɵclassProp,ɵɵconditional,ɵɵcontentQuery,ɵɵdeclareLet,ɵɵdefineComponent,ɵɵdefineDirective,ɵɵdefineInjectable,ɵɵdefineInjector,ɵɵdefineNgModule,ɵɵdefinePipe,ɵɵdirectiveInject,ɵɵelement,ɵɵelementContainer,ɵɵelementContainerEnd,ɵɵelementContainerStart,ɵɵelementEnd,ɵɵelementStart,ɵɵgetCurrentView,ɵɵgetInheritedFactory,ɵɵinject,ɵɵlistener,ɵɵloadQuery,ɵɵnamespaceSVG,ɵɵnextContext,ɵɵpipe,ɵɵpipeBind1,ɵɵpipeBind2,ɵɵpipeBind3,ɵɵprojection,ɵɵprojectionDef,ɵɵproperty,ɵɵpropertyInterpolate,ɵɵpureFunction0,ɵɵpureFunction1,ɵɵpureFunction2,ɵɵpureFunction7,ɵɵqueryAdvance,ɵɵqueryRefresh,ɵɵreadContextLet,ɵɵreference,ɵɵrepeater,ɵɵrepeaterCreate,ɵɵrepeaterTrackByIdentity,ɵɵrepeaterTrackByIndex,ɵɵresetView,ɵɵresolveDocument,ɵɵrestoreView,ɵɵsanitizeHtml,ɵɵsanitizeUrl,ɵɵstoreLet,ɵɵstyleMap,ɵɵstyleProp,ɵɵtemplate,ɵɵtemplateRefExtractor,ɵɵtext,ɵɵtextInterpolate,ɵɵtextInterpolate1,ɵɵtextInterpolate2,ɵɵtextInterpolate3,ɵɵtwoWayBindingSet,ɵɵtwoWayListener,ɵɵtwoWayProperty,ɵɵviewQuery,ɵɵviewQuerySignal}from"./chunk-MFA4CFMY.js";import"./chunk-H2MDWMMO.js";import{camelCase_default,capitalize_default,cloneDeep_default,compact_default,deburr_default,escape_default,flatMap_default,flatten_default,get_default,groupBy_default,has_default,isArray_default,isEmpty_default,isEqual_default,isNil_default,isObject_default,isString_default,isUndefined_default,kebabCase_default,memoize_default,merge_default,omitBy_default,omit_default,orderBy_default,pick_default,range_default,set_default,snakeCase_default,sortBy_default,startCase_default,template_default,uniqBy_default,uniq_default,upperFirst_default}from"./chunk-B66ZPH3R.js";import{__async,__commonJS,__esm,__export,__objRest,__require,__spreadProps,__spreadValues,__superGet,__toCommonJS,__toESM,__yieldStar}from"./chunk-IHZVASS3.js";var require_FileSaver_min=__commonJS({"node_modules/file-saver/dist/FileSaver.min.js"(exports,module){(function(a,b){typeof define=="function"&&define.amd?define([],b):typeof exports<"u"?b():(b(),a.FileSaver={})})(exports,function(){"use strict";function b(a2,b2){return typeof b2>"u"?b2={autoBom:!1}:typeof b2!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),b2={autoBom:!b2}),b2.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(a2.type)?new Blob(["\uFEFF",a2],{type:a2.type}):a2}function c(a2,b2,c2){var d2=new XMLHttpRequest;d2.open("GET",a2),d2.responseType="blob",d2.onload=function(){g(d2.response,b2,c2)},d2.onerror=function(){console.error("could not download file")},d2.send()}function d(a2){var b2=new XMLHttpRequest;b2.open("HEAD",a2,!1);try{b2.send()}catch{}return 200<=b2.status&&299>=b2.status}function e(a2){try{a2.dispatchEvent(new MouseEvent("click"))}catch{var b2=document.createEvent("MouseEvents");b2.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),a2.dispatchEvent(b2)}}var f=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof global=="object"&&global.global===global?global:void 0,a=f.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),g=f.saveAs||(typeof window!="object"||window!==f?function(){}:"download"in HTMLAnchorElement.prototype&&!a?function(b2,g2,h){var i=f.URL||f.webkitURL,j=document.createElement("a");g2=g2||b2.name||"download",j.download=g2,j.rel="noopener",typeof b2=="string"?(j.href=b2,j.origin===location.origin?e(j):d(j.href)?c(b2,g2,h):e(j,j.target="_blank")):(j.href=i.createObjectURL(b2),setTimeout(function(){i.revokeObjectURL(j.href)},4e4),setTimeout(function(){e(j)},0))}:"msSaveOrOpenBlob"in navigator?function(f2,g2,h){if(g2=g2||f2.name||"download",typeof f2!="string")navigator.msSaveOrOpenBlob(b(f2,h),g2);else if(d(f2))c(f2,g2,h);else{var i=document.createElement("a");i.href=f2,i.target="_blank",setTimeout(function(){e(i)})}}:function(b2,d2,e2,g2){if(g2=g2||open("","_blank"),g2&&(g2.document.title=g2.document.body.innerText="downloading..."),typeof b2=="string")return c(b2,d2,e2);var h=b2.type==="application/octet-stream",i=/constructor/i.test(f.HTMLElement)||f.safari,j=/CriOS\/[\d]+/.test(navigator.userAgent);if((j||h&&i||a)&&typeof FileReader<"u"){var k=new FileReader;k.onloadend=function(){var a2=k.result;a2=j?a2:a2.replace(/^data:[^;]*;/,"data:attachment/file;"),g2?g2.location.href=a2:location=a2,g2=null},k.readAsDataURL(b2)}else{var l2=f.URL||f.webkitURL,m=l2.createObjectURL(b2);g2?g2.location=m:location.href=m,g2=null,setTimeout(function(){l2.revokeObjectURL(m)},4e4)}});f.saveAs=g.saveAs=g,typeof module<"u"&&(module.exports=g)})}});var require_ua_parser=__commonJS({"node_modules/ua-parser-js/src/ua-parser.js"(exports,module){(function(window2,undefined2){"use strict";var LIBVERSION="1.0.37",EMPTY2="",UNKNOWN="?",FUNC_TYPE="function",UNDEF_TYPE="undefined",OBJ_TYPE="object",STR_TYPE="string",MAJOR="major",MODEL="model",NAME="name",TYPE="type",VENDOR="vendor",VERSION2="version",ARCHITECTURE="architecture",CONSOLE="console",MOBILE="mobile",TABLET="tablet",SMARTTV="smarttv",WEARABLE="wearable",EMBEDDED="embedded",UA_MAX_LENGTH=500,AMAZON="Amazon",APPLE="Apple",ASUS="ASUS",BLACKBERRY="BlackBerry",BROWSER="Browser",CHROME="Chrome",EDGE="Edge",FIREFOX="Firefox",GOOGLE="Google",HUAWEI="Huawei",LG="LG",MICROSOFT="Microsoft",MOTOROLA="Motorola",OPERA="Opera",SAMSUNG="Samsung",SHARP="Sharp",SONY="Sony",XIAOMI="Xiaomi",ZEBRA="Zebra",FACEBOOK="Facebook",CHROMIUM_OS="Chromium OS",MAC_OS="Mac OS",extend3=function(regexes2,extensions){var mergedRegexes={};for(var i in regexes2)extensions[i]&&extensions[i].length%2===0?mergedRegexes[i]=extensions[i].concat(regexes2[i]):mergedRegexes[i]=regexes2[i];return mergedRegexes},enumerize=function(arr){for(var enums={},i=0;i<arr.length;i++)enums[arr[i].toUpperCase()]=arr[i];return enums},has=function(str1,str2){return typeof str1===STR_TYPE?lowerize(str2).indexOf(lowerize(str1))!==-1:!1},lowerize=function(str){return str.toLowerCase()},majorize=function(version2){return typeof version2===STR_TYPE?version2.replace(/[^\d\.]/g,EMPTY2).split(".")[0]:undefined2},trim=function(str,len){if(typeof str===STR_TYPE)return str=str.replace(/^\s\s*/,EMPTY2),typeof len===UNDEF_TYPE?str:str.substring(0,UA_MAX_LENGTH)},rgxMapper=function(ua,arrays){for(var i=0,j,k,p,q,matches,match2;i<arrays.length&&!matches;){var regex=arrays[i],props2=arrays[i+1];for(j=k=0;j<regex.length&&!matches&&regex[j];)if(matches=regex[j++].exec(ua),matches)for(p=0;p<props2.length;p++)match2=matches[++k],q=props2[p],typeof q===OBJ_TYPE&&q.length>0?q.length===2?typeof q[1]==FUNC_TYPE?this[q[0]]=q[1].call(this,match2):this[q[0]]=q[1]:q.length===3?typeof q[1]===FUNC_TYPE&&!(q[1].exec&&q[1].test)?this[q[0]]=match2?q[1].call(this,match2,q[2]):undefined2:this[q[0]]=match2?match2.replace(q[1],q[2]):undefined2:q.length===4&&(this[q[0]]=match2?q[3].call(this,match2.replace(q[1],q[2])):undefined2):this[q]=match2||undefined2;i+=2}},strMapper=function(str,map4){for(var i in map4)if(typeof map4[i]===OBJ_TYPE&&map4[i].length>0){for(var j=0;j<map4[i].length;j++)if(has(map4[i][j],str))return i===UNKNOWN?undefined2:i}else if(has(map4[i],str))return i===UNKNOWN?undefined2:i;return str},oldSafariMap={"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},windowsVersionMap={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"},regexes={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[VERSION2,[NAME,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[VERSION2,[NAME,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[NAME,VERSION2],[/opios[\/ ]+([\w\.]+)/i],[VERSION2,[NAME,OPERA+" Mini"]],[/\bopr\/([\w\.]+)/i],[VERSION2,[NAME,OPERA]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[VERSION2,[NAME,"Baidu"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[NAME,VERSION2],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[VERSION2,[NAME,"UC"+BROWSER]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[VERSION2,[NAME,"WeChat"]],[/konqueror\/([\w\.]+)/i],[VERSION2,[NAME,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[VERSION2,[NAME,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[VERSION2,[NAME,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[VERSION2,[NAME,"Smart Lenovo "+BROWSER]],[/(avast|avg)\/([\w\.]+)/i],[[NAME,/(.+)/,"$1 Secure "+BROWSER],VERSION2],[/\bfocus\/([\w\.]+)/i],[VERSION2,[NAME,FIREFOX+" Focus"]],[/\bopt\/([\w\.]+)/i],[VERSION2,[NAME,OPERA+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[VERSION2,[NAME,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[VERSION2,[NAME,"Dolphin"]],[/coast\/([\w\.]+)/i],[VERSION2,[NAME,OPERA+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[VERSION2,[NAME,"MIUI "+BROWSER]],[/fxios\/([-\w\.]+)/i],[VERSION2,[NAME,FIREFOX]],[/\bqihu|(qi?ho?o?|360)browser/i],[[NAME,"360 "+BROWSER]],[/(oculus|sailfish|huawei|vivo)browser\/([\w\.]+)/i],[[NAME,/(.+)/,"$1 "+BROWSER],VERSION2],[/samsungbrowser\/([\w\.]+)/i],[VERSION2,[NAME,SAMSUNG+" Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[NAME,/_/g," "],VERSION2],[/metasr[\/ ]?([\d\.]+)/i],[VERSION2,[NAME,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[NAME,"Sogou Mobile"],VERSION2],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[NAME,VERSION2],[/(lbbrowser)/i,/\[(linkedin)app\]/i],[NAME],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[NAME,FACEBOOK],VERSION2],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[NAME,VERSION2],[/\bgsa\/([\w\.]+) .*safari\//i],[VERSION2,[NAME,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[VERSION2,[NAME,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[VERSION2,[NAME,CHROME+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[NAME,CHROME+" WebView"],VERSION2],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[VERSION2,[NAME,"Android "+BROWSER]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[NAME,VERSION2],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[VERSION2,[NAME,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[VERSION2,NAME],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[NAME,[VERSION2,strMapper,oldSafariMap]],[/(webkit|khtml)\/([\w\.]+)/i],[NAME,VERSION2],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[NAME,"Netscape"],VERSION2],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[VERSION2,[NAME,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,/panasonic;(viera)/i],[NAME,VERSION2],[/(cobalt)\/([\w\.]+)/i],[NAME,[VERSION2,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[ARCHITECTURE,"amd64"]],[/(ia32(?=;))/i],[[ARCHITECTURE,lowerize]],[/((?:i[346]|x)86)[;\)]/i],[[ARCHITECTURE,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[ARCHITECTURE,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[ARCHITECTURE,"armhf"]],[/windows (ce|mobile); ppc;/i],[[ARCHITECTURE,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[ARCHITECTURE,/ower/,EMPTY2,lowerize]],[/(sun4\w)[;\)]/i],[[ARCHITECTURE,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[ARCHITECTURE,lowerize]]],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],[MODEL,[VENDOR,SAMSUNG],[TYPE,TABLET]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[MODEL,[VENDOR,SAMSUNG],[TYPE,MOBILE]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[MODEL,[VENDOR,APPLE],[TYPE,MOBILE]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[MODEL,[VENDOR,APPLE],[TYPE,TABLET]],[/(macintosh);/i],[MODEL,[VENDOR,APPLE]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[MODEL,[VENDOR,SHARP],[TYPE,MOBILE]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[MODEL,[VENDOR,HUAWEI],[TYPE,TABLET]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[MODEL,[VENDOR,HUAWEI],[TYPE,MOBILE]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[MODEL,/_/g," "],[VENDOR,XIAOMI],[TYPE,MOBILE]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[MODEL,/_/g," "],[VENDOR,XIAOMI],[TYPE,TABLET]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[MODEL,[VENDOR,"OPPO"],[TYPE,MOBILE]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[MODEL,[VENDOR,"Vivo"],[TYPE,MOBILE]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[MODEL,[VENDOR,"Realme"],[TYPE,MOBILE]],[/\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],[MODEL,[VENDOR,MOTOROLA],[TYPE,MOBILE]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[MODEL,[VENDOR,MOTOROLA],[TYPE,TABLET]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[MODEL,[VENDOR,LG],[TYPE,TABLET]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[MODEL,[VENDOR,LG],[TYPE,MOBILE]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[MODEL,[VENDOR,"Lenovo"],[TYPE,TABLET]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[MODEL,/_/g," "],[VENDOR,"Nokia"],[TYPE,MOBILE]],[/(pixel c)\b/i],[MODEL,[VENDOR,GOOGLE],[TYPE,TABLET]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[MODEL,[VENDOR,GOOGLE],[TYPE,MOBILE]],[/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],[MODEL,[VENDOR,SONY],[TYPE,MOBILE]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[MODEL,"Xperia Tablet"],[VENDOR,SONY],[TYPE,TABLET]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[MODEL,[VENDOR,"OnePlus"],[TYPE,MOBILE]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[MODEL,[VENDOR,AMAZON],[TYPE,TABLET]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[MODEL,/(.+)/g,"Fire Phone $1"],[VENDOR,AMAZON],[TYPE,MOBILE]],[/(playbook);[-\w\),; ]+(rim)/i],[MODEL,VENDOR,[TYPE,TABLET]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[MODEL,[VENDOR,BLACKBERRY],[TYPE,MOBILE]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[MODEL,[VENDOR,ASUS],[TYPE,TABLET]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[MODEL,[VENDOR,ASUS],[TYPE,MOBILE]],[/(nexus 9)/i],[MODEL,[VENDOR,"HTC"],[TYPE,TABLET]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[VENDOR,[MODEL,/_/g," "],[TYPE,MOBILE]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[MODEL,[VENDOR,"Acer"],[TYPE,TABLET]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[MODEL,[VENDOR,"Meizu"],[TYPE,MOBILE]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[MODEL,[VENDOR,"Ulefone"],[TYPE,MOBILE]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[VENDOR,MODEL,[TYPE,MOBILE]],[/(kobo)\s(ereader|touch)/i,/(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],[VENDOR,MODEL,[TYPE,TABLET]],[/(surface duo)/i],[MODEL,[VENDOR,MICROSOFT],[TYPE,TABLET]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[MODEL,[VENDOR,"Fairphone"],[TYPE,MOBILE]],[/(u304aa)/i],[MODEL,[VENDOR,"AT&T"],[TYPE,MOBILE]],[/\bsie-(\w*)/i],[MODEL,[VENDOR,"Siemens"],[TYPE,MOBILE]],[/\b(rct\w+) b/i],[MODEL,[VENDOR,"RCA"],[TYPE,TABLET]],[/\b(venue[\d ]{2,7}) b/i],[MODEL,[VENDOR,"Dell"],[TYPE,TABLET]],[/\b(q(?:mv|ta)\w+) b/i],[MODEL,[VENDOR,"Verizon"],[TYPE,TABLET]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[MODEL,[VENDOR,"Barnes & Noble"],[TYPE,TABLET]],[/\b(tm\d{3}\w+) b/i],[MODEL,[VENDOR,"NuVision"],[TYPE,TABLET]],[/\b(k88) b/i],[MODEL,[VENDOR,"ZTE"],[TYPE,TABLET]],[/\b(nx\d{3}j) b/i],[MODEL,[VENDOR,"ZTE"],[TYPE,MOBILE]],[/\b(gen\d{3}) b.+49h/i],[MODEL,[VENDOR,"Swiss"],[TYPE,MOBILE]],[/\b(zur\d{3}) b/i],[MODEL,[VENDOR,"Swiss"],[TYPE,TABLET]],[/\b((zeki)?tb.*\b) b/i],[MODEL,[VENDOR,"Zeki"],[TYPE,TABLET]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[VENDOR,"Dragon Touch"],MODEL,[TYPE,TABLET]],[/\b(ns-?\w{0,9}) b/i],[MODEL,[VENDOR,"Insignia"],[TYPE,TABLET]],[/\b((nxa|next)-?\w{0,9}) b/i],[MODEL,[VENDOR,"NextBook"],[TYPE,TABLET]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[VENDOR,"Voice"],MODEL,[TYPE,MOBILE]],[/\b(lvtel\-)?(v1[12]) b/i],[[VENDOR,"LvTel"],MODEL,[TYPE,MOBILE]],[/\b(ph-1) /i],[MODEL,[VENDOR,"Essential"],[TYPE,MOBILE]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[MODEL,[VENDOR,"Envizen"],[TYPE,TABLET]],[/\b(trio[-\w\. ]+) b/i],[MODEL,[VENDOR,"MachSpeed"],[TYPE,TABLET]],[/\btu_(1491) b/i],[MODEL,[VENDOR,"Rotor"],[TYPE,TABLET]],[/(shield[\w ]+) b/i],[MODEL,[VENDOR,"Nvidia"],[TYPE,TABLET]],[/(sprint) (\w+)/i],[VENDOR,MODEL,[TYPE,MOBILE]],[/(kin\.[onetw]{3})/i],[[MODEL,/\./g," "],[VENDOR,MICROSOFT],[TYPE,MOBILE]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[MODEL,[VENDOR,ZEBRA],[TYPE,TABLET]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[MODEL,[VENDOR,ZEBRA],[TYPE,MOBILE]],[/smart-tv.+(samsung)/i],[VENDOR,[TYPE,SMARTTV]],[/hbbtv.+maple;(\d+)/i],[[MODEL,/^/,"SmartTV"],[VENDOR,SAMSUNG],[TYPE,SMARTTV]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[VENDOR,LG],[TYPE,SMARTTV]],[/(apple) ?tv/i],[VENDOR,[MODEL,APPLE+" TV"],[TYPE,SMARTTV]],[/crkey/i],[[MODEL,CHROME+"cast"],[VENDOR,GOOGLE],[TYPE,SMARTTV]],[/droid.+aft(\w+)( bui|\))/i],[MODEL,[VENDOR,AMAZON],[TYPE,SMARTTV]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[MODEL,[VENDOR,SHARP],[TYPE,SMARTTV]],[/(bravia[\w ]+)( bui|\))/i],[MODEL,[VENDOR,SONY],[TYPE,SMARTTV]],[/(mitv-\w{5}) bui/i],[MODEL,[VENDOR,XIAOMI],[TYPE,SMARTTV]],[/Hbbtv.*(technisat) (.*);/i],[VENDOR,MODEL,[TYPE,SMARTTV]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[VENDOR,trim],[MODEL,trim],[TYPE,SMARTTV]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[TYPE,SMARTTV]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[VENDOR,MODEL,[TYPE,CONSOLE]],[/droid.+; (shield) bui/i],[MODEL,[VENDOR,"Nvidia"],[TYPE,CONSOLE]],[/(playstation [345portablevi]+)/i],[MODEL,[VENDOR,SONY],[TYPE,CONSOLE]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[MODEL,[VENDOR,MICROSOFT],[TYPE,CONSOLE]],[/((pebble))app/i],[VENDOR,MODEL,[TYPE,WEARABLE]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[MODEL,[VENDOR,APPLE],[TYPE,WEARABLE]],[/droid.+; (glass) \d/i],[MODEL,[VENDOR,GOOGLE],[TYPE,WEARABLE]],[/droid.+; (wt63?0{2,3})\)/i],[MODEL,[VENDOR,ZEBRA],[TYPE,WEARABLE]],[/(quest( 2| pro)?)/i],[MODEL,[VENDOR,FACEBOOK],[TYPE,WEARABLE]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[VENDOR,[TYPE,EMBEDDED]],[/(aeobc)\b/i],[MODEL,[VENDOR,AMAZON],[TYPE,EMBEDDED]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[MODEL,[TYPE,MOBILE]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[MODEL,[TYPE,TABLET]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[TYPE,TABLET]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[TYPE,MOBILE]],[/(android[-\w\. ]{0,9});.+buil/i],[MODEL,[VENDOR,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[VERSION2,[NAME,EDGE+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[VERSION2,[NAME,"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,/\b(libweb)/i],[NAME,VERSION2],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[VERSION2,NAME]],os:[[/microsoft (windows) (vista|xp)/i],[NAME,VERSION2],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[NAME,[VERSION2,strMapper,windowsVersionMap]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[VERSION2,strMapper,windowsVersionMap],[NAME,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[VERSION2,/_/g,"."],[NAME,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[NAME,MAC_OS],[VERSION2,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[VERSION2,NAME],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[NAME,VERSION2],[/\(bb(10);/i],[VERSION2,[NAME,BLACKBERRY]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[VERSION2,[NAME,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[VERSION2,[NAME,FIREFOX+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[VERSION2,[NAME,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[VERSION2,[NAME,"watchOS"]],[/crkey\/([\d\.]+)/i],[VERSION2,[NAME,CHROME+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[NAME,CHROMIUM_OS],VERSION2],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(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],[NAME,VERSION2],[/(sunos) ?([\w\.\d]*)/i],[[NAME,"Solaris"],VERSION2],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[NAME,VERSION2]]},UAParser2=function(ua,extensions){if(typeof ua===OBJ_TYPE&&(extensions=ua,ua=undefined2),!(this instanceof UAParser2))return new UAParser2(ua,extensions).getResult();var _navigator=typeof window2!==UNDEF_TYPE&&window2.navigator?window2.navigator:undefined2,_ua=ua||(_navigator&&_navigator.userAgent?_navigator.userAgent:EMPTY2),_uach=_navigator&&_navigator.userAgentData?_navigator.userAgentData:undefined2,_rgxmap=extensions?extend3(regexes,extensions):regexes,_isSelfNav=_navigator&&_navigator.userAgent==_ua;return this.getBrowser=function(){var _browser={};return _browser[NAME]=undefined2,_browser[VERSION2]=undefined2,rgxMapper.call(_browser,_ua,_rgxmap.browser),_browser[MAJOR]=majorize(_browser[VERSION2]),_isSelfNav&&_navigator&&_navigator.brave&&typeof _navigator.brave.isBrave==FUNC_TYPE&&(_browser[NAME]="Brave"),_browser},this.getCPU=function(){var _cpu={};return _cpu[ARCHITECTURE]=undefined2,rgxMapper.call(_cpu,_ua,_rgxmap.cpu),_cpu},this.getDevice=function(){var _device={};return _device[VENDOR]=undefined2,_device[MODEL]=undefined2,_device[TYPE]=undefined2,rgxMapper.call(_device,_ua,_rgxmap.device),_isSelfNav&&!_device[TYPE]&&_uach&&_uach.mobile&&(_device[TYPE]=MOBILE),_isSelfNav&&_device[MODEL]=="Macintosh"&&_navigator&&typeof _navigator.standalone!==UNDEF_TYPE&&_navigator.maxTouchPoints&&_navigator.maxTouchPoints>2&&(_device[MODEL]="iPad",_device[TYPE]=TABLET),_device},this.getEngine=function(){var _engine={};return _engine[NAME]=undefined2,_engine[VERSION2]=undefined2,rgxMapper.call(_engine,_ua,_rgxmap.engine),_engine},this.getOS=function(){var _os={};return _os[NAME]=undefined2,_os[VERSION2]=undefined2,rgxMapper.call(_os,_ua,_rgxmap.os),_isSelfNav&&!_os[NAME]&&_uach&&_uach.platform!="Unknown"&&(_os[NAME]=_uach.platform.replace(/chrome os/i,CHROMIUM_OS).replace(/macos/i,MAC_OS)),_os},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 _ua},this.setUA=function(ua2){return _ua=typeof ua2===STR_TYPE&&ua2.length>UA_MAX_LENGTH?trim(ua2,UA_MAX_LENGTH):ua2,this},this.setUA(_ua),this};UAParser2.VERSION=LIBVERSION,UAParser2.BROWSER=enumerize([NAME,VERSION2,MAJOR]),UAParser2.CPU=enumerize([ARCHITECTURE]),UAParser2.DEVICE=enumerize([MODEL,VENDOR,TYPE,CONSOLE,MOBILE,SMARTTV,TABLET,WEARABLE,EMBEDDED]),UAParser2.ENGINE=UAParser2.OS=enumerize([NAME,VERSION2]),typeof exports!==UNDEF_TYPE?(typeof module!==UNDEF_TYPE&&module.exports&&(exports=module.exports=UAParser2),exports.UAParser=UAParser2):typeof define===FUNC_TYPE&&define.amd?define(function(){return UAParser2}):typeof window2!==UNDEF_TYPE&&(window2.UAParser=UAParser2);var $=typeof window2!==UNDEF_TYPE&&(window2.jQuery||window2.Zepto);if($&&!$.ua){var parser=new UAParser2;$.ua=parser.getResult(),$.ua.get=function(){return parser.getUA()},$.ua.set=function(ua){parser.setUA(ua);var result=parser.getResult();for(var prop in result)$.ua[prop]=result[prop]}}})(typeof window=="object"?window:exports)}});var require_dayjs_min=__commonJS({"node_modules/dayjs/dayjs.min.js"(exports,module){(function(t,e){typeof exports=="object"&&typeof module<"u"?module.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs=e()})(exports,function(){"use strict";var t=1e3,e=6e4,n2=36e5,r="millisecond",i="second",s2="minute",u="hour",a="day",o="week",c="month",f="quarter",h="year",d="date",l2="Invalid Date",$=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t2){var e2=["th","st","nd","rd"],n3=t2%100;return"["+t2+(e2[(n3-20)%10]||e2[n3]||e2[0])+"]"}},m=function(t2,e2,n3){var r2=String(t2);return!r2||r2.length>=e2?t2:""+Array(e2+1-r2.length).join(n3)+t2},v={s:m,z:function(t2){var e2=-t2.utcOffset(),n3=Math.abs(e2),r2=Math.floor(n3/60),i2=n3%60;return(e2<=0?"+":"-")+m(r2,2,"0")+":"+m(i2,2,"0")},m:function t2(e2,n3){if(e2.date()<n3.date())return-t2(n3,e2);var r2=12*(n3.year()-e2.year())+(n3.month()-e2.month()),i2=e2.clone().add(r2,c),s3=n3-i2<0,u2=e2.clone().add(r2+(s3?-1:1),c);return+(-(r2+(n3-i2)/(s3?i2-u2:u2-i2))||0)},a:function(t2){return t2<0?Math.ceil(t2)||0:Math.floor(t2)},p:function(t2){return{M:c,y:h,w:o,d:a,D:d,h:u,m:s2,s:i,ms:r,Q:f}[t2]||String(t2||"").toLowerCase().replace(/s$/,"")},u:function(t2){return t2===void 0}},g="en",D={};D[g]=M;var p="$isDayjsObject",S=function(t2){return t2 instanceof _||!(!t2||!t2[p])},w=function t2(e2,n3,r2){var i2;if(!e2)return g;if(typeof e2=="string"){var s3=e2.toLowerCase();D[s3]&&(i2=s3),n3&&(D[s3]=n3,i2=s3);var u2=e2.split("-");if(!i2&&u2.length>1)return t2(u2[0])}else{var a2=e2.name;D[a2]=e2,i2=a2}return!r2&&i2&&(g=i2),i2||!r2&&g},O=function(t2,e2){if(S(t2))return t2.clone();var n3=typeof e2=="object"?e2:{};return n3.date=t2,n3.args=arguments,new _(n3)},b=v;b.l=w,b.i=S,b.w=function(t2,e2){return O(t2,{locale:e2.$L,utc:e2.$u,x:e2.$x,$offset:e2.$offset})};var _=function(){function M2(t2){this.$L=w(t2.locale,null,!0),this.parse(t2),this.$x=this.$x||t2.x||{},this[p]=!0}var m2=M2.prototype;return m2.parse=function(t2){this.$d=function(t3){var e2=t3.date,n3=t3.utc;if(e2===null)return new Date(NaN);if(b.u(e2))return new Date;if(e2 instanceof Date)return new Date(e2);if(typeof e2=="string"&&!/Z$/i.test(e2)){var r2=e2.match($);if(r2){var i2=r2[2]-1||0,s3=(r2[7]||"0").substring(0,3);return n3?new Date(Date.UTC(r2[1],i2,r2[3]||1,r2[4]||0,r2[5]||0,r2[6]||0,s3)):new Date(r2[1],i2,r2[3]||1,r2[4]||0,r2[5]||0,r2[6]||0,s3)}}return new Date(e2)}(t2),this.init()},m2.init=function(){var t2=this.$d;this.$y=t2.getFullYear(),this.$M=t2.getMonth(),this.$D=t2.getDate(),this.$W=t2.getDay(),this.$H=t2.getHours(),this.$m=t2.getMinutes(),this.$s=t2.getSeconds(),this.$ms=t2.getMilliseconds()},m2.$utils=function(){return b},m2.isValid=function(){return this.$d.toString()!==l2},m2.isSame=function(t2,e2){var n3=O(t2);return this.startOf(e2)<=n3&&n3<=this.endOf(e2)},m2.isAfter=function(t2,e2){return O(t2)<this.startOf(e2)},m2.isBefore=function(t2,e2){return this.endOf(e2)<O(t2)},m2.$g=function(t2,e2,n3){return b.u(t2)?this[e2]:this.set(n3,t2)},m2.unix=function(){return Math.floor(this.valueOf()/1e3)},m2.valueOf=function(){return this.$d.getTime()},m2.startOf=function(t2,e2){var n3=this,r2=!!b.u(e2)||e2,f2=b.p(t2),l3=function(t3,e3){var i2=b.w(n3.$u?Date.UTC(n3.$y,e3,t3):new Date(n3.$y,e3,t3),n3);return r2?i2:i2.endOf(a)},$2=function(t3,e3){return b.w(n3.toDate()[t3].apply(n3.toDate("s"),(r2?[0,0,0,0]:[23,59,59,999]).slice(e3)),n3)},y2=this.$W,M3=this.$M,m3=this.$D,v2="set"+(this.$u?"UTC":"");switch(f2){case h:return r2?l3(1,0):l3(31,11);case c:return r2?l3(1,M3):l3(0,M3+1);case o:var g2=this.$locale().weekStart||0,D2=(y2<g2?y2+7:y2)-g2;return l3(r2?m3-D2:m3+(6-D2),M3);case a:case d:return $2(v2+"Hours",0);case u:return $2(v2+"Minutes",1);case s2:return $2(v2+"Seconds",2);case i:return $2(v2+"Milliseconds",3);default:return this.clone()}},m2.endOf=function(t2){return this.startOf(t2,!1)},m2.$set=function(t2,e2){var n3,o2=b.p(t2),f2="set"+(this.$u?"UTC":""),l3=(n3={},n3[a]=f2+"Date",n3[d]=f2+"Date",n3[c]=f2+"Month",n3[h]=f2+"FullYear",n3[u]=f2+"Hours",n3[s2]=f2+"Minutes",n3[i]=f2+"Seconds",n3[r]=f2+"Milliseconds",n3)[o2],$2=o2===a?this.$D+(e2-this.$W):e2;if(o2===c||o2===h){var y2=this.clone().set(d,1);y2.$d[l3]($2),y2.init(),this.$d=y2.set(d,Math.min(this.$D,y2.daysInMonth())).$d}else l3&&this.$d[l3]($2);return this.init(),this},m2.set=function(t2,e2){return this.clone().$set(t2,e2)},m2.get=function(t2){return this[b.p(t2)]()},m2.add=function(r2,f2){var d2,l3=this;r2=Number(r2);var $2=b.p(f2),y2=function(t2){var e2=O(l3);return b.w(e2.date(e2.date()+Math.round(t2*r2)),l3)};if($2===c)return this.set(c,this.$M+r2);if($2===h)return this.set(h,this.$y+r2);if($2===a)return y2(1);if($2===o)return y2(7);var M3=(d2={},d2[s2]=e,d2[u]=n2,d2[i]=t,d2)[$2]||1,m3=this.$d.getTime()+r2*M3;return b.w(m3,this)},m2.subtract=function(t2,e2){return this.add(-1*t2,e2)},m2.format=function(t2){var e2=this,n3=this.$locale();if(!this.isValid())return n3.invalidDate||l2;var r2=t2||"YYYY-MM-DDTHH:mm:ssZ",i2=b.z(this),s3=this.$H,u2=this.$m,a2=this.$M,o2=n3.weekdays,c2=n3.months,f2=n3.meridiem,h2=function(t3,n4,i3,s4){return t3&&(t3[n4]||t3(e2,r2))||i3[n4].slice(0,s4)},d2=function(t3){return b.s(s3%12||12,t3,"0")},$2=f2||function(t3,e3,n4){var r3=t3<12?"AM":"PM";return n4?r3.toLowerCase():r3};return r2.replace(y,function(t3,r3){return r3||function(t4){switch(t4){case"YY":return String(e2.$y).slice(-2);case"YYYY":return b.s(e2.$y,4,"0");case"M":return a2+1;case"MM":return b.s(a2+1,2,"0");case"MMM":return h2(n3.monthsShort,a2,c2,3);case"MMMM":return h2(c2,a2);case"D":return e2.$D;case"DD":return b.s(e2.$D,2,"0");case"d":return String(e2.$W);case"dd":return h2(n3.weekdaysMin,e2.$W,o2,2);case"ddd":return h2(n3.weekdaysShort,e2.$W,o2,3);case"dddd":return o2[e2.$W];case"H":return String(s3);case"HH":return b.s(s3,2,"0");case"h":return d2(1);case"hh":return d2(2);case"a":return $2(s3,u2,!0);case"A":return $2(s3,u2,!1);case"m":return String(u2);case"mm":return b.s(u2,2,"0");case"s":return String(e2.$s);case"ss":return b.s(e2.$s,2,"0");case"SSS":return b.s(e2.$ms,3,"0");case"Z":return i2}return null}(t3)||i2.replace(":","")})},m2.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m2.diff=function(r2,d2,l3){var $2,y2=this,M3=b.p(d2),m3=O(r2),v2=(m3.utcOffset()-this.utcOffset())*e,g2=this-m3,D2=function(){return b.m(y2,m3)};switch(M3){case h:$2=D2()/12;break;case c:$2=D2();break;case f:$2=D2()/3;break;case o:$2=(g2-v2)/6048e5;break;case a:$2=(g2-v2)/864e5;break;case u:$2=g2/n2;break;case s2:$2=g2/e;break;case i:$2=g2/t;break;default:$2=g2}return l3?$2:b.a($2)},m2.daysInMonth=function(){return this.endOf(c).$D},m2.$locale=function(){return D[this.$L]},m2.locale=function(t2,e2){if(!t2)return this.$L;var n3=this.clone(),r2=w(t2,e2,!0);return r2&&(n3.$L=r2),n3},m2.clone=function(){return b.w(this.$d,this)},m2.toDate=function(){return new Date(this.valueOf())},m2.toJSON=function(){return this.isValid()?this.toISOString():null},m2.toISOString=function(){return this.$d.toISOString()},m2.toString=function(){return this.$d.toUTCString()},M2}(),k=_.prototype;return O.prototype=k,[["$ms",r],["$s",i],["$m",s2],["$H",u],["$W",a],["$M",c],["$y",h],["$D",d]].forEach(function(t2){k[t2[1]]=function(e2){return this.$g(e2,t2[0],t2[1])}}),O.extend=function(t2,e2){return t2.$i||(t2(e2,_,O),t2.$i=!0),O},O.locale=w,O.isDayjs=S,O.unix=function(t2){return O(1e3*t2)},O.en=D[g],O.Ls=D,O.p={},O})}});var require_localeData=__commonJS({"node_modules/dayjs/plugin/localeData.js"(exports,module){(function(n2,e){typeof exports=="object"&&typeof module<"u"?module.exports=e():typeof define=="function"&&define.amd?define(e):(n2=typeof globalThis<"u"?globalThis:n2||self).dayjs_plugin_localeData=e()})(exports,function(){"use strict";return function(n2,e,t){var r=e.prototype,o=function(n3){return n3&&(n3.indexOf?n3:n3.s)},u=function(n3,e2,t2,r2,u2){var i2=n3.name?n3:n3.$locale(),a2=o(i2[e2]),s3=o(i2[t2]),f=a2||s3.map(function(n4){return n4.slice(0,r2)});if(!u2)return f;var d=i2.weekStart;return f.map(function(n4,e3){return f[(e3+(d||0))%7]})},i=function(){return t.Ls[t.locale()]},a=function(n3,e2){return n3.formats[e2]||function(n4){return n4.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(n5,e3,t2){return e3||t2.slice(1)})}(n3.formats[e2.toUpperCase()])},s2=function(){var n3=this;return{months:function(e2){return e2?e2.format("MMMM"):u(n3,"months")},monthsShort:function(e2){return e2?e2.format("MMM"):u(n3,"monthsShort","months",3)},firstDayOfWeek:function(){return n3.$locale().weekStart||0},weekdays:function(e2){return e2?e2.format("dddd"):u(n3,"weekdays")},weekdaysMin:function(e2){return e2?e2.format("dd"):u(n3,"weekdaysMin","weekdays",2)},weekdaysShort:function(e2){return e2?e2.format("ddd"):u(n3,"weekdaysShort","weekdays",3)},longDateFormat:function(e2){return a(n3.$locale(),e2)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return s2.bind(this)()},t.localeData=function(){var n3=i();return{firstDayOfWeek:function(){return n3.weekStart||0},weekdays:function(){return t.weekdays()},weekdaysShort:function(){return t.weekdaysShort()},weekdaysMin:function(){return t.weekdaysMin()},months:function(){return t.months()},monthsShort:function(){return t.monthsShort()},longDateFormat:function(e2){return a(n3,e2)},meridiem:n3.meridiem,ordinal:n3.ordinal}},t.months=function(){return u(i(),"months")},t.monthsShort=function(){return u(i(),"monthsShort","months",3)},t.weekdays=function(n3){return u(i(),"weekdays",null,null,n3)},t.weekdaysShort=function(n3){return u(i(),"weekdaysShort","weekdays",3,n3)},t.weekdaysMin=function(n3){return u(i(),"weekdaysMin","weekdays",2,n3)}}})}});var require_localizedFormat=__commonJS({"node_modules/dayjs/plugin/localizedFormat.js"(exports,module){(function(e,t){typeof exports=="object"&&typeof module<"u"?module.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_localizedFormat=t()})(exports,function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(t,o,n2){var r=o.prototype,i=r.format;n2.en.formats=e,r.format=function(t2){t2===void 0&&(t2="YYYY-MM-DDTHH:mm:ssZ");var o2=this.$locale().formats,n3=function(t3,o3){return t3.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(t4,n4,r2){var i2=r2&&r2.toUpperCase();return n4||o3[r2]||e[r2]||o3[i2].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e2,t5,o4){return t5||o4.slice(1)})})}(t2,o2===void 0?{}:o2);return i.call(this,n3)}}})}});var require_isoWeek=__commonJS({"node_modules/dayjs/plugin/isoWeek.js"(exports,module){(function(e,t){typeof exports=="object"&&typeof module<"u"?module.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_isoWeek=t()})(exports,function(){"use strict";var e="day";return function(t,i,s2){var a=function(t2){return t2.add(4-t2.isoWeekday(),e)},d=i.prototype;d.isoWeekYear=function(){return a(this).year()},d.isoWeek=function(t2){if(!this.$utils().u(t2))return this.add(7*(t2-this.isoWeek()),e);var i2,d2,n3,o,r=a(this),u=(i2=this.isoWeekYear(),d2=this.$u,n3=(d2?s2.utc:s2)().year(i2).startOf("year"),o=4-n3.isoWeekday(),n3.isoWeekday()>4&&(o+=7),n3.add(o,e));return r.diff(u,"week")+1},d.isoWeekday=function(e2){return this.$utils().u(e2)?this.day()||7:this.day(this.day()%7?e2:e2-7)};var n2=d.startOf;d.startOf=function(e2,t2){var i2=this.$utils(),s3=!!i2.u(t2)||t2;return i2.p(e2)==="isoweek"?s3?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):n2.bind(this)(e2,t2)}}})}});var require_weekOfYear=__commonJS({"node_modules/dayjs/plugin/weekOfYear.js"(exports,module){(function(e,t){typeof exports=="object"&&typeof module<"u"?module.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_weekOfYear=t()})(exports,function(){"use strict";var e="week",t="year";return function(i,n2,r){var f=n2.prototype;f.week=function(i2){if(i2===void 0&&(i2=null),i2!==null)return this.add(7*(i2-this.week()),"day");var n3=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var f2=r(this).startOf(t).add(1,t).date(n3),s2=r(this).endOf(e);if(f2.isBefore(s2))return 1}var a=r(this).startOf(t).date(n3).startOf(e).subtract(1,"millisecond"),o=this.diff(a,e,!0);return o<0?r(this).startOf("week").week():Math.ceil(o)},f.weeks=function(e2){return e2===void 0&&(e2=null),this.week(e2)}}})}});var require_customParseFormat=__commonJS({"node_modules/dayjs/plugin/customParseFormat.js"(exports,module){(function(e,t){typeof exports=="object"&&typeof module<"u"?module.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_customParseFormat=t()})(exports,function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n2=/\d\d/,r=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,o={},s2=function(e2){return(e2=+e2)+(e2>68?1900:2e3)},a=function(e2){return function(t2){this[e2]=+t2}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(e2){(this.zone||(this.zone={})).offset=function(e3){if(!e3||e3==="Z")return 0;var t2=e3.match(/([+-]|\d\d)/g),n3=60*t2[1]+(+t2[2]||0);return n3===0?0:t2[0]==="+"?-n3:n3}(e2)}],h=function(e2){var t2=o[e2];return t2&&(t2.indexOf?t2:t2.s.concat(t2.f))},u=function(e2,t2){var n3,r2=o.meridiem;if(r2){for(var i2=1;i2<=24;i2+=1)if(e2.indexOf(r2(i2,0,t2))>-1){n3=i2>12;break}}else n3=e2===(t2?"pm":"PM");return n3},d={A:[i,function(e2){this.afternoon=u(e2,!1)}],a:[i,function(e2){this.afternoon=u(e2,!0)}],S:[/\d/,function(e2){this.milliseconds=100*+e2}],SS:[n2,function(e2){this.milliseconds=10*+e2}],SSS:[/\d{3}/,function(e2){this.milliseconds=+e2}],s:[r,a("seconds")],ss:[r,a("seconds")],m:[r,a("minutes")],mm:[r,a("minutes")],H:[r,a("hours")],h:[r,a("hours")],HH:[r,a("hours")],hh:[r,a("hours")],D:[r,a("day")],DD:[n2,a("day")],Do:[i,function(e2){var t2=o.ordinal,n3=e2.match(/\d+/);if(this.day=n3[0],t2)for(var r2=1;r2<=31;r2+=1)t2(r2).replace(/\[|\]/g,"")===e2&&(this.day=r2)}],M:[r,a("month")],MM:[n2,a("month")],MMM:[i,function(e2){var t2=h("months"),n3=(h("monthsShort")||t2.map(function(e3){return e3.slice(0,3)})).indexOf(e2)+1;if(n3<1)throw new Error;this.month=n3%12||n3}],MMMM:[i,function(e2){var t2=h("months").indexOf(e2)+1;if(t2<1)throw new Error;this.month=t2%12||t2}],Y:[/[+-]?\d+/,a("year")],YY:[n2,function(e2){this.year=s2(e2)}],YYYY:[/\d{4}/,a("year")],Z:f,ZZ:f};function c(n3){var r2,i2;r2=n3,i2=o&&o.formats;for(var s3=(n3=r2.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(t2,n4,r3){var o2=r3&&r3.toUpperCase();return n4||i2[r3]||e[r3]||i2[o2].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e2,t3,n5){return t3||n5.slice(1)})})).match(t),a2=s3.length,f2=0;f2<a2;f2+=1){var h2=s3[f2],u2=d[h2],c2=u2&&u2[0],l2=u2&&u2[1];s3[f2]=l2?{regex:c2,parser:l2}:h2.replace(/^\[|\]$/g,"")}return function(e2){for(var t2={},n4=0,r3=0;n4<a2;n4+=1){var i3=s3[n4];if(typeof i3=="string")r3+=i3.length;else{var o2=i3.regex,f3=i3.parser,h3=e2.slice(r3),u3=o2.exec(h3)[0];f3.call(t2,u3),e2=e2.replace(u3,"")}}return function(e3){var t3=e3.afternoon;if(t3!==void 0){var n5=e3.hours;t3?n5<12&&(e3.hours+=12):n5===12&&(e3.hours=0),delete e3.afternoon}}(t2),t2}}return function(e2,t2,n3){n3.p.customParseFormat=!0,e2&&e2.parseTwoDigitYear&&(s2=e2.parseTwoDigitYear);var r2=t2.prototype,i2=r2.parse;r2.parse=function(e3){var t3=e3.date,r3=e3.utc,s3=e3.args;this.$u=r3;var a2=s3[1];if(typeof a2=="string"){var f2=s3[2]===!0,h2=s3[3]===!0,u2=f2||h2,d2=s3[2];h2&&(d2=s3[2]),o=this.$locale(),!f2&&d2&&(o=n3.Ls[d2]),this.$d=function(e4,t4,n4){try{if(["x","X"].indexOf(t4)>-1)return new Date((t4==="X"?1e3:1)*e4);var r4=c(t4)(e4),i3=r4.year,o2=r4.month,s4=r4.day,a3=r4.hours,f3=r4.minutes,h3=r4.seconds,u3=r4.milliseconds,d3=r4.zone,l3=new Date,m2=s4||(i3||o2?1:l3.getDate()),M2=i3||l3.getFullYear(),Y=0;i3&&!o2||(Y=o2>0?o2-1:l3.getMonth());var p=a3||0,v=f3||0,D=h3||0,g=u3||0;return d3?new Date(Date.UTC(M2,Y,m2,p,v,D,g+60*d3.offset*1e3)):n4?new Date(Date.UTC(M2,Y,m2,p,v,D,g)):new Date(M2,Y,m2,p,v,D,g)}catch{return new Date("")}}(t3,a2,r3),this.init(),d2&&d2!==!0&&(this.$L=this.locale(d2).$L),u2&&t3!=this.format(a2)&&(this.$d=new Date("")),o={}}else if(a2 instanceof Array)for(var l2=a2.length,m=1;m<=l2;m+=1){s3[1]=a2[m-1];var M=n3.apply(this,s3);if(M.isValid()){this.$d=M.$d,this.$L=M.$L,this.init();break}m===l2&&(this.$d=new Date(""))}else i2.call(this,e3)}}})}});var require_papaparse_min=__commonJS({"node_modules/papaparse/papaparse.min.js"(exports,module){(function(e,t){typeof define=="function"&&define.amd?define([],t):typeof module=="object"&&typeof exports<"u"?module.exports=t():e.Papa=t()})(exports,function s2(){"use strict";var f=typeof self<"u"?self:typeof window<"u"?window:f!==void 0?f:{},n2=!f.document&&!!f.postMessage,o=f.IS_PAPA_WORKER||!1,a={},u=0,b={parse:function(e,t){var r2=(t=t||{}).dynamicTyping||!1;if(J(r2)&&(t.dynamicTypingFunction=r2,r2={}),t.dynamicTyping=r2,t.transform=!!J(t.transform)&&t.transform,t.worker&&b.WORKERS_SUPPORTED){var i=function(){if(!b.WORKERS_SUPPORTED)return!1;var e2=(r3=f.URL||f.webkitURL||null,i2=s2.toString(),b.BLOB_URL||(b.BLOB_URL=r3.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",i2,")();"],{type:"text/javascript"})))),t2=new f.Worker(e2),r3,i2;return t2.onmessage=_,t2.id=u++,a[t2.id]=t2}();return i.userStep=t.step,i.userChunk=t.chunk,i.userComplete=t.complete,i.userError=t.error,t.step=J(t.step),t.chunk=J(t.chunk),t.complete=J(t.complete),t.error=J(t.error),delete t.worker,void i.postMessage({input:e,config:t,workerId:i.id})}var n3=null;return b.NODE_STREAM_INPUT,typeof e=="string"?(e=function(e2){return e2.charCodeAt(0)===65279?e2.slice(1):e2}(e),n3=t.download?new l2(t):new p(t)):e.readable===!0&&J(e.read)&&J(e.on)?n3=new g(t):(f.File&&e instanceof File||e instanceof Object)&&(n3=new c(t)),n3.stream(e)},unparse:function(e,t){var n3=!1,_2=!0,m2=",",y2=`\r
2
2
  `,s3='"',a2=s3+s3,r2=!1,i=null,o2=!1;(function(){if(typeof t=="object"){if(typeof t.delimiter!="string"||b.BAD_DELIMITERS.filter(function(e2){return t.delimiter.indexOf(e2)!==-1}).length||(m2=t.delimiter),(typeof t.quotes=="boolean"||typeof t.quotes=="function"||Array.isArray(t.quotes))&&(n3=t.quotes),typeof t.skipEmptyLines!="boolean"&&typeof t.skipEmptyLines!="string"||(r2=t.skipEmptyLines),typeof t.newline=="string"&&(y2=t.newline),typeof t.quoteChar=="string"&&(s3=t.quoteChar),typeof t.header=="boolean"&&(_2=t.header),Array.isArray(t.columns)){if(t.columns.length===0)throw new Error("Option columns is empty");i=t.columns}t.escapeChar!==void 0&&(a2=t.escapeChar+s3),(typeof t.escapeFormulae=="boolean"||t.escapeFormulae instanceof RegExp)&&(o2=t.escapeFormulae instanceof RegExp?t.escapeFormulae:/^[=+\-@\t\r].*$/)}})();var u2=new RegExp(Q(s3),"g");if(typeof e=="string"&&(e=JSON.parse(e)),Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return h2(null,e,r2);if(typeof e[0]=="object")return h2(i||Object.keys(e[0]),e,r2)}else if(typeof e=="object")return typeof e.data=="string"&&(e.data=JSON.parse(e.data)),Array.isArray(e.data)&&(e.fields||(e.fields=e.meta&&e.meta.fields||i),e.fields||(e.fields=Array.isArray(e.data[0])?e.fields:typeof e.data[0]=="object"?Object.keys(e.data[0]):[]),Array.isArray(e.data[0])||typeof e.data[0]=="object"||(e.data=[e.data])),h2(e.fields||[],e.data||[],r2);throw new Error("Unable to serialize unrecognized input");function h2(e2,t2,r3){var i2="";typeof e2=="string"&&(e2=JSON.parse(e2)),typeof t2=="string"&&(t2=JSON.parse(t2));var n4=Array.isArray(e2)&&0<e2.length,s4=!Array.isArray(t2[0]);if(n4&&_2){for(var a3=0;a3<e2.length;a3++)0<a3&&(i2+=m2),i2+=v2(e2[a3],a3);0<t2.length&&(i2+=y2)}for(var o3=0;o3<t2.length;o3++){var u3=n4?e2.length:t2[o3].length,h3=!1,f2=n4?Object.keys(t2[o3]).length===0:t2[o3].length===0;if(r3&&!n4&&(h3=r3==="greedy"?t2[o3].join("").trim()==="":t2[o3].length===1&&t2[o3][0].length===0),r3==="greedy"&&n4){for(var d2=[],l3=0;l3<u3;l3++){var c2=s4?e2[l3]:l3;d2.push(t2[o3][c2])}h3=d2.join("").trim()===""}if(!h3){for(var p2=0;p2<u3;p2++){0<p2&&!f2&&(i2+=m2);var g2=n4&&s4?e2[p2]:p2;i2+=v2(t2[o3][g2],p2)}o3<t2.length-1&&(!r3||0<u3&&!f2)&&(i2+=y2)}}return i2}function v2(e2,t2){if(e2==null)return"";if(e2.constructor===Date)return JSON.stringify(e2).slice(1,25);var r3=!1;o2&&typeof e2=="string"&&o2.test(e2)&&(e2="'"+e2,r3=!0);var i2=e2.toString().replace(u2,a2);return(r3=r3||n3===!0||typeof n3=="function"&&n3(e2,t2)||Array.isArray(n3)&&n3[t2]||function(e3,t3){for(var r4=0;r4<t3.length;r4++)if(-1<e3.indexOf(t3[r4]))return!0;return!1}(i2,b.BAD_DELIMITERS)||-1<i2.indexOf(m2)||i2.charAt(0)===" "||i2.charAt(i2.length-1)===" ")?s3+i2+s3:i2}}};if(b.RECORD_SEP="",b.UNIT_SEP="",b.BYTE_ORDER_MARK="\uFEFF",b.BAD_DELIMITERS=["\r",`
3
3
  `,'"',b.BYTE_ORDER_MARK],b.WORKERS_SUPPORTED=!n2&&!!f.Worker,b.NODE_STREAM_INPUT=1,b.LocalChunkSize=10485760,b.RemoteChunkSize=5242880,b.DefaultDelimiter=",",b.Parser=E,b.ParserHandle=r,b.NetworkStreamer=l2,b.FileStreamer=c,b.StringStreamer=p,b.ReadableStreamStreamer=g,f.jQuery){var d=f.jQuery;d.fn.parse=function(o2){var r2=o2.config||{},u2=[];return this.each(function(e2){if(!(d(this).prop("tagName").toUpperCase()==="INPUT"&&d(this).attr("type").toLowerCase()==="file"&&f.FileReader)||!this.files||this.files.length===0)return!0;for(var t=0;t<this.files.length;t++)u2.push({file:this.files[t],inputElem:this,instanceConfig:d.extend({},r2)})}),e(),this;function e(){if(u2.length!==0){var e2,t,r3,i,n3=u2[0];if(J(o2.before)){var s3=o2.before(n3.file,n3.inputElem);if(typeof s3=="object"){if(s3.action==="abort")return e2="AbortError",t=n3.file,r3=n3.inputElem,i=s3.reason,void(J(o2.error)&&o2.error({name:e2},t,r3,i));if(s3.action==="skip")return void h2();typeof s3.config=="object"&&(n3.instanceConfig=d.extend(n3.instanceConfig,s3.config))}else if(s3==="skip")return void h2()}var a2=n3.instanceConfig.complete;n3.instanceConfig.complete=function(e3){J(a2)&&a2(e3,n3.file,n3.inputElem),h2()},b.parse(n3.file,n3.instanceConfig)}else J(o2.complete)&&o2.complete()}function h2(){u2.splice(0,1),e()}}}function h(e){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},function(e2){var t=w(e2);t.chunkSize=parseInt(t.chunkSize),e2.step||e2.chunk||(t.chunkSize=null),this._handle=new r(t),(this._handle.streamer=this)._config=t}.call(this,e),this.parseChunk=function(e2,t){if(this.isFirstChunk&&J(this._config.beforeFirstChunk)){var r2=this._config.beforeFirstChunk(e2);r2!==void 0&&(e2=r2)}this.isFirstChunk=!1,this._halted=!1;var i=this._partialLine+e2;this._partialLine="";var n3=this._handle.parse(i,this._baseIndex,!this._finished);if(!this._handle.paused()&&!this._handle.aborted()){var s3=n3.meta.cursor;this._finished||(this._partialLine=i.substring(s3-this._baseIndex),this._baseIndex=s3),n3&&n3.data&&(this._rowCount+=n3.data.length);var a2=this._finished||this._config.preview&&this._rowCount>=this._config.preview;if(o)f.postMessage({results:n3,workerId:b.WORKER_ID,finished:a2});else if(J(this._config.chunk)&&!t){if(this._config.chunk(n3,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);n3=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(n3.data),this._completeResults.errors=this._completeResults.errors.concat(n3.errors),this._completeResults.meta=n3.meta),this._completed||!a2||!J(this._config.complete)||n3&&n3.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),a2||n3&&n3.meta.paused||this._nextChunk(),n3}this._halted=!0},this._sendError=function(e2){J(this._config.error)?this._config.error(e2):o&&this._config.error&&f.postMessage({workerId:b.WORKER_ID,error:e2,finished:!1})}}function l2(e){var i;(e=e||{}).chunkSize||(e.chunkSize=b.RemoteChunkSize),h.call(this,e),this._nextChunk=n2?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(e2){this._input=e2,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(i=new XMLHttpRequest,this._config.withCredentials&&(i.withCredentials=this._config.withCredentials),n2||(i.onload=v(this._chunkLoaded,this),i.onerror=v(this._chunkError,this)),i.open(this._config.downloadRequestBody?"POST":"GET",this._input,!n2),this._config.downloadRequestHeaders){var e2=this._config.downloadRequestHeaders;for(var t in e2)i.setRequestHeader(t,e2[t])}if(this._config.chunkSize){var r2=this._start+this._config.chunkSize-1;i.setRequestHeader("Range","bytes="+this._start+"-"+r2)}try{i.send(this._config.downloadRequestBody)}catch(e3){this._chunkError(e3.message)}n2&&i.status===0&&this._chunkError()}},this._chunkLoaded=function(){i.readyState===4&&(i.status<200||400<=i.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:i.responseText.length,this._finished=!this._config.chunkSize||this._start>=function(e2){var t=e2.getResponseHeader("Content-Range");return t===null?-1:parseInt(t.substring(t.lastIndexOf("/")+1))}(i),this.parseChunk(i.responseText)))},this._chunkError=function(e2){var t=i.statusText||e2;this._sendError(new Error(t))}}function c(e){var i,n3;(e=e||{}).chunkSize||(e.chunkSize=b.LocalChunkSize),h.call(this,e);var s3=typeof FileReader<"u";this.stream=function(e2){this._input=e2,n3=e2.slice||e2.webkitSlice||e2.mozSlice,s3?((i=new FileReader).onload=v(this._chunkLoaded,this),i.onerror=v(this._chunkError,this)):i=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var e2=this._input;if(this._config.chunkSize){var t=Math.min(this._start+this._config.chunkSize,this._input.size);e2=n3.call(e2,this._start,t)}var r2=i.readAsText(e2,this._config.encoding);s3||this._chunkLoaded({target:{result:r2}})},this._chunkLoaded=function(e2){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(e2.target.result)},this._chunkError=function(){this._sendError(i.error)}}function p(e){var r2;h.call(this,e=e||{}),this.stream=function(e2){return r2=e2,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var e2,t=this._config.chunkSize;return t?(e2=r2.substring(0,t),r2=r2.substring(t)):(e2=r2,r2=""),this._finished=!r2,this.parseChunk(e2)}}}function g(e){h.call(this,e=e||{});var t=[],r2=!0,i=!1;this.pause=function(){h.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){h.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(e2){this._input=e2,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){i&&t.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),t.length?this.parseChunk(t.shift()):r2=!0},this._streamData=v(function(e2){try{t.push(typeof e2=="string"?e2:e2.toString(this._config.encoding)),r2&&(r2=!1,this._checkIsFinished(),this.parseChunk(t.shift()))}catch(e3){this._streamError(e3)}},this),this._streamError=v(function(e2){this._streamCleanUp(),this._sendError(e2)},this),this._streamEnd=v(function(){this._streamCleanUp(),i=!0,this._streamData("")},this),this._streamCleanUp=v(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function r(m2){var a2,o2,u2,i=Math.pow(2,53),n3=-i,s3=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,h2=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,t=this,r2=0,f2=0,d2=!1,e=!1,l3=[],c2={data:[],errors:[],meta:{}};if(J(m2.step)){var p2=m2.step;m2.step=function(e2){if(c2=e2,_2())g2();else{if(g2(),c2.data.length===0)return;r2+=e2.data.length,m2.preview&&r2>m2.preview?o2.abort():(c2.data=c2.data[0],p2(c2,t))}}}function y2(e2){return m2.skipEmptyLines==="greedy"?e2.join("").trim()==="":e2.length===1&&e2[0].length===0}function g2(){return c2&&u2&&(k("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+b.DefaultDelimiter+"'"),u2=!1),m2.skipEmptyLines&&(c2.data=c2.data.filter(function(e2){return!y2(e2)})),_2()&&function(){if(!c2)return;function e2(e3,t3){J(m2.transformHeader)&&(e3=m2.transformHeader(e3,t3)),l3.push(e3)}if(Array.isArray(c2.data[0])){for(var t2=0;_2()&&t2<c2.data.length;t2++)c2.data[t2].forEach(e2);c2.data.splice(0,1)}else c2.data.forEach(e2)}(),function(){if(!c2||!m2.header&&!m2.dynamicTyping&&!m2.transform)return c2;function e2(e3,t3){var r3,i2=m2.header?{}:[];for(r3=0;r3<e3.length;r3++){var n4=r3,s4=e3[r3];m2.header&&(n4=r3>=l3.length?"__parsed_extra":l3[r3]),m2.transform&&(s4=m2.transform(s4,n4)),s4=v2(n4,s4),n4==="__parsed_extra"?(i2[n4]=i2[n4]||[],i2[n4].push(s4)):i2[n4]=s4}return m2.header&&(r3>l3.length?k("FieldMismatch","TooManyFields","Too many fields: expected "+l3.length+" fields but parsed "+r3,f2+t3):r3<l3.length&&k("FieldMismatch","TooFewFields","Too few fields: expected "+l3.length+" fields but parsed "+r3,f2+t3)),i2}var t2=1;return!c2.data.length||Array.isArray(c2.data[0])?(c2.data=c2.data.map(e2),t2=c2.data.length):c2.data=e2(c2.data,0),m2.header&&c2.meta&&(c2.meta.fields=l3),f2+=t2,c2}()}function _2(){return m2.header&&l3.length===0}function v2(e2,t2){return r3=e2,m2.dynamicTypingFunction&&m2.dynamicTyping[r3]===void 0&&(m2.dynamicTyping[r3]=m2.dynamicTypingFunction(r3)),(m2.dynamicTyping[r3]||m2.dynamicTyping)===!0?t2==="true"||t2==="TRUE"||t2!=="false"&&t2!=="FALSE"&&(function(e3){if(s3.test(e3)){var t3=parseFloat(e3);if(n3<t3&&t3<i)return!0}return!1}(t2)?parseFloat(t2):h2.test(t2)?new Date(t2):t2===""?null:t2):t2;var r3}function k(e2,t2,r3,i2){var n4={type:e2,code:t2,message:r3};i2!==void 0&&(n4.row=i2),c2.errors.push(n4)}this.parse=function(e2,t2,r3){var i2=m2.quoteChar||'"';if(m2.newline||(m2.newline=function(e3,t3){e3=e3.substring(0,1048576);var r4=new RegExp(Q(t3)+"([^]*?)"+Q(t3),"gm"),i3=(e3=e3.replace(r4,"")).split("\r"),n5=e3.split(`
4
4
  `),s5=1<n5.length&&n5[0].length<i3[0].length;if(i3.length===1||s5)return`
@@ -42,7 +42,7 @@ list should be an Array.`),e3.length===0)return new f(0);if(e3.length===1)return
42
42
  agent { publicId }
43
43
  group { publicId }
44
44
  }
45
- `);var add2=createAction("[App] Add AgentAccessRequest",props()),addFailure2=createAction("[IxApi] Add AgentAccessRequest Failure",props()),addSuccess2=createAction("[IxApi] Add AgentAccessRequest Success",props()),didAdd3=createAction("[ChangeNotification] AgentAccessRequest Was Added",props()),didUpdate3=createAction("[ChangeNotification] AgentAccessRequest Was Updated",props()),didRemove3=createAction("[ChangeNotification] AgentAccessRequest Was Removed",props()),didRemoveList2=createAction("[ChangeNotification] AgentAccessRequest List Was Removed",props());var activateAlarming=createAction("[App] Activate AgentAlarmingApp",props()),activateAlarmingFailure=createAction("[IxApi] Activate AgentAlarmingApp Failure",props()),activateAlarmingSuccess=createAction("[IxApi] Activate AgentAlarmingApp Success",props()),activateLogging=createAction("[App] Activate AgentLoggingApp",props()),activateLoggingFailure=createAction("[IxApi] Activate AgentLoggingApp Failure",props()),activateLoggingSuccess=createAction("[IxApi] Activate AgentLoggingApp Success",props()),deactivateAlarming=createAction("[App] Deactivate AgentAlarmingApp",props()),deactivateAlarmingFailure=createAction("[IxApi] Deactivate AgentAlarmingApp Failure",props()),deactivateAlarmingSuccess=createAction("[IxApi] Deactivate AgentAlarmingApp Success",props()),deactivateLogging=createAction("[App] Deactivate AgentLoggingApp",props()),deactivateLoggingFailure=createAction("[IxApi] Deactivate AgentLoggingApp Failure",props()),deactivateLoggingSuccess=createAction("[IxApi] Deactivate AgentLoggingApp Success",props());var add3=createAction("[App] Add AgentRouterAdditionalSubnet",props()),addFailure3=createAction("[IxApi] Add AgentRouterAdditionalSubnet Failure",props()),addSuccess3=createAction("[IxApi] Add AgentRouterAdditionalSubnet Success",props()),didAdd4=createAction("[ChangeNotification] AgentRouterAdditionalSubnet Was Added",props()),didUpdate4=createAction("[ChangeNotification] AgentRouterAdditionalSubnet Was Updated",props()),didRemove4=createAction("[ChangeNotification] AgentRouterAdditionalSubnet Was Removed",props()),remove3=createAction("[App] Remove AgentRouterAdditionalSubnet",props()),removeFailure3=createAction("[IxApi] Remove AgentRouterAdditionalSubnet Failure",props()),removeSuccess3=createAction("[IxApi] Remove AgentRouterAdditionalSubnet Success",props()),reset5=createAction("[App] Reset AgentRouterAdditionalSubnet State");var add4=createAction("[App] Add AgentRouterPortForward",props()),addFailure4=createAction("[IxApi] Add AgentRouterPortForward Failure",props()),addSuccess4=createAction("[IxApi] Add AgentRouterPortForward Success",props()),didAdd5=createAction("[ChangeNotification] AgentRouterPortForward Was Added",props()),didRemove5=createAction("[ChangeNotification] AgentRouterPortForward Was Removed",props()),didUpdate5=createAction("[ChangeNotification] AgentRouterPortForward Was Updated",props()),remove4=createAction("[App] Remove AgentRouterPortForward",props()),removeFailure4=createAction("[IxApi] Remove AgentRouterPortForward Failure",props()),removeSuccess4=createAction("[IxApi] Remove AgentRouterPortForward Success",props()),reset6=createAction("[App] Reset AgentRouterPortForward State"),shouldRemove=createAction("[OptimisticMutation] AgentRouterPortForward Should Remove",props()),shouldUpdate2=createAction("[OptimisticMutation] AgentRouterPortForward Should Update",props()),update3=createAction("[App] Update AgentRouterPortForward",props()),updateFailure3=createAction("[IxApi] Update AgentRouterPortForward Failure",props()),updateSuccess3=createAction("[IxApi] Update AgentRouterPortForward Success",props());var importFromReported=createAction("[App] Import From Reported",props()),importFromReportedFailure=createAction("[IxApi] Import From Reported Failure",props()),importFromReportedSuccess=createAction("[IxApi] Import From Reported Success",props()),pushFromServer=createAction("[App] Push From Server",props()),pushFromServerFailure=createAction("[IxApi] Push From Server Failure",props()),pushFromServerSuccess=createAction("[IxApi] Push From Server Success",props()),pushStewardFromServer=createAction("[App] Push Steward From Server",props()),pushStewardFromServerFailure=createAction("[IxApi] Push Steward From Server Failure",props()),pushStewardFromServerSuccess=createAction("[IxApi] Push Steward From Server Success",props()),updateRouterDisplay=createAction("[App] Update Router Display",props()),updateRouterDisplayFailure=createAction("[IxApi] Update Router Display Failure",props()),updateRouterDisplaySuccess=createAction("[IxApi] Update Router Display Success",props()),updateRouterLan=createAction("[App] Update Router LAN",props()),updateRouterLanFailure=createAction("[IxApi] Update Router LAN Failure",props()),updateRouterLanSuccess=createAction("[IxApi] Update Router LAN Success",props()),updateRouterVpn=createAction("[App] Update Router VPN",props()),updateRouterVpnFailure=createAction("[IxApi] Update Router VPN Failure",props()),updateRouterVpnSuccess=createAction("[IxApi] Update Router VPN Success",props()),updateRouterWan=createAction("[App] Update Router WAN",props()),updateRouterWanFailure=createAction("[IxApi] Update Router WAN Failure",props()),updateRouterWanSuccess=createAction("[IxApi] Update Router WAN Success",props()),updateRouterWlan=createAction("[App] Update Router WLAN",props()),updateRouterWlanFailure=createAction("[IxApi] Update Router WLAN Failure",props()),updateRouterWlanSuccess=createAction("[IxApi] Update Router WLAN Success",props()),removeRouterWlan=createAction("[App] Remove Router WLAN",props()),removeRouterWlanFailure=createAction("[IxApi] Remove Router WLAN Failure",props()),removeRouterWlanSuccess=createAction("[IxApi] Remove Router WLAN Success",props()),updateRouterCellular=createAction("[App] Update Router Cellular",props()),updateRouterCellularFailure=createAction("[IxApi] Update Router Cellular Failure",props()),updateRouterCellularSuccess=createAction("[IxApi] Update Router Cellular Success",props()),removeRouterCellular=createAction("[App] Remove Router Cellular",props()),removeRouterCellularFailure=createAction("[IxApi] Remove Router Cellular Failure",props()),removeRouterCellularSuccess=createAction("[IxApi] Remove Router Cellular Success",props());var didAdd6=createAction("[ChangeNotification] AgentConnectedUser Was Added",props()),didRemove6=createAction("[ChangeNotification] AgentConnectedUser Was Removed",props());var add5=createAction("[App] Add AgentDataSource",props()),addFailure5=createAction("[IxApi] Add AgentDataSource Failure",props()),addSuccess5=createAction("[IxApi] Add AgentDataSource Success",props()),didAdd7=createAction("[ChangeNotification] AgentDataSource Was Added",props()),didRemove7=createAction("[ChangeNotification] AgentDataSource Was Removed",props()),didUpdate6=createAction("[ChangeNotification] AgentDataSource Was Updated",props()),loadAll2=createAction("[App] Load AgentDataSource List",props()),loadAllFailure2=createAction("[IxApi] Load AgentDataSource List Failure",props()),loadAllSuccess3=createAction("[IxApi] Load AgentDataSource List Success",props()),remove5=createAction("[App] Remove AgentDataSource",props()),removeFailure5=createAction("[IxApi] Remove AgentDataSource Failure",props()),removeSuccess5=createAction("[IxApi] Remove AgentDataSource Success",props()),reset7=createAction("[App] Reset AgentDataSource State"),update4=createAction("[App] Update AgentDataSource",props()),updateFailure4=createAction("[IxApi] Update AgentDataSource Failure",props()),updateSuccess4=createAction("[IxApi] Update AgentDataSource Success",props());var add6=createAction("[App] Add AgentDevice",props()),addFailure6=createAction("[IxApi] Add AgentDevice Failure",props()),addSuccess6=createAction("[IxApi] Add AgentDevice Success",props()),didAdd8=createAction("[ChangeNotification] AgentDevice Was Added",props()),didRemove8=createAction("[ChangeNotification] AgentDevice Was Removed",props()),didUpdate7=createAction("[ChangeNotification] AgentDevice Was Updated",props()),remove6=createAction("[App] Remove AgentDevice",props()),removeFailure6=createAction("[IxApi] Remove AgentDevice Failure",props()),removeSuccess6=createAction("[IxApi] Remove AgentDevice Success",props()),reset8=createAction("[App] Reset AgentDevice State"),update5=createAction("[App] Update AgentDevice",props()),updateFailure5=createAction("[IxApi] Update AgentDevice Failure",props()),updateSuccess5=createAction("[IxApi] Update AgentDevice Success",props());var addList=createAction("[App] Add AgentMembership List",props()),addListFailure=createAction("[IxApi] Add AgentMembership List Failure",props()),addListSuccess=createAction("[IxApi] Add AgentMembership List Success",props()),didAdd9=createAction("[ChangeNotification] AgentMembership Was Added",props()),didRemove9=createAction("[ChangeNotification] AgentMembership Was Removed",props()),didUpdate8=createAction("[ChangeNotification] AgentMembership Was Updated",props()),ensureAll3=createAction("[App] Ensure All AgentMemberships"),loadAll3=createAction("[App] Load All AgentMemberships"),loadAllFailure3=createAction("[IxApi] Load All AgentMemberships Failure",props()),loadAllSuccess4=createAction("[IxApi] Load All AgentMembership Success",props()),removeList=createAction("[App] Remove AgentMembership List",props()),removeListFailure=createAction("[IxApi] Remove AgentMembership List Failure",props()),removeListSuccess=createAction("[IxApi] Remove AgentMembership List Success",props()),reset9=createAction("[App] Reset AgentMembership State"),update6=createAction("[App] Update AgentMembership",props()),updateFailure6=createAction("[IxApi] Update AgentMembership Failure",props()),updateSuccess6=createAction("[IxApi] Update AgentMembership Success",props());var add7=createAction("[App] Add AgentRouterVpnAccessRule",props()),addFailure7=createAction("[IxApi] Add AgentRouterVpnAccessRule Failure",props()),addSuccess7=createAction("[IxApi] Add AgentRouterVpnAccessRule Success",props()),didAdd10=createAction("[ChangeNotification] AgentRouterVpnAccessRule Was Added",props()),didRemove10=createAction("[ChangeNotification] AgentRouterVpnAccessRule Was Removed",props()),didUpdate9=createAction("[ChangeNotification] AgentRouterVpnAccessRule Was Updated",props()),ensureAll4=createAction("[App] Ensure All AgentRouterVpnAccessRules",props()),loadAll4=createAction("[App] Load All AgentRouterVpnAccessRules",props()),loadAllFailure4=createAction("[IxApi] Load All AgentRouterVpnAccessRules Failure",props()),loadAllSuccess5=createAction("[IxApi] Load All AgentRouterVpnAccessRule Success",props()),remove7=createAction("[App] Remove AgentRouterVpnAccessRule",props()),removeFailure7=createAction("[IxApi] Remove AgentRouterVpnAccessRule Failure",props()),removeSuccess7=createAction("[IxApi] Remove AgentRouterVpnAccessRule Success",props()),reset10=createAction("[App] Reset AgentRouterVpnAccessRule State"),update7=createAction("[App] Update AgentRouterVpnAccessRule",props()),updateFailure7=createAction("[IxApi] Update AgentRouterVpnAccessRule Failure",props()),updateSuccess7=createAction("[IxApi] Update AgentRouterVpnAccessRule Success",props());var add8=createAction("[App] Add AgentServer",props()),addFailure8=createAction("[IxApi] Add AgentServer Failure",props()),addSuccess8=createAction("[IxApi] Add AgentServer Success",props()),didAdd11=createAction("[ChangeNotification] AgentServer Was Added",props()),didRemove11=createAction("[ChangeNotification] AgentServer Was Removed",props()),didUpdate10=createAction("[ChangeNotification] AgentServer Was Updated",props()),remove8=createAction("[App] Remove AgentServer",props()),removeFailure8=createAction("[IxApi] Remove AgentServer Failure",props()),removeSuccess8=createAction("[IxApi] Remove AgentServer Success",props()),reset11=createAction("[App] Reset AgentServer State"),shouldRemove2=createAction("[OptimisticMutation] AgentServer Should Remove",props()),shouldUpdate3=createAction("[OptimisticMutation] AgentServer Should Update",props()),update8=createAction("[App] Update AgentServer",props()),updateFailure8=createAction("[IxApi] Update AgentServer Failure",props()),updateSuccess8=createAction("[IxApi] Update AgentServer Success",props()),updateWithoutDevice=createAction("[App] Update AgentServer Without Device",props()),updateWithoutDeviceFailure=createAction("[IxApi] Update AgentServer Without Device Failure",props()),updateWithoutDeviceSuccess=createAction("[IxApi] Update AgentServer Without Device Success",props()),invalidateTranslations=createAction("[App] Invalidate AgentServer Translations");var add9=createAction("[App] Add Asset",props()),addFailure9=createAction("[IxApi] Add Asset Failure",props()),addSuccess9=createAction("[IxApi] Add Asset Success",props()),addLibrary=createAction("[App] Add Asset Library",props()),addLibraryFailure=createAction("[IxApi] Add Asset Library Failure",props()),addLibrarySuccess=createAction("[IxApi] Add Asset Library Success",props()),addInstanceList=createAction("[App] Add Asset Instance List",props()),addInstanceListFailure=createAction("[IxApi] Add Asset Instance List Failure",props()),addInstanceListSuccess=createAction("[IxApi] Add Asset Instance List Success",props()),didAdd12=createAction("[ChangeNotification] Asset Was Added",props()),didRemove12=createAction("[ChangeNotification] Asset Was Removed",props()),didUpdate11=createAction("[ChangeNotification] Asset Was Updated",props()),detachInstance=createAction("[App] Detach Asset Instance",props()),detachInstanceFailure=createAction("[IxApi] Detach Asset Instance Failure",props()),detachInstanceSuccess=createAction("[IxApi] Detach Asset Instance Success",props()),ensureAll5=createAction("[App] Ensure All Assets"),ensureAllForRoot=createAction("[App] Ensure All Assets For Root",props()),ensureAllRoots=createAction("[App] Ensure All Root Assets"),ensureAllEnabled=createAction("[App] Ensure All Enabled Assets"),ensureAllLibraries=createAction("[App] Ensure All Library Assets"),ensureOne2=createAction("[App] Ensure One Asset",props()),loadAll5=createAction("[App] Load All Assets"),loadAllFailure5=createAction("[IxApi] Load All Assets Failure",props()),loadAllSuccess6=createAction("[IxApi] Load All Assets Success",props()),loadAllForRoot=createAction("[App] Load All Assets For Root",props()),loadAllForRootFailure=createAction("[IxApi] Load All Assets For Root Failure",props()),loadAllForRootSuccess=createAction("[IxApi] Load All Assets For Root Success",props()),loadAllRoots=createAction("[App] Load All Root Assets"),loadAllRootsFailure=createAction("[IxApi] Load All Root Assets Failure",props()),loadAllRootsSuccess=createAction("[IxApi] Load All Root Assets Success",props()),loadAllEnabled=createAction("[App] Load All Enabled Assets"),loadAllEnabledFailure=createAction("[IxApi] Load All Enabled Assets Failure",props()),loadAllEnabledSuccess=createAction("[IxApi] Load All Enabled Assets Success",props()),loadAllLibraries=createAction("[App] Load All Library Assets"),loadAllLibrariesFailure=createAction("[IxApi] Load All Library Assets Failure",props()),loadAllLibrariesSuccess=createAction("[IxApi] Load All Library Assets Success",props()),loadOne2=createAction("[App] Load One Asset",props()),loadOneFailure2=createAction("[IxApi] Load One Asset Failure",props()),loadOneSuccess2=createAction("[IxApi] Load One Asset Success",props()),remove9=createAction("[App] Remove Asset",props()),removeFailure9=createAction("[IxApi] Remove Asset Failure",props()),removeSuccess9=createAction("[IxApi] Remove Asset Success",props()),removeLibrary=createAction("[App] Remove Library Asset",props()),removeLibraryFailure=createAction("[IxApi] Remove Asset Failure",props()),removeLibrarySuccess=createAction("[IxApi] Remove Library Asset Success",props()),update9=createAction("[App] Update Asset",props()),updateFailure9=createAction("[IxApi] Update Asset Failure",props()),updateSuccess9=createAction("[IxApi] Update Asset Success",props()),updateInstance=createAction("[App] Update Asset Instance",props()),updateInstanceFailure=createAction("[IxApi] Update Asset Instance Failure",props()),updateInstanceSuccess=createAction("[IxApi] Update Asset Instance Success",props()),reset12=createAction("[App] Reset Asset State");var add10=createAction("[App] Add ControlledDevice",props()),addFailure10=createAction("[IxApi] Add ControlledDevice Failure",props()),addSuccess10=createAction("[IxApi] Add ControlledDevice Success",props()),didAdd13=createAction("[ChangeNotification] ControlledDevice Was Added",props()),didRemove13=createAction("[ChangeNotification] ControlledDevice Was Removed",props()),didUpdate12=createAction("[ChangeNotification] ControlledDevice Was Updated",props()),ensureAll6=createAction("[App] Ensure All ControlledDevices",props()),loadAll6=createAction("[App] Load All ControlledDevices",props()),loadAllFailure6=createAction("[IxApi] Load All ControlledDevices Failure",props()),loadAllSuccess7=createAction("[IxApi] Load All ControlledDevices Success",props()),remove10=createAction("[App] Remove ControlledDevice",props()),removeFailure10=createAction("[IxApi] Remove ControlledDevice Failure",props()),removeSuccess10=createAction("[IxApi] Remove ControlledDevice Success",props()),reset13=createAction("[App] Reset ControlledDevice State"),update10=createAction("[App] Update ControlledDevice",props()),updateFailure10=createAction("[IxApi] Update ControlledDevice Failure",props()),updateSuccess10=createAction("[IxApi] Update ControlledDevice Success",props());var add11=createAction("[App] Add PageLink",props()),addFailure11=createAction("[IxApi] Add PageLink Failure",props()),addSuccess11=createAction("[IxApi] Add PageLink Success",props()),didAdd14=createAction("[ChangeNotification] PageLink Was Added",props()),didRemove14=createAction("[ChangeNotification] PageLink Was Removed",props()),didUpdate13=createAction("[ChangeNotification] PageLink Was Updated",props()),remove11=createAction("[App] Remove PageLink",props()),removeFailure11=createAction("[IxApi] Remove PageLink Failure",props()),removeSuccess11=createAction("[IxApi] Remove PageLink Success",props()),reset14=createAction("[App] Reset PageLink State"),update11=createAction("[App] Update PageLink",props()),updateFailure11=createAction("[IxApi] Update PageLink Failure",props()),updateSuccess11=createAction("[IxApi] Update PageLink Success",props()),updateMany3=createAction("[App] Update Many PageLinks",props()),updateManyFailure3=createAction("[IxApi] Update Many PageLinks Failure",props()),updateManySuccess3=createAction("[IxApi] Update Many PageLinks Success",props());var adapter=createResourceAdapter({sortComparer:sortByNameAndPublicIdComparer,subresourcePaths:SUBRESOURCE_PATHS,mergeFn:updateResource}),initialState=adapter.getInitialState({allActiveLoaded:!1,allActiveLoadedFields:[],allActiveLoading:!1,allActiveLoadingFields:[],loadedFields:{},query:""}),reducer=createReducer(initialState,on(reset4,()=>__spreadValues({},initialState)),on(addShellAgentListSuccess,(state,{data})=>data?adapter.upsertMany(data,state):state),on(didAdd2,(state,{data})=>data?adapter.upsertOne(data,state):state),on(loadAll,(state,{fields})=>{let allLoadingFields=mergeFields(state.allLoadingFields,fields),allActiveLoadingFields=mergeFields(state.allActiveLoadingFields,fields);return __spreadProps(__spreadValues({},state),{allLoading:!0,allLoadingFields,allActiveLoading:!0,allActiveLoadingFields})}),on(loadAllFailure,state=>__spreadProps(__spreadValues({},state),{allLoading:!1,allLoadingFields:[],allActiveLoading:!1,allActiveLoadingFields:[]})),on(loadAllSuccess2,(state,{data,fields})=>{let allLoadedFields=mergeFields(state.allLoadedFields,fields),allActiveLoadedFields=mergeFields(state.allActiveLoadedFields,fields);return adapter.upsertMany(data,__spreadProps(__spreadValues({},state),{allActiveLoading:!1,allActiveLoadingFields:[],allActiveLoaded:!0,allActiveLoadedFields,allLoading:!1,allLoadingFields:[],allLoaded:!0,allLoadedFields}))}),on(loadAllActive,(state,{fields})=>{let allActiveLoadingFields=mergeFields(state.allActiveLoadingFields,fields);return __spreadProps(__spreadValues({},state),{allActiveLoading:!0,allActiveLoadingFields})}),on(loadAllActiveFailure,state=>__spreadProps(__spreadValues({},state),{allActiveLoading:!1,allActiveLoadingFields:[]})),on(loadAllActiveSuccess,(state,{data,fields})=>{let allActiveLoadedFields=mergeFields(state.allLoadedFields,fields);return adapter.upsertMany(data,__spreadProps(__spreadValues({},state),{allActiveLoading:!1,allActiveLoadingFields:[],allActiveLoaded:!0,allActiveLoadedFields}))}),on(loadOneSuccess,(state,{data,fields,publicId})=>{let loadedFields=mergeLoadedFields(publicId,state.loadedFields,fields);return adapter.upsertOne(data,__spreadProps(__spreadValues({},state),{loadedFields}))}),on(shouldUpdate,didUpdate2,(state,{data,publicId})=>data?!state.allLoaded&&state.allActiveLoaded&&data.activeStatus==="active"?adapter.upsertOne(data,state):adapter.updateOne({id:publicId,changes:data},state):state),on(removeSuccess2,didRemove2,(state,{publicId})=>adapter.removeOne(publicId,state)),on(addSuccess2,didAdd3,(state,{data})=>{let agentId=data?.agent?.publicId;return agentId?adapter.mutate(agentId,"scheduledAccessRequests",state).upsertOne(data.publicId):state}),on(didUpdate3,(state,{data,publicId})=>{let agentId=data.agent?.publicId,status=data.status;return(status==="rejected"||status==="revoked")&&agentId?adapter.mutate(agentId,"scheduledAccessRequests",state).removeOne(publicId):state}),on(didRemove3,(state,{publicId})=>{let agentId=Object.keys(state.entities).find(id=>state.entities[id]?.scheduledAccessRequests?.some(request=>request.publicId===publicId));return agentId?adapter.mutate(agentId,"scheduledAccessRequests",state).removeOne(publicId):state}),on(didRemoveList2,(state,{publicIdList})=>publicIdList.reduce((newState,publicId)=>{let agentId=Object.keys(state.entities).find(id=>newState.entities[id]?.scheduledAccessRequests?.some(request=>request.publicId===publicId));return agentId?adapter.mutate(agentId,"scheduledAccessRequests",newState).removeOne(publicId):newState},state)),on(deactivateAlarmingSuccess,(state,{agentId})=>adapter.updateOne({id:agentId,changes:{alarmingApp:{licence:null,enabled:!1}}},state)),on(deactivateLoggingSuccess,(state,{agentId})=>adapter.updateOne({id:agentId,changes:{loggingApp:{licence:null,enabled:!1}}},state)),on(pushFromServerSuccess,pushStewardFromServerSuccess,(state,{publicId,pushedOn})=>adapter.updateOne({id:publicId,changes:{config:{configPushedOn:pushedOn,publicId}}},state)),on(removeRouterWlanSuccess,(state,{publicId})=>adapter.updateOne({id:publicId,changes:{config:{routerWan:{wlanSsid:null},configFileReportedWlanKeyEnabled:!1,publicId}}},state)),on(updateRouterDisplaySuccess,(state,{publicId,data})=>adapter.updateOne({id:publicId,changes:{config:{routerDisplay:data,publicId}}},state)),on(updateRouterLanSuccess,(state,{publicId,data})=>adapter.updateOne({id:publicId,changes:{config:{routerLan:data,publicId}}},state)),on(updateRouterWanSuccess,(state,{publicId,data})=>adapter.updateOne({id:publicId,changes:{config:{routerWan:data,publicId}}},state)),on(updateRouterWlanSuccess,(state,{publicId,data})=>adapter.updateOne({id:publicId,changes:{config:{routerWan:data,configFileReportedWlanKeyEnabled:!!data.wlanKey,publicId}}},state)),on(didAdd6,(state,{agentId,publicId})=>adapter.mutate(agentId,"connectedUsers",state).upsertOne(publicId)),on(didRemove6,(state,{agentId,publicId})=>adapter.mutate(agentId,"connectedUsers",state).removeOne(publicId)),on(addSuccess3,didAdd4,(state,{data})=>{let agentId=data.agent?.publicId;return agentId?adapter.mutate(agentId,"config.routerAdditionalSubnets",state).upsertOne(data.publicId):state}),on(removeSuccess3,didRemove4,(state,{publicId})=>{let agentId=Object.keys(state.entities).find(id=>state.entities[id]?.config?.routerAdditionalSubnets?.some(subnet=>subnet.publicId===publicId));return agentId?adapter.mutate(agentId,"config.routerAdditionalSubnets",state).removeOne(publicId):state}),on(addSuccess4,didAdd5,(state,{agentId,publicId})=>adapter.mutate(agentId,"config.routerPortForwards",state).upsertOne(publicId)),on(shouldRemove,removeSuccess4,didRemove5,(state,{agentId,publicId})=>adapter.mutate(agentId,"config.routerPortForwards",state).removeOne(publicId)),on(addSuccess7,didAdd10,(state,{data})=>{let agentId=data.agent?.publicId;return agentId?adapter.mutate(agentId,"vpnAccessRules",state).upsertOne(data.publicId):state}),on(removeSuccess7,didRemove10,(state,{publicId})=>{let agentId=Object.keys(state.entities).find(id=>state.entities[id]?.vpnAccessRules?.some(accessRule=>accessRule.publicId===publicId));return agentId?adapter.mutate(agentId,"vpnAccessRules",state).removeOne(publicId):state}),on(addSuccess5,didAdd7,(state,{data,publicId})=>{let agentId=data.agent?.publicId;return agentId?adapter.mutate(agentId,"dataSources",state).upsertOne(publicId):state}),on(removeSuccess5,didRemove7,(state,{publicId})=>{let agentId=Object.keys(state.entities).find(id=>state.entities[id]?.dataSources?.some(dataSource=>dataSource.publicId===publicId));return agentId?adapter.mutate(agentId,"dataSources",state).removeOne(publicId):state}),on(addSuccess6,didAdd8,(state,{agentId,publicId})=>adapter.mutate(agentId,"devices",state).upsertOne(publicId)),on(removeSuccess6,didRemove8,(state,{agentId,publicId})=>adapter.mutate(agentId,"devices",state).removeOne(publicId)),on(didAdd9,(state,{data})=>{let agentId=data.agent?.publicId;return agentId?adapter.mutate(agentId,"memberships",state).upsertOne(data.publicId):state}),on(addListSuccess,(state,{data})=>data.reduce((newState,membership)=>{let assetId=membership.agent?.publicId;return assetId?adapter.mutate(assetId,"memberships",newState).upsertOne(membership.publicId):newState},state)),on(didRemove9,(state,{publicId})=>{let agentId=Object.keys(state.entities).find(id=>state.entities[id]?.memberships?.some(membership=>membership.publicId===publicId));return agentId?adapter.mutate(agentId,"memberships",state).removeOne(publicId):state}),on(removeListSuccess,(state,{publicIdList})=>publicIdList.reduce((newState,publicId)=>{let assetId=Object.keys(state.entities).find(id=>newState.entities[id]?.memberships?.some(membership=>membership.publicId===publicId));return assetId?adapter.mutate(assetId,"memberships",newState).removeOne(publicId):newState},state)),on(addSuccess10,didAdd13,(state,{data})=>{let agent=data?.agent;return agent?.publicId?adapter.upsertOne(agent,state):state}),on(loadAllSuccess7,(state,{data})=>data.reduce((newState,controlledDevice)=>{let agent=controlledDevice.agent;return agent?.publicId?adapter.upsertOne(agent,newState):newState},state)),on(addSuccess11,didAdd14,(state,{data,publicId})=>{let agentId=data?.agent?.publicId;return agentId?adapter.mutate(agentId,"pageLinks",state).upsertOne(publicId):state}),on(removeSuccess11,didRemove14,(state,{publicId})=>{let agentId=Object.keys(state.entities).find(id=>state.entities[id]?.pageLinks?.some(pageLink=>pageLink.publicId===publicId));return agentId?adapter.mutate(agentId,"pageLinks",state).removeOne(publicId):state}),on(addSuccess8,didAdd11,(state,{agentId,publicId})=>adapter.mutate(agentId,"servers",state).upsertOne(publicId)),on(shouldRemove2,removeSuccess8,didRemove11,(state,{publicId})=>{let agentId=Object.keys(state.entities).find(id=>state.entities[id]?.servers?.some(server=>server.publicId===publicId));return agentId?adapter.mutate(agentId,"servers",state).removeOne(publicId):state}),on(updateSuccess9,didUpdate11,(state,{publicId,data})=>{if(data&&"agent"in data){let updates=[],found=Object.values(state.entities).find(agent=>agent?.assets?.some(asset=>asset.publicId===publicId));return found&&updates.push({id:found.publicId,changes:{assets:[]}}),data.agent&&updates.push({id:data.agent.publicId,changes:{assets:[{publicId,reference:{name:"Asset"}}]}}),adapter.updateMany(updates,state)}return state}),on(removeSuccess9,didRemove12,(state,{publicId})=>{let found=Object.values(state.entities).find(agent=>agent?.assets?.some(asset=>asset.publicId===publicId));return found?adapter.updateOne({id:found.publicId,changes:{assets:[]}},state):state})),feature=createFeature({name:FEATURE_NAME,reducer});function isActive(agent){return agent?agent.activeStatus==="active":!1}function isLinkedToAsset(agent){return agent?!!agent.assets?.length:!1}function isNotLinkedToAsset(agent){return!isLinkedToAsset(agent)}var selectAll2=createSelector(feature.selectAgentState,adapter.getSelectors().selectAll),selectAllActive=createSelector(selectAll2,all=>all.filter(isActive)),selectEntity3=publicId=>createSelector(feature.selectEntities,entities=>publicId&&entities[publicId]||null);var selectEntityWithFields=publicId=>createResourceSelectorFactory(selectEntity3(publicId),SUBRESOURCE_PATH_TO_FEATURE_NAME),{selectAllActiveLoaded,selectAllActiveLoadedFields,selectAllActiveLoading,selectAllActiveLoadingFields,selectAllLoading,selectAllLoadingFields,selectAllLoaded,selectAllLoadedFields,selectEntities:selectEntities3,selectLoadedFields}=feature;var FEATURE_NAME2="agentMembership";var adapter2=createResourceAdapter(),initialState2=adapter2.getInitialState(),reducer2=createReducer(initialState2,on(reset9,()=>__spreadValues({},initialState2)),on(addListSuccess,(state,{data})=>adapter2.upsertMany(data,state)),on(didAdd9,(state,{data})=>adapter2.upsertOne(data,state)),on(loadAll3,state=>__spreadProps(__spreadValues({},state),{allLoading:!0})),on(loadAllFailure3,state=>__spreadProps(__spreadValues({},state),{allLoading:!1})),on(loadAllSuccess4,(state,{data})=>adapter2.setAll(data,__spreadProps(__spreadValues({},state),{allLoading:!1,allLoaded:!0}))),on(didRemove9,(state,{publicId})=>adapter2.removeOne(publicId,state)),on(removeListSuccess,(state,{publicIdList})=>adapter2.removeMany(publicIdList,state)),on(updateSuccess6,didUpdate8,(state,{data,publicId})=>adapter2.updateOne({id:publicId,changes:data},state)),on(didAdd2,loadOneSuccess,(state,{data})=>data?.memberships?adapter2.upsertMany(mapAgentToAgentMembershipList(data),state):state),on(loadAllSuccess2,loadAllActiveSuccess,(state,{data})=>hasNonPublicIdFields(data,"memberships")?adapter2.upsertMany(flatMap_default(data.map(mapAgentToAgentMembershipList)),state):state),on(removeSuccess2,didRemove2,(state,{publicId})=>{let publicIdList=Object.keys(state.entities).reduce((ids,id)=>state.entities[id]?.agent?.publicId===publicId?[...ids,id]:ids,[]);return publicIdList.length?adapter2.removeMany(publicIdList,state):state})),feature2=createFeature({name:FEATURE_NAME2,reducer:reducer2});function mapAgentToAgentMembershipList(agent){return mapResourceToSubResourceList(agent,"memberships","agent","Agent")}var selectAll3=createSelector(feature2.selectAgentMembershipState,adapter2.getSelectors().selectAll),{selectAllLoading:selectAllLoading2,selectAllLoaded:selectAllLoaded2,selectEntities:selectEntities4}=feature2;var AgentService=(()=>{let _AgentService=class _AgentService{constructor(api,http){this.api=api,this.http=http}addShellAgentList(body){let url=this.api.url("ShellAgentList"),context3=new HttpContext().set(REQUIRES_COMPANY,!0),headers=this.api.headers,options={context:context3,headers};return this.http.post(url,body,options)}getAll(fields,filters){return whileMoreAfter(moreAfter=>this.getList(fields,filters,moreAfter))}getAllActive(fields){return this.getAll(fields,'eq(activeStatus,"active")')}getAllActiveAndInactive(fields){return forkJoin([this.getAll(fields,'eq(activeStatus,"active")'),this.getAll(fields.filter(field=>INACTIVE_AGENT_FIELDS.includes(field)),'eq(activeStatus,"inactive")')]).pipe(map(([active,inactive])=>({type:active.type,data:[...active.data,...inactive.data],moreAfter:null})))}getByPublicId(publicId,fields){let url=this.api.url("Agent",{publicId}),context3=new HttpContext().set(REQUIRES_COMPANY,!0),headers=this.api.headers,params=new HttpParams({fromObject:{fields:compactFields(fields)}}),options={context:context3,headers,params};return this.http.get(url,options)}getList(fields,filters,pageAfter,pageSize){let url=this.api.url("AgentList"),context3=new HttpContext().set(REQUIRES_COMPANY,!0),headers=this.api.headers,params=new HttpParams({fromObject:__spreadValues(__spreadValues({fields:fields.join(",")},filters?{filters}:{}),getPageParams(pageAfter,pageSize))}),options={context:context3,headers,params};return this.http.get(url,options)}getByPublicIdList(publicIdList,fields){let url=this.api.url("AgentList"),context3=new HttpContext().set(REQUIRES_COMPANY,!0),headers=this.api.headers,params=new HttpParams({fromObject:{fields:fields.join(","),filters:`in(publicId,"${publicIdList.join('","')}")`}}),options={context:context3,headers,params};return this.http.get(url,options)}removeByPublicId(publicId){let url=this.api.url("Agent",{publicId}),context3=new HttpContext().set(REQUIRES_COMPANY,!0),headers=this.api.headers,options={context:context3,headers};return this.http.delete(url,options)}update(body){let url=this.api.url("AgentList"),context3=new HttpContext().set(REQUIRES_COMPANY,!0),headers=this.api.headers,options={context:context3,headers};return this.http.patch(url,body,options)}updateByPublicId(publicId,body){let url=this.api.url("Agent",{publicId}),context3=new HttpContext().set(REQUIRES_COMPANY,!0),headers=this.api.headers,options={context:context3,headers};return this.http.patch(url,body,options)}updateFromTemplate(publicId,body){let url=this.api.url("AgentFromTemplate",{publicId}),context3=new HttpContext().set(REQUIRES_COMPANY,!0),headers=this.api.headers,options={context:context3,headers};return this.http.patch(url,body,options)}updateManyFromTemplate(body){let url=this.api.url("AgentListFromTemplate"),context3=new HttpContext().set(REQUIRES_COMPANY,!0),headers=this.api.headers,options={context:context3,headers};return this.http.patch(url,body,options)}activateAgents(body){let url=this.api.url("AgentListActivate"),context3=new HttpContext().set(REQUIRES_COMPANY,!0),headers=this.api.headers,options={context:context3,headers};return this.http.post(url,body,options)}reboot(publicId){let url=this.api.url("AgentReboot",{agentId:publicId}),context3=new HttpContext().set(REQUIRES_COMPANY,!0),headers=this.api.headers,options={context:context3,headers};return this.http.post(url,null,options)}};_AgentService.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_AgentService)(\u0275\u0275inject(IxApiService),\u0275\u0275inject(HttpClient))},_AgentService.\u0275prov=\u0275\u0275defineInjectable({token:_AgentService,factory:_AgentService.\u0275fac,providedIn:"root"});let AgentService2=_AgentService;return AgentService2})();var AgentEffects=(()=>{let _AgentEffects=class _AgentEffects{constructor(actions$,store,snackBar,service){this.actions$=actions$,this.store=store,this.snackBar=snackBar,this.service=service,this.activate$=createEffect(()=>this.actions$.pipe(ofType(activate),mergeMap(({data})=>this.service.activateAgents(data).pipe(map(()=>activateSuccess({data})),catchError(errorResponse=>of(activateFailure({errors:errorResponse.error?.data??[]}))))))),this.addShellAgentList$=createEffect(()=>this.actions$.pipe(ofType(addShellAgentList),mergeMap(({data})=>this.service.addShellAgentList(data).pipe(map(response=>addShellAgentListSuccess({data:response.data.map(shellAgent=>({publicId:shellAgent.publicId}))})),catchError(errorResponse=>of(addShellAgentListFailure({errors:errorResponse.error?.data??[]}))))))),this.ensureAll$=createEffect(()=>this.actions$.pipe(ofType(ensureAll2),mergeMap(({fields})=>combineLatest([this.store.select(selectAllLoadingFields),this.store.select(selectAllLoadedFields)]).pipe(take(1),mergeMap(([loadingFields,loadedFields])=>fields.every(field=>loadingFields.includes(field)||loadedFields.includes(field))?EMPTY:of(loadAll({fields}))))))),this.ensureAllActive$=createEffect(()=>this.actions$.pipe(ofType(ensureAllActive),mergeMap(({fields})=>combineLatest([this.store.select(selectAllActiveLoadingFields),this.store.select(selectAllActiveLoadedFields)]).pipe(take(1),mergeMap(([loadingFields,loadedFields])=>fields.every(field=>loadingFields.includes(field)||loadedFields.includes(field))?EMPTY:of(loadAllActive({fields}))))))),this.loadOne$=createEffect(()=>this.actions$.pipe(ofType(loadOne),mergeMap(({publicId,fields})=>this.service.getByPublicId(publicId,fields).pipe(map(({data})=>loadOneSuccess({data,fields,publicId})),catchError(errorResponse=>of(loadOneFailure({errors:errorResponse.error?.data??[],publicId}))))))),this.loadAll$=createEffect(()=>this.actions$.pipe(ofType(loadAll),omitLoadedFields({memberships:this.store.select(selectAllLoaded2)}),mergeMap(({fields,originalFields})=>this.service.getAllActiveAndInactive(fields).pipe(map(({data})=>loadAllSuccess2({data,fields:originalFields})),catchError(errorResponse=>of(loadAllFailure({errors:errorResponse.error?.data??[]}))))))),this.loadAllActive$=createEffect(()=>this.actions$.pipe(ofType(loadAllActive),omitLoadedFields({memberships:this.store.select(selectAllLoaded2)}),switchMap(({fields,originalFields})=>this.service.getAllActive(fields).pipe(map(({data})=>loadAllActiveSuccess({data,fields:originalFields})),catchError(errorResponse=>of(loadAllActiveFailure({errors:errorResponse.error?.data??[]}))))))),this.remove$=createEffect(()=>this.actions$.pipe(ofType(remove2),mergeMap(({publicId})=>this.service.removeByPublicId(publicId).pipe(map(()=>removeSuccess2({publicId})),catchError(errorResponse=>of(removeFailure2({errors:errorResponse.error?.data??[]}))))))),this.update$=createEffect(()=>this.actions$.pipe(ofType(update2),mergeMap(({publicId,data})=>this.service.updateByPublicId(publicId,data).pipe(map(()=>updateSuccess2({data:__spreadProps(__spreadValues({},data),{publicId}),publicId})),catchError(errorResponse=>of(updateFailure2({errors:errorResponse.error?.data??[]}))))))),this.updateMany$=createEffect(()=>this.actions$.pipe(ofType(updateMany2),mergeMap(({data})=>this.service.update(data).pipe(map(()=>updateManySuccess2({data})),catchError(errorResponse=>of(updateManyFailure2({errors:errorResponse.error?.data??[]}))))))),this.updateFromTemplate$=createEffect(()=>this.actions$.pipe(ofType(updateFromTemplate),mergeMap(({publicId,data})=>this.service.updateFromTemplate(publicId,data).pipe(map(()=>updateFromTemplateSuccess({publicId})),catchError(errorResponse=>of(updateFromTemplateFailure({errors:errorResponse.error?.data??[]}))))))),this.updateFromTemplateFailure$=createEffect(()=>this.actions$.pipe(ofType(updateFromTemplateFailure),tap(({errors:errors2})=>{errors2[0].message&&this.snackBar.open(errors2[0].message,void 0,{duration:3e3})})),{dispatch:!1}),this.updateManyFromTemplate$=createEffect(()=>this.actions$.pipe(ofType(updateManyFromTemplate),mergeMap(({data})=>this.service.updateManyFromTemplate(data).pipe(map(()=>updateManyFromTemplateSuccess({data})),catchError(errorResponse=>of(updateManyFromTemplateFailure({errors:errorResponse.error?.data??[]}))))))),this.updateManyFromTemplateFailure$=createEffect(()=>this.actions$.pipe(ofType(updateManyFromTemplateFailure),tap(({errors:errors2})=>{errors2[0].message&&this.snackBar.open(errors2[0].message,void 0,{duration:3e3})})),{dispatch:!1})}};_AgentEffects.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_AgentEffects)(\u0275\u0275inject(Actions),\u0275\u0275inject(Store),\u0275\u0275inject(MatSnackBar),\u0275\u0275inject(AgentService))},_AgentEffects.\u0275prov=\u0275\u0275defineInjectable({token:_AgentEffects,factory:_AgentEffects.\u0275fac,providedIn:"root"});let AgentEffects2=_AgentEffects;return AgentEffects2})();var AgentModule=(()=>{let _AgentModule=class _AgentModule{};_AgentModule.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_AgentModule)},_AgentModule.\u0275mod=\u0275\u0275defineNgModule({type:_AgentModule}),_AgentModule.\u0275inj=\u0275\u0275defineInjector({providers:[provideHttpClient(withInterceptorsFromDi())],imports:[MatSnackBarModule,IxApiModule,StoreModule.forFeature(feature),EffectsModule.forFeature([AgentEffects])]});let AgentModule2=_AgentModule;return AgentModule2})();var DeviceStatusColor=function(DeviceStatusColor2){return DeviceStatusColor2.None="transparent",DeviceStatusColor2.Connection="#17bfeb",DeviceStatusColor2.Online="#2ecc71",DeviceStatusColor2.Offline="#c6c6c6",DeviceStatusColor2}(DeviceStatusColor||{}),DEVICE_STATUS_COLORS=[DeviceStatusColor.Connection,DeviceStatusColor.Online,DeviceStatusColor.Offline,DeviceStatusColor.None];function checkIfIsPlaywright(){return window.location.port==="9875"}var isPlaywright=checkIfIsPlaywright();var VpnClientActiveStatus=(()=>{let _VpnClientActiveStatus=class _VpnClientActiveStatus extends BehaviorSubject{constructor(){super(null)}};_VpnClientActiveStatus.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_VpnClientActiveStatus)},_VpnClientActiveStatus.\u0275prov=\u0275\u0275defineInjectable({token:_VpnClientActiveStatus,factory:_VpnClientActiveStatus.\u0275fac,providedIn:"root"});let VpnClientActiveStatus2=_VpnClientActiveStatus;return VpnClientActiveStatus2})();var CAPACITOR_CUSTOM_SCHEME=new InjectionToken("capacitor-custom-scheme",{providedIn:"root",factory:()=>of("capacitor://")});var CAPACITOR_PLATFORM=new InjectionToken("capacitor-platform",{providedIn:"root",factory:()=>window.Capacitor?.platform||"web"});var CAPACITOR_STATE_CHANGES=new InjectionToken("capacitor-app-state-changes",{providedIn:"root",factory:()=>fromEvent(document,"visibilitychange").pipe(map(()=>({isActive:document.visibilityState==="visible"})))});var CAPACITOR_MOBILEVPN_PLUGIN=new InjectionToken("capacitor-openvpn");function hasActiveRequestWithAgent(snapshot,agentId){return snapshot&&snapshot.activeRequest?snapshot.activeRequest.agentId===agentId:!1}var AgentStatusIconModule=(()=>{let _AgentStatusIconModule=class _AgentStatusIconModule{};_AgentStatusIconModule.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_AgentStatusIconModule)},_AgentStatusIconModule.\u0275mod=\u0275\u0275defineNgModule({type:_AgentStatusIconModule}),_AgentStatusIconModule.\u0275inj=\u0275\u0275defineInjector({imports:[CommonModule]});let AgentStatusIconModule2=_AgentStatusIconModule;return AgentStatusIconModule2})();var IconsModule=(()=>{let _IconsModule=class _IconsModule{constructor(domSanitizer,matIconRegistry){Object.keys(LITERALS).forEach(iconName=>{matIconRegistry.addSvgIconLiteral(iconName,domSanitizer.bypassSecurityTrustHtml(LITERALS[iconName]))})}};_IconsModule.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_IconsModule)(\u0275\u0275inject(DomSanitizer),\u0275\u0275inject(MatIconRegistry))},_IconsModule.\u0275mod=\u0275\u0275defineNgModule({type:_IconsModule}),_IconsModule.\u0275inj=\u0275\u0275defineInjector({imports:[SharedModule,AgentStatusIconModule]});let IconsModule2=_IconsModule;return IconsModule2})();var HAPPY_CORNER_DEFAULT_OPTIONS=new InjectionToken("DefaultHappyCornerOptions");function resizeObservableFactory(element,config3){return new Observable(subscriber=>{let observer=new ResizeObserver(entries=>{subscriber.next(entries)});return observer.observe(element,config3),function(){observer.disconnect()}})}var APP_VIEW_CONTAINER=new InjectionToken("AppViewContainer",{providedIn:"root",factory:()=>{let appRef=inject(ApplicationRef);return()=>appRef.components[0]?.instance.vcRef}});var HappyCornerItem=class{constructor(component,options){this.component=component,this.autoSize=!1,this.componentPortal=null,this.hidden=!1,this.id=Symbol(),this.indexChanges=new ReplaySubject(1),this.templateRef=null,this.autoSize=options?.size===void 0,this.hidden=options?.hidden??!1,this.level=options?.level??0,this.order=options?.order??0,this.size=options?.size??0}hide(){this.hidden||(this.hidden=!0,this.component.invalidate())}show(){this.hidden&&(this.hidden=!1,this.component.invalidate())}destroy(){this.component.items.update(items=>items.filter(item=>item!==this)),this.component.cdRef.markForCheck()}onIndexChange(){return this.indexChanges.asObservable()}setLevel(level){level!==this.level&&(this.level=level,this.component.invalidate())}setOrder(order2){order2!==this.order&&(this.order=order2,this.component.invalidate())}setSize(size){size!==this.size&&(this.size=size,this.component.invalidate())}},HappyCornerComponentItem=class extends HappyCornerItem{constructor(component,componentPortal,options){super(component,options),this.componentPortal=componentPortal}},HappyCornerTemplateItem=class extends HappyCornerItem{constructor(component,templateRef,options){super(component,options),this.templateRef=templateRef}};var HappyCornerItemAutoSizerDirective=(()=>{let _HappyCornerItemAutoSizerDirective=class _HappyCornerItemAutoSizerDirective{constructor(){this.destroyRef=inject(DestroyRef),this.sizeChanges$=inject(HappyCornerService).observeSize(inject(ElementRef)),this.item=input.required({alias:"ixHappyCornerItemAutoSizer"})}ngOnInit(){this.item().autoSize&&this.sizeChanges$.pipe(takeUntilDestroyed(this.destroyRef)).subscribe(height=>this.item().setSize(height))}};_HappyCornerItemAutoSizerDirective.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_HappyCornerItemAutoSizerDirective)},_HappyCornerItemAutoSizerDirective.\u0275dir=\u0275\u0275defineDirective({type:_HappyCornerItemAutoSizerDirective,selectors:[["","ixHappyCornerItemAutoSizer",""]],inputs:{item:[1,"ixHappyCornerItemAutoSizer","item"]}});let HappyCornerItemAutoSizerDirective2=_HappyCornerItemAutoSizerDirective;return HappyCornerItemAutoSizerDirective2})();var _forTrack0=($index,$item)=>$item.id;function HappyCornerComponent_For_2_Conditional_0_ng_container_1_Template(rf,ctx){rf&1&&\u0275\u0275elementContainer(0)}function HappyCornerComponent_For_2_Conditional_0_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"div",1),\u0275\u0275template(1,HappyCornerComponent_For_2_Conditional_0_ng_container_1_Template,1,0,"ng-container",2),\u0275\u0275elementEnd()),rf&2){let item_r1=\u0275\u0275nextContext().$implicit;\u0275\u0275property("ixHappyCornerItemAutoSizer",item_r1)("hidden",item_r1.hidden),\u0275\u0275advance(),\u0275\u0275property("ngTemplateOutlet",item_r1.templateRef)}}function HappyCornerComponent_For_2_Conditional_1_ng_template_1_Template(rf,ctx){}function HappyCornerComponent_For_2_Conditional_1_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"div",1),\u0275\u0275template(1,HappyCornerComponent_For_2_Conditional_1_ng_template_1_Template,0,0,"ng-template",3),\u0275\u0275elementEnd()),rf&2){let item_r1=\u0275\u0275nextContext().$implicit;\u0275\u0275property("ixHappyCornerItemAutoSizer",item_r1)("hidden",item_r1.hidden),\u0275\u0275advance(),\u0275\u0275property("cdkPortalOutlet",item_r1.componentPortal)}}function HappyCornerComponent_For_2_Template(rf,ctx){if(rf&1&&\u0275\u0275template(0,HappyCornerComponent_For_2_Conditional_0_Template,2,3,"div",1)(1,HappyCornerComponent_For_2_Conditional_1_Template,2,3,"div",1),rf&2){let item_r1=ctx.$implicit;\u0275\u0275conditional(item_r1.templateRef?0:item_r1.componentPortal?1:-1)}}var HappyCornerComponent=(()=>{let _HappyCornerComponent=class _HappyCornerComponent{constructor(){this.cdRef=inject(ChangeDetectorRef),this.elRef=inject(ElementRef),this.opts=inject(HAPPY_CORNER_DEFAULT_OPTIONS),this.service=inject(HappyCornerService),this.items=signal([]),this.items$=toObservable(this.items),this.reversedItems=computed(()=>[...this.items()].reverse()),effect(()=>{let total=this.items().reduce((acc,item)=>!item.hidden&&item.size>0?[...acc,item.size]:acc,[]).reduce((acc,size,i)=>acc+size+(i===0?32:16),0);this.service.setSafeAreaInset(total)})}insertComponent(portal,options){let insertRef=new HappyCornerComponentItem(this,portal,__spreadValues(__spreadValues({},this.opts),options));return this.items.update(value=>this.insertAtIndex(value,insertRef)),this.cdRef.detectChanges(),insertRef}insertTemplate(templateRef,options){let insertRef=new HappyCornerTemplateItem(this,templateRef,__spreadValues(__spreadValues({},this.opts),options));return this.items.update(value=>this.insertAtIndex(value,insertRef)),this.cdRef.detectChanges(),insertRef}invalidate(){this.items.update(items=>[...items].sort((a,b)=>b.order-a.order))}insertAtIndex(items,newItem){let itemIndex=items.findIndex(item=>newItem.order>item.order);return itemIndex===-1?[...items,newItem]:[...items.slice(0,itemIndex),newItem,...items.slice(itemIndex)]}};_HappyCornerComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_HappyCornerComponent)},_HappyCornerComponent.\u0275cmp=\u0275\u0275defineComponent({type:_HappyCornerComponent,selectors:[["ix-hc-root"]],decls:3,vars:0,consts:[[1,"container"],[1,"row",3,"ixHappyCornerItemAutoSizer","hidden"],[4,"ngTemplateOutlet"],[3,"cdkPortalOutlet"]],template:function(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"div",0),\u0275\u0275repeaterCreate(1,HappyCornerComponent_For_2_Template,2,1,null,null,_forTrack0),\u0275\u0275elementEnd()),rf&2&&(\u0275\u0275advance(),\u0275\u0275repeater(ctx.reversedItems()))},dependencies:[PortalModule,CdkPortalOutlet,NgTemplateOutlet,HappyCornerItemAutoSizerDirective],styles:["[_nghost-%COMP%]{max-width:100vw;padding:16px;display:block;box-sizing:border-box;position:absolute;inset:auto 0 0 auto;bottom:calc(var(--bottom-app-bar-offset, 0px) * -1 + env(safe-area-inset-bottom,0px));z-index:999;pointer-events:none}[_nghost-%COMP%] .container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-end;gap:16px}[_nghost-%COMP%] .container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{pointer-events:initial}[_nghost-%COMP%] .container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]:empty{display:none}"],changeDetection:0});let HappyCornerComponent2=_HappyCornerComponent;return HappyCornerComponent2})();var HappyCornerRef=class{constructor(){this._item$=new ReplaySubject(1)}getItem(){return lastValueFrom(this._item$)}};var HappyCornerService=(()=>{let _HappyCornerService=class _HappyCornerService{constructor(){this.doc=inject(DOCUMENT),this.router=inject(Router),this.vcRef=inject(APP_VIEW_CONTAINER),this.ready$=new ReplaySubject(1)}initialize(){this.router.events.pipe(filter(e=>e instanceof NavigationEnd&&!!this.vcRef()),take(1),map(()=>this.vcRef())).subscribe(vcRef=>{this.componentRef=vcRef.createComponent(HappyCornerComponent),this.viewRef=vcRef.insert(this.componentRef.hostView),this.ready$.next(!0),this.ready$.complete(),this.componentRef.instance.items$.pipe(pairwise()).subscribe(([prev,curr])=>this.checkIndexChanges(prev,curr))})}insertComponent(component,options){return __async(this,null,function*(){yield this.onReady();let hcRef=new HappyCornerRef,injector=Injector.create({providers:[{provide:HappyCornerRef,useValue:hcRef}]}),portal=new ComponentPortal(component,void 0,injector),item=this.componentRef.instance.insertComponent(portal,options);return hcRef._item$.next(item),hcRef._item$.complete(),item})}insertTemplate(template,options){return __async(this,null,function*(){return yield this.onReady(),this.componentRef.instance.insertTemplate(template,options)})}hideAll(){return __async(this,null,function*(){return yield this.onReady(),this.componentRef.instance.items.update(items=>(items.forEach(item=>item.hide()),[...items]))})}hideAllBelow(level){return __async(this,null,function*(){return yield this.onReady(),this.componentRef.instance.items.update(items=>(items.forEach(item=>item[item.level>=level?"show":"hide"]()),[...items]))})}showAll(){return __async(this,null,function*(){return yield this.onReady(),this.componentRef.instance.items.update(items=>(items.forEach(item=>item.show()),[...items]))})}setSafeAreaInset(size){size>0?this.doc.documentElement.style.setProperty("--ix-hc-safe-area-inset",`${size}px`):this.doc.documentElement.style.removeProperty("--ix-hc-safe-area-inset")}observeSize(elementRef){return resizeObservableFactory(elementRef.nativeElement).pipe(map(entries=>entries.reduce((_,entry)=>entry.contentRect.height,0)),distinctUntilChanged())}checkIndexChanges(prev,curr){curr.forEach((ref,currentIndex)=>{let previousIndex=prev.indexOf(ref);previousIndex!==-1&&previousIndex!==currentIndex&&ref.indexChanges.next({previousIndex,currentIndex})})}onReady(){return this.componentRef?Promise.resolve(!0):lastValueFrom(this.ready$)}};_HappyCornerService.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_HappyCornerService)},_HappyCornerService.\u0275prov=\u0275\u0275defineInjectable({token:_HappyCornerService,factory:_HappyCornerService.\u0275fac,providedIn:"root"});let HappyCornerService2=_HappyCornerService;return HappyCornerService2})();function provideHappyCorner(options){return[{provide:HAPPY_CORNER_DEFAULT_OPTIONS,useValue:__spreadValues({level:0,order:0},options)},{provide:APP_INITIALIZER,useFactory:service=>()=>service.initialize(),deps:[HappyCornerService],multi:!0}]}function ViewerComponent_ng_template_2_Template(rf,ctx){}var ViewerComponent=(()=>{let _ViewerComponent=class _ViewerComponent{constructor(){this.cdRef=inject(ChangeDetectorRef),this.elRef=inject(ElementRef),this.destroyRef=inject(DestroyRef),this.bpObserver=inject(BreakpointObserver),this.hcService=inject(HappyCornerService),this.router=inject(Router),this.window=inject(WINDOW),this._hcLevel=1,this._minimized=new BehaviorSubject(!1)}get minimized(){return this._minimized.getValue()}set minimized(minimized){this._minimized.next(!!minimized),this.elRef.nativeElement.classList[this._minimized.getValue()?"add":"remove"]("minimized"),this.cdRef.detectChanges()}ngOnInit(){combineLatest([this._minimized.pipe(distinctUntilChanged()),this.bpObserver.observe([Breakpoints.XSmall,Breakpoints.Small]).pipe(map(state=>state.matches),distinctUntilChanged())]).pipe(takeUntilDestroyed(this.destroyRef)).subscribe(([minimized])=>{minimized?this.hcService.showAll():this.hcService.hideAllBelow(this._hcLevel)})}ngOnDestroy(){this.hcService.showAll()}click(event2){event2.stopPropagation(),this.minimized&&this.resume()}maximize(){this.minimized&&(this.minimized=!1)}minimize(){setTimeout(()=>{this.minimized||(this.minimized=!0),this.url&&(this.window.location.href.endsWith(this.router.url)||this.window.history.replaceState({},"",this.router.url))})}resume(){this.minimized&&this.maximize(),this.url&&(this.window.location.href.endsWith(this.url)||this.window.history.replaceState({},"",this.url))}};_ViewerComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_ViewerComponent)},_ViewerComponent.\u0275cmp=\u0275\u0275defineComponent({type:_ViewerComponent,selectors:[["ix-viewer"]],decls:3,vars:1,consts:[[1,"ix-container",3,"click"],[1,"ix-surface"],[3,"cdkPortalOutlet"]],template:function(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"div",0),\u0275\u0275listener("click",function($event){return ctx.click($event)}),\u0275\u0275elementStart(1,"div",1),\u0275\u0275template(2,ViewerComponent_ng_template_2_Template,0,0,"ng-template",2),\u0275\u0275elementEnd()()),rf&2&&(\u0275\u0275advance(2),\u0275\u0275property("cdkPortalOutlet",ctx.portal))},dependencies:[PortalModule,CdkPortalOutlet],styles:["[_nghost-%COMP%]{position:absolute;inset:0;overflow:visible;backface-visibility:visible;pointer-events:none;z-index:120;will-change:transform,opacity;contain:strict}[_nghost-%COMP%] > .ix-container[_ngcontent-%COMP%]{height:100%;width:100%;inset:auto 0 0 auto;transform-origin:bottom right;background-color:#141414;transition:width .225s ease-out,height .225s ease-out,transform .225s ease-out;will-change:width,height,transform}.minimized[_nghost-%COMP%] > .ix-container[_ngcontent-%COMP%]{height:150px;width:200px;border:1px solid #141414;transform:translate(-16px,calc(var(--ix-hc-safe-area-inset, 16px) * -1 + var(--bottom-app-bar-offset, 0px)))}.minimized[_nghost-%COMP%] > .ix-container[_ngcontent-%COMP%] > .ix-surface[_ngcontent-%COMP%]{height:100%;width:100%}"],changeDetection:0});let ViewerComponent2=_ViewerComponent;return ViewerComponent2})();function _assertThisInitialized(self2){if(self2===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self2}function _inheritsLoose(subClass,superClass){subClass.prototype=Object.create(superClass.prototype),subClass.prototype.constructor=subClass,subClass.__proto__=superClass}var _config={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},_defaults={duration:.5,overwrite:!1,delay:0},_suppressOverwrites,_reverting,_context,_bigNum=1e8,_tinyNum=1/_bigNum,_2PI=Math.PI*2,_HALF_PI=_2PI/4,_gsID=0,_sqrt=Math.sqrt,_cos=Math.cos,_sin=Math.sin,_isString=function(value){return typeof value=="string"},_isFunction=function(value){return typeof value=="function"},_isNumber=function(value){return typeof value=="number"},_isUndefined=function(value){return typeof value>"u"},_isObject=function(value){return typeof value=="object"},_isNotFalse=function(value){return value!==!1},_windowExists=function(){return typeof window<"u"},_isFuncOrString=function(value){return _isFunction(value)||_isString(value)},_isTypedArray=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},_isArray=Array.isArray,_strictNumExp=/(?:-?\.?\d|\.)+/gi,_numExp=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,_numWithUnitExp=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,_complexStringNumExp=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,_relExp=/[+-]=-?[.\d]+/,_delimitedValueExp=/[^,'"\[\]\s]+/gi,_unitExp=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,_globalTimeline,_win,_coreInitted,_doc,_globals={},_installScope={},_coreReady,_install=function(scope){return(_installScope=_merge(scope,_globals))&&gsap},_missingPlugin=function(property,value){return console.warn("Invalid property",property,"set to",value,"Missing plugin? gsap.registerPlugin()")},_warn=function(message,suppress){return!suppress&&console.warn(message)},_addGlobal=function(name,obj){return name&&(_globals[name]=obj)&&_installScope&&(_installScope[name]=obj)||_globals},_emptyFunc=function(){return 0},_startAtRevertConfig={suppressEvents:!0,isStart:!0,kill:!1},_revertConfigNoKill={suppressEvents:!0,kill:!1},_revertConfig={suppressEvents:!0},_reservedProps={},_lazyTweens=[],_lazyLookup={},_lastRenderedFrame,_plugins={},_effects={},_nextGCFrame=30,_harnessPlugins=[],_callbackNames="",_harness=function(targets){var target=targets[0],harnessPlugin,i;if(_isObject(target)||_isFunction(target)||(targets=[targets]),!(harnessPlugin=(target._gsap||{}).harness)){for(i=_harnessPlugins.length;i--&&!_harnessPlugins[i].targetTest(target););harnessPlugin=_harnessPlugins[i]}for(i=targets.length;i--;)targets[i]&&(targets[i]._gsap||(targets[i]._gsap=new GSCache(targets[i],harnessPlugin)))||targets.splice(i,1);return targets},_getCache=function(target){return target._gsap||_harness(toArray(target))[0]._gsap},_getProperty=function(target,property,v){return(v=target[property])&&_isFunction(v)?target[property]():_isUndefined(v)&&target.getAttribute&&target.getAttribute(property)||v},_forEachName=function(names,func){return(names=names.split(",")).forEach(func)||names},_round=function(value){return Math.round(value*1e5)/1e5||0},_roundPrecise=function(value){return Math.round(value*1e7)/1e7||0},_parseRelative=function(start3,value){var operator=value.charAt(0),end2=parseFloat(value.substr(2));return start3=parseFloat(start3),operator==="+"?start3+end2:operator==="-"?start3-end2:operator==="*"?start3*end2:start3/end2},_arrayContainsAny=function(toSearch,toFind){for(var l2=toFind.length,i=0;toSearch.indexOf(toFind[i])<0&&++i<l2;);return i<l2},_lazyRender=function(){var l2=_lazyTweens.length,a=_lazyTweens.slice(0),i,tween;for(_lazyLookup={},_lazyTweens.length=0,i=0;i<l2;i++)tween=a[i],tween&&tween._lazy&&(tween.render(tween._lazy[0],tween._lazy[1],!0)._lazy=0)},_lazySafeRender=function(animation,time,suppressEvents,force){_lazyTweens.length&&!_reverting&&_lazyRender(),animation.render(time,suppressEvents,force||_reverting&&time<0&&(animation._initted||animation._startAt)),_lazyTweens.length&&!_reverting&&_lazyRender()},_numericIfPossible=function(value){var n2=parseFloat(value);return(n2||n2===0)&&(value+"").match(_delimitedValueExp).length<2?n2:_isString(value)?value.trim():value},_passThrough=function(p){return p},_setDefaults=function(obj,defaults2){for(var p in defaults2)p in obj||(obj[p]=defaults2[p]);return obj},_setKeyframeDefaults=function(excludeDuration){return function(obj,defaults2){for(var p in defaults2)p in obj||p==="duration"&&excludeDuration||p==="ease"||(obj[p]=defaults2[p])}},_merge=function(base,toMerge){for(var p in toMerge)base[p]=toMerge[p];return base},_mergeDeep=function _mergeDeep2(base,toMerge){for(var p in toMerge)p!=="__proto__"&&p!=="constructor"&&p!=="prototype"&&(base[p]=_isObject(toMerge[p])?_mergeDeep2(base[p]||(base[p]={}),toMerge[p]):toMerge[p]);return base},_copyExcluding=function(obj,excluding){var copy={},p;for(p in obj)p in excluding||(copy[p]=obj[p]);return copy},_inheritDefaults=function(vars){var parent=vars.parent||_globalTimeline,func=vars.keyframes?_setKeyframeDefaults(_isArray(vars.keyframes)):_setDefaults;if(_isNotFalse(vars.inherit))for(;parent;)func(vars,parent.vars.defaults),parent=parent.parent||parent._dp;return vars},_arraysMatch=function(a1,a2){for(var i=a1.length,match2=i===a2.length;match2&&i--&&a1[i]===a2[i];);return i<0},_addLinkedListItem=function(parent,child,firstProp,lastProp,sortBy2){firstProp===void 0&&(firstProp="_first"),lastProp===void 0&&(lastProp="_last");var prev=parent[lastProp],t;if(sortBy2)for(t=child[sortBy2];prev&&prev[sortBy2]>t;)prev=prev._prev;return prev?(child._next=prev._next,prev._next=child):(child._next=parent[firstProp],parent[firstProp]=child),child._next?child._next._prev=child:parent[lastProp]=child,child._prev=prev,child.parent=child._dp=parent,child},_removeLinkedListItem=function(parent,child,firstProp,lastProp){firstProp===void 0&&(firstProp="_first"),lastProp===void 0&&(lastProp="_last");var prev=child._prev,next=child._next;prev?prev._next=next:parent[firstProp]===child&&(parent[firstProp]=next),next?next._prev=prev:parent[lastProp]===child&&(parent[lastProp]=prev),child._next=child._prev=child.parent=null},_removeFromParent=function(child,onlyIfParentHasAutoRemove){child.parent&&(!onlyIfParentHasAutoRemove||child.parent.autoRemoveChildren)&&child.parent.remove&&child.parent.remove(child),child._act=0},_uncache=function(animation,child){if(animation&&(!child||child._end>animation._dur||child._start<0))for(var a=animation;a;)a._dirty=1,a=a.parent;return animation},_recacheAncestors=function(animation){for(var parent=animation.parent;parent&&parent.parent;)parent._dirty=1,parent.totalDuration(),parent=parent.parent;return animation},_rewindStartAt=function(tween,totalTime,suppressEvents,force){return tween._startAt&&(_reverting?tween._startAt.revert(_revertConfigNoKill):tween.vars.immediateRender&&!tween.vars.autoRevert||tween._startAt.render(totalTime,!0,force))},_hasNoPausedAncestors=function _hasNoPausedAncestors2(animation){return!animation||animation._ts&&_hasNoPausedAncestors2(animation.parent)},_elapsedCycleDuration=function(animation){return animation._repeat?_animationCycle(animation._tTime,animation=animation.duration()+animation._rDelay)*animation:0},_animationCycle=function(tTime,cycleDuration){var whole=Math.floor(tTime/=cycleDuration);return tTime&&whole===tTime?whole-1:whole},_parentToChildTotalTime=function(parentTime,child){return(parentTime-child._start)*child._ts+(child._ts>=0?0:child._dirty?child.totalDuration():child._tDur)},_setEnd=function(animation){return animation._end=_roundPrecise(animation._start+(animation._tDur/Math.abs(animation._ts||animation._rts||_tinyNum)||0))},_alignPlayhead=function(animation,totalTime){var parent=animation._dp;return parent&&parent.smoothChildTiming&&animation._ts&&(animation._start=_roundPrecise(parent._time-(animation._ts>0?totalTime/animation._ts:((animation._dirty?animation.totalDuration():animation._tDur)-totalTime)/-animation._ts)),_setEnd(animation),parent._dirty||_uncache(parent,animation)),animation},_postAddChecks=function(timeline2,child){var t;if((child._time||!child._dur&&child._initted||child._start<timeline2._time&&(child._dur||!child.add))&&(t=_parentToChildTotalTime(timeline2.rawTime(),child),(!child._dur||_clamp(0,child.totalDuration(),t)-child._tTime>_tinyNum)&&child.render(t,!0)),_uncache(timeline2,child)._dp&&timeline2._initted&&timeline2._time>=timeline2._dur&&timeline2._ts){if(timeline2._dur<timeline2.duration())for(t=timeline2;t._dp;)t.rawTime()>=0&&t.totalTime(t._tTime),t=t._dp;timeline2._zTime=-_tinyNum}},_addToTimeline=function(timeline2,child,position,skipChecks){return child.parent&&_removeFromParent(child),child._start=_roundPrecise((_isNumber(position)?position:position||timeline2!==_globalTimeline?_parsePosition(timeline2,position,child):timeline2._time)+child._delay),child._end=_roundPrecise(child._start+(child.totalDuration()/Math.abs(child.timeScale())||0)),_addLinkedListItem(timeline2,child,"_first","_last",timeline2._sort?"_start":0),_isFromOrFromStart(child)||(timeline2._recent=child),skipChecks||_postAddChecks(timeline2,child),timeline2._ts<0&&_alignPlayhead(timeline2,timeline2._tTime),timeline2},_scrollTrigger=function(animation,trigger){return(_globals.ScrollTrigger||_missingPlugin("scrollTrigger",trigger))&&_globals.ScrollTrigger.create(trigger,animation)},_attemptInitTween=function(tween,time,force,suppressEvents,tTime){if(_initTween(tween,time,tTime),!tween._initted)return 1;if(!force&&tween._pt&&!_reverting&&(tween._dur&&tween.vars.lazy!==!1||!tween._dur&&tween.vars.lazy)&&_lastRenderedFrame!==_ticker.frame)return _lazyTweens.push(tween),tween._lazy=[tTime,suppressEvents],1},_parentPlayheadIsBeforeStart=function _parentPlayheadIsBeforeStart2(_ref){var parent=_ref.parent;return parent&&parent._ts&&parent._initted&&!parent._lock&&(parent.rawTime()<0||_parentPlayheadIsBeforeStart2(parent))},_isFromOrFromStart=function(_ref2){var data=_ref2.data;return data==="isFromStart"||data==="isStart"},_renderZeroDurationTween=function(tween,totalTime,suppressEvents,force){var prevRatio=tween.ratio,ratio=totalTime<0||!totalTime&&(!tween._start&&_parentPlayheadIsBeforeStart(tween)&&!(!tween._initted&&_isFromOrFromStart(tween))||(tween._ts<0||tween._dp._ts<0)&&!_isFromOrFromStart(tween))?0:1,repeatDelay=tween._rDelay,tTime=0,pt,iteration,prevIteration;if(repeatDelay&&tween._repeat&&(tTime=_clamp(0,tween._tDur,totalTime),iteration=_animationCycle(tTime,repeatDelay),tween._yoyo&&iteration&1&&(ratio=1-ratio),iteration!==_animationCycle(tween._tTime,repeatDelay)&&(prevRatio=1-ratio,tween.vars.repeatRefresh&&tween._initted&&tween.invalidate())),ratio!==prevRatio||_reverting||force||tween._zTime===_tinyNum||!totalTime&&tween._zTime){if(!tween._initted&&_attemptInitTween(tween,totalTime,force,suppressEvents,tTime))return;for(prevIteration=tween._zTime,tween._zTime=totalTime||(suppressEvents?_tinyNum:0),suppressEvents||(suppressEvents=totalTime&&!prevIteration),tween.ratio=ratio,tween._from&&(ratio=1-ratio),tween._time=0,tween._tTime=tTime,pt=tween._pt;pt;)pt.r(ratio,pt.d),pt=pt._next;totalTime<0&&_rewindStartAt(tween,totalTime,suppressEvents,!0),tween._onUpdate&&!suppressEvents&&_callback(tween,"onUpdate"),tTime&&tween._repeat&&!suppressEvents&&tween.parent&&_callback(tween,"onRepeat"),(totalTime>=tween._tDur||totalTime<0)&&tween.ratio===ratio&&(ratio&&_removeFromParent(tween,1),!suppressEvents&&!_reverting&&(_callback(tween,ratio?"onComplete":"onReverseComplete",!0),tween._prom&&tween._prom()))}else tween._zTime||(tween._zTime=totalTime)},_findNextPauseTween=function(animation,prevTime,time){var child;if(time>prevTime)for(child=animation._first;child&&child._start<=time;){if(child.data==="isPause"&&child._start>prevTime)return child;child=child._next}else for(child=animation._last;child&&child._start>=time;){if(child.data==="isPause"&&child._start<prevTime)return child;child=child._prev}},_setDuration=function(animation,duration,skipUncache,leavePlayhead){var repeat=animation._repeat,dur=_roundPrecise(duration)||0,totalProgress=animation._tTime/animation._tDur;return totalProgress&&!leavePlayhead&&(animation._time*=dur/animation._dur),animation._dur=dur,animation._tDur=repeat?repeat<0?1e10:_roundPrecise(dur*(repeat+1)+animation._rDelay*repeat):dur,totalProgress>0&&!leavePlayhead&&_alignPlayhead(animation,animation._tTime=animation._tDur*totalProgress),animation.parent&&_setEnd(animation),skipUncache||_uncache(animation.parent,animation),animation},_onUpdateTotalDuration=function(animation){return animation instanceof Timeline?_uncache(animation):_setDuration(animation,animation._dur)},_zeroPosition={_start:0,endTime:_emptyFunc,totalDuration:_emptyFunc},_parsePosition=function _parsePosition2(animation,position,percentAnimation){var labels=animation.labels,recent=animation._recent||_zeroPosition,clippedDuration=animation.duration()>=_bigNum?recent.endTime(!1):animation._dur,i,offset3,isPercent;return _isString(position)&&(isNaN(position)||position in labels)?(offset3=position.charAt(0),isPercent=position.substr(-1)==="%",i=position.indexOf("="),offset3==="<"||offset3===">"?(i>=0&&(position=position.replace(/=/,"")),(offset3==="<"?recent._start:recent.endTime(recent._repeat>=0))+(parseFloat(position.substr(1))||0)*(isPercent?(i<0?recent:percentAnimation).totalDuration()/100:1)):i<0?(position in labels||(labels[position]=clippedDuration),labels[position]):(offset3=parseFloat(position.charAt(i-1)+position.substr(i+1)),isPercent&&percentAnimation&&(offset3=offset3/100*(_isArray(percentAnimation)?percentAnimation[0]:percentAnimation).totalDuration()),i>1?_parsePosition2(animation,position.substr(0,i-1),percentAnimation)+offset3:clippedDuration+offset3)):position==null?clippedDuration:+position},_createTweenType=function(type,params,timeline2){var isLegacy=_isNumber(params[1]),varsIndex=(isLegacy?2:1)+(type<2?0:1),vars=params[varsIndex],irVars,parent;if(isLegacy&&(vars.duration=params[1]),vars.parent=timeline2,type){for(irVars=vars,parent=timeline2;parent&&!("immediateRender"in irVars);)irVars=parent.vars.defaults||{},parent=_isNotFalse(parent.vars.inherit)&&parent.parent;vars.immediateRender=_isNotFalse(irVars.immediateRender),type<2?vars.runBackwards=1:vars.startAt=params[varsIndex-1]}return new Tween(params[0],vars,params[varsIndex+1])},_conditionalReturn=function(value,func){return value||value===0?func(value):func},_clamp=function(min2,max2,value){return value<min2?min2:value>max2?max2:value},getUnit=function(value,v){return!_isString(value)||!(v=_unitExp.exec(value))?"":v[1]},clamp=function(min2,max2,value){return _conditionalReturn(value,function(v){return _clamp(min2,max2,v)})},_slice=[].slice,_isArrayLike=function(value,nonEmpty){return value&&_isObject(value)&&"length"in value&&(!nonEmpty&&!value.length||value.length-1 in value&&_isObject(value[0]))&&!value.nodeType&&value!==_win},_flatten=function(ar,leaveStrings,accumulator){return accumulator===void 0&&(accumulator=[]),ar.forEach(function(value){var _accumulator;return _isString(value)&&!leaveStrings||_isArrayLike(value,1)?(_accumulator=accumulator).push.apply(_accumulator,toArray(value)):accumulator.push(value)})||accumulator},toArray=function(value,scope,leaveStrings){return _context&&!scope&&_context.selector?_context.selector(value):_isString(value)&&!leaveStrings&&(_coreInitted||!_wake())?_slice.call((scope||_doc).querySelectorAll(value),0):_isArray(value)?_flatten(value,leaveStrings):_isArrayLike(value)?_slice.call(value,0):value?[value]:[]},selector=function(value){return value=toArray(value)[0]||_warn("Invalid scope")||{},function(v){var el=value.current||value.nativeElement||value;return toArray(v,el.querySelectorAll?el:el===value?_warn("Invalid scope")||_doc.createElement("div"):value)}},shuffle=function(a){return a.sort(function(){return .5-Math.random()})},distribute=function(v){if(_isFunction(v))return v;var vars=_isObject(v)?v:{each:v},ease=_parseEase(vars.ease),from2=vars.from||0,base=parseFloat(vars.base)||0,cache={},isDecimal=from2>0&&from2<1,ratios=isNaN(from2)||isDecimal,axis=vars.axis,ratioX=from2,ratioY=from2;return _isString(from2)?ratioX=ratioY={center:.5,edges:.5,end:1}[from2]||0:!isDecimal&&ratios&&(ratioX=from2[0],ratioY=from2[1]),function(i,target,a){var l2=(a||vars).length,distances=cache[l2],originX,originY,x,y,d,j,max2,min2,wrapAt;if(!distances){if(wrapAt=vars.grid==="auto"?0:(vars.grid||[1,_bigNum])[1],!wrapAt){for(max2=-_bigNum;max2<(max2=a[wrapAt++].getBoundingClientRect().left)&&wrapAt<l2;);wrapAt<l2&&wrapAt--}for(distances=cache[l2]=[],originX=ratios?Math.min(wrapAt,l2)*ratioX-.5:from2%wrapAt,originY=wrapAt===_bigNum?0:ratios?l2*ratioY/wrapAt-.5:from2/wrapAt|0,max2=0,min2=_bigNum,j=0;j<l2;j++)x=j%wrapAt-originX,y=originY-(j/wrapAt|0),distances[j]=d=axis?Math.abs(axis==="y"?y:x):_sqrt(x*x+y*y),d>max2&&(max2=d),d<min2&&(min2=d);from2==="random"&&shuffle(distances),distances.max=max2-min2,distances.min=min2,distances.v=l2=(parseFloat(vars.amount)||parseFloat(vars.each)*(wrapAt>l2?l2-1:axis?axis==="y"?l2/wrapAt:wrapAt:Math.max(wrapAt,l2/wrapAt))||0)*(from2==="edges"?-1:1),distances.b=l2<0?base-l2:base,distances.u=getUnit(vars.amount||vars.each)||0,ease=ease&&l2<0?_invertEase(ease):ease}return l2=(distances[i]-distances.min)/distances.max||0,_roundPrecise(distances.b+(ease?ease(l2):l2)*distances.v)+distances.u}},_roundModifier=function(v){var p=Math.pow(10,((v+"").split(".")[1]||"").length);return function(raw){var n2=_roundPrecise(Math.round(parseFloat(raw)/v)*v*p);return(n2-n2%1)/p+(_isNumber(raw)?0:getUnit(raw))}},snap=function(snapTo,value){var isArray=_isArray(snapTo),radius,is2D;return!isArray&&_isObject(snapTo)&&(radius=isArray=snapTo.radius||_bigNum,snapTo.values?(snapTo=toArray(snapTo.values),(is2D=!_isNumber(snapTo[0]))&&(radius*=radius)):snapTo=_roundModifier(snapTo.increment)),_conditionalReturn(value,isArray?_isFunction(snapTo)?function(raw){return is2D=snapTo(raw),Math.abs(is2D-raw)<=radius?is2D:raw}:function(raw){for(var x=parseFloat(is2D?raw.x:raw),y=parseFloat(is2D?raw.y:0),min2=_bigNum,closest=0,i=snapTo.length,dx,dy;i--;)is2D?(dx=snapTo[i].x-x,dy=snapTo[i].y-y,dx=dx*dx+dy*dy):dx=Math.abs(snapTo[i]-x),dx<min2&&(min2=dx,closest=i);return closest=!radius||min2<=radius?snapTo[closest]:raw,is2D||closest===raw||_isNumber(raw)?closest:closest+getUnit(raw)}:_roundModifier(snapTo))},random=function(min2,max2,roundingIncrement,returnFunction){return _conditionalReturn(_isArray(min2)?!max2:roundingIncrement===!0?!!(roundingIncrement=0):!returnFunction,function(){return _isArray(min2)?min2[~~(Math.random()*min2.length)]:(roundingIncrement=roundingIncrement||1e-5)&&(returnFunction=roundingIncrement<1?Math.pow(10,(roundingIncrement+"").length-2):1)&&Math.floor(Math.round((min2-roundingIncrement/2+Math.random()*(max2-min2+roundingIncrement*.99))/roundingIncrement)*roundingIncrement*returnFunction)/returnFunction})},pipe=function(){for(var _len=arguments.length,functions=new Array(_len),_key=0;_key<_len;_key++)functions[_key]=arguments[_key];return function(value){return functions.reduce(function(v,f){return f(v)},value)}},unitize=function(func,unit){return function(value){return func(parseFloat(value))+(unit||getUnit(value))}},normalize=function(min2,max2,value){return mapRange(min2,max2,0,1,value)},_wrapArray=function(a,wrapper,value){return _conditionalReturn(value,function(index){return a[~~wrapper(index)]})},wrap=function wrap2(min2,max2,value){var range2=max2-min2;return _isArray(min2)?_wrapArray(min2,wrap2(0,min2.length),max2):_conditionalReturn(value,function(value2){return(range2+(value2-min2)%range2)%range2+min2})},wrapYoyo=function wrapYoyo2(min2,max2,value){var range2=max2-min2,total=range2*2;return _isArray(min2)?_wrapArray(min2,wrapYoyo2(0,min2.length-1),max2):_conditionalReturn(value,function(value2){return value2=(total+(value2-min2)%total)%total||0,min2+(value2>range2?total-value2:value2)})},_replaceRandom=function(value){for(var prev=0,s2="",i,nums,end2,isArray;~(i=value.indexOf("random(",prev));)end2=value.indexOf(")",i),isArray=value.charAt(i+7)==="[",nums=value.substr(i+7,end2-i-7).match(isArray?_delimitedValueExp:_strictNumExp),s2+=value.substr(prev,i-prev)+random(isArray?nums:+nums[0],isArray?0:+nums[1],+nums[2]||1e-5),prev=end2+1;return s2+value.substr(prev,value.length-prev)},mapRange=function(inMin,inMax,outMin,outMax,value){var inRange=inMax-inMin,outRange=outMax-outMin;return _conditionalReturn(value,function(value2){return outMin+((value2-inMin)/inRange*outRange||0)})},interpolate=function interpolate2(start3,end2,progress,mutate){var func=isNaN(start3+end2)?0:function(p2){return(1-p2)*start3+p2*end2};if(!func){var isString2=_isString(start3),master={},p,i,interpolators,l2,il;if(progress===!0&&(mutate=1)&&(progress=null),isString2)start3={p:start3},end2={p:end2};else if(_isArray(start3)&&!_isArray(end2)){for(interpolators=[],l2=start3.length,il=l2-2,i=1;i<l2;i++)interpolators.push(interpolate2(start3[i-1],start3[i]));l2--,func=function(p2){p2*=l2;var i2=Math.min(il,~~p2);return interpolators[i2](p2-i2)},progress=end2}else mutate||(start3=_merge(_isArray(start3)?[]:{},start3));if(!interpolators){for(p in end2)_addPropTween.call(master,start3,p,"get",end2[p]);func=function(p2){return _renderPropTweens(p2,master)||(isString2?start3.p:start3)}}}return _conditionalReturn(progress,func)},_getLabelInDirection=function(timeline2,fromTime,backward){var labels=timeline2.labels,min2=_bigNum,p,distance,label;for(p in labels)distance=labels[p]-fromTime,distance<0==!!backward&&distance&&min2>(distance=Math.abs(distance))&&(label=p,min2=distance);return label},_callback=function(animation,type,executeLazyFirst){var v=animation.vars,callback=v[type],prevContext=_context,context3=animation._ctx,params,scope,result;if(callback)return params=v[type+"Params"],scope=v.callbackScope||animation,executeLazyFirst&&_lazyTweens.length&&_lazyRender(),context3&&(_context=context3),result=params?callback.apply(scope,params):callback.call(scope),_context=prevContext,result},_interrupt=function(animation){return _removeFromParent(animation),animation.scrollTrigger&&animation.scrollTrigger.kill(!!_reverting),animation.progress()<1&&_callback(animation,"onInterrupt"),animation},_quickTween,_registerPluginQueue=[],_createPlugin=function(config3){if(config3)if(config3=!config3.name&&config3.default||config3,_windowExists()||config3.headless){var name=config3.name,isFunc=_isFunction(config3),Plugin=name&&!isFunc&&config3.init?function(){this._props=[]}:config3,instanceDefaults={init:_emptyFunc,render:_renderPropTweens,add:_addPropTween,kill:_killPropTweensOf,modifier:_addPluginModifier,rawVars:0},statics={targetTest:0,get:0,getSetter:_getSetter,aliases:{},register:0};if(_wake(),config3!==Plugin){if(_plugins[name])return;_setDefaults(Plugin,_setDefaults(_copyExcluding(config3,instanceDefaults),statics)),_merge(Plugin.prototype,_merge(instanceDefaults,_copyExcluding(config3,statics))),_plugins[Plugin.prop=name]=Plugin,config3.targetTest&&(_harnessPlugins.push(Plugin),_reservedProps[name]=1),name=(name==="css"?"CSS":name.charAt(0).toUpperCase()+name.substr(1))+"Plugin"}_addGlobal(name,Plugin),config3.register&&config3.register(gsap,Plugin,PropTween)}else _registerPluginQueue.push(config3)},_255=255,_colorLookup={aqua:[0,_255,_255],lime:[0,_255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,_255],navy:[0,0,128],white:[_255,_255,_255],olive:[128,128,0],yellow:[_255,_255,0],orange:[_255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[_255,0,0],pink:[_255,192,203],cyan:[0,_255,_255],transparent:[_255,_255,_255,0]},_hue=function(h,m1,m2){return h+=h<0?1:h>1?-1:0,(h*6<1?m1+(m2-m1)*h*6:h<.5?m2:h*3<2?m1+(m2-m1)*(2/3-h)*6:m1)*_255+.5|0},splitColor=function(v,toHSL,forceAlpha){var a=v?_isNumber(v)?[v>>16,v>>8&_255,v&_255]:0:_colorLookup.black,r,g,b,h,s2,l2,max2,min2,d,wasHSL;if(!a){if(v.substr(-1)===","&&(v=v.substr(0,v.length-1)),_colorLookup[v])a=_colorLookup[v];else if(v.charAt(0)==="#"){if(v.length<6&&(r=v.charAt(1),g=v.charAt(2),b=v.charAt(3),v="#"+r+r+g+g+b+b+(v.length===5?v.charAt(4)+v.charAt(4):"")),v.length===9)return a=parseInt(v.substr(1,6),16),[a>>16,a>>8&_255,a&_255,parseInt(v.substr(7),16)/255];v=parseInt(v.substr(1),16),a=[v>>16,v>>8&_255,v&_255]}else if(v.substr(0,3)==="hsl"){if(a=wasHSL=v.match(_strictNumExp),!toHSL)h=+a[0]%360/360,s2=+a[1]/100,l2=+a[2]/100,g=l2<=.5?l2*(s2+1):l2+s2-l2*s2,r=l2*2-g,a.length>3&&(a[3]*=1),a[0]=_hue(h+1/3,r,g),a[1]=_hue(h,r,g),a[2]=_hue(h-1/3,r,g);else if(~v.indexOf("="))return a=v.match(_numExp),forceAlpha&&a.length<4&&(a[3]=1),a}else a=v.match(_strictNumExp)||_colorLookup.transparent;a=a.map(Number)}return toHSL&&!wasHSL&&(r=a[0]/_255,g=a[1]/_255,b=a[2]/_255,max2=Math.max(r,g,b),min2=Math.min(r,g,b),l2=(max2+min2)/2,max2===min2?h=s2=0:(d=max2-min2,s2=l2>.5?d/(2-max2-min2):d/(max2+min2),h=max2===r?(g-b)/d+(g<b?6:0):max2===g?(b-r)/d+2:(r-g)/d+4,h*=60),a[0]=~~(h+.5),a[1]=~~(s2*100+.5),a[2]=~~(l2*100+.5)),forceAlpha&&a.length<4&&(a[3]=1),a},_colorOrderData=function(v){var values=[],c=[],i=-1;return v.split(_colorExp).forEach(function(v2){var a=v2.match(_numWithUnitExp)||[];values.push.apply(values,a),c.push(i+=a.length+1)}),values.c=c,values},_formatColors=function(s2,toHSL,orderMatchData){var result="",colors=(s2+result).match(_colorExp),type=toHSL?"hsla(":"rgba(",i=0,c,shell,d,l2;if(!colors)return s2;if(colors=colors.map(function(color){return(color=splitColor(color,toHSL,1))&&type+(toHSL?color[0]+","+color[1]+"%,"+color[2]+"%,"+color[3]:color.join(","))+")"}),orderMatchData&&(d=_colorOrderData(s2),c=orderMatchData.c,c.join(result)!==d.c.join(result)))for(shell=s2.replace(_colorExp,"1").split(_numWithUnitExp),l2=shell.length-1;i<l2;i++)result+=shell[i]+(~c.indexOf(i)?colors.shift()||type+"0,0,0,0)":(d.length?d:colors.length?colors:orderMatchData).shift());if(!shell)for(shell=s2.split(_colorExp),l2=shell.length-1;i<l2;i++)result+=shell[i]+colors[i];return result+shell[l2]},_colorExp=function(){var s2="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",p;for(p in _colorLookup)s2+="|"+p+"\\b";return new RegExp(s2+")","gi")}(),_hslExp=/hsl[a]?\(/,_colorStringFilter=function(a){var combined=a.join(" "),toHSL;if(_colorExp.lastIndex=0,_colorExp.test(combined))return toHSL=_hslExp.test(combined),a[1]=_formatColors(a[1],toHSL),a[0]=_formatColors(a[0],toHSL,_colorOrderData(a[1])),!0},_tickerActive,_ticker=function(){var _getTime=Date.now,_lagThreshold=500,_adjustedLag=33,_startTime=_getTime(),_lastUpdate=_startTime,_gap=1e3/240,_nextTime=_gap,_listeners2=[],_id,_req,_raf,_self,_delta,_i,_tick=function _tick2(v){var elapsed=_getTime()-_lastUpdate,manual=v===!0,overlap,dispatch,time,frame;if((elapsed>_lagThreshold||elapsed<0)&&(_startTime+=elapsed-_adjustedLag),_lastUpdate+=elapsed,time=_lastUpdate-_startTime,overlap=time-_nextTime,(overlap>0||manual)&&(frame=++_self.frame,_delta=time-_self.time*1e3,_self.time=time=time/1e3,_nextTime+=overlap+(overlap>=_gap?4:_gap-overlap),dispatch=1),manual||(_id=_req(_tick2)),dispatch)for(_i=0;_i<_listeners2.length;_i++)_listeners2[_i](time,_delta,frame,v)};return _self={time:0,frame:0,tick:function(){_tick(!0)},deltaRatio:function(fps){return _delta/(1e3/(fps||60))},wake:function(){_coreReady&&(!_coreInitted&&_windowExists()&&(_win=_coreInitted=window,_doc=_win.document||{},_globals.gsap=gsap,(_win.gsapVersions||(_win.gsapVersions=[])).push(gsap.version),_install(_installScope||_win.GreenSockGlobals||!_win.gsap&&_win||{}),_registerPluginQueue.forEach(_createPlugin)),_raf=typeof requestAnimationFrame<"u"&&requestAnimationFrame,_id&&_self.sleep(),_req=_raf||function(f){return setTimeout(f,_nextTime-_self.time*1e3+1|0)},_tickerActive=1,_tick(2))},sleep:function(){(_raf?cancelAnimationFrame:clearTimeout)(_id),_tickerActive=0,_req=_emptyFunc},lagSmoothing:function(threshold,adjustedLag){_lagThreshold=threshold||1/0,_adjustedLag=Math.min(adjustedLag||33,_lagThreshold)},fps:function(_fps){_gap=1e3/(_fps||240),_nextTime=_self.time*1e3+_gap},add:function(callback,once,prioritize){var func=once?function(t,d,f,v){callback(t,d,f,v),_self.remove(func)}:callback;return _self.remove(callback),_listeners2[prioritize?"unshift":"push"](func),_wake(),func},remove:function(callback,i){~(i=_listeners2.indexOf(callback))&&_listeners2.splice(i,1)&&_i>=i&&_i--},_listeners:_listeners2},_self}(),_wake=function(){return!_tickerActive&&_ticker.wake()},_easeMap={},_customEaseExp=/^[\d.\-M][\d.\-,\s]/,_quotesExp=/["']/g,_parseObjectInString=function(value){for(var obj={},split=value.substr(1,value.length-3).split(":"),key=split[0],i=1,l2=split.length,index,val,parsedVal;i<l2;i++)val=split[i],index=i!==l2-1?val.lastIndexOf(","):val.length,parsedVal=val.substr(0,index),obj[key]=isNaN(parsedVal)?parsedVal.replace(_quotesExp,"").trim():+parsedVal,key=val.substr(index+1).trim();return obj},_valueInParentheses=function(value){var open2=value.indexOf("(")+1,close2=value.indexOf(")"),nested=value.indexOf("(",open2);return value.substring(open2,~nested&&nested<close2?value.indexOf(")",close2+1):close2)},_configEaseFromString=function(name){var split=(name+"").split("("),ease=_easeMap[split[0]];return ease&&split.length>1&&ease.config?ease.config.apply(null,~name.indexOf("{")?[_parseObjectInString(split[1])]:_valueInParentheses(name).split(",").map(_numericIfPossible)):_easeMap._CE&&_customEaseExp.test(name)?_easeMap._CE("",name):ease},_invertEase=function(ease){return function(p){return 1-ease(1-p)}},_propagateYoyoEase=function _propagateYoyoEase2(timeline2,isYoyo){for(var child=timeline2._first,ease;child;)child instanceof Timeline?_propagateYoyoEase2(child,isYoyo):child.vars.yoyoEase&&(!child._yoyo||!child._repeat)&&child._yoyo!==isYoyo&&(child.timeline?_propagateYoyoEase2(child.timeline,isYoyo):(ease=child._ease,child._ease=child._yEase,child._yEase=ease,child._yoyo=isYoyo)),child=child._next},_parseEase=function(ease,defaultEase){return ease&&(_isFunction(ease)?ease:_easeMap[ease]||_configEaseFromString(ease))||defaultEase},_insertEase=function(names,easeIn,easeOut,easeInOut){easeOut===void 0&&(easeOut=function(p){return 1-easeIn(1-p)}),easeInOut===void 0&&(easeInOut=function(p){return p<.5?easeIn(p*2)/2:1-easeIn((1-p)*2)/2});var ease={easeIn,easeOut,easeInOut},lowercaseName;return _forEachName(names,function(name){_easeMap[name]=_globals[name]=ease,_easeMap[lowercaseName=name.toLowerCase()]=easeOut;for(var p in ease)_easeMap[lowercaseName+(p==="easeIn"?".in":p==="easeOut"?".out":".inOut")]=_easeMap[name+"."+p]=ease[p]}),ease},_easeInOutFromOut=function(easeOut){return function(p){return p<.5?(1-easeOut(1-p*2))/2:.5+easeOut((p-.5)*2)/2}},_configElastic=function _configElastic2(type,amplitude,period){var p1=amplitude>=1?amplitude:1,p2=(period||(type?.3:.45))/(amplitude<1?amplitude:1),p3=p2/_2PI*(Math.asin(1/p1)||0),easeOut=function(p){return p===1?1:p1*Math.pow(2,-10*p)*_sin((p-p3)*p2)+1},ease=type==="out"?easeOut:type==="in"?function(p){return 1-easeOut(1-p)}:_easeInOutFromOut(easeOut);return p2=_2PI/p2,ease.config=function(amplitude2,period2){return _configElastic2(type,amplitude2,period2)},ease},_configBack=function _configBack2(type,overshoot){overshoot===void 0&&(overshoot=1.70158);var easeOut=function(p){return p?--p*p*((overshoot+1)*p+overshoot)+1:0},ease=type==="out"?easeOut:type==="in"?function(p){return 1-easeOut(1-p)}:_easeInOutFromOut(easeOut);return ease.config=function(overshoot2){return _configBack2(type,overshoot2)},ease};_forEachName("Linear,Quad,Cubic,Quart,Quint,Strong",function(name,i){var power=i<5?i+1:i;_insertEase(name+",Power"+(power-1),i?function(p){return Math.pow(p,power)}:function(p){return p},function(p){return 1-Math.pow(1-p,power)},function(p){return p<.5?Math.pow(p*2,power)/2:1-Math.pow((1-p)*2,power)/2})});_easeMap.Linear.easeNone=_easeMap.none=_easeMap.Linear.easeIn;_insertEase("Elastic",_configElastic("in"),_configElastic("out"),_configElastic());(function(n2,c){var n1=1/c,n22=2*n1,n3=2.5*n1,easeOut=function(p){return p<n1?n2*p*p:p<n22?n2*Math.pow(p-1.5/c,2)+.75:p<n3?n2*(p-=2.25/c)*p+.9375:n2*Math.pow(p-2.625/c,2)+.984375};_insertEase("Bounce",function(p){return 1-easeOut(1-p)},easeOut)})(7.5625,2.75);_insertEase("Expo",function(p){return p?Math.pow(2,10*(p-1)):0});_insertEase("Circ",function(p){return-(_sqrt(1-p*p)-1)});_insertEase("Sine",function(p){return p===1?1:-_cos(p*_HALF_PI)+1});_insertEase("Back",_configBack("in"),_configBack("out"),_configBack());_easeMap.SteppedEase=_easeMap.steps=_globals.SteppedEase={config:function(steps,immediateStart){steps===void 0&&(steps=1);var p1=1/steps,p2=steps+(immediateStart?0:1),p3=immediateStart?1:0,max2=1-_tinyNum;return function(p){return((p2*_clamp(0,max2,p)|0)+p3)*p1}}};_defaults.ease=_easeMap["quad.out"];_forEachName("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(name){return _callbackNames+=name+","+name+"Params,"});var GSCache=function(target,harness){this.id=_gsID++,target._gsap=this,this.target=target,this.harness=harness,this.get=harness?harness.get:_getProperty,this.set=harness?harness.getSetter:_getSetter},Animation=function(){function Animation2(vars){this.vars=vars,this._delay=+vars.delay||0,(this._repeat=vars.repeat===1/0?-2:vars.repeat||0)&&(this._rDelay=vars.repeatDelay||0,this._yoyo=!!vars.yoyo||!!vars.yoyoEase),this._ts=1,_setDuration(this,+vars.duration,1,1),this.data=vars.data,_context&&(this._ctx=_context,_context.data.push(this)),_tickerActive||_ticker.wake()}var _proto=Animation2.prototype;return _proto.delay=function(value){return value||value===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+value-this._delay),this._delay=value,this):this._delay},_proto.duration=function(value){return arguments.length?this.totalDuration(this._repeat>0?value+(value+this._rDelay)*this._repeat:value):this.totalDuration()&&this._dur},_proto.totalDuration=function(value){return arguments.length?(this._dirty=0,_setDuration(this,this._repeat<0?value:(value-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},_proto.totalTime=function(_totalTime,suppressEvents){if(_wake(),!arguments.length)return this._tTime;var parent=this._dp;if(parent&&parent.smoothChildTiming&&this._ts){for(_alignPlayhead(this,_totalTime),!parent._dp||parent.parent||_postAddChecks(parent,this);parent&&parent.parent;)parent.parent._time!==parent._start+(parent._ts>=0?parent._tTime/parent._ts:(parent.totalDuration()-parent._tTime)/-parent._ts)&&parent.totalTime(parent._tTime,!0),parent=parent.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&_totalTime<this._tDur||this._ts<0&&_totalTime>0||!this._tDur&&!_totalTime)&&_addToTimeline(this._dp,this,this._start-this._delay)}return(this._tTime!==_totalTime||!this._dur&&!suppressEvents||this._initted&&Math.abs(this._zTime)===_tinyNum||!_totalTime&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=_totalTime),_lazySafeRender(this,_totalTime,suppressEvents)),this},_proto.time=function(value,suppressEvents){return arguments.length?this.totalTime(Math.min(this.totalDuration(),value+_elapsedCycleDuration(this))%(this._dur+this._rDelay)||(value?this._dur:0),suppressEvents):this._time},_proto.totalProgress=function(value,suppressEvents){return arguments.length?this.totalTime(this.totalDuration()*value,suppressEvents):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>0?1:0},_proto.progress=function(value,suppressEvents){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-value:value)+_elapsedCycleDuration(this),suppressEvents):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},_proto.iteration=function(value,suppressEvents){var cycleDuration=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(value-1)*cycleDuration,suppressEvents):this._repeat?_animationCycle(this._tTime,cycleDuration)+1:1},_proto.timeScale=function(value,suppressEvents){if(!arguments.length)return this._rts===-_tinyNum?0:this._rts;if(this._rts===value)return this;var tTime=this.parent&&this._ts?_parentToChildTotalTime(this.parent._time,this):this._tTime;return this._rts=+value||0,this._ts=this._ps||value===-_tinyNum?0:this._rts,this.totalTime(_clamp(-Math.abs(this._delay),this._tDur,tTime),suppressEvents!==!1),_setEnd(this),_recacheAncestors(this)},_proto.paused=function(value){return arguments.length?(this._ps!==value&&(this._ps=value,value?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(_wake(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==_tinyNum&&(this._tTime-=_tinyNum)))),this):this._ps},_proto.startTime=function(value){if(arguments.length){this._start=value;var parent=this.parent||this._dp;return parent&&(parent._sort||!this.parent)&&_addToTimeline(parent,this,value-this._delay),this}return this._start},_proto.endTime=function(includeRepeats){return this._start+(_isNotFalse(includeRepeats)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},_proto.rawTime=function(wrapRepeats){var parent=this.parent||this._dp;return parent?wrapRepeats&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?_parentToChildTotalTime(parent.rawTime(wrapRepeats),this):this._tTime:this._tTime},_proto.revert=function(config3){config3===void 0&&(config3=_revertConfig);var prevIsReverting=_reverting;return _reverting=config3,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(config3),this.totalTime(-.01,config3.suppressEvents)),this.data!=="nested"&&config3.kill!==!1&&this.kill(),_reverting=prevIsReverting,this},_proto.globalTime=function(rawTime){for(var animation=this,time=arguments.length?rawTime:animation.rawTime();animation;)time=animation._start+time/(Math.abs(animation._ts)||1),animation=animation._dp;return!this.parent&&this._sat?this._sat.globalTime(rawTime):time},_proto.repeat=function(value){return arguments.length?(this._repeat=value===1/0?-2:value,_onUpdateTotalDuration(this)):this._repeat===-2?1/0:this._repeat},_proto.repeatDelay=function(value){if(arguments.length){var time=this._time;return this._rDelay=value,_onUpdateTotalDuration(this),time?this.time(time):this}return this._rDelay},_proto.yoyo=function(value){return arguments.length?(this._yoyo=value,this):this._yoyo},_proto.seek=function(position,suppressEvents){return this.totalTime(_parsePosition(this,position),_isNotFalse(suppressEvents))},_proto.restart=function(includeDelay,suppressEvents){return this.play().totalTime(includeDelay?-this._delay:0,_isNotFalse(suppressEvents))},_proto.play=function(from2,suppressEvents){return from2!=null&&this.seek(from2,suppressEvents),this.reversed(!1).paused(!1)},_proto.reverse=function(from2,suppressEvents){return from2!=null&&this.seek(from2||this.totalDuration(),suppressEvents),this.reversed(!0).paused(!1)},_proto.pause=function(atTime,suppressEvents){return atTime!=null&&this.seek(atTime,suppressEvents),this.paused(!0)},_proto.resume=function(){return this.paused(!1)},_proto.reversed=function(value){return arguments.length?(!!value!==this.reversed()&&this.timeScale(-this._rts||(value?-_tinyNum:0)),this):this._rts<0},_proto.invalidate=function(){return this._initted=this._act=0,this._zTime=-_tinyNum,this},_proto.isActive=function(){var parent=this.parent||this._dp,start3=this._start,rawTime;return!!(!parent||this._ts&&this._initted&&parent.isActive()&&(rawTime=parent.rawTime(!0))>=start3&&rawTime<this.endTime(!0)-_tinyNum)},_proto.eventCallback=function(type,callback,params){var vars=this.vars;return arguments.length>1?(callback?(vars[type]=callback,params&&(vars[type+"Params"]=params),type==="onUpdate"&&(this._onUpdate=callback)):delete vars[type],this):vars[type]},_proto.then=function(onFulfilled){var self2=this;return new Promise(function(resolve){var f=_isFunction(onFulfilled)?onFulfilled:_passThrough,_resolve=function(){var _then=self2.then;self2.then=null,_isFunction(f)&&(f=f(self2))&&(f.then||f===self2)&&(self2.then=_then),resolve(f),self2.then=_then};self2._initted&&self2.totalProgress()===1&&self2._ts>=0||!self2._tTime&&self2._ts<0?_resolve():self2._prom=_resolve})},_proto.kill=function(){_interrupt(this)},Animation2}();_setDefaults(Animation.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-_tinyNum,_prom:0,_ps:!1,_rts:1});var Timeline=function(_Animation){_inheritsLoose(Timeline2,_Animation);function Timeline2(vars,position){var _this;return vars===void 0&&(vars={}),_this=_Animation.call(this,vars)||this,_this.labels={},_this.smoothChildTiming=!!vars.smoothChildTiming,_this.autoRemoveChildren=!!vars.autoRemoveChildren,_this._sort=_isNotFalse(vars.sortChildren),_globalTimeline&&_addToTimeline(vars.parent||_globalTimeline,_assertThisInitialized(_this),position),vars.reversed&&_this.reverse(),vars.paused&&_this.paused(!0),vars.scrollTrigger&&_scrollTrigger(_assertThisInitialized(_this),vars.scrollTrigger),_this}var _proto2=Timeline2.prototype;return _proto2.to=function(targets,vars,position){return _createTweenType(0,arguments,this),this},_proto2.from=function(targets,vars,position){return _createTweenType(1,arguments,this),this},_proto2.fromTo=function(targets,fromVars,toVars,position){return _createTweenType(2,arguments,this),this},_proto2.set=function(targets,vars,position){return vars.duration=0,vars.parent=this,_inheritDefaults(vars).repeatDelay||(vars.repeat=0),vars.immediateRender=!!vars.immediateRender,new Tween(targets,vars,_parsePosition(this,position),1),this},_proto2.call=function(callback,params,position){return _addToTimeline(this,Tween.delayedCall(0,callback,params),position)},_proto2.staggerTo=function(targets,duration,vars,stagger,position,onCompleteAll,onCompleteAllParams){return vars.duration=duration,vars.stagger=vars.stagger||stagger,vars.onComplete=onCompleteAll,vars.onCompleteParams=onCompleteAllParams,vars.parent=this,new Tween(targets,vars,_parsePosition(this,position)),this},_proto2.staggerFrom=function(targets,duration,vars,stagger,position,onCompleteAll,onCompleteAllParams){return vars.runBackwards=1,_inheritDefaults(vars).immediateRender=_isNotFalse(vars.immediateRender),this.staggerTo(targets,duration,vars,stagger,position,onCompleteAll,onCompleteAllParams)},_proto2.staggerFromTo=function(targets,duration,fromVars,toVars,stagger,position,onCompleteAll,onCompleteAllParams){return toVars.startAt=fromVars,_inheritDefaults(toVars).immediateRender=_isNotFalse(toVars.immediateRender),this.staggerTo(targets,duration,toVars,stagger,position,onCompleteAll,onCompleteAllParams)},_proto2.render=function(totalTime,suppressEvents,force){var prevTime=this._time,tDur=this._dirty?this.totalDuration():this._tDur,dur=this._dur,tTime=totalTime<=0?0:_roundPrecise(totalTime),crossingStart=this._zTime<0!=totalTime<0&&(this._initted||!dur),time,child,next,iteration,cycleDuration,prevPaused,pauseTween,timeScale,prevStart,prevIteration,yoyo,isYoyo;if(this!==_globalTimeline&&tTime>tDur&&totalTime>=0&&(tTime=tDur),tTime!==this._tTime||force||crossingStart){if(prevTime!==this._time&&dur&&(tTime+=this._time-prevTime,totalTime+=this._time-prevTime),time=tTime,prevStart=this._start,timeScale=this._ts,prevPaused=!timeScale,crossingStart&&(dur||(prevTime=this._zTime),(totalTime||!suppressEvents)&&(this._zTime=totalTime)),this._repeat){if(yoyo=this._yoyo,cycleDuration=dur+this._rDelay,this._repeat<-1&&totalTime<0)return this.totalTime(cycleDuration*100+totalTime,suppressEvents,force);if(time=_roundPrecise(tTime%cycleDuration),tTime===tDur?(iteration=this._repeat,time=dur):(iteration=~~(tTime/cycleDuration),iteration&&iteration===tTime/cycleDuration&&(time=dur,iteration--),time>dur&&(time=dur)),prevIteration=_animationCycle(this._tTime,cycleDuration),!prevTime&&this._tTime&&prevIteration!==iteration&&this._tTime-prevIteration*cycleDuration-this._dur<=0&&(prevIteration=iteration),yoyo&&iteration&1&&(time=dur-time,isYoyo=1),iteration!==prevIteration&&!this._lock){var rewinding=yoyo&&prevIteration&1,doesWrap=rewinding===(yoyo&&iteration&1);if(iteration<prevIteration&&(rewinding=!rewinding),prevTime=rewinding?0:tTime%dur?dur:tTime,this._lock=1,this.render(prevTime||(isYoyo?0:_roundPrecise(iteration*cycleDuration)),suppressEvents,!dur)._lock=0,this._tTime=tTime,!suppressEvents&&this.parent&&_callback(this,"onRepeat"),this.vars.repeatRefresh&&!isYoyo&&(this.invalidate()._lock=1),prevTime&&prevTime!==this._time||prevPaused!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(dur=this._dur,tDur=this._tDur,doesWrap&&(this._lock=2,prevTime=rewinding?dur:-1e-4,this.render(prevTime,!0),this.vars.repeatRefresh&&!isYoyo&&this.invalidate()),this._lock=0,!this._ts&&!prevPaused)return this;_propagateYoyoEase(this,isYoyo)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(pauseTween=_findNextPauseTween(this,_roundPrecise(prevTime),_roundPrecise(time)),pauseTween&&(tTime-=time-(time=pauseTween._start))),this._tTime=tTime,this._time=time,this._act=!timeScale,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=totalTime,prevTime=0),!prevTime&&time&&!suppressEvents&&!iteration&&(_callback(this,"onStart"),this._tTime!==tTime))return this;if(time>=prevTime&&totalTime>=0)for(child=this._first;child;){if(next=child._next,(child._act||time>=child._start)&&child._ts&&pauseTween!==child){if(child.parent!==this)return this.render(totalTime,suppressEvents,force);if(child.render(child._ts>0?(time-child._start)*child._ts:(child._dirty?child.totalDuration():child._tDur)+(time-child._start)*child._ts,suppressEvents,force),time!==this._time||!this._ts&&!prevPaused){pauseTween=0,next&&(tTime+=this._zTime=-_tinyNum);break}}child=next}else{child=this._last;for(var adjustedTime=totalTime<0?totalTime:time;child;){if(next=child._prev,(child._act||adjustedTime<=child._end)&&child._ts&&pauseTween!==child){if(child.parent!==this)return this.render(totalTime,suppressEvents,force);if(child.render(child._ts>0?(adjustedTime-child._start)*child._ts:(child._dirty?child.totalDuration():child._tDur)+(adjustedTime-child._start)*child._ts,suppressEvents,force||_reverting&&(child._initted||child._startAt)),time!==this._time||!this._ts&&!prevPaused){pauseTween=0,next&&(tTime+=this._zTime=adjustedTime?-_tinyNum:_tinyNum);break}}child=next}}if(pauseTween&&!suppressEvents&&(this.pause(),pauseTween.render(time>=prevTime?0:-_tinyNum)._zTime=time>=prevTime?1:-1,this._ts))return this._start=prevStart,_setEnd(this),this.render(totalTime,suppressEvents,force);this._onUpdate&&!suppressEvents&&_callback(this,"onUpdate",!0),(tTime===tDur&&this._tTime>=this.totalDuration()||!tTime&&prevTime)&&(prevStart===this._start||Math.abs(timeScale)!==Math.abs(this._ts))&&(this._lock||((totalTime||!dur)&&(tTime===tDur&&this._ts>0||!tTime&&this._ts<0)&&_removeFromParent(this,1),!suppressEvents&&!(totalTime<0&&!prevTime)&&(tTime||prevTime||!tDur)&&(_callback(this,tTime===tDur&&totalTime>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(tTime<tDur&&this.timeScale()>0)&&this._prom())))}return this},_proto2.add=function(child,position){var _this2=this;if(_isNumber(position)||(position=_parsePosition(this,position,child)),!(child instanceof Animation)){if(_isArray(child))return child.forEach(function(obj){return _this2.add(obj,position)}),this;if(_isString(child))return this.addLabel(child,position);if(_isFunction(child))child=Tween.delayedCall(0,child);else return this}return this!==child?_addToTimeline(this,child,position):this},_proto2.getChildren=function(nested,tweens,timelines,ignoreBeforeTime){nested===void 0&&(nested=!0),tweens===void 0&&(tweens=!0),timelines===void 0&&(timelines=!0),ignoreBeforeTime===void 0&&(ignoreBeforeTime=-_bigNum);for(var a=[],child=this._first;child;)child._start>=ignoreBeforeTime&&(child instanceof Tween?tweens&&a.push(child):(timelines&&a.push(child),nested&&a.push.apply(a,child.getChildren(!0,tweens,timelines)))),child=child._next;return a},_proto2.getById=function(id){for(var animations=this.getChildren(1,1,1),i=animations.length;i--;)if(animations[i].vars.id===id)return animations[i]},_proto2.remove=function(child){return _isString(child)?this.removeLabel(child):_isFunction(child)?this.killTweensOf(child):(_removeLinkedListItem(this,child),child===this._recent&&(this._recent=this._last),_uncache(this))},_proto2.totalTime=function(_totalTime2,suppressEvents){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=_roundPrecise(_ticker.time-(this._ts>0?_totalTime2/this._ts:(this.totalDuration()-_totalTime2)/-this._ts))),_Animation.prototype.totalTime.call(this,_totalTime2,suppressEvents),this._forcing=0,this):this._tTime},_proto2.addLabel=function(label,position){return this.labels[label]=_parsePosition(this,position),this},_proto2.removeLabel=function(label){return delete this.labels[label],this},_proto2.addPause=function(position,callback,params){var t=Tween.delayedCall(0,callback||_emptyFunc,params);return t.data="isPause",this._hasPause=1,_addToTimeline(this,t,_parsePosition(this,position))},_proto2.removePause=function(position){var child=this._first;for(position=_parsePosition(this,position);child;)child._start===position&&child.data==="isPause"&&_removeFromParent(child),child=child._next},_proto2.killTweensOf=function(targets,props2,onlyActive){for(var tweens=this.getTweensOf(targets,onlyActive),i=tweens.length;i--;)_overwritingTween!==tweens[i]&&tweens[i].kill(targets,props2);return this},_proto2.getTweensOf=function(targets,onlyActive){for(var a=[],parsedTargets=toArray(targets),child=this._first,isGlobalTime=_isNumber(onlyActive),children;child;)child instanceof Tween?_arrayContainsAny(child._targets,parsedTargets)&&(isGlobalTime?(!_overwritingTween||child._initted&&child._ts)&&child.globalTime(0)<=onlyActive&&child.globalTime(child.totalDuration())>onlyActive:!onlyActive||child.isActive())&&a.push(child):(children=child.getTweensOf(parsedTargets,onlyActive)).length&&a.push.apply(a,children),child=child._next;return a},_proto2.tweenTo=function(position,vars){vars=vars||{};var tl=this,endTime=_parsePosition(tl,position),_vars=vars,startAt=_vars.startAt,_onStart=_vars.onStart,onStartParams=_vars.onStartParams,immediateRender=_vars.immediateRender,initted,tween=Tween.to(tl,_setDefaults({ease:vars.ease||"none",lazy:!1,immediateRender:!1,time:endTime,overwrite:"auto",duration:vars.duration||Math.abs((endTime-(startAt&&"time"in startAt?startAt.time:tl._time))/tl.timeScale())||_tinyNum,onStart:function(){if(tl.pause(),!initted){var duration=vars.duration||Math.abs((endTime-(startAt&&"time"in startAt?startAt.time:tl._time))/tl.timeScale());tween._dur!==duration&&_setDuration(tween,duration,0,1).render(tween._time,!0,!0),initted=1}_onStart&&_onStart.apply(tween,onStartParams||[])}},vars));return immediateRender?tween.render(0):tween},_proto2.tweenFromTo=function(fromPosition,toPosition,vars){return this.tweenTo(toPosition,_setDefaults({startAt:{time:_parsePosition(this,fromPosition)}},vars))},_proto2.recent=function(){return this._recent},_proto2.nextLabel=function(afterTime){return afterTime===void 0&&(afterTime=this._time),_getLabelInDirection(this,_parsePosition(this,afterTime))},_proto2.previousLabel=function(beforeTime){return beforeTime===void 0&&(beforeTime=this._time),_getLabelInDirection(this,_parsePosition(this,beforeTime),1)},_proto2.currentLabel=function(value){return arguments.length?this.seek(value,!0):this.previousLabel(this._time+_tinyNum)},_proto2.shiftChildren=function(amount,adjustLabels,ignoreBeforeTime){ignoreBeforeTime===void 0&&(ignoreBeforeTime=0);for(var child=this._first,labels=this.labels,p;child;)child._start>=ignoreBeforeTime&&(child._start+=amount,child._end+=amount),child=child._next;if(adjustLabels)for(p in labels)labels[p]>=ignoreBeforeTime&&(labels[p]+=amount);return _uncache(this)},_proto2.invalidate=function(soft){var child=this._first;for(this._lock=0;child;)child.invalidate(soft),child=child._next;return _Animation.prototype.invalidate.call(this,soft)},_proto2.clear=function(includeLabels){includeLabels===void 0&&(includeLabels=!0);for(var child=this._first,next;child;)next=child._next,this.remove(child),child=next;return this._dp&&(this._time=this._tTime=this._pTime=0),includeLabels&&(this.labels={}),_uncache(this)},_proto2.totalDuration=function(value){var max2=0,self2=this,child=self2._last,prevStart=_bigNum,prev,start3,parent;if(arguments.length)return self2.timeScale((self2._repeat<0?self2.duration():self2.totalDuration())/(self2.reversed()?-value:value));if(self2._dirty){for(parent=self2.parent;child;)prev=child._prev,child._dirty&&child.totalDuration(),start3=child._start,start3>prevStart&&self2._sort&&child._ts&&!self2._lock?(self2._lock=1,_addToTimeline(self2,child,start3-child._delay,1)._lock=0):prevStart=start3,start3<0&&child._ts&&(max2-=start3,(!parent&&!self2._dp||parent&&parent.smoothChildTiming)&&(self2._start+=start3/self2._ts,self2._time-=start3,self2._tTime-=start3),self2.shiftChildren(-start3,!1,-1/0),prevStart=0),child._end>max2&&child._ts&&(max2=child._end),child=prev;_setDuration(self2,self2===_globalTimeline&&self2._time>max2?self2._time:max2,1,1),self2._dirty=0}return self2._tDur},Timeline2.updateRoot=function(time){if(_globalTimeline._ts&&(_lazySafeRender(_globalTimeline,_parentToChildTotalTime(time,_globalTimeline)),_lastRenderedFrame=_ticker.frame),_ticker.frame>=_nextGCFrame){_nextGCFrame+=_config.autoSleep||120;var child=_globalTimeline._first;if((!child||!child._ts)&&_config.autoSleep&&_ticker._listeners.length<2){for(;child&&!child._ts;)child=child._next;child||_ticker.sleep()}}},Timeline2}(Animation);_setDefaults(Timeline.prototype,{_lock:0,_hasPause:0,_forcing:0});var _addComplexStringPropTween=function(target,prop,start3,end2,setter,stringFilter,funcParam){var pt=new PropTween(this._pt,target,prop,0,1,_renderComplexString,null,setter),index=0,matchIndex=0,result,startNums,color,endNum,chunk,startNum,hasRandom,a;for(pt.b=start3,pt.e=end2,start3+="",end2+="",(hasRandom=~end2.indexOf("random("))&&(end2=_replaceRandom(end2)),stringFilter&&(a=[start3,end2],stringFilter(a,target,prop),start3=a[0],end2=a[1]),startNums=start3.match(_complexStringNumExp)||[];result=_complexStringNumExp.exec(end2);)endNum=result[0],chunk=end2.substring(index,result.index),color?color=(color+1)%5:chunk.substr(-5)==="rgba("&&(color=1),endNum!==startNums[matchIndex++]&&(startNum=parseFloat(startNums[matchIndex-1])||0,pt._pt={_next:pt._pt,p:chunk||matchIndex===1?chunk:",",s:startNum,c:endNum.charAt(1)==="="?_parseRelative(startNum,endNum)-startNum:parseFloat(endNum)-startNum,m:color&&color<4?Math.round:0},index=_complexStringNumExp.lastIndex);return pt.c=index<end2.length?end2.substring(index,end2.length):"",pt.fp=funcParam,(_relExp.test(end2)||hasRandom)&&(pt.e=0),this._pt=pt,pt},_addPropTween=function(target,prop,start3,end2,index,targets,modifier,stringFilter,funcParam,optional){_isFunction(end2)&&(end2=end2(index||0,target,targets));var currentValue=target[prop],parsedStart=start3!=="get"?start3:_isFunction(currentValue)?funcParam?target[prop.indexOf("set")||!_isFunction(target["get"+prop.substr(3)])?prop:"get"+prop.substr(3)](funcParam):target[prop]():currentValue,setter=_isFunction(currentValue)?funcParam?_setterFuncWithParam:_setterFunc:_setterPlain,pt;if(_isString(end2)&&(~end2.indexOf("random(")&&(end2=_replaceRandom(end2)),end2.charAt(1)==="="&&(pt=_parseRelative(parsedStart,end2)+(getUnit(parsedStart)||0),(pt||pt===0)&&(end2=pt))),!optional||parsedStart!==end2||_forceAllPropTweens)return!isNaN(parsedStart*end2)&&end2!==""?(pt=new PropTween(this._pt,target,prop,+parsedStart||0,end2-(parsedStart||0),typeof currentValue=="boolean"?_renderBoolean:_renderPlain,0,setter),funcParam&&(pt.fp=funcParam),modifier&&pt.modifier(modifier,this,target),this._pt=pt):(!currentValue&&!(prop in target)&&_missingPlugin(prop,end2),_addComplexStringPropTween.call(this,target,prop,parsedStart,end2,setter,stringFilter||_config.stringFilter,funcParam))},_processVars=function(vars,index,target,targets,tween){if(_isFunction(vars)&&(vars=_parseFuncOrString(vars,tween,index,target,targets)),!_isObject(vars)||vars.style&&vars.nodeType||_isArray(vars)||_isTypedArray(vars))return _isString(vars)?_parseFuncOrString(vars,tween,index,target,targets):vars;var copy={},p;for(p in vars)copy[p]=_parseFuncOrString(vars[p],tween,index,target,targets);return copy},_checkPlugin=function(property,vars,tween,index,target,targets){var plugin,pt,ptLookup,i;if(_plugins[property]&&(plugin=new _plugins[property]).init(target,plugin.rawVars?vars[property]:_processVars(vars[property],index,target,targets,tween),tween,index,targets)!==!1&&(tween._pt=pt=new PropTween(tween._pt,target,property,0,1,plugin.render,plugin,0,plugin.priority),tween!==_quickTween))for(ptLookup=tween._ptLookup[tween._targets.indexOf(target)],i=plugin._props.length;i--;)ptLookup[plugin._props[i]]=pt;return plugin},_overwritingTween,_forceAllPropTweens,_initTween=function _initTween2(tween,time,tTime){var vars=tween.vars,ease=vars.ease,startAt=vars.startAt,immediateRender=vars.immediateRender,lazy=vars.lazy,onUpdate=vars.onUpdate,runBackwards=vars.runBackwards,yoyoEase=vars.yoyoEase,keyframes=vars.keyframes,autoRevert=vars.autoRevert,dur=tween._dur,prevStartAt=tween._startAt,targets=tween._targets,parent=tween.parent,fullTargets=parent&&parent.data==="nested"?parent.vars.targets:targets,autoOverwrite=tween._overwrite==="auto"&&!_suppressOverwrites,tl=tween.timeline,cleanVars,i,p,pt,target,hasPriority,gsData,harness,plugin,ptLookup,index,harnessVars,overwritten;if(tl&&(!keyframes||!ease)&&(ease="none"),tween._ease=_parseEase(ease,_defaults.ease),tween._yEase=yoyoEase?_invertEase(_parseEase(yoyoEase===!0?ease:yoyoEase,_defaults.ease)):0,yoyoEase&&tween._yoyo&&!tween._repeat&&(yoyoEase=tween._yEase,tween._yEase=tween._ease,tween._ease=yoyoEase),tween._from=!tl&&!!vars.runBackwards,!tl||keyframes&&!vars.stagger){if(harness=targets[0]?_getCache(targets[0]).harness:0,harnessVars=harness&&vars[harness.prop],cleanVars=_copyExcluding(vars,_reservedProps),prevStartAt&&(prevStartAt._zTime<0&&prevStartAt.progress(1),time<0&&runBackwards&&immediateRender&&!autoRevert?prevStartAt.render(-1,!0):prevStartAt.revert(runBackwards&&dur?_revertConfigNoKill:_startAtRevertConfig),prevStartAt._lazy=0),startAt){if(_removeFromParent(tween._startAt=Tween.set(targets,_setDefaults({data:"isStart",overwrite:!1,parent,immediateRender:!0,lazy:!prevStartAt&&_isNotFalse(lazy),startAt:null,delay:0,onUpdate:onUpdate&&function(){return _callback(tween,"onUpdate")},stagger:0},startAt))),tween._startAt._dp=0,tween._startAt._sat=tween,time<0&&(_reverting||!immediateRender&&!autoRevert)&&tween._startAt.revert(_revertConfigNoKill),immediateRender&&dur&&time<=0&&tTime<=0){time&&(tween._zTime=time);return}}else if(runBackwards&&dur&&!prevStartAt){if(time&&(immediateRender=!1),p=_setDefaults({overwrite:!1,data:"isFromStart",lazy:immediateRender&&!prevStartAt&&_isNotFalse(lazy),immediateRender,stagger:0,parent},cleanVars),harnessVars&&(p[harness.prop]=harnessVars),_removeFromParent(tween._startAt=Tween.set(targets,p)),tween._startAt._dp=0,tween._startAt._sat=tween,time<0&&(_reverting?tween._startAt.revert(_revertConfigNoKill):tween._startAt.render(-1,!0)),tween._zTime=time,!immediateRender)_initTween2(tween._startAt,_tinyNum,_tinyNum);else if(!time)return}for(tween._pt=tween._ptCache=0,lazy=dur&&_isNotFalse(lazy)||lazy&&!dur,i=0;i<targets.length;i++){if(target=targets[i],gsData=target._gsap||_harness(targets)[i]._gsap,tween._ptLookup[i]=ptLookup={},_lazyLookup[gsData.id]&&_lazyTweens.length&&_lazyRender(),index=fullTargets===targets?i:fullTargets.indexOf(target),harness&&(plugin=new harness).init(target,harnessVars||cleanVars,tween,index,fullTargets)!==!1&&(tween._pt=pt=new PropTween(tween._pt,target,plugin.name,0,1,plugin.render,plugin,0,plugin.priority),plugin._props.forEach(function(name){ptLookup[name]=pt}),plugin.priority&&(hasPriority=1)),!harness||harnessVars)for(p in cleanVars)_plugins[p]&&(plugin=_checkPlugin(p,cleanVars,tween,index,target,fullTargets))?plugin.priority&&(hasPriority=1):ptLookup[p]=pt=_addPropTween.call(tween,target,p,"get",cleanVars[p],index,fullTargets,0,vars.stringFilter);tween._op&&tween._op[i]&&tween.kill(target,tween._op[i]),autoOverwrite&&tween._pt&&(_overwritingTween=tween,_globalTimeline.killTweensOf(target,ptLookup,tween.globalTime(time)),overwritten=!tween.parent,_overwritingTween=0),tween._pt&&lazy&&(_lazyLookup[gsData.id]=1)}hasPriority&&_sortPropTweensByPriority(tween),tween._onInit&&tween._onInit(tween)}tween._onUpdate=onUpdate,tween._initted=(!tween._op||tween._pt)&&!overwritten,keyframes&&time<=0&&tl.render(_bigNum,!0,!0)},_updatePropTweens=function(tween,property,value,start3,startIsRelative,ratio,time,skipRecursion){var ptCache=(tween._pt&&tween._ptCache||(tween._ptCache={}))[property],pt,rootPT,lookup,i;if(!ptCache)for(ptCache=tween._ptCache[property]=[],lookup=tween._ptLookup,i=tween._targets.length;i--;){if(pt=lookup[i][property],pt&&pt.d&&pt.d._pt)for(pt=pt.d._pt;pt&&pt.p!==property&&pt.fp!==property;)pt=pt._next;if(!pt)return _forceAllPropTweens=1,tween.vars[property]="+=0",_initTween(tween,time),_forceAllPropTweens=0,skipRecursion?_warn(property+" not eligible for reset"):1;ptCache.push(pt)}for(i=ptCache.length;i--;)rootPT=ptCache[i],pt=rootPT._pt||rootPT,pt.s=(start3||start3===0)&&!startIsRelative?start3:pt.s+(start3||0)+ratio*pt.c,pt.c=value-pt.s,rootPT.e&&(rootPT.e=_round(value)+getUnit(rootPT.e)),rootPT.b&&(rootPT.b=pt.s+getUnit(rootPT.b))},_addAliasesToVars=function(targets,vars){var harness=targets[0]?_getCache(targets[0]).harness:0,propertyAliases=harness&&harness.aliases,copy,p,i,aliases;if(!propertyAliases)return vars;copy=_merge({},vars);for(p in propertyAliases)if(p in copy)for(aliases=propertyAliases[p].split(","),i=aliases.length;i--;)copy[aliases[i]]=copy[p];return copy},_parseKeyframe=function(prop,obj,allProps,easeEach){var ease=obj.ease||easeEach||"power1.inOut",p,a;if(_isArray(obj))a=allProps[prop]||(allProps[prop]=[]),obj.forEach(function(value,i){return a.push({t:i/(obj.length-1)*100,v:value,e:ease})});else for(p in obj)a=allProps[p]||(allProps[p]=[]),p==="ease"||a.push({t:parseFloat(prop),v:obj[p],e:ease})},_parseFuncOrString=function(value,tween,i,target,targets){return _isFunction(value)?value.call(tween,i,target,targets):_isString(value)&&~value.indexOf("random(")?_replaceRandom(value):value},_staggerTweenProps=_callbackNames+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",_staggerPropsToSkip={};_forEachName(_staggerTweenProps+",id,stagger,delay,duration,paused,scrollTrigger",function(name){return _staggerPropsToSkip[name]=1});var Tween=function(_Animation2){_inheritsLoose(Tween2,_Animation2);function Tween2(targets,vars,position,skipInherit){var _this3;typeof vars=="number"&&(position.duration=vars,vars=position,position=null),_this3=_Animation2.call(this,skipInherit?vars:_inheritDefaults(vars))||this;var _this3$vars=_this3.vars,duration=_this3$vars.duration,delay2=_this3$vars.delay,immediateRender=_this3$vars.immediateRender,stagger=_this3$vars.stagger,overwrite=_this3$vars.overwrite,keyframes=_this3$vars.keyframes,defaults2=_this3$vars.defaults,scrollTrigger=_this3$vars.scrollTrigger,yoyoEase=_this3$vars.yoyoEase,parent=vars.parent||_globalTimeline,parsedTargets=(_isArray(targets)||_isTypedArray(targets)?_isNumber(targets[0]):"length"in vars)?[targets]:toArray(targets),tl,i,copy,l2,p,curTarget,staggerFunc,staggerVarsToMerge;if(_this3._targets=parsedTargets.length?_harness(parsedTargets):_warn("GSAP target "+targets+" not found. https://gsap.com",!_config.nullTargetWarn)||[],_this3._ptLookup=[],_this3._overwrite=overwrite,keyframes||stagger||_isFuncOrString(duration)||_isFuncOrString(delay2)){if(vars=_this3.vars,tl=_this3.timeline=new Timeline({data:"nested",defaults:defaults2||{},targets:parent&&parent.data==="nested"?parent.vars.targets:parsedTargets}),tl.kill(),tl.parent=tl._dp=_assertThisInitialized(_this3),tl._start=0,stagger||_isFuncOrString(duration)||_isFuncOrString(delay2)){if(l2=parsedTargets.length,staggerFunc=stagger&&distribute(stagger),_isObject(stagger))for(p in stagger)~_staggerTweenProps.indexOf(p)&&(staggerVarsToMerge||(staggerVarsToMerge={}),staggerVarsToMerge[p]=stagger[p]);for(i=0;i<l2;i++)copy=_copyExcluding(vars,_staggerPropsToSkip),copy.stagger=0,yoyoEase&&(copy.yoyoEase=yoyoEase),staggerVarsToMerge&&_merge(copy,staggerVarsToMerge),curTarget=parsedTargets[i],copy.duration=+_parseFuncOrString(duration,_assertThisInitialized(_this3),i,curTarget,parsedTargets),copy.delay=(+_parseFuncOrString(delay2,_assertThisInitialized(_this3),i,curTarget,parsedTargets)||0)-_this3._delay,!stagger&&l2===1&&copy.delay&&(_this3._delay=delay2=copy.delay,_this3._start+=delay2,copy.delay=0),tl.to(curTarget,copy,staggerFunc?staggerFunc(i,curTarget,parsedTargets):0),tl._ease=_easeMap.none;tl.duration()?duration=delay2=0:_this3.timeline=0}else if(keyframes){_inheritDefaults(_setDefaults(tl.vars.defaults,{ease:"none"})),tl._ease=_parseEase(keyframes.ease||vars.ease||"none");var time=0,a,kf,v;if(_isArray(keyframes))keyframes.forEach(function(frame){return tl.to(parsedTargets,frame,">")}),tl.duration();else{copy={};for(p in keyframes)p==="ease"||p==="easeEach"||_parseKeyframe(p,keyframes[p],copy,keyframes.easeEach);for(p in copy)for(a=copy[p].sort(function(a2,b){return a2.t-b.t}),time=0,i=0;i<a.length;i++)kf=a[i],v={ease:kf.e,duration:(kf.t-(i?a[i-1].t:0))/100*duration},v[p]=kf.v,tl.to(parsedTargets,v,time),time+=v.duration;tl.duration()<duration&&tl.to({},{duration:duration-tl.duration()})}}duration||_this3.duration(duration=tl.duration())}else _this3.timeline=0;return overwrite===!0&&!_suppressOverwrites&&(_overwritingTween=_assertThisInitialized(_this3),_globalTimeline.killTweensOf(parsedTargets),_overwritingTween=0),_addToTimeline(parent,_assertThisInitialized(_this3),position),vars.reversed&&_this3.reverse(),vars.paused&&_this3.paused(!0),(immediateRender||!duration&&!keyframes&&_this3._start===_roundPrecise(parent._time)&&_isNotFalse(immediateRender)&&_hasNoPausedAncestors(_assertThisInitialized(_this3))&&parent.data!=="nested")&&(_this3._tTime=-_tinyNum,_this3.render(Math.max(0,-delay2)||0)),scrollTrigger&&_scrollTrigger(_assertThisInitialized(_this3),scrollTrigger),_this3}var _proto3=Tween2.prototype;return _proto3.render=function(totalTime,suppressEvents,force){var prevTime=this._time,tDur=this._tDur,dur=this._dur,isNegative=totalTime<0,tTime=totalTime>tDur-_tinyNum&&!isNegative?tDur:totalTime<_tinyNum?0:totalTime,time,pt,iteration,cycleDuration,prevIteration,isYoyo,ratio,timeline2,yoyoEase;if(!dur)_renderZeroDurationTween(this,totalTime,suppressEvents,force);else if(tTime!==this._tTime||!totalTime||force||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==isNegative){if(time=tTime,timeline2=this.timeline,this._repeat){if(cycleDuration=dur+this._rDelay,this._repeat<-1&&isNegative)return this.totalTime(cycleDuration*100+totalTime,suppressEvents,force);if(time=_roundPrecise(tTime%cycleDuration),tTime===tDur?(iteration=this._repeat,time=dur):(iteration=~~(tTime/cycleDuration),iteration&&iteration===_roundPrecise(tTime/cycleDuration)&&(time=dur,iteration--),time>dur&&(time=dur)),isYoyo=this._yoyo&&iteration&1,isYoyo&&(yoyoEase=this._yEase,time=dur-time),prevIteration=_animationCycle(this._tTime,cycleDuration),time===prevTime&&!force&&this._initted&&iteration===prevIteration)return this._tTime=tTime,this;iteration!==prevIteration&&(timeline2&&this._yEase&&_propagateYoyoEase(timeline2,isYoyo),this.vars.repeatRefresh&&!isYoyo&&!this._lock&&this._time!==cycleDuration&&this._initted&&(this._lock=force=1,this.render(_roundPrecise(cycleDuration*iteration),!0).invalidate()._lock=0))}if(!this._initted){if(_attemptInitTween(this,isNegative?totalTime:time,force,suppressEvents,tTime))return this._tTime=0,this;if(prevTime!==this._time&&!(force&&this.vars.repeatRefresh&&iteration!==prevIteration))return this;if(dur!==this._dur)return this.render(totalTime,suppressEvents,force)}if(this._tTime=tTime,this._time=time,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=ratio=(yoyoEase||this._ease)(time/dur),this._from&&(this.ratio=ratio=1-ratio),time&&!prevTime&&!suppressEvents&&!iteration&&(_callback(this,"onStart"),this._tTime!==tTime))return this;for(pt=this._pt;pt;)pt.r(ratio,pt.d),pt=pt._next;timeline2&&timeline2.render(totalTime<0?totalTime:timeline2._dur*timeline2._ease(time/this._dur),suppressEvents,force)||this._startAt&&(this._zTime=totalTime),this._onUpdate&&!suppressEvents&&(isNegative&&_rewindStartAt(this,totalTime,suppressEvents,force),_callback(this,"onUpdate")),this._repeat&&iteration!==prevIteration&&this.vars.onRepeat&&!suppressEvents&&this.parent&&_callback(this,"onRepeat"),(tTime===this._tDur||!tTime)&&this._tTime===tTime&&(isNegative&&!this._onUpdate&&_rewindStartAt(this,totalTime,!0,!0),(totalTime||!dur)&&(tTime===this._tDur&&this._ts>0||!tTime&&this._ts<0)&&_removeFromParent(this,1),!suppressEvents&&!(isNegative&&!prevTime)&&(tTime||prevTime||isYoyo)&&(_callback(this,tTime===tDur?"onComplete":"onReverseComplete",!0),this._prom&&!(tTime<tDur&&this.timeScale()>0)&&this._prom()))}return this},_proto3.targets=function(){return this._targets},_proto3.invalidate=function(soft){return(!soft||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(soft),_Animation2.prototype.invalidate.call(this,soft)},_proto3.resetTo=function(property,value,start3,startIsRelative,skipRecursion){_tickerActive||_ticker.wake(),this._ts||this.play();var time=Math.min(this._dur,(this._dp._time-this._start)*this._ts),ratio;return this._initted||_initTween(this,time),ratio=this._ease(time/this._dur),_updatePropTweens(this,property,value,start3,startIsRelative,ratio,time,skipRecursion)?this.resetTo(property,value,start3,startIsRelative,1):(_alignPlayhead(this,0),this.parent||_addLinkedListItem(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},_proto3.kill=function(targets,vars){if(vars===void 0&&(vars="all"),!targets&&(!vars||vars==="all"))return this._lazy=this._pt=0,this.parent?_interrupt(this):this;if(this.timeline){var tDur=this.timeline.totalDuration();return this.timeline.killTweensOf(targets,vars,_overwritingTween&&_overwritingTween.vars.overwrite!==!0)._first||_interrupt(this),this.parent&&tDur!==this.timeline.totalDuration()&&_setDuration(this,this._dur*this.timeline._tDur/tDur,0,1),this}var parsedTargets=this._targets,killingTargets=targets?toArray(targets):parsedTargets,propTweenLookup=this._ptLookup,firstPT=this._pt,overwrittenProps,curLookup,curOverwriteProps,props2,p,pt,i;if((!vars||vars==="all")&&_arraysMatch(parsedTargets,killingTargets))return vars==="all"&&(this._pt=0),_interrupt(this);for(overwrittenProps=this._op=this._op||[],vars!=="all"&&(_isString(vars)&&(p={},_forEachName(vars,function(name){return p[name]=1}),vars=p),vars=_addAliasesToVars(parsedTargets,vars)),i=parsedTargets.length;i--;)if(~killingTargets.indexOf(parsedTargets[i])){curLookup=propTweenLookup[i],vars==="all"?(overwrittenProps[i]=vars,props2=curLookup,curOverwriteProps={}):(curOverwriteProps=overwrittenProps[i]=overwrittenProps[i]||{},props2=vars);for(p in props2)pt=curLookup&&curLookup[p],pt&&((!("kill"in pt.d)||pt.d.kill(p)===!0)&&_removeLinkedListItem(this,pt,"_pt"),delete curLookup[p]),curOverwriteProps!=="all"&&(curOverwriteProps[p]=1)}return this._initted&&!this._pt&&firstPT&&_interrupt(this),this},Tween2.to=function(targets,vars){return new Tween2(targets,vars,arguments[2])},Tween2.from=function(targets,vars){return _createTweenType(1,arguments)},Tween2.delayedCall=function(delay2,callback,params,scope){return new Tween2(callback,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:delay2,onComplete:callback,onReverseComplete:callback,onCompleteParams:params,onReverseCompleteParams:params,callbackScope:scope})},Tween2.fromTo=function(targets,fromVars,toVars){return _createTweenType(2,arguments)},Tween2.set=function(targets,vars){return vars.duration=0,vars.repeatDelay||(vars.repeat=0),new Tween2(targets,vars)},Tween2.killTweensOf=function(targets,props2,onlyActive){return _globalTimeline.killTweensOf(targets,props2,onlyActive)},Tween2}(Animation);_setDefaults(Tween.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});_forEachName("staggerTo,staggerFrom,staggerFromTo",function(name){Tween[name]=function(){var tl=new Timeline,params=_slice.call(arguments,0);return params.splice(name==="staggerFromTo"?5:4,0,0),tl[name].apply(tl,params)}});var _setterPlain=function(target,property,value){return target[property]=value},_setterFunc=function(target,property,value){return target[property](value)},_setterFuncWithParam=function(target,property,value,data){return target[property](data.fp,value)},_setterAttribute=function(target,property,value){return target.setAttribute(property,value)},_getSetter=function(target,property){return _isFunction(target[property])?_setterFunc:_isUndefined(target[property])&&target.setAttribute?_setterAttribute:_setterPlain},_renderPlain=function(ratio,data){return data.set(data.t,data.p,Math.round((data.s+data.c*ratio)*1e6)/1e6,data)},_renderBoolean=function(ratio,data){return data.set(data.t,data.p,!!(data.s+data.c*ratio),data)},_renderComplexString=function(ratio,data){var pt=data._pt,s2="";if(!ratio&&data.b)s2=data.b;else if(ratio===1&&data.e)s2=data.e;else{for(;pt;)s2=pt.p+(pt.m?pt.m(pt.s+pt.c*ratio):Math.round((pt.s+pt.c*ratio)*1e4)/1e4)+s2,pt=pt._next;s2+=data.c}data.set(data.t,data.p,s2,data)},_renderPropTweens=function(ratio,data){for(var pt=data._pt;pt;)pt.r(ratio,pt.d),pt=pt._next},_addPluginModifier=function(modifier,tween,target,property){for(var pt=this._pt,next;pt;)next=pt._next,pt.p===property&&pt.modifier(modifier,tween,target),pt=next},_killPropTweensOf=function(property){for(var pt=this._pt,hasNonDependentRemaining,next;pt;)next=pt._next,pt.p===property&&!pt.op||pt.op===property?_removeLinkedListItem(this,pt,"_pt"):pt.dep||(hasNonDependentRemaining=1),pt=next;return!hasNonDependentRemaining},_setterWithModifier=function(target,property,value,data){data.mSet(target,property,data.m.call(data.tween,value,data.mt),data)},_sortPropTweensByPriority=function(parent){for(var pt=parent._pt,next,pt2,first2,last2;pt;){for(next=pt._next,pt2=first2;pt2&&pt2.pr>pt.pr;)pt2=pt2._next;(pt._prev=pt2?pt2._prev:last2)?pt._prev._next=pt:first2=pt,(pt._next=pt2)?pt2._prev=pt:last2=pt,pt=next}parent._pt=first2},PropTween=function(){function PropTween2(next,target,prop,start3,change,renderer,data,setter,priority){this.t=target,this.s=start3,this.c=change,this.p=prop,this.r=renderer||_renderPlain,this.d=data||this,this.set=setter||_setterPlain,this.pr=priority||0,this._next=next,next&&(next._prev=this)}var _proto4=PropTween2.prototype;return _proto4.modifier=function(func,tween,target){this.mSet=this.mSet||this.set,this.set=_setterWithModifier,this.m=func,this.mt=target,this.tween=tween},PropTween2}();_forEachName(_callbackNames+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(name){return _reservedProps[name]=1});_globals.TweenMax=_globals.TweenLite=Tween;_globals.TimelineLite=_globals.TimelineMax=Timeline;_globalTimeline=new Timeline({sortChildren:!1,defaults:_defaults,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});_config.stringFilter=_colorStringFilter;var _media=[],_listeners={},_emptyArray=[],_lastMediaTime=0,_contextID=0,_dispatch=function(type){return(_listeners[type]||_emptyArray).map(function(f){return f()})},_onMediaChange=function(){var time=Date.now(),matches=[];time-_lastMediaTime>2&&(_dispatch("matchMediaInit"),_media.forEach(function(c){var queries=c.queries,conditions=c.conditions,match2,p,anyMatch,toggled;for(p in queries)match2=_win.matchMedia(queries[p]).matches,match2&&(anyMatch=1),match2!==conditions[p]&&(conditions[p]=match2,toggled=1);toggled&&(c.revert(),anyMatch&&matches.push(c))}),_dispatch("matchMediaRevert"),matches.forEach(function(c){return c.onMatch(c,function(func){return c.add(null,func)})}),_lastMediaTime=time,_dispatch("matchMedia"))},Context=function(){function Context2(func,scope){this.selector=scope&&selector(scope),this.data=[],this._r=[],this.isReverted=!1,this.id=_contextID++,func&&this.add(func)}var _proto5=Context2.prototype;return _proto5.add=function(name,func,scope){_isFunction(name)&&(scope=func,func=name,name=_isFunction);var self2=this,f=function(){var prev=_context,prevSelector=self2.selector,result;return prev&&prev!==self2&&prev.data.push(self2),scope&&(self2.selector=selector(scope)),_context=self2,result=func.apply(self2,arguments),_isFunction(result)&&self2._r.push(result),_context=prev,self2.selector=prevSelector,self2.isReverted=!1,result};return self2.last=f,name===_isFunction?f(self2,function(func2){return self2.add(null,func2)}):name?self2[name]=f:f},_proto5.ignore=function(func){var prev=_context;_context=null,func(this),_context=prev},_proto5.getTweens=function(){var a=[];return this.data.forEach(function(e){return e instanceof Context2?a.push.apply(a,e.getTweens()):e instanceof Tween&&!(e.parent&&e.parent.data==="nested")&&a.push(e)}),a},_proto5.clear=function(){this._r.length=this.data.length=0},_proto5.kill=function(revert,matchMedia2){var _this4=this;if(revert?function(){for(var tweens=_this4.getTweens(),i2=_this4.data.length,t;i2--;)t=_this4.data[i2],t.data==="isFlip"&&(t.revert(),t.getChildren(!0,!0,!1).forEach(function(tween){return tweens.splice(tweens.indexOf(tween),1)}));for(tweens.map(function(t2){return{g:t2._dur||t2._delay||t2._sat&&!t2._sat.vars.immediateRender?t2.globalTime(0):-1/0,t:t2}}).sort(function(a,b){return b.g-a.g||-1/0}).forEach(function(o){return o.t.revert(revert)}),i2=_this4.data.length;i2--;)t=_this4.data[i2],t instanceof Timeline?t.data!=="nested"&&(t.scrollTrigger&&t.scrollTrigger.revert(),t.kill()):!(t instanceof Tween)&&t.revert&&t.revert(revert);_this4._r.forEach(function(f){return f(revert,_this4)}),_this4.isReverted=!0}():this.data.forEach(function(e){return e.kill&&e.kill()}),this.clear(),matchMedia2)for(var i=_media.length;i--;)_media[i].id===this.id&&_media.splice(i,1)},_proto5.revert=function(config3){this.kill(config3||{})},Context2}(),MatchMedia=function(){function MatchMedia2(scope){this.contexts=[],this.scope=scope,_context&&_context.data.push(this)}var _proto6=MatchMedia2.prototype;return _proto6.add=function(conditions,func,scope){_isObject(conditions)||(conditions={matches:conditions});var context3=new Context(0,scope||this.scope),cond=context3.conditions={},mq,p,active;_context&&!context3.selector&&(context3.selector=_context.selector),this.contexts.push(context3),func=context3.add("onMatch",func),context3.queries=conditions;for(p in conditions)p==="all"?active=1:(mq=_win.matchMedia(conditions[p]),mq&&(_media.indexOf(context3)<0&&_media.push(context3),(cond[p]=mq.matches)&&(active=1),mq.addListener?mq.addListener(_onMediaChange):mq.addEventListener("change",_onMediaChange)));return active&&func(context3,function(f){return context3.add(null,f)}),this},_proto6.revert=function(config3){this.kill(config3||{})},_proto6.kill=function(revert){this.contexts.forEach(function(c){return c.kill(revert,!0)})},MatchMedia2}(),_gsap={registerPlugin:function(){for(var _len2=arguments.length,args=new Array(_len2),_key2=0;_key2<_len2;_key2++)args[_key2]=arguments[_key2];args.forEach(function(config3){return _createPlugin(config3)})},timeline:function(vars){return new Timeline(vars)},getTweensOf:function(targets,onlyActive){return _globalTimeline.getTweensOf(targets,onlyActive)},getProperty:function(target,property,unit,uncache){_isString(target)&&(target=toArray(target)[0]);var getter=_getCache(target||{}).get,format2=unit?_passThrough:_numericIfPossible;return unit==="native"&&(unit=""),target&&(property?format2((_plugins[property]&&_plugins[property].get||getter)(target,property,unit,uncache)):function(property2,unit2,uncache2){return format2((_plugins[property2]&&_plugins[property2].get||getter)(target,property2,unit2,uncache2))})},quickSetter:function(target,property,unit){if(target=toArray(target),target.length>1){var setters=target.map(function(t){return gsap.quickSetter(t,property,unit)}),l2=setters.length;return function(value){for(var i=l2;i--;)setters[i](value)}}target=target[0]||{};var Plugin=_plugins[property],cache=_getCache(target),p=cache.harness&&(cache.harness.aliases||{})[property]||property,setter=Plugin?function(value){var p2=new Plugin;_quickTween._pt=0,p2.init(target,unit?value+unit:value,_quickTween,0,[target]),p2.render(1,p2),_quickTween._pt&&_renderPropTweens(1,_quickTween)}:cache.set(target,p);return Plugin?setter:function(value){return setter(target,p,unit?value+unit:value,cache,1)}},quickTo:function(target,property,vars){var _merge22,tween=gsap.to(target,_merge((_merge22={},_merge22[property]="+=0.1",_merge22.paused=!0,_merge22),vars||{})),func=function(value,start3,startIsRelative){return tween.resetTo(property,value,start3,startIsRelative)};return func.tween=tween,func},isTweening:function(targets){return _globalTimeline.getTweensOf(targets,!0).length>0},defaults:function(value){return value&&value.ease&&(value.ease=_parseEase(value.ease,_defaults.ease)),_mergeDeep(_defaults,value||{})},config:function(value){return _mergeDeep(_config,value||{})},registerEffect:function(_ref3){var name=_ref3.name,effect6=_ref3.effect,plugins=_ref3.plugins,defaults2=_ref3.defaults,extendTimeline=_ref3.extendTimeline;(plugins||"").split(",").forEach(function(pluginName){return pluginName&&!_plugins[pluginName]&&!_globals[pluginName]&&_warn(name+" effect requires "+pluginName+" plugin.")}),_effects[name]=function(targets,vars,tl){return effect6(toArray(targets),_setDefaults(vars||{},defaults2),tl)},extendTimeline&&(Timeline.prototype[name]=function(targets,vars,position){return this.add(_effects[name](targets,_isObject(vars)?vars:(position=vars)&&{},this),position)})},registerEase:function(name,ease){_easeMap[name]=_parseEase(ease)},parseEase:function(ease,defaultEase){return arguments.length?_parseEase(ease,defaultEase):_easeMap},getById:function(id){return _globalTimeline.getById(id)},exportRoot:function(vars,includeDelayedCalls){vars===void 0&&(vars={});var tl=new Timeline(vars),child,next;for(tl.smoothChildTiming=_isNotFalse(vars.smoothChildTiming),_globalTimeline.remove(tl),tl._dp=0,tl._time=tl._tTime=_globalTimeline._time,child=_globalTimeline._first;child;)next=child._next,(includeDelayedCalls||!(!child._dur&&child instanceof Tween&&child.vars.onComplete===child._targets[0]))&&_addToTimeline(tl,child,child._start-child._delay),child=next;return _addToTimeline(_globalTimeline,tl,0),tl},context:function(func,scope){return func?new Context(func,scope):_context},matchMedia:function(scope){return new MatchMedia(scope)},matchMediaRefresh:function(){return _media.forEach(function(c){var cond=c.conditions,found,p;for(p in cond)cond[p]&&(cond[p]=!1,found=1);found&&c.revert()})||_onMediaChange()},addEventListener:function(type,callback){var a=_listeners[type]||(_listeners[type]=[]);~a.indexOf(callback)||a.push(callback)},removeEventListener:function(type,callback){var a=_listeners[type],i=a&&a.indexOf(callback);i>=0&&a.splice(i,1)},utils:{wrap,wrapYoyo,distribute,random,snap,normalize,getUnit,clamp,splitColor,toArray,selector,mapRange,pipe,unitize,interpolate,shuffle},install:_install,effects:_effects,ticker:_ticker,updateRoot:Timeline.updateRoot,plugins:_plugins,globalTimeline:_globalTimeline,core:{PropTween,globals:_addGlobal,Tween,Timeline,Animation,getCache:_getCache,_removeLinkedListItem,reverting:function(){return _reverting},context:function(toAdd){return toAdd&&_context&&(_context.data.push(toAdd),toAdd._ctx=_context),_context},suppressOverwrites:function(value){return _suppressOverwrites=value}}};_forEachName("to,from,fromTo,delayedCall,set,killTweensOf",function(name){return _gsap[name]=Tween[name]});_ticker.add(Timeline.updateRoot);_quickTween=_gsap.to({},{duration:0});var _getPluginPropTween=function(plugin,prop){for(var pt=plugin._pt;pt&&pt.p!==prop&&pt.op!==prop&&pt.fp!==prop;)pt=pt._next;return pt},_addModifiers=function(tween,modifiers){var targets=tween._targets,p,i,pt;for(p in modifiers)for(i=targets.length;i--;)pt=tween._ptLookup[i][p],pt&&(pt=pt.d)&&(pt._pt&&(pt=_getPluginPropTween(pt,p)),pt&&pt.modifier&&pt.modifier(modifiers[p],tween,targets[i],p))},_buildModifierPlugin=function(name,modifier){return{name,rawVars:1,init:function(target,vars,tween){tween._onInit=function(tween2){var temp,p;if(_isString(vars)&&(temp={},_forEachName(vars,function(name2){return temp[name2]=1}),vars=temp),modifier){temp={};for(p in vars)temp[p]=modifier(vars[p]);vars=temp}_addModifiers(tween2,vars)}}}},gsap=_gsap.registerPlugin({name:"attr",init:function(target,vars,tween,index,targets){var p,pt,v;this.tween=tween;for(p in vars)v=target.getAttribute(p)||"",pt=this.add(target,"setAttribute",(v||0)+"",vars[p],index,targets,0,0,p),pt.op=p,pt.b=v,this._props.push(p)},render:function(ratio,data){for(var pt=data._pt;pt;)_reverting?pt.set(pt.t,pt.p,pt.b,pt):pt.r(ratio,pt.d),pt=pt._next}},{name:"endArray",init:function(target,value){for(var i=value.length;i--;)this.add(target,i,target[i]||0,value[i],0,0,0,0,0,1)}},_buildModifierPlugin("roundProps",_roundModifier),_buildModifierPlugin("modifiers"),_buildModifierPlugin("snap",snap))||_gsap;Tween.version=Timeline.version=gsap.version="3.12.5";_coreReady=1;_windowExists()&&_wake();var Power0=_easeMap.Power0,Power1=_easeMap.Power1,Power2=_easeMap.Power2,Power3=_easeMap.Power3,Power4=_easeMap.Power4,Linear=_easeMap.Linear,Quad=_easeMap.Quad,Cubic=_easeMap.Cubic,Quart=_easeMap.Quart,Quint=_easeMap.Quint,Strong=_easeMap.Strong,Elastic=_easeMap.Elastic,Back=_easeMap.Back,SteppedEase=_easeMap.SteppedEase,Bounce=_easeMap.Bounce,Sine=_easeMap.Sine,Expo=_easeMap.Expo,Circ=_easeMap.Circ;var _win2,_doc2,_docElement,_pluginInitted,_tempDiv,_tempDivStyler,_recentSetterPlugin,_reverting2,_windowExists3=function(){return typeof window<"u"},_transformProps={},_RAD2DEG=180/Math.PI,_DEG2RAD=Math.PI/180,_atan2=Math.atan2,_bigNum2=1e8,_capsExp=/([A-Z])/g,_horizontalExp=/(left|right|width|margin|padding|x)/i,_complexExp=/[\s,\(]\S/,_propertyAliases={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},_renderCSSProp=function(ratio,data){return data.set(data.t,data.p,Math.round((data.s+data.c*ratio)*1e4)/1e4+data.u,data)},_renderPropWithEnd=function(ratio,data){return data.set(data.t,data.p,ratio===1?data.e:Math.round((data.s+data.c*ratio)*1e4)/1e4+data.u,data)},_renderCSSPropWithBeginning=function(ratio,data){return data.set(data.t,data.p,ratio?Math.round((data.s+data.c*ratio)*1e4)/1e4+data.u:data.b,data)},_renderRoundedCSSProp=function(ratio,data){var value=data.s+data.c*ratio;data.set(data.t,data.p,~~(value+(value<0?-.5:.5))+data.u,data)},_renderNonTweeningValue=function(ratio,data){return data.set(data.t,data.p,ratio?data.e:data.b,data)},_renderNonTweeningValueOnlyAtEnd=function(ratio,data){return data.set(data.t,data.p,ratio!==1?data.b:data.e,data)},_setterCSSStyle=function(target,property,value){return target.style[property]=value},_setterCSSProp=function(target,property,value){return target.style.setProperty(property,value)},_setterTransform=function(target,property,value){return target._gsap[property]=value},_setterScale=function(target,property,value){return target._gsap.scaleX=target._gsap.scaleY=value},_setterScaleWithRender=function(target,property,value,data,ratio){var cache=target._gsap;cache.scaleX=cache.scaleY=value,cache.renderTransform(ratio,cache)},_setterTransformWithRender=function(target,property,value,data,ratio){var cache=target._gsap;cache[property]=value,cache.renderTransform(ratio,cache)},_transformProp="transform",_transformOriginProp=_transformProp+"Origin",_saveStyle=function _saveStyle2(property,isNotCSS){var _this=this,target=this.target,style2=target.style,cache=target._gsap;if(property in _transformProps&&style2){if(this.tfm=this.tfm||{},property!=="transform")property=_propertyAliases[property]||property,~property.indexOf(",")?property.split(",").forEach(function(a){return _this.tfm[a]=_get(target,a)}):this.tfm[property]=cache.x?cache[property]:_get(target,property),property===_transformOriginProp&&(this.tfm.zOrigin=cache.zOrigin);else return _propertyAliases.transform.split(",").forEach(function(p){return _saveStyle2.call(_this,p,isNotCSS)});if(this.props.indexOf(_transformProp)>=0)return;cache.svg&&(this.svgo=target.getAttribute("data-svg-origin"),this.props.push(_transformOriginProp,isNotCSS,"")),property=_transformProp}(style2||isNotCSS)&&this.props.push(property,isNotCSS,style2[property])},_removeIndependentTransforms=function(style2){style2.translate&&(style2.removeProperty("translate"),style2.removeProperty("scale"),style2.removeProperty("rotate"))},_revertStyle=function(){var props2=this.props,target=this.target,style2=target.style,cache=target._gsap,i,p;for(i=0;i<props2.length;i+=3)props2[i+1]?target[props2[i]]=props2[i+2]:props2[i+2]?style2[props2[i]]=props2[i+2]:style2.removeProperty(props2[i].substr(0,2)==="--"?props2[i]:props2[i].replace(_capsExp,"-$1").toLowerCase());if(this.tfm){for(p in this.tfm)cache[p]=this.tfm[p];cache.svg&&(cache.renderTransform(),target.setAttribute("data-svg-origin",this.svgo||"")),i=_reverting2(),(!i||!i.isStart)&&!style2[_transformProp]&&(_removeIndependentTransforms(style2),cache.zOrigin&&style2[_transformOriginProp]&&(style2[_transformOriginProp]+=" "+cache.zOrigin+"px",cache.zOrigin=0,cache.renderTransform()),cache.uncache=1)}},_getStyleSaver=function(target,properties){var saver={target,props:[],revert:_revertStyle,save:_saveStyle};return target._gsap||gsap.core.getCache(target),properties&&properties.split(",").forEach(function(p){return saver.save(p)}),saver},_supports3D,_createElement=function(type,ns){var e=_doc2.createElementNS?_doc2.createElementNS((ns||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),type):_doc2.createElement(type);return e&&e.style?e:_doc2.createElement(type)},_getComputedProperty=function _getComputedProperty2(target,property,skipPrefixFallback){var cs=getComputedStyle(target);return cs[property]||cs.getPropertyValue(property.replace(_capsExp,"-$1").toLowerCase())||cs.getPropertyValue(property)||!skipPrefixFallback&&_getComputedProperty2(target,_checkPropPrefix(property)||property,1)||""},_prefixes="O,Moz,ms,Ms,Webkit".split(","),_checkPropPrefix=function(property,element,preferPrefix){var e=element||_tempDiv,s2=e.style,i=5;if(property in s2&&!preferPrefix)return property;for(property=property.charAt(0).toUpperCase()+property.substr(1);i--&&!(_prefixes[i]+property in s2););return i<0?null:(i===3?"ms":i>=0?_prefixes[i]:"")+property},_initCore=function(){_windowExists3()&&window.document&&(_win2=window,_doc2=_win2.document,_docElement=_doc2.documentElement,_tempDiv=_createElement("div")||{style:{}},_tempDivStyler=_createElement("div"),_transformProp=_checkPropPrefix(_transformProp),_transformOriginProp=_transformProp+"Origin",_tempDiv.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",_supports3D=!!_checkPropPrefix("perspective"),_reverting2=gsap.core.reverting,_pluginInitted=1)},_getBBoxHack=function _getBBoxHack2(swapIfPossible){var svg=_createElement("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),oldParent=this.parentNode,oldSibling=this.nextSibling,oldCSS=this.style.cssText,bbox;if(_docElement.appendChild(svg),svg.appendChild(this),this.style.display="block",swapIfPossible)try{bbox=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=_getBBoxHack2}catch{}else this._gsapBBox&&(bbox=this._gsapBBox());return oldParent&&(oldSibling?oldParent.insertBefore(this,oldSibling):oldParent.appendChild(this)),_docElement.removeChild(svg),this.style.cssText=oldCSS,bbox},_getAttributeFallbacks=function(target,attributesArray){for(var i=attributesArray.length;i--;)if(target.hasAttribute(attributesArray[i]))return target.getAttribute(attributesArray[i])},_getBBox=function(target){var bounds;try{bounds=target.getBBox()}catch{bounds=_getBBoxHack.call(target,!0)}return bounds&&(bounds.width||bounds.height)||target.getBBox===_getBBoxHack||(bounds=_getBBoxHack.call(target,!0)),bounds&&!bounds.width&&!bounds.x&&!bounds.y?{x:+_getAttributeFallbacks(target,["x","cx","x1"])||0,y:+_getAttributeFallbacks(target,["y","cy","y1"])||0,width:0,height:0}:bounds},_isSVG=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&_getBBox(e))},_removeProperty=function(target,property){if(property){var style2=target.style,first2Chars;property in _transformProps&&property!==_transformOriginProp&&(property=_transformProp),style2.removeProperty?(first2Chars=property.substr(0,2),(first2Chars==="ms"||property.substr(0,6)==="webkit")&&(property="-"+property),style2.removeProperty(first2Chars==="--"?property:property.replace(_capsExp,"-$1").toLowerCase())):style2.removeAttribute(property)}},_addNonTweeningPT=function(plugin,target,property,beginning,end2,onlySetAtEnd){var pt=new PropTween(plugin._pt,target,property,0,1,onlySetAtEnd?_renderNonTweeningValueOnlyAtEnd:_renderNonTweeningValue);return plugin._pt=pt,pt.b=beginning,pt.e=end2,plugin._props.push(property),pt},_nonConvertibleUnits={deg:1,rad:1,turn:1},_nonStandardLayouts={grid:1,flex:1},_convertToUnit=function _convertToUnit2(target,property,value,unit){var curValue=parseFloat(value)||0,curUnit=(value+"").trim().substr((curValue+"").length)||"px",style2=_tempDiv.style,horizontal=_horizontalExp.test(property),isRootSVG=target.tagName.toLowerCase()==="svg",measureProperty=(isRootSVG?"client":"offset")+(horizontal?"Width":"Height"),amount=100,toPixels=unit==="px",toPercent=unit==="%",px,parent,cache,isSVG;if(unit===curUnit||!curValue||_nonConvertibleUnits[unit]||_nonConvertibleUnits[curUnit])return curValue;if(curUnit!=="px"&&!toPixels&&(curValue=_convertToUnit2(target,property,value,"px")),isSVG=target.getCTM&&_isSVG(target),(toPercent||curUnit==="%")&&(_transformProps[property]||~property.indexOf("adius")))return px=isSVG?target.getBBox()[horizontal?"width":"height"]:target[measureProperty],_round(toPercent?curValue/px*amount:curValue/100*px);if(style2[horizontal?"width":"height"]=amount+(toPixels?curUnit:unit),parent=~property.indexOf("adius")||unit==="em"&&target.appendChild&&!isRootSVG?target:target.parentNode,isSVG&&(parent=(target.ownerSVGElement||{}).parentNode),(!parent||parent===_doc2||!parent.appendChild)&&(parent=_doc2.body),cache=parent._gsap,cache&&toPercent&&cache.width&&horizontal&&cache.time===_ticker.time&&!cache.uncache)return _round(curValue/cache.width*amount);if(toPercent&&(property==="height"||property==="width")){var v=target.style[property];target.style[property]=amount+unit,px=target[measureProperty],v?target.style[property]=v:_removeProperty(target,property)}else(toPercent||curUnit==="%")&&!_nonStandardLayouts[_getComputedProperty(parent,"display")]&&(style2.position=_getComputedProperty(target,"position")),parent===target&&(style2.position="static"),parent.appendChild(_tempDiv),px=_tempDiv[measureProperty],parent.removeChild(_tempDiv),style2.position="absolute";return horizontal&&toPercent&&(cache=_getCache(parent),cache.time=_ticker.time,cache.width=parent[measureProperty]),_round(toPixels?px*curValue/amount:px&&curValue?amount/px*curValue:0)},_get=function(target,property,unit,uncache){var value;return _pluginInitted||_initCore(),property in _propertyAliases&&property!=="transform"&&(property=_propertyAliases[property],~property.indexOf(",")&&(property=property.split(",")[0])),_transformProps[property]&&property!=="transform"?(value=_parseTransform(target,uncache),value=property!=="transformOrigin"?value[property]:value.svg?value.origin:_firstTwoOnly(_getComputedProperty(target,_transformOriginProp))+" "+value.zOrigin+"px"):(value=target.style[property],(!value||value==="auto"||uncache||~(value+"").indexOf("calc("))&&(value=_specialProps[property]&&_specialProps[property](target,property,unit)||_getComputedProperty(target,property)||_getProperty(target,property)||(property==="opacity"?1:0))),unit&&!~(value+"").trim().indexOf(" ")?_convertToUnit(target,property,value,unit)+unit:value},_tweenComplexCSSString=function(target,prop,start3,end2){if(!start3||start3==="none"){var p=_checkPropPrefix(prop,target,1),s2=p&&_getComputedProperty(target,p,1);s2&&s2!==start3?(prop=p,start3=s2):prop==="borderColor"&&(start3=_getComputedProperty(target,"borderTopColor"))}var pt=new PropTween(this._pt,target.style,prop,0,1,_renderComplexString),index=0,matchIndex=0,a,result,startValues,startNum,color,startValue,endValue,endNum,chunk,endUnit,startUnit,endValues;if(pt.b=start3,pt.e=end2,start3+="",end2+="",end2==="auto"&&(startValue=target.style[prop],target.style[prop]=end2,end2=_getComputedProperty(target,prop)||end2,startValue?target.style[prop]=startValue:_removeProperty(target,prop)),a=[start3,end2],_colorStringFilter(a),start3=a[0],end2=a[1],startValues=start3.match(_numWithUnitExp)||[],endValues=end2.match(_numWithUnitExp)||[],endValues.length){for(;result=_numWithUnitExp.exec(end2);)endValue=result[0],chunk=end2.substring(index,result.index),color?color=(color+1)%5:(chunk.substr(-5)==="rgba("||chunk.substr(-5)==="hsla(")&&(color=1),endValue!==(startValue=startValues[matchIndex++]||"")&&(startNum=parseFloat(startValue)||0,startUnit=startValue.substr((startNum+"").length),endValue.charAt(1)==="="&&(endValue=_parseRelative(startNum,endValue)+startUnit),endNum=parseFloat(endValue),endUnit=endValue.substr((endNum+"").length),index=_numWithUnitExp.lastIndex-endUnit.length,endUnit||(endUnit=endUnit||_config.units[prop]||startUnit,index===end2.length&&(end2+=endUnit,pt.e+=endUnit)),startUnit!==endUnit&&(startNum=_convertToUnit(target,prop,startValue,endUnit)||0),pt._pt={_next:pt._pt,p:chunk||matchIndex===1?chunk:",",s:startNum,c:endNum-startNum,m:color&&color<4||prop==="zIndex"?Math.round:0});pt.c=index<end2.length?end2.substring(index,end2.length):""}else pt.r=prop==="display"&&end2==="none"?_renderNonTweeningValueOnlyAtEnd:_renderNonTweeningValue;return _relExp.test(end2)&&(pt.e=0),this._pt=pt,pt},_keywordToPercent={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},_convertKeywordsToPercentages=function(value){var split=value.split(" "),x=split[0],y=split[1]||"50%";return(x==="top"||x==="bottom"||y==="left"||y==="right")&&(value=x,x=y,y=value),split[0]=_keywordToPercent[x]||x,split[1]=_keywordToPercent[y]||y,split.join(" ")},_renderClearProps=function(ratio,data){if(data.tween&&data.tween._time===data.tween._dur){var target=data.t,style2=target.style,props2=data.u,cache=target._gsap,prop,clearTransforms,i;if(props2==="all"||props2===!0)style2.cssText="",clearTransforms=1;else for(props2=props2.split(","),i=props2.length;--i>-1;)prop=props2[i],_transformProps[prop]&&(clearTransforms=1,prop=prop==="transformOrigin"?_transformOriginProp:_transformProp),_removeProperty(target,prop);clearTransforms&&(_removeProperty(target,_transformProp),cache&&(cache.svg&&target.removeAttribute("transform"),_parseTransform(target,1),cache.uncache=1,_removeIndependentTransforms(style2)))}},_specialProps={clearProps:function(plugin,target,property,endValue,tween){if(tween.data!=="isFromStart"){var pt=plugin._pt=new PropTween(plugin._pt,target,property,0,0,_renderClearProps);return pt.u=endValue,pt.pr=-10,pt.tween=tween,plugin._props.push(property),1}}},_identity2DMatrix=[1,0,0,1,0,0],_rotationalProperties={},_isNullTransform=function(value){return value==="matrix(1, 0, 0, 1, 0, 0)"||value==="none"||!value},_getComputedTransformMatrixAsArray=function(target){var matrixString=_getComputedProperty(target,_transformProp);return _isNullTransform(matrixString)?_identity2DMatrix:matrixString.substr(7).match(_numExp).map(_round)},_getMatrix=function(target,force2D){var cache=target._gsap||_getCache(target),style2=target.style,matrix=_getComputedTransformMatrixAsArray(target),parent,nextSibling,temp,addedToDOM;return cache.svg&&target.getAttribute("transform")?(temp=target.transform.baseVal.consolidate().matrix,matrix=[temp.a,temp.b,temp.c,temp.d,temp.e,temp.f],matrix.join(",")==="1,0,0,1,0,0"?_identity2DMatrix:matrix):(matrix===_identity2DMatrix&&!target.offsetParent&&target!==_docElement&&!cache.svg&&(temp=style2.display,style2.display="block",parent=target.parentNode,(!parent||!target.offsetParent)&&(addedToDOM=1,nextSibling=target.nextElementSibling,_docElement.appendChild(target)),matrix=_getComputedTransformMatrixAsArray(target),temp?style2.display=temp:_removeProperty(target,"display"),addedToDOM&&(nextSibling?parent.insertBefore(target,nextSibling):parent?parent.appendChild(target):_docElement.removeChild(target))),force2D&&matrix.length>6?[matrix[0],matrix[1],matrix[4],matrix[5],matrix[12],matrix[13]]:matrix)},_applySVGOrigin=function(target,origin,originIsAbsolute,smooth,matrixArray,pluginToAddPropTweensTo){var cache=target._gsap,matrix=matrixArray||_getMatrix(target,!0),xOriginOld=cache.xOrigin||0,yOriginOld=cache.yOrigin||0,xOffsetOld=cache.xOffset||0,yOffsetOld=cache.yOffset||0,a=matrix[0],b=matrix[1],c=matrix[2],d=matrix[3],tx=matrix[4],ty=matrix[5],originSplit=origin.split(" "),xOrigin=parseFloat(originSplit[0])||0,yOrigin=parseFloat(originSplit[1])||0,bounds,determinant,x,y;originIsAbsolute?matrix!==_identity2DMatrix&&(determinant=a*d-b*c)&&(x=xOrigin*(d/determinant)+yOrigin*(-c/determinant)+(c*ty-d*tx)/determinant,y=xOrigin*(-b/determinant)+yOrigin*(a/determinant)-(a*ty-b*tx)/determinant,xOrigin=x,yOrigin=y):(bounds=_getBBox(target),xOrigin=bounds.x+(~originSplit[0].indexOf("%")?xOrigin/100*bounds.width:xOrigin),yOrigin=bounds.y+(~(originSplit[1]||originSplit[0]).indexOf("%")?yOrigin/100*bounds.height:yOrigin)),smooth||smooth!==!1&&cache.smooth?(tx=xOrigin-xOriginOld,ty=yOrigin-yOriginOld,cache.xOffset=xOffsetOld+(tx*a+ty*c)-tx,cache.yOffset=yOffsetOld+(tx*b+ty*d)-ty):cache.xOffset=cache.yOffset=0,cache.xOrigin=xOrigin,cache.yOrigin=yOrigin,cache.smooth=!!smooth,cache.origin=origin,cache.originIsAbsolute=!!originIsAbsolute,target.style[_transformOriginProp]="0px 0px",pluginToAddPropTweensTo&&(_addNonTweeningPT(pluginToAddPropTweensTo,cache,"xOrigin",xOriginOld,xOrigin),_addNonTweeningPT(pluginToAddPropTweensTo,cache,"yOrigin",yOriginOld,yOrigin),_addNonTweeningPT(pluginToAddPropTweensTo,cache,"xOffset",xOffsetOld,cache.xOffset),_addNonTweeningPT(pluginToAddPropTweensTo,cache,"yOffset",yOffsetOld,cache.yOffset)),target.setAttribute("data-svg-origin",xOrigin+" "+yOrigin)},_parseTransform=function(target,uncache){var cache=target._gsap||new GSCache(target);if("x"in cache&&!uncache&&!cache.uncache)return cache;var style2=target.style,invertedScaleX=cache.scaleX<0,px="px",deg="deg",cs=getComputedStyle(target),origin=_getComputedProperty(target,_transformOriginProp)||"0",x,y,z,scaleX,scaleY,rotation,rotationX,rotationY,skewX,skewY,perspective,xOrigin,yOrigin,matrix,angle,cos,sin,a,b,c,d,a12,a22,t1,t2,t3,a13,a23,a33,a42,a43,a32;return x=y=z=rotation=rotationX=rotationY=skewX=skewY=perspective=0,scaleX=scaleY=1,cache.svg=!!(target.getCTM&&_isSVG(target)),cs.translate&&((cs.translate!=="none"||cs.scale!=="none"||cs.rotate!=="none")&&(style2[_transformProp]=(cs.translate!=="none"?"translate3d("+(cs.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(cs.rotate!=="none"?"rotate("+cs.rotate+") ":"")+(cs.scale!=="none"?"scale("+cs.scale.split(" ").join(",")+") ":"")+(cs[_transformProp]!=="none"?cs[_transformProp]:"")),style2.scale=style2.rotate=style2.translate="none"),matrix=_getMatrix(target,cache.svg),cache.svg&&(cache.uncache?(t2=target.getBBox(),origin=cache.xOrigin-t2.x+"px "+(cache.yOrigin-t2.y)+"px",t1=""):t1=!uncache&&target.getAttribute("data-svg-origin"),_applySVGOrigin(target,t1||origin,!!t1||cache.originIsAbsolute,cache.smooth!==!1,matrix)),xOrigin=cache.xOrigin||0,yOrigin=cache.yOrigin||0,matrix!==_identity2DMatrix&&(a=matrix[0],b=matrix[1],c=matrix[2],d=matrix[3],x=a12=matrix[4],y=a22=matrix[5],matrix.length===6?(scaleX=Math.sqrt(a*a+b*b),scaleY=Math.sqrt(d*d+c*c),rotation=a||b?_atan2(b,a)*_RAD2DEG:0,skewX=c||d?_atan2(c,d)*_RAD2DEG+rotation:0,skewX&&(scaleY*=Math.abs(Math.cos(skewX*_DEG2RAD))),cache.svg&&(x-=xOrigin-(xOrigin*a+yOrigin*c),y-=yOrigin-(xOrigin*b+yOrigin*d))):(a32=matrix[6],a42=matrix[7],a13=matrix[8],a23=matrix[9],a33=matrix[10],a43=matrix[11],x=matrix[12],y=matrix[13],z=matrix[14],angle=_atan2(a32,a33),rotationX=angle*_RAD2DEG,angle&&(cos=Math.cos(-angle),sin=Math.sin(-angle),t1=a12*cos+a13*sin,t2=a22*cos+a23*sin,t3=a32*cos+a33*sin,a13=a12*-sin+a13*cos,a23=a22*-sin+a23*cos,a33=a32*-sin+a33*cos,a43=a42*-sin+a43*cos,a12=t1,a22=t2,a32=t3),angle=_atan2(-c,a33),rotationY=angle*_RAD2DEG,angle&&(cos=Math.cos(-angle),sin=Math.sin(-angle),t1=a*cos-a13*sin,t2=b*cos-a23*sin,t3=c*cos-a33*sin,a43=d*sin+a43*cos,a=t1,b=t2,c=t3),angle=_atan2(b,a),rotation=angle*_RAD2DEG,angle&&(cos=Math.cos(angle),sin=Math.sin(angle),t1=a*cos+b*sin,t2=a12*cos+a22*sin,b=b*cos-a*sin,a22=a22*cos-a12*sin,a=t1,a12=t2),rotationX&&Math.abs(rotationX)+Math.abs(rotation)>359.9&&(rotationX=rotation=0,rotationY=180-rotationY),scaleX=_round(Math.sqrt(a*a+b*b+c*c)),scaleY=_round(Math.sqrt(a22*a22+a32*a32)),angle=_atan2(a12,a22),skewX=Math.abs(angle)>2e-4?angle*_RAD2DEG:0,perspective=a43?1/(a43<0?-a43:a43):0),cache.svg&&(t1=target.getAttribute("transform"),cache.forceCSS=target.setAttribute("transform","")||!_isNullTransform(_getComputedProperty(target,_transformProp)),t1&&target.setAttribute("transform",t1))),Math.abs(skewX)>90&&Math.abs(skewX)<270&&(invertedScaleX?(scaleX*=-1,skewX+=rotation<=0?180:-180,rotation+=rotation<=0?180:-180):(scaleY*=-1,skewX+=skewX<=0?180:-180)),uncache=uncache||cache.uncache,cache.x=x-((cache.xPercent=x&&(!uncache&&cache.xPercent||(Math.round(target.offsetWidth/2)===Math.round(-x)?-50:0)))?target.offsetWidth*cache.xPercent/100:0)+px,cache.y=y-((cache.yPercent=y&&(!uncache&&cache.yPercent||(Math.round(target.offsetHeight/2)===Math.round(-y)?-50:0)))?target.offsetHeight*cache.yPercent/100:0)+px,cache.z=z+px,cache.scaleX=_round(scaleX),cache.scaleY=_round(scaleY),cache.rotation=_round(rotation)+deg,cache.rotationX=_round(rotationX)+deg,cache.rotationY=_round(rotationY)+deg,cache.skewX=skewX+deg,cache.skewY=skewY+deg,cache.transformPerspective=perspective+px,(cache.zOrigin=parseFloat(origin.split(" ")[2])||!uncache&&cache.zOrigin||0)&&(style2[_transformOriginProp]=_firstTwoOnly(origin)),cache.xOffset=cache.yOffset=0,cache.force3D=_config.force3D,cache.renderTransform=cache.svg?_renderSVGTransforms:_supports3D?_renderCSSTransforms:_renderNon3DTransforms,cache.uncache=0,cache},_firstTwoOnly=function(value){return(value=value.split(" "))[0]+" "+value[1]},_addPxTranslate=function(target,start3,value){var unit=getUnit(start3);return _round(parseFloat(start3)+parseFloat(_convertToUnit(target,"x",value+"px",unit)))+unit},_renderNon3DTransforms=function(ratio,cache){cache.z="0px",cache.rotationY=cache.rotationX="0deg",cache.force3D=0,_renderCSSTransforms(ratio,cache)},_zeroDeg="0deg",_zeroPx="0px",_endParenthesis=") ",_renderCSSTransforms=function(ratio,cache){var _ref=cache||this,xPercent=_ref.xPercent,yPercent=_ref.yPercent,x=_ref.x,y=_ref.y,z=_ref.z,rotation=_ref.rotation,rotationY=_ref.rotationY,rotationX=_ref.rotationX,skewX=_ref.skewX,skewY=_ref.skewY,scaleX=_ref.scaleX,scaleY=_ref.scaleY,transformPerspective=_ref.transformPerspective,force3D=_ref.force3D,target=_ref.target,zOrigin=_ref.zOrigin,transforms="",use3D=force3D==="auto"&&ratio&&ratio!==1||force3D===!0;if(zOrigin&&(rotationX!==_zeroDeg||rotationY!==_zeroDeg)){var angle=parseFloat(rotationY)*_DEG2RAD,a13=Math.sin(angle),a33=Math.cos(angle),cos;angle=parseFloat(rotationX)*_DEG2RAD,cos=Math.cos(angle),x=_addPxTranslate(target,x,a13*cos*-zOrigin),y=_addPxTranslate(target,y,-Math.sin(angle)*-zOrigin),z=_addPxTranslate(target,z,a33*cos*-zOrigin+zOrigin)}transformPerspective!==_zeroPx&&(transforms+="perspective("+transformPerspective+_endParenthesis),(xPercent||yPercent)&&(transforms+="translate("+xPercent+"%, "+yPercent+"%) "),(use3D||x!==_zeroPx||y!==_zeroPx||z!==_zeroPx)&&(transforms+=z!==_zeroPx||use3D?"translate3d("+x+", "+y+", "+z+") ":"translate("+x+", "+y+_endParenthesis),rotation!==_zeroDeg&&(transforms+="rotate("+rotation+_endParenthesis),rotationY!==_zeroDeg&&(transforms+="rotateY("+rotationY+_endParenthesis),rotationX!==_zeroDeg&&(transforms+="rotateX("+rotationX+_endParenthesis),(skewX!==_zeroDeg||skewY!==_zeroDeg)&&(transforms+="skew("+skewX+", "+skewY+_endParenthesis),(scaleX!==1||scaleY!==1)&&(transforms+="scale("+scaleX+", "+scaleY+_endParenthesis),target.style[_transformProp]=transforms||"translate(0, 0)"},_renderSVGTransforms=function(ratio,cache){var _ref2=cache||this,xPercent=_ref2.xPercent,yPercent=_ref2.yPercent,x=_ref2.x,y=_ref2.y,rotation=_ref2.rotation,skewX=_ref2.skewX,skewY=_ref2.skewY,scaleX=_ref2.scaleX,scaleY=_ref2.scaleY,target=_ref2.target,xOrigin=_ref2.xOrigin,yOrigin=_ref2.yOrigin,xOffset=_ref2.xOffset,yOffset=_ref2.yOffset,forceCSS=_ref2.forceCSS,tx=parseFloat(x),ty=parseFloat(y),a11,a21,a12,a22,temp;rotation=parseFloat(rotation),skewX=parseFloat(skewX),skewY=parseFloat(skewY),skewY&&(skewY=parseFloat(skewY),skewX+=skewY,rotation+=skewY),rotation||skewX?(rotation*=_DEG2RAD,skewX*=_DEG2RAD,a11=Math.cos(rotation)*scaleX,a21=Math.sin(rotation)*scaleX,a12=Math.sin(rotation-skewX)*-scaleY,a22=Math.cos(rotation-skewX)*scaleY,skewX&&(skewY*=_DEG2RAD,temp=Math.tan(skewX-skewY),temp=Math.sqrt(1+temp*temp),a12*=temp,a22*=temp,skewY&&(temp=Math.tan(skewY),temp=Math.sqrt(1+temp*temp),a11*=temp,a21*=temp)),a11=_round(a11),a21=_round(a21),a12=_round(a12),a22=_round(a22)):(a11=scaleX,a22=scaleY,a21=a12=0),(tx&&!~(x+"").indexOf("px")||ty&&!~(y+"").indexOf("px"))&&(tx=_convertToUnit(target,"x",x,"px"),ty=_convertToUnit(target,"y",y,"px")),(xOrigin||yOrigin||xOffset||yOffset)&&(tx=_round(tx+xOrigin-(xOrigin*a11+yOrigin*a12)+xOffset),ty=_round(ty+yOrigin-(xOrigin*a21+yOrigin*a22)+yOffset)),(xPercent||yPercent)&&(temp=target.getBBox(),tx=_round(tx+xPercent/100*temp.width),ty=_round(ty+yPercent/100*temp.height)),temp="matrix("+a11+","+a21+","+a12+","+a22+","+tx+","+ty+")",target.setAttribute("transform",temp),forceCSS&&(target.style[_transformProp]=temp)},_addRotationalPropTween=function(plugin,target,property,startNum,endValue){var cap=360,isString2=_isString(endValue),endNum=parseFloat(endValue)*(isString2&&~endValue.indexOf("rad")?_RAD2DEG:1),change=endNum-startNum,finalValue=startNum+change+"deg",direction,pt;return isString2&&(direction=endValue.split("_")[1],direction==="short"&&(change%=cap,change!==change%(cap/2)&&(change+=change<0?cap:-cap)),direction==="cw"&&change<0?change=(change+cap*_bigNum2)%cap-~~(change/cap)*cap:direction==="ccw"&&change>0&&(change=(change-cap*_bigNum2)%cap-~~(change/cap)*cap)),plugin._pt=pt=new PropTween(plugin._pt,target,property,startNum,change,_renderPropWithEnd),pt.e=finalValue,pt.u="deg",plugin._props.push(property),pt},_assign=function(target,source){for(var p in source)target[p]=source[p];return target},_addRawTransformPTs=function(plugin,transforms,target){var startCache=_assign({},target._gsap),exclude="perspective,force3D,transformOrigin,svgOrigin",style2=target.style,endCache,p,startValue,endValue,startNum,endNum,startUnit,endUnit;startCache.svg?(startValue=target.getAttribute("transform"),target.setAttribute("transform",""),style2[_transformProp]=transforms,endCache=_parseTransform(target,1),_removeProperty(target,_transformProp),target.setAttribute("transform",startValue)):(startValue=getComputedStyle(target)[_transformProp],style2[_transformProp]=transforms,endCache=_parseTransform(target,1),style2[_transformProp]=startValue);for(p in _transformProps)startValue=startCache[p],endValue=endCache[p],startValue!==endValue&&exclude.indexOf(p)<0&&(startUnit=getUnit(startValue),endUnit=getUnit(endValue),startNum=startUnit!==endUnit?_convertToUnit(target,p,startValue,endUnit):parseFloat(startValue),endNum=parseFloat(endValue),plugin._pt=new PropTween(plugin._pt,endCache,p,startNum,endNum-startNum,_renderCSSProp),plugin._pt.u=endUnit||0,plugin._props.push(p));_assign(endCache,startCache)};_forEachName("padding,margin,Width,Radius",function(name,index){var t="Top",r="Right",b="Bottom",l2="Left",props2=(index<3?[t,r,b,l2]:[t+l2,t+r,b+r,b+l2]).map(function(side){return index<2?name+side:"border"+side+name});_specialProps[index>1?"border"+name:name]=function(plugin,target,property,endValue,tween){var a,vars;if(arguments.length<4)return a=props2.map(function(prop){return _get(plugin,prop,property)}),vars=a.join(" "),vars.split(a[0]).length===5?a[0]:vars;a=(endValue+"").split(" "),vars={},props2.forEach(function(prop,i){return vars[prop]=a[i]=a[i]||a[(i-1)/2|0]}),plugin.init(target,vars,tween)}});var CSSPlugin={name:"css",register:_initCore,targetTest:function(target){return target.style&&target.nodeType},init:function(target,vars,tween,index,targets){var props2=this._props,style2=target.style,startAt=tween.vars.startAt,startValue,endValue,endNum,startNum,type,specialProp,p,startUnit,endUnit,relative,isTransformRelated,transformPropTween,cache,smooth,hasPriority,inlineProps;_pluginInitted||_initCore(),this.styles=this.styles||_getStyleSaver(target),inlineProps=this.styles.props,this.tween=tween;for(p in vars)if(p!=="autoRound"&&(endValue=vars[p],!(_plugins[p]&&_checkPlugin(p,vars,tween,index,target,targets)))){if(type=typeof endValue,specialProp=_specialProps[p],type==="function"&&(endValue=endValue.call(tween,index,target,targets),type=typeof endValue),type==="string"&&~endValue.indexOf("random(")&&(endValue=_replaceRandom(endValue)),specialProp)specialProp(this,target,p,endValue,tween)&&(hasPriority=1);else if(p.substr(0,2)==="--")startValue=(getComputedStyle(target).getPropertyValue(p)+"").trim(),endValue+="",_colorExp.lastIndex=0,_colorExp.test(startValue)||(startUnit=getUnit(startValue),endUnit=getUnit(endValue)),endUnit?startUnit!==endUnit&&(startValue=_convertToUnit(target,p,startValue,endUnit)+endUnit):startUnit&&(endValue+=startUnit),this.add(style2,"setProperty",startValue,endValue,index,targets,0,0,p),props2.push(p),inlineProps.push(p,0,style2[p]);else if(type!=="undefined"){if(startAt&&p in startAt?(startValue=typeof startAt[p]=="function"?startAt[p].call(tween,index,target,targets):startAt[p],_isString(startValue)&&~startValue.indexOf("random(")&&(startValue=_replaceRandom(startValue)),getUnit(startValue+"")||startValue==="auto"||(startValue+=_config.units[p]||getUnit(_get(target,p))||""),(startValue+"").charAt(1)==="="&&(startValue=_get(target,p))):startValue=_get(target,p),startNum=parseFloat(startValue),relative=type==="string"&&endValue.charAt(1)==="="&&endValue.substr(0,2),relative&&(endValue=endValue.substr(2)),endNum=parseFloat(endValue),p in _propertyAliases&&(p==="autoAlpha"&&(startNum===1&&_get(target,"visibility")==="hidden"&&endNum&&(startNum=0),inlineProps.push("visibility",0,style2.visibility),_addNonTweeningPT(this,style2,"visibility",startNum?"inherit":"hidden",endNum?"inherit":"hidden",!endNum)),p!=="scale"&&p!=="transform"&&(p=_propertyAliases[p],~p.indexOf(",")&&(p=p.split(",")[0]))),isTransformRelated=p in _transformProps,isTransformRelated){if(this.styles.save(p),transformPropTween||(cache=target._gsap,cache.renderTransform&&!vars.parseTransform||_parseTransform(target,vars.parseTransform),smooth=vars.smoothOrigin!==!1&&cache.smooth,transformPropTween=this._pt=new PropTween(this._pt,style2,_transformProp,0,1,cache.renderTransform,cache,0,-1),transformPropTween.dep=1),p==="scale")this._pt=new PropTween(this._pt,cache,"scaleY",cache.scaleY,(relative?_parseRelative(cache.scaleY,relative+endNum):endNum)-cache.scaleY||0,_renderCSSProp),this._pt.u=0,props2.push("scaleY",p),p+="X";else if(p==="transformOrigin"){inlineProps.push(_transformOriginProp,0,style2[_transformOriginProp]),endValue=_convertKeywordsToPercentages(endValue),cache.svg?_applySVGOrigin(target,endValue,0,smooth,0,this):(endUnit=parseFloat(endValue.split(" ")[2])||0,endUnit!==cache.zOrigin&&_addNonTweeningPT(this,cache,"zOrigin",cache.zOrigin,endUnit),_addNonTweeningPT(this,style2,p,_firstTwoOnly(startValue),_firstTwoOnly(endValue)));continue}else if(p==="svgOrigin"){_applySVGOrigin(target,endValue,1,smooth,0,this);continue}else if(p in _rotationalProperties){_addRotationalPropTween(this,cache,p,startNum,relative?_parseRelative(startNum,relative+endValue):endValue);continue}else if(p==="smoothOrigin"){_addNonTweeningPT(this,cache,"smooth",cache.smooth,endValue);continue}else if(p==="force3D"){cache[p]=endValue;continue}else if(p==="transform"){_addRawTransformPTs(this,endValue,target);continue}}else p in style2||(p=_checkPropPrefix(p)||p);if(isTransformRelated||(endNum||endNum===0)&&(startNum||startNum===0)&&!_complexExp.test(endValue)&&p in style2)startUnit=(startValue+"").substr((startNum+"").length),endNum||(endNum=0),endUnit=getUnit(endValue)||(p in _config.units?_config.units[p]:startUnit),startUnit!==endUnit&&(startNum=_convertToUnit(target,p,startValue,endUnit)),this._pt=new PropTween(this._pt,isTransformRelated?cache:style2,p,startNum,(relative?_parseRelative(startNum,relative+endNum):endNum)-startNum,!isTransformRelated&&(endUnit==="px"||p==="zIndex")&&vars.autoRound!==!1?_renderRoundedCSSProp:_renderCSSProp),this._pt.u=endUnit||0,startUnit!==endUnit&&endUnit!=="%"&&(this._pt.b=startValue,this._pt.r=_renderCSSPropWithBeginning);else if(p in style2)_tweenComplexCSSString.call(this,target,p,startValue,relative?relative+endValue:endValue);else if(p in target)this.add(target,p,startValue||target[p],relative?relative+endValue:endValue,index,targets);else if(p!=="parseTransform"){_missingPlugin(p,endValue);continue}isTransformRelated||(p in style2?inlineProps.push(p,0,style2[p]):inlineProps.push(p,1,startValue||target[p])),props2.push(p)}}hasPriority&&_sortPropTweensByPriority(this)},render:function(ratio,data){if(data.tween._time||!_reverting2())for(var pt=data._pt;pt;)pt.r(ratio,pt.d),pt=pt._next;else data.styles.revert()},get:_get,aliases:_propertyAliases,getSetter:function(target,property,plugin){var p=_propertyAliases[property];return p&&p.indexOf(",")<0&&(property=p),property in _transformProps&&property!==_transformOriginProp&&(target._gsap.x||_get(target,"x"))?plugin&&_recentSetterPlugin===plugin?property==="scale"?_setterScale:_setterTransform:(_recentSetterPlugin=plugin||{})&&(property==="scale"?_setterScaleWithRender:_setterTransformWithRender):target.style&&!_isUndefined(target.style[property])?_setterCSSStyle:~property.indexOf("-")?_setterCSSProp:_getSetter(target,property)},core:{_removeProperty,_getMatrix}};gsap.utils.checkPrefix=_checkPropPrefix;gsap.core.getStyleSaver=_getStyleSaver;(function(positionAndScale,rotation,others,aliases){var all=_forEachName(positionAndScale+","+rotation+","+others,function(name){_transformProps[name]=1});_forEachName(rotation,function(name){_config.units[name]="deg",_rotationalProperties[name]=1}),_propertyAliases[all[13]]=positionAndScale+","+rotation,_forEachName(aliases,function(name){var split=name.split(":");_propertyAliases[split[1]]=all[split[0]]})})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY");_forEachName("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(name){_config.units[name]="px"});gsap.registerPlugin(CSSPlugin);var gsapWithCSS=gsap.registerPlugin(CSSPlugin)||gsap,TweenMaxWithCSS=gsapWithCSS.core.Tween;function animateIn(element,done){gsapWithCSS.fromTo(element,{opacity:0,y:"25vh"},{opacity:1,y:0,duration:.25,ease:"power3",onComplete:done,force3D:!0})}function animateOut(element,done){gsapWithCSS.to(element,{opacity:0,duration:.2,ease:"power3",onComplete:done,force3D:!0})}var ViewerRef=class{constructor(_ngZone,componentRef,afterOpened,config3){this._ngZone=_ngZone,this.componentRef=componentRef,this._afterClosed=new Subject,this.closing=!1,this.closed=!1,this.navigateBackAfterClosed=!0,this._afterOpened=afterOpened,this.config=__spreadValues({data:{}},config3)}get minimized(){return this.componentRef.instance.minimized}afterClosed(){return this._afterClosed.asObservable()}afterOpened(){return this._afterOpened.asObservable()}close(){if(this.closing)return;this.closing=!0;let{nativeElement}=this.componentRef.location;requestAnimationFrame(()=>{animateOut(nativeElement,()=>{this._ngZone.run(()=>{this.componentRef.destroy(),nativeElement.remove(),this.closed=!0,this._afterClosed.next(),this._afterClosed.complete()})})})}minimize(){let{nativeElement}=this.componentRef.location,index=nativeElement.parentElement.querySelectorAll("ix-viewer.minimized").length;nativeElement.setAttribute("tabindex",index),this.componentRef.instance.minimize()}resume(){this.componentRef.instance.resume()}};var HistoryService=(()=>{let _HistoryService=class _HistoryService{constructor(router){this.router=router,this.history=[]}run(){this.router.events.pipe(filter(event2=>event2 instanceof NavigationEnd),map(({urlAfterRedirects})=>urlAfterRedirects),filter(url=>!url.startsWith("/login?next=")),distinctUntilChanged()).subscribe(url=>{this.history.unshift(url),this.history=this.history.slice(0,3)})}back(){return this.router.navigateByUrl(this.getPreviousUrl())}getHistory(){return this.history}getPreviousUrl(fallbackUrl="/"){return this.history[1]||fallbackUrl}};_HistoryService.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_HistoryService)(\u0275\u0275inject(Router))},_HistoryService.\u0275prov=\u0275\u0275defineInjectable({token:_HistoryService,factory:_HistoryService.\u0275fac,providedIn:"root"});let HistoryService2=_HistoryService;return HistoryService2})();var VIEWER_DATA=new InjectionToken("ViewerData"),VIEWER_REF_CACHE=new InjectionToken("ViewerRefCache"),VIEWER_AFTER_OPENED=new InjectionToken("ViewerAfterOpened",{providedIn:"root",factory:()=>new Subject}),ViewerService=(()=>{let _ViewerService=class _ViewerService{constructor(document2,viewerRefs,_afterOpened,ngZone,injector,resolver,router,history){this.document=document2,this.viewerRefs=viewerRefs,this._afterOpened=_afterOpened,this.ngZone=ngZone,this.injector=injector,this.resolver=resolver,this.router=router,this.history=history,this._openViewers=[],this.afterOpened=this._afterOpened.asObservable(),this._afterOpened.subscribe(ref=>{ref.afterClosed().subscribe(()=>{this._openViewers.splice(this._openViewers.indexOf(ref),1)}),this._openViewers.push(ref)})}get openViewers(){return this._openViewers}open(component,config3){this.closeAll();let ref=this.attach(component,config3);return ref.afterClosed().subscribe(()=>{if(ref.navigateBackAfterClosed){let backUrl=config3?.backUrl||this.history.getPreviousUrl();this.router.navigateByUrl(backUrl)}}),ref}closeAll(){for(;this.viewerRefs.length;){let ref=this.viewerRefs.pop();ref&&!ref.closed&&(ref.navigateBackAfterClosed=!1,ref.close())}}attach(component,config3){let componentRef=this.resolver.resolveComponentFactory(ViewerComponent).create(this.injector),afterOpened=new Subject,ref=new ViewerRef(this.ngZone,componentRef,afterOpened),injector=this.createInjector(ref,config3),portal=new ComponentPortal(component,void 0,injector);return componentRef.instance.portal=portal,componentRef.instance.url=this.router.url,componentRef.hostView.detectChanges(),this.document.body.appendChild(componentRef.location.nativeElement),this.history.getHistory().length>1?requestAnimationFrame(()=>{animateIn(componentRef.location.nativeElement,()=>{this.ngZone.run(()=>{afterOpened.next(),afterOpened.complete(),this._afterOpened.next(ref)})})}):requestAnimationFrame(()=>{this.ngZone.run(()=>{afterOpened.next(),afterOpened.complete(),this._afterOpened.next(ref)})}),this.viewerRefs.includes(ref)||(this.viewerRefs.forEach((r,i)=>{r.closed&&this.viewerRefs.splice(i,1)}),this.viewerRefs.unshift(ref)),ref}createInjector(viewerRef,config3){return Injector.create({providers:[{provide:VIEWER_DATA,useValue:config3?.data||null},{provide:ViewerRef,useValue:viewerRef}]})}};_ViewerService.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_ViewerService)(\u0275\u0275inject(DOCUMENT),\u0275\u0275inject(VIEWER_REF_CACHE),\u0275\u0275inject(VIEWER_AFTER_OPENED),\u0275\u0275inject(NgZone),\u0275\u0275inject(Injector),\u0275\u0275inject(ComponentFactoryResolver$1),\u0275\u0275inject(Router),\u0275\u0275inject(HistoryService))},_ViewerService.\u0275prov=\u0275\u0275defineInjectable({token:_ViewerService,factory:_ViewerService.\u0275fac});let ViewerService2=_ViewerService;return ViewerService2})();var LayoutModule2=(()=>{let _LayoutModule=class _LayoutModule{};_LayoutModule.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_LayoutModule)},_LayoutModule.\u0275mod=\u0275\u0275defineNgModule({type:_LayoutModule}),_LayoutModule.\u0275inj=\u0275\u0275defineInjector({providers:[provideHappyCorner(),ViewerService,{provide:VIEWER_REF_CACHE,useValue:[]}]});let LayoutModule3=_LayoutModule;return LayoutModule3})();var FeatureEventType=function(FeatureEventType2){return FeatureEventType2.LoggedIn="ayayot.auth.logged-in",FeatureEventType2.LoggedOut="ayayot.auth.logged-out",FeatureEventType2.CompanyChanged="ayayot.company.changed",FeatureEventType2}(FeatureEventType||{});var __FEATURES=[],__FEATURES_CURRENT_USER_ID,__FEATURES_CURRENT_COMPANY_ID;function hasFeature(key){return __FEATURES.some(feature44=>feature44.name===key&&feature44.enabled?feature44.strategies.reduce((flag,strategy)=>{if(!flag&&strategy.name==="default")return!0;let posibleUserWithIds=[__FEATURES_CURRENT_USER_ID,__FEATURES_CURRENT_COMPANY_ID].filter(userWithId=>userWithId!==""&&userWithId!==void 0&&userWithId!==null).map(value=>value);return!flag&&strategy.name==="userWithId"&&posibleUserWithIds.length>0?posibleUserWithIds.some(userWithId=>strategy.parameters.userIds.split(",").includes(userWithId)):flag},!1):!1)}function getFeatures(){return __FEATURES}function setFeatures(features2){__FEATURES=features2}var hasFeatureMemoized=memoize_default(hasFeature),getFeaturesMemoized=memoize_default(getFeatures);function init4(){return window.addEventListener(FeatureEventType.LoggedIn,event2=>{__FEATURES_CURRENT_USER_ID=event2.detail}),window.addEventListener(FeatureEventType.LoggedOut,()=>{__FEATURES_CURRENT_USER_ID=void 0,hasFeatureMemoized.cache.clear?.(),getFeaturesMemoized.cache.clear?.()}),window.addEventListener(FeatureEventType.CompanyChanged,event2=>{__FEATURES_CURRENT_COMPANY_ID=event2.detail,hasFeatureMemoized.cache.clear?.(),getFeaturesMemoized.cache.clear?.()}),fetch("./features.json").then(res=>res.json()).then(features2=>{setFeatures(features2)}).catch(()=>{setFeatures([])})}var features={hasFeature:hasFeatureMemoized,init:init4,getFeatures:getFeaturesMemoized};var _c0=["*"];function GridsterComponent_For_1_Template(rf,ctx){if(rf&1&&\u0275\u0275element(0,"div",0),rf&2){let \u0275$index_1_r1=ctx.$index,ctx_r1=\u0275\u0275nextContext();\u0275\u0275property("ngStyle",ctx_r1.gridRenderer.getGridColumnStyle(\u0275$index_1_r1))}}function GridsterComponent_For_3_Template(rf,ctx){if(rf&1&&\u0275\u0275element(0,"div",1),rf&2){let \u0275$index_4_r3=ctx.$index,ctx_r1=\u0275\u0275nextContext();\u0275\u0275property("ngStyle",ctx_r1.gridRenderer.getGridRowStyle(\u0275$index_4_r3))}}function GridsterItemComponent_Conditional_1_Template(rf,ctx){if(rf&1){let _r1=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"div",8),\u0275\u0275listener("mousedown",function($event){\u0275\u0275restoreView(_r1);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.resize.dragStartDelay($event))})("touchstart",function($event){\u0275\u0275restoreView(_r1);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.resize.dragStartDelay($event))}),\u0275\u0275elementEnd()}}function GridsterItemComponent_Conditional_2_Template(rf,ctx){if(rf&1){let _r3=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"div",9),\u0275\u0275listener("mousedown",function($event){\u0275\u0275restoreView(_r3);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.resize.dragStartDelay($event))})("touchstart",function($event){\u0275\u0275restoreView(_r3);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.resize.dragStartDelay($event))}),\u0275\u0275elementEnd()}}function GridsterItemComponent_Conditional_3_Template(rf,ctx){if(rf&1){let _r4=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"div",10),\u0275\u0275listener("mousedown",function($event){\u0275\u0275restoreView(_r4);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.resize.dragStartDelay($event))})("touchstart",function($event){\u0275\u0275restoreView(_r4);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.resize.dragStartDelay($event))}),\u0275\u0275elementEnd()}}function GridsterItemComponent_Conditional_4_Template(rf,ctx){if(rf&1){let _r5=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"div",11),\u0275\u0275listener("mousedown",function($event){\u0275\u0275restoreView(_r5);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.resize.dragStartDelay($event))})("touchstart",function($event){\u0275\u0275restoreView(_r5);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.resize.dragStartDelay($event))}),\u0275\u0275elementEnd()}}function GridsterItemComponent_Conditional_5_Template(rf,ctx){if(rf&1){let _r6=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"div",12),\u0275\u0275listener("mousedown",function($event){\u0275\u0275restoreView(_r6);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.resize.dragStartDelay($event))})("touchstart",function($event){\u0275\u0275restoreView(_r6);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.resize.dragStartDelay($event))}),\u0275\u0275elementEnd()}}function GridsterItemComponent_Conditional_6_Template(rf,ctx){if(rf&1){let _r7=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"div",13),\u0275\u0275listener("mousedown",function($event){\u0275\u0275restoreView(_r7);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.resize.dragStartDelay($event))})("touchstart",function($event){\u0275\u0275restoreView(_r7);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.resize.dragStartDelay($event))}),\u0275\u0275elementEnd()}}function GridsterItemComponent_Conditional_7_Template(rf,ctx){if(rf&1){let _r8=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"div",14),\u0275\u0275listener("mousedown",function($event){\u0275\u0275restoreView(_r8);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.resize.dragStartDelay($event))})("touchstart",function($event){\u0275\u0275restoreView(_r8);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.resize.dragStartDelay($event))}),\u0275\u0275elementEnd()}}function GridsterItemComponent_Conditional_8_Template(rf,ctx){if(rf&1){let _r9=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"div",15),\u0275\u0275listener("mousedown",function($event){\u0275\u0275restoreView(_r9);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.resize.dragStartDelay($event))})("touchstart",function($event){\u0275\u0275restoreView(_r9);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.resize.dragStartDelay($event))}),\u0275\u0275elementEnd()}}var GridType=function(GridType2){return GridType2.Fit="fit",GridType2.ScrollVertical="scrollVertical",GridType2.ScrollHorizontal="scrollHorizontal",GridType2.Fixed="fixed",GridType2.VerticalFixed="verticalFixed",GridType2.HorizontalFixed="horizontalFixed",GridType2}(GridType||{}),DisplayGrid=function(DisplayGrid2){return DisplayGrid2.Always="always",DisplayGrid2.OnDragAndResize="onDrag&Resize",DisplayGrid2.None="none",DisplayGrid2}(DisplayGrid||{}),CompactType=function(CompactType2){return CompactType2.None="none",CompactType2.CompactUp="compactUp",CompactType2.CompactLeft="compactLeft",CompactType2.CompactUpAndLeft="compactUp&Left",CompactType2.CompactLeftAndUp="compactLeft&Up",CompactType2.CompactRight="compactRight",CompactType2.CompactUpAndRight="compactUp&Right",CompactType2.CompactRightAndUp="compactRight&Up",CompactType2.CompactDown="compactDown",CompactType2.CompactDownAndLeft="compactDown&Left",CompactType2.CompactLeftAndDown="compactLeft&Down",CompactType2.CompactDownAndRight="compactDown&Right",CompactType2.CompactRightAndDown="compactRight&Down",CompactType2}(CompactType||{}),DirTypes=function(DirTypes2){return DirTypes2.LTR="ltr",DirTypes2.RTL="rtl",DirTypes2}(DirTypes||{}),GridsterCompact=class{gridster;constructor(gridster){this.gridster=gridster}destroy(){this.gridster=null}checkCompact(){this.gridster.$options.compactType!==CompactType.None&&(this.gridster.$options.compactType===CompactType.CompactUp?this.checkCompactMovement("y",-1):this.gridster.$options.compactType===CompactType.CompactLeft?this.checkCompactMovement("x",-1):this.gridster.$options.compactType===CompactType.CompactUpAndLeft?(this.checkCompactMovement("y",-1),this.checkCompactMovement("x",-1)):this.gridster.$options.compactType===CompactType.CompactLeftAndUp?(this.checkCompactMovement("x",-1),this.checkCompactMovement("y",-1)):this.gridster.$options.compactType===CompactType.CompactRight?this.checkCompactMovement("x",1):this.gridster.$options.compactType===CompactType.CompactUpAndRight?(this.checkCompactMovement("y",-1),this.checkCompactMovement("x",1)):this.gridster.$options.compactType===CompactType.CompactRightAndUp?(this.checkCompactMovement("x",1),this.checkCompactMovement("y",-1)):this.gridster.$options.compactType===CompactType.CompactDown?this.checkCompactMovement("y",1):this.gridster.$options.compactType===CompactType.CompactDownAndLeft?(this.checkCompactMovement("y",1),this.checkCompactMovement("x",-1)):this.gridster.$options.compactType===CompactType.CompactDownAndRight?(this.checkCompactMovement("y",1),this.checkCompactMovement("x",1)):this.gridster.$options.compactType===CompactType.CompactLeftAndDown?(this.checkCompactMovement("x",-1),this.checkCompactMovement("y",1)):this.gridster.$options.compactType===CompactType.CompactRightAndDown&&(this.checkCompactMovement("x",1),this.checkCompactMovement("y",1)))}checkCompactItem(item){this.gridster.$options.compactType!==CompactType.None&&(this.gridster.$options.compactType===CompactType.CompactUp?this.moveTillCollision(item,"y",-1):this.gridster.$options.compactType===CompactType.CompactLeft?this.moveTillCollision(item,"x",-1):this.gridster.$options.compactType===CompactType.CompactUpAndLeft?(this.moveTillCollision(item,"y",-1),this.moveTillCollision(item,"x",-1)):this.gridster.$options.compactType===CompactType.CompactLeftAndUp?(this.moveTillCollision(item,"x",-1),this.moveTillCollision(item,"y",-1)):this.gridster.$options.compactType===CompactType.CompactUpAndRight?(this.moveTillCollision(item,"y",-1),this.moveTillCollision(item,"x",1)):this.gridster.$options.compactType===CompactType.CompactDown?this.moveTillCollision(item,"y",1):this.gridster.$options.compactType===CompactType.CompactDownAndLeft?(this.moveTillCollision(item,"y",1),this.moveTillCollision(item,"x",-1)):this.gridster.$options.compactType===CompactType.CompactLeftAndDown?(this.moveTillCollision(item,"x",-1),this.moveTillCollision(item,"y",1)):this.gridster.$options.compactType===CompactType.CompactDownAndRight?(this.moveTillCollision(item,"y",1),this.moveTillCollision(item,"x",1)):this.gridster.$options.compactType===CompactType.CompactRightAndDown&&(this.moveTillCollision(item,"x",1),this.moveTillCollision(item,"y",1)))}checkCompactMovement(direction,delta){let widgetMoved=!1;this.gridster.grid.forEach(widget=>{widget.$item.compactEnabled!==!1&&this.moveTillCollision(widget.$item,direction,delta)&&(widgetMoved=!0,widget.item[direction]=widget.$item[direction],widget.itemChanged())}),widgetMoved&&this.checkCompact()}moveTillCollision(item,direction,delta){return item[direction]+=delta,this.gridster.checkCollision(item)?(item[direction]-=delta,!1):(this.moveTillCollision(item,direction,delta),!0)}},GridsterConfigService={gridType:GridType.Fit,scale:1,fixedColWidth:250,fixedRowHeight:250,keepFixedHeightInMobile:!1,keepFixedWidthInMobile:!1,setGridSize:!1,compactType:CompactType.None,mobileBreakpoint:640,useBodyForBreakpoint:!1,allowMultiLayer:!1,defaultLayerIndex:0,maxLayerIndex:2,baseLayerIndex:1,minCols:1,maxCols:100,minRows:1,maxRows:100,defaultItemCols:1,defaultItemRows:1,maxItemCols:50,maxItemRows:50,minItemCols:1,minItemRows:1,minItemArea:1,maxItemArea:2500,addEmptyRowsCount:0,rowHeightRatio:1,margin:10,outerMargin:!0,outerMarginTop:null,outerMarginRight:null,outerMarginBottom:null,outerMarginLeft:null,useTransformPositioning:!0,scrollSensitivity:10,scrollSpeed:20,initCallback:void 0,destroyCallback:void 0,gridSizeChangedCallback:void 0,itemChangeCallback:void 0,itemResizeCallback:void 0,itemInitCallback:void 0,itemRemovedCallback:void 0,itemValidateCallback:void 0,enableEmptyCellClick:!1,enableEmptyCellContextMenu:!1,enableEmptyCellDrop:!1,enableEmptyCellDrag:!1,enableOccupiedCellDrop:!1,emptyCellClickCallback:void 0,emptyCellContextMenuCallback:void 0,emptyCellDropCallback:void 0,emptyCellDragCallback:void 0,emptyCellDragMaxCols:50,emptyCellDragMaxRows:50,ignoreMarginInRow:!1,draggable:{delayStart:0,enabled:!1,ignoreContentClass:"gridster-item-content",ignoreContent:!1,dragHandleClass:"drag-handler",stop:void 0,start:void 0,dropOverItems:!1,dropOverItemsCallback:void 0},resizable:{delayStart:0,enabled:!1,handles:{s:!0,e:!0,n:!0,w:!0,se:!0,ne:!0,sw:!0,nw:!0},stop:void 0,start:void 0},swap:!0,swapWhileDragging:!1,pushItems:!1,disablePushOnDrag:!1,disablePushOnResize:!1,pushDirections:{north:!0,east:!0,south:!0,west:!0},pushResizeItems:!1,displayGrid:DisplayGrid.OnDragAndResize,disableWindowResize:!1,disableWarnings:!1,scrollToNewItems:!1,disableScrollHorizontal:!1,disableScrollVertical:!1,enableBoundaryControl:!1,disableAutoPositionOnConflict:!1,dirType:DirTypes.LTR},GridsterUtils=class _GridsterUtils{static merge(obj1,obj2,properties){for(let p in obj2)obj2[p]!==void 0&&properties.hasOwnProperty(p)&&(typeof obj2[p]=="object"?(p in obj1||(obj1[p]={}),obj1[p]=_GridsterUtils.merge(obj1[p],obj2[p],properties[p])):obj1[p]=obj2[p]);return obj1}static checkTouchEvent(e){e.clientX===void 0&&e.touches&&(e.touches&&e.touches.length?(e.clientX=e.touches[0].clientX,e.clientY=e.touches[0].clientY):e.changedTouches&&e.changedTouches.length&&(e.clientX=e.changedTouches[0].clientX,e.clientY=e.changedTouches[0].clientY))}static checkContentClassForEvent(gridster,e){if(gridster.$options.draggable.ignoreContent){if(!_GridsterUtils.checkDragHandleClass(e.target,e.currentTarget,gridster.$options.draggable.dragHandleClass,gridster.$options.draggable.ignoreContentClass))return!0}else if(_GridsterUtils.checkContentClass(e.target,e.currentTarget,gridster.$options.draggable.ignoreContentClass))return!0;return!1}static checkContentClassForEmptyCellClickEvent(gridster,e){return _GridsterUtils.checkContentClass(e.target,e.currentTarget,gridster.$options.draggable.ignoreContentClass)||_GridsterUtils.checkContentClass(e.target,e.currentTarget,gridster.$options.draggable.dragHandleClass)}static checkDragHandleClass(target,current,dragHandleClass,ignoreContentClass){if(!target||target===current)return!1;if(target.hasAttribute("class")){let classnames=target.getAttribute("class").split(" ");if(classnames.indexOf(dragHandleClass)>-1)return!0;if(classnames.indexOf(ignoreContentClass)>-1)return!1}return _GridsterUtils.checkDragHandleClass(target.parentNode,current,dragHandleClass,ignoreContentClass)}static checkContentClass(target,current,contentClass){return!target||target===current?!1:target.hasAttribute("class")&&target.getAttribute("class").split(" ").indexOf(contentClass)>-1?!0:_GridsterUtils.checkContentClass(target.parentNode,current,contentClass)}static compareItems(a,b){return a.y>b.y?-1:a.y<b.y?1:a.x>b.x?-1:1}},GridsterEmptyCell=class{gridster;initialItem;removeEmptyCellClickListenerFn;removeEmptyCellTouchendListenerFn;removeEmptyCellContextMenuListenerFn;removeEmptyCellDropListenerFn;removeEmptyCellMousedownListenerFn;removeEmptyCellTouchstartListenerFn;removeWindowMousemoveListenerFn;removeWindowTouchmoveListenerFn;removeWindowMouseupListenerFn;removeWindowTouchendListenerFn;removeEmptyCellDragoverListenerFn;removeDocumentDragendListenerFn;constructor(gridster){this.gridster=gridster}destroy(){this.gridster.previewStyle&&this.gridster.previewStyle(),this.gridster.movingItem=null,this.initialItem=this.gridster=null,this.removeDocumentDragendListenerFn&&(this.removeDocumentDragendListenerFn(),this.removeDocumentDragendListenerFn=null)}updateOptions(){this.gridster.$options.enableEmptyCellClick&&!this.removeEmptyCellClickListenerFn&&this.gridster.options.emptyCellClickCallback?(this.removeEmptyCellClickListenerFn=this.gridster.renderer.listen(this.gridster.el,"click",this.emptyCellClickCb),this.removeEmptyCellTouchendListenerFn=this.gridster.renderer.listen(this.gridster.el,"touchend",this.emptyCellClickCb)):!this.gridster.$options.enableEmptyCellClick&&this.removeEmptyCellClickListenerFn&&this.removeEmptyCellTouchendListenerFn&&(this.removeEmptyCellClickListenerFn(),this.removeEmptyCellTouchendListenerFn(),this.removeEmptyCellClickListenerFn=null,this.removeEmptyCellTouchendListenerFn=null),this.gridster.$options.enableEmptyCellContextMenu&&!this.removeEmptyCellContextMenuListenerFn&&this.gridster.options.emptyCellContextMenuCallback?this.removeEmptyCellContextMenuListenerFn=this.gridster.renderer.listen(this.gridster.el,"contextmenu",this.emptyCellContextMenuCb):!this.gridster.$options.enableEmptyCellContextMenu&&this.removeEmptyCellContextMenuListenerFn&&(this.removeEmptyCellContextMenuListenerFn(),this.removeEmptyCellContextMenuListenerFn=null),this.gridster.$options.enableEmptyCellDrop&&!this.removeEmptyCellDropListenerFn&&this.gridster.options.emptyCellDropCallback?(this.removeEmptyCellDropListenerFn=this.gridster.renderer.listen(this.gridster.el,"drop",this.emptyCellDragDrop),this.gridster.zone.runOutsideAngular(()=>{this.removeEmptyCellDragoverListenerFn=this.gridster.renderer.listen(this.gridster.el,"dragover",this.emptyCellDragOver)}),this.removeDocumentDragendListenerFn=this.gridster.renderer.listen("document","dragend",()=>{this.gridster.movingItem=null,this.gridster.previewStyle()})):!this.gridster.$options.enableEmptyCellDrop&&this.removeEmptyCellDropListenerFn&&this.removeEmptyCellDragoverListenerFn&&this.removeDocumentDragendListenerFn&&(this.removeEmptyCellDropListenerFn(),this.removeEmptyCellDragoverListenerFn(),this.removeDocumentDragendListenerFn(),this.removeEmptyCellDragoverListenerFn=null,this.removeEmptyCellDropListenerFn=null,this.removeDocumentDragendListenerFn=null),this.gridster.$options.enableEmptyCellDrag&&!this.removeEmptyCellMousedownListenerFn&&this.gridster.options.emptyCellDragCallback?(this.removeEmptyCellMousedownListenerFn=this.gridster.renderer.listen(this.gridster.el,"mousedown",this.emptyCellMouseDown),this.removeEmptyCellTouchstartListenerFn=this.gridster.renderer.listen(this.gridster.el,"touchstart",this.emptyCellMouseDown)):!this.gridster.$options.enableEmptyCellDrag&&this.removeEmptyCellMousedownListenerFn&&this.removeEmptyCellTouchstartListenerFn&&(this.removeEmptyCellMousedownListenerFn(),this.removeEmptyCellTouchstartListenerFn(),this.removeEmptyCellMousedownListenerFn=null,this.removeEmptyCellTouchstartListenerFn=null)}emptyCellClickCb=e=>{if(!this.gridster||this.gridster.movingItem||GridsterUtils.checkContentClassForEmptyCellClickEvent(this.gridster,e))return;let item=this.getValidItemFromEvent(e);item&&(this.gridster.options.emptyCellClickCallback&&this.gridster.options.emptyCellClickCallback(e,item),this.gridster.cdRef.markForCheck())};emptyCellContextMenuCb=e=>{if(this.gridster.movingItem||GridsterUtils.checkContentClassForEmptyCellClickEvent(this.gridster,e))return;e.preventDefault(),e.stopPropagation();let item=this.getValidItemFromEvent(e);item&&(this.gridster.options.emptyCellContextMenuCallback&&this.gridster.options.emptyCellContextMenuCallback(e,item),this.gridster.cdRef.markForCheck())};emptyCellDragDrop=e=>{let item=this.getValidItemFromEvent(e);item&&(this.gridster.options.emptyCellDropCallback&&this.gridster.options.emptyCellDropCallback(e,item),this.gridster.cdRef.markForCheck())};emptyCellDragOver=e=>{e.preventDefault(),e.stopPropagation();let item=this.getValidItemFromEvent(e);item?(e.dataTransfer&&(e.dataTransfer.dropEffect="move"),this.gridster.movingItem=item):(e.dataTransfer&&(e.dataTransfer.dropEffect="none"),this.gridster.movingItem=null),this.gridster.previewStyle()};emptyCellMouseDown=e=>{if(GridsterUtils.checkContentClassForEmptyCellClickEvent(this.gridster,e))return;e.preventDefault(),e.stopPropagation();let item=this.getValidItemFromEvent(e);!item||e.buttons!==1&&!(e instanceof TouchEvent)||(this.initialItem=item,this.gridster.movingItem=item,this.gridster.previewStyle(),this.gridster.zone.runOutsideAngular(()=>{this.removeWindowMousemoveListenerFn=this.gridster.renderer.listen("window","mousemove",this.emptyCellMouseMove),this.removeWindowTouchmoveListenerFn=this.gridster.renderer.listen("window","touchmove",this.emptyCellMouseMove)}),this.removeWindowMouseupListenerFn=this.gridster.renderer.listen("window","mouseup",this.emptyCellMouseUp),this.removeWindowTouchendListenerFn=this.gridster.renderer.listen("window","touchend",this.emptyCellMouseUp))};emptyCellMouseMove=e=>{e.preventDefault(),e.stopPropagation();let item=this.getValidItemFromEvent(e,this.initialItem);item&&(this.gridster.movingItem=item,this.gridster.previewStyle())};emptyCellMouseUp=e=>{this.removeWindowMousemoveListenerFn(),this.removeWindowTouchmoveListenerFn(),this.removeWindowMouseupListenerFn(),this.removeWindowTouchendListenerFn();let item=this.getValidItemFromEvent(e,this.initialItem);item&&(this.gridster.movingItem=item),this.gridster.options.emptyCellDragCallback&&this.gridster.movingItem&&this.gridster.options.emptyCellDragCallback(e,this.gridster.movingItem),setTimeout(()=>{this.initialItem=null,this.gridster&&(this.gridster.movingItem=null,this.gridster.previewStyle())}),this.gridster.cdRef.markForCheck()};getPixelsX(e,rect){let scale=this.gridster.options.scale;return scale?(e.clientX-rect.left)/scale+this.gridster.el.scrollLeft-this.gridster.gridRenderer.getLeftMargin():e.clientX+this.gridster.el.scrollLeft-rect.left-this.gridster.gridRenderer.getLeftMargin()}getPixelsY(e,rect){let scale=this.gridster.options.scale;return scale?(e.clientY-rect.top)/scale+this.gridster.el.scrollTop-this.gridster.gridRenderer.getTopMargin():e.clientY+this.gridster.el.scrollTop-rect.top-this.gridster.gridRenderer.getTopMargin()}getValidItemFromEvent(e,oldItem){e.preventDefault(),e.stopPropagation(),GridsterUtils.checkTouchEvent(e);let rect=this.gridster.el.getBoundingClientRect(),x=this.getPixelsX(e,rect),y=this.getPixelsY(e,rect),item={x:this.gridster.pixelsToPositionX(x,Math.floor,!0),y:this.gridster.pixelsToPositionY(y,Math.floor,!0),cols:this.gridster.$options.defaultItemCols,rows:this.gridster.$options.defaultItemRows};if(oldItem&&(item.cols=Math.min(Math.abs(oldItem.x-item.x)+1,this.gridster.$options.emptyCellDragMaxCols),item.rows=Math.min(Math.abs(oldItem.y-item.y)+1,this.gridster.$options.emptyCellDragMaxRows),oldItem.x<item.x?item.x=oldItem.x:oldItem.x-item.x>this.gridster.$options.emptyCellDragMaxCols-1&&(item.x=this.gridster.movingItem?this.gridster.movingItem.x:0),oldItem.y<item.y?item.y=oldItem.y:oldItem.y-item.y>this.gridster.$options.emptyCellDragMaxRows-1&&(item.y=this.gridster.movingItem?this.gridster.movingItem.y:0)),!(!this.gridster.$options.enableOccupiedCellDrop&&this.gridster.checkCollision(item)))return item}},GridsterRenderer=class{gridster;lastGridColumnStyles={};lastGridRowStyles={};constructor(gridster){this.gridster=gridster}destroy(){this.gridster=null}updateItem(el,item,renderer){if(this.gridster.mobile)this.clearCellPosition(renderer,el),this.gridster.$options.keepFixedHeightInMobile?renderer.setStyle(el,"height",(item.rows-1)*this.gridster.$options.margin+item.rows*this.gridster.$options.fixedRowHeight+"px"):renderer.setStyle(el,"height",item.rows*this.gridster.curWidth/item.cols+"px"),this.gridster.$options.keepFixedWidthInMobile?renderer.setStyle(el,"width",this.gridster.$options.fixedColWidth+"px"):renderer.setStyle(el,"width",""),renderer.setStyle(el,"margin-bottom",this.gridster.$options.margin+"px"),renderer.setStyle(el,DirTypes.LTR?"margin-right":"margin-left","");else{let x=Math.round(this.gridster.curColWidth*item.x),y=Math.round(this.gridster.curRowHeight*item.y),width=this.gridster.curColWidth*item.cols-this.gridster.$options.margin,height=this.gridster.curRowHeight*item.rows-this.gridster.$options.margin;this.setCellPosition(renderer,el,x,y),renderer.setStyle(el,"width",width+"px"),renderer.setStyle(el,"height",height+"px");let marginBottom=null,marginRight=null;this.gridster.$options.outerMargin&&(this.gridster.rows===item.rows+item.y&&(this.gridster.$options.outerMarginBottom!==null?marginBottom=this.gridster.$options.outerMarginBottom+"px":marginBottom=this.gridster.$options.margin+"px"),this.gridster.columns===item.cols+item.x&&(this.gridster.$options.outerMarginBottom!==null?marginRight=this.gridster.$options.outerMarginRight+"px":marginRight=this.gridster.$options.margin+"px")),renderer.setStyle(el,"margin-bottom",marginBottom),renderer.setStyle(el,DirTypes.LTR?"margin-right":"margin-left",marginRight)}}updateGridster(){let addClass2="",removeClass1="",removeClass2="",removeClass3="";if(this.gridster.$options.gridType===GridType.Fit)addClass2=GridType.Fit,removeClass1=GridType.ScrollVertical,removeClass2=GridType.ScrollHorizontal,removeClass3=GridType.Fixed;else if(this.gridster.$options.gridType===GridType.ScrollVertical)this.gridster.curRowHeight=this.gridster.curColWidth*this.gridster.$options.rowHeightRatio,addClass2=GridType.ScrollVertical,removeClass1=GridType.Fit,removeClass2=GridType.ScrollHorizontal,removeClass3=GridType.Fixed;else if(this.gridster.$options.gridType===GridType.ScrollHorizontal){let widthRatio=this.gridster.$options.rowHeightRatio,calWidthRatio=widthRatio>=1?widthRatio:widthRatio+1;this.gridster.curColWidth=this.gridster.curRowHeight*calWidthRatio,addClass2=GridType.ScrollHorizontal,removeClass1=GridType.Fit,removeClass2=GridType.ScrollVertical,removeClass3=GridType.Fixed}else this.gridster.$options.gridType===GridType.Fixed?(this.gridster.curColWidth=this.gridster.$options.fixedColWidth+(this.gridster.$options.ignoreMarginInRow?0:this.gridster.$options.margin),this.gridster.curRowHeight=this.gridster.$options.fixedRowHeight+(this.gridster.$options.ignoreMarginInRow?0:this.gridster.$options.margin),addClass2=GridType.Fixed,removeClass1=GridType.Fit,removeClass2=GridType.ScrollVertical,removeClass3=GridType.ScrollHorizontal):this.gridster.$options.gridType===GridType.VerticalFixed?(this.gridster.curRowHeight=this.gridster.$options.fixedRowHeight+(this.gridster.$options.ignoreMarginInRow?0:this.gridster.$options.margin),addClass2=GridType.ScrollVertical,removeClass1=GridType.Fit,removeClass2=GridType.ScrollHorizontal,removeClass3=GridType.Fixed):this.gridster.$options.gridType===GridType.HorizontalFixed&&(this.gridster.curColWidth=this.gridster.$options.fixedColWidth+(this.gridster.$options.ignoreMarginInRow?0:this.gridster.$options.margin),addClass2=GridType.ScrollHorizontal,removeClass1=GridType.Fit,removeClass2=GridType.ScrollVertical,removeClass3=GridType.Fixed);this.gridster.mobile||this.gridster.$options.setGridSize&&this.gridster.$options.gridType!==GridType.Fit?this.gridster.renderer.removeClass(this.gridster.el,addClass2):this.gridster.renderer.addClass(this.gridster.el,addClass2),this.gridster.renderer.removeClass(this.gridster.el,removeClass1),this.gridster.renderer.removeClass(this.gridster.el,removeClass2),this.gridster.renderer.removeClass(this.gridster.el,removeClass3)}getGridColumnStyle(i){let newPos={left:this.gridster.curColWidth*i,width:this.gridster.curColWidth-this.gridster.$options.margin,height:this.gridster.gridRows.length*this.gridster.curRowHeight-this.gridster.$options.margin,style:{}};newPos.style=__spreadProps(__spreadValues({},this.getLeftPosition(newPos.left)),{width:newPos.width+"px",height:newPos.height+"px"});let last2=this.lastGridColumnStyles[i];return last2&&last2.left===newPos.left&&last2.width===newPos.width&&last2.height===newPos.height?last2.style:(this.lastGridColumnStyles[i]=newPos,newPos.style)}getGridRowStyle(i){let newPos={top:this.gridster.curRowHeight*i,width:this.gridster.gridColumns.length*this.gridster.curColWidth+this.gridster.$options.margin,height:this.gridster.curRowHeight-this.gridster.$options.margin,style:{}};newPos.style=__spreadProps(__spreadValues({},this.getTopPosition(newPos.top)),{width:newPos.width+"px",height:newPos.height+"px"});let last2=this.lastGridRowStyles[i];return last2&&last2.top===newPos.top&&last2.width===newPos.width&&last2.height===newPos.height?last2.style:(this.lastGridRowStyles[i]=newPos,newPos.style)}getLeftPosition(d){let dPosition=this.gridster.$options.dirType===DirTypes.RTL?-d:d;return this.gridster.$options.useTransformPositioning?{transform:"translateX("+dPosition+"px)"}:{left:this.getLeftMargin()+dPosition+"px"}}getTopPosition(d){return this.gridster.$options.useTransformPositioning?{transform:"translateY("+d+"px)"}:{top:this.getTopMargin()+d+"px"}}clearCellPosition(renderer,el){this.gridster.$options.useTransformPositioning?renderer.setStyle(el,"transform",""):(renderer.setStyle(el,"top",""),renderer.setStyle(el,"left",""))}setCellPosition(renderer,el,x,y){let xPosition=this.gridster.$options.dirType===DirTypes.RTL?-x:x;if(this.gridster.$options.useTransformPositioning){let transform="translate3d("+xPosition+"px, "+y+"px, 0)";renderer.setStyle(el,"transform",transform)}else renderer.setStyle(el,"left",this.getLeftMargin()+xPosition+"px"),renderer.setStyle(el,"top",this.getTopMargin()+y+"px")}getLeftMargin(){return this.gridster.$options.outerMargin?this.gridster.$options.outerMarginLeft!==null?this.gridster.$options.outerMarginLeft:this.gridster.$options.margin:0}getTopMargin(){return this.gridster.$options.outerMargin?this.gridster.$options.outerMarginTop!==null?this.gridster.$options.outerMarginTop:this.gridster.$options.margin:0}},GridsterPreviewComponent=(()=>{class GridsterPreviewComponent2{renderer;previewStyle$;gridRenderer;el;sub;constructor(el,renderer){this.renderer=renderer,this.el=el.nativeElement}ngOnInit(){this.sub=this.previewStyle$.subscribe(options=>this.previewStyle(options))}ngOnDestroy(){this.sub&&this.sub.unsubscribe()}previewStyle(item){item?(this.renderer.setStyle(this.el,"display","block"),this.gridRenderer.updateItem(this.el,item,this.renderer)):this.renderer.setStyle(this.el,"display","")}static \u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||GridsterPreviewComponent2)(\u0275\u0275directiveInject(ElementRef),\u0275\u0275directiveInject(Renderer2))};static \u0275cmp=\u0275\u0275defineComponent({type:GridsterPreviewComponent2,selectors:[["gridster-preview"]],inputs:{previewStyle$:"previewStyle$",gridRenderer:"gridRenderer"},decls:0,vars:0,template:function(rf,ctx){},styles:[`gridster-preview{position:absolute;display:none;background:#00000026}
45
+ `);var add2=createAction("[App] Add AgentAccessRequest",props()),addFailure2=createAction("[IxApi] Add AgentAccessRequest Failure",props()),addSuccess2=createAction("[IxApi] Add AgentAccessRequest Success",props()),didAdd3=createAction("[ChangeNotification] AgentAccessRequest Was Added",props()),didUpdate3=createAction("[ChangeNotification] AgentAccessRequest Was Updated",props()),didRemove3=createAction("[ChangeNotification] AgentAccessRequest Was Removed",props()),didRemoveList2=createAction("[ChangeNotification] AgentAccessRequest List Was Removed",props());var activateAlarming=createAction("[App] Activate AgentAlarmingApp",props()),activateAlarmingFailure=createAction("[IxApi] Activate AgentAlarmingApp Failure",props()),activateAlarmingSuccess=createAction("[IxApi] Activate AgentAlarmingApp Success",props()),activateLogging=createAction("[App] Activate AgentLoggingApp",props()),activateLoggingFailure=createAction("[IxApi] Activate AgentLoggingApp Failure",props()),activateLoggingSuccess=createAction("[IxApi] Activate AgentLoggingApp Success",props()),deactivateAlarming=createAction("[App] Deactivate AgentAlarmingApp",props()),deactivateAlarmingFailure=createAction("[IxApi] Deactivate AgentAlarmingApp Failure",props()),deactivateAlarmingSuccess=createAction("[IxApi] Deactivate AgentAlarmingApp Success",props()),deactivateLogging=createAction("[App] Deactivate AgentLoggingApp",props()),deactivateLoggingFailure=createAction("[IxApi] Deactivate AgentLoggingApp Failure",props()),deactivateLoggingSuccess=createAction("[IxApi] Deactivate AgentLoggingApp Success",props());var add3=createAction("[App] Add AgentRouterAdditionalSubnet",props()),addFailure3=createAction("[IxApi] Add AgentRouterAdditionalSubnet Failure",props()),addSuccess3=createAction("[IxApi] Add AgentRouterAdditionalSubnet Success",props()),didAdd4=createAction("[ChangeNotification] AgentRouterAdditionalSubnet Was Added",props()),didUpdate4=createAction("[ChangeNotification] AgentRouterAdditionalSubnet Was Updated",props()),didRemove4=createAction("[ChangeNotification] AgentRouterAdditionalSubnet Was Removed",props()),remove3=createAction("[App] Remove AgentRouterAdditionalSubnet",props()),removeFailure3=createAction("[IxApi] Remove AgentRouterAdditionalSubnet Failure",props()),removeSuccess3=createAction("[IxApi] Remove AgentRouterAdditionalSubnet Success",props()),reset5=createAction("[App] Reset AgentRouterAdditionalSubnet State");var add4=createAction("[App] Add AgentRouterPortForward",props()),addFailure4=createAction("[IxApi] Add AgentRouterPortForward Failure",props()),addSuccess4=createAction("[IxApi] Add AgentRouterPortForward Success",props()),didAdd5=createAction("[ChangeNotification] AgentRouterPortForward Was Added",props()),didRemove5=createAction("[ChangeNotification] AgentRouterPortForward Was Removed",props()),didUpdate5=createAction("[ChangeNotification] AgentRouterPortForward Was Updated",props()),remove4=createAction("[App] Remove AgentRouterPortForward",props()),removeFailure4=createAction("[IxApi] Remove AgentRouterPortForward Failure",props()),removeSuccess4=createAction("[IxApi] Remove AgentRouterPortForward Success",props()),reset6=createAction("[App] Reset AgentRouterPortForward State"),shouldRemove=createAction("[OptimisticMutation] AgentRouterPortForward Should Remove",props()),shouldUpdate2=createAction("[OptimisticMutation] AgentRouterPortForward Should Update",props()),update3=createAction("[App] Update AgentRouterPortForward",props()),updateFailure3=createAction("[IxApi] Update AgentRouterPortForward Failure",props()),updateSuccess3=createAction("[IxApi] Update AgentRouterPortForward Success",props());var importFromReported=createAction("[App] Import From Reported",props()),importFromReportedFailure=createAction("[IxApi] Import From Reported Failure",props()),importFromReportedSuccess=createAction("[IxApi] Import From Reported Success",props()),pushFromServer=createAction("[App] Push From Server",props()),pushFromServerFailure=createAction("[IxApi] Push From Server Failure",props()),pushFromServerSuccess=createAction("[IxApi] Push From Server Success",props()),pushStewardFromServer=createAction("[App] Push Steward From Server",props()),pushStewardFromServerFailure=createAction("[IxApi] Push Steward From Server Failure",props()),pushStewardFromServerSuccess=createAction("[IxApi] Push Steward From Server Success",props()),updateRouterDisplay=createAction("[App] Update Router Display",props()),updateRouterDisplayFailure=createAction("[IxApi] Update Router Display Failure",props()),updateRouterDisplaySuccess=createAction("[IxApi] Update Router Display Success",props()),updateRouterLan=createAction("[App] Update Router LAN",props()),updateRouterLanFailure=createAction("[IxApi] Update Router LAN Failure",props()),updateRouterLanSuccess=createAction("[IxApi] Update Router LAN Success",props()),updateRouterVpn=createAction("[App] Update Router VPN",props()),updateRouterVpnFailure=createAction("[IxApi] Update Router VPN Failure",props()),updateRouterVpnSuccess=createAction("[IxApi] Update Router VPN Success",props()),updateRouterWan=createAction("[App] Update Router WAN",props()),updateRouterWanFailure=createAction("[IxApi] Update Router WAN Failure",props()),updateRouterWanSuccess=createAction("[IxApi] Update Router WAN Success",props()),updateRouterWlan=createAction("[App] Update Router WLAN",props()),updateRouterWlanFailure=createAction("[IxApi] Update Router WLAN Failure",props()),updateRouterWlanSuccess=createAction("[IxApi] Update Router WLAN Success",props()),removeRouterWlan=createAction("[App] Remove Router WLAN",props()),removeRouterWlanFailure=createAction("[IxApi] Remove Router WLAN Failure",props()),removeRouterWlanSuccess=createAction("[IxApi] Remove Router WLAN Success",props()),updateRouterCellular=createAction("[App] Update Router Cellular",props()),updateRouterCellularFailure=createAction("[IxApi] Update Router Cellular Failure",props()),updateRouterCellularSuccess=createAction("[IxApi] Update Router Cellular Success",props()),removeRouterCellular=createAction("[App] Remove Router Cellular",props()),removeRouterCellularFailure=createAction("[IxApi] Remove Router Cellular Failure",props()),removeRouterCellularSuccess=createAction("[IxApi] Remove Router Cellular Success",props());var didAdd6=createAction("[ChangeNotification] AgentConnectedUser Was Added",props()),didRemove6=createAction("[ChangeNotification] AgentConnectedUser Was Removed",props());var add5=createAction("[App] Add AgentDataSource",props()),addFailure5=createAction("[IxApi] Add AgentDataSource Failure",props()),addSuccess5=createAction("[IxApi] Add AgentDataSource Success",props()),didAdd7=createAction("[ChangeNotification] AgentDataSource Was Added",props()),didRemove7=createAction("[ChangeNotification] AgentDataSource Was Removed",props()),didUpdate6=createAction("[ChangeNotification] AgentDataSource Was Updated",props()),loadAll2=createAction("[App] Load AgentDataSource List",props()),loadAllFailure2=createAction("[IxApi] Load AgentDataSource List Failure",props()),loadAllSuccess3=createAction("[IxApi] Load AgentDataSource List Success",props()),remove5=createAction("[App] Remove AgentDataSource",props()),removeFailure5=createAction("[IxApi] Remove AgentDataSource Failure",props()),removeSuccess5=createAction("[IxApi] Remove AgentDataSource Success",props()),reset7=createAction("[App] Reset AgentDataSource State"),update4=createAction("[App] Update AgentDataSource",props()),updateFailure4=createAction("[IxApi] Update AgentDataSource Failure",props()),updateSuccess4=createAction("[IxApi] Update AgentDataSource Success",props());var add6=createAction("[App] Add AgentDevice",props()),addFailure6=createAction("[IxApi] Add AgentDevice Failure",props()),addSuccess6=createAction("[IxApi] Add AgentDevice Success",props()),didAdd8=createAction("[ChangeNotification] AgentDevice Was Added",props()),didRemove8=createAction("[ChangeNotification] AgentDevice Was Removed",props()),didUpdate7=createAction("[ChangeNotification] AgentDevice Was Updated",props()),remove6=createAction("[App] Remove AgentDevice",props()),removeFailure6=createAction("[IxApi] Remove AgentDevice Failure",props()),removeSuccess6=createAction("[IxApi] Remove AgentDevice Success",props()),reset8=createAction("[App] Reset AgentDevice State"),update5=createAction("[App] Update AgentDevice",props()),updateFailure5=createAction("[IxApi] Update AgentDevice Failure",props()),updateSuccess5=createAction("[IxApi] Update AgentDevice Success",props());var addList=createAction("[App] Add AgentMembership List",props()),addListFailure=createAction("[IxApi] Add AgentMembership List Failure",props()),addListSuccess=createAction("[IxApi] Add AgentMembership List Success",props()),didAdd9=createAction("[ChangeNotification] AgentMembership Was Added",props()),didRemove9=createAction("[ChangeNotification] AgentMembership Was Removed",props()),didUpdate8=createAction("[ChangeNotification] AgentMembership Was Updated",props()),ensureAll3=createAction("[App] Ensure All AgentMemberships"),loadAll3=createAction("[App] Load All AgentMemberships"),loadAllFailure3=createAction("[IxApi] Load All AgentMemberships Failure",props()),loadAllSuccess4=createAction("[IxApi] Load All AgentMembership Success",props()),removeList=createAction("[App] Remove AgentMembership List",props()),removeListFailure=createAction("[IxApi] Remove AgentMembership List Failure",props()),removeListSuccess=createAction("[IxApi] Remove AgentMembership List Success",props()),reset9=createAction("[App] Reset AgentMembership State"),update6=createAction("[App] Update AgentMembership",props()),updateFailure6=createAction("[IxApi] Update AgentMembership Failure",props()),updateSuccess6=createAction("[IxApi] Update AgentMembership Success",props());var add7=createAction("[App] Add AgentRouterVpnAccessRule",props()),addFailure7=createAction("[IxApi] Add AgentRouterVpnAccessRule Failure",props()),addSuccess7=createAction("[IxApi] Add AgentRouterVpnAccessRule Success",props()),didAdd10=createAction("[ChangeNotification] AgentRouterVpnAccessRule Was Added",props()),didRemove10=createAction("[ChangeNotification] AgentRouterVpnAccessRule Was Removed",props()),didUpdate9=createAction("[ChangeNotification] AgentRouterVpnAccessRule Was Updated",props()),ensureAll4=createAction("[App] Ensure All AgentRouterVpnAccessRules",props()),loadAll4=createAction("[App] Load All AgentRouterVpnAccessRules",props()),loadAllFailure4=createAction("[IxApi] Load All AgentRouterVpnAccessRules Failure",props()),loadAllSuccess5=createAction("[IxApi] Load All AgentRouterVpnAccessRule Success",props()),remove7=createAction("[App] Remove AgentRouterVpnAccessRule",props()),removeFailure7=createAction("[IxApi] Remove AgentRouterVpnAccessRule Failure",props()),removeSuccess7=createAction("[IxApi] Remove AgentRouterVpnAccessRule Success",props()),reset10=createAction("[App] Reset AgentRouterVpnAccessRule State"),update7=createAction("[App] Update AgentRouterVpnAccessRule",props()),updateFailure7=createAction("[IxApi] Update AgentRouterVpnAccessRule Failure",props()),updateSuccess7=createAction("[IxApi] Update AgentRouterVpnAccessRule Success",props());var add8=createAction("[App] Add AgentServer",props()),addFailure8=createAction("[IxApi] Add AgentServer Failure",props()),addSuccess8=createAction("[IxApi] Add AgentServer Success",props()),didAdd11=createAction("[ChangeNotification] AgentServer Was Added",props()),didRemove11=createAction("[ChangeNotification] AgentServer Was Removed",props()),didUpdate10=createAction("[ChangeNotification] AgentServer Was Updated",props()),remove8=createAction("[App] Remove AgentServer",props()),removeFailure8=createAction("[IxApi] Remove AgentServer Failure",props()),removeSuccess8=createAction("[IxApi] Remove AgentServer Success",props()),reset11=createAction("[App] Reset AgentServer State"),shouldRemove2=createAction("[OptimisticMutation] AgentServer Should Remove",props()),shouldUpdate3=createAction("[OptimisticMutation] AgentServer Should Update",props()),update8=createAction("[App] Update AgentServer",props()),updateFailure8=createAction("[IxApi] Update AgentServer Failure",props()),updateSuccess8=createAction("[IxApi] Update AgentServer Success",props()),updateWithoutDevice=createAction("[App] Update AgentServer Without Device",props()),updateWithoutDeviceFailure=createAction("[IxApi] Update AgentServer Without Device Failure",props()),updateWithoutDeviceSuccess=createAction("[IxApi] Update AgentServer Without Device Success",props()),invalidateTranslations=createAction("[App] Invalidate AgentServer Translations");var add9=createAction("[App] Add Asset",props()),addFailure9=createAction("[IxApi] Add Asset Failure",props()),addSuccess9=createAction("[IxApi] Add Asset Success",props()),addLibrary=createAction("[App] Add Asset Library",props()),addLibraryFailure=createAction("[IxApi] Add Asset Library Failure",props()),addLibrarySuccess=createAction("[IxApi] Add Asset Library Success",props()),addInstanceList=createAction("[App] Add Asset Instance List",props()),addInstanceListFailure=createAction("[IxApi] Add Asset Instance List Failure",props()),addInstanceListSuccess=createAction("[IxApi] Add Asset Instance List Success",props()),didAdd12=createAction("[ChangeNotification] Asset Was Added",props()),didRemove12=createAction("[ChangeNotification] Asset Was Removed",props()),didUpdate11=createAction("[ChangeNotification] Asset Was Updated",props()),detachInstance=createAction("[App] Detach Asset Instance",props()),detachInstanceFailure=createAction("[IxApi] Detach Asset Instance Failure",props()),detachInstanceSuccess=createAction("[IxApi] Detach Asset Instance Success",props()),ensureAll5=createAction("[App] Ensure All Assets"),ensureAllForRoot=createAction("[App] Ensure All Assets For Root",props()),ensureAllRoots=createAction("[App] Ensure All Root Assets"),ensureAllEnabled=createAction("[App] Ensure All Enabled Assets"),ensureAllLibraries=createAction("[App] Ensure All Library Assets"),ensureOne2=createAction("[App] Ensure One Asset",props()),loadAll5=createAction("[App] Load All Assets"),loadAllFailure5=createAction("[IxApi] Load All Assets Failure",props()),loadAllSuccess6=createAction("[IxApi] Load All Assets Success",props()),loadAllForRoot=createAction("[App] Load All Assets For Root",props()),loadAllForRootFailure=createAction("[IxApi] Load All Assets For Root Failure",props()),loadAllForRootSuccess=createAction("[IxApi] Load All Assets For Root Success",props()),loadAllRoots=createAction("[App] Load All Root Assets"),loadAllRootsFailure=createAction("[IxApi] Load All Root Assets Failure",props()),loadAllRootsSuccess=createAction("[IxApi] Load All Root Assets Success",props()),loadAllEnabled=createAction("[App] Load All Enabled Assets"),loadAllEnabledFailure=createAction("[IxApi] Load All Enabled Assets Failure",props()),loadAllEnabledSuccess=createAction("[IxApi] Load All Enabled Assets Success",props()),loadAllLibraries=createAction("[App] Load All Library Assets"),loadAllLibrariesFailure=createAction("[IxApi] Load All Library Assets Failure",props()),loadAllLibrariesSuccess=createAction("[IxApi] Load All Library Assets Success",props()),loadOne2=createAction("[App] Load One Asset",props()),loadOneFailure2=createAction("[IxApi] Load One Asset Failure",props()),loadOneSuccess2=createAction("[IxApi] Load One Asset Success",props()),remove9=createAction("[App] Remove Asset",props()),removeFailure9=createAction("[IxApi] Remove Asset Failure",props()),removeSuccess9=createAction("[IxApi] Remove Asset Success",props()),removeLibrary=createAction("[App] Remove Library Asset",props()),removeLibraryFailure=createAction("[IxApi] Remove Asset Failure",props()),removeLibrarySuccess=createAction("[IxApi] Remove Library Asset Success",props()),update9=createAction("[App] Update Asset",props()),updateFailure9=createAction("[IxApi] Update Asset Failure",props()),updateSuccess9=createAction("[IxApi] Update Asset Success",props()),updateInstance=createAction("[App] Update Asset Instance",props()),updateInstanceFailure=createAction("[IxApi] Update Asset Instance Failure",props()),updateInstanceSuccess=createAction("[IxApi] Update Asset Instance Success",props()),reset12=createAction("[App] Reset Asset State");var add10=createAction("[App] Add ControlledDevice",props()),addFailure10=createAction("[IxApi] Add ControlledDevice Failure",props()),addSuccess10=createAction("[IxApi] Add ControlledDevice Success",props()),didAdd13=createAction("[ChangeNotification] ControlledDevice Was Added",props()),didRemove13=createAction("[ChangeNotification] ControlledDevice Was Removed",props()),didUpdate12=createAction("[ChangeNotification] ControlledDevice Was Updated",props()),ensureAll6=createAction("[App] Ensure All ControlledDevices",props()),loadAll6=createAction("[App] Load All ControlledDevices",props()),loadAllFailure6=createAction("[IxApi] Load All ControlledDevices Failure",props()),loadAllSuccess7=createAction("[IxApi] Load All ControlledDevices Success",props()),remove10=createAction("[App] Remove ControlledDevice",props()),removeFailure10=createAction("[IxApi] Remove ControlledDevice Failure",props()),removeSuccess10=createAction("[IxApi] Remove ControlledDevice Success",props()),reset13=createAction("[App] Reset ControlledDevice State"),update10=createAction("[App] Update ControlledDevice",props()),updateFailure10=createAction("[IxApi] Update ControlledDevice Failure",props()),updateSuccess10=createAction("[IxApi] Update ControlledDevice Success",props());var add11=createAction("[App] Add PageLink",props()),addFailure11=createAction("[IxApi] Add PageLink Failure",props()),addSuccess11=createAction("[IxApi] Add PageLink Success",props()),didAdd14=createAction("[ChangeNotification] PageLink Was Added",props()),didRemove14=createAction("[ChangeNotification] PageLink Was Removed",props()),didUpdate13=createAction("[ChangeNotification] PageLink Was Updated",props()),remove11=createAction("[App] Remove PageLink",props()),removeFailure11=createAction("[IxApi] Remove PageLink Failure",props()),removeSuccess11=createAction("[IxApi] Remove PageLink Success",props()),reset14=createAction("[App] Reset PageLink State"),update11=createAction("[App] Update PageLink",props()),updateFailure11=createAction("[IxApi] Update PageLink Failure",props()),updateSuccess11=createAction("[IxApi] Update PageLink Success",props()),updateMany3=createAction("[App] Update Many PageLinks",props()),updateManyFailure3=createAction("[IxApi] Update Many PageLinks Failure",props()),updateManySuccess3=createAction("[IxApi] Update Many PageLinks Success",props());var adapter=createResourceAdapter({sortComparer:sortByNameAndPublicIdComparer,subresourcePaths:SUBRESOURCE_PATHS,mergeFn:updateResource}),initialState=adapter.getInitialState({allActiveLoaded:!1,allActiveLoadedFields:[],allActiveLoading:!1,allActiveLoadingFields:[],loadedFields:{},query:""}),reducer=createReducer(initialState,on(reset4,()=>__spreadValues({},initialState)),on(addShellAgentListSuccess,(state,{data})=>data?adapter.upsertMany(data,state):state),on(didAdd2,(state,{data})=>data?adapter.upsertOne(data,state):state),on(loadAll,(state,{fields})=>{let allLoadingFields=mergeFields(state.allLoadingFields,fields),allActiveLoadingFields=mergeFields(state.allActiveLoadingFields,fields);return __spreadProps(__spreadValues({},state),{allLoading:!0,allLoadingFields,allActiveLoading:!0,allActiveLoadingFields})}),on(loadAllFailure,state=>__spreadProps(__spreadValues({},state),{allLoading:!1,allLoadingFields:[],allActiveLoading:!1,allActiveLoadingFields:[]})),on(loadAllSuccess2,(state,{data,fields})=>{let allLoadedFields=mergeFields(state.allLoadedFields,fields),allActiveLoadedFields=mergeFields(state.allActiveLoadedFields,fields);return adapter.upsertMany(data,__spreadProps(__spreadValues({},state),{allActiveLoading:!1,allActiveLoadingFields:[],allActiveLoaded:!0,allActiveLoadedFields,allLoading:!1,allLoadingFields:[],allLoaded:!0,allLoadedFields}))}),on(loadAllActive,(state,{fields})=>{let allActiveLoadingFields=mergeFields(state.allActiveLoadingFields,fields);return __spreadProps(__spreadValues({},state),{allActiveLoading:!0,allActiveLoadingFields})}),on(loadAllActiveFailure,state=>__spreadProps(__spreadValues({},state),{allActiveLoading:!1,allActiveLoadingFields:[]})),on(loadAllActiveSuccess,(state,{data,fields})=>{let allActiveLoadedFields=mergeFields(state.allLoadedFields,fields);return adapter.upsertMany(data,__spreadProps(__spreadValues({},state),{allActiveLoading:!1,allActiveLoadingFields:[],allActiveLoaded:!0,allActiveLoadedFields}))}),on(loadOneSuccess,(state,{data,fields,publicId})=>{let loadedFields=mergeLoadedFields(publicId,state.loadedFields,fields);return adapter.upsertOne(data,__spreadProps(__spreadValues({},state),{loadedFields}))}),on(shouldUpdate,didUpdate2,(state,{data,publicId})=>data?!state.allLoaded&&state.allActiveLoaded&&data.activeStatus==="active"?adapter.upsertOne(data,state):adapter.updateOne({id:publicId,changes:data},state):state),on(removeSuccess2,didRemove2,(state,{publicId})=>adapter.removeOne(publicId,state)),on(addSuccess2,didAdd3,(state,{data})=>{let agentId=data?.agent?.publicId;return agentId?adapter.mutate(agentId,"scheduledAccessRequests",state).upsertOne(data.publicId):state}),on(didUpdate3,(state,{data,publicId})=>{let agentId=data.agent?.publicId,status=data.status;return(status==="rejected"||status==="revoked")&&agentId?adapter.mutate(agentId,"scheduledAccessRequests",state).removeOne(publicId):state}),on(didRemove3,(state,{publicId})=>{let agentId=Object.keys(state.entities).find(id=>state.entities[id]?.scheduledAccessRequests?.some(request=>request.publicId===publicId));return agentId?adapter.mutate(agentId,"scheduledAccessRequests",state).removeOne(publicId):state}),on(didRemoveList2,(state,{publicIdList})=>publicIdList.reduce((newState,publicId)=>{let agentId=Object.keys(state.entities).find(id=>newState.entities[id]?.scheduledAccessRequests?.some(request=>request.publicId===publicId));return agentId?adapter.mutate(agentId,"scheduledAccessRequests",newState).removeOne(publicId):newState},state)),on(deactivateAlarmingSuccess,(state,{agentId})=>adapter.updateOne({id:agentId,changes:{alarmingApp:{licence:null,enabled:!1}}},state)),on(deactivateLoggingSuccess,(state,{agentId})=>adapter.updateOne({id:agentId,changes:{loggingApp:{licence:null,enabled:!1}}},state)),on(pushFromServerSuccess,pushStewardFromServerSuccess,(state,{publicId,pushedOn})=>adapter.updateOne({id:publicId,changes:{config:{configPushedOn:pushedOn,publicId}}},state)),on(removeRouterWlanSuccess,(state,{publicId})=>adapter.updateOne({id:publicId,changes:{config:{routerWan:{wlanSsid:null},configFileReportedWlanKeyEnabled:!1,publicId}}},state)),on(updateRouterDisplaySuccess,(state,{publicId,data})=>adapter.updateOne({id:publicId,changes:{config:{routerDisplay:data,publicId}}},state)),on(updateRouterLanSuccess,(state,{publicId,data})=>adapter.updateOne({id:publicId,changes:{config:{routerLan:data,publicId}}},state)),on(updateRouterWanSuccess,(state,{publicId,data})=>adapter.updateOne({id:publicId,changes:{config:{routerWan:data,publicId}}},state)),on(updateRouterWlanSuccess,(state,{publicId,data})=>adapter.updateOne({id:publicId,changes:{config:{routerWan:data,configFileReportedWlanKeyEnabled:!!data.wlanKey,publicId}}},state)),on(didAdd6,(state,{agentId,publicId})=>adapter.mutate(agentId,"connectedUsers",state).upsertOne(publicId)),on(didRemove6,(state,{agentId,publicId})=>adapter.mutate(agentId,"connectedUsers",state).removeOne(publicId)),on(addSuccess3,didAdd4,(state,{data})=>{let agentId=data.agent?.publicId;return agentId?adapter.mutate(agentId,"config.routerAdditionalSubnets",state).upsertOne(data.publicId):state}),on(removeSuccess3,didRemove4,(state,{publicId})=>{let agentId=Object.keys(state.entities).find(id=>state.entities[id]?.config?.routerAdditionalSubnets?.some(subnet=>subnet.publicId===publicId));return agentId?adapter.mutate(agentId,"config.routerAdditionalSubnets",state).removeOne(publicId):state}),on(addSuccess4,didAdd5,(state,{agentId,publicId})=>adapter.mutate(agentId,"config.routerPortForwards",state).upsertOne(publicId)),on(shouldRemove,removeSuccess4,didRemove5,(state,{agentId,publicId})=>adapter.mutate(agentId,"config.routerPortForwards",state).removeOne(publicId)),on(addSuccess7,didAdd10,(state,{data})=>{let agentId=data.agent?.publicId;return agentId?adapter.mutate(agentId,"vpnAccessRules",state).upsertOne(data.publicId):state}),on(removeSuccess7,didRemove10,(state,{publicId})=>{let agentId=Object.keys(state.entities).find(id=>state.entities[id]?.vpnAccessRules?.some(accessRule=>accessRule.publicId===publicId));return agentId?adapter.mutate(agentId,"vpnAccessRules",state).removeOne(publicId):state}),on(addSuccess5,didAdd7,(state,{data,publicId})=>{let agentId=data.agent?.publicId;return agentId?adapter.mutate(agentId,"dataSources",state).upsertOne(publicId):state}),on(removeSuccess5,didRemove7,(state,{publicId})=>{let agentId=Object.keys(state.entities).find(id=>state.entities[id]?.dataSources?.some(dataSource=>dataSource.publicId===publicId));return agentId?adapter.mutate(agentId,"dataSources",state).removeOne(publicId):state}),on(addSuccess6,didAdd8,(state,{agentId,publicId})=>adapter.mutate(agentId,"devices",state).upsertOne(publicId)),on(removeSuccess6,didRemove8,(state,{agentId,publicId})=>adapter.mutate(agentId,"devices",state).removeOne(publicId)),on(didAdd9,(state,{data})=>{let agentId=data.agent?.publicId;return agentId?adapter.mutate(agentId,"memberships",state).upsertOne(data.publicId):state}),on(addListSuccess,(state,{data})=>data.reduce((newState,membership)=>{let assetId=membership.agent?.publicId;return assetId?adapter.mutate(assetId,"memberships",newState).upsertOne(membership.publicId):newState},state)),on(didRemove9,(state,{publicId})=>{let agentId=Object.keys(state.entities).find(id=>state.entities[id]?.memberships?.some(membership=>membership.publicId===publicId));return agentId?adapter.mutate(agentId,"memberships",state).removeOne(publicId):state}),on(removeListSuccess,(state,{publicIdList})=>publicIdList.reduce((newState,publicId)=>{let assetId=Object.keys(state.entities).find(id=>newState.entities[id]?.memberships?.some(membership=>membership.publicId===publicId));return assetId?adapter.mutate(assetId,"memberships",newState).removeOne(publicId):newState},state)),on(addSuccess10,didAdd13,(state,{data})=>{let agent=data?.agent;return agent?.publicId?adapter.upsertOne(agent,state):state}),on(loadAllSuccess7,(state,{data})=>data.reduce((newState,controlledDevice)=>{let agent=controlledDevice.agent;return agent?.publicId?adapter.upsertOne(agent,newState):newState},state)),on(updateSuccess10,didUpdate12,(state,{data})=>{let agent=data.agent;return agent?.publicId?adapter.updateOne({id:agent.publicId,changes:agent},state):state}),on(addSuccess11,didAdd14,(state,{data,publicId})=>{let agentId=data?.agent?.publicId;return agentId?adapter.mutate(agentId,"pageLinks",state).upsertOne(publicId):state}),on(removeSuccess11,didRemove14,(state,{publicId})=>{let agentId=Object.keys(state.entities).find(id=>state.entities[id]?.pageLinks?.some(pageLink=>pageLink.publicId===publicId));return agentId?adapter.mutate(agentId,"pageLinks",state).removeOne(publicId):state}),on(addSuccess8,didAdd11,(state,{agentId,publicId})=>adapter.mutate(agentId,"servers",state).upsertOne(publicId)),on(shouldRemove2,removeSuccess8,didRemove11,(state,{publicId})=>{let agentId=Object.keys(state.entities).find(id=>state.entities[id]?.servers?.some(server=>server.publicId===publicId));return agentId?adapter.mutate(agentId,"servers",state).removeOne(publicId):state}),on(updateSuccess9,didUpdate11,(state,{publicId,data})=>{if(data&&"agent"in data){let updates=[],found=Object.values(state.entities).find(agent=>agent?.assets?.some(asset=>asset.publicId===publicId));return found&&updates.push({id:found.publicId,changes:{assets:[]}}),data.agent&&updates.push({id:data.agent.publicId,changes:{assets:[{publicId,reference:{name:"Asset"}}]}}),adapter.updateMany(updates,state)}return state}),on(removeSuccess9,didRemove12,(state,{publicId})=>{let found=Object.values(state.entities).find(agent=>agent?.assets?.some(asset=>asset.publicId===publicId));return found?adapter.updateOne({id:found.publicId,changes:{assets:[]}},state):state})),feature=createFeature({name:FEATURE_NAME,reducer});function isActive(agent){return agent?agent.activeStatus==="active":!1}function isLinkedToAsset(agent){return agent?!!agent.assets?.length:!1}function isNotLinkedToAsset(agent){return!isLinkedToAsset(agent)}var selectAll2=createSelector(feature.selectAgentState,adapter.getSelectors().selectAll),selectAllActive=createSelector(selectAll2,all=>all.filter(isActive)),selectEntity3=publicId=>createSelector(feature.selectEntities,entities=>publicId&&entities[publicId]||null);var selectEntityWithFields=publicId=>createResourceSelectorFactory(selectEntity3(publicId),SUBRESOURCE_PATH_TO_FEATURE_NAME),{selectAllActiveLoaded,selectAllActiveLoadedFields,selectAllActiveLoading,selectAllActiveLoadingFields,selectAllLoading,selectAllLoadingFields,selectAllLoaded,selectAllLoadedFields,selectEntities:selectEntities3,selectLoadedFields}=feature;var FEATURE_NAME2="agentMembership";var adapter2=createResourceAdapter(),initialState2=adapter2.getInitialState(),reducer2=createReducer(initialState2,on(reset9,()=>__spreadValues({},initialState2)),on(addListSuccess,(state,{data})=>adapter2.upsertMany(data,state)),on(didAdd9,(state,{data})=>adapter2.upsertOne(data,state)),on(loadAll3,state=>__spreadProps(__spreadValues({},state),{allLoading:!0})),on(loadAllFailure3,state=>__spreadProps(__spreadValues({},state),{allLoading:!1})),on(loadAllSuccess4,(state,{data})=>adapter2.setAll(data,__spreadProps(__spreadValues({},state),{allLoading:!1,allLoaded:!0}))),on(didRemove9,(state,{publicId})=>adapter2.removeOne(publicId,state)),on(removeListSuccess,(state,{publicIdList})=>adapter2.removeMany(publicIdList,state)),on(updateSuccess6,didUpdate8,(state,{data,publicId})=>adapter2.updateOne({id:publicId,changes:data},state)),on(didAdd2,loadOneSuccess,(state,{data})=>data?.memberships?adapter2.upsertMany(mapAgentToAgentMembershipList(data),state):state),on(loadAllSuccess2,loadAllActiveSuccess,(state,{data})=>hasNonPublicIdFields(data,"memberships")?adapter2.upsertMany(flatMap_default(data.map(mapAgentToAgentMembershipList)),state):state),on(removeSuccess2,didRemove2,(state,{publicId})=>{let publicIdList=Object.keys(state.entities).reduce((ids,id)=>state.entities[id]?.agent?.publicId===publicId?[...ids,id]:ids,[]);return publicIdList.length?adapter2.removeMany(publicIdList,state):state})),feature2=createFeature({name:FEATURE_NAME2,reducer:reducer2});function mapAgentToAgentMembershipList(agent){return mapResourceToSubResourceList(agent,"memberships","agent","Agent")}var selectAll3=createSelector(feature2.selectAgentMembershipState,adapter2.getSelectors().selectAll),{selectAllLoading:selectAllLoading2,selectAllLoaded:selectAllLoaded2,selectEntities:selectEntities4}=feature2;var AgentService=(()=>{let _AgentService=class _AgentService{constructor(api,http){this.api=api,this.http=http}addShellAgentList(body){let url=this.api.url("ShellAgentList"),context3=new HttpContext().set(REQUIRES_COMPANY,!0),headers=this.api.headers,options={context:context3,headers};return this.http.post(url,body,options)}getAll(fields,filters){return whileMoreAfter(moreAfter=>this.getList(fields,filters,moreAfter))}getAllActive(fields){return this.getAll(fields,'eq(activeStatus,"active")')}getAllActiveAndInactive(fields){return forkJoin([this.getAll(fields,'eq(activeStatus,"active")'),this.getAll(fields.filter(field=>INACTIVE_AGENT_FIELDS.includes(field)),'eq(activeStatus,"inactive")')]).pipe(map(([active,inactive])=>({type:active.type,data:[...active.data,...inactive.data],moreAfter:null})))}getByPublicId(publicId,fields){let url=this.api.url("Agent",{publicId}),context3=new HttpContext().set(REQUIRES_COMPANY,!0),headers=this.api.headers,params=new HttpParams({fromObject:{fields:compactFields(fields)}}),options={context:context3,headers,params};return this.http.get(url,options)}getList(fields,filters,pageAfter,pageSize){let url=this.api.url("AgentList"),context3=new HttpContext().set(REQUIRES_COMPANY,!0),headers=this.api.headers,params=new HttpParams({fromObject:__spreadValues(__spreadValues({fields:fields.join(",")},filters?{filters}:{}),getPageParams(pageAfter,pageSize))}),options={context:context3,headers,params};return this.http.get(url,options)}getByPublicIdList(publicIdList,fields){let url=this.api.url("AgentList"),context3=new HttpContext().set(REQUIRES_COMPANY,!0),headers=this.api.headers,params=new HttpParams({fromObject:{fields:fields.join(","),filters:`in(publicId,"${publicIdList.join('","')}")`}}),options={context:context3,headers,params};return this.http.get(url,options)}removeByPublicId(publicId){let url=this.api.url("Agent",{publicId}),context3=new HttpContext().set(REQUIRES_COMPANY,!0),headers=this.api.headers,options={context:context3,headers};return this.http.delete(url,options)}update(body){let url=this.api.url("AgentList"),context3=new HttpContext().set(REQUIRES_COMPANY,!0),headers=this.api.headers,options={context:context3,headers};return this.http.patch(url,body,options)}updateByPublicId(publicId,body){let url=this.api.url("Agent",{publicId}),context3=new HttpContext().set(REQUIRES_COMPANY,!0),headers=this.api.headers,options={context:context3,headers};return this.http.patch(url,body,options)}updateFromTemplate(publicId,body){let url=this.api.url("AgentFromTemplate",{publicId}),context3=new HttpContext().set(REQUIRES_COMPANY,!0),headers=this.api.headers,options={context:context3,headers};return this.http.patch(url,body,options)}updateManyFromTemplate(body){let url=this.api.url("AgentListFromTemplate"),context3=new HttpContext().set(REQUIRES_COMPANY,!0),headers=this.api.headers,options={context:context3,headers};return this.http.patch(url,body,options)}activateAgents(body){let url=this.api.url("AgentListActivate"),context3=new HttpContext().set(REQUIRES_COMPANY,!0),headers=this.api.headers,options={context:context3,headers};return this.http.post(url,body,options)}reboot(publicId){let url=this.api.url("AgentReboot",{agentId:publicId}),context3=new HttpContext().set(REQUIRES_COMPANY,!0),headers=this.api.headers,options={context:context3,headers};return this.http.post(url,null,options)}};_AgentService.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_AgentService)(\u0275\u0275inject(IxApiService),\u0275\u0275inject(HttpClient))},_AgentService.\u0275prov=\u0275\u0275defineInjectable({token:_AgentService,factory:_AgentService.\u0275fac,providedIn:"root"});let AgentService2=_AgentService;return AgentService2})();var AgentEffects=(()=>{let _AgentEffects=class _AgentEffects{constructor(actions$,store,snackBar,service){this.actions$=actions$,this.store=store,this.snackBar=snackBar,this.service=service,this.activate$=createEffect(()=>this.actions$.pipe(ofType(activate),mergeMap(({data})=>this.service.activateAgents(data).pipe(map(()=>activateSuccess({data})),catchError(errorResponse=>of(activateFailure({errors:errorResponse.error?.data??[]}))))))),this.addShellAgentList$=createEffect(()=>this.actions$.pipe(ofType(addShellAgentList),mergeMap(({data})=>this.service.addShellAgentList(data).pipe(map(response=>addShellAgentListSuccess({data:response.data.map(shellAgent=>({publicId:shellAgent.publicId}))})),catchError(errorResponse=>of(addShellAgentListFailure({errors:errorResponse.error?.data??[]}))))))),this.ensureAll$=createEffect(()=>this.actions$.pipe(ofType(ensureAll2),mergeMap(({fields})=>combineLatest([this.store.select(selectAllLoadingFields),this.store.select(selectAllLoadedFields)]).pipe(take(1),mergeMap(([loadingFields,loadedFields])=>fields.every(field=>loadingFields.includes(field)||loadedFields.includes(field))?EMPTY:of(loadAll({fields}))))))),this.ensureAllActive$=createEffect(()=>this.actions$.pipe(ofType(ensureAllActive),mergeMap(({fields})=>combineLatest([this.store.select(selectAllActiveLoadingFields),this.store.select(selectAllActiveLoadedFields)]).pipe(take(1),mergeMap(([loadingFields,loadedFields])=>fields.every(field=>loadingFields.includes(field)||loadedFields.includes(field))?EMPTY:of(loadAllActive({fields}))))))),this.loadOne$=createEffect(()=>this.actions$.pipe(ofType(loadOne),mergeMap(({publicId,fields})=>this.service.getByPublicId(publicId,fields).pipe(map(({data})=>loadOneSuccess({data,fields,publicId})),catchError(errorResponse=>of(loadOneFailure({errors:errorResponse.error?.data??[],publicId}))))))),this.loadAll$=createEffect(()=>this.actions$.pipe(ofType(loadAll),omitLoadedFields({memberships:this.store.select(selectAllLoaded2)}),mergeMap(({fields,originalFields})=>this.service.getAllActiveAndInactive(fields).pipe(map(({data})=>loadAllSuccess2({data,fields:originalFields})),catchError(errorResponse=>of(loadAllFailure({errors:errorResponse.error?.data??[]}))))))),this.loadAllActive$=createEffect(()=>this.actions$.pipe(ofType(loadAllActive),omitLoadedFields({memberships:this.store.select(selectAllLoaded2)}),switchMap(({fields,originalFields})=>this.service.getAllActive(fields).pipe(map(({data})=>loadAllActiveSuccess({data,fields:originalFields})),catchError(errorResponse=>of(loadAllActiveFailure({errors:errorResponse.error?.data??[]}))))))),this.remove$=createEffect(()=>this.actions$.pipe(ofType(remove2),mergeMap(({publicId})=>this.service.removeByPublicId(publicId).pipe(map(()=>removeSuccess2({publicId})),catchError(errorResponse=>of(removeFailure2({errors:errorResponse.error?.data??[]}))))))),this.update$=createEffect(()=>this.actions$.pipe(ofType(update2),mergeMap(({publicId,data})=>this.service.updateByPublicId(publicId,data).pipe(map(()=>updateSuccess2({data:__spreadProps(__spreadValues({},data),{publicId}),publicId})),catchError(errorResponse=>of(updateFailure2({errors:errorResponse.error?.data??[]}))))))),this.updateMany$=createEffect(()=>this.actions$.pipe(ofType(updateMany2),mergeMap(({data})=>this.service.update(data).pipe(map(()=>updateManySuccess2({data})),catchError(errorResponse=>of(updateManyFailure2({errors:errorResponse.error?.data??[]}))))))),this.updateFromTemplate$=createEffect(()=>this.actions$.pipe(ofType(updateFromTemplate),mergeMap(({publicId,data})=>this.service.updateFromTemplate(publicId,data).pipe(map(()=>updateFromTemplateSuccess({publicId})),catchError(errorResponse=>of(updateFromTemplateFailure({errors:errorResponse.error?.data??[]}))))))),this.updateFromTemplateFailure$=createEffect(()=>this.actions$.pipe(ofType(updateFromTemplateFailure),tap(({errors:errors2})=>{errors2[0].message&&this.snackBar.open(errors2[0].message,void 0,{duration:3e3})})),{dispatch:!1}),this.updateManyFromTemplate$=createEffect(()=>this.actions$.pipe(ofType(updateManyFromTemplate),mergeMap(({data})=>this.service.updateManyFromTemplate(data).pipe(map(()=>updateManyFromTemplateSuccess({data})),catchError(errorResponse=>of(updateManyFromTemplateFailure({errors:errorResponse.error?.data??[]}))))))),this.updateManyFromTemplateFailure$=createEffect(()=>this.actions$.pipe(ofType(updateManyFromTemplateFailure),tap(({errors:errors2})=>{errors2[0].message&&this.snackBar.open(errors2[0].message,void 0,{duration:3e3})})),{dispatch:!1})}};_AgentEffects.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_AgentEffects)(\u0275\u0275inject(Actions),\u0275\u0275inject(Store),\u0275\u0275inject(MatSnackBar),\u0275\u0275inject(AgentService))},_AgentEffects.\u0275prov=\u0275\u0275defineInjectable({token:_AgentEffects,factory:_AgentEffects.\u0275fac,providedIn:"root"});let AgentEffects2=_AgentEffects;return AgentEffects2})();var AgentModule=(()=>{let _AgentModule=class _AgentModule{};_AgentModule.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_AgentModule)},_AgentModule.\u0275mod=\u0275\u0275defineNgModule({type:_AgentModule}),_AgentModule.\u0275inj=\u0275\u0275defineInjector({providers:[provideHttpClient(withInterceptorsFromDi())],imports:[MatSnackBarModule,IxApiModule,StoreModule.forFeature(feature),EffectsModule.forFeature([AgentEffects])]});let AgentModule2=_AgentModule;return AgentModule2})();var DeviceStatusColor=function(DeviceStatusColor2){return DeviceStatusColor2.None="transparent",DeviceStatusColor2.Connection="#17bfeb",DeviceStatusColor2.Online="#2ecc71",DeviceStatusColor2.Offline="#c6c6c6",DeviceStatusColor2}(DeviceStatusColor||{}),DEVICE_STATUS_COLORS=[DeviceStatusColor.Connection,DeviceStatusColor.Online,DeviceStatusColor.Offline,DeviceStatusColor.None];function checkIfIsPlaywright(){return window.location.port==="9875"}var isPlaywright=checkIfIsPlaywright();var VpnClientActiveStatus=(()=>{let _VpnClientActiveStatus=class _VpnClientActiveStatus extends BehaviorSubject{constructor(){super(null)}};_VpnClientActiveStatus.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_VpnClientActiveStatus)},_VpnClientActiveStatus.\u0275prov=\u0275\u0275defineInjectable({token:_VpnClientActiveStatus,factory:_VpnClientActiveStatus.\u0275fac,providedIn:"root"});let VpnClientActiveStatus2=_VpnClientActiveStatus;return VpnClientActiveStatus2})();var CAPACITOR_CUSTOM_SCHEME=new InjectionToken("capacitor-custom-scheme",{providedIn:"root",factory:()=>of("capacitor://")});var CAPACITOR_PLATFORM=new InjectionToken("capacitor-platform",{providedIn:"root",factory:()=>window.Capacitor?.platform||"web"});var CAPACITOR_STATE_CHANGES=new InjectionToken("capacitor-app-state-changes",{providedIn:"root",factory:()=>fromEvent(document,"visibilitychange").pipe(map(()=>({isActive:document.visibilityState==="visible"})))});var CAPACITOR_MOBILEVPN_PLUGIN=new InjectionToken("capacitor-openvpn");function hasActiveRequestWithAgent(snapshot,agentId){return snapshot&&snapshot.activeRequest?snapshot.activeRequest.agentId===agentId:!1}var AgentStatusIconModule=(()=>{let _AgentStatusIconModule=class _AgentStatusIconModule{};_AgentStatusIconModule.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_AgentStatusIconModule)},_AgentStatusIconModule.\u0275mod=\u0275\u0275defineNgModule({type:_AgentStatusIconModule}),_AgentStatusIconModule.\u0275inj=\u0275\u0275defineInjector({imports:[CommonModule]});let AgentStatusIconModule2=_AgentStatusIconModule;return AgentStatusIconModule2})();var IconsModule=(()=>{let _IconsModule=class _IconsModule{constructor(domSanitizer,matIconRegistry){Object.keys(LITERALS).forEach(iconName=>{matIconRegistry.addSvgIconLiteral(iconName,domSanitizer.bypassSecurityTrustHtml(LITERALS[iconName]))})}};_IconsModule.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_IconsModule)(\u0275\u0275inject(DomSanitizer),\u0275\u0275inject(MatIconRegistry))},_IconsModule.\u0275mod=\u0275\u0275defineNgModule({type:_IconsModule}),_IconsModule.\u0275inj=\u0275\u0275defineInjector({imports:[SharedModule,AgentStatusIconModule]});let IconsModule2=_IconsModule;return IconsModule2})();var HAPPY_CORNER_DEFAULT_OPTIONS=new InjectionToken("DefaultHappyCornerOptions");function resizeObservableFactory(element,config3){return new Observable(subscriber=>{let observer=new ResizeObserver(entries=>{subscriber.next(entries)});return observer.observe(element,config3),function(){observer.disconnect()}})}var APP_VIEW_CONTAINER=new InjectionToken("AppViewContainer",{providedIn:"root",factory:()=>{let appRef=inject(ApplicationRef);return()=>appRef.components[0]?.instance.vcRef}});var HappyCornerItem=class{constructor(component,options){this.component=component,this.autoSize=!1,this.componentPortal=null,this.hidden=!1,this.id=Symbol(),this.indexChanges=new ReplaySubject(1),this.templateRef=null,this.autoSize=options?.size===void 0,this.hidden=options?.hidden??!1,this.level=options?.level??0,this.order=options?.order??0,this.size=options?.size??0}hide(){this.hidden||(this.hidden=!0,this.component.invalidate())}show(){this.hidden&&(this.hidden=!1,this.component.invalidate())}destroy(){this.component.items.update(items=>items.filter(item=>item!==this)),this.component.cdRef.markForCheck()}onIndexChange(){return this.indexChanges.asObservable()}setLevel(level){level!==this.level&&(this.level=level,this.component.invalidate())}setOrder(order2){order2!==this.order&&(this.order=order2,this.component.invalidate())}setSize(size){size!==this.size&&(this.size=size,this.component.invalidate())}},HappyCornerComponentItem=class extends HappyCornerItem{constructor(component,componentPortal,options){super(component,options),this.componentPortal=componentPortal}},HappyCornerTemplateItem=class extends HappyCornerItem{constructor(component,templateRef,options){super(component,options),this.templateRef=templateRef}};var HappyCornerItemAutoSizerDirective=(()=>{let _HappyCornerItemAutoSizerDirective=class _HappyCornerItemAutoSizerDirective{constructor(){this.destroyRef=inject(DestroyRef),this.sizeChanges$=inject(HappyCornerService).observeSize(inject(ElementRef)),this.item=input.required({alias:"ixHappyCornerItemAutoSizer"})}ngOnInit(){this.item().autoSize&&this.sizeChanges$.pipe(takeUntilDestroyed(this.destroyRef)).subscribe(height=>this.item().setSize(height))}};_HappyCornerItemAutoSizerDirective.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_HappyCornerItemAutoSizerDirective)},_HappyCornerItemAutoSizerDirective.\u0275dir=\u0275\u0275defineDirective({type:_HappyCornerItemAutoSizerDirective,selectors:[["","ixHappyCornerItemAutoSizer",""]],inputs:{item:[1,"ixHappyCornerItemAutoSizer","item"]}});let HappyCornerItemAutoSizerDirective2=_HappyCornerItemAutoSizerDirective;return HappyCornerItemAutoSizerDirective2})();var _forTrack0=($index,$item)=>$item.id;function HappyCornerComponent_For_2_Conditional_0_ng_container_1_Template(rf,ctx){rf&1&&\u0275\u0275elementContainer(0)}function HappyCornerComponent_For_2_Conditional_0_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"div",1),\u0275\u0275template(1,HappyCornerComponent_For_2_Conditional_0_ng_container_1_Template,1,0,"ng-container",2),\u0275\u0275elementEnd()),rf&2){let item_r1=\u0275\u0275nextContext().$implicit;\u0275\u0275property("ixHappyCornerItemAutoSizer",item_r1)("hidden",item_r1.hidden),\u0275\u0275advance(),\u0275\u0275property("ngTemplateOutlet",item_r1.templateRef)}}function HappyCornerComponent_For_2_Conditional_1_ng_template_1_Template(rf,ctx){}function HappyCornerComponent_For_2_Conditional_1_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"div",1),\u0275\u0275template(1,HappyCornerComponent_For_2_Conditional_1_ng_template_1_Template,0,0,"ng-template",3),\u0275\u0275elementEnd()),rf&2){let item_r1=\u0275\u0275nextContext().$implicit;\u0275\u0275property("ixHappyCornerItemAutoSizer",item_r1)("hidden",item_r1.hidden),\u0275\u0275advance(),\u0275\u0275property("cdkPortalOutlet",item_r1.componentPortal)}}function HappyCornerComponent_For_2_Template(rf,ctx){if(rf&1&&\u0275\u0275template(0,HappyCornerComponent_For_2_Conditional_0_Template,2,3,"div",1)(1,HappyCornerComponent_For_2_Conditional_1_Template,2,3,"div",1),rf&2){let item_r1=ctx.$implicit;\u0275\u0275conditional(item_r1.templateRef?0:item_r1.componentPortal?1:-1)}}var HappyCornerComponent=(()=>{let _HappyCornerComponent=class _HappyCornerComponent{constructor(){this.cdRef=inject(ChangeDetectorRef),this.elRef=inject(ElementRef),this.opts=inject(HAPPY_CORNER_DEFAULT_OPTIONS),this.service=inject(HappyCornerService),this.items=signal([]),this.items$=toObservable(this.items),this.reversedItems=computed(()=>[...this.items()].reverse()),effect(()=>{let total=this.items().reduce((acc,item)=>!item.hidden&&item.size>0?[...acc,item.size]:acc,[]).reduce((acc,size,i)=>acc+size+(i===0?32:16),0);this.service.setSafeAreaInset(total)})}insertComponent(portal,options){let insertRef=new HappyCornerComponentItem(this,portal,__spreadValues(__spreadValues({},this.opts),options));return this.items.update(value=>this.insertAtIndex(value,insertRef)),this.cdRef.detectChanges(),insertRef}insertTemplate(templateRef,options){let insertRef=new HappyCornerTemplateItem(this,templateRef,__spreadValues(__spreadValues({},this.opts),options));return this.items.update(value=>this.insertAtIndex(value,insertRef)),this.cdRef.detectChanges(),insertRef}invalidate(){this.items.update(items=>[...items].sort((a,b)=>b.order-a.order))}insertAtIndex(items,newItem){let itemIndex=items.findIndex(item=>newItem.order>item.order);return itemIndex===-1?[...items,newItem]:[...items.slice(0,itemIndex),newItem,...items.slice(itemIndex)]}};_HappyCornerComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_HappyCornerComponent)},_HappyCornerComponent.\u0275cmp=\u0275\u0275defineComponent({type:_HappyCornerComponent,selectors:[["ix-hc-root"]],decls:3,vars:0,consts:[[1,"container"],[1,"row",3,"ixHappyCornerItemAutoSizer","hidden"],[4,"ngTemplateOutlet"],[3,"cdkPortalOutlet"]],template:function(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"div",0),\u0275\u0275repeaterCreate(1,HappyCornerComponent_For_2_Template,2,1,null,null,_forTrack0),\u0275\u0275elementEnd()),rf&2&&(\u0275\u0275advance(),\u0275\u0275repeater(ctx.reversedItems()))},dependencies:[PortalModule,CdkPortalOutlet,NgTemplateOutlet,HappyCornerItemAutoSizerDirective],styles:["[_nghost-%COMP%]{max-width:100vw;padding:16px;display:block;box-sizing:border-box;position:absolute;inset:auto 0 0 auto;bottom:calc(var(--bottom-app-bar-offset, 0px) * -1 + env(safe-area-inset-bottom,0px));z-index:999;pointer-events:none}[_nghost-%COMP%] .container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-end;gap:16px}[_nghost-%COMP%] .container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{pointer-events:initial}[_nghost-%COMP%] .container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]:empty{display:none}"],changeDetection:0});let HappyCornerComponent2=_HappyCornerComponent;return HappyCornerComponent2})();var HappyCornerRef=class{constructor(){this._item$=new ReplaySubject(1)}getItem(){return lastValueFrom(this._item$)}};var HappyCornerService=(()=>{let _HappyCornerService=class _HappyCornerService{constructor(){this.doc=inject(DOCUMENT),this.router=inject(Router),this.vcRef=inject(APP_VIEW_CONTAINER),this.ready$=new ReplaySubject(1)}initialize(){this.router.events.pipe(filter(e=>e instanceof NavigationEnd&&!!this.vcRef()),take(1),map(()=>this.vcRef())).subscribe(vcRef=>{this.componentRef=vcRef.createComponent(HappyCornerComponent),this.viewRef=vcRef.insert(this.componentRef.hostView),this.ready$.next(!0),this.ready$.complete(),this.componentRef.instance.items$.pipe(pairwise()).subscribe(([prev,curr])=>this.checkIndexChanges(prev,curr))})}insertComponent(component,options){return __async(this,null,function*(){yield this.onReady();let hcRef=new HappyCornerRef,injector=Injector.create({providers:[{provide:HappyCornerRef,useValue:hcRef}]}),portal=new ComponentPortal(component,void 0,injector),item=this.componentRef.instance.insertComponent(portal,options);return hcRef._item$.next(item),hcRef._item$.complete(),item})}insertTemplate(template,options){return __async(this,null,function*(){return yield this.onReady(),this.componentRef.instance.insertTemplate(template,options)})}hideAll(){return __async(this,null,function*(){return yield this.onReady(),this.componentRef.instance.items.update(items=>(items.forEach(item=>item.hide()),[...items]))})}hideAllBelow(level){return __async(this,null,function*(){return yield this.onReady(),this.componentRef.instance.items.update(items=>(items.forEach(item=>item[item.level>=level?"show":"hide"]()),[...items]))})}showAll(){return __async(this,null,function*(){return yield this.onReady(),this.componentRef.instance.items.update(items=>(items.forEach(item=>item.show()),[...items]))})}setSafeAreaInset(size){size>0?this.doc.documentElement.style.setProperty("--ix-hc-safe-area-inset",`${size}px`):this.doc.documentElement.style.removeProperty("--ix-hc-safe-area-inset")}observeSize(elementRef){return resizeObservableFactory(elementRef.nativeElement).pipe(map(entries=>entries.reduce((_,entry)=>entry.contentRect.height,0)),distinctUntilChanged())}checkIndexChanges(prev,curr){curr.forEach((ref,currentIndex)=>{let previousIndex=prev.indexOf(ref);previousIndex!==-1&&previousIndex!==currentIndex&&ref.indexChanges.next({previousIndex,currentIndex})})}onReady(){return this.componentRef?Promise.resolve(!0):lastValueFrom(this.ready$)}};_HappyCornerService.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_HappyCornerService)},_HappyCornerService.\u0275prov=\u0275\u0275defineInjectable({token:_HappyCornerService,factory:_HappyCornerService.\u0275fac,providedIn:"root"});let HappyCornerService2=_HappyCornerService;return HappyCornerService2})();function provideHappyCorner(options){return[{provide:HAPPY_CORNER_DEFAULT_OPTIONS,useValue:__spreadValues({level:0,order:0},options)},{provide:APP_INITIALIZER,useFactory:service=>()=>service.initialize(),deps:[HappyCornerService],multi:!0}]}function ViewerComponent_ng_template_2_Template(rf,ctx){}var ViewerComponent=(()=>{let _ViewerComponent=class _ViewerComponent{constructor(){this.cdRef=inject(ChangeDetectorRef),this.elRef=inject(ElementRef),this.destroyRef=inject(DestroyRef),this.bpObserver=inject(BreakpointObserver),this.hcService=inject(HappyCornerService),this.router=inject(Router),this.window=inject(WINDOW),this._hcLevel=1,this._minimized=new BehaviorSubject(!1)}get minimized(){return this._minimized.getValue()}set minimized(minimized){this._minimized.next(!!minimized),this.elRef.nativeElement.classList[this._minimized.getValue()?"add":"remove"]("minimized"),this.cdRef.detectChanges()}ngOnInit(){combineLatest([this._minimized.pipe(distinctUntilChanged()),this.bpObserver.observe([Breakpoints.XSmall,Breakpoints.Small]).pipe(map(state=>state.matches),distinctUntilChanged())]).pipe(takeUntilDestroyed(this.destroyRef)).subscribe(([minimized])=>{minimized?this.hcService.showAll():this.hcService.hideAllBelow(this._hcLevel)})}ngOnDestroy(){this.hcService.showAll()}click(event2){event2.stopPropagation(),this.minimized&&this.resume()}maximize(){this.minimized&&(this.minimized=!1)}minimize(){setTimeout(()=>{this.minimized||(this.minimized=!0),this.url&&(this.window.location.href.endsWith(this.router.url)||this.window.history.replaceState({},"",this.router.url))})}resume(){this.minimized&&this.maximize(),this.url&&(this.window.location.href.endsWith(this.url)||this.window.history.replaceState({},"",this.url))}};_ViewerComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_ViewerComponent)},_ViewerComponent.\u0275cmp=\u0275\u0275defineComponent({type:_ViewerComponent,selectors:[["ix-viewer"]],decls:3,vars:1,consts:[[1,"ix-container",3,"click"],[1,"ix-surface"],[3,"cdkPortalOutlet"]],template:function(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"div",0),\u0275\u0275listener("click",function($event){return ctx.click($event)}),\u0275\u0275elementStart(1,"div",1),\u0275\u0275template(2,ViewerComponent_ng_template_2_Template,0,0,"ng-template",2),\u0275\u0275elementEnd()()),rf&2&&(\u0275\u0275advance(2),\u0275\u0275property("cdkPortalOutlet",ctx.portal))},dependencies:[PortalModule,CdkPortalOutlet],styles:["[_nghost-%COMP%]{position:absolute;inset:0;overflow:visible;backface-visibility:visible;pointer-events:none;z-index:120;will-change:transform,opacity;contain:strict}[_nghost-%COMP%] > .ix-container[_ngcontent-%COMP%]{height:100%;width:100%;inset:auto 0 0 auto;transform-origin:bottom right;background-color:#141414;transition:width .225s ease-out,height .225s ease-out,transform .225s ease-out;will-change:width,height,transform}.minimized[_nghost-%COMP%] > .ix-container[_ngcontent-%COMP%]{height:150px;width:200px;border:1px solid #141414;transform:translate(-16px,calc(var(--ix-hc-safe-area-inset, 16px) * -1 + var(--bottom-app-bar-offset, 0px)))}.minimized[_nghost-%COMP%] > .ix-container[_ngcontent-%COMP%] > .ix-surface[_ngcontent-%COMP%]{height:100%;width:100%}"],changeDetection:0});let ViewerComponent2=_ViewerComponent;return ViewerComponent2})();function _assertThisInitialized(self2){if(self2===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self2}function _inheritsLoose(subClass,superClass){subClass.prototype=Object.create(superClass.prototype),subClass.prototype.constructor=subClass,subClass.__proto__=superClass}var _config={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},_defaults={duration:.5,overwrite:!1,delay:0},_suppressOverwrites,_reverting,_context,_bigNum=1e8,_tinyNum=1/_bigNum,_2PI=Math.PI*2,_HALF_PI=_2PI/4,_gsID=0,_sqrt=Math.sqrt,_cos=Math.cos,_sin=Math.sin,_isString=function(value){return typeof value=="string"},_isFunction=function(value){return typeof value=="function"},_isNumber=function(value){return typeof value=="number"},_isUndefined=function(value){return typeof value>"u"},_isObject=function(value){return typeof value=="object"},_isNotFalse=function(value){return value!==!1},_windowExists=function(){return typeof window<"u"},_isFuncOrString=function(value){return _isFunction(value)||_isString(value)},_isTypedArray=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},_isArray=Array.isArray,_strictNumExp=/(?:-?\.?\d|\.)+/gi,_numExp=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,_numWithUnitExp=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,_complexStringNumExp=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,_relExp=/[+-]=-?[.\d]+/,_delimitedValueExp=/[^,'"\[\]\s]+/gi,_unitExp=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,_globalTimeline,_win,_coreInitted,_doc,_globals={},_installScope={},_coreReady,_install=function(scope){return(_installScope=_merge(scope,_globals))&&gsap},_missingPlugin=function(property,value){return console.warn("Invalid property",property,"set to",value,"Missing plugin? gsap.registerPlugin()")},_warn=function(message,suppress){return!suppress&&console.warn(message)},_addGlobal=function(name,obj){return name&&(_globals[name]=obj)&&_installScope&&(_installScope[name]=obj)||_globals},_emptyFunc=function(){return 0},_startAtRevertConfig={suppressEvents:!0,isStart:!0,kill:!1},_revertConfigNoKill={suppressEvents:!0,kill:!1},_revertConfig={suppressEvents:!0},_reservedProps={},_lazyTweens=[],_lazyLookup={},_lastRenderedFrame,_plugins={},_effects={},_nextGCFrame=30,_harnessPlugins=[],_callbackNames="",_harness=function(targets){var target=targets[0],harnessPlugin,i;if(_isObject(target)||_isFunction(target)||(targets=[targets]),!(harnessPlugin=(target._gsap||{}).harness)){for(i=_harnessPlugins.length;i--&&!_harnessPlugins[i].targetTest(target););harnessPlugin=_harnessPlugins[i]}for(i=targets.length;i--;)targets[i]&&(targets[i]._gsap||(targets[i]._gsap=new GSCache(targets[i],harnessPlugin)))||targets.splice(i,1);return targets},_getCache=function(target){return target._gsap||_harness(toArray(target))[0]._gsap},_getProperty=function(target,property,v){return(v=target[property])&&_isFunction(v)?target[property]():_isUndefined(v)&&target.getAttribute&&target.getAttribute(property)||v},_forEachName=function(names,func){return(names=names.split(",")).forEach(func)||names},_round=function(value){return Math.round(value*1e5)/1e5||0},_roundPrecise=function(value){return Math.round(value*1e7)/1e7||0},_parseRelative=function(start3,value){var operator=value.charAt(0),end2=parseFloat(value.substr(2));return start3=parseFloat(start3),operator==="+"?start3+end2:operator==="-"?start3-end2:operator==="*"?start3*end2:start3/end2},_arrayContainsAny=function(toSearch,toFind){for(var l2=toFind.length,i=0;toSearch.indexOf(toFind[i])<0&&++i<l2;);return i<l2},_lazyRender=function(){var l2=_lazyTweens.length,a=_lazyTweens.slice(0),i,tween;for(_lazyLookup={},_lazyTweens.length=0,i=0;i<l2;i++)tween=a[i],tween&&tween._lazy&&(tween.render(tween._lazy[0],tween._lazy[1],!0)._lazy=0)},_lazySafeRender=function(animation,time,suppressEvents,force){_lazyTweens.length&&!_reverting&&_lazyRender(),animation.render(time,suppressEvents,force||_reverting&&time<0&&(animation._initted||animation._startAt)),_lazyTweens.length&&!_reverting&&_lazyRender()},_numericIfPossible=function(value){var n2=parseFloat(value);return(n2||n2===0)&&(value+"").match(_delimitedValueExp).length<2?n2:_isString(value)?value.trim():value},_passThrough=function(p){return p},_setDefaults=function(obj,defaults2){for(var p in defaults2)p in obj||(obj[p]=defaults2[p]);return obj},_setKeyframeDefaults=function(excludeDuration){return function(obj,defaults2){for(var p in defaults2)p in obj||p==="duration"&&excludeDuration||p==="ease"||(obj[p]=defaults2[p])}},_merge=function(base,toMerge){for(var p in toMerge)base[p]=toMerge[p];return base},_mergeDeep=function _mergeDeep2(base,toMerge){for(var p in toMerge)p!=="__proto__"&&p!=="constructor"&&p!=="prototype"&&(base[p]=_isObject(toMerge[p])?_mergeDeep2(base[p]||(base[p]={}),toMerge[p]):toMerge[p]);return base},_copyExcluding=function(obj,excluding){var copy={},p;for(p in obj)p in excluding||(copy[p]=obj[p]);return copy},_inheritDefaults=function(vars){var parent=vars.parent||_globalTimeline,func=vars.keyframes?_setKeyframeDefaults(_isArray(vars.keyframes)):_setDefaults;if(_isNotFalse(vars.inherit))for(;parent;)func(vars,parent.vars.defaults),parent=parent.parent||parent._dp;return vars},_arraysMatch=function(a1,a2){for(var i=a1.length,match2=i===a2.length;match2&&i--&&a1[i]===a2[i];);return i<0},_addLinkedListItem=function(parent,child,firstProp,lastProp,sortBy2){firstProp===void 0&&(firstProp="_first"),lastProp===void 0&&(lastProp="_last");var prev=parent[lastProp],t;if(sortBy2)for(t=child[sortBy2];prev&&prev[sortBy2]>t;)prev=prev._prev;return prev?(child._next=prev._next,prev._next=child):(child._next=parent[firstProp],parent[firstProp]=child),child._next?child._next._prev=child:parent[lastProp]=child,child._prev=prev,child.parent=child._dp=parent,child},_removeLinkedListItem=function(parent,child,firstProp,lastProp){firstProp===void 0&&(firstProp="_first"),lastProp===void 0&&(lastProp="_last");var prev=child._prev,next=child._next;prev?prev._next=next:parent[firstProp]===child&&(parent[firstProp]=next),next?next._prev=prev:parent[lastProp]===child&&(parent[lastProp]=prev),child._next=child._prev=child.parent=null},_removeFromParent=function(child,onlyIfParentHasAutoRemove){child.parent&&(!onlyIfParentHasAutoRemove||child.parent.autoRemoveChildren)&&child.parent.remove&&child.parent.remove(child),child._act=0},_uncache=function(animation,child){if(animation&&(!child||child._end>animation._dur||child._start<0))for(var a=animation;a;)a._dirty=1,a=a.parent;return animation},_recacheAncestors=function(animation){for(var parent=animation.parent;parent&&parent.parent;)parent._dirty=1,parent.totalDuration(),parent=parent.parent;return animation},_rewindStartAt=function(tween,totalTime,suppressEvents,force){return tween._startAt&&(_reverting?tween._startAt.revert(_revertConfigNoKill):tween.vars.immediateRender&&!tween.vars.autoRevert||tween._startAt.render(totalTime,!0,force))},_hasNoPausedAncestors=function _hasNoPausedAncestors2(animation){return!animation||animation._ts&&_hasNoPausedAncestors2(animation.parent)},_elapsedCycleDuration=function(animation){return animation._repeat?_animationCycle(animation._tTime,animation=animation.duration()+animation._rDelay)*animation:0},_animationCycle=function(tTime,cycleDuration){var whole=Math.floor(tTime/=cycleDuration);return tTime&&whole===tTime?whole-1:whole},_parentToChildTotalTime=function(parentTime,child){return(parentTime-child._start)*child._ts+(child._ts>=0?0:child._dirty?child.totalDuration():child._tDur)},_setEnd=function(animation){return animation._end=_roundPrecise(animation._start+(animation._tDur/Math.abs(animation._ts||animation._rts||_tinyNum)||0))},_alignPlayhead=function(animation,totalTime){var parent=animation._dp;return parent&&parent.smoothChildTiming&&animation._ts&&(animation._start=_roundPrecise(parent._time-(animation._ts>0?totalTime/animation._ts:((animation._dirty?animation.totalDuration():animation._tDur)-totalTime)/-animation._ts)),_setEnd(animation),parent._dirty||_uncache(parent,animation)),animation},_postAddChecks=function(timeline2,child){var t;if((child._time||!child._dur&&child._initted||child._start<timeline2._time&&(child._dur||!child.add))&&(t=_parentToChildTotalTime(timeline2.rawTime(),child),(!child._dur||_clamp(0,child.totalDuration(),t)-child._tTime>_tinyNum)&&child.render(t,!0)),_uncache(timeline2,child)._dp&&timeline2._initted&&timeline2._time>=timeline2._dur&&timeline2._ts){if(timeline2._dur<timeline2.duration())for(t=timeline2;t._dp;)t.rawTime()>=0&&t.totalTime(t._tTime),t=t._dp;timeline2._zTime=-_tinyNum}},_addToTimeline=function(timeline2,child,position,skipChecks){return child.parent&&_removeFromParent(child),child._start=_roundPrecise((_isNumber(position)?position:position||timeline2!==_globalTimeline?_parsePosition(timeline2,position,child):timeline2._time)+child._delay),child._end=_roundPrecise(child._start+(child.totalDuration()/Math.abs(child.timeScale())||0)),_addLinkedListItem(timeline2,child,"_first","_last",timeline2._sort?"_start":0),_isFromOrFromStart(child)||(timeline2._recent=child),skipChecks||_postAddChecks(timeline2,child),timeline2._ts<0&&_alignPlayhead(timeline2,timeline2._tTime),timeline2},_scrollTrigger=function(animation,trigger){return(_globals.ScrollTrigger||_missingPlugin("scrollTrigger",trigger))&&_globals.ScrollTrigger.create(trigger,animation)},_attemptInitTween=function(tween,time,force,suppressEvents,tTime){if(_initTween(tween,time,tTime),!tween._initted)return 1;if(!force&&tween._pt&&!_reverting&&(tween._dur&&tween.vars.lazy!==!1||!tween._dur&&tween.vars.lazy)&&_lastRenderedFrame!==_ticker.frame)return _lazyTweens.push(tween),tween._lazy=[tTime,suppressEvents],1},_parentPlayheadIsBeforeStart=function _parentPlayheadIsBeforeStart2(_ref){var parent=_ref.parent;return parent&&parent._ts&&parent._initted&&!parent._lock&&(parent.rawTime()<0||_parentPlayheadIsBeforeStart2(parent))},_isFromOrFromStart=function(_ref2){var data=_ref2.data;return data==="isFromStart"||data==="isStart"},_renderZeroDurationTween=function(tween,totalTime,suppressEvents,force){var prevRatio=tween.ratio,ratio=totalTime<0||!totalTime&&(!tween._start&&_parentPlayheadIsBeforeStart(tween)&&!(!tween._initted&&_isFromOrFromStart(tween))||(tween._ts<0||tween._dp._ts<0)&&!_isFromOrFromStart(tween))?0:1,repeatDelay=tween._rDelay,tTime=0,pt,iteration,prevIteration;if(repeatDelay&&tween._repeat&&(tTime=_clamp(0,tween._tDur,totalTime),iteration=_animationCycle(tTime,repeatDelay),tween._yoyo&&iteration&1&&(ratio=1-ratio),iteration!==_animationCycle(tween._tTime,repeatDelay)&&(prevRatio=1-ratio,tween.vars.repeatRefresh&&tween._initted&&tween.invalidate())),ratio!==prevRatio||_reverting||force||tween._zTime===_tinyNum||!totalTime&&tween._zTime){if(!tween._initted&&_attemptInitTween(tween,totalTime,force,suppressEvents,tTime))return;for(prevIteration=tween._zTime,tween._zTime=totalTime||(suppressEvents?_tinyNum:0),suppressEvents||(suppressEvents=totalTime&&!prevIteration),tween.ratio=ratio,tween._from&&(ratio=1-ratio),tween._time=0,tween._tTime=tTime,pt=tween._pt;pt;)pt.r(ratio,pt.d),pt=pt._next;totalTime<0&&_rewindStartAt(tween,totalTime,suppressEvents,!0),tween._onUpdate&&!suppressEvents&&_callback(tween,"onUpdate"),tTime&&tween._repeat&&!suppressEvents&&tween.parent&&_callback(tween,"onRepeat"),(totalTime>=tween._tDur||totalTime<0)&&tween.ratio===ratio&&(ratio&&_removeFromParent(tween,1),!suppressEvents&&!_reverting&&(_callback(tween,ratio?"onComplete":"onReverseComplete",!0),tween._prom&&tween._prom()))}else tween._zTime||(tween._zTime=totalTime)},_findNextPauseTween=function(animation,prevTime,time){var child;if(time>prevTime)for(child=animation._first;child&&child._start<=time;){if(child.data==="isPause"&&child._start>prevTime)return child;child=child._next}else for(child=animation._last;child&&child._start>=time;){if(child.data==="isPause"&&child._start<prevTime)return child;child=child._prev}},_setDuration=function(animation,duration,skipUncache,leavePlayhead){var repeat=animation._repeat,dur=_roundPrecise(duration)||0,totalProgress=animation._tTime/animation._tDur;return totalProgress&&!leavePlayhead&&(animation._time*=dur/animation._dur),animation._dur=dur,animation._tDur=repeat?repeat<0?1e10:_roundPrecise(dur*(repeat+1)+animation._rDelay*repeat):dur,totalProgress>0&&!leavePlayhead&&_alignPlayhead(animation,animation._tTime=animation._tDur*totalProgress),animation.parent&&_setEnd(animation),skipUncache||_uncache(animation.parent,animation),animation},_onUpdateTotalDuration=function(animation){return animation instanceof Timeline?_uncache(animation):_setDuration(animation,animation._dur)},_zeroPosition={_start:0,endTime:_emptyFunc,totalDuration:_emptyFunc},_parsePosition=function _parsePosition2(animation,position,percentAnimation){var labels=animation.labels,recent=animation._recent||_zeroPosition,clippedDuration=animation.duration()>=_bigNum?recent.endTime(!1):animation._dur,i,offset3,isPercent;return _isString(position)&&(isNaN(position)||position in labels)?(offset3=position.charAt(0),isPercent=position.substr(-1)==="%",i=position.indexOf("="),offset3==="<"||offset3===">"?(i>=0&&(position=position.replace(/=/,"")),(offset3==="<"?recent._start:recent.endTime(recent._repeat>=0))+(parseFloat(position.substr(1))||0)*(isPercent?(i<0?recent:percentAnimation).totalDuration()/100:1)):i<0?(position in labels||(labels[position]=clippedDuration),labels[position]):(offset3=parseFloat(position.charAt(i-1)+position.substr(i+1)),isPercent&&percentAnimation&&(offset3=offset3/100*(_isArray(percentAnimation)?percentAnimation[0]:percentAnimation).totalDuration()),i>1?_parsePosition2(animation,position.substr(0,i-1),percentAnimation)+offset3:clippedDuration+offset3)):position==null?clippedDuration:+position},_createTweenType=function(type,params,timeline2){var isLegacy=_isNumber(params[1]),varsIndex=(isLegacy?2:1)+(type<2?0:1),vars=params[varsIndex],irVars,parent;if(isLegacy&&(vars.duration=params[1]),vars.parent=timeline2,type){for(irVars=vars,parent=timeline2;parent&&!("immediateRender"in irVars);)irVars=parent.vars.defaults||{},parent=_isNotFalse(parent.vars.inherit)&&parent.parent;vars.immediateRender=_isNotFalse(irVars.immediateRender),type<2?vars.runBackwards=1:vars.startAt=params[varsIndex-1]}return new Tween(params[0],vars,params[varsIndex+1])},_conditionalReturn=function(value,func){return value||value===0?func(value):func},_clamp=function(min2,max2,value){return value<min2?min2:value>max2?max2:value},getUnit=function(value,v){return!_isString(value)||!(v=_unitExp.exec(value))?"":v[1]},clamp=function(min2,max2,value){return _conditionalReturn(value,function(v){return _clamp(min2,max2,v)})},_slice=[].slice,_isArrayLike=function(value,nonEmpty){return value&&_isObject(value)&&"length"in value&&(!nonEmpty&&!value.length||value.length-1 in value&&_isObject(value[0]))&&!value.nodeType&&value!==_win},_flatten=function(ar,leaveStrings,accumulator){return accumulator===void 0&&(accumulator=[]),ar.forEach(function(value){var _accumulator;return _isString(value)&&!leaveStrings||_isArrayLike(value,1)?(_accumulator=accumulator).push.apply(_accumulator,toArray(value)):accumulator.push(value)})||accumulator},toArray=function(value,scope,leaveStrings){return _context&&!scope&&_context.selector?_context.selector(value):_isString(value)&&!leaveStrings&&(_coreInitted||!_wake())?_slice.call((scope||_doc).querySelectorAll(value),0):_isArray(value)?_flatten(value,leaveStrings):_isArrayLike(value)?_slice.call(value,0):value?[value]:[]},selector=function(value){return value=toArray(value)[0]||_warn("Invalid scope")||{},function(v){var el=value.current||value.nativeElement||value;return toArray(v,el.querySelectorAll?el:el===value?_warn("Invalid scope")||_doc.createElement("div"):value)}},shuffle=function(a){return a.sort(function(){return .5-Math.random()})},distribute=function(v){if(_isFunction(v))return v;var vars=_isObject(v)?v:{each:v},ease=_parseEase(vars.ease),from2=vars.from||0,base=parseFloat(vars.base)||0,cache={},isDecimal=from2>0&&from2<1,ratios=isNaN(from2)||isDecimal,axis=vars.axis,ratioX=from2,ratioY=from2;return _isString(from2)?ratioX=ratioY={center:.5,edges:.5,end:1}[from2]||0:!isDecimal&&ratios&&(ratioX=from2[0],ratioY=from2[1]),function(i,target,a){var l2=(a||vars).length,distances=cache[l2],originX,originY,x,y,d,j,max2,min2,wrapAt;if(!distances){if(wrapAt=vars.grid==="auto"?0:(vars.grid||[1,_bigNum])[1],!wrapAt){for(max2=-_bigNum;max2<(max2=a[wrapAt++].getBoundingClientRect().left)&&wrapAt<l2;);wrapAt<l2&&wrapAt--}for(distances=cache[l2]=[],originX=ratios?Math.min(wrapAt,l2)*ratioX-.5:from2%wrapAt,originY=wrapAt===_bigNum?0:ratios?l2*ratioY/wrapAt-.5:from2/wrapAt|0,max2=0,min2=_bigNum,j=0;j<l2;j++)x=j%wrapAt-originX,y=originY-(j/wrapAt|0),distances[j]=d=axis?Math.abs(axis==="y"?y:x):_sqrt(x*x+y*y),d>max2&&(max2=d),d<min2&&(min2=d);from2==="random"&&shuffle(distances),distances.max=max2-min2,distances.min=min2,distances.v=l2=(parseFloat(vars.amount)||parseFloat(vars.each)*(wrapAt>l2?l2-1:axis?axis==="y"?l2/wrapAt:wrapAt:Math.max(wrapAt,l2/wrapAt))||0)*(from2==="edges"?-1:1),distances.b=l2<0?base-l2:base,distances.u=getUnit(vars.amount||vars.each)||0,ease=ease&&l2<0?_invertEase(ease):ease}return l2=(distances[i]-distances.min)/distances.max||0,_roundPrecise(distances.b+(ease?ease(l2):l2)*distances.v)+distances.u}},_roundModifier=function(v){var p=Math.pow(10,((v+"").split(".")[1]||"").length);return function(raw){var n2=_roundPrecise(Math.round(parseFloat(raw)/v)*v*p);return(n2-n2%1)/p+(_isNumber(raw)?0:getUnit(raw))}},snap=function(snapTo,value){var isArray=_isArray(snapTo),radius,is2D;return!isArray&&_isObject(snapTo)&&(radius=isArray=snapTo.radius||_bigNum,snapTo.values?(snapTo=toArray(snapTo.values),(is2D=!_isNumber(snapTo[0]))&&(radius*=radius)):snapTo=_roundModifier(snapTo.increment)),_conditionalReturn(value,isArray?_isFunction(snapTo)?function(raw){return is2D=snapTo(raw),Math.abs(is2D-raw)<=radius?is2D:raw}:function(raw){for(var x=parseFloat(is2D?raw.x:raw),y=parseFloat(is2D?raw.y:0),min2=_bigNum,closest=0,i=snapTo.length,dx,dy;i--;)is2D?(dx=snapTo[i].x-x,dy=snapTo[i].y-y,dx=dx*dx+dy*dy):dx=Math.abs(snapTo[i]-x),dx<min2&&(min2=dx,closest=i);return closest=!radius||min2<=radius?snapTo[closest]:raw,is2D||closest===raw||_isNumber(raw)?closest:closest+getUnit(raw)}:_roundModifier(snapTo))},random=function(min2,max2,roundingIncrement,returnFunction){return _conditionalReturn(_isArray(min2)?!max2:roundingIncrement===!0?!!(roundingIncrement=0):!returnFunction,function(){return _isArray(min2)?min2[~~(Math.random()*min2.length)]:(roundingIncrement=roundingIncrement||1e-5)&&(returnFunction=roundingIncrement<1?Math.pow(10,(roundingIncrement+"").length-2):1)&&Math.floor(Math.round((min2-roundingIncrement/2+Math.random()*(max2-min2+roundingIncrement*.99))/roundingIncrement)*roundingIncrement*returnFunction)/returnFunction})},pipe=function(){for(var _len=arguments.length,functions=new Array(_len),_key=0;_key<_len;_key++)functions[_key]=arguments[_key];return function(value){return functions.reduce(function(v,f){return f(v)},value)}},unitize=function(func,unit){return function(value){return func(parseFloat(value))+(unit||getUnit(value))}},normalize=function(min2,max2,value){return mapRange(min2,max2,0,1,value)},_wrapArray=function(a,wrapper,value){return _conditionalReturn(value,function(index){return a[~~wrapper(index)]})},wrap=function wrap2(min2,max2,value){var range2=max2-min2;return _isArray(min2)?_wrapArray(min2,wrap2(0,min2.length),max2):_conditionalReturn(value,function(value2){return(range2+(value2-min2)%range2)%range2+min2})},wrapYoyo=function wrapYoyo2(min2,max2,value){var range2=max2-min2,total=range2*2;return _isArray(min2)?_wrapArray(min2,wrapYoyo2(0,min2.length-1),max2):_conditionalReturn(value,function(value2){return value2=(total+(value2-min2)%total)%total||0,min2+(value2>range2?total-value2:value2)})},_replaceRandom=function(value){for(var prev=0,s2="",i,nums,end2,isArray;~(i=value.indexOf("random(",prev));)end2=value.indexOf(")",i),isArray=value.charAt(i+7)==="[",nums=value.substr(i+7,end2-i-7).match(isArray?_delimitedValueExp:_strictNumExp),s2+=value.substr(prev,i-prev)+random(isArray?nums:+nums[0],isArray?0:+nums[1],+nums[2]||1e-5),prev=end2+1;return s2+value.substr(prev,value.length-prev)},mapRange=function(inMin,inMax,outMin,outMax,value){var inRange=inMax-inMin,outRange=outMax-outMin;return _conditionalReturn(value,function(value2){return outMin+((value2-inMin)/inRange*outRange||0)})},interpolate=function interpolate2(start3,end2,progress,mutate){var func=isNaN(start3+end2)?0:function(p2){return(1-p2)*start3+p2*end2};if(!func){var isString2=_isString(start3),master={},p,i,interpolators,l2,il;if(progress===!0&&(mutate=1)&&(progress=null),isString2)start3={p:start3},end2={p:end2};else if(_isArray(start3)&&!_isArray(end2)){for(interpolators=[],l2=start3.length,il=l2-2,i=1;i<l2;i++)interpolators.push(interpolate2(start3[i-1],start3[i]));l2--,func=function(p2){p2*=l2;var i2=Math.min(il,~~p2);return interpolators[i2](p2-i2)},progress=end2}else mutate||(start3=_merge(_isArray(start3)?[]:{},start3));if(!interpolators){for(p in end2)_addPropTween.call(master,start3,p,"get",end2[p]);func=function(p2){return _renderPropTweens(p2,master)||(isString2?start3.p:start3)}}}return _conditionalReturn(progress,func)},_getLabelInDirection=function(timeline2,fromTime,backward){var labels=timeline2.labels,min2=_bigNum,p,distance,label;for(p in labels)distance=labels[p]-fromTime,distance<0==!!backward&&distance&&min2>(distance=Math.abs(distance))&&(label=p,min2=distance);return label},_callback=function(animation,type,executeLazyFirst){var v=animation.vars,callback=v[type],prevContext=_context,context3=animation._ctx,params,scope,result;if(callback)return params=v[type+"Params"],scope=v.callbackScope||animation,executeLazyFirst&&_lazyTweens.length&&_lazyRender(),context3&&(_context=context3),result=params?callback.apply(scope,params):callback.call(scope),_context=prevContext,result},_interrupt=function(animation){return _removeFromParent(animation),animation.scrollTrigger&&animation.scrollTrigger.kill(!!_reverting),animation.progress()<1&&_callback(animation,"onInterrupt"),animation},_quickTween,_registerPluginQueue=[],_createPlugin=function(config3){if(config3)if(config3=!config3.name&&config3.default||config3,_windowExists()||config3.headless){var name=config3.name,isFunc=_isFunction(config3),Plugin=name&&!isFunc&&config3.init?function(){this._props=[]}:config3,instanceDefaults={init:_emptyFunc,render:_renderPropTweens,add:_addPropTween,kill:_killPropTweensOf,modifier:_addPluginModifier,rawVars:0},statics={targetTest:0,get:0,getSetter:_getSetter,aliases:{},register:0};if(_wake(),config3!==Plugin){if(_plugins[name])return;_setDefaults(Plugin,_setDefaults(_copyExcluding(config3,instanceDefaults),statics)),_merge(Plugin.prototype,_merge(instanceDefaults,_copyExcluding(config3,statics))),_plugins[Plugin.prop=name]=Plugin,config3.targetTest&&(_harnessPlugins.push(Plugin),_reservedProps[name]=1),name=(name==="css"?"CSS":name.charAt(0).toUpperCase()+name.substr(1))+"Plugin"}_addGlobal(name,Plugin),config3.register&&config3.register(gsap,Plugin,PropTween)}else _registerPluginQueue.push(config3)},_255=255,_colorLookup={aqua:[0,_255,_255],lime:[0,_255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,_255],navy:[0,0,128],white:[_255,_255,_255],olive:[128,128,0],yellow:[_255,_255,0],orange:[_255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[_255,0,0],pink:[_255,192,203],cyan:[0,_255,_255],transparent:[_255,_255,_255,0]},_hue=function(h,m1,m2){return h+=h<0?1:h>1?-1:0,(h*6<1?m1+(m2-m1)*h*6:h<.5?m2:h*3<2?m1+(m2-m1)*(2/3-h)*6:m1)*_255+.5|0},splitColor=function(v,toHSL,forceAlpha){var a=v?_isNumber(v)?[v>>16,v>>8&_255,v&_255]:0:_colorLookup.black,r,g,b,h,s2,l2,max2,min2,d,wasHSL;if(!a){if(v.substr(-1)===","&&(v=v.substr(0,v.length-1)),_colorLookup[v])a=_colorLookup[v];else if(v.charAt(0)==="#"){if(v.length<6&&(r=v.charAt(1),g=v.charAt(2),b=v.charAt(3),v="#"+r+r+g+g+b+b+(v.length===5?v.charAt(4)+v.charAt(4):"")),v.length===9)return a=parseInt(v.substr(1,6),16),[a>>16,a>>8&_255,a&_255,parseInt(v.substr(7),16)/255];v=parseInt(v.substr(1),16),a=[v>>16,v>>8&_255,v&_255]}else if(v.substr(0,3)==="hsl"){if(a=wasHSL=v.match(_strictNumExp),!toHSL)h=+a[0]%360/360,s2=+a[1]/100,l2=+a[2]/100,g=l2<=.5?l2*(s2+1):l2+s2-l2*s2,r=l2*2-g,a.length>3&&(a[3]*=1),a[0]=_hue(h+1/3,r,g),a[1]=_hue(h,r,g),a[2]=_hue(h-1/3,r,g);else if(~v.indexOf("="))return a=v.match(_numExp),forceAlpha&&a.length<4&&(a[3]=1),a}else a=v.match(_strictNumExp)||_colorLookup.transparent;a=a.map(Number)}return toHSL&&!wasHSL&&(r=a[0]/_255,g=a[1]/_255,b=a[2]/_255,max2=Math.max(r,g,b),min2=Math.min(r,g,b),l2=(max2+min2)/2,max2===min2?h=s2=0:(d=max2-min2,s2=l2>.5?d/(2-max2-min2):d/(max2+min2),h=max2===r?(g-b)/d+(g<b?6:0):max2===g?(b-r)/d+2:(r-g)/d+4,h*=60),a[0]=~~(h+.5),a[1]=~~(s2*100+.5),a[2]=~~(l2*100+.5)),forceAlpha&&a.length<4&&(a[3]=1),a},_colorOrderData=function(v){var values=[],c=[],i=-1;return v.split(_colorExp).forEach(function(v2){var a=v2.match(_numWithUnitExp)||[];values.push.apply(values,a),c.push(i+=a.length+1)}),values.c=c,values},_formatColors=function(s2,toHSL,orderMatchData){var result="",colors=(s2+result).match(_colorExp),type=toHSL?"hsla(":"rgba(",i=0,c,shell,d,l2;if(!colors)return s2;if(colors=colors.map(function(color){return(color=splitColor(color,toHSL,1))&&type+(toHSL?color[0]+","+color[1]+"%,"+color[2]+"%,"+color[3]:color.join(","))+")"}),orderMatchData&&(d=_colorOrderData(s2),c=orderMatchData.c,c.join(result)!==d.c.join(result)))for(shell=s2.replace(_colorExp,"1").split(_numWithUnitExp),l2=shell.length-1;i<l2;i++)result+=shell[i]+(~c.indexOf(i)?colors.shift()||type+"0,0,0,0)":(d.length?d:colors.length?colors:orderMatchData).shift());if(!shell)for(shell=s2.split(_colorExp),l2=shell.length-1;i<l2;i++)result+=shell[i]+colors[i];return result+shell[l2]},_colorExp=function(){var s2="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",p;for(p in _colorLookup)s2+="|"+p+"\\b";return new RegExp(s2+")","gi")}(),_hslExp=/hsl[a]?\(/,_colorStringFilter=function(a){var combined=a.join(" "),toHSL;if(_colorExp.lastIndex=0,_colorExp.test(combined))return toHSL=_hslExp.test(combined),a[1]=_formatColors(a[1],toHSL),a[0]=_formatColors(a[0],toHSL,_colorOrderData(a[1])),!0},_tickerActive,_ticker=function(){var _getTime=Date.now,_lagThreshold=500,_adjustedLag=33,_startTime=_getTime(),_lastUpdate=_startTime,_gap=1e3/240,_nextTime=_gap,_listeners2=[],_id,_req,_raf,_self,_delta,_i,_tick=function _tick2(v){var elapsed=_getTime()-_lastUpdate,manual=v===!0,overlap,dispatch,time,frame;if((elapsed>_lagThreshold||elapsed<0)&&(_startTime+=elapsed-_adjustedLag),_lastUpdate+=elapsed,time=_lastUpdate-_startTime,overlap=time-_nextTime,(overlap>0||manual)&&(frame=++_self.frame,_delta=time-_self.time*1e3,_self.time=time=time/1e3,_nextTime+=overlap+(overlap>=_gap?4:_gap-overlap),dispatch=1),manual||(_id=_req(_tick2)),dispatch)for(_i=0;_i<_listeners2.length;_i++)_listeners2[_i](time,_delta,frame,v)};return _self={time:0,frame:0,tick:function(){_tick(!0)},deltaRatio:function(fps){return _delta/(1e3/(fps||60))},wake:function(){_coreReady&&(!_coreInitted&&_windowExists()&&(_win=_coreInitted=window,_doc=_win.document||{},_globals.gsap=gsap,(_win.gsapVersions||(_win.gsapVersions=[])).push(gsap.version),_install(_installScope||_win.GreenSockGlobals||!_win.gsap&&_win||{}),_registerPluginQueue.forEach(_createPlugin)),_raf=typeof requestAnimationFrame<"u"&&requestAnimationFrame,_id&&_self.sleep(),_req=_raf||function(f){return setTimeout(f,_nextTime-_self.time*1e3+1|0)},_tickerActive=1,_tick(2))},sleep:function(){(_raf?cancelAnimationFrame:clearTimeout)(_id),_tickerActive=0,_req=_emptyFunc},lagSmoothing:function(threshold,adjustedLag){_lagThreshold=threshold||1/0,_adjustedLag=Math.min(adjustedLag||33,_lagThreshold)},fps:function(_fps){_gap=1e3/(_fps||240),_nextTime=_self.time*1e3+_gap},add:function(callback,once,prioritize){var func=once?function(t,d,f,v){callback(t,d,f,v),_self.remove(func)}:callback;return _self.remove(callback),_listeners2[prioritize?"unshift":"push"](func),_wake(),func},remove:function(callback,i){~(i=_listeners2.indexOf(callback))&&_listeners2.splice(i,1)&&_i>=i&&_i--},_listeners:_listeners2},_self}(),_wake=function(){return!_tickerActive&&_ticker.wake()},_easeMap={},_customEaseExp=/^[\d.\-M][\d.\-,\s]/,_quotesExp=/["']/g,_parseObjectInString=function(value){for(var obj={},split=value.substr(1,value.length-3).split(":"),key=split[0],i=1,l2=split.length,index,val,parsedVal;i<l2;i++)val=split[i],index=i!==l2-1?val.lastIndexOf(","):val.length,parsedVal=val.substr(0,index),obj[key]=isNaN(parsedVal)?parsedVal.replace(_quotesExp,"").trim():+parsedVal,key=val.substr(index+1).trim();return obj},_valueInParentheses=function(value){var open2=value.indexOf("(")+1,close2=value.indexOf(")"),nested=value.indexOf("(",open2);return value.substring(open2,~nested&&nested<close2?value.indexOf(")",close2+1):close2)},_configEaseFromString=function(name){var split=(name+"").split("("),ease=_easeMap[split[0]];return ease&&split.length>1&&ease.config?ease.config.apply(null,~name.indexOf("{")?[_parseObjectInString(split[1])]:_valueInParentheses(name).split(",").map(_numericIfPossible)):_easeMap._CE&&_customEaseExp.test(name)?_easeMap._CE("",name):ease},_invertEase=function(ease){return function(p){return 1-ease(1-p)}},_propagateYoyoEase=function _propagateYoyoEase2(timeline2,isYoyo){for(var child=timeline2._first,ease;child;)child instanceof Timeline?_propagateYoyoEase2(child,isYoyo):child.vars.yoyoEase&&(!child._yoyo||!child._repeat)&&child._yoyo!==isYoyo&&(child.timeline?_propagateYoyoEase2(child.timeline,isYoyo):(ease=child._ease,child._ease=child._yEase,child._yEase=ease,child._yoyo=isYoyo)),child=child._next},_parseEase=function(ease,defaultEase){return ease&&(_isFunction(ease)?ease:_easeMap[ease]||_configEaseFromString(ease))||defaultEase},_insertEase=function(names,easeIn,easeOut,easeInOut){easeOut===void 0&&(easeOut=function(p){return 1-easeIn(1-p)}),easeInOut===void 0&&(easeInOut=function(p){return p<.5?easeIn(p*2)/2:1-easeIn((1-p)*2)/2});var ease={easeIn,easeOut,easeInOut},lowercaseName;return _forEachName(names,function(name){_easeMap[name]=_globals[name]=ease,_easeMap[lowercaseName=name.toLowerCase()]=easeOut;for(var p in ease)_easeMap[lowercaseName+(p==="easeIn"?".in":p==="easeOut"?".out":".inOut")]=_easeMap[name+"."+p]=ease[p]}),ease},_easeInOutFromOut=function(easeOut){return function(p){return p<.5?(1-easeOut(1-p*2))/2:.5+easeOut((p-.5)*2)/2}},_configElastic=function _configElastic2(type,amplitude,period){var p1=amplitude>=1?amplitude:1,p2=(period||(type?.3:.45))/(amplitude<1?amplitude:1),p3=p2/_2PI*(Math.asin(1/p1)||0),easeOut=function(p){return p===1?1:p1*Math.pow(2,-10*p)*_sin((p-p3)*p2)+1},ease=type==="out"?easeOut:type==="in"?function(p){return 1-easeOut(1-p)}:_easeInOutFromOut(easeOut);return p2=_2PI/p2,ease.config=function(amplitude2,period2){return _configElastic2(type,amplitude2,period2)},ease},_configBack=function _configBack2(type,overshoot){overshoot===void 0&&(overshoot=1.70158);var easeOut=function(p){return p?--p*p*((overshoot+1)*p+overshoot)+1:0},ease=type==="out"?easeOut:type==="in"?function(p){return 1-easeOut(1-p)}:_easeInOutFromOut(easeOut);return ease.config=function(overshoot2){return _configBack2(type,overshoot2)},ease};_forEachName("Linear,Quad,Cubic,Quart,Quint,Strong",function(name,i){var power=i<5?i+1:i;_insertEase(name+",Power"+(power-1),i?function(p){return Math.pow(p,power)}:function(p){return p},function(p){return 1-Math.pow(1-p,power)},function(p){return p<.5?Math.pow(p*2,power)/2:1-Math.pow((1-p)*2,power)/2})});_easeMap.Linear.easeNone=_easeMap.none=_easeMap.Linear.easeIn;_insertEase("Elastic",_configElastic("in"),_configElastic("out"),_configElastic());(function(n2,c){var n1=1/c,n22=2*n1,n3=2.5*n1,easeOut=function(p){return p<n1?n2*p*p:p<n22?n2*Math.pow(p-1.5/c,2)+.75:p<n3?n2*(p-=2.25/c)*p+.9375:n2*Math.pow(p-2.625/c,2)+.984375};_insertEase("Bounce",function(p){return 1-easeOut(1-p)},easeOut)})(7.5625,2.75);_insertEase("Expo",function(p){return p?Math.pow(2,10*(p-1)):0});_insertEase("Circ",function(p){return-(_sqrt(1-p*p)-1)});_insertEase("Sine",function(p){return p===1?1:-_cos(p*_HALF_PI)+1});_insertEase("Back",_configBack("in"),_configBack("out"),_configBack());_easeMap.SteppedEase=_easeMap.steps=_globals.SteppedEase={config:function(steps,immediateStart){steps===void 0&&(steps=1);var p1=1/steps,p2=steps+(immediateStart?0:1),p3=immediateStart?1:0,max2=1-_tinyNum;return function(p){return((p2*_clamp(0,max2,p)|0)+p3)*p1}}};_defaults.ease=_easeMap["quad.out"];_forEachName("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(name){return _callbackNames+=name+","+name+"Params,"});var GSCache=function(target,harness){this.id=_gsID++,target._gsap=this,this.target=target,this.harness=harness,this.get=harness?harness.get:_getProperty,this.set=harness?harness.getSetter:_getSetter},Animation=function(){function Animation2(vars){this.vars=vars,this._delay=+vars.delay||0,(this._repeat=vars.repeat===1/0?-2:vars.repeat||0)&&(this._rDelay=vars.repeatDelay||0,this._yoyo=!!vars.yoyo||!!vars.yoyoEase),this._ts=1,_setDuration(this,+vars.duration,1,1),this.data=vars.data,_context&&(this._ctx=_context,_context.data.push(this)),_tickerActive||_ticker.wake()}var _proto=Animation2.prototype;return _proto.delay=function(value){return value||value===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+value-this._delay),this._delay=value,this):this._delay},_proto.duration=function(value){return arguments.length?this.totalDuration(this._repeat>0?value+(value+this._rDelay)*this._repeat:value):this.totalDuration()&&this._dur},_proto.totalDuration=function(value){return arguments.length?(this._dirty=0,_setDuration(this,this._repeat<0?value:(value-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},_proto.totalTime=function(_totalTime,suppressEvents){if(_wake(),!arguments.length)return this._tTime;var parent=this._dp;if(parent&&parent.smoothChildTiming&&this._ts){for(_alignPlayhead(this,_totalTime),!parent._dp||parent.parent||_postAddChecks(parent,this);parent&&parent.parent;)parent.parent._time!==parent._start+(parent._ts>=0?parent._tTime/parent._ts:(parent.totalDuration()-parent._tTime)/-parent._ts)&&parent.totalTime(parent._tTime,!0),parent=parent.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&_totalTime<this._tDur||this._ts<0&&_totalTime>0||!this._tDur&&!_totalTime)&&_addToTimeline(this._dp,this,this._start-this._delay)}return(this._tTime!==_totalTime||!this._dur&&!suppressEvents||this._initted&&Math.abs(this._zTime)===_tinyNum||!_totalTime&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=_totalTime),_lazySafeRender(this,_totalTime,suppressEvents)),this},_proto.time=function(value,suppressEvents){return arguments.length?this.totalTime(Math.min(this.totalDuration(),value+_elapsedCycleDuration(this))%(this._dur+this._rDelay)||(value?this._dur:0),suppressEvents):this._time},_proto.totalProgress=function(value,suppressEvents){return arguments.length?this.totalTime(this.totalDuration()*value,suppressEvents):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>0?1:0},_proto.progress=function(value,suppressEvents){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-value:value)+_elapsedCycleDuration(this),suppressEvents):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},_proto.iteration=function(value,suppressEvents){var cycleDuration=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(value-1)*cycleDuration,suppressEvents):this._repeat?_animationCycle(this._tTime,cycleDuration)+1:1},_proto.timeScale=function(value,suppressEvents){if(!arguments.length)return this._rts===-_tinyNum?0:this._rts;if(this._rts===value)return this;var tTime=this.parent&&this._ts?_parentToChildTotalTime(this.parent._time,this):this._tTime;return this._rts=+value||0,this._ts=this._ps||value===-_tinyNum?0:this._rts,this.totalTime(_clamp(-Math.abs(this._delay),this._tDur,tTime),suppressEvents!==!1),_setEnd(this),_recacheAncestors(this)},_proto.paused=function(value){return arguments.length?(this._ps!==value&&(this._ps=value,value?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(_wake(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==_tinyNum&&(this._tTime-=_tinyNum)))),this):this._ps},_proto.startTime=function(value){if(arguments.length){this._start=value;var parent=this.parent||this._dp;return parent&&(parent._sort||!this.parent)&&_addToTimeline(parent,this,value-this._delay),this}return this._start},_proto.endTime=function(includeRepeats){return this._start+(_isNotFalse(includeRepeats)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},_proto.rawTime=function(wrapRepeats){var parent=this.parent||this._dp;return parent?wrapRepeats&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?_parentToChildTotalTime(parent.rawTime(wrapRepeats),this):this._tTime:this._tTime},_proto.revert=function(config3){config3===void 0&&(config3=_revertConfig);var prevIsReverting=_reverting;return _reverting=config3,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(config3),this.totalTime(-.01,config3.suppressEvents)),this.data!=="nested"&&config3.kill!==!1&&this.kill(),_reverting=prevIsReverting,this},_proto.globalTime=function(rawTime){for(var animation=this,time=arguments.length?rawTime:animation.rawTime();animation;)time=animation._start+time/(Math.abs(animation._ts)||1),animation=animation._dp;return!this.parent&&this._sat?this._sat.globalTime(rawTime):time},_proto.repeat=function(value){return arguments.length?(this._repeat=value===1/0?-2:value,_onUpdateTotalDuration(this)):this._repeat===-2?1/0:this._repeat},_proto.repeatDelay=function(value){if(arguments.length){var time=this._time;return this._rDelay=value,_onUpdateTotalDuration(this),time?this.time(time):this}return this._rDelay},_proto.yoyo=function(value){return arguments.length?(this._yoyo=value,this):this._yoyo},_proto.seek=function(position,suppressEvents){return this.totalTime(_parsePosition(this,position),_isNotFalse(suppressEvents))},_proto.restart=function(includeDelay,suppressEvents){return this.play().totalTime(includeDelay?-this._delay:0,_isNotFalse(suppressEvents))},_proto.play=function(from2,suppressEvents){return from2!=null&&this.seek(from2,suppressEvents),this.reversed(!1).paused(!1)},_proto.reverse=function(from2,suppressEvents){return from2!=null&&this.seek(from2||this.totalDuration(),suppressEvents),this.reversed(!0).paused(!1)},_proto.pause=function(atTime,suppressEvents){return atTime!=null&&this.seek(atTime,suppressEvents),this.paused(!0)},_proto.resume=function(){return this.paused(!1)},_proto.reversed=function(value){return arguments.length?(!!value!==this.reversed()&&this.timeScale(-this._rts||(value?-_tinyNum:0)),this):this._rts<0},_proto.invalidate=function(){return this._initted=this._act=0,this._zTime=-_tinyNum,this},_proto.isActive=function(){var parent=this.parent||this._dp,start3=this._start,rawTime;return!!(!parent||this._ts&&this._initted&&parent.isActive()&&(rawTime=parent.rawTime(!0))>=start3&&rawTime<this.endTime(!0)-_tinyNum)},_proto.eventCallback=function(type,callback,params){var vars=this.vars;return arguments.length>1?(callback?(vars[type]=callback,params&&(vars[type+"Params"]=params),type==="onUpdate"&&(this._onUpdate=callback)):delete vars[type],this):vars[type]},_proto.then=function(onFulfilled){var self2=this;return new Promise(function(resolve){var f=_isFunction(onFulfilled)?onFulfilled:_passThrough,_resolve=function(){var _then=self2.then;self2.then=null,_isFunction(f)&&(f=f(self2))&&(f.then||f===self2)&&(self2.then=_then),resolve(f),self2.then=_then};self2._initted&&self2.totalProgress()===1&&self2._ts>=0||!self2._tTime&&self2._ts<0?_resolve():self2._prom=_resolve})},_proto.kill=function(){_interrupt(this)},Animation2}();_setDefaults(Animation.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-_tinyNum,_prom:0,_ps:!1,_rts:1});var Timeline=function(_Animation){_inheritsLoose(Timeline2,_Animation);function Timeline2(vars,position){var _this;return vars===void 0&&(vars={}),_this=_Animation.call(this,vars)||this,_this.labels={},_this.smoothChildTiming=!!vars.smoothChildTiming,_this.autoRemoveChildren=!!vars.autoRemoveChildren,_this._sort=_isNotFalse(vars.sortChildren),_globalTimeline&&_addToTimeline(vars.parent||_globalTimeline,_assertThisInitialized(_this),position),vars.reversed&&_this.reverse(),vars.paused&&_this.paused(!0),vars.scrollTrigger&&_scrollTrigger(_assertThisInitialized(_this),vars.scrollTrigger),_this}var _proto2=Timeline2.prototype;return _proto2.to=function(targets,vars,position){return _createTweenType(0,arguments,this),this},_proto2.from=function(targets,vars,position){return _createTweenType(1,arguments,this),this},_proto2.fromTo=function(targets,fromVars,toVars,position){return _createTweenType(2,arguments,this),this},_proto2.set=function(targets,vars,position){return vars.duration=0,vars.parent=this,_inheritDefaults(vars).repeatDelay||(vars.repeat=0),vars.immediateRender=!!vars.immediateRender,new Tween(targets,vars,_parsePosition(this,position),1),this},_proto2.call=function(callback,params,position){return _addToTimeline(this,Tween.delayedCall(0,callback,params),position)},_proto2.staggerTo=function(targets,duration,vars,stagger,position,onCompleteAll,onCompleteAllParams){return vars.duration=duration,vars.stagger=vars.stagger||stagger,vars.onComplete=onCompleteAll,vars.onCompleteParams=onCompleteAllParams,vars.parent=this,new Tween(targets,vars,_parsePosition(this,position)),this},_proto2.staggerFrom=function(targets,duration,vars,stagger,position,onCompleteAll,onCompleteAllParams){return vars.runBackwards=1,_inheritDefaults(vars).immediateRender=_isNotFalse(vars.immediateRender),this.staggerTo(targets,duration,vars,stagger,position,onCompleteAll,onCompleteAllParams)},_proto2.staggerFromTo=function(targets,duration,fromVars,toVars,stagger,position,onCompleteAll,onCompleteAllParams){return toVars.startAt=fromVars,_inheritDefaults(toVars).immediateRender=_isNotFalse(toVars.immediateRender),this.staggerTo(targets,duration,toVars,stagger,position,onCompleteAll,onCompleteAllParams)},_proto2.render=function(totalTime,suppressEvents,force){var prevTime=this._time,tDur=this._dirty?this.totalDuration():this._tDur,dur=this._dur,tTime=totalTime<=0?0:_roundPrecise(totalTime),crossingStart=this._zTime<0!=totalTime<0&&(this._initted||!dur),time,child,next,iteration,cycleDuration,prevPaused,pauseTween,timeScale,prevStart,prevIteration,yoyo,isYoyo;if(this!==_globalTimeline&&tTime>tDur&&totalTime>=0&&(tTime=tDur),tTime!==this._tTime||force||crossingStart){if(prevTime!==this._time&&dur&&(tTime+=this._time-prevTime,totalTime+=this._time-prevTime),time=tTime,prevStart=this._start,timeScale=this._ts,prevPaused=!timeScale,crossingStart&&(dur||(prevTime=this._zTime),(totalTime||!suppressEvents)&&(this._zTime=totalTime)),this._repeat){if(yoyo=this._yoyo,cycleDuration=dur+this._rDelay,this._repeat<-1&&totalTime<0)return this.totalTime(cycleDuration*100+totalTime,suppressEvents,force);if(time=_roundPrecise(tTime%cycleDuration),tTime===tDur?(iteration=this._repeat,time=dur):(iteration=~~(tTime/cycleDuration),iteration&&iteration===tTime/cycleDuration&&(time=dur,iteration--),time>dur&&(time=dur)),prevIteration=_animationCycle(this._tTime,cycleDuration),!prevTime&&this._tTime&&prevIteration!==iteration&&this._tTime-prevIteration*cycleDuration-this._dur<=0&&(prevIteration=iteration),yoyo&&iteration&1&&(time=dur-time,isYoyo=1),iteration!==prevIteration&&!this._lock){var rewinding=yoyo&&prevIteration&1,doesWrap=rewinding===(yoyo&&iteration&1);if(iteration<prevIteration&&(rewinding=!rewinding),prevTime=rewinding?0:tTime%dur?dur:tTime,this._lock=1,this.render(prevTime||(isYoyo?0:_roundPrecise(iteration*cycleDuration)),suppressEvents,!dur)._lock=0,this._tTime=tTime,!suppressEvents&&this.parent&&_callback(this,"onRepeat"),this.vars.repeatRefresh&&!isYoyo&&(this.invalidate()._lock=1),prevTime&&prevTime!==this._time||prevPaused!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(dur=this._dur,tDur=this._tDur,doesWrap&&(this._lock=2,prevTime=rewinding?dur:-1e-4,this.render(prevTime,!0),this.vars.repeatRefresh&&!isYoyo&&this.invalidate()),this._lock=0,!this._ts&&!prevPaused)return this;_propagateYoyoEase(this,isYoyo)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(pauseTween=_findNextPauseTween(this,_roundPrecise(prevTime),_roundPrecise(time)),pauseTween&&(tTime-=time-(time=pauseTween._start))),this._tTime=tTime,this._time=time,this._act=!timeScale,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=totalTime,prevTime=0),!prevTime&&time&&!suppressEvents&&!iteration&&(_callback(this,"onStart"),this._tTime!==tTime))return this;if(time>=prevTime&&totalTime>=0)for(child=this._first;child;){if(next=child._next,(child._act||time>=child._start)&&child._ts&&pauseTween!==child){if(child.parent!==this)return this.render(totalTime,suppressEvents,force);if(child.render(child._ts>0?(time-child._start)*child._ts:(child._dirty?child.totalDuration():child._tDur)+(time-child._start)*child._ts,suppressEvents,force),time!==this._time||!this._ts&&!prevPaused){pauseTween=0,next&&(tTime+=this._zTime=-_tinyNum);break}}child=next}else{child=this._last;for(var adjustedTime=totalTime<0?totalTime:time;child;){if(next=child._prev,(child._act||adjustedTime<=child._end)&&child._ts&&pauseTween!==child){if(child.parent!==this)return this.render(totalTime,suppressEvents,force);if(child.render(child._ts>0?(adjustedTime-child._start)*child._ts:(child._dirty?child.totalDuration():child._tDur)+(adjustedTime-child._start)*child._ts,suppressEvents,force||_reverting&&(child._initted||child._startAt)),time!==this._time||!this._ts&&!prevPaused){pauseTween=0,next&&(tTime+=this._zTime=adjustedTime?-_tinyNum:_tinyNum);break}}child=next}}if(pauseTween&&!suppressEvents&&(this.pause(),pauseTween.render(time>=prevTime?0:-_tinyNum)._zTime=time>=prevTime?1:-1,this._ts))return this._start=prevStart,_setEnd(this),this.render(totalTime,suppressEvents,force);this._onUpdate&&!suppressEvents&&_callback(this,"onUpdate",!0),(tTime===tDur&&this._tTime>=this.totalDuration()||!tTime&&prevTime)&&(prevStart===this._start||Math.abs(timeScale)!==Math.abs(this._ts))&&(this._lock||((totalTime||!dur)&&(tTime===tDur&&this._ts>0||!tTime&&this._ts<0)&&_removeFromParent(this,1),!suppressEvents&&!(totalTime<0&&!prevTime)&&(tTime||prevTime||!tDur)&&(_callback(this,tTime===tDur&&totalTime>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(tTime<tDur&&this.timeScale()>0)&&this._prom())))}return this},_proto2.add=function(child,position){var _this2=this;if(_isNumber(position)||(position=_parsePosition(this,position,child)),!(child instanceof Animation)){if(_isArray(child))return child.forEach(function(obj){return _this2.add(obj,position)}),this;if(_isString(child))return this.addLabel(child,position);if(_isFunction(child))child=Tween.delayedCall(0,child);else return this}return this!==child?_addToTimeline(this,child,position):this},_proto2.getChildren=function(nested,tweens,timelines,ignoreBeforeTime){nested===void 0&&(nested=!0),tweens===void 0&&(tweens=!0),timelines===void 0&&(timelines=!0),ignoreBeforeTime===void 0&&(ignoreBeforeTime=-_bigNum);for(var a=[],child=this._first;child;)child._start>=ignoreBeforeTime&&(child instanceof Tween?tweens&&a.push(child):(timelines&&a.push(child),nested&&a.push.apply(a,child.getChildren(!0,tweens,timelines)))),child=child._next;return a},_proto2.getById=function(id){for(var animations=this.getChildren(1,1,1),i=animations.length;i--;)if(animations[i].vars.id===id)return animations[i]},_proto2.remove=function(child){return _isString(child)?this.removeLabel(child):_isFunction(child)?this.killTweensOf(child):(_removeLinkedListItem(this,child),child===this._recent&&(this._recent=this._last),_uncache(this))},_proto2.totalTime=function(_totalTime2,suppressEvents){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=_roundPrecise(_ticker.time-(this._ts>0?_totalTime2/this._ts:(this.totalDuration()-_totalTime2)/-this._ts))),_Animation.prototype.totalTime.call(this,_totalTime2,suppressEvents),this._forcing=0,this):this._tTime},_proto2.addLabel=function(label,position){return this.labels[label]=_parsePosition(this,position),this},_proto2.removeLabel=function(label){return delete this.labels[label],this},_proto2.addPause=function(position,callback,params){var t=Tween.delayedCall(0,callback||_emptyFunc,params);return t.data="isPause",this._hasPause=1,_addToTimeline(this,t,_parsePosition(this,position))},_proto2.removePause=function(position){var child=this._first;for(position=_parsePosition(this,position);child;)child._start===position&&child.data==="isPause"&&_removeFromParent(child),child=child._next},_proto2.killTweensOf=function(targets,props2,onlyActive){for(var tweens=this.getTweensOf(targets,onlyActive),i=tweens.length;i--;)_overwritingTween!==tweens[i]&&tweens[i].kill(targets,props2);return this},_proto2.getTweensOf=function(targets,onlyActive){for(var a=[],parsedTargets=toArray(targets),child=this._first,isGlobalTime=_isNumber(onlyActive),children;child;)child instanceof Tween?_arrayContainsAny(child._targets,parsedTargets)&&(isGlobalTime?(!_overwritingTween||child._initted&&child._ts)&&child.globalTime(0)<=onlyActive&&child.globalTime(child.totalDuration())>onlyActive:!onlyActive||child.isActive())&&a.push(child):(children=child.getTweensOf(parsedTargets,onlyActive)).length&&a.push.apply(a,children),child=child._next;return a},_proto2.tweenTo=function(position,vars){vars=vars||{};var tl=this,endTime=_parsePosition(tl,position),_vars=vars,startAt=_vars.startAt,_onStart=_vars.onStart,onStartParams=_vars.onStartParams,immediateRender=_vars.immediateRender,initted,tween=Tween.to(tl,_setDefaults({ease:vars.ease||"none",lazy:!1,immediateRender:!1,time:endTime,overwrite:"auto",duration:vars.duration||Math.abs((endTime-(startAt&&"time"in startAt?startAt.time:tl._time))/tl.timeScale())||_tinyNum,onStart:function(){if(tl.pause(),!initted){var duration=vars.duration||Math.abs((endTime-(startAt&&"time"in startAt?startAt.time:tl._time))/tl.timeScale());tween._dur!==duration&&_setDuration(tween,duration,0,1).render(tween._time,!0,!0),initted=1}_onStart&&_onStart.apply(tween,onStartParams||[])}},vars));return immediateRender?tween.render(0):tween},_proto2.tweenFromTo=function(fromPosition,toPosition,vars){return this.tweenTo(toPosition,_setDefaults({startAt:{time:_parsePosition(this,fromPosition)}},vars))},_proto2.recent=function(){return this._recent},_proto2.nextLabel=function(afterTime){return afterTime===void 0&&(afterTime=this._time),_getLabelInDirection(this,_parsePosition(this,afterTime))},_proto2.previousLabel=function(beforeTime){return beforeTime===void 0&&(beforeTime=this._time),_getLabelInDirection(this,_parsePosition(this,beforeTime),1)},_proto2.currentLabel=function(value){return arguments.length?this.seek(value,!0):this.previousLabel(this._time+_tinyNum)},_proto2.shiftChildren=function(amount,adjustLabels,ignoreBeforeTime){ignoreBeforeTime===void 0&&(ignoreBeforeTime=0);for(var child=this._first,labels=this.labels,p;child;)child._start>=ignoreBeforeTime&&(child._start+=amount,child._end+=amount),child=child._next;if(adjustLabels)for(p in labels)labels[p]>=ignoreBeforeTime&&(labels[p]+=amount);return _uncache(this)},_proto2.invalidate=function(soft){var child=this._first;for(this._lock=0;child;)child.invalidate(soft),child=child._next;return _Animation.prototype.invalidate.call(this,soft)},_proto2.clear=function(includeLabels){includeLabels===void 0&&(includeLabels=!0);for(var child=this._first,next;child;)next=child._next,this.remove(child),child=next;return this._dp&&(this._time=this._tTime=this._pTime=0),includeLabels&&(this.labels={}),_uncache(this)},_proto2.totalDuration=function(value){var max2=0,self2=this,child=self2._last,prevStart=_bigNum,prev,start3,parent;if(arguments.length)return self2.timeScale((self2._repeat<0?self2.duration():self2.totalDuration())/(self2.reversed()?-value:value));if(self2._dirty){for(parent=self2.parent;child;)prev=child._prev,child._dirty&&child.totalDuration(),start3=child._start,start3>prevStart&&self2._sort&&child._ts&&!self2._lock?(self2._lock=1,_addToTimeline(self2,child,start3-child._delay,1)._lock=0):prevStart=start3,start3<0&&child._ts&&(max2-=start3,(!parent&&!self2._dp||parent&&parent.smoothChildTiming)&&(self2._start+=start3/self2._ts,self2._time-=start3,self2._tTime-=start3),self2.shiftChildren(-start3,!1,-1/0),prevStart=0),child._end>max2&&child._ts&&(max2=child._end),child=prev;_setDuration(self2,self2===_globalTimeline&&self2._time>max2?self2._time:max2,1,1),self2._dirty=0}return self2._tDur},Timeline2.updateRoot=function(time){if(_globalTimeline._ts&&(_lazySafeRender(_globalTimeline,_parentToChildTotalTime(time,_globalTimeline)),_lastRenderedFrame=_ticker.frame),_ticker.frame>=_nextGCFrame){_nextGCFrame+=_config.autoSleep||120;var child=_globalTimeline._first;if((!child||!child._ts)&&_config.autoSleep&&_ticker._listeners.length<2){for(;child&&!child._ts;)child=child._next;child||_ticker.sleep()}}},Timeline2}(Animation);_setDefaults(Timeline.prototype,{_lock:0,_hasPause:0,_forcing:0});var _addComplexStringPropTween=function(target,prop,start3,end2,setter,stringFilter,funcParam){var pt=new PropTween(this._pt,target,prop,0,1,_renderComplexString,null,setter),index=0,matchIndex=0,result,startNums,color,endNum,chunk,startNum,hasRandom,a;for(pt.b=start3,pt.e=end2,start3+="",end2+="",(hasRandom=~end2.indexOf("random("))&&(end2=_replaceRandom(end2)),stringFilter&&(a=[start3,end2],stringFilter(a,target,prop),start3=a[0],end2=a[1]),startNums=start3.match(_complexStringNumExp)||[];result=_complexStringNumExp.exec(end2);)endNum=result[0],chunk=end2.substring(index,result.index),color?color=(color+1)%5:chunk.substr(-5)==="rgba("&&(color=1),endNum!==startNums[matchIndex++]&&(startNum=parseFloat(startNums[matchIndex-1])||0,pt._pt={_next:pt._pt,p:chunk||matchIndex===1?chunk:",",s:startNum,c:endNum.charAt(1)==="="?_parseRelative(startNum,endNum)-startNum:parseFloat(endNum)-startNum,m:color&&color<4?Math.round:0},index=_complexStringNumExp.lastIndex);return pt.c=index<end2.length?end2.substring(index,end2.length):"",pt.fp=funcParam,(_relExp.test(end2)||hasRandom)&&(pt.e=0),this._pt=pt,pt},_addPropTween=function(target,prop,start3,end2,index,targets,modifier,stringFilter,funcParam,optional){_isFunction(end2)&&(end2=end2(index||0,target,targets));var currentValue=target[prop],parsedStart=start3!=="get"?start3:_isFunction(currentValue)?funcParam?target[prop.indexOf("set")||!_isFunction(target["get"+prop.substr(3)])?prop:"get"+prop.substr(3)](funcParam):target[prop]():currentValue,setter=_isFunction(currentValue)?funcParam?_setterFuncWithParam:_setterFunc:_setterPlain,pt;if(_isString(end2)&&(~end2.indexOf("random(")&&(end2=_replaceRandom(end2)),end2.charAt(1)==="="&&(pt=_parseRelative(parsedStart,end2)+(getUnit(parsedStart)||0),(pt||pt===0)&&(end2=pt))),!optional||parsedStart!==end2||_forceAllPropTweens)return!isNaN(parsedStart*end2)&&end2!==""?(pt=new PropTween(this._pt,target,prop,+parsedStart||0,end2-(parsedStart||0),typeof currentValue=="boolean"?_renderBoolean:_renderPlain,0,setter),funcParam&&(pt.fp=funcParam),modifier&&pt.modifier(modifier,this,target),this._pt=pt):(!currentValue&&!(prop in target)&&_missingPlugin(prop,end2),_addComplexStringPropTween.call(this,target,prop,parsedStart,end2,setter,stringFilter||_config.stringFilter,funcParam))},_processVars=function(vars,index,target,targets,tween){if(_isFunction(vars)&&(vars=_parseFuncOrString(vars,tween,index,target,targets)),!_isObject(vars)||vars.style&&vars.nodeType||_isArray(vars)||_isTypedArray(vars))return _isString(vars)?_parseFuncOrString(vars,tween,index,target,targets):vars;var copy={},p;for(p in vars)copy[p]=_parseFuncOrString(vars[p],tween,index,target,targets);return copy},_checkPlugin=function(property,vars,tween,index,target,targets){var plugin,pt,ptLookup,i;if(_plugins[property]&&(plugin=new _plugins[property]).init(target,plugin.rawVars?vars[property]:_processVars(vars[property],index,target,targets,tween),tween,index,targets)!==!1&&(tween._pt=pt=new PropTween(tween._pt,target,property,0,1,plugin.render,plugin,0,plugin.priority),tween!==_quickTween))for(ptLookup=tween._ptLookup[tween._targets.indexOf(target)],i=plugin._props.length;i--;)ptLookup[plugin._props[i]]=pt;return plugin},_overwritingTween,_forceAllPropTweens,_initTween=function _initTween2(tween,time,tTime){var vars=tween.vars,ease=vars.ease,startAt=vars.startAt,immediateRender=vars.immediateRender,lazy=vars.lazy,onUpdate=vars.onUpdate,runBackwards=vars.runBackwards,yoyoEase=vars.yoyoEase,keyframes=vars.keyframes,autoRevert=vars.autoRevert,dur=tween._dur,prevStartAt=tween._startAt,targets=tween._targets,parent=tween.parent,fullTargets=parent&&parent.data==="nested"?parent.vars.targets:targets,autoOverwrite=tween._overwrite==="auto"&&!_suppressOverwrites,tl=tween.timeline,cleanVars,i,p,pt,target,hasPriority,gsData,harness,plugin,ptLookup,index,harnessVars,overwritten;if(tl&&(!keyframes||!ease)&&(ease="none"),tween._ease=_parseEase(ease,_defaults.ease),tween._yEase=yoyoEase?_invertEase(_parseEase(yoyoEase===!0?ease:yoyoEase,_defaults.ease)):0,yoyoEase&&tween._yoyo&&!tween._repeat&&(yoyoEase=tween._yEase,tween._yEase=tween._ease,tween._ease=yoyoEase),tween._from=!tl&&!!vars.runBackwards,!tl||keyframes&&!vars.stagger){if(harness=targets[0]?_getCache(targets[0]).harness:0,harnessVars=harness&&vars[harness.prop],cleanVars=_copyExcluding(vars,_reservedProps),prevStartAt&&(prevStartAt._zTime<0&&prevStartAt.progress(1),time<0&&runBackwards&&immediateRender&&!autoRevert?prevStartAt.render(-1,!0):prevStartAt.revert(runBackwards&&dur?_revertConfigNoKill:_startAtRevertConfig),prevStartAt._lazy=0),startAt){if(_removeFromParent(tween._startAt=Tween.set(targets,_setDefaults({data:"isStart",overwrite:!1,parent,immediateRender:!0,lazy:!prevStartAt&&_isNotFalse(lazy),startAt:null,delay:0,onUpdate:onUpdate&&function(){return _callback(tween,"onUpdate")},stagger:0},startAt))),tween._startAt._dp=0,tween._startAt._sat=tween,time<0&&(_reverting||!immediateRender&&!autoRevert)&&tween._startAt.revert(_revertConfigNoKill),immediateRender&&dur&&time<=0&&tTime<=0){time&&(tween._zTime=time);return}}else if(runBackwards&&dur&&!prevStartAt){if(time&&(immediateRender=!1),p=_setDefaults({overwrite:!1,data:"isFromStart",lazy:immediateRender&&!prevStartAt&&_isNotFalse(lazy),immediateRender,stagger:0,parent},cleanVars),harnessVars&&(p[harness.prop]=harnessVars),_removeFromParent(tween._startAt=Tween.set(targets,p)),tween._startAt._dp=0,tween._startAt._sat=tween,time<0&&(_reverting?tween._startAt.revert(_revertConfigNoKill):tween._startAt.render(-1,!0)),tween._zTime=time,!immediateRender)_initTween2(tween._startAt,_tinyNum,_tinyNum);else if(!time)return}for(tween._pt=tween._ptCache=0,lazy=dur&&_isNotFalse(lazy)||lazy&&!dur,i=0;i<targets.length;i++){if(target=targets[i],gsData=target._gsap||_harness(targets)[i]._gsap,tween._ptLookup[i]=ptLookup={},_lazyLookup[gsData.id]&&_lazyTweens.length&&_lazyRender(),index=fullTargets===targets?i:fullTargets.indexOf(target),harness&&(plugin=new harness).init(target,harnessVars||cleanVars,tween,index,fullTargets)!==!1&&(tween._pt=pt=new PropTween(tween._pt,target,plugin.name,0,1,plugin.render,plugin,0,plugin.priority),plugin._props.forEach(function(name){ptLookup[name]=pt}),plugin.priority&&(hasPriority=1)),!harness||harnessVars)for(p in cleanVars)_plugins[p]&&(plugin=_checkPlugin(p,cleanVars,tween,index,target,fullTargets))?plugin.priority&&(hasPriority=1):ptLookup[p]=pt=_addPropTween.call(tween,target,p,"get",cleanVars[p],index,fullTargets,0,vars.stringFilter);tween._op&&tween._op[i]&&tween.kill(target,tween._op[i]),autoOverwrite&&tween._pt&&(_overwritingTween=tween,_globalTimeline.killTweensOf(target,ptLookup,tween.globalTime(time)),overwritten=!tween.parent,_overwritingTween=0),tween._pt&&lazy&&(_lazyLookup[gsData.id]=1)}hasPriority&&_sortPropTweensByPriority(tween),tween._onInit&&tween._onInit(tween)}tween._onUpdate=onUpdate,tween._initted=(!tween._op||tween._pt)&&!overwritten,keyframes&&time<=0&&tl.render(_bigNum,!0,!0)},_updatePropTweens=function(tween,property,value,start3,startIsRelative,ratio,time,skipRecursion){var ptCache=(tween._pt&&tween._ptCache||(tween._ptCache={}))[property],pt,rootPT,lookup,i;if(!ptCache)for(ptCache=tween._ptCache[property]=[],lookup=tween._ptLookup,i=tween._targets.length;i--;){if(pt=lookup[i][property],pt&&pt.d&&pt.d._pt)for(pt=pt.d._pt;pt&&pt.p!==property&&pt.fp!==property;)pt=pt._next;if(!pt)return _forceAllPropTweens=1,tween.vars[property]="+=0",_initTween(tween,time),_forceAllPropTweens=0,skipRecursion?_warn(property+" not eligible for reset"):1;ptCache.push(pt)}for(i=ptCache.length;i--;)rootPT=ptCache[i],pt=rootPT._pt||rootPT,pt.s=(start3||start3===0)&&!startIsRelative?start3:pt.s+(start3||0)+ratio*pt.c,pt.c=value-pt.s,rootPT.e&&(rootPT.e=_round(value)+getUnit(rootPT.e)),rootPT.b&&(rootPT.b=pt.s+getUnit(rootPT.b))},_addAliasesToVars=function(targets,vars){var harness=targets[0]?_getCache(targets[0]).harness:0,propertyAliases=harness&&harness.aliases,copy,p,i,aliases;if(!propertyAliases)return vars;copy=_merge({},vars);for(p in propertyAliases)if(p in copy)for(aliases=propertyAliases[p].split(","),i=aliases.length;i--;)copy[aliases[i]]=copy[p];return copy},_parseKeyframe=function(prop,obj,allProps,easeEach){var ease=obj.ease||easeEach||"power1.inOut",p,a;if(_isArray(obj))a=allProps[prop]||(allProps[prop]=[]),obj.forEach(function(value,i){return a.push({t:i/(obj.length-1)*100,v:value,e:ease})});else for(p in obj)a=allProps[p]||(allProps[p]=[]),p==="ease"||a.push({t:parseFloat(prop),v:obj[p],e:ease})},_parseFuncOrString=function(value,tween,i,target,targets){return _isFunction(value)?value.call(tween,i,target,targets):_isString(value)&&~value.indexOf("random(")?_replaceRandom(value):value},_staggerTweenProps=_callbackNames+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",_staggerPropsToSkip={};_forEachName(_staggerTweenProps+",id,stagger,delay,duration,paused,scrollTrigger",function(name){return _staggerPropsToSkip[name]=1});var Tween=function(_Animation2){_inheritsLoose(Tween2,_Animation2);function Tween2(targets,vars,position,skipInherit){var _this3;typeof vars=="number"&&(position.duration=vars,vars=position,position=null),_this3=_Animation2.call(this,skipInherit?vars:_inheritDefaults(vars))||this;var _this3$vars=_this3.vars,duration=_this3$vars.duration,delay2=_this3$vars.delay,immediateRender=_this3$vars.immediateRender,stagger=_this3$vars.stagger,overwrite=_this3$vars.overwrite,keyframes=_this3$vars.keyframes,defaults2=_this3$vars.defaults,scrollTrigger=_this3$vars.scrollTrigger,yoyoEase=_this3$vars.yoyoEase,parent=vars.parent||_globalTimeline,parsedTargets=(_isArray(targets)||_isTypedArray(targets)?_isNumber(targets[0]):"length"in vars)?[targets]:toArray(targets),tl,i,copy,l2,p,curTarget,staggerFunc,staggerVarsToMerge;if(_this3._targets=parsedTargets.length?_harness(parsedTargets):_warn("GSAP target "+targets+" not found. https://gsap.com",!_config.nullTargetWarn)||[],_this3._ptLookup=[],_this3._overwrite=overwrite,keyframes||stagger||_isFuncOrString(duration)||_isFuncOrString(delay2)){if(vars=_this3.vars,tl=_this3.timeline=new Timeline({data:"nested",defaults:defaults2||{},targets:parent&&parent.data==="nested"?parent.vars.targets:parsedTargets}),tl.kill(),tl.parent=tl._dp=_assertThisInitialized(_this3),tl._start=0,stagger||_isFuncOrString(duration)||_isFuncOrString(delay2)){if(l2=parsedTargets.length,staggerFunc=stagger&&distribute(stagger),_isObject(stagger))for(p in stagger)~_staggerTweenProps.indexOf(p)&&(staggerVarsToMerge||(staggerVarsToMerge={}),staggerVarsToMerge[p]=stagger[p]);for(i=0;i<l2;i++)copy=_copyExcluding(vars,_staggerPropsToSkip),copy.stagger=0,yoyoEase&&(copy.yoyoEase=yoyoEase),staggerVarsToMerge&&_merge(copy,staggerVarsToMerge),curTarget=parsedTargets[i],copy.duration=+_parseFuncOrString(duration,_assertThisInitialized(_this3),i,curTarget,parsedTargets),copy.delay=(+_parseFuncOrString(delay2,_assertThisInitialized(_this3),i,curTarget,parsedTargets)||0)-_this3._delay,!stagger&&l2===1&&copy.delay&&(_this3._delay=delay2=copy.delay,_this3._start+=delay2,copy.delay=0),tl.to(curTarget,copy,staggerFunc?staggerFunc(i,curTarget,parsedTargets):0),tl._ease=_easeMap.none;tl.duration()?duration=delay2=0:_this3.timeline=0}else if(keyframes){_inheritDefaults(_setDefaults(tl.vars.defaults,{ease:"none"})),tl._ease=_parseEase(keyframes.ease||vars.ease||"none");var time=0,a,kf,v;if(_isArray(keyframes))keyframes.forEach(function(frame){return tl.to(parsedTargets,frame,">")}),tl.duration();else{copy={};for(p in keyframes)p==="ease"||p==="easeEach"||_parseKeyframe(p,keyframes[p],copy,keyframes.easeEach);for(p in copy)for(a=copy[p].sort(function(a2,b){return a2.t-b.t}),time=0,i=0;i<a.length;i++)kf=a[i],v={ease:kf.e,duration:(kf.t-(i?a[i-1].t:0))/100*duration},v[p]=kf.v,tl.to(parsedTargets,v,time),time+=v.duration;tl.duration()<duration&&tl.to({},{duration:duration-tl.duration()})}}duration||_this3.duration(duration=tl.duration())}else _this3.timeline=0;return overwrite===!0&&!_suppressOverwrites&&(_overwritingTween=_assertThisInitialized(_this3),_globalTimeline.killTweensOf(parsedTargets),_overwritingTween=0),_addToTimeline(parent,_assertThisInitialized(_this3),position),vars.reversed&&_this3.reverse(),vars.paused&&_this3.paused(!0),(immediateRender||!duration&&!keyframes&&_this3._start===_roundPrecise(parent._time)&&_isNotFalse(immediateRender)&&_hasNoPausedAncestors(_assertThisInitialized(_this3))&&parent.data!=="nested")&&(_this3._tTime=-_tinyNum,_this3.render(Math.max(0,-delay2)||0)),scrollTrigger&&_scrollTrigger(_assertThisInitialized(_this3),scrollTrigger),_this3}var _proto3=Tween2.prototype;return _proto3.render=function(totalTime,suppressEvents,force){var prevTime=this._time,tDur=this._tDur,dur=this._dur,isNegative=totalTime<0,tTime=totalTime>tDur-_tinyNum&&!isNegative?tDur:totalTime<_tinyNum?0:totalTime,time,pt,iteration,cycleDuration,prevIteration,isYoyo,ratio,timeline2,yoyoEase;if(!dur)_renderZeroDurationTween(this,totalTime,suppressEvents,force);else if(tTime!==this._tTime||!totalTime||force||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==isNegative){if(time=tTime,timeline2=this.timeline,this._repeat){if(cycleDuration=dur+this._rDelay,this._repeat<-1&&isNegative)return this.totalTime(cycleDuration*100+totalTime,suppressEvents,force);if(time=_roundPrecise(tTime%cycleDuration),tTime===tDur?(iteration=this._repeat,time=dur):(iteration=~~(tTime/cycleDuration),iteration&&iteration===_roundPrecise(tTime/cycleDuration)&&(time=dur,iteration--),time>dur&&(time=dur)),isYoyo=this._yoyo&&iteration&1,isYoyo&&(yoyoEase=this._yEase,time=dur-time),prevIteration=_animationCycle(this._tTime,cycleDuration),time===prevTime&&!force&&this._initted&&iteration===prevIteration)return this._tTime=tTime,this;iteration!==prevIteration&&(timeline2&&this._yEase&&_propagateYoyoEase(timeline2,isYoyo),this.vars.repeatRefresh&&!isYoyo&&!this._lock&&this._time!==cycleDuration&&this._initted&&(this._lock=force=1,this.render(_roundPrecise(cycleDuration*iteration),!0).invalidate()._lock=0))}if(!this._initted){if(_attemptInitTween(this,isNegative?totalTime:time,force,suppressEvents,tTime))return this._tTime=0,this;if(prevTime!==this._time&&!(force&&this.vars.repeatRefresh&&iteration!==prevIteration))return this;if(dur!==this._dur)return this.render(totalTime,suppressEvents,force)}if(this._tTime=tTime,this._time=time,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=ratio=(yoyoEase||this._ease)(time/dur),this._from&&(this.ratio=ratio=1-ratio),time&&!prevTime&&!suppressEvents&&!iteration&&(_callback(this,"onStart"),this._tTime!==tTime))return this;for(pt=this._pt;pt;)pt.r(ratio,pt.d),pt=pt._next;timeline2&&timeline2.render(totalTime<0?totalTime:timeline2._dur*timeline2._ease(time/this._dur),suppressEvents,force)||this._startAt&&(this._zTime=totalTime),this._onUpdate&&!suppressEvents&&(isNegative&&_rewindStartAt(this,totalTime,suppressEvents,force),_callback(this,"onUpdate")),this._repeat&&iteration!==prevIteration&&this.vars.onRepeat&&!suppressEvents&&this.parent&&_callback(this,"onRepeat"),(tTime===this._tDur||!tTime)&&this._tTime===tTime&&(isNegative&&!this._onUpdate&&_rewindStartAt(this,totalTime,!0,!0),(totalTime||!dur)&&(tTime===this._tDur&&this._ts>0||!tTime&&this._ts<0)&&_removeFromParent(this,1),!suppressEvents&&!(isNegative&&!prevTime)&&(tTime||prevTime||isYoyo)&&(_callback(this,tTime===tDur?"onComplete":"onReverseComplete",!0),this._prom&&!(tTime<tDur&&this.timeScale()>0)&&this._prom()))}return this},_proto3.targets=function(){return this._targets},_proto3.invalidate=function(soft){return(!soft||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(soft),_Animation2.prototype.invalidate.call(this,soft)},_proto3.resetTo=function(property,value,start3,startIsRelative,skipRecursion){_tickerActive||_ticker.wake(),this._ts||this.play();var time=Math.min(this._dur,(this._dp._time-this._start)*this._ts),ratio;return this._initted||_initTween(this,time),ratio=this._ease(time/this._dur),_updatePropTweens(this,property,value,start3,startIsRelative,ratio,time,skipRecursion)?this.resetTo(property,value,start3,startIsRelative,1):(_alignPlayhead(this,0),this.parent||_addLinkedListItem(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},_proto3.kill=function(targets,vars){if(vars===void 0&&(vars="all"),!targets&&(!vars||vars==="all"))return this._lazy=this._pt=0,this.parent?_interrupt(this):this;if(this.timeline){var tDur=this.timeline.totalDuration();return this.timeline.killTweensOf(targets,vars,_overwritingTween&&_overwritingTween.vars.overwrite!==!0)._first||_interrupt(this),this.parent&&tDur!==this.timeline.totalDuration()&&_setDuration(this,this._dur*this.timeline._tDur/tDur,0,1),this}var parsedTargets=this._targets,killingTargets=targets?toArray(targets):parsedTargets,propTweenLookup=this._ptLookup,firstPT=this._pt,overwrittenProps,curLookup,curOverwriteProps,props2,p,pt,i;if((!vars||vars==="all")&&_arraysMatch(parsedTargets,killingTargets))return vars==="all"&&(this._pt=0),_interrupt(this);for(overwrittenProps=this._op=this._op||[],vars!=="all"&&(_isString(vars)&&(p={},_forEachName(vars,function(name){return p[name]=1}),vars=p),vars=_addAliasesToVars(parsedTargets,vars)),i=parsedTargets.length;i--;)if(~killingTargets.indexOf(parsedTargets[i])){curLookup=propTweenLookup[i],vars==="all"?(overwrittenProps[i]=vars,props2=curLookup,curOverwriteProps={}):(curOverwriteProps=overwrittenProps[i]=overwrittenProps[i]||{},props2=vars);for(p in props2)pt=curLookup&&curLookup[p],pt&&((!("kill"in pt.d)||pt.d.kill(p)===!0)&&_removeLinkedListItem(this,pt,"_pt"),delete curLookup[p]),curOverwriteProps!=="all"&&(curOverwriteProps[p]=1)}return this._initted&&!this._pt&&firstPT&&_interrupt(this),this},Tween2.to=function(targets,vars){return new Tween2(targets,vars,arguments[2])},Tween2.from=function(targets,vars){return _createTweenType(1,arguments)},Tween2.delayedCall=function(delay2,callback,params,scope){return new Tween2(callback,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:delay2,onComplete:callback,onReverseComplete:callback,onCompleteParams:params,onReverseCompleteParams:params,callbackScope:scope})},Tween2.fromTo=function(targets,fromVars,toVars){return _createTweenType(2,arguments)},Tween2.set=function(targets,vars){return vars.duration=0,vars.repeatDelay||(vars.repeat=0),new Tween2(targets,vars)},Tween2.killTweensOf=function(targets,props2,onlyActive){return _globalTimeline.killTweensOf(targets,props2,onlyActive)},Tween2}(Animation);_setDefaults(Tween.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});_forEachName("staggerTo,staggerFrom,staggerFromTo",function(name){Tween[name]=function(){var tl=new Timeline,params=_slice.call(arguments,0);return params.splice(name==="staggerFromTo"?5:4,0,0),tl[name].apply(tl,params)}});var _setterPlain=function(target,property,value){return target[property]=value},_setterFunc=function(target,property,value){return target[property](value)},_setterFuncWithParam=function(target,property,value,data){return target[property](data.fp,value)},_setterAttribute=function(target,property,value){return target.setAttribute(property,value)},_getSetter=function(target,property){return _isFunction(target[property])?_setterFunc:_isUndefined(target[property])&&target.setAttribute?_setterAttribute:_setterPlain},_renderPlain=function(ratio,data){return data.set(data.t,data.p,Math.round((data.s+data.c*ratio)*1e6)/1e6,data)},_renderBoolean=function(ratio,data){return data.set(data.t,data.p,!!(data.s+data.c*ratio),data)},_renderComplexString=function(ratio,data){var pt=data._pt,s2="";if(!ratio&&data.b)s2=data.b;else if(ratio===1&&data.e)s2=data.e;else{for(;pt;)s2=pt.p+(pt.m?pt.m(pt.s+pt.c*ratio):Math.round((pt.s+pt.c*ratio)*1e4)/1e4)+s2,pt=pt._next;s2+=data.c}data.set(data.t,data.p,s2,data)},_renderPropTweens=function(ratio,data){for(var pt=data._pt;pt;)pt.r(ratio,pt.d),pt=pt._next},_addPluginModifier=function(modifier,tween,target,property){for(var pt=this._pt,next;pt;)next=pt._next,pt.p===property&&pt.modifier(modifier,tween,target),pt=next},_killPropTweensOf=function(property){for(var pt=this._pt,hasNonDependentRemaining,next;pt;)next=pt._next,pt.p===property&&!pt.op||pt.op===property?_removeLinkedListItem(this,pt,"_pt"):pt.dep||(hasNonDependentRemaining=1),pt=next;return!hasNonDependentRemaining},_setterWithModifier=function(target,property,value,data){data.mSet(target,property,data.m.call(data.tween,value,data.mt),data)},_sortPropTweensByPriority=function(parent){for(var pt=parent._pt,next,pt2,first2,last2;pt;){for(next=pt._next,pt2=first2;pt2&&pt2.pr>pt.pr;)pt2=pt2._next;(pt._prev=pt2?pt2._prev:last2)?pt._prev._next=pt:first2=pt,(pt._next=pt2)?pt2._prev=pt:last2=pt,pt=next}parent._pt=first2},PropTween=function(){function PropTween2(next,target,prop,start3,change,renderer,data,setter,priority){this.t=target,this.s=start3,this.c=change,this.p=prop,this.r=renderer||_renderPlain,this.d=data||this,this.set=setter||_setterPlain,this.pr=priority||0,this._next=next,next&&(next._prev=this)}var _proto4=PropTween2.prototype;return _proto4.modifier=function(func,tween,target){this.mSet=this.mSet||this.set,this.set=_setterWithModifier,this.m=func,this.mt=target,this.tween=tween},PropTween2}();_forEachName(_callbackNames+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(name){return _reservedProps[name]=1});_globals.TweenMax=_globals.TweenLite=Tween;_globals.TimelineLite=_globals.TimelineMax=Timeline;_globalTimeline=new Timeline({sortChildren:!1,defaults:_defaults,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});_config.stringFilter=_colorStringFilter;var _media=[],_listeners={},_emptyArray=[],_lastMediaTime=0,_contextID=0,_dispatch=function(type){return(_listeners[type]||_emptyArray).map(function(f){return f()})},_onMediaChange=function(){var time=Date.now(),matches=[];time-_lastMediaTime>2&&(_dispatch("matchMediaInit"),_media.forEach(function(c){var queries=c.queries,conditions=c.conditions,match2,p,anyMatch,toggled;for(p in queries)match2=_win.matchMedia(queries[p]).matches,match2&&(anyMatch=1),match2!==conditions[p]&&(conditions[p]=match2,toggled=1);toggled&&(c.revert(),anyMatch&&matches.push(c))}),_dispatch("matchMediaRevert"),matches.forEach(function(c){return c.onMatch(c,function(func){return c.add(null,func)})}),_lastMediaTime=time,_dispatch("matchMedia"))},Context=function(){function Context2(func,scope){this.selector=scope&&selector(scope),this.data=[],this._r=[],this.isReverted=!1,this.id=_contextID++,func&&this.add(func)}var _proto5=Context2.prototype;return _proto5.add=function(name,func,scope){_isFunction(name)&&(scope=func,func=name,name=_isFunction);var self2=this,f=function(){var prev=_context,prevSelector=self2.selector,result;return prev&&prev!==self2&&prev.data.push(self2),scope&&(self2.selector=selector(scope)),_context=self2,result=func.apply(self2,arguments),_isFunction(result)&&self2._r.push(result),_context=prev,self2.selector=prevSelector,self2.isReverted=!1,result};return self2.last=f,name===_isFunction?f(self2,function(func2){return self2.add(null,func2)}):name?self2[name]=f:f},_proto5.ignore=function(func){var prev=_context;_context=null,func(this),_context=prev},_proto5.getTweens=function(){var a=[];return this.data.forEach(function(e){return e instanceof Context2?a.push.apply(a,e.getTweens()):e instanceof Tween&&!(e.parent&&e.parent.data==="nested")&&a.push(e)}),a},_proto5.clear=function(){this._r.length=this.data.length=0},_proto5.kill=function(revert,matchMedia2){var _this4=this;if(revert?function(){for(var tweens=_this4.getTweens(),i2=_this4.data.length,t;i2--;)t=_this4.data[i2],t.data==="isFlip"&&(t.revert(),t.getChildren(!0,!0,!1).forEach(function(tween){return tweens.splice(tweens.indexOf(tween),1)}));for(tweens.map(function(t2){return{g:t2._dur||t2._delay||t2._sat&&!t2._sat.vars.immediateRender?t2.globalTime(0):-1/0,t:t2}}).sort(function(a,b){return b.g-a.g||-1/0}).forEach(function(o){return o.t.revert(revert)}),i2=_this4.data.length;i2--;)t=_this4.data[i2],t instanceof Timeline?t.data!=="nested"&&(t.scrollTrigger&&t.scrollTrigger.revert(),t.kill()):!(t instanceof Tween)&&t.revert&&t.revert(revert);_this4._r.forEach(function(f){return f(revert,_this4)}),_this4.isReverted=!0}():this.data.forEach(function(e){return e.kill&&e.kill()}),this.clear(),matchMedia2)for(var i=_media.length;i--;)_media[i].id===this.id&&_media.splice(i,1)},_proto5.revert=function(config3){this.kill(config3||{})},Context2}(),MatchMedia=function(){function MatchMedia2(scope){this.contexts=[],this.scope=scope,_context&&_context.data.push(this)}var _proto6=MatchMedia2.prototype;return _proto6.add=function(conditions,func,scope){_isObject(conditions)||(conditions={matches:conditions});var context3=new Context(0,scope||this.scope),cond=context3.conditions={},mq,p,active;_context&&!context3.selector&&(context3.selector=_context.selector),this.contexts.push(context3),func=context3.add("onMatch",func),context3.queries=conditions;for(p in conditions)p==="all"?active=1:(mq=_win.matchMedia(conditions[p]),mq&&(_media.indexOf(context3)<0&&_media.push(context3),(cond[p]=mq.matches)&&(active=1),mq.addListener?mq.addListener(_onMediaChange):mq.addEventListener("change",_onMediaChange)));return active&&func(context3,function(f){return context3.add(null,f)}),this},_proto6.revert=function(config3){this.kill(config3||{})},_proto6.kill=function(revert){this.contexts.forEach(function(c){return c.kill(revert,!0)})},MatchMedia2}(),_gsap={registerPlugin:function(){for(var _len2=arguments.length,args=new Array(_len2),_key2=0;_key2<_len2;_key2++)args[_key2]=arguments[_key2];args.forEach(function(config3){return _createPlugin(config3)})},timeline:function(vars){return new Timeline(vars)},getTweensOf:function(targets,onlyActive){return _globalTimeline.getTweensOf(targets,onlyActive)},getProperty:function(target,property,unit,uncache){_isString(target)&&(target=toArray(target)[0]);var getter=_getCache(target||{}).get,format2=unit?_passThrough:_numericIfPossible;return unit==="native"&&(unit=""),target&&(property?format2((_plugins[property]&&_plugins[property].get||getter)(target,property,unit,uncache)):function(property2,unit2,uncache2){return format2((_plugins[property2]&&_plugins[property2].get||getter)(target,property2,unit2,uncache2))})},quickSetter:function(target,property,unit){if(target=toArray(target),target.length>1){var setters=target.map(function(t){return gsap.quickSetter(t,property,unit)}),l2=setters.length;return function(value){for(var i=l2;i--;)setters[i](value)}}target=target[0]||{};var Plugin=_plugins[property],cache=_getCache(target),p=cache.harness&&(cache.harness.aliases||{})[property]||property,setter=Plugin?function(value){var p2=new Plugin;_quickTween._pt=0,p2.init(target,unit?value+unit:value,_quickTween,0,[target]),p2.render(1,p2),_quickTween._pt&&_renderPropTweens(1,_quickTween)}:cache.set(target,p);return Plugin?setter:function(value){return setter(target,p,unit?value+unit:value,cache,1)}},quickTo:function(target,property,vars){var _merge22,tween=gsap.to(target,_merge((_merge22={},_merge22[property]="+=0.1",_merge22.paused=!0,_merge22),vars||{})),func=function(value,start3,startIsRelative){return tween.resetTo(property,value,start3,startIsRelative)};return func.tween=tween,func},isTweening:function(targets){return _globalTimeline.getTweensOf(targets,!0).length>0},defaults:function(value){return value&&value.ease&&(value.ease=_parseEase(value.ease,_defaults.ease)),_mergeDeep(_defaults,value||{})},config:function(value){return _mergeDeep(_config,value||{})},registerEffect:function(_ref3){var name=_ref3.name,effect6=_ref3.effect,plugins=_ref3.plugins,defaults2=_ref3.defaults,extendTimeline=_ref3.extendTimeline;(plugins||"").split(",").forEach(function(pluginName){return pluginName&&!_plugins[pluginName]&&!_globals[pluginName]&&_warn(name+" effect requires "+pluginName+" plugin.")}),_effects[name]=function(targets,vars,tl){return effect6(toArray(targets),_setDefaults(vars||{},defaults2),tl)},extendTimeline&&(Timeline.prototype[name]=function(targets,vars,position){return this.add(_effects[name](targets,_isObject(vars)?vars:(position=vars)&&{},this),position)})},registerEase:function(name,ease){_easeMap[name]=_parseEase(ease)},parseEase:function(ease,defaultEase){return arguments.length?_parseEase(ease,defaultEase):_easeMap},getById:function(id){return _globalTimeline.getById(id)},exportRoot:function(vars,includeDelayedCalls){vars===void 0&&(vars={});var tl=new Timeline(vars),child,next;for(tl.smoothChildTiming=_isNotFalse(vars.smoothChildTiming),_globalTimeline.remove(tl),tl._dp=0,tl._time=tl._tTime=_globalTimeline._time,child=_globalTimeline._first;child;)next=child._next,(includeDelayedCalls||!(!child._dur&&child instanceof Tween&&child.vars.onComplete===child._targets[0]))&&_addToTimeline(tl,child,child._start-child._delay),child=next;return _addToTimeline(_globalTimeline,tl,0),tl},context:function(func,scope){return func?new Context(func,scope):_context},matchMedia:function(scope){return new MatchMedia(scope)},matchMediaRefresh:function(){return _media.forEach(function(c){var cond=c.conditions,found,p;for(p in cond)cond[p]&&(cond[p]=!1,found=1);found&&c.revert()})||_onMediaChange()},addEventListener:function(type,callback){var a=_listeners[type]||(_listeners[type]=[]);~a.indexOf(callback)||a.push(callback)},removeEventListener:function(type,callback){var a=_listeners[type],i=a&&a.indexOf(callback);i>=0&&a.splice(i,1)},utils:{wrap,wrapYoyo,distribute,random,snap,normalize,getUnit,clamp,splitColor,toArray,selector,mapRange,pipe,unitize,interpolate,shuffle},install:_install,effects:_effects,ticker:_ticker,updateRoot:Timeline.updateRoot,plugins:_plugins,globalTimeline:_globalTimeline,core:{PropTween,globals:_addGlobal,Tween,Timeline,Animation,getCache:_getCache,_removeLinkedListItem,reverting:function(){return _reverting},context:function(toAdd){return toAdd&&_context&&(_context.data.push(toAdd),toAdd._ctx=_context),_context},suppressOverwrites:function(value){return _suppressOverwrites=value}}};_forEachName("to,from,fromTo,delayedCall,set,killTweensOf",function(name){return _gsap[name]=Tween[name]});_ticker.add(Timeline.updateRoot);_quickTween=_gsap.to({},{duration:0});var _getPluginPropTween=function(plugin,prop){for(var pt=plugin._pt;pt&&pt.p!==prop&&pt.op!==prop&&pt.fp!==prop;)pt=pt._next;return pt},_addModifiers=function(tween,modifiers){var targets=tween._targets,p,i,pt;for(p in modifiers)for(i=targets.length;i--;)pt=tween._ptLookup[i][p],pt&&(pt=pt.d)&&(pt._pt&&(pt=_getPluginPropTween(pt,p)),pt&&pt.modifier&&pt.modifier(modifiers[p],tween,targets[i],p))},_buildModifierPlugin=function(name,modifier){return{name,rawVars:1,init:function(target,vars,tween){tween._onInit=function(tween2){var temp,p;if(_isString(vars)&&(temp={},_forEachName(vars,function(name2){return temp[name2]=1}),vars=temp),modifier){temp={};for(p in vars)temp[p]=modifier(vars[p]);vars=temp}_addModifiers(tween2,vars)}}}},gsap=_gsap.registerPlugin({name:"attr",init:function(target,vars,tween,index,targets){var p,pt,v;this.tween=tween;for(p in vars)v=target.getAttribute(p)||"",pt=this.add(target,"setAttribute",(v||0)+"",vars[p],index,targets,0,0,p),pt.op=p,pt.b=v,this._props.push(p)},render:function(ratio,data){for(var pt=data._pt;pt;)_reverting?pt.set(pt.t,pt.p,pt.b,pt):pt.r(ratio,pt.d),pt=pt._next}},{name:"endArray",init:function(target,value){for(var i=value.length;i--;)this.add(target,i,target[i]||0,value[i],0,0,0,0,0,1)}},_buildModifierPlugin("roundProps",_roundModifier),_buildModifierPlugin("modifiers"),_buildModifierPlugin("snap",snap))||_gsap;Tween.version=Timeline.version=gsap.version="3.12.5";_coreReady=1;_windowExists()&&_wake();var Power0=_easeMap.Power0,Power1=_easeMap.Power1,Power2=_easeMap.Power2,Power3=_easeMap.Power3,Power4=_easeMap.Power4,Linear=_easeMap.Linear,Quad=_easeMap.Quad,Cubic=_easeMap.Cubic,Quart=_easeMap.Quart,Quint=_easeMap.Quint,Strong=_easeMap.Strong,Elastic=_easeMap.Elastic,Back=_easeMap.Back,SteppedEase=_easeMap.SteppedEase,Bounce=_easeMap.Bounce,Sine=_easeMap.Sine,Expo=_easeMap.Expo,Circ=_easeMap.Circ;var _win2,_doc2,_docElement,_pluginInitted,_tempDiv,_tempDivStyler,_recentSetterPlugin,_reverting2,_windowExists3=function(){return typeof window<"u"},_transformProps={},_RAD2DEG=180/Math.PI,_DEG2RAD=Math.PI/180,_atan2=Math.atan2,_bigNum2=1e8,_capsExp=/([A-Z])/g,_horizontalExp=/(left|right|width|margin|padding|x)/i,_complexExp=/[\s,\(]\S/,_propertyAliases={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},_renderCSSProp=function(ratio,data){return data.set(data.t,data.p,Math.round((data.s+data.c*ratio)*1e4)/1e4+data.u,data)},_renderPropWithEnd=function(ratio,data){return data.set(data.t,data.p,ratio===1?data.e:Math.round((data.s+data.c*ratio)*1e4)/1e4+data.u,data)},_renderCSSPropWithBeginning=function(ratio,data){return data.set(data.t,data.p,ratio?Math.round((data.s+data.c*ratio)*1e4)/1e4+data.u:data.b,data)},_renderRoundedCSSProp=function(ratio,data){var value=data.s+data.c*ratio;data.set(data.t,data.p,~~(value+(value<0?-.5:.5))+data.u,data)},_renderNonTweeningValue=function(ratio,data){return data.set(data.t,data.p,ratio?data.e:data.b,data)},_renderNonTweeningValueOnlyAtEnd=function(ratio,data){return data.set(data.t,data.p,ratio!==1?data.b:data.e,data)},_setterCSSStyle=function(target,property,value){return target.style[property]=value},_setterCSSProp=function(target,property,value){return target.style.setProperty(property,value)},_setterTransform=function(target,property,value){return target._gsap[property]=value},_setterScale=function(target,property,value){return target._gsap.scaleX=target._gsap.scaleY=value},_setterScaleWithRender=function(target,property,value,data,ratio){var cache=target._gsap;cache.scaleX=cache.scaleY=value,cache.renderTransform(ratio,cache)},_setterTransformWithRender=function(target,property,value,data,ratio){var cache=target._gsap;cache[property]=value,cache.renderTransform(ratio,cache)},_transformProp="transform",_transformOriginProp=_transformProp+"Origin",_saveStyle=function _saveStyle2(property,isNotCSS){var _this=this,target=this.target,style2=target.style,cache=target._gsap;if(property in _transformProps&&style2){if(this.tfm=this.tfm||{},property!=="transform")property=_propertyAliases[property]||property,~property.indexOf(",")?property.split(",").forEach(function(a){return _this.tfm[a]=_get(target,a)}):this.tfm[property]=cache.x?cache[property]:_get(target,property),property===_transformOriginProp&&(this.tfm.zOrigin=cache.zOrigin);else return _propertyAliases.transform.split(",").forEach(function(p){return _saveStyle2.call(_this,p,isNotCSS)});if(this.props.indexOf(_transformProp)>=0)return;cache.svg&&(this.svgo=target.getAttribute("data-svg-origin"),this.props.push(_transformOriginProp,isNotCSS,"")),property=_transformProp}(style2||isNotCSS)&&this.props.push(property,isNotCSS,style2[property])},_removeIndependentTransforms=function(style2){style2.translate&&(style2.removeProperty("translate"),style2.removeProperty("scale"),style2.removeProperty("rotate"))},_revertStyle=function(){var props2=this.props,target=this.target,style2=target.style,cache=target._gsap,i,p;for(i=0;i<props2.length;i+=3)props2[i+1]?target[props2[i]]=props2[i+2]:props2[i+2]?style2[props2[i]]=props2[i+2]:style2.removeProperty(props2[i].substr(0,2)==="--"?props2[i]:props2[i].replace(_capsExp,"-$1").toLowerCase());if(this.tfm){for(p in this.tfm)cache[p]=this.tfm[p];cache.svg&&(cache.renderTransform(),target.setAttribute("data-svg-origin",this.svgo||"")),i=_reverting2(),(!i||!i.isStart)&&!style2[_transformProp]&&(_removeIndependentTransforms(style2),cache.zOrigin&&style2[_transformOriginProp]&&(style2[_transformOriginProp]+=" "+cache.zOrigin+"px",cache.zOrigin=0,cache.renderTransform()),cache.uncache=1)}},_getStyleSaver=function(target,properties){var saver={target,props:[],revert:_revertStyle,save:_saveStyle};return target._gsap||gsap.core.getCache(target),properties&&properties.split(",").forEach(function(p){return saver.save(p)}),saver},_supports3D,_createElement=function(type,ns){var e=_doc2.createElementNS?_doc2.createElementNS((ns||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),type):_doc2.createElement(type);return e&&e.style?e:_doc2.createElement(type)},_getComputedProperty=function _getComputedProperty2(target,property,skipPrefixFallback){var cs=getComputedStyle(target);return cs[property]||cs.getPropertyValue(property.replace(_capsExp,"-$1").toLowerCase())||cs.getPropertyValue(property)||!skipPrefixFallback&&_getComputedProperty2(target,_checkPropPrefix(property)||property,1)||""},_prefixes="O,Moz,ms,Ms,Webkit".split(","),_checkPropPrefix=function(property,element,preferPrefix){var e=element||_tempDiv,s2=e.style,i=5;if(property in s2&&!preferPrefix)return property;for(property=property.charAt(0).toUpperCase()+property.substr(1);i--&&!(_prefixes[i]+property in s2););return i<0?null:(i===3?"ms":i>=0?_prefixes[i]:"")+property},_initCore=function(){_windowExists3()&&window.document&&(_win2=window,_doc2=_win2.document,_docElement=_doc2.documentElement,_tempDiv=_createElement("div")||{style:{}},_tempDivStyler=_createElement("div"),_transformProp=_checkPropPrefix(_transformProp),_transformOriginProp=_transformProp+"Origin",_tempDiv.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",_supports3D=!!_checkPropPrefix("perspective"),_reverting2=gsap.core.reverting,_pluginInitted=1)},_getBBoxHack=function _getBBoxHack2(swapIfPossible){var svg=_createElement("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),oldParent=this.parentNode,oldSibling=this.nextSibling,oldCSS=this.style.cssText,bbox;if(_docElement.appendChild(svg),svg.appendChild(this),this.style.display="block",swapIfPossible)try{bbox=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=_getBBoxHack2}catch{}else this._gsapBBox&&(bbox=this._gsapBBox());return oldParent&&(oldSibling?oldParent.insertBefore(this,oldSibling):oldParent.appendChild(this)),_docElement.removeChild(svg),this.style.cssText=oldCSS,bbox},_getAttributeFallbacks=function(target,attributesArray){for(var i=attributesArray.length;i--;)if(target.hasAttribute(attributesArray[i]))return target.getAttribute(attributesArray[i])},_getBBox=function(target){var bounds;try{bounds=target.getBBox()}catch{bounds=_getBBoxHack.call(target,!0)}return bounds&&(bounds.width||bounds.height)||target.getBBox===_getBBoxHack||(bounds=_getBBoxHack.call(target,!0)),bounds&&!bounds.width&&!bounds.x&&!bounds.y?{x:+_getAttributeFallbacks(target,["x","cx","x1"])||0,y:+_getAttributeFallbacks(target,["y","cy","y1"])||0,width:0,height:0}:bounds},_isSVG=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&_getBBox(e))},_removeProperty=function(target,property){if(property){var style2=target.style,first2Chars;property in _transformProps&&property!==_transformOriginProp&&(property=_transformProp),style2.removeProperty?(first2Chars=property.substr(0,2),(first2Chars==="ms"||property.substr(0,6)==="webkit")&&(property="-"+property),style2.removeProperty(first2Chars==="--"?property:property.replace(_capsExp,"-$1").toLowerCase())):style2.removeAttribute(property)}},_addNonTweeningPT=function(plugin,target,property,beginning,end2,onlySetAtEnd){var pt=new PropTween(plugin._pt,target,property,0,1,onlySetAtEnd?_renderNonTweeningValueOnlyAtEnd:_renderNonTweeningValue);return plugin._pt=pt,pt.b=beginning,pt.e=end2,plugin._props.push(property),pt},_nonConvertibleUnits={deg:1,rad:1,turn:1},_nonStandardLayouts={grid:1,flex:1},_convertToUnit=function _convertToUnit2(target,property,value,unit){var curValue=parseFloat(value)||0,curUnit=(value+"").trim().substr((curValue+"").length)||"px",style2=_tempDiv.style,horizontal=_horizontalExp.test(property),isRootSVG=target.tagName.toLowerCase()==="svg",measureProperty=(isRootSVG?"client":"offset")+(horizontal?"Width":"Height"),amount=100,toPixels=unit==="px",toPercent=unit==="%",px,parent,cache,isSVG;if(unit===curUnit||!curValue||_nonConvertibleUnits[unit]||_nonConvertibleUnits[curUnit])return curValue;if(curUnit!=="px"&&!toPixels&&(curValue=_convertToUnit2(target,property,value,"px")),isSVG=target.getCTM&&_isSVG(target),(toPercent||curUnit==="%")&&(_transformProps[property]||~property.indexOf("adius")))return px=isSVG?target.getBBox()[horizontal?"width":"height"]:target[measureProperty],_round(toPercent?curValue/px*amount:curValue/100*px);if(style2[horizontal?"width":"height"]=amount+(toPixels?curUnit:unit),parent=~property.indexOf("adius")||unit==="em"&&target.appendChild&&!isRootSVG?target:target.parentNode,isSVG&&(parent=(target.ownerSVGElement||{}).parentNode),(!parent||parent===_doc2||!parent.appendChild)&&(parent=_doc2.body),cache=parent._gsap,cache&&toPercent&&cache.width&&horizontal&&cache.time===_ticker.time&&!cache.uncache)return _round(curValue/cache.width*amount);if(toPercent&&(property==="height"||property==="width")){var v=target.style[property];target.style[property]=amount+unit,px=target[measureProperty],v?target.style[property]=v:_removeProperty(target,property)}else(toPercent||curUnit==="%")&&!_nonStandardLayouts[_getComputedProperty(parent,"display")]&&(style2.position=_getComputedProperty(target,"position")),parent===target&&(style2.position="static"),parent.appendChild(_tempDiv),px=_tempDiv[measureProperty],parent.removeChild(_tempDiv),style2.position="absolute";return horizontal&&toPercent&&(cache=_getCache(parent),cache.time=_ticker.time,cache.width=parent[measureProperty]),_round(toPixels?px*curValue/amount:px&&curValue?amount/px*curValue:0)},_get=function(target,property,unit,uncache){var value;return _pluginInitted||_initCore(),property in _propertyAliases&&property!=="transform"&&(property=_propertyAliases[property],~property.indexOf(",")&&(property=property.split(",")[0])),_transformProps[property]&&property!=="transform"?(value=_parseTransform(target,uncache),value=property!=="transformOrigin"?value[property]:value.svg?value.origin:_firstTwoOnly(_getComputedProperty(target,_transformOriginProp))+" "+value.zOrigin+"px"):(value=target.style[property],(!value||value==="auto"||uncache||~(value+"").indexOf("calc("))&&(value=_specialProps[property]&&_specialProps[property](target,property,unit)||_getComputedProperty(target,property)||_getProperty(target,property)||(property==="opacity"?1:0))),unit&&!~(value+"").trim().indexOf(" ")?_convertToUnit(target,property,value,unit)+unit:value},_tweenComplexCSSString=function(target,prop,start3,end2){if(!start3||start3==="none"){var p=_checkPropPrefix(prop,target,1),s2=p&&_getComputedProperty(target,p,1);s2&&s2!==start3?(prop=p,start3=s2):prop==="borderColor"&&(start3=_getComputedProperty(target,"borderTopColor"))}var pt=new PropTween(this._pt,target.style,prop,0,1,_renderComplexString),index=0,matchIndex=0,a,result,startValues,startNum,color,startValue,endValue,endNum,chunk,endUnit,startUnit,endValues;if(pt.b=start3,pt.e=end2,start3+="",end2+="",end2==="auto"&&(startValue=target.style[prop],target.style[prop]=end2,end2=_getComputedProperty(target,prop)||end2,startValue?target.style[prop]=startValue:_removeProperty(target,prop)),a=[start3,end2],_colorStringFilter(a),start3=a[0],end2=a[1],startValues=start3.match(_numWithUnitExp)||[],endValues=end2.match(_numWithUnitExp)||[],endValues.length){for(;result=_numWithUnitExp.exec(end2);)endValue=result[0],chunk=end2.substring(index,result.index),color?color=(color+1)%5:(chunk.substr(-5)==="rgba("||chunk.substr(-5)==="hsla(")&&(color=1),endValue!==(startValue=startValues[matchIndex++]||"")&&(startNum=parseFloat(startValue)||0,startUnit=startValue.substr((startNum+"").length),endValue.charAt(1)==="="&&(endValue=_parseRelative(startNum,endValue)+startUnit),endNum=parseFloat(endValue),endUnit=endValue.substr((endNum+"").length),index=_numWithUnitExp.lastIndex-endUnit.length,endUnit||(endUnit=endUnit||_config.units[prop]||startUnit,index===end2.length&&(end2+=endUnit,pt.e+=endUnit)),startUnit!==endUnit&&(startNum=_convertToUnit(target,prop,startValue,endUnit)||0),pt._pt={_next:pt._pt,p:chunk||matchIndex===1?chunk:",",s:startNum,c:endNum-startNum,m:color&&color<4||prop==="zIndex"?Math.round:0});pt.c=index<end2.length?end2.substring(index,end2.length):""}else pt.r=prop==="display"&&end2==="none"?_renderNonTweeningValueOnlyAtEnd:_renderNonTweeningValue;return _relExp.test(end2)&&(pt.e=0),this._pt=pt,pt},_keywordToPercent={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},_convertKeywordsToPercentages=function(value){var split=value.split(" "),x=split[0],y=split[1]||"50%";return(x==="top"||x==="bottom"||y==="left"||y==="right")&&(value=x,x=y,y=value),split[0]=_keywordToPercent[x]||x,split[1]=_keywordToPercent[y]||y,split.join(" ")},_renderClearProps=function(ratio,data){if(data.tween&&data.tween._time===data.tween._dur){var target=data.t,style2=target.style,props2=data.u,cache=target._gsap,prop,clearTransforms,i;if(props2==="all"||props2===!0)style2.cssText="",clearTransforms=1;else for(props2=props2.split(","),i=props2.length;--i>-1;)prop=props2[i],_transformProps[prop]&&(clearTransforms=1,prop=prop==="transformOrigin"?_transformOriginProp:_transformProp),_removeProperty(target,prop);clearTransforms&&(_removeProperty(target,_transformProp),cache&&(cache.svg&&target.removeAttribute("transform"),_parseTransform(target,1),cache.uncache=1,_removeIndependentTransforms(style2)))}},_specialProps={clearProps:function(plugin,target,property,endValue,tween){if(tween.data!=="isFromStart"){var pt=plugin._pt=new PropTween(plugin._pt,target,property,0,0,_renderClearProps);return pt.u=endValue,pt.pr=-10,pt.tween=tween,plugin._props.push(property),1}}},_identity2DMatrix=[1,0,0,1,0,0],_rotationalProperties={},_isNullTransform=function(value){return value==="matrix(1, 0, 0, 1, 0, 0)"||value==="none"||!value},_getComputedTransformMatrixAsArray=function(target){var matrixString=_getComputedProperty(target,_transformProp);return _isNullTransform(matrixString)?_identity2DMatrix:matrixString.substr(7).match(_numExp).map(_round)},_getMatrix=function(target,force2D){var cache=target._gsap||_getCache(target),style2=target.style,matrix=_getComputedTransformMatrixAsArray(target),parent,nextSibling,temp,addedToDOM;return cache.svg&&target.getAttribute("transform")?(temp=target.transform.baseVal.consolidate().matrix,matrix=[temp.a,temp.b,temp.c,temp.d,temp.e,temp.f],matrix.join(",")==="1,0,0,1,0,0"?_identity2DMatrix:matrix):(matrix===_identity2DMatrix&&!target.offsetParent&&target!==_docElement&&!cache.svg&&(temp=style2.display,style2.display="block",parent=target.parentNode,(!parent||!target.offsetParent)&&(addedToDOM=1,nextSibling=target.nextElementSibling,_docElement.appendChild(target)),matrix=_getComputedTransformMatrixAsArray(target),temp?style2.display=temp:_removeProperty(target,"display"),addedToDOM&&(nextSibling?parent.insertBefore(target,nextSibling):parent?parent.appendChild(target):_docElement.removeChild(target))),force2D&&matrix.length>6?[matrix[0],matrix[1],matrix[4],matrix[5],matrix[12],matrix[13]]:matrix)},_applySVGOrigin=function(target,origin,originIsAbsolute,smooth,matrixArray,pluginToAddPropTweensTo){var cache=target._gsap,matrix=matrixArray||_getMatrix(target,!0),xOriginOld=cache.xOrigin||0,yOriginOld=cache.yOrigin||0,xOffsetOld=cache.xOffset||0,yOffsetOld=cache.yOffset||0,a=matrix[0],b=matrix[1],c=matrix[2],d=matrix[3],tx=matrix[4],ty=matrix[5],originSplit=origin.split(" "),xOrigin=parseFloat(originSplit[0])||0,yOrigin=parseFloat(originSplit[1])||0,bounds,determinant,x,y;originIsAbsolute?matrix!==_identity2DMatrix&&(determinant=a*d-b*c)&&(x=xOrigin*(d/determinant)+yOrigin*(-c/determinant)+(c*ty-d*tx)/determinant,y=xOrigin*(-b/determinant)+yOrigin*(a/determinant)-(a*ty-b*tx)/determinant,xOrigin=x,yOrigin=y):(bounds=_getBBox(target),xOrigin=bounds.x+(~originSplit[0].indexOf("%")?xOrigin/100*bounds.width:xOrigin),yOrigin=bounds.y+(~(originSplit[1]||originSplit[0]).indexOf("%")?yOrigin/100*bounds.height:yOrigin)),smooth||smooth!==!1&&cache.smooth?(tx=xOrigin-xOriginOld,ty=yOrigin-yOriginOld,cache.xOffset=xOffsetOld+(tx*a+ty*c)-tx,cache.yOffset=yOffsetOld+(tx*b+ty*d)-ty):cache.xOffset=cache.yOffset=0,cache.xOrigin=xOrigin,cache.yOrigin=yOrigin,cache.smooth=!!smooth,cache.origin=origin,cache.originIsAbsolute=!!originIsAbsolute,target.style[_transformOriginProp]="0px 0px",pluginToAddPropTweensTo&&(_addNonTweeningPT(pluginToAddPropTweensTo,cache,"xOrigin",xOriginOld,xOrigin),_addNonTweeningPT(pluginToAddPropTweensTo,cache,"yOrigin",yOriginOld,yOrigin),_addNonTweeningPT(pluginToAddPropTweensTo,cache,"xOffset",xOffsetOld,cache.xOffset),_addNonTweeningPT(pluginToAddPropTweensTo,cache,"yOffset",yOffsetOld,cache.yOffset)),target.setAttribute("data-svg-origin",xOrigin+" "+yOrigin)},_parseTransform=function(target,uncache){var cache=target._gsap||new GSCache(target);if("x"in cache&&!uncache&&!cache.uncache)return cache;var style2=target.style,invertedScaleX=cache.scaleX<0,px="px",deg="deg",cs=getComputedStyle(target),origin=_getComputedProperty(target,_transformOriginProp)||"0",x,y,z,scaleX,scaleY,rotation,rotationX,rotationY,skewX,skewY,perspective,xOrigin,yOrigin,matrix,angle,cos,sin,a,b,c,d,a12,a22,t1,t2,t3,a13,a23,a33,a42,a43,a32;return x=y=z=rotation=rotationX=rotationY=skewX=skewY=perspective=0,scaleX=scaleY=1,cache.svg=!!(target.getCTM&&_isSVG(target)),cs.translate&&((cs.translate!=="none"||cs.scale!=="none"||cs.rotate!=="none")&&(style2[_transformProp]=(cs.translate!=="none"?"translate3d("+(cs.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(cs.rotate!=="none"?"rotate("+cs.rotate+") ":"")+(cs.scale!=="none"?"scale("+cs.scale.split(" ").join(",")+") ":"")+(cs[_transformProp]!=="none"?cs[_transformProp]:"")),style2.scale=style2.rotate=style2.translate="none"),matrix=_getMatrix(target,cache.svg),cache.svg&&(cache.uncache?(t2=target.getBBox(),origin=cache.xOrigin-t2.x+"px "+(cache.yOrigin-t2.y)+"px",t1=""):t1=!uncache&&target.getAttribute("data-svg-origin"),_applySVGOrigin(target,t1||origin,!!t1||cache.originIsAbsolute,cache.smooth!==!1,matrix)),xOrigin=cache.xOrigin||0,yOrigin=cache.yOrigin||0,matrix!==_identity2DMatrix&&(a=matrix[0],b=matrix[1],c=matrix[2],d=matrix[3],x=a12=matrix[4],y=a22=matrix[5],matrix.length===6?(scaleX=Math.sqrt(a*a+b*b),scaleY=Math.sqrt(d*d+c*c),rotation=a||b?_atan2(b,a)*_RAD2DEG:0,skewX=c||d?_atan2(c,d)*_RAD2DEG+rotation:0,skewX&&(scaleY*=Math.abs(Math.cos(skewX*_DEG2RAD))),cache.svg&&(x-=xOrigin-(xOrigin*a+yOrigin*c),y-=yOrigin-(xOrigin*b+yOrigin*d))):(a32=matrix[6],a42=matrix[7],a13=matrix[8],a23=matrix[9],a33=matrix[10],a43=matrix[11],x=matrix[12],y=matrix[13],z=matrix[14],angle=_atan2(a32,a33),rotationX=angle*_RAD2DEG,angle&&(cos=Math.cos(-angle),sin=Math.sin(-angle),t1=a12*cos+a13*sin,t2=a22*cos+a23*sin,t3=a32*cos+a33*sin,a13=a12*-sin+a13*cos,a23=a22*-sin+a23*cos,a33=a32*-sin+a33*cos,a43=a42*-sin+a43*cos,a12=t1,a22=t2,a32=t3),angle=_atan2(-c,a33),rotationY=angle*_RAD2DEG,angle&&(cos=Math.cos(-angle),sin=Math.sin(-angle),t1=a*cos-a13*sin,t2=b*cos-a23*sin,t3=c*cos-a33*sin,a43=d*sin+a43*cos,a=t1,b=t2,c=t3),angle=_atan2(b,a),rotation=angle*_RAD2DEG,angle&&(cos=Math.cos(angle),sin=Math.sin(angle),t1=a*cos+b*sin,t2=a12*cos+a22*sin,b=b*cos-a*sin,a22=a22*cos-a12*sin,a=t1,a12=t2),rotationX&&Math.abs(rotationX)+Math.abs(rotation)>359.9&&(rotationX=rotation=0,rotationY=180-rotationY),scaleX=_round(Math.sqrt(a*a+b*b+c*c)),scaleY=_round(Math.sqrt(a22*a22+a32*a32)),angle=_atan2(a12,a22),skewX=Math.abs(angle)>2e-4?angle*_RAD2DEG:0,perspective=a43?1/(a43<0?-a43:a43):0),cache.svg&&(t1=target.getAttribute("transform"),cache.forceCSS=target.setAttribute("transform","")||!_isNullTransform(_getComputedProperty(target,_transformProp)),t1&&target.setAttribute("transform",t1))),Math.abs(skewX)>90&&Math.abs(skewX)<270&&(invertedScaleX?(scaleX*=-1,skewX+=rotation<=0?180:-180,rotation+=rotation<=0?180:-180):(scaleY*=-1,skewX+=skewX<=0?180:-180)),uncache=uncache||cache.uncache,cache.x=x-((cache.xPercent=x&&(!uncache&&cache.xPercent||(Math.round(target.offsetWidth/2)===Math.round(-x)?-50:0)))?target.offsetWidth*cache.xPercent/100:0)+px,cache.y=y-((cache.yPercent=y&&(!uncache&&cache.yPercent||(Math.round(target.offsetHeight/2)===Math.round(-y)?-50:0)))?target.offsetHeight*cache.yPercent/100:0)+px,cache.z=z+px,cache.scaleX=_round(scaleX),cache.scaleY=_round(scaleY),cache.rotation=_round(rotation)+deg,cache.rotationX=_round(rotationX)+deg,cache.rotationY=_round(rotationY)+deg,cache.skewX=skewX+deg,cache.skewY=skewY+deg,cache.transformPerspective=perspective+px,(cache.zOrigin=parseFloat(origin.split(" ")[2])||!uncache&&cache.zOrigin||0)&&(style2[_transformOriginProp]=_firstTwoOnly(origin)),cache.xOffset=cache.yOffset=0,cache.force3D=_config.force3D,cache.renderTransform=cache.svg?_renderSVGTransforms:_supports3D?_renderCSSTransforms:_renderNon3DTransforms,cache.uncache=0,cache},_firstTwoOnly=function(value){return(value=value.split(" "))[0]+" "+value[1]},_addPxTranslate=function(target,start3,value){var unit=getUnit(start3);return _round(parseFloat(start3)+parseFloat(_convertToUnit(target,"x",value+"px",unit)))+unit},_renderNon3DTransforms=function(ratio,cache){cache.z="0px",cache.rotationY=cache.rotationX="0deg",cache.force3D=0,_renderCSSTransforms(ratio,cache)},_zeroDeg="0deg",_zeroPx="0px",_endParenthesis=") ",_renderCSSTransforms=function(ratio,cache){var _ref=cache||this,xPercent=_ref.xPercent,yPercent=_ref.yPercent,x=_ref.x,y=_ref.y,z=_ref.z,rotation=_ref.rotation,rotationY=_ref.rotationY,rotationX=_ref.rotationX,skewX=_ref.skewX,skewY=_ref.skewY,scaleX=_ref.scaleX,scaleY=_ref.scaleY,transformPerspective=_ref.transformPerspective,force3D=_ref.force3D,target=_ref.target,zOrigin=_ref.zOrigin,transforms="",use3D=force3D==="auto"&&ratio&&ratio!==1||force3D===!0;if(zOrigin&&(rotationX!==_zeroDeg||rotationY!==_zeroDeg)){var angle=parseFloat(rotationY)*_DEG2RAD,a13=Math.sin(angle),a33=Math.cos(angle),cos;angle=parseFloat(rotationX)*_DEG2RAD,cos=Math.cos(angle),x=_addPxTranslate(target,x,a13*cos*-zOrigin),y=_addPxTranslate(target,y,-Math.sin(angle)*-zOrigin),z=_addPxTranslate(target,z,a33*cos*-zOrigin+zOrigin)}transformPerspective!==_zeroPx&&(transforms+="perspective("+transformPerspective+_endParenthesis),(xPercent||yPercent)&&(transforms+="translate("+xPercent+"%, "+yPercent+"%) "),(use3D||x!==_zeroPx||y!==_zeroPx||z!==_zeroPx)&&(transforms+=z!==_zeroPx||use3D?"translate3d("+x+", "+y+", "+z+") ":"translate("+x+", "+y+_endParenthesis),rotation!==_zeroDeg&&(transforms+="rotate("+rotation+_endParenthesis),rotationY!==_zeroDeg&&(transforms+="rotateY("+rotationY+_endParenthesis),rotationX!==_zeroDeg&&(transforms+="rotateX("+rotationX+_endParenthesis),(skewX!==_zeroDeg||skewY!==_zeroDeg)&&(transforms+="skew("+skewX+", "+skewY+_endParenthesis),(scaleX!==1||scaleY!==1)&&(transforms+="scale("+scaleX+", "+scaleY+_endParenthesis),target.style[_transformProp]=transforms||"translate(0, 0)"},_renderSVGTransforms=function(ratio,cache){var _ref2=cache||this,xPercent=_ref2.xPercent,yPercent=_ref2.yPercent,x=_ref2.x,y=_ref2.y,rotation=_ref2.rotation,skewX=_ref2.skewX,skewY=_ref2.skewY,scaleX=_ref2.scaleX,scaleY=_ref2.scaleY,target=_ref2.target,xOrigin=_ref2.xOrigin,yOrigin=_ref2.yOrigin,xOffset=_ref2.xOffset,yOffset=_ref2.yOffset,forceCSS=_ref2.forceCSS,tx=parseFloat(x),ty=parseFloat(y),a11,a21,a12,a22,temp;rotation=parseFloat(rotation),skewX=parseFloat(skewX),skewY=parseFloat(skewY),skewY&&(skewY=parseFloat(skewY),skewX+=skewY,rotation+=skewY),rotation||skewX?(rotation*=_DEG2RAD,skewX*=_DEG2RAD,a11=Math.cos(rotation)*scaleX,a21=Math.sin(rotation)*scaleX,a12=Math.sin(rotation-skewX)*-scaleY,a22=Math.cos(rotation-skewX)*scaleY,skewX&&(skewY*=_DEG2RAD,temp=Math.tan(skewX-skewY),temp=Math.sqrt(1+temp*temp),a12*=temp,a22*=temp,skewY&&(temp=Math.tan(skewY),temp=Math.sqrt(1+temp*temp),a11*=temp,a21*=temp)),a11=_round(a11),a21=_round(a21),a12=_round(a12),a22=_round(a22)):(a11=scaleX,a22=scaleY,a21=a12=0),(tx&&!~(x+"").indexOf("px")||ty&&!~(y+"").indexOf("px"))&&(tx=_convertToUnit(target,"x",x,"px"),ty=_convertToUnit(target,"y",y,"px")),(xOrigin||yOrigin||xOffset||yOffset)&&(tx=_round(tx+xOrigin-(xOrigin*a11+yOrigin*a12)+xOffset),ty=_round(ty+yOrigin-(xOrigin*a21+yOrigin*a22)+yOffset)),(xPercent||yPercent)&&(temp=target.getBBox(),tx=_round(tx+xPercent/100*temp.width),ty=_round(ty+yPercent/100*temp.height)),temp="matrix("+a11+","+a21+","+a12+","+a22+","+tx+","+ty+")",target.setAttribute("transform",temp),forceCSS&&(target.style[_transformProp]=temp)},_addRotationalPropTween=function(plugin,target,property,startNum,endValue){var cap=360,isString2=_isString(endValue),endNum=parseFloat(endValue)*(isString2&&~endValue.indexOf("rad")?_RAD2DEG:1),change=endNum-startNum,finalValue=startNum+change+"deg",direction,pt;return isString2&&(direction=endValue.split("_")[1],direction==="short"&&(change%=cap,change!==change%(cap/2)&&(change+=change<0?cap:-cap)),direction==="cw"&&change<0?change=(change+cap*_bigNum2)%cap-~~(change/cap)*cap:direction==="ccw"&&change>0&&(change=(change-cap*_bigNum2)%cap-~~(change/cap)*cap)),plugin._pt=pt=new PropTween(plugin._pt,target,property,startNum,change,_renderPropWithEnd),pt.e=finalValue,pt.u="deg",plugin._props.push(property),pt},_assign=function(target,source){for(var p in source)target[p]=source[p];return target},_addRawTransformPTs=function(plugin,transforms,target){var startCache=_assign({},target._gsap),exclude="perspective,force3D,transformOrigin,svgOrigin",style2=target.style,endCache,p,startValue,endValue,startNum,endNum,startUnit,endUnit;startCache.svg?(startValue=target.getAttribute("transform"),target.setAttribute("transform",""),style2[_transformProp]=transforms,endCache=_parseTransform(target,1),_removeProperty(target,_transformProp),target.setAttribute("transform",startValue)):(startValue=getComputedStyle(target)[_transformProp],style2[_transformProp]=transforms,endCache=_parseTransform(target,1),style2[_transformProp]=startValue);for(p in _transformProps)startValue=startCache[p],endValue=endCache[p],startValue!==endValue&&exclude.indexOf(p)<0&&(startUnit=getUnit(startValue),endUnit=getUnit(endValue),startNum=startUnit!==endUnit?_convertToUnit(target,p,startValue,endUnit):parseFloat(startValue),endNum=parseFloat(endValue),plugin._pt=new PropTween(plugin._pt,endCache,p,startNum,endNum-startNum,_renderCSSProp),plugin._pt.u=endUnit||0,plugin._props.push(p));_assign(endCache,startCache)};_forEachName("padding,margin,Width,Radius",function(name,index){var t="Top",r="Right",b="Bottom",l2="Left",props2=(index<3?[t,r,b,l2]:[t+l2,t+r,b+r,b+l2]).map(function(side){return index<2?name+side:"border"+side+name});_specialProps[index>1?"border"+name:name]=function(plugin,target,property,endValue,tween){var a,vars;if(arguments.length<4)return a=props2.map(function(prop){return _get(plugin,prop,property)}),vars=a.join(" "),vars.split(a[0]).length===5?a[0]:vars;a=(endValue+"").split(" "),vars={},props2.forEach(function(prop,i){return vars[prop]=a[i]=a[i]||a[(i-1)/2|0]}),plugin.init(target,vars,tween)}});var CSSPlugin={name:"css",register:_initCore,targetTest:function(target){return target.style&&target.nodeType},init:function(target,vars,tween,index,targets){var props2=this._props,style2=target.style,startAt=tween.vars.startAt,startValue,endValue,endNum,startNum,type,specialProp,p,startUnit,endUnit,relative,isTransformRelated,transformPropTween,cache,smooth,hasPriority,inlineProps;_pluginInitted||_initCore(),this.styles=this.styles||_getStyleSaver(target),inlineProps=this.styles.props,this.tween=tween;for(p in vars)if(p!=="autoRound"&&(endValue=vars[p],!(_plugins[p]&&_checkPlugin(p,vars,tween,index,target,targets)))){if(type=typeof endValue,specialProp=_specialProps[p],type==="function"&&(endValue=endValue.call(tween,index,target,targets),type=typeof endValue),type==="string"&&~endValue.indexOf("random(")&&(endValue=_replaceRandom(endValue)),specialProp)specialProp(this,target,p,endValue,tween)&&(hasPriority=1);else if(p.substr(0,2)==="--")startValue=(getComputedStyle(target).getPropertyValue(p)+"").trim(),endValue+="",_colorExp.lastIndex=0,_colorExp.test(startValue)||(startUnit=getUnit(startValue),endUnit=getUnit(endValue)),endUnit?startUnit!==endUnit&&(startValue=_convertToUnit(target,p,startValue,endUnit)+endUnit):startUnit&&(endValue+=startUnit),this.add(style2,"setProperty",startValue,endValue,index,targets,0,0,p),props2.push(p),inlineProps.push(p,0,style2[p]);else if(type!=="undefined"){if(startAt&&p in startAt?(startValue=typeof startAt[p]=="function"?startAt[p].call(tween,index,target,targets):startAt[p],_isString(startValue)&&~startValue.indexOf("random(")&&(startValue=_replaceRandom(startValue)),getUnit(startValue+"")||startValue==="auto"||(startValue+=_config.units[p]||getUnit(_get(target,p))||""),(startValue+"").charAt(1)==="="&&(startValue=_get(target,p))):startValue=_get(target,p),startNum=parseFloat(startValue),relative=type==="string"&&endValue.charAt(1)==="="&&endValue.substr(0,2),relative&&(endValue=endValue.substr(2)),endNum=parseFloat(endValue),p in _propertyAliases&&(p==="autoAlpha"&&(startNum===1&&_get(target,"visibility")==="hidden"&&endNum&&(startNum=0),inlineProps.push("visibility",0,style2.visibility),_addNonTweeningPT(this,style2,"visibility",startNum?"inherit":"hidden",endNum?"inherit":"hidden",!endNum)),p!=="scale"&&p!=="transform"&&(p=_propertyAliases[p],~p.indexOf(",")&&(p=p.split(",")[0]))),isTransformRelated=p in _transformProps,isTransformRelated){if(this.styles.save(p),transformPropTween||(cache=target._gsap,cache.renderTransform&&!vars.parseTransform||_parseTransform(target,vars.parseTransform),smooth=vars.smoothOrigin!==!1&&cache.smooth,transformPropTween=this._pt=new PropTween(this._pt,style2,_transformProp,0,1,cache.renderTransform,cache,0,-1),transformPropTween.dep=1),p==="scale")this._pt=new PropTween(this._pt,cache,"scaleY",cache.scaleY,(relative?_parseRelative(cache.scaleY,relative+endNum):endNum)-cache.scaleY||0,_renderCSSProp),this._pt.u=0,props2.push("scaleY",p),p+="X";else if(p==="transformOrigin"){inlineProps.push(_transformOriginProp,0,style2[_transformOriginProp]),endValue=_convertKeywordsToPercentages(endValue),cache.svg?_applySVGOrigin(target,endValue,0,smooth,0,this):(endUnit=parseFloat(endValue.split(" ")[2])||0,endUnit!==cache.zOrigin&&_addNonTweeningPT(this,cache,"zOrigin",cache.zOrigin,endUnit),_addNonTweeningPT(this,style2,p,_firstTwoOnly(startValue),_firstTwoOnly(endValue)));continue}else if(p==="svgOrigin"){_applySVGOrigin(target,endValue,1,smooth,0,this);continue}else if(p in _rotationalProperties){_addRotationalPropTween(this,cache,p,startNum,relative?_parseRelative(startNum,relative+endValue):endValue);continue}else if(p==="smoothOrigin"){_addNonTweeningPT(this,cache,"smooth",cache.smooth,endValue);continue}else if(p==="force3D"){cache[p]=endValue;continue}else if(p==="transform"){_addRawTransformPTs(this,endValue,target);continue}}else p in style2||(p=_checkPropPrefix(p)||p);if(isTransformRelated||(endNum||endNum===0)&&(startNum||startNum===0)&&!_complexExp.test(endValue)&&p in style2)startUnit=(startValue+"").substr((startNum+"").length),endNum||(endNum=0),endUnit=getUnit(endValue)||(p in _config.units?_config.units[p]:startUnit),startUnit!==endUnit&&(startNum=_convertToUnit(target,p,startValue,endUnit)),this._pt=new PropTween(this._pt,isTransformRelated?cache:style2,p,startNum,(relative?_parseRelative(startNum,relative+endNum):endNum)-startNum,!isTransformRelated&&(endUnit==="px"||p==="zIndex")&&vars.autoRound!==!1?_renderRoundedCSSProp:_renderCSSProp),this._pt.u=endUnit||0,startUnit!==endUnit&&endUnit!=="%"&&(this._pt.b=startValue,this._pt.r=_renderCSSPropWithBeginning);else if(p in style2)_tweenComplexCSSString.call(this,target,p,startValue,relative?relative+endValue:endValue);else if(p in target)this.add(target,p,startValue||target[p],relative?relative+endValue:endValue,index,targets);else if(p!=="parseTransform"){_missingPlugin(p,endValue);continue}isTransformRelated||(p in style2?inlineProps.push(p,0,style2[p]):inlineProps.push(p,1,startValue||target[p])),props2.push(p)}}hasPriority&&_sortPropTweensByPriority(this)},render:function(ratio,data){if(data.tween._time||!_reverting2())for(var pt=data._pt;pt;)pt.r(ratio,pt.d),pt=pt._next;else data.styles.revert()},get:_get,aliases:_propertyAliases,getSetter:function(target,property,plugin){var p=_propertyAliases[property];return p&&p.indexOf(",")<0&&(property=p),property in _transformProps&&property!==_transformOriginProp&&(target._gsap.x||_get(target,"x"))?plugin&&_recentSetterPlugin===plugin?property==="scale"?_setterScale:_setterTransform:(_recentSetterPlugin=plugin||{})&&(property==="scale"?_setterScaleWithRender:_setterTransformWithRender):target.style&&!_isUndefined(target.style[property])?_setterCSSStyle:~property.indexOf("-")?_setterCSSProp:_getSetter(target,property)},core:{_removeProperty,_getMatrix}};gsap.utils.checkPrefix=_checkPropPrefix;gsap.core.getStyleSaver=_getStyleSaver;(function(positionAndScale,rotation,others,aliases){var all=_forEachName(positionAndScale+","+rotation+","+others,function(name){_transformProps[name]=1});_forEachName(rotation,function(name){_config.units[name]="deg",_rotationalProperties[name]=1}),_propertyAliases[all[13]]=positionAndScale+","+rotation,_forEachName(aliases,function(name){var split=name.split(":");_propertyAliases[split[1]]=all[split[0]]})})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY");_forEachName("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(name){_config.units[name]="px"});gsap.registerPlugin(CSSPlugin);var gsapWithCSS=gsap.registerPlugin(CSSPlugin)||gsap,TweenMaxWithCSS=gsapWithCSS.core.Tween;function animateIn(element,done){gsapWithCSS.fromTo(element,{opacity:0,y:"25vh"},{opacity:1,y:0,duration:.25,ease:"power3",onComplete:done,force3D:!0})}function animateOut(element,done){gsapWithCSS.to(element,{opacity:0,duration:.2,ease:"power3",onComplete:done,force3D:!0})}var ViewerRef=class{constructor(_ngZone,componentRef,afterOpened,config3){this._ngZone=_ngZone,this.componentRef=componentRef,this._afterClosed=new Subject,this.closing=!1,this.closed=!1,this.navigateBackAfterClosed=!0,this._afterOpened=afterOpened,this.config=__spreadValues({data:{}},config3)}get minimized(){return this.componentRef.instance.minimized}afterClosed(){return this._afterClosed.asObservable()}afterOpened(){return this._afterOpened.asObservable()}close(){if(this.closing)return;this.closing=!0;let{nativeElement}=this.componentRef.location;requestAnimationFrame(()=>{animateOut(nativeElement,()=>{this._ngZone.run(()=>{this.componentRef.destroy(),nativeElement.remove(),this.closed=!0,this._afterClosed.next(),this._afterClosed.complete()})})})}minimize(){let{nativeElement}=this.componentRef.location,index=nativeElement.parentElement.querySelectorAll("ix-viewer.minimized").length;nativeElement.setAttribute("tabindex",index),this.componentRef.instance.minimize()}resume(){this.componentRef.instance.resume()}};var HistoryService=(()=>{let _HistoryService=class _HistoryService{constructor(router){this.router=router,this.history=[]}run(){this.router.events.pipe(filter(event2=>event2 instanceof NavigationEnd),map(({urlAfterRedirects})=>urlAfterRedirects),filter(url=>!url.startsWith("/login?next=")),distinctUntilChanged()).subscribe(url=>{this.history.unshift(url),this.history=this.history.slice(0,3)})}back(){return this.router.navigateByUrl(this.getPreviousUrl())}getHistory(){return this.history}getPreviousUrl(fallbackUrl="/"){return this.history[1]||fallbackUrl}};_HistoryService.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_HistoryService)(\u0275\u0275inject(Router))},_HistoryService.\u0275prov=\u0275\u0275defineInjectable({token:_HistoryService,factory:_HistoryService.\u0275fac,providedIn:"root"});let HistoryService2=_HistoryService;return HistoryService2})();var VIEWER_DATA=new InjectionToken("ViewerData"),VIEWER_REF_CACHE=new InjectionToken("ViewerRefCache"),VIEWER_AFTER_OPENED=new InjectionToken("ViewerAfterOpened",{providedIn:"root",factory:()=>new Subject}),ViewerService=(()=>{let _ViewerService=class _ViewerService{constructor(document2,viewerRefs,_afterOpened,ngZone,injector,resolver,router,history){this.document=document2,this.viewerRefs=viewerRefs,this._afterOpened=_afterOpened,this.ngZone=ngZone,this.injector=injector,this.resolver=resolver,this.router=router,this.history=history,this._openViewers=[],this.afterOpened=this._afterOpened.asObservable(),this._afterOpened.subscribe(ref=>{ref.afterClosed().subscribe(()=>{this._openViewers.splice(this._openViewers.indexOf(ref),1)}),this._openViewers.push(ref)})}get openViewers(){return this._openViewers}open(component,config3){this.closeAll();let ref=this.attach(component,config3);return ref.afterClosed().subscribe(()=>{if(ref.navigateBackAfterClosed){let backUrl=config3?.backUrl||this.history.getPreviousUrl();this.router.navigateByUrl(backUrl)}}),ref}closeAll(){for(;this.viewerRefs.length;){let ref=this.viewerRefs.pop();ref&&!ref.closed&&(ref.navigateBackAfterClosed=!1,ref.close())}}attach(component,config3){let componentRef=this.resolver.resolveComponentFactory(ViewerComponent).create(this.injector),afterOpened=new Subject,ref=new ViewerRef(this.ngZone,componentRef,afterOpened),injector=this.createInjector(ref,config3),portal=new ComponentPortal(component,void 0,injector);return componentRef.instance.portal=portal,componentRef.instance.url=this.router.url,componentRef.hostView.detectChanges(),this.document.body.appendChild(componentRef.location.nativeElement),this.history.getHistory().length>1?requestAnimationFrame(()=>{animateIn(componentRef.location.nativeElement,()=>{this.ngZone.run(()=>{afterOpened.next(),afterOpened.complete(),this._afterOpened.next(ref)})})}):requestAnimationFrame(()=>{this.ngZone.run(()=>{afterOpened.next(),afterOpened.complete(),this._afterOpened.next(ref)})}),this.viewerRefs.includes(ref)||(this.viewerRefs.forEach((r,i)=>{r.closed&&this.viewerRefs.splice(i,1)}),this.viewerRefs.unshift(ref)),ref}createInjector(viewerRef,config3){return Injector.create({providers:[{provide:VIEWER_DATA,useValue:config3?.data||null},{provide:ViewerRef,useValue:viewerRef}]})}};_ViewerService.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_ViewerService)(\u0275\u0275inject(DOCUMENT),\u0275\u0275inject(VIEWER_REF_CACHE),\u0275\u0275inject(VIEWER_AFTER_OPENED),\u0275\u0275inject(NgZone),\u0275\u0275inject(Injector),\u0275\u0275inject(ComponentFactoryResolver$1),\u0275\u0275inject(Router),\u0275\u0275inject(HistoryService))},_ViewerService.\u0275prov=\u0275\u0275defineInjectable({token:_ViewerService,factory:_ViewerService.\u0275fac});let ViewerService2=_ViewerService;return ViewerService2})();var LayoutModule2=(()=>{let _LayoutModule=class _LayoutModule{};_LayoutModule.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_LayoutModule)},_LayoutModule.\u0275mod=\u0275\u0275defineNgModule({type:_LayoutModule}),_LayoutModule.\u0275inj=\u0275\u0275defineInjector({providers:[provideHappyCorner(),ViewerService,{provide:VIEWER_REF_CACHE,useValue:[]}]});let LayoutModule3=_LayoutModule;return LayoutModule3})();var FeatureEventType=function(FeatureEventType2){return FeatureEventType2.LoggedIn="ayayot.auth.logged-in",FeatureEventType2.LoggedOut="ayayot.auth.logged-out",FeatureEventType2.CompanyChanged="ayayot.company.changed",FeatureEventType2}(FeatureEventType||{});var __FEATURES=[],__FEATURES_CURRENT_USER_ID,__FEATURES_CURRENT_COMPANY_ID;function hasFeature(key){return __FEATURES.some(feature44=>feature44.name===key&&feature44.enabled?feature44.strategies.reduce((flag,strategy)=>{if(!flag&&strategy.name==="default")return!0;let posibleUserWithIds=[__FEATURES_CURRENT_USER_ID,__FEATURES_CURRENT_COMPANY_ID].filter(userWithId=>userWithId!==""&&userWithId!==void 0&&userWithId!==null).map(value=>value);return!flag&&strategy.name==="userWithId"&&posibleUserWithIds.length>0?posibleUserWithIds.some(userWithId=>strategy.parameters.userIds.split(",").includes(userWithId)):flag},!1):!1)}function getFeatures(){return __FEATURES}function setFeatures(features2){__FEATURES=features2}var hasFeatureMemoized=memoize_default(hasFeature),getFeaturesMemoized=memoize_default(getFeatures);function init4(){return window.addEventListener(FeatureEventType.LoggedIn,event2=>{__FEATURES_CURRENT_USER_ID=event2.detail}),window.addEventListener(FeatureEventType.LoggedOut,()=>{__FEATURES_CURRENT_USER_ID=void 0,hasFeatureMemoized.cache.clear?.(),getFeaturesMemoized.cache.clear?.()}),window.addEventListener(FeatureEventType.CompanyChanged,event2=>{__FEATURES_CURRENT_COMPANY_ID=event2.detail,hasFeatureMemoized.cache.clear?.(),getFeaturesMemoized.cache.clear?.()}),fetch("./features.json").then(res=>res.json()).then(features2=>{setFeatures(features2)}).catch(()=>{setFeatures([])})}var features={hasFeature:hasFeatureMemoized,init:init4,getFeatures:getFeaturesMemoized};var _c0=["*"];function GridsterComponent_For_1_Template(rf,ctx){if(rf&1&&\u0275\u0275element(0,"div",0),rf&2){let \u0275$index_1_r1=ctx.$index,ctx_r1=\u0275\u0275nextContext();\u0275\u0275property("ngStyle",ctx_r1.gridRenderer.getGridColumnStyle(\u0275$index_1_r1))}}function GridsterComponent_For_3_Template(rf,ctx){if(rf&1&&\u0275\u0275element(0,"div",1),rf&2){let \u0275$index_4_r3=ctx.$index,ctx_r1=\u0275\u0275nextContext();\u0275\u0275property("ngStyle",ctx_r1.gridRenderer.getGridRowStyle(\u0275$index_4_r3))}}function GridsterItemComponent_Conditional_1_Template(rf,ctx){if(rf&1){let _r1=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"div",8),\u0275\u0275listener("mousedown",function($event){\u0275\u0275restoreView(_r1);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.resize.dragStartDelay($event))})("touchstart",function($event){\u0275\u0275restoreView(_r1);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.resize.dragStartDelay($event))}),\u0275\u0275elementEnd()}}function GridsterItemComponent_Conditional_2_Template(rf,ctx){if(rf&1){let _r3=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"div",9),\u0275\u0275listener("mousedown",function($event){\u0275\u0275restoreView(_r3);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.resize.dragStartDelay($event))})("touchstart",function($event){\u0275\u0275restoreView(_r3);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.resize.dragStartDelay($event))}),\u0275\u0275elementEnd()}}function GridsterItemComponent_Conditional_3_Template(rf,ctx){if(rf&1){let _r4=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"div",10),\u0275\u0275listener("mousedown",function($event){\u0275\u0275restoreView(_r4);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.resize.dragStartDelay($event))})("touchstart",function($event){\u0275\u0275restoreView(_r4);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.resize.dragStartDelay($event))}),\u0275\u0275elementEnd()}}function GridsterItemComponent_Conditional_4_Template(rf,ctx){if(rf&1){let _r5=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"div",11),\u0275\u0275listener("mousedown",function($event){\u0275\u0275restoreView(_r5);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.resize.dragStartDelay($event))})("touchstart",function($event){\u0275\u0275restoreView(_r5);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.resize.dragStartDelay($event))}),\u0275\u0275elementEnd()}}function GridsterItemComponent_Conditional_5_Template(rf,ctx){if(rf&1){let _r6=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"div",12),\u0275\u0275listener("mousedown",function($event){\u0275\u0275restoreView(_r6);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.resize.dragStartDelay($event))})("touchstart",function($event){\u0275\u0275restoreView(_r6);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.resize.dragStartDelay($event))}),\u0275\u0275elementEnd()}}function GridsterItemComponent_Conditional_6_Template(rf,ctx){if(rf&1){let _r7=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"div",13),\u0275\u0275listener("mousedown",function($event){\u0275\u0275restoreView(_r7);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.resize.dragStartDelay($event))})("touchstart",function($event){\u0275\u0275restoreView(_r7);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.resize.dragStartDelay($event))}),\u0275\u0275elementEnd()}}function GridsterItemComponent_Conditional_7_Template(rf,ctx){if(rf&1){let _r8=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"div",14),\u0275\u0275listener("mousedown",function($event){\u0275\u0275restoreView(_r8);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.resize.dragStartDelay($event))})("touchstart",function($event){\u0275\u0275restoreView(_r8);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.resize.dragStartDelay($event))}),\u0275\u0275elementEnd()}}function GridsterItemComponent_Conditional_8_Template(rf,ctx){if(rf&1){let _r9=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"div",15),\u0275\u0275listener("mousedown",function($event){\u0275\u0275restoreView(_r9);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.resize.dragStartDelay($event))})("touchstart",function($event){\u0275\u0275restoreView(_r9);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.resize.dragStartDelay($event))}),\u0275\u0275elementEnd()}}var GridType=function(GridType2){return GridType2.Fit="fit",GridType2.ScrollVertical="scrollVertical",GridType2.ScrollHorizontal="scrollHorizontal",GridType2.Fixed="fixed",GridType2.VerticalFixed="verticalFixed",GridType2.HorizontalFixed="horizontalFixed",GridType2}(GridType||{}),DisplayGrid=function(DisplayGrid2){return DisplayGrid2.Always="always",DisplayGrid2.OnDragAndResize="onDrag&Resize",DisplayGrid2.None="none",DisplayGrid2}(DisplayGrid||{}),CompactType=function(CompactType2){return CompactType2.None="none",CompactType2.CompactUp="compactUp",CompactType2.CompactLeft="compactLeft",CompactType2.CompactUpAndLeft="compactUp&Left",CompactType2.CompactLeftAndUp="compactLeft&Up",CompactType2.CompactRight="compactRight",CompactType2.CompactUpAndRight="compactUp&Right",CompactType2.CompactRightAndUp="compactRight&Up",CompactType2.CompactDown="compactDown",CompactType2.CompactDownAndLeft="compactDown&Left",CompactType2.CompactLeftAndDown="compactLeft&Down",CompactType2.CompactDownAndRight="compactDown&Right",CompactType2.CompactRightAndDown="compactRight&Down",CompactType2}(CompactType||{}),DirTypes=function(DirTypes2){return DirTypes2.LTR="ltr",DirTypes2.RTL="rtl",DirTypes2}(DirTypes||{}),GridsterCompact=class{gridster;constructor(gridster){this.gridster=gridster}destroy(){this.gridster=null}checkCompact(){this.gridster.$options.compactType!==CompactType.None&&(this.gridster.$options.compactType===CompactType.CompactUp?this.checkCompactMovement("y",-1):this.gridster.$options.compactType===CompactType.CompactLeft?this.checkCompactMovement("x",-1):this.gridster.$options.compactType===CompactType.CompactUpAndLeft?(this.checkCompactMovement("y",-1),this.checkCompactMovement("x",-1)):this.gridster.$options.compactType===CompactType.CompactLeftAndUp?(this.checkCompactMovement("x",-1),this.checkCompactMovement("y",-1)):this.gridster.$options.compactType===CompactType.CompactRight?this.checkCompactMovement("x",1):this.gridster.$options.compactType===CompactType.CompactUpAndRight?(this.checkCompactMovement("y",-1),this.checkCompactMovement("x",1)):this.gridster.$options.compactType===CompactType.CompactRightAndUp?(this.checkCompactMovement("x",1),this.checkCompactMovement("y",-1)):this.gridster.$options.compactType===CompactType.CompactDown?this.checkCompactMovement("y",1):this.gridster.$options.compactType===CompactType.CompactDownAndLeft?(this.checkCompactMovement("y",1),this.checkCompactMovement("x",-1)):this.gridster.$options.compactType===CompactType.CompactDownAndRight?(this.checkCompactMovement("y",1),this.checkCompactMovement("x",1)):this.gridster.$options.compactType===CompactType.CompactLeftAndDown?(this.checkCompactMovement("x",-1),this.checkCompactMovement("y",1)):this.gridster.$options.compactType===CompactType.CompactRightAndDown&&(this.checkCompactMovement("x",1),this.checkCompactMovement("y",1)))}checkCompactItem(item){this.gridster.$options.compactType!==CompactType.None&&(this.gridster.$options.compactType===CompactType.CompactUp?this.moveTillCollision(item,"y",-1):this.gridster.$options.compactType===CompactType.CompactLeft?this.moveTillCollision(item,"x",-1):this.gridster.$options.compactType===CompactType.CompactUpAndLeft?(this.moveTillCollision(item,"y",-1),this.moveTillCollision(item,"x",-1)):this.gridster.$options.compactType===CompactType.CompactLeftAndUp?(this.moveTillCollision(item,"x",-1),this.moveTillCollision(item,"y",-1)):this.gridster.$options.compactType===CompactType.CompactUpAndRight?(this.moveTillCollision(item,"y",-1),this.moveTillCollision(item,"x",1)):this.gridster.$options.compactType===CompactType.CompactDown?this.moveTillCollision(item,"y",1):this.gridster.$options.compactType===CompactType.CompactDownAndLeft?(this.moveTillCollision(item,"y",1),this.moveTillCollision(item,"x",-1)):this.gridster.$options.compactType===CompactType.CompactLeftAndDown?(this.moveTillCollision(item,"x",-1),this.moveTillCollision(item,"y",1)):this.gridster.$options.compactType===CompactType.CompactDownAndRight?(this.moveTillCollision(item,"y",1),this.moveTillCollision(item,"x",1)):this.gridster.$options.compactType===CompactType.CompactRightAndDown&&(this.moveTillCollision(item,"x",1),this.moveTillCollision(item,"y",1)))}checkCompactMovement(direction,delta){let widgetMoved=!1;this.gridster.grid.forEach(widget=>{widget.$item.compactEnabled!==!1&&this.moveTillCollision(widget.$item,direction,delta)&&(widgetMoved=!0,widget.item[direction]=widget.$item[direction],widget.itemChanged())}),widgetMoved&&this.checkCompact()}moveTillCollision(item,direction,delta){return item[direction]+=delta,this.gridster.checkCollision(item)?(item[direction]-=delta,!1):(this.moveTillCollision(item,direction,delta),!0)}},GridsterConfigService={gridType:GridType.Fit,scale:1,fixedColWidth:250,fixedRowHeight:250,keepFixedHeightInMobile:!1,keepFixedWidthInMobile:!1,setGridSize:!1,compactType:CompactType.None,mobileBreakpoint:640,useBodyForBreakpoint:!1,allowMultiLayer:!1,defaultLayerIndex:0,maxLayerIndex:2,baseLayerIndex:1,minCols:1,maxCols:100,minRows:1,maxRows:100,defaultItemCols:1,defaultItemRows:1,maxItemCols:50,maxItemRows:50,minItemCols:1,minItemRows:1,minItemArea:1,maxItemArea:2500,addEmptyRowsCount:0,rowHeightRatio:1,margin:10,outerMargin:!0,outerMarginTop:null,outerMarginRight:null,outerMarginBottom:null,outerMarginLeft:null,useTransformPositioning:!0,scrollSensitivity:10,scrollSpeed:20,initCallback:void 0,destroyCallback:void 0,gridSizeChangedCallback:void 0,itemChangeCallback:void 0,itemResizeCallback:void 0,itemInitCallback:void 0,itemRemovedCallback:void 0,itemValidateCallback:void 0,enableEmptyCellClick:!1,enableEmptyCellContextMenu:!1,enableEmptyCellDrop:!1,enableEmptyCellDrag:!1,enableOccupiedCellDrop:!1,emptyCellClickCallback:void 0,emptyCellContextMenuCallback:void 0,emptyCellDropCallback:void 0,emptyCellDragCallback:void 0,emptyCellDragMaxCols:50,emptyCellDragMaxRows:50,ignoreMarginInRow:!1,draggable:{delayStart:0,enabled:!1,ignoreContentClass:"gridster-item-content",ignoreContent:!1,dragHandleClass:"drag-handler",stop:void 0,start:void 0,dropOverItems:!1,dropOverItemsCallback:void 0},resizable:{delayStart:0,enabled:!1,handles:{s:!0,e:!0,n:!0,w:!0,se:!0,ne:!0,sw:!0,nw:!0},stop:void 0,start:void 0},swap:!0,swapWhileDragging:!1,pushItems:!1,disablePushOnDrag:!1,disablePushOnResize:!1,pushDirections:{north:!0,east:!0,south:!0,west:!0},pushResizeItems:!1,displayGrid:DisplayGrid.OnDragAndResize,disableWindowResize:!1,disableWarnings:!1,scrollToNewItems:!1,disableScrollHorizontal:!1,disableScrollVertical:!1,enableBoundaryControl:!1,disableAutoPositionOnConflict:!1,dirType:DirTypes.LTR},GridsterUtils=class _GridsterUtils{static merge(obj1,obj2,properties){for(let p in obj2)obj2[p]!==void 0&&properties.hasOwnProperty(p)&&(typeof obj2[p]=="object"?(p in obj1||(obj1[p]={}),obj1[p]=_GridsterUtils.merge(obj1[p],obj2[p],properties[p])):obj1[p]=obj2[p]);return obj1}static checkTouchEvent(e){e.clientX===void 0&&e.touches&&(e.touches&&e.touches.length?(e.clientX=e.touches[0].clientX,e.clientY=e.touches[0].clientY):e.changedTouches&&e.changedTouches.length&&(e.clientX=e.changedTouches[0].clientX,e.clientY=e.changedTouches[0].clientY))}static checkContentClassForEvent(gridster,e){if(gridster.$options.draggable.ignoreContent){if(!_GridsterUtils.checkDragHandleClass(e.target,e.currentTarget,gridster.$options.draggable.dragHandleClass,gridster.$options.draggable.ignoreContentClass))return!0}else if(_GridsterUtils.checkContentClass(e.target,e.currentTarget,gridster.$options.draggable.ignoreContentClass))return!0;return!1}static checkContentClassForEmptyCellClickEvent(gridster,e){return _GridsterUtils.checkContentClass(e.target,e.currentTarget,gridster.$options.draggable.ignoreContentClass)||_GridsterUtils.checkContentClass(e.target,e.currentTarget,gridster.$options.draggable.dragHandleClass)}static checkDragHandleClass(target,current,dragHandleClass,ignoreContentClass){if(!target||target===current)return!1;if(target.hasAttribute("class")){let classnames=target.getAttribute("class").split(" ");if(classnames.indexOf(dragHandleClass)>-1)return!0;if(classnames.indexOf(ignoreContentClass)>-1)return!1}return _GridsterUtils.checkDragHandleClass(target.parentNode,current,dragHandleClass,ignoreContentClass)}static checkContentClass(target,current,contentClass){return!target||target===current?!1:target.hasAttribute("class")&&target.getAttribute("class").split(" ").indexOf(contentClass)>-1?!0:_GridsterUtils.checkContentClass(target.parentNode,current,contentClass)}static compareItems(a,b){return a.y>b.y?-1:a.y<b.y?1:a.x>b.x?-1:1}},GridsterEmptyCell=class{gridster;initialItem;removeEmptyCellClickListenerFn;removeEmptyCellTouchendListenerFn;removeEmptyCellContextMenuListenerFn;removeEmptyCellDropListenerFn;removeEmptyCellMousedownListenerFn;removeEmptyCellTouchstartListenerFn;removeWindowMousemoveListenerFn;removeWindowTouchmoveListenerFn;removeWindowMouseupListenerFn;removeWindowTouchendListenerFn;removeEmptyCellDragoverListenerFn;removeDocumentDragendListenerFn;constructor(gridster){this.gridster=gridster}destroy(){this.gridster.previewStyle&&this.gridster.previewStyle(),this.gridster.movingItem=null,this.initialItem=this.gridster=null,this.removeDocumentDragendListenerFn&&(this.removeDocumentDragendListenerFn(),this.removeDocumentDragendListenerFn=null)}updateOptions(){this.gridster.$options.enableEmptyCellClick&&!this.removeEmptyCellClickListenerFn&&this.gridster.options.emptyCellClickCallback?(this.removeEmptyCellClickListenerFn=this.gridster.renderer.listen(this.gridster.el,"click",this.emptyCellClickCb),this.removeEmptyCellTouchendListenerFn=this.gridster.renderer.listen(this.gridster.el,"touchend",this.emptyCellClickCb)):!this.gridster.$options.enableEmptyCellClick&&this.removeEmptyCellClickListenerFn&&this.removeEmptyCellTouchendListenerFn&&(this.removeEmptyCellClickListenerFn(),this.removeEmptyCellTouchendListenerFn(),this.removeEmptyCellClickListenerFn=null,this.removeEmptyCellTouchendListenerFn=null),this.gridster.$options.enableEmptyCellContextMenu&&!this.removeEmptyCellContextMenuListenerFn&&this.gridster.options.emptyCellContextMenuCallback?this.removeEmptyCellContextMenuListenerFn=this.gridster.renderer.listen(this.gridster.el,"contextmenu",this.emptyCellContextMenuCb):!this.gridster.$options.enableEmptyCellContextMenu&&this.removeEmptyCellContextMenuListenerFn&&(this.removeEmptyCellContextMenuListenerFn(),this.removeEmptyCellContextMenuListenerFn=null),this.gridster.$options.enableEmptyCellDrop&&!this.removeEmptyCellDropListenerFn&&this.gridster.options.emptyCellDropCallback?(this.removeEmptyCellDropListenerFn=this.gridster.renderer.listen(this.gridster.el,"drop",this.emptyCellDragDrop),this.gridster.zone.runOutsideAngular(()=>{this.removeEmptyCellDragoverListenerFn=this.gridster.renderer.listen(this.gridster.el,"dragover",this.emptyCellDragOver)}),this.removeDocumentDragendListenerFn=this.gridster.renderer.listen("document","dragend",()=>{this.gridster.movingItem=null,this.gridster.previewStyle()})):!this.gridster.$options.enableEmptyCellDrop&&this.removeEmptyCellDropListenerFn&&this.removeEmptyCellDragoverListenerFn&&this.removeDocumentDragendListenerFn&&(this.removeEmptyCellDropListenerFn(),this.removeEmptyCellDragoverListenerFn(),this.removeDocumentDragendListenerFn(),this.removeEmptyCellDragoverListenerFn=null,this.removeEmptyCellDropListenerFn=null,this.removeDocumentDragendListenerFn=null),this.gridster.$options.enableEmptyCellDrag&&!this.removeEmptyCellMousedownListenerFn&&this.gridster.options.emptyCellDragCallback?(this.removeEmptyCellMousedownListenerFn=this.gridster.renderer.listen(this.gridster.el,"mousedown",this.emptyCellMouseDown),this.removeEmptyCellTouchstartListenerFn=this.gridster.renderer.listen(this.gridster.el,"touchstart",this.emptyCellMouseDown)):!this.gridster.$options.enableEmptyCellDrag&&this.removeEmptyCellMousedownListenerFn&&this.removeEmptyCellTouchstartListenerFn&&(this.removeEmptyCellMousedownListenerFn(),this.removeEmptyCellTouchstartListenerFn(),this.removeEmptyCellMousedownListenerFn=null,this.removeEmptyCellTouchstartListenerFn=null)}emptyCellClickCb=e=>{if(!this.gridster||this.gridster.movingItem||GridsterUtils.checkContentClassForEmptyCellClickEvent(this.gridster,e))return;let item=this.getValidItemFromEvent(e);item&&(this.gridster.options.emptyCellClickCallback&&this.gridster.options.emptyCellClickCallback(e,item),this.gridster.cdRef.markForCheck())};emptyCellContextMenuCb=e=>{if(this.gridster.movingItem||GridsterUtils.checkContentClassForEmptyCellClickEvent(this.gridster,e))return;e.preventDefault(),e.stopPropagation();let item=this.getValidItemFromEvent(e);item&&(this.gridster.options.emptyCellContextMenuCallback&&this.gridster.options.emptyCellContextMenuCallback(e,item),this.gridster.cdRef.markForCheck())};emptyCellDragDrop=e=>{let item=this.getValidItemFromEvent(e);item&&(this.gridster.options.emptyCellDropCallback&&this.gridster.options.emptyCellDropCallback(e,item),this.gridster.cdRef.markForCheck())};emptyCellDragOver=e=>{e.preventDefault(),e.stopPropagation();let item=this.getValidItemFromEvent(e);item?(e.dataTransfer&&(e.dataTransfer.dropEffect="move"),this.gridster.movingItem=item):(e.dataTransfer&&(e.dataTransfer.dropEffect="none"),this.gridster.movingItem=null),this.gridster.previewStyle()};emptyCellMouseDown=e=>{if(GridsterUtils.checkContentClassForEmptyCellClickEvent(this.gridster,e))return;e.preventDefault(),e.stopPropagation();let item=this.getValidItemFromEvent(e);!item||e.buttons!==1&&!(e instanceof TouchEvent)||(this.initialItem=item,this.gridster.movingItem=item,this.gridster.previewStyle(),this.gridster.zone.runOutsideAngular(()=>{this.removeWindowMousemoveListenerFn=this.gridster.renderer.listen("window","mousemove",this.emptyCellMouseMove),this.removeWindowTouchmoveListenerFn=this.gridster.renderer.listen("window","touchmove",this.emptyCellMouseMove)}),this.removeWindowMouseupListenerFn=this.gridster.renderer.listen("window","mouseup",this.emptyCellMouseUp),this.removeWindowTouchendListenerFn=this.gridster.renderer.listen("window","touchend",this.emptyCellMouseUp))};emptyCellMouseMove=e=>{e.preventDefault(),e.stopPropagation();let item=this.getValidItemFromEvent(e,this.initialItem);item&&(this.gridster.movingItem=item,this.gridster.previewStyle())};emptyCellMouseUp=e=>{this.removeWindowMousemoveListenerFn(),this.removeWindowTouchmoveListenerFn(),this.removeWindowMouseupListenerFn(),this.removeWindowTouchendListenerFn();let item=this.getValidItemFromEvent(e,this.initialItem);item&&(this.gridster.movingItem=item),this.gridster.options.emptyCellDragCallback&&this.gridster.movingItem&&this.gridster.options.emptyCellDragCallback(e,this.gridster.movingItem),setTimeout(()=>{this.initialItem=null,this.gridster&&(this.gridster.movingItem=null,this.gridster.previewStyle())}),this.gridster.cdRef.markForCheck()};getPixelsX(e,rect){let scale=this.gridster.options.scale;return scale?(e.clientX-rect.left)/scale+this.gridster.el.scrollLeft-this.gridster.gridRenderer.getLeftMargin():e.clientX+this.gridster.el.scrollLeft-rect.left-this.gridster.gridRenderer.getLeftMargin()}getPixelsY(e,rect){let scale=this.gridster.options.scale;return scale?(e.clientY-rect.top)/scale+this.gridster.el.scrollTop-this.gridster.gridRenderer.getTopMargin():e.clientY+this.gridster.el.scrollTop-rect.top-this.gridster.gridRenderer.getTopMargin()}getValidItemFromEvent(e,oldItem){e.preventDefault(),e.stopPropagation(),GridsterUtils.checkTouchEvent(e);let rect=this.gridster.el.getBoundingClientRect(),x=this.getPixelsX(e,rect),y=this.getPixelsY(e,rect),item={x:this.gridster.pixelsToPositionX(x,Math.floor,!0),y:this.gridster.pixelsToPositionY(y,Math.floor,!0),cols:this.gridster.$options.defaultItemCols,rows:this.gridster.$options.defaultItemRows};if(oldItem&&(item.cols=Math.min(Math.abs(oldItem.x-item.x)+1,this.gridster.$options.emptyCellDragMaxCols),item.rows=Math.min(Math.abs(oldItem.y-item.y)+1,this.gridster.$options.emptyCellDragMaxRows),oldItem.x<item.x?item.x=oldItem.x:oldItem.x-item.x>this.gridster.$options.emptyCellDragMaxCols-1&&(item.x=this.gridster.movingItem?this.gridster.movingItem.x:0),oldItem.y<item.y?item.y=oldItem.y:oldItem.y-item.y>this.gridster.$options.emptyCellDragMaxRows-1&&(item.y=this.gridster.movingItem?this.gridster.movingItem.y:0)),!(!this.gridster.$options.enableOccupiedCellDrop&&this.gridster.checkCollision(item)))return item}},GridsterRenderer=class{gridster;lastGridColumnStyles={};lastGridRowStyles={};constructor(gridster){this.gridster=gridster}destroy(){this.gridster=null}updateItem(el,item,renderer){if(this.gridster.mobile)this.clearCellPosition(renderer,el),this.gridster.$options.keepFixedHeightInMobile?renderer.setStyle(el,"height",(item.rows-1)*this.gridster.$options.margin+item.rows*this.gridster.$options.fixedRowHeight+"px"):renderer.setStyle(el,"height",item.rows*this.gridster.curWidth/item.cols+"px"),this.gridster.$options.keepFixedWidthInMobile?renderer.setStyle(el,"width",this.gridster.$options.fixedColWidth+"px"):renderer.setStyle(el,"width",""),renderer.setStyle(el,"margin-bottom",this.gridster.$options.margin+"px"),renderer.setStyle(el,DirTypes.LTR?"margin-right":"margin-left","");else{let x=Math.round(this.gridster.curColWidth*item.x),y=Math.round(this.gridster.curRowHeight*item.y),width=this.gridster.curColWidth*item.cols-this.gridster.$options.margin,height=this.gridster.curRowHeight*item.rows-this.gridster.$options.margin;this.setCellPosition(renderer,el,x,y),renderer.setStyle(el,"width",width+"px"),renderer.setStyle(el,"height",height+"px");let marginBottom=null,marginRight=null;this.gridster.$options.outerMargin&&(this.gridster.rows===item.rows+item.y&&(this.gridster.$options.outerMarginBottom!==null?marginBottom=this.gridster.$options.outerMarginBottom+"px":marginBottom=this.gridster.$options.margin+"px"),this.gridster.columns===item.cols+item.x&&(this.gridster.$options.outerMarginBottom!==null?marginRight=this.gridster.$options.outerMarginRight+"px":marginRight=this.gridster.$options.margin+"px")),renderer.setStyle(el,"margin-bottom",marginBottom),renderer.setStyle(el,DirTypes.LTR?"margin-right":"margin-left",marginRight)}}updateGridster(){let addClass2="",removeClass1="",removeClass2="",removeClass3="";if(this.gridster.$options.gridType===GridType.Fit)addClass2=GridType.Fit,removeClass1=GridType.ScrollVertical,removeClass2=GridType.ScrollHorizontal,removeClass3=GridType.Fixed;else if(this.gridster.$options.gridType===GridType.ScrollVertical)this.gridster.curRowHeight=this.gridster.curColWidth*this.gridster.$options.rowHeightRatio,addClass2=GridType.ScrollVertical,removeClass1=GridType.Fit,removeClass2=GridType.ScrollHorizontal,removeClass3=GridType.Fixed;else if(this.gridster.$options.gridType===GridType.ScrollHorizontal){let widthRatio=this.gridster.$options.rowHeightRatio,calWidthRatio=widthRatio>=1?widthRatio:widthRatio+1;this.gridster.curColWidth=this.gridster.curRowHeight*calWidthRatio,addClass2=GridType.ScrollHorizontal,removeClass1=GridType.Fit,removeClass2=GridType.ScrollVertical,removeClass3=GridType.Fixed}else this.gridster.$options.gridType===GridType.Fixed?(this.gridster.curColWidth=this.gridster.$options.fixedColWidth+(this.gridster.$options.ignoreMarginInRow?0:this.gridster.$options.margin),this.gridster.curRowHeight=this.gridster.$options.fixedRowHeight+(this.gridster.$options.ignoreMarginInRow?0:this.gridster.$options.margin),addClass2=GridType.Fixed,removeClass1=GridType.Fit,removeClass2=GridType.ScrollVertical,removeClass3=GridType.ScrollHorizontal):this.gridster.$options.gridType===GridType.VerticalFixed?(this.gridster.curRowHeight=this.gridster.$options.fixedRowHeight+(this.gridster.$options.ignoreMarginInRow?0:this.gridster.$options.margin),addClass2=GridType.ScrollVertical,removeClass1=GridType.Fit,removeClass2=GridType.ScrollHorizontal,removeClass3=GridType.Fixed):this.gridster.$options.gridType===GridType.HorizontalFixed&&(this.gridster.curColWidth=this.gridster.$options.fixedColWidth+(this.gridster.$options.ignoreMarginInRow?0:this.gridster.$options.margin),addClass2=GridType.ScrollHorizontal,removeClass1=GridType.Fit,removeClass2=GridType.ScrollVertical,removeClass3=GridType.Fixed);this.gridster.mobile||this.gridster.$options.setGridSize&&this.gridster.$options.gridType!==GridType.Fit?this.gridster.renderer.removeClass(this.gridster.el,addClass2):this.gridster.renderer.addClass(this.gridster.el,addClass2),this.gridster.renderer.removeClass(this.gridster.el,removeClass1),this.gridster.renderer.removeClass(this.gridster.el,removeClass2),this.gridster.renderer.removeClass(this.gridster.el,removeClass3)}getGridColumnStyle(i){let newPos={left:this.gridster.curColWidth*i,width:this.gridster.curColWidth-this.gridster.$options.margin,height:this.gridster.gridRows.length*this.gridster.curRowHeight-this.gridster.$options.margin,style:{}};newPos.style=__spreadProps(__spreadValues({},this.getLeftPosition(newPos.left)),{width:newPos.width+"px",height:newPos.height+"px"});let last2=this.lastGridColumnStyles[i];return last2&&last2.left===newPos.left&&last2.width===newPos.width&&last2.height===newPos.height?last2.style:(this.lastGridColumnStyles[i]=newPos,newPos.style)}getGridRowStyle(i){let newPos={top:this.gridster.curRowHeight*i,width:this.gridster.gridColumns.length*this.gridster.curColWidth+this.gridster.$options.margin,height:this.gridster.curRowHeight-this.gridster.$options.margin,style:{}};newPos.style=__spreadProps(__spreadValues({},this.getTopPosition(newPos.top)),{width:newPos.width+"px",height:newPos.height+"px"});let last2=this.lastGridRowStyles[i];return last2&&last2.top===newPos.top&&last2.width===newPos.width&&last2.height===newPos.height?last2.style:(this.lastGridRowStyles[i]=newPos,newPos.style)}getLeftPosition(d){let dPosition=this.gridster.$options.dirType===DirTypes.RTL?-d:d;return this.gridster.$options.useTransformPositioning?{transform:"translateX("+dPosition+"px)"}:{left:this.getLeftMargin()+dPosition+"px"}}getTopPosition(d){return this.gridster.$options.useTransformPositioning?{transform:"translateY("+d+"px)"}:{top:this.getTopMargin()+d+"px"}}clearCellPosition(renderer,el){this.gridster.$options.useTransformPositioning?renderer.setStyle(el,"transform",""):(renderer.setStyle(el,"top",""),renderer.setStyle(el,"left",""))}setCellPosition(renderer,el,x,y){let xPosition=this.gridster.$options.dirType===DirTypes.RTL?-x:x;if(this.gridster.$options.useTransformPositioning){let transform="translate3d("+xPosition+"px, "+y+"px, 0)";renderer.setStyle(el,"transform",transform)}else renderer.setStyle(el,"left",this.getLeftMargin()+xPosition+"px"),renderer.setStyle(el,"top",this.getTopMargin()+y+"px")}getLeftMargin(){return this.gridster.$options.outerMargin?this.gridster.$options.outerMarginLeft!==null?this.gridster.$options.outerMarginLeft:this.gridster.$options.margin:0}getTopMargin(){return this.gridster.$options.outerMargin?this.gridster.$options.outerMarginTop!==null?this.gridster.$options.outerMarginTop:this.gridster.$options.margin:0}},GridsterPreviewComponent=(()=>{class GridsterPreviewComponent2{renderer;previewStyle$;gridRenderer;el;sub;constructor(el,renderer){this.renderer=renderer,this.el=el.nativeElement}ngOnInit(){this.sub=this.previewStyle$.subscribe(options=>this.previewStyle(options))}ngOnDestroy(){this.sub&&this.sub.unsubscribe()}previewStyle(item){item?(this.renderer.setStyle(this.el,"display","block"),this.gridRenderer.updateItem(this.el,item,this.renderer)):this.renderer.setStyle(this.el,"display","")}static \u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||GridsterPreviewComponent2)(\u0275\u0275directiveInject(ElementRef),\u0275\u0275directiveInject(Renderer2))};static \u0275cmp=\u0275\u0275defineComponent({type:GridsterPreviewComponent2,selectors:[["gridster-preview"]],inputs:{previewStyle$:"previewStyle$",gridRenderer:"gridRenderer"},decls:0,vars:0,template:function(rf,ctx){},styles:[`gridster-preview{position:absolute;display:none;background:#00000026}
46
46
  `],encapsulation:2})}return GridsterPreviewComponent2})(),GridsterComponent=(()=>{class GridsterComponent2{renderer;cdRef;zone;options;movingItem;el;$options;mobile;curWidth;curHeight;grid;columns=0;rows=0;curColWidth;curRowHeight;gridColumns=[];gridRows=[];windowResize;dragInProgress;emptyCell;compact;gridRenderer;previewStyle$=new EventEmitter;calculateLayout$=new Subject;resize$=new Subject;destroy$=new Subject;constructor(el,renderer,cdRef,zone){this.renderer=renderer,this.cdRef=cdRef,this.zone=zone,this.el=el.nativeElement,this.$options=JSON.parse(JSON.stringify(GridsterConfigService)),this.mobile=!1,this.curWidth=0,this.curHeight=0,this.grid=[],this.curColWidth=0,this.curRowHeight=0,this.dragInProgress=!1,this.emptyCell=new GridsterEmptyCell(this),this.compact=new GridsterCompact(this),this.gridRenderer=new GridsterRenderer(this)}static checkCollisionTwoItemsForSwaping(item,item2){let horizontalBoundaryItem1=item.cols===1?0:1,horizontalBoundaryItem2=item2.cols===1?0:1,verticalBoundaryItem1=item.rows===1?0:1,verticalBoundaryItem2=item2.rows===1?0:1;return item.x+horizontalBoundaryItem1<item2.x+item2.cols&&item.x+item.cols>item2.x+horizontalBoundaryItem2&&item.y+verticalBoundaryItem1<item2.y+item2.rows&&item.y+item.rows>item2.y+verticalBoundaryItem2}checkCollisionTwoItems(item,item2){if(!(item.x<item2.x+item2.cols&&item.x+item.cols>item2.x&&item.y<item2.y+item2.rows&&item.y+item.rows>item2.y))return!1;if(!this.$options.allowMultiLayer)return!0;let defaultLayerIndex=this.$options.defaultLayerIndex,layerIndex=item.layerIndex===void 0?defaultLayerIndex:item.layerIndex,layerIndex2=item2.layerIndex===void 0?defaultLayerIndex:item2.layerIndex;return layerIndex===layerIndex2}ngOnInit(){this.options.initCallback&&this.options.initCallback(this),this.calculateLayout$.pipe(debounceTime(0),takeUntil(this.destroy$)).subscribe(()=>this.calculateLayout()),this.resize$.pipe(switchMap(()=>timer(100)),takeUntil(this.destroy$)).subscribe(()=>this.resize())}ngOnChanges(changes){changes.options&&(this.setOptions(),this.options.api={optionsChanged:this.optionsChanged,resize:this.onResize,getNextPossiblePosition:this.getNextPossiblePosition,getFirstPossiblePosition:this.getFirstPossiblePosition,getLastPossiblePosition:this.getLastPossiblePosition,getItemComponent:item=>this.getItemComponent(item)},this.columns=this.$options.minCols,this.rows=this.$options.minRows+this.$options.addEmptyRowsCount,this.setGridSize(),this.calculateLayout())}resize(){let height,width;this.$options.gridType==="fit"&&!this.mobile?(width=this.el.offsetWidth,height=this.el.offsetHeight):(width=this.el.clientWidth,height=this.el.clientHeight),(width!==this.curWidth||height!==this.curHeight)&&this.checkIfToResize()&&this.onResize()}setOptions(){this.$options=GridsterUtils.merge(this.$options,this.options,this.$options),!this.$options.disableWindowResize&&!this.windowResize?this.windowResize=this.renderer.listen("window","resize",this.onResize):this.$options.disableWindowResize&&this.windowResize&&(this.windowResize(),this.windowResize=null),this.emptyCell.updateOptions()}optionsChanged=()=>{this.setOptions();let widgetsIndex=this.grid.length-1,widget;for(;widgetsIndex>=0;widgetsIndex--)widget=this.grid[widgetsIndex],widget.updateOptions();this.calculateLayout()};ngOnDestroy(){this.destroy$.next(),this.previewStyle$.complete(),this.windowResize&&this.windowResize(),this.options&&this.options.destroyCallback&&this.options.destroyCallback(this),this.options&&this.options.api&&(this.options.api.resize=void 0,this.options.api.optionsChanged=void 0,this.options.api.getNextPossiblePosition=void 0,this.options.api=void 0),this.emptyCell.destroy(),this.emptyCell=null,this.compact.destroy(),this.compact=null}onResize=()=>{this.el.clientWidth&&(this.options.setGridSize&&(this.renderer.setStyle(this.el,"width",""),this.renderer.setStyle(this.el,"height","")),this.setGridSize(),this.calculateLayout())};checkIfToResize(){let clientWidth=this.el.clientWidth,offsetWidth=this.el.offsetWidth,scrollWidth=this.el.scrollWidth,clientHeight=this.el.clientHeight,offsetHeight=this.el.offsetHeight,scrollHeight=this.el.scrollHeight,verticalScrollPresent=clientWidth<offsetWidth&&scrollHeight>offsetHeight&&scrollHeight-offsetHeight<offsetWidth-clientWidth,horizontalScrollPresent=clientHeight<offsetHeight&&scrollWidth>offsetWidth&&scrollWidth-offsetWidth<offsetHeight-clientHeight;return verticalScrollPresent?!1:!horizontalScrollPresent}checkIfMobile(){return this.$options.useBodyForBreakpoint?this.$options.mobileBreakpoint>document.body.clientWidth:this.$options.mobileBreakpoint>this.curWidth}setGridSize(){let el=this.el,width,height;this.$options.setGridSize||this.$options.gridType===GridType.Fit&&!this.mobile?(width=el.offsetWidth,height=el.offsetHeight):(width=el.clientWidth,height=el.clientHeight),this.curWidth=width,this.curHeight=height}setGridDimensions(){this.setGridSize(),!this.mobile&&this.checkIfMobile()?(this.mobile=!this.mobile,this.renderer.addClass(this.el,"mobile")):this.mobile&&!this.checkIfMobile()&&(this.mobile=!this.mobile,this.renderer.removeClass(this.el,"mobile"));let rows=this.$options.minRows,columns=this.$options.minCols,widgetsIndex=this.grid.length-1,widget;for(;widgetsIndex>=0;widgetsIndex--)widget=this.grid[widgetsIndex],widget.notPlaced||(rows=Math.max(rows,widget.$item.y+widget.$item.rows),columns=Math.max(columns,widget.$item.x+widget.$item.cols));rows+=this.$options.addEmptyRowsCount,(this.columns!==columns||this.rows!==rows)&&(this.columns=columns,this.rows=rows,this.options.gridSizeChangedCallback&&this.options.gridSizeChangedCallback(this))}calculateLayout(){if(this.compact&&this.compact.checkCompact(),this.setGridDimensions(),this.$options.outerMargin){let marginWidth=-this.$options.margin;this.$options.outerMarginLeft!==null?(marginWidth+=this.$options.outerMarginLeft,this.renderer.setStyle(this.el,"padding-left",this.$options.outerMarginLeft+"px")):(marginWidth+=this.$options.margin,this.renderer.setStyle(this.el,"padding-left",this.$options.margin+"px")),this.$options.outerMarginRight!==null?(marginWidth+=this.$options.outerMarginRight,this.renderer.setStyle(this.el,"padding-right",this.$options.outerMarginRight+"px")):(marginWidth+=this.$options.margin,this.renderer.setStyle(this.el,"padding-right",this.$options.margin+"px")),this.curColWidth=(this.curWidth-marginWidth)/this.columns;let marginHeight=-this.$options.margin;this.$options.outerMarginTop!==null?(marginHeight+=this.$options.outerMarginTop,this.renderer.setStyle(this.el,"padding-top",this.$options.outerMarginTop+"px")):(marginHeight+=this.$options.margin,this.renderer.setStyle(this.el,"padding-top",this.$options.margin+"px")),this.$options.outerMarginBottom!==null?(marginHeight+=this.$options.outerMarginBottom,this.renderer.setStyle(this.el,"padding-bottom",this.$options.outerMarginBottom+"px")):(marginHeight+=this.$options.margin,this.renderer.setStyle(this.el,"padding-bottom",this.$options.margin+"px")),this.curRowHeight=(this.curHeight-marginHeight)/this.rows*this.$options.rowHeightRatio}else this.curColWidth=(this.curWidth+this.$options.margin)/this.columns,this.curRowHeight=(this.curHeight+this.$options.margin)/this.rows*this.$options.rowHeightRatio,this.renderer.setStyle(this.el,"padding-left","0px"),this.renderer.setStyle(this.el,"padding-right","0px"),this.renderer.setStyle(this.el,"padding-top","0px"),this.renderer.setStyle(this.el,"padding-bottom","0px");this.gridRenderer.updateGridster(),this.$options.setGridSize?(this.renderer.addClass(this.el,"gridSize"),this.mobile||(this.renderer.setStyle(this.el,"width",this.columns*this.curColWidth+this.$options.margin+"px"),this.renderer.setStyle(this.el,"height",this.rows*this.curRowHeight+this.$options.margin+"px"))):(this.renderer.removeClass(this.el,"gridSize"),this.renderer.setStyle(this.el,"width",""),this.renderer.setStyle(this.el,"height","")),this.updateGrid();let widgetsIndex=this.grid.length-1,widget;for(;widgetsIndex>=0;widgetsIndex--)widget=this.grid[widgetsIndex],widget.setSize(),widget.drag.toggle(),widget.resize.toggle();this.resize$.next()}updateGrid(){this.$options.displayGrid==="always"&&!this.mobile?this.renderer.addClass(this.el,"display-grid"):this.$options.displayGrid==="onDrag&Resize"&&this.dragInProgress?this.renderer.addClass(this.el,"display-grid"):(this.$options.displayGrid==="none"||!this.dragInProgress||this.mobile)&&this.renderer.removeClass(this.el,"display-grid"),this.setGridDimensions(),this.gridColumns.length=GridsterComponent2.getNewArrayLength(this.columns,this.curWidth,this.curColWidth),this.gridRows.length=GridsterComponent2.getNewArrayLength(this.rows,this.curHeight,this.curRowHeight),this.cdRef.markForCheck()}addItem(itemComponent){itemComponent.$item.cols===void 0&&(itemComponent.$item.cols=this.$options.defaultItemCols,itemComponent.item.cols=itemComponent.$item.cols,itemComponent.itemChanged()),itemComponent.$item.rows===void 0&&(itemComponent.$item.rows=this.$options.defaultItemRows,itemComponent.item.rows=itemComponent.$item.rows,itemComponent.itemChanged()),itemComponent.$item.x===-1||itemComponent.$item.y===-1?this.autoPositionItem(itemComponent):this.checkCollision(itemComponent.$item)&&(this.$options.disableWarnings||(itemComponent.notPlaced=!0,console.warn("Can't be placed in the bounds of the dashboard, trying to auto position!/n"+JSON.stringify(itemComponent.item,["cols","rows","x","y"]))),this.$options.disableAutoPositionOnConflict?itemComponent.notPlaced=!0:this.autoPositionItem(itemComponent)),this.grid.push(itemComponent),this.calculateLayout$.next()}removeItem(itemComponent){this.grid.splice(this.grid.indexOf(itemComponent),1),this.calculateLayout$.next(),this.options.itemRemovedCallback&&this.options.itemRemovedCallback(itemComponent.item,itemComponent)}checkCollision(item){let collision=!1;if(this.options.itemValidateCallback&&(collision=!this.options.itemValidateCallback(item)),!collision&&this.checkGridCollision(item)&&(collision=!0),!collision){let c=this.findItemWithItem(item);c&&(collision=c)}return collision}checkGridCollision(item){let noNegativePosition=item.y>-1&&item.x>-1,maxGridCols=item.cols+item.x<=this.$options.maxCols,maxGridRows=item.rows+item.y<=this.$options.maxRows,maxItemCols=item.maxItemCols===void 0?this.$options.maxItemCols:item.maxItemCols,minItemCols=item.minItemCols===void 0?this.$options.minItemCols:item.minItemCols,maxItemRows=item.maxItemRows===void 0?this.$options.maxItemRows:item.maxItemRows,minItemRows=item.minItemRows===void 0?this.$options.minItemRows:item.minItemRows,inColsLimits=item.cols<=maxItemCols&&item.cols>=minItemCols,inRowsLimits=item.rows<=maxItemRows&&item.rows>=minItemRows,minAreaLimit=item.minItemArea===void 0?this.$options.minItemArea:item.minItemArea,maxAreaLimit=item.maxItemArea===void 0?this.$options.maxItemArea:item.maxItemArea,area=item.cols*item.rows,inMinArea=minAreaLimit<=area,inMaxArea=maxAreaLimit>=area;return!(noNegativePosition&&maxGridCols&&maxGridRows&&inColsLimits&&inRowsLimits&&inMinArea&&inMaxArea)}findItemWithItem(item){let widgetsIndex=0,widget;for(;widgetsIndex<this.grid.length;widgetsIndex++)if(widget=this.grid[widgetsIndex],widget.$item!==item&&this.checkCollisionTwoItems(widget.$item,item))return widget;return!1}findItemsWithItem(item){let a=[],widgetsIndex=0,widget;for(;widgetsIndex<this.grid.length;widgetsIndex++)widget=this.grid[widgetsIndex],widget.$item!==item&&this.checkCollisionTwoItems(widget.$item,item)&&a.push(widget);return a}autoPositionItem(itemComponent){this.getNextPossiblePosition(itemComponent.$item)?(itemComponent.notPlaced=!1,itemComponent.item.x=itemComponent.$item.x,itemComponent.item.y=itemComponent.$item.y,itemComponent.itemChanged()):(itemComponent.notPlaced=!0,this.$options.disableWarnings||console.warn("Can't be placed in the bounds of the dashboard!/n"+JSON.stringify(itemComponent.item,["cols","rows","x","y"])))}getNextPossiblePosition=(newItem,startingFrom={})=>{newItem.cols===-1&&(newItem.cols=this.$options.defaultItemCols),newItem.rows===-1&&(newItem.rows=this.$options.defaultItemRows),this.setGridDimensions();let rowsIndex=startingFrom.y||0,colsIndex;for(;rowsIndex<this.rows;rowsIndex++)for(newItem.y=rowsIndex,colsIndex=startingFrom.x||0;colsIndex<this.columns;colsIndex++)if(newItem.x=colsIndex,!this.checkCollision(newItem))return!0;let canAddToRows=this.$options.maxRows>=this.rows+newItem.rows,canAddToColumns=this.$options.maxCols>=this.columns+newItem.cols;return!(this.rows<=this.columns&&canAddToRows)&&canAddToColumns?(newItem.x=this.columns,newItem.y=0,!0):canAddToRows?(newItem.y=this.rows,newItem.x=0,!0):!1};getFirstPossiblePosition=item=>{let tmpItem=Object.assign({},item);return this.getNextPossiblePosition(tmpItem),tmpItem};getLastPossiblePosition=item=>{let farthestItem={y:0,x:0};farthestItem=this.grid.reduce((prev,curr)=>{let currCoords={y:curr.$item.y+curr.$item.rows-1,x:curr.$item.x+curr.$item.cols-1};return GridsterUtils.compareItems(prev,currCoords)===1?currCoords:prev},farthestItem);let tmpItem=Object.assign({},item);return this.getNextPossiblePosition(tmpItem,farthestItem),tmpItem};pixelsToPositionX(x,roundingMethod,noLimit){let position=roundingMethod(x/this.curColWidth);return noLimit?position:Math.max(position,0)}pixelsToPositionY(y,roundingMethod,noLimit){let position=roundingMethod(y/this.curRowHeight);return noLimit?position:Math.max(position,0)}positionXToPixels(x){return x*this.curColWidth}positionYToPixels(y){return y*this.curRowHeight}getItemComponent(item){return this.grid.find(c=>c.item===item)}checkCollisionForSwaping(item){let collision=!1;if(this.options.itemValidateCallback&&(collision=!this.options.itemValidateCallback(item)),!collision&&this.checkGridCollision(item)&&(collision=!0),!collision){let c=this.findItemWithItemForSwapping(item);c&&(collision=c)}return collision}findItemWithItemForSwapping(item){let widgetsIndex=this.grid.length-1,widget;for(;widgetsIndex>-1;widgetsIndex--)if(widget=this.grid[widgetsIndex],widget.$item!==item&&GridsterComponent2.checkCollisionTwoItemsForSwaping(widget.$item,item))return widget;return!1}previewStyle(drag=!1){this.movingItem?(this.compact&&drag&&this.compact.checkCompactItem(this.movingItem),this.previewStyle$.next(this.movingItem)):this.previewStyle$.next(null)}static getNewArrayLength(length,overallSize,size){let newLength=Math.max(length,Math.floor(overallSize/size));return newLength<0?0:Number.isFinite(newLength)?Math.floor(newLength):0}static \u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||GridsterComponent2)(\u0275\u0275directiveInject(ElementRef),\u0275\u0275directiveInject(Renderer2),\u0275\u0275directiveInject(ChangeDetectorRef),\u0275\u0275directiveInject(NgZone))};static \u0275cmp=\u0275\u0275defineComponent({type:GridsterComponent2,selectors:[["gridster"]],inputs:{options:"options"},features:[\u0275\u0275NgOnChangesFeature],ngContentSelectors:_c0,decls:6,vars:2,consts:[[1,"gridster-column",3,"ngStyle"],[1,"gridster-row",3,"ngStyle"],[1,"gridster-preview",3,"gridRenderer","previewStyle$"]],template:function(rf,ctx){rf&1&&(\u0275\u0275projectionDef(),\u0275\u0275repeaterCreate(0,GridsterComponent_For_1_Template,1,1,"div",0,\u0275\u0275repeaterTrackByIndex),\u0275\u0275repeaterCreate(2,GridsterComponent_For_3_Template,1,1,"div",1,\u0275\u0275repeaterTrackByIndex),\u0275\u0275projection(4),\u0275\u0275element(5,"gridster-preview",2)),rf&2&&(\u0275\u0275repeater(ctx.gridColumns),\u0275\u0275advance(2),\u0275\u0275repeater(ctx.gridRows),\u0275\u0275advance(3),\u0275\u0275property("gridRenderer",ctx.gridRenderer)("previewStyle$",ctx.previewStyle$))},dependencies:[NgStyle,GridsterPreviewComponent],styles:[`gridster{position:relative;box-sizing:border-box;background:gray;width:100%;height:100%;-webkit-user-select:none;user-select:none;display:block}gridster.fit{overflow-x:hidden;overflow-y:hidden}gridster.scrollVertical{overflow-x:hidden;overflow-y:auto}gridster.scrollHorizontal{overflow-x:auto;overflow-y:hidden}gridster.fixed{overflow:auto}gridster.mobile{overflow-x:hidden;overflow-y:auto}gridster.mobile gridster-item{position:relative}gridster.gridSize{height:initial;width:initial}gridster.gridSize.fit{height:100%;width:100%}gridster .gridster-column,gridster .gridster-row{position:absolute;display:none;transition:.3s;box-sizing:border-box}gridster.display-grid .gridster-column,gridster.display-grid .gridster-row{display:block}gridster .gridster-column{border-left:1px solid white;border-right:1px solid white}gridster .gridster-row{border-top:1px solid white;border-bottom:1px solid white}
47
47
  `],encapsulation:2})}return GridsterComponent2})(),GridsterPush=class{fromSouth;fromNorth;fromEast;fromWest;pushedItems;pushedItemsTemp;pushedItemsTempPath;pushedItemsPath;gridsterItem;gridster;pushedItemsOrder;tryPattern;iteration=0;constructor(gridsterItem){this.pushedItems=[],this.pushedItemsTemp=[],this.pushedItemsTempPath=[],this.pushedItemsPath=[],this.gridsterItem=gridsterItem,this.gridster=gridsterItem.gridster,this.tryPattern={fromEast:[this.tryWest,this.trySouth,this.tryNorth,this.tryEast],fromWest:[this.tryEast,this.trySouth,this.tryNorth,this.tryWest],fromNorth:[this.trySouth,this.tryEast,this.tryWest,this.tryNorth],fromSouth:[this.tryNorth,this.tryEast,this.tryWest,this.trySouth]},this.fromSouth="fromSouth",this.fromNorth="fromNorth",this.fromEast="fromEast",this.fromWest="fromWest"}destroy(){this.gridster=this.gridsterItem=null}pushItems(direction,disable){if(this.gridster.$options.pushItems&&!disable){this.pushedItemsOrder=[],this.iteration=0;let pushed=this.push(this.gridsterItem,direction);return pushed||this.restoreTempItems(),this.pushedItemsOrder=[],this.pushedItemsTemp=[],this.pushedItemsTempPath=[],pushed}else return!1}restoreTempItems(){let i=this.pushedItemsTemp.length-1;for(;i>-1;i--)this.removeFromTempPushed(this.pushedItemsTemp[i])}restoreItems(){let i=0,l2=this.pushedItems.length,pushedItem;for(;i<l2;i++)pushedItem=this.pushedItems[i],pushedItem.$item.x=pushedItem.item.x||0,pushedItem.$item.y=pushedItem.item.y||0,pushedItem.setSize();this.pushedItems=[],this.pushedItemsPath=[]}setPushedItems(){let i=0,l2=this.pushedItems.length,pushedItem;for(;i<l2;i++)pushedItem=this.pushedItems[i],pushedItem.checkItemChanges(pushedItem.$item,pushedItem.item);this.pushedItems=[],this.pushedItemsPath=[]}checkPushBack(){let i=this.pushedItems.length-1,change=!1;for(;i>-1;i--)this.checkPushedItem(this.pushedItems[i],i)&&(change=!0);change&&this.checkPushBack()}push(gridsterItem,direction){if(this.iteration>100)return console.warn("max iteration reached"),!1;if(this.gridster.checkGridCollision(gridsterItem.$item)||direction==="")return!1;let conflicts=this.gridster.findItemsWithItem(gridsterItem.$item),invert=direction===this.fromNorth||direction===this.fromWest;conflicts.sort((a,b)=>invert?b.$item.y-a.$item.y||b.$item.x-a.$item.x:a.$item.y-b.$item.y||a.$item.x-b.$item.x);let i=0,itemCollision,makePush=!0,pushedItems=[];for(;i<conflicts.length;i++){if(itemCollision=conflicts[i],itemCollision===this.gridsterItem)continue;if(!itemCollision.canBeDragged()){makePush=!1;break}let p=this.pushedItemsTemp.indexOf(itemCollision);if(p>-1&&this.pushedItemsTempPath[p].length>10){makePush=!1;break}if(this.tryPattern[direction][0].call(this,itemCollision,gridsterItem))this.pushedItemsOrder.push(itemCollision),pushedItems.push(itemCollision);else if(this.tryPattern[direction][1].call(this,itemCollision,gridsterItem))this.pushedItemsOrder.push(itemCollision),pushedItems.push(itemCollision);else if(this.tryPattern[direction][2].call(this,itemCollision,gridsterItem))this.pushedItemsOrder.push(itemCollision),pushedItems.push(itemCollision);else if(this.tryPattern[direction][3].call(this,itemCollision,gridsterItem))this.pushedItemsOrder.push(itemCollision),pushedItems.push(itemCollision);else{makePush=!1;break}}if(!makePush&&(i=this.pushedItemsOrder.lastIndexOf(pushedItems[0]),i>-1)){let j=this.pushedItemsOrder.length-1;for(;j>=i;j--)itemCollision=this.pushedItemsOrder[j],this.pushedItemsOrder.pop(),this.removeFromTempPushed(itemCollision),this.removeFromPushedItem(itemCollision)}return this.iteration++,makePush}trySouth(gridsterItemCollide,gridsterItem){return this.gridster.$options.pushDirections.south?(this.addToTempPushed(gridsterItemCollide),gridsterItemCollide.$item.y=gridsterItem.$item.y+gridsterItem.$item.rows,this.push(gridsterItemCollide,this.fromNorth)?(gridsterItemCollide.setSize(),this.addToPushed(gridsterItemCollide),!0):(this.removeFromTempPushed(gridsterItemCollide),!1)):!1}tryNorth(gridsterItemCollide,gridsterItem){return this.gridster.$options.pushDirections.north?(this.addToTempPushed(gridsterItemCollide),gridsterItemCollide.$item.y=gridsterItem.$item.y-gridsterItemCollide.$item.rows,this.push(gridsterItemCollide,this.fromSouth)?(gridsterItemCollide.setSize(),this.addToPushed(gridsterItemCollide),!0):(this.removeFromTempPushed(gridsterItemCollide),!1)):!1}tryEast(gridsterItemCollide,gridsterItem){return this.gridster.$options.pushDirections.east?(this.addToTempPushed(gridsterItemCollide),gridsterItemCollide.$item.x=gridsterItem.$item.x+gridsterItem.$item.cols,this.push(gridsterItemCollide,this.fromWest)?(gridsterItemCollide.setSize(),this.addToPushed(gridsterItemCollide),!0):(this.removeFromTempPushed(gridsterItemCollide),!1)):!1}tryWest(gridsterItemCollide,gridsterItem){return this.gridster.$options.pushDirections.west?(this.addToTempPushed(gridsterItemCollide),gridsterItemCollide.$item.x=gridsterItem.$item.x-gridsterItemCollide.$item.cols,this.push(gridsterItemCollide,this.fromEast)?(gridsterItemCollide.setSize(),this.addToPushed(gridsterItemCollide),!0):(this.removeFromTempPushed(gridsterItemCollide),!1)):!1}addToTempPushed(gridsterItem){let i=this.pushedItemsTemp.indexOf(gridsterItem);i===-1&&(i=this.pushedItemsTemp.push(gridsterItem)-1,this.pushedItemsTempPath[i]=[]),this.pushedItemsTempPath[i].push({x:gridsterItem.$item.x,y:gridsterItem.$item.y})}removeFromTempPushed(gridsterItem){let i=this.pushedItemsTemp.indexOf(gridsterItem),tempPosition=this.pushedItemsTempPath[i].pop();tempPosition&&(gridsterItem.$item.x=tempPosition.x,gridsterItem.$item.y=tempPosition.y,gridsterItem.setSize(),this.pushedItemsTempPath[i].length||(this.pushedItemsTemp.splice(i,1),this.pushedItemsTempPath.splice(i,1)))}addToPushed(gridsterItem){if(this.pushedItems.indexOf(gridsterItem)<0)this.pushedItems.push(gridsterItem),this.pushedItemsPath.push([{x:gridsterItem.item.x||0,y:gridsterItem.item.y||0},{x:gridsterItem.$item.x,y:gridsterItem.$item.y}]);else{let i=this.pushedItems.indexOf(gridsterItem);this.pushedItemsPath[i].push({x:gridsterItem.$item.x,y:gridsterItem.$item.y})}}removeFromPushed(i){i>-1&&(this.pushedItems.splice(i,1),this.pushedItemsPath.splice(i,1))}removeFromPushedItem(gridsterItem){let i=this.pushedItems.indexOf(gridsterItem);i>-1&&(this.pushedItemsPath[i].pop(),this.pushedItemsPath.length||(this.pushedItems.splice(i,1),this.pushedItemsPath.splice(i,1)))}checkPushedItem(pushedItem,i){let path=this.pushedItemsPath[i],j=path.length-2,lastPosition,x,y,change=!1;for(;j>-1;j--)lastPosition=path[j],x=pushedItem.$item.x,y=pushedItem.$item.y,pushedItem.$item.x=lastPosition.x,pushedItem.$item.y=lastPosition.y,this.gridster.findItemWithItem(pushedItem.$item)?(pushedItem.$item.x=x,pushedItem.$item.y=y):(pushedItem.setSize(),path.splice(j+1,path.length-j-1),change=!0);return path.length<2&&this.removeFromPushed(i),change}},scrollSensitivity,scrollSpeed,intervalDuration=50,gridsterElement,resizeEvent,resizeEventType,intervalE,intervalW,intervalN,intervalS;function scroll(gridster,left2,top2,width,height,event2,lastMouse,calculateItemPosition,resize,resizeEventScrollType){scrollSensitivity=gridster.$options.scrollSensitivity,scrollSpeed=gridster.$options.scrollSpeed,gridsterElement=gridster.el,resizeEvent=resize,resizeEventType=resizeEventScrollType;let offsetWidth=gridsterElement.offsetWidth,offsetHeight=gridsterElement.offsetHeight,offsetLeft=gridsterElement.scrollLeft,offsetTop=gridsterElement.scrollTop,elemTopOffset=top2-offsetTop,elemBottomOffset=offsetHeight+offsetTop-top2-height,{clientX,clientY}=event2;if(!gridster.$options.disableScrollVertical)if(lastMouse.clientY<clientY&&elemBottomOffset<scrollSensitivity){if(cancelN(),resizeEvent&&resizeEventType&&!resizeEventType.south||intervalS)return;intervalS=startVertical(1,calculateItemPosition,lastMouse)}else if(lastMouse.clientY>clientY&&offsetTop>0&&elemTopOffset<scrollSensitivity){if(cancelS(),resizeEvent&&resizeEventType&&!resizeEventType.north||intervalN)return;intervalN=startVertical(-1,calculateItemPosition,lastMouse)}else lastMouse.clientY!==clientY&&cancelVertical();let elemRightOffset=offsetLeft+offsetWidth-left2-width,elemLeftOffset=left2-offsetLeft;if(!gridster.$options.disableScrollHorizontal)if(lastMouse.clientX<clientX&&elemRightOffset<=scrollSensitivity){if(cancelW(),resizeEvent&&resizeEventType&&!resizeEventType.east||intervalE)return;intervalE=startHorizontal(1,calculateItemPosition,lastMouse)}else if(lastMouse.clientX>clientX&&offsetLeft>0&&elemLeftOffset<scrollSensitivity){if(cancelE(),resizeEvent&&resizeEventType&&!resizeEventType.west||intervalW)return;intervalW=startHorizontal(-1,calculateItemPosition,lastMouse)}else lastMouse.clientX!==clientX&&cancelHorizontal()}function startVertical(sign,calculateItemPosition,lastMouse){let clientY=lastMouse.clientY;return window.setInterval(()=>{(!gridsterElement||sign===-1&&gridsterElement.scrollTop-scrollSpeed<0)&&cancelVertical(),gridsterElement.scrollTop+=sign*scrollSpeed,clientY+=sign*scrollSpeed,calculateItemPosition({clientX:lastMouse.clientX,clientY})},intervalDuration)}function startHorizontal(sign,calculateItemPosition,lastMouse){let clientX=lastMouse.clientX;return window.setInterval(()=>{(!gridsterElement||sign===-1&&gridsterElement.scrollLeft-scrollSpeed<0)&&cancelHorizontal(),gridsterElement.scrollLeft+=sign*scrollSpeed,clientX+=sign*scrollSpeed,calculateItemPosition({clientX,clientY:lastMouse.clientY})},intervalDuration)}function cancelScroll(){cancelHorizontal(),cancelVertical(),gridsterElement=null}function cancelHorizontal(){cancelE(),cancelW()}function cancelVertical(){cancelN(),cancelS()}function cancelE(){intervalE&&(clearInterval(intervalE),intervalE=0)}function cancelW(){intervalW&&(clearInterval(intervalW),intervalW=0)}function cancelS(){intervalS&&(clearInterval(intervalS),intervalS=0)}function cancelN(){intervalN&&(clearInterval(intervalN),intervalN=0)}var GridsterSwap=class{swapedItem;gridsterItem;gridster;constructor(gridsterItem){this.gridsterItem=gridsterItem,this.gridster=gridsterItem.gridster}destroy(){this.gridster=this.gridsterItem=this.swapedItem=null}swapItems(){this.gridster.$options.swap&&(this.checkSwapBack(),this.checkSwap(this.gridsterItem))}checkSwapBack(){if(this.swapedItem){let x=this.swapedItem.$item.x,y=this.swapedItem.$item.y;this.swapedItem.$item.x=this.swapedItem.item.x||0,this.swapedItem.$item.y=this.swapedItem.item.y||0,this.gridster.checkCollision(this.swapedItem.$item)?(this.swapedItem.$item.x=x,this.swapedItem.$item.y=y):(this.swapedItem.setSize(),this.gridsterItem.$item.x=this.gridsterItem.item.x||0,this.gridsterItem.$item.y=this.gridsterItem.item.y||0,this.swapedItem=void 0)}}restoreSwapItem(){this.swapedItem&&(this.swapedItem.$item.x=this.swapedItem.item.x||0,this.swapedItem.$item.y=this.swapedItem.item.y||0,this.swapedItem.setSize(),this.swapedItem=void 0)}setSwapItem(){this.swapedItem&&(this.swapedItem.checkItemChanges(this.swapedItem.$item,this.swapedItem.item),this.swapedItem=void 0)}checkSwap(pushedBy){let gridsterItemCollision;if(this.gridster.$options.swapWhileDragging?gridsterItemCollision=this.gridster.checkCollisionForSwaping(pushedBy.$item):gridsterItemCollision=this.gridster.checkCollision(pushedBy.$item),gridsterItemCollision&&gridsterItemCollision!==!0&&gridsterItemCollision.canBeDragged()){let gridsterItemCollide=gridsterItemCollision,copyCollisionX=gridsterItemCollide.$item.x,copyCollisionY=gridsterItemCollide.$item.y,copyX=pushedBy.$item.x,copyY=pushedBy.$item.y,diffX=copyX-copyCollisionX,diffY=copyY-copyCollisionY;gridsterItemCollide.$item.x=pushedBy.item.x-diffX,gridsterItemCollide.$item.y=pushedBy.item.y-diffY,pushedBy.$item.x=gridsterItemCollide.item.x+diffX,pushedBy.$item.y=gridsterItemCollide.item.y+diffY,this.gridster.checkCollision(gridsterItemCollide.$item)||this.gridster.checkCollision(pushedBy.$item)?(pushedBy.$item.x=copyX,pushedBy.$item.y=copyY,gridsterItemCollide.$item.x=copyCollisionX,gridsterItemCollide.$item.y=copyCollisionY):(gridsterItemCollide.setSize(),this.swapedItem=gridsterItemCollide,this.gridster.$options.swapWhileDragging&&(this.gridsterItem.checkItemChanges(this.gridsterItem.$item,this.gridsterItem.item),this.setSwapItem()))}}},GRIDSTER_ITEM_RESIZABLE_HANDLER_CLASS="gridster-item-resizable-handler",Direction=function(Direction2){return Direction2.UP="UP",Direction2.DOWN="DOWN",Direction2.LEFT="LEFT",Direction2.RIGHT="RIGHT",Direction2}(Direction||{}),GridsterDraggable=class{zone;gridsterItem;gridster;lastMouse;offsetLeft;offsetTop;margin;outerMarginTop;outerMarginRight;outerMarginBottom;outerMarginLeft;diffTop;diffLeft;originalClientX;originalClientY;top;left;height;width;positionX;positionY;positionXBackup;positionYBackup;enabled;mousemove;mouseup;mouseleave;cancelOnBlur;touchmove;touchend;touchcancel;mousedown;touchstart;push;swap;path;collision=!1;constructor(gridsterItem,gridster,zone){this.zone=zone,this.gridsterItem=gridsterItem,this.gridster=gridster,this.lastMouse={clientX:0,clientY:0},this.path=[]}destroy(){this.gridster.previewStyle&&this.gridster.previewStyle(!0),this.gridsterItem=this.gridster=this.collision=null,this.mousedown&&(this.mousedown(),this.touchstart())}dragStart(e){e.which&&e.which!==1||(this.gridster.options.draggable&&this.gridster.options.draggable.start&&this.gridster.options.draggable.start(this.gridsterItem.item,this.gridsterItem,e),e.stopPropagation(),e.preventDefault(),this.zone.runOutsideAngular(()=>{this.mousemove=this.gridsterItem.renderer.listen("document","mousemove",this.dragMove),this.touchmove=this.gridster.renderer.listen(this.gridster.el,"touchmove",this.dragMove)}),this.mouseup=this.gridsterItem.renderer.listen("document","mouseup",this.dragStop),this.mouseleave=this.gridsterItem.renderer.listen("document","mouseleave",this.dragStop),this.cancelOnBlur=this.gridsterItem.renderer.listen("window","blur",this.dragStop),this.touchend=this.gridsterItem.renderer.listen("document","touchend",this.dragStop),this.touchcancel=this.gridsterItem.renderer.listen("document","touchcancel",this.dragStop),this.gridsterItem.renderer.addClass(this.gridsterItem.el,"gridster-item-moving"),this.margin=this.gridster.$options.margin,this.outerMarginTop=this.gridster.$options.outerMarginTop,this.outerMarginRight=this.gridster.$options.outerMarginRight,this.outerMarginBottom=this.gridster.$options.outerMarginBottom,this.outerMarginLeft=this.gridster.$options.outerMarginLeft,this.offsetLeft=this.gridster.el.scrollLeft-this.gridster.el.offsetLeft,this.offsetTop=this.gridster.el.scrollTop-this.gridster.el.offsetTop,this.left=this.gridsterItem.left-this.margin,this.top=this.gridsterItem.top-this.margin,this.originalClientX=e.clientX,this.originalClientY=e.clientY,this.width=this.gridsterItem.width,this.height=this.gridsterItem.height,this.gridster.$options.dirType===DirTypes.RTL?this.diffLeft=e.clientX-this.gridster.el.scrollWidth+this.gridsterItem.left:this.diffLeft=e.clientX+this.offsetLeft-this.margin-this.left,this.diffTop=e.clientY+this.offsetTop-this.margin-this.top,this.gridster.movingItem=this.gridsterItem.$item,this.gridster.previewStyle(!0),this.push=new GridsterPush(this.gridsterItem),this.swap=new GridsterSwap(this.gridsterItem),this.gridster.dragInProgress=!0,this.gridster.updateGrid(),this.path.push({x:this.gridsterItem.item.x||0,y:this.gridsterItem.item.y||0}))}dragMove=e=>{e.stopPropagation(),e.preventDefault(),GridsterUtils.checkTouchEvent(e);let directions=this.getDirections(e);this.gridster.options.enableBoundaryControl&&(directions.includes(Direction.UP)&&this.gridsterItem.el.getBoundingClientRect().top<this.gridster.el.getBoundingClientRect().top+(this.outerMarginTop??this.margin)&&(directions=directions.filter(direction=>direction!=Direction.UP),e=new MouseEvent(e.type,{clientX:e.clientX,clientY:this.lastMouse.clientY})),directions.includes(Direction.LEFT)&&this.gridsterItem.el.getBoundingClientRect().left<this.gridster.el.getBoundingClientRect().left+(this.outerMarginLeft??this.margin)&&(directions=directions.filter(direction=>direction!=Direction.LEFT),e=new MouseEvent(e.type,{clientX:this.lastMouse.clientX,clientY:e.clientY})),directions.includes(Direction.RIGHT)&&this.gridsterItem.el.getBoundingClientRect().right>this.gridster.el.getBoundingClientRect().right-(this.outerMarginRight??this.margin)&&(directions=directions.filter(direction=>direction!=Direction.RIGHT),e=new MouseEvent(e.type,{clientX:this.lastMouse.clientX,clientY:e.clientY})),directions.includes(Direction.DOWN)&&this.gridsterItem.el.getBoundingClientRect().bottom>this.gridster.el.getBoundingClientRect().bottom-(this.outerMarginBottom??this.margin)&&(directions=directions.filter(direction=>direction!=Direction.DOWN),e=new MouseEvent(e.type,{clientX:e.clientX,clientY:this.lastMouse.clientY}))),directions.length&&(this.offsetLeft=this.gridster.el.scrollLeft-this.gridster.el.offsetLeft,this.offsetTop=this.gridster.el.scrollTop-this.gridster.el.offsetTop,scroll(this.gridster,this.left,this.top,this.width,this.height,e,this.lastMouse,this.calculateItemPositionFromMousePosition),this.calculateItemPositionFromMousePosition(e))};calculateItemPositionFromMousePosition=e=>{this.gridster.options.scale?this.calculateItemPositionWithScale(e,this.gridster.options.scale):this.calculateItemPositionWithoutScale(e),this.calculateItemPosition(),this.lastMouse.clientX=e.clientX,this.lastMouse.clientY=e.clientY,this.zone.run(()=>{this.gridster.updateGrid()})};calculateItemPositionWithScale(e,scale){this.gridster.$options.dirType===DirTypes.RTL?this.left=this.gridster.el.scrollWidth-this.originalClientX+(e.clientX-this.originalClientX)/scale+this.diffLeft:this.left=this.originalClientX+(e.clientX-this.originalClientX)/scale+this.offsetLeft-this.diffLeft,this.top=this.originalClientY+(e.clientY-this.originalClientY)/scale+this.offsetTop-this.diffTop}calculateItemPositionWithoutScale(e){this.gridster.$options.dirType===DirTypes.RTL?this.left=this.gridster.el.scrollWidth-e.clientX+this.diffLeft:this.left=e.clientX+this.offsetLeft-this.diffLeft,this.top=e.clientY+this.offsetTop-this.diffTop}dragStop=e=>{e.stopPropagation(),e.preventDefault(),cancelScroll(),this.cancelOnBlur(),this.mousemove(),this.mouseup(),this.mouseleave(),this.touchmove(),this.touchend(),this.touchcancel(),this.gridsterItem.renderer.removeClass(this.gridsterItem.el,"gridster-item-moving"),this.gridster.dragInProgress=!1,this.gridster.updateGrid(),this.path=[],this.gridster.options.draggable&&this.gridster.options.draggable.stop?Promise.resolve(this.gridster.options.draggable.stop(this.gridsterItem.item,this.gridsterItem,e)).then(this.makeDrag,this.cancelDrag):this.makeDrag(),setTimeout(()=>{this.gridster&&(this.gridster.movingItem=null,this.gridster.previewStyle(!0))})};cancelDrag=()=>{this.gridsterItem.$item.x=this.gridsterItem.item.x||0,this.gridsterItem.$item.y=this.gridsterItem.item.y||0,this.gridsterItem.setSize(),this.push&&this.push.restoreItems(),this.swap&&this.swap.restoreSwapItem(),this.push&&(this.push.destroy(),this.push=null),this.swap&&(this.swap.destroy(),this.swap=null)};makeDrag=()=>{this.gridster.$options.draggable.dropOverItems&&this.gridster.options.draggable&&this.gridster.options.draggable.dropOverItemsCallback&&this.collision&&this.collision!==!0&&this.collision.$item&&this.gridster.options.draggable.dropOverItemsCallback(this.gridsterItem.item,this.collision.item,this.gridster),this.collision=!1,this.gridsterItem.setSize(),this.gridsterItem.checkItemChanges(this.gridsterItem.$item,this.gridsterItem.item),this.push&&this.push.setPushedItems(),this.swap&&this.swap.setSwapItem(),this.push&&(this.push.destroy(),this.push=null),this.swap&&(this.swap.destroy(),this.swap=null)};calculateItemPosition(){if(this.gridster.movingItem=this.gridsterItem.$item,this.positionX=this.gridster.pixelsToPositionX(this.left,Math.round),this.positionY=this.gridster.pixelsToPositionY(this.top,Math.round),this.positionXBackup=this.gridsterItem.$item.x,this.positionYBackup=this.gridsterItem.$item.y,this.gridsterItem.$item.x=this.positionX,this.gridster.checkGridCollision(this.gridsterItem.$item)&&(this.gridsterItem.$item.x=this.positionXBackup),this.gridsterItem.$item.y=this.positionY,this.gridster.checkGridCollision(this.gridsterItem.$item)&&(this.gridsterItem.$item.y=this.positionYBackup),this.gridster.gridRenderer.setCellPosition(this.gridsterItem.renderer,this.gridsterItem.el,this.left,this.top),this.positionXBackup!==this.gridsterItem.$item.x||this.positionYBackup!==this.gridsterItem.$item.y){let lastPosition=this.path[this.path.length-1],direction="";lastPosition.x<this.gridsterItem.$item.x?direction=this.push.fromWest:lastPosition.x>this.gridsterItem.$item.x?direction=this.push.fromEast:lastPosition.y<this.gridsterItem.$item.y?direction=this.push.fromNorth:lastPosition.y>this.gridsterItem.$item.y&&(direction=this.push.fromSouth),this.push.pushItems(direction,this.gridster.$options.disablePushOnDrag),this.swap.swapItems(),this.collision=this.gridster.checkCollision(this.gridsterItem.$item),this.collision?(this.gridsterItem.$item.x=this.positionXBackup,this.gridsterItem.$item.y=this.positionYBackup,this.gridster.$options.draggable.dropOverItems&&this.collision!==!0&&this.collision.$item&&(this.gridster.movingItem=null)):this.path.push({x:this.gridsterItem.$item.x,y:this.gridsterItem.$item.y}),this.push.checkPushBack()}else this.collision=!1;this.gridster.previewStyle(!0)}toggle(){let enableDrag=this.gridsterItem.canBeDragged();!this.enabled&&enableDrag?(this.enabled=!this.enabled,this.mousedown=this.gridsterItem.renderer.listen(this.gridsterItem.el,"mousedown",this.dragStartDelay),this.touchstart=this.gridsterItem.renderer.listen(this.gridsterItem.el,"touchstart",this.dragStartDelay)):this.enabled&&!enableDrag&&(this.enabled=!this.enabled,this.mousedown(),this.touchstart())}dragStartDelay=e=>{if(e.target.classList.contains(GRIDSTER_ITEM_RESIZABLE_HANDLER_CLASS)||GridsterUtils.checkContentClassForEvent(this.gridster,e))return;if(GridsterUtils.checkTouchEvent(e),!this.gridster.$options.draggable.delayStart){this.dragStart(e);return}let timeout2=setTimeout(()=>{this.dragStart(e),cancelDrag()},this.gridster.$options.draggable.delayStart),cancelMouse=this.gridsterItem.renderer.listen("document","mouseup",cancelDrag),cancelMouseLeave=this.gridsterItem.renderer.listen("document","mouseleave",cancelDrag),cancelOnBlur=this.gridsterItem.renderer.listen("window","blur",cancelDrag),cancelTouchMove=this.gridsterItem.renderer.listen("document","touchmove",cancelMove),cancelTouchEnd=this.gridsterItem.renderer.listen("document","touchend",cancelDrag),cancelTouchCancel=this.gridsterItem.renderer.listen("document","touchcancel",cancelDrag);function cancelMove(eventMove){GridsterUtils.checkTouchEvent(eventMove),(Math.abs(eventMove.clientX-e.clientX)>9||Math.abs(eventMove.clientY-e.clientY)>9)&&cancelDrag()}function cancelDrag(){clearTimeout(timeout2),cancelOnBlur(),cancelMouse(),cancelMouseLeave(),cancelTouchMove(),cancelTouchEnd(),cancelTouchCancel()}};getDirections(e){let directions=[];return this.lastMouse.clientX===0&&this.lastMouse.clientY===0&&(this.lastMouse.clientY=e.clientY,this.lastMouse.clientX=e.clientX),this.lastMouse.clientY>e.clientY&&directions.push(Direction.UP),this.lastMouse.clientY<e.clientY&&directions.push(Direction.DOWN),this.lastMouse.clientX<e.clientX&&directions.push(Direction.RIGHT),this.lastMouse.clientX>e.clientX&&directions.push(Direction.LEFT),directions}},GridsterPushResize=class{fromSouth;fromNorth;fromEast;fromWest;pushedItems;pushedItemsPath;gridsterItem;gridster;tryPattern;constructor(gridsterItem){this.pushedItems=[],this.pushedItemsPath=[],this.gridsterItem=gridsterItem,this.gridster=gridsterItem.gridster,this.tryPattern={fromEast:this.tryWest,fromWest:this.tryEast,fromNorth:this.trySouth,fromSouth:this.tryNorth},this.fromSouth="fromSouth",this.fromNorth="fromNorth",this.fromEast="fromEast",this.fromWest="fromWest"}destroy(){this.gridster=this.gridsterItem=null}pushItems(direction){return this.gridster.$options.pushResizeItems?this.push(this.gridsterItem,direction):!1}restoreItems(){let i=0,l2=this.pushedItems.length,pushedItem;for(;i<l2;i++)pushedItem=this.pushedItems[i],pushedItem.$item.x=pushedItem.item.x||0,pushedItem.$item.y=pushedItem.item.y||0,pushedItem.$item.cols=pushedItem.item.cols||1,pushedItem.$item.row=pushedItem.item.row||1,pushedItem.setSize();this.pushedItems=[],this.pushedItemsPath=[]}setPushedItems(){let i=0,l2=this.pushedItems.length,pushedItem;for(;i<l2;i++)pushedItem=this.pushedItems[i],pushedItem.checkItemChanges(pushedItem.$item,pushedItem.item);this.pushedItems=[],this.pushedItemsPath=[]}checkPushBack(){let i=this.pushedItems.length-1,change=!1;for(;i>-1;i--)this.checkPushedItem(this.pushedItems[i],i)&&(change=!0);change&&this.checkPushBack()}push(gridsterItem,direction){let gridsterItemCollision=this.gridster.checkCollision(gridsterItem.$item);if(gridsterItemCollision&&gridsterItemCollision!==!0&&gridsterItemCollision!==this.gridsterItem&&gridsterItemCollision.canBeResized()){if(this.tryPattern[direction].call(this,gridsterItemCollision,gridsterItem,direction))return!0}else if(gridsterItemCollision===!1)return!0;return!1}trySouth(gridsterItemCollide,gridsterItem,direction){let backUpY=gridsterItemCollide.$item.y,backUpRows=gridsterItemCollide.$item.rows;return gridsterItemCollide.$item.y=gridsterItem.$item.y+gridsterItem.$item.rows,gridsterItemCollide.$item.rows=backUpRows+backUpY-gridsterItemCollide.$item.y,!this.gridster.checkCollisionTwoItems(gridsterItemCollide.$item,gridsterItem.$item)&&!this.gridster.checkGridCollision(gridsterItemCollide.$item)?(gridsterItemCollide.setSize(),this.addToPushed(gridsterItemCollide),this.push(gridsterItem,direction),!0):(gridsterItemCollide.$item.y=backUpY,gridsterItemCollide.$item.rows=backUpRows,!1)}tryNorth(gridsterItemCollide,gridsterItem,direction){let backUpRows=gridsterItemCollide.$item.rows;return gridsterItemCollide.$item.rows=gridsterItem.$item.y-gridsterItemCollide.$item.y,!this.gridster.checkCollisionTwoItems(gridsterItemCollide.$item,gridsterItem.$item)&&!this.gridster.checkGridCollision(gridsterItemCollide.$item)?(gridsterItemCollide.setSize(),this.addToPushed(gridsterItemCollide),this.push(gridsterItem,direction),!0):(gridsterItemCollide.$item.rows=backUpRows,!1)}tryEast(gridsterItemCollide,gridsterItem,direction){let backUpX=gridsterItemCollide.$item.x,backUpCols=gridsterItemCollide.$item.cols;return gridsterItemCollide.$item.x=gridsterItem.$item.x+gridsterItem.$item.cols,gridsterItemCollide.$item.cols=backUpCols+backUpX-gridsterItemCollide.$item.x,!this.gridster.checkCollisionTwoItems(gridsterItemCollide.$item,gridsterItem.$item)&&!this.gridster.checkGridCollision(gridsterItemCollide.$item)?(gridsterItemCollide.setSize(),this.addToPushed(gridsterItemCollide),this.push(gridsterItem,direction),!0):(gridsterItemCollide.$item.x=backUpX,gridsterItemCollide.$item.cols=backUpCols,!1)}tryWest(gridsterItemCollide,gridsterItem,direction){let backUpCols=gridsterItemCollide.$item.cols;return gridsterItemCollide.$item.cols=gridsterItem.$item.x-gridsterItemCollide.$item.x,!this.gridster.checkCollisionTwoItems(gridsterItemCollide.$item,gridsterItem.$item)&&!this.gridster.checkGridCollision(gridsterItemCollide.$item)?(gridsterItemCollide.setSize(),this.addToPushed(gridsterItemCollide),this.push(gridsterItem,direction),!0):(gridsterItemCollide.$item.cols=backUpCols,!1)}addToPushed(gridsterItem){if(this.pushedItems.indexOf(gridsterItem)<0)this.pushedItems.push(gridsterItem),this.pushedItemsPath.push([{x:gridsterItem.item.x||0,y:gridsterItem.item.y||0,cols:gridsterItem.item.cols||0,rows:gridsterItem.item.rows||0},{x:gridsterItem.$item.x,y:gridsterItem.$item.y,cols:gridsterItem.$item.cols,rows:gridsterItem.$item.rows}]);else{let i=this.pushedItems.indexOf(gridsterItem);this.pushedItemsPath[i].push({x:gridsterItem.$item.x,y:gridsterItem.$item.y,cols:gridsterItem.$item.cols,rows:gridsterItem.$item.rows})}}removeFromPushed(i){i>-1&&(this.pushedItems.splice(i,1),this.pushedItemsPath.splice(i,1))}checkPushedItem(pushedItem,i){let path=this.pushedItemsPath[i],j=path.length-2,lastPosition,x,y,cols,rows;for(;j>-1;j--)lastPosition=path[j],x=pushedItem.$item.x,y=pushedItem.$item.y,cols=pushedItem.$item.cols,rows=pushedItem.$item.rows,pushedItem.$item.x=lastPosition.x,pushedItem.$item.y=lastPosition.y,pushedItem.$item.cols=lastPosition.cols,pushedItem.$item.rows=lastPosition.rows,this.gridster.findItemWithItem(pushedItem.$item)?(pushedItem.$item.x=x,pushedItem.$item.y=y,pushedItem.$item.cols=cols,pushedItem.$item.rows=rows):(pushedItem.setSize(),path.splice(j+1,path.length-1-j));return path.length<2?(this.removeFromPushed(i),!0):!1}},GridsterResizable=class{zone;gridsterItem;gridster;lastMouse;itemBackup;resizeEventScrollType;directionFunction=null;resizeEnabled;resizableHandles;mousemove;mouseup;mouseleave;cancelOnBlur;touchmove;touchend;touchcancel;push;pushResize;minHeight;minWidth;offsetTop;offsetLeft;diffTop;diffLeft;diffRight;diffBottom;margin;outerMarginTop;outerMarginRight;outerMarginBottom;outerMarginLeft;originalClientX;originalClientY;top;left;bottom;right;width;height;newPosition;constructor(gridsterItem,gridster,zone){this.zone=zone,this.gridsterItem=gridsterItem,this.gridster=gridster,this.lastMouse={clientX:0,clientY:0},this.itemBackup=[0,0,0,0],this.resizeEventScrollType={west:!1,east:!1,north:!1,south:!1}}destroy(){this.gridster?.previewStyle(),this.gridster=this.gridsterItem=null}dragStart(e){if(e.which&&e.which!==1)return;this.gridster.options.resizable&&this.gridster.options.resizable.start&&this.gridster.options.resizable.start(this.gridsterItem.item,this.gridsterItem,e),e.stopPropagation(),e.preventDefault(),this.zone.runOutsideAngular(()=>{this.mousemove=this.gridsterItem.renderer.listen("document","mousemove",this.dragMove),this.touchmove=this.gridster.renderer.listen(this.gridster.el,"touchmove",this.dragMove)}),this.mouseup=this.gridsterItem.renderer.listen("document","mouseup",this.dragStop),this.mouseleave=this.gridsterItem.renderer.listen("document","mouseleave",this.dragStop),this.cancelOnBlur=this.gridsterItem.renderer.listen("window","blur",this.dragStop),this.touchend=this.gridsterItem.renderer.listen("document","touchend",this.dragStop),this.touchcancel=this.gridsterItem.renderer.listen("document","touchcancel",this.dragStop),this.gridsterItem.renderer.addClass(this.gridsterItem.el,"gridster-item-resizing"),this.lastMouse.clientX=e.clientX,this.lastMouse.clientY=e.clientY,this.left=this.gridsterItem.left,this.top=this.gridsterItem.top,this.originalClientX=e.clientX,this.originalClientY=e.clientY,this.width=this.gridsterItem.width,this.height=this.gridsterItem.height,this.bottom=this.gridsterItem.top+this.gridsterItem.height,this.right=this.gridsterItem.left+this.gridsterItem.width,this.margin=this.gridster.$options.margin,this.outerMarginTop=this.gridster.$options.outerMarginTop,this.outerMarginRight=this.gridster.$options.outerMarginRight,this.outerMarginBottom=this.gridster.$options.outerMarginBottom,this.outerMarginLeft=this.gridster.$options.outerMarginLeft,this.offsetLeft=this.gridster.el.scrollLeft-this.gridster.el.offsetLeft,this.offsetTop=this.gridster.el.scrollTop-this.gridster.el.offsetTop,this.diffLeft=e.clientX+this.offsetLeft-this.left,this.diffRight=e.clientX+this.offsetLeft-this.right,this.diffTop=e.clientY+this.offsetTop-this.top,this.diffBottom=e.clientY+this.offsetTop-this.bottom,this.minHeight=this.gridster.positionYToPixels(this.gridsterItem.$item.minItemRows||this.gridster.$options.minItemRows)-this.margin,this.minWidth=this.gridster.positionXToPixels(this.gridsterItem.$item.minItemCols||this.gridster.$options.minItemCols)-this.margin,this.gridster.movingItem=this.gridsterItem.$item,this.gridster.previewStyle(),this.push=new GridsterPush(this.gridsterItem),this.pushResize=new GridsterPushResize(this.gridsterItem),this.gridster.dragInProgress=!0,this.gridster.updateGrid();let{classList}=e.target;classList.contains("handle-n")?(this.resizeEventScrollType.north=!0,this.directionFunction=this.handleNorth):classList.contains("handle-w")?this.gridster.$options.dirType===DirTypes.RTL?(this.resizeEventScrollType.east=!0,this.directionFunction=this.handleEast):(this.resizeEventScrollType.west=!0,this.directionFunction=this.handleWest):classList.contains("handle-s")?(this.resizeEventScrollType.south=!0,this.directionFunction=this.handleSouth):classList.contains("handle-e")?this.gridster.$options.dirType===DirTypes.RTL?(this.resizeEventScrollType.west=!0,this.directionFunction=this.handleWest):(this.resizeEventScrollType.east=!0,this.directionFunction=this.handleEast):classList.contains("handle-nw")?this.gridster.$options.dirType===DirTypes.RTL?(this.resizeEventScrollType.north=!0,this.resizeEventScrollType.east=!0,this.directionFunction=this.handleNorthEast):(this.resizeEventScrollType.north=!0,this.resizeEventScrollType.west=!0,this.directionFunction=this.handleNorthWest):classList.contains("handle-ne")?this.gridster.$options.dirType===DirTypes.RTL?(this.resizeEventScrollType.north=!0,this.resizeEventScrollType.west=!0,this.directionFunction=this.handleNorthWest):(this.resizeEventScrollType.north=!0,this.resizeEventScrollType.east=!0,this.directionFunction=this.handleNorthEast):classList.contains("handle-sw")?this.gridster.$options.dirType===DirTypes.RTL?(this.resizeEventScrollType.south=!0,this.resizeEventScrollType.east=!0,this.directionFunction=this.handleSouthEast):(this.resizeEventScrollType.south=!0,this.resizeEventScrollType.west=!0,this.directionFunction=this.handleSouthWest):classList.contains("handle-se")&&(this.gridster.$options.dirType===DirTypes.RTL?(this.resizeEventScrollType.south=!0,this.resizeEventScrollType.west=!0,this.directionFunction=this.handleSouthWest):(this.resizeEventScrollType.south=!0,this.resizeEventScrollType.east=!0,this.directionFunction=this.handleSouthEast))}dragMove=e=>{if(this.directionFunction===null)throw new Error("The `directionFunction` has not been set before calling `dragMove`.");e.stopPropagation(),e.preventDefault(),GridsterUtils.checkTouchEvent(e),this.offsetTop=this.gridster.el.scrollTop-this.gridster.el.offsetTop,this.offsetLeft=this.gridster.el.scrollLeft-this.gridster.el.offsetLeft,scroll(this.gridster,this.left,this.top,this.width,this.height,e,this.lastMouse,this.directionFunction,!0,this.resizeEventScrollType);let scale=this.gridster.options.scale||1;this.directionFunction({clientX:this.originalClientX+(e.clientX-this.originalClientX)/scale,clientY:this.originalClientY+(e.clientY-this.originalClientY)/scale}),this.lastMouse.clientX=e.clientX,this.lastMouse.clientY=e.clientY,this.zone.run(()=>{this.gridster.updateGrid()})};dragStop=e=>{e.stopPropagation(),e.preventDefault(),cancelScroll(),this.mousemove(),this.mouseup(),this.mouseleave(),this.cancelOnBlur(),this.touchmove(),this.touchend(),this.touchcancel(),this.gridster.dragInProgress=!1,this.gridster.updateGrid(),this.gridster.options.resizable&&this.gridster.options.resizable.stop?Promise.resolve(this.gridster.options.resizable.stop(this.gridsterItem.item,this.gridsterItem,e)).then(this.makeResize,this.cancelResize):this.makeResize(),setTimeout(()=>{this.gridsterItem.renderer.removeClass(this.gridsterItem.el,"gridster-item-resizing"),this.gridster&&(this.gridster.movingItem=null,this.gridster.previewStyle())})};cancelResize=()=>{this.gridsterItem.$item.cols=this.gridsterItem.item.cols||1,this.gridsterItem.$item.rows=this.gridsterItem.item.rows||1,this.gridsterItem.$item.x=this.gridsterItem.item.x||0,this.gridsterItem.$item.y=this.gridsterItem.item.y||0,this.gridsterItem.setSize(),this.push.restoreItems(),this.pushResize.restoreItems(),this.push.destroy(),this.push=null,this.pushResize.destroy(),this.pushResize=null};makeResize=()=>{this.gridsterItem.setSize(),this.gridsterItem.checkItemChanges(this.gridsterItem.$item,this.gridsterItem.item),this.push.setPushedItems(),this.pushResize.setPushedItems(),this.push.destroy(),this.push=null,this.pushResize.destroy(),this.pushResize=null};handleNorth=e=>{this.top=e.clientY+this.offsetTop-this.diffTop,this.height=this.bottom-this.top,this.minHeight>this.height?(this.height=this.minHeight,this.top=this.bottom-this.minHeight):this.gridster.options.enableBoundaryControl&&(this.top=Math.max(0,this.top),this.height=this.bottom-this.top);let marginTop=this.gridster.options.pushItems?this.margin:0;if(this.newPosition=this.gridster.pixelsToPositionY(this.top+marginTop,Math.floor),this.gridsterItem.$item.y!==this.newPosition){if(this.itemBackup[1]=this.gridsterItem.$item.y,this.itemBackup[3]=this.gridsterItem.$item.rows,this.gridsterItem.$item.rows+=this.gridsterItem.$item.y-this.newPosition,this.gridsterItem.$item.y=this.newPosition,this.pushResize.pushItems(this.pushResize.fromSouth),this.push.pushItems(this.push.fromSouth,this.gridster.$options.disablePushOnResize),this.gridster.checkCollision(this.gridsterItem.$item)){this.gridsterItem.$item.y=this.itemBackup[1],this.gridsterItem.$item.rows=this.itemBackup[3],this.top=this.gridster.positionYToPixels(this.gridsterItem.$item.y),this.setItemTop(this.gridster.positionYToPixels(this.gridsterItem.$item.y)),this.setItemHeight(this.gridster.positionYToPixels(this.gridsterItem.$item.rows)-this.margin);return}else this.gridster.previewStyle();this.pushResize.checkPushBack(),this.push.checkPushBack()}this.setItemTop(this.top),this.setItemHeight(this.height)};handleWest=e=>{let clientX=this.gridster.$options.dirType===DirTypes.RTL?this.originalClientX+(this.originalClientX-e.clientX):e.clientX;this.left=clientX+this.offsetLeft-this.diffLeft,this.width=this.right-this.left,this.minWidth>this.width?(this.width=this.minWidth,this.left=this.right-this.minWidth):this.gridster.options.enableBoundaryControl&&(this.left=Math.max(0,this.left),this.width=this.right-this.left);let marginLeft=this.gridster.options.pushItems?this.margin:0;if(this.newPosition=this.gridster.pixelsToPositionX(this.left+marginLeft,Math.floor),this.gridsterItem.$item.x!==this.newPosition){if(this.itemBackup[0]=this.gridsterItem.$item.x,this.itemBackup[2]=this.gridsterItem.$item.cols,this.gridsterItem.$item.cols+=this.gridsterItem.$item.x-this.newPosition,this.gridsterItem.$item.x=this.newPosition,this.pushResize.pushItems(this.pushResize.fromEast),this.push.pushItems(this.push.fromEast,this.gridster.$options.disablePushOnResize),this.gridster.checkCollision(this.gridsterItem.$item)){this.gridsterItem.$item.x=this.itemBackup[0],this.gridsterItem.$item.cols=this.itemBackup[2],this.left=this.gridster.positionXToPixels(this.gridsterItem.$item.x),this.setItemLeft(this.gridster.positionXToPixels(this.gridsterItem.$item.x)),this.setItemWidth(this.gridster.positionXToPixels(this.gridsterItem.$item.cols)-this.margin);return}else this.gridster.previewStyle();this.pushResize.checkPushBack(),this.push.checkPushBack()}this.setItemLeft(this.left),this.setItemWidth(this.width)};handleSouth=e=>{if(this.height=e.clientY+this.offsetTop-this.diffBottom-this.top,this.minHeight>this.height&&(this.height=this.minHeight),this.bottom=this.top+this.height,this.gridster.options.enableBoundaryControl){let margin=this.outerMarginBottom??this.margin,box=this.gridster.el.getBoundingClientRect();this.bottom=Math.min(this.bottom,box.bottom-box.top-2*margin),this.height=this.bottom-this.top}let marginBottom=this.gridster.options.pushItems?0:this.margin;if(this.newPosition=this.gridster.pixelsToPositionY(this.bottom+marginBottom,Math.ceil),this.gridsterItem.$item.y+this.gridsterItem.$item.rows!==this.newPosition){if(this.itemBackup[3]=this.gridsterItem.$item.rows,this.gridsterItem.$item.rows=this.newPosition-this.gridsterItem.$item.y,this.pushResize.pushItems(this.pushResize.fromNorth),this.push.pushItems(this.push.fromNorth,this.gridster.$options.disablePushOnResize),this.gridster.checkCollision(this.gridsterItem.$item)){this.gridsterItem.$item.rows=this.itemBackup[3],this.setItemHeight(this.gridster.positionYToPixels(this.gridsterItem.$item.rows)-this.margin);return}else this.gridster.previewStyle();this.pushResize.checkPushBack(),this.push.checkPushBack()}this.setItemHeight(this.height)};handleEast=e=>{let clientX=this.gridster.$options.dirType===DirTypes.RTL?this.originalClientX+(this.originalClientX-e.clientX):e.clientX;if(this.width=clientX+this.offsetLeft-this.diffRight-this.left,this.minWidth>this.width&&(this.width=this.minWidth),this.right=this.left+this.width,this.gridster.options.enableBoundaryControl){let margin=this.outerMarginRight??this.margin,box=this.gridster.el.getBoundingClientRect();this.right=Math.min(this.right,box.right-box.left-2*margin),this.width=this.right-this.left}let marginRight=this.gridster.options.pushItems?0:this.margin;if(this.newPosition=this.gridster.pixelsToPositionX(this.right+marginRight,Math.ceil),this.gridsterItem.$item.x+this.gridsterItem.$item.cols!==this.newPosition){if(this.itemBackup[2]=this.gridsterItem.$item.cols,this.gridsterItem.$item.cols=this.newPosition-this.gridsterItem.$item.x,this.pushResize.pushItems(this.pushResize.fromWest),this.push.pushItems(this.push.fromWest,this.gridster.$options.disablePushOnResize),this.gridster.checkCollision(this.gridsterItem.$item)){this.gridsterItem.$item.cols=this.itemBackup[2],this.setItemWidth(this.gridster.positionXToPixels(this.gridsterItem.$item.cols)-this.margin);return}else this.gridster.previewStyle();this.pushResize.checkPushBack(),this.push.checkPushBack()}this.setItemWidth(this.width)};handleNorthWest=e=>{this.handleNorth(e),this.handleWest(e)};handleNorthEast=e=>{this.handleNorth(e),this.handleEast(e)};handleSouthWest=e=>{this.handleSouth(e),this.handleWest(e)};handleSouthEast=e=>{this.handleSouth(e),this.handleEast(e)};toggle(){this.resizeEnabled=this.gridsterItem.canBeResized(),this.resizableHandles=this.gridsterItem.getResizableHandles()}dragStartDelay(e){if(GridsterUtils.checkTouchEvent(e),!this.gridster.$options.resizable.delayStart){this.dragStart(e);return}let timeout2=setTimeout(()=>{this.dragStart(e),cancelDrag()},this.gridster.$options.resizable.delayStart),{cancelMouse,cancelMouseLeave,cancelOnBlur,cancelTouchMove,cancelTouchEnd,cancelTouchCancel}=this.zone.runOutsideAngular(()=>{let cancelMouse2=this.gridsterItem.renderer.listen("document","mouseup",cancelDrag),cancelMouseLeave2=this.gridsterItem.renderer.listen("document","mouseleave",cancelDrag),cancelOnBlur2=this.gridsterItem.renderer.listen("window","blur",cancelDrag),cancelTouchMove2=this.gridsterItem.renderer.listen("document","touchmove",cancelMove),cancelTouchEnd2=this.gridsterItem.renderer.listen("document","touchend",cancelDrag),cancelTouchCancel2=this.gridsterItem.renderer.listen("document","touchcancel",cancelDrag);return{cancelMouse:cancelMouse2,cancelMouseLeave:cancelMouseLeave2,cancelOnBlur:cancelOnBlur2,cancelTouchMove:cancelTouchMove2,cancelTouchEnd:cancelTouchEnd2,cancelTouchCancel:cancelTouchCancel2}});function cancelMove(eventMove){GridsterUtils.checkTouchEvent(eventMove),(Math.abs(eventMove.clientX-e.clientX)>9||Math.abs(eventMove.clientY-e.clientY)>9)&&cancelDrag()}function cancelDrag(){clearTimeout(timeout2),cancelOnBlur(),cancelMouse(),cancelMouseLeave(),cancelTouchMove(),cancelTouchEnd(),cancelTouchCancel()}}setItemTop(top2){this.gridster.gridRenderer.setCellPosition(this.gridsterItem.renderer,this.gridsterItem.el,this.left,top2)}setItemLeft(left2){this.gridster.gridRenderer.setCellPosition(this.gridsterItem.renderer,this.gridsterItem.el,left2,this.top)}setItemHeight(height){this.gridsterItem.renderer.setStyle(this.gridsterItem.el,"height",height+"px")}setItemWidth(width){this.gridsterItem.renderer.setStyle(this.gridsterItem.el,"width",width+"px")}},GridsterItemComponent=(()=>{class GridsterItemComponent2{renderer;zone;item;itemInit=new EventEmitter;itemChange=new EventEmitter;itemResize=new EventEmitter;$item;el;gridster;top;left;width;height;drag;resize;notPlaced;init;get zIndex(){return this.getLayerIndex()+this.gridster.$options.baseLayerIndex}constructor(el,gridster,renderer,zone){this.renderer=renderer,this.zone=zone,this.el=el.nativeElement,this.$item={cols:-1,rows:-1,x:-1,y:-1},this.gridster=gridster,this.drag=new GridsterDraggable(this,gridster,this.zone),this.resize=new GridsterResizable(this,gridster,this.zone)}ngOnInit(){this.gridster.addItem(this)}ngOnChanges(changes){changes.item&&(this.updateOptions(),this.init||this.gridster.calculateLayout$.next()),changes.item&&changes.item.previousValue&&this.setSize()}updateOptions(){this.$item=GridsterUtils.merge(this.$item,this.item,{cols:void 0,rows:void 0,x:void 0,y:void 0,layerIndex:void 0,dragEnabled:void 0,resizeEnabled:void 0,compactEnabled:void 0,maxItemRows:void 0,minItemRows:void 0,maxItemCols:void 0,minItemCols:void 0,maxItemArea:void 0,minItemArea:void 0,resizableHandles:{s:void 0,e:void 0,n:void 0,w:void 0,se:void 0,ne:void 0,sw:void 0,nw:void 0}})}ngOnDestroy(){this.gridster.removeItem(this),this.drag.destroy(),this.resize.destroy(),this.gridster=this.drag=this.resize=null}setSize(){this.renderer.setStyle(this.el,"display",this.notPlaced?"":"block"),this.gridster.gridRenderer.updateItem(this.el,this.$item,this.renderer),this.updateItemSize()}updateItemSize(){let top2=this.$item.y*this.gridster.curRowHeight,left2=this.$item.x*this.gridster.curColWidth,width=this.$item.cols*this.gridster.curColWidth-this.gridster.$options.margin,height=this.$item.rows*this.gridster.curRowHeight-this.gridster.$options.margin;this.top=top2,this.left=left2,!this.init&&width>0&&height>0&&(this.init=!0,this.item.initCallback&&this.item.initCallback(this.item,this),this.gridster.options.itemInitCallback&&this.gridster.options.itemInitCallback(this.item,this),this.itemInit.next({item:this.item,itemComponent:this}),this.gridster.$options.scrollToNewItems&&this.el.scrollIntoView(!1)),(width!==this.width||height!==this.height)&&(this.width=width,this.height=height,this.gridster.options.itemResizeCallback&&this.gridster.options.itemResizeCallback(this.item,this),this.itemResize.next({item:this.item,itemComponent:this}))}itemChanged(){this.gridster.options.itemChangeCallback&&this.gridster.options.itemChangeCallback(this.item,this),this.itemChange.next({item:this.item,itemComponent:this})}checkItemChanges(newValue,oldValue){newValue.rows===oldValue.rows&&newValue.cols===oldValue.cols&&newValue.x===oldValue.x&&newValue.y===oldValue.y||(this.gridster.checkCollision(this.$item)?(this.$item.x=oldValue.x||0,this.$item.y=oldValue.y||0,this.$item.cols=oldValue.cols||1,this.$item.rows=oldValue.rows||1,this.setSize()):(this.item.cols=this.$item.cols,this.item.rows=this.$item.rows,this.item.x=this.$item.x,this.item.y=this.$item.y,this.gridster.calculateLayout$.next(),this.itemChanged()))}canBeDragged(){let gridDragEnabled=this.gridster.$options.draggable.enabled,itemDragEnabled=this.$item.dragEnabled===void 0?gridDragEnabled:this.$item.dragEnabled;return!this.gridster.mobile&&gridDragEnabled&&itemDragEnabled}canBeResized(){let gridResizable=this.gridster.$options.resizable.enabled,itemResizable=this.$item.resizeEnabled===void 0?gridResizable:this.$item.resizeEnabled;return!this.gridster.mobile&&gridResizable&&itemResizable}getResizableHandles(){let gridResizableHandles=this.gridster.$options.resizable.handles,itemResizableHandles=this.$item.resizableHandles;return itemResizableHandles===void 0?gridResizableHandles:__spreadValues(__spreadValues({},gridResizableHandles),itemResizableHandles)}bringToFront(offset3){if(offset3&&offset3<=0)return;let layerIndex=this.getLayerIndex(),topIndex=this.gridster.$options.maxLayerIndex;if(layerIndex<topIndex){let targetIndex=offset3?layerIndex+offset3:topIndex;this.item.layerIndex=this.$item.layerIndex=targetIndex>topIndex?topIndex:targetIndex}}sendToBack(offset3){if(offset3&&offset3<=0)return;let layerIndex=this.getLayerIndex();if(layerIndex>0){let targetIndex=offset3?layerIndex-offset3:0;this.item.layerIndex=this.$item.layerIndex=targetIndex<0?0:targetIndex}}getLayerIndex(){return this.item.layerIndex!==void 0?this.item.layerIndex:this.gridster.$options.defaultLayerIndex!==void 0?this.gridster.$options.defaultLayerIndex:0}static \u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||GridsterItemComponent2)(\u0275\u0275directiveInject(ElementRef),\u0275\u0275directiveInject(GridsterComponent),\u0275\u0275directiveInject(Renderer2),\u0275\u0275directiveInject(NgZone))};static \u0275cmp=\u0275\u0275defineComponent({type:GridsterItemComponent2,selectors:[["gridster-item"]],hostVars:2,hostBindings:function(rf,ctx){rf&2&&\u0275\u0275styleProp("z-index",ctx.zIndex)},inputs:{item:"item"},outputs:{itemInit:"itemInit",itemChange:"itemChange",itemResize:"itemResize"},features:[\u0275\u0275NgOnChangesFeature],ngContentSelectors:_c0,decls:9,vars:8,consts:[[1,"gridster-item-resizable-handler","handle-s"],[1,"gridster-item-resizable-handler","handle-e"],[1,"gridster-item-resizable-handler","handle-n"],[1,"gridster-item-resizable-handler","handle-w"],[1,"gridster-item-resizable-handler","handle-se"],[1,"gridster-item-resizable-handler","handle-ne"],[1,"gridster-item-resizable-handler","handle-sw"],[1,"gridster-item-resizable-handler","handle-nw"],[1,"gridster-item-resizable-handler","handle-s",3,"mousedown","touchstart"],[1,"gridster-item-resizable-handler","handle-e",3,"mousedown","touchstart"],[1,"gridster-item-resizable-handler","handle-n",3,"mousedown","touchstart"],[1,"gridster-item-resizable-handler","handle-w",3,"mousedown","touchstart"],[1,"gridster-item-resizable-handler","handle-se",3,"mousedown","touchstart"],[1,"gridster-item-resizable-handler","handle-ne",3,"mousedown","touchstart"],[1,"gridster-item-resizable-handler","handle-sw",3,"mousedown","touchstart"],[1,"gridster-item-resizable-handler","handle-nw",3,"mousedown","touchstart"]],template:function(rf,ctx){rf&1&&(\u0275\u0275projectionDef(),\u0275\u0275projection(0),\u0275\u0275template(1,GridsterItemComponent_Conditional_1_Template,1,0,"div",0)(2,GridsterItemComponent_Conditional_2_Template,1,0,"div",1)(3,GridsterItemComponent_Conditional_3_Template,1,0,"div",2)(4,GridsterItemComponent_Conditional_4_Template,1,0,"div",3)(5,GridsterItemComponent_Conditional_5_Template,1,0,"div",4)(6,GridsterItemComponent_Conditional_6_Template,1,0,"div",5)(7,GridsterItemComponent_Conditional_7_Template,1,0,"div",6)(8,GridsterItemComponent_Conditional_8_Template,1,0,"div",7)),rf&2&&(\u0275\u0275advance(),\u0275\u0275conditional(ctx.resize.resizableHandles!=null&&ctx.resize.resizableHandles.s&&ctx.resize.resizeEnabled?1:-1),\u0275\u0275advance(),\u0275\u0275conditional(ctx.resize.resizableHandles!=null&&ctx.resize.resizableHandles.e&&ctx.resize.resizeEnabled?2:-1),\u0275\u0275advance(),\u0275\u0275conditional(ctx.resize.resizableHandles!=null&&ctx.resize.resizableHandles.n&&ctx.resize.resizeEnabled?3:-1),\u0275\u0275advance(),\u0275\u0275conditional(ctx.resize.resizableHandles!=null&&ctx.resize.resizableHandles.w&&ctx.resize.resizeEnabled?4:-1),\u0275\u0275advance(),\u0275\u0275conditional(ctx.resize.resizableHandles!=null&&ctx.resize.resizableHandles.se&&ctx.resize.resizeEnabled?5:-1),\u0275\u0275advance(),\u0275\u0275conditional(ctx.resize.resizableHandles!=null&&ctx.resize.resizableHandles.ne&&ctx.resize.resizeEnabled?6:-1),\u0275\u0275advance(),\u0275\u0275conditional(ctx.resize.resizableHandles!=null&&ctx.resize.resizableHandles.sw&&ctx.resize.resizeEnabled?7:-1),\u0275\u0275advance(),\u0275\u0275conditional(ctx.resize.resizableHandles!=null&&ctx.resize.resizableHandles.nw&&ctx.resize.resizeEnabled?8:-1))},styles:[`gridster-item{box-sizing:border-box;z-index:1;position:absolute;overflow:hidden;transition:.3s;display:none;background:#fff;-webkit-user-select:text;user-select:text}gridster-item.gridster-item-moving{cursor:move}gridster-item.gridster-item-resizing,gridster-item.gridster-item-moving{transition:0s;z-index:2;box-shadow:0 0 5px 5px #0003,0 6px 10px #00000024,0 1px 18px #0000001f}.gridster-item-resizable-handler{position:absolute;z-index:2}.gridster-item-resizable-handler.handle-n{cursor:ns-resize;height:10px;right:0;top:0;left:0}.gridster-item-resizable-handler.handle-e{cursor:ew-resize;width:10px;bottom:0;right:0;top:0}.gridster-item-resizable-handler.handle-s{cursor:ns-resize;height:10px;right:0;bottom:0;left:0}.gridster-item-resizable-handler.handle-w{cursor:ew-resize;width:10px;left:0;top:0;bottom:0}.gridster-item-resizable-handler.handle-ne{cursor:ne-resize;width:10px;height:10px;right:0;top:0}.gridster-item-resizable-handler.handle-nw{cursor:nw-resize;width:10px;height:10px;left:0;top:0}.gridster-item-resizable-handler.handle-se{cursor:se-resize;width:0;height:0;right:0;bottom:0;border-style:solid;border-width:0 0 10px 10px;border-color:transparent}.gridster-item-resizable-handler.handle-sw{cursor:sw-resize;width:10px;height:10px;left:0;bottom:0}gridster-item:hover .gridster-item-resizable-handler.handle-se{border-color:transparent transparent #ccc}
48
48
  `],encapsulation:2})}return GridsterItemComponent2})();var GridsterModule=(()=>{class GridsterModule2{static \u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||GridsterModule2)};static \u0275mod=\u0275\u0275defineNgModule({type:GridsterModule2});static \u0275inj=\u0275\u0275defineInjector({})}return GridsterModule2})();var ComponentGridModeDirective=(()=>{let _ComponentGridModeDirective=class _ComponentGridModeDirective{};_ComponentGridModeDirective.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_ComponentGridModeDirective)},_ComponentGridModeDirective.\u0275dir=\u0275\u0275defineDirective({type:_ComponentGridModeDirective,selectors:[["","ixComponentGridMode",""]],inputs:{value:[0,"ixComponentGridMode","value"]},standalone:!1});let ComponentGridModeDirective3=_ComponentGridModeDirective;return ComponentGridModeDirective3})();var ComponentGridScopeDirective=(()=>{let _ComponentGridScopeDirective=class _ComponentGridScopeDirective{};_ComponentGridScopeDirective.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_ComponentGridScopeDirective)},_ComponentGridScopeDirective.\u0275dir=\u0275\u0275defineDirective({type:_ComponentGridScopeDirective,selectors:[["","ixComponentGridScope",""]],inputs:{value:[0,"ixComponentGridScope","value"]},standalone:!1});let ComponentGridScopeDirective3=_ComponentGridScopeDirective;return ComponentGridScopeDirective3})();var ComponentContextInterceptor=class{andThen(other){return new ComposedComponentContextInterceptor(this,other)}},ComposedComponentContextInterceptor=class extends ComponentContextInterceptor{constructor(first2,second){super(),this.first=first2,this.second=second}intercept(command,args){return this.first.intercept(command,args).pipe(mergeMap(a=>this.second.intercept(command,a)))}};var COMPONENT_CONTEXT_INTERCEPTORS=new InjectionToken("component-context-interceptors",{providedIn:"root",factory:()=>[]});var FEATURE_NAME3="agentTemplate",SUBRESOURCE_PATH_TO_FEATURE_NAME2=new Map([["config.routerAdditionalSubnets[]","agentRouterAdditionalSubnet"],["config.routerPortForwards[]","agentRouterPortForward"],["dataSources[]","agentDataSource"],["devices[]","agentDevice"],["lanWanAccessRules[]","agentRouterLanWanAccessRule"],["pageLinks[]","pageLink"],["servers[]","agentServer"],["type","agentType"],["vpnAccessRules[]","agentVpnAccessRule"],["vpnAudience","audience"]]),SUBRESOURCE_PATHS2=[...SUBRESOURCE_PATH_TO_FEATURE_NAME2.keys()];var add12=createAction("[App] Add AgentTemplate",props()),addFailure12=createAction("[IxApi] Add AgentTemplate Failure",props()),addSuccess12=createAction("[IxApi] Add AgentTemplate Success",props()),addFromAgent=createAction("[App] Add AgentTemplate From Agent",props()),addFromAgentFailure=createAction("[IxApi] Add AgentTemplate From Agent Failure",props()),addFromAgentSuccess=createAction("[IxApi] Add AgentTemplate From Agent Success",props()),didAdd15=createAction("[ChangeNotification] AgentTemplate Was Added",props()),didRemove15=createAction("[ChangeNotification] AgentTemplate Was Removed",props()),didUpdate14=createAction("[ChangeNotification] AgentTemplate Was Updated",props()),ensureAll7=createAction("[App] Ensure All AgentTemplates",props()),loadOne3=createAction("[App] Load One AgentTemplate",props()),loadOneFailure3=createAction("[IxApi] Load One AgentTemplate Failure",props()),loadOneSuccess3=createAction("[IxApi] Load One AgentTemplate Success",props()),loadAll7=createAction("[App] Load All AgentTemplates",props()),loadAllFailure7=createAction("[IxApi] Load All AgentTemplates Failure",props()),loadAllSuccess8=createAction("[IxApi] Load All AgentTemplates Success",props()),remove12=createAction("[App] Remove AgentTemplate",props()),removeFailure12=createAction("[IxApi] Remove AgentTemplate Failure",props()),removeSuccess12=createAction("[IxApi] Remove AgentTemplate Success",props()),update12=createAction("[App] Update AgentTemplate",props()),updateFailure12=createAction("[IxApi] Update AgentTemplate Failure",props()),updateSuccess12=createAction("[IxApi] Update AgentTemplate Success",props()),reset15=createAction("[App] Reset AgentTemplate State"),shouldRemove3=createAction("[OptimisticMutation] AgentTemplate Should Remove",props());var adapter3=createResourceAdapter({sortComparer:sortByNameAndPublicIdComparer,subresourcePaths:SUBRESOURCE_PATHS2,mergeFn:updateResource}),initialState3=adapter3.getInitialState(),reducer3=createReducer(initialState3,on(reset15,()=>__spreadValues({},initialState3)),on(addSuccess12,didAdd15,(state,{data})=>data?adapter3.upsertOne(data,state):state),on(loadAll7,(state,{fields})=>{let allLoadingFields=mergeFields(state.allLoadingFields,fields);return __spreadProps(__spreadValues({},state),{allLoading:!0,allLoadingFields})}),on(loadAllFailure7,state=>__spreadProps(__spreadValues({},state),{allLoading:!1})),on(loadAllSuccess8,(state,{data,fields})=>{let allLoadedFields=mergeFields(state.allLoadedFields,fields);return adapter3.upsertMany(data,__spreadProps(__spreadValues({},state),{allLoading:!1,allLoaded:!0,allLoadedFields}))}),on(loadOneSuccess3,(state,{data})=>adapter3.upsertOne(data,__spreadValues({},state))),on(updateSuccess12,didUpdate14,(state,{data,publicId})=>data?adapter3.updateOne({id:publicId,changes:data},state):state),on(shouldRemove3,removeSuccess12,didRemove15,(state,{publicId})=>adapter3.removeOne(publicId,state)),on(shouldUpdate,didUpdate2,(state,{data,publicId})=>data?adapter3.updateOne({id:publicId,changes:data},state):state),on(addSuccess3,didAdd4,(state,{data})=>{let agentId=data.agent?.publicId;return agentId?adapter3.mutate(agentId,"config.routerAdditionalSubnets",state).upsertOne(data.publicId):state}),on(removeSuccess3,didRemove4,(state,{publicId})=>{let agentId=Object.keys(state.entities).find(id=>state.entities[id]?.config?.routerAdditionalSubnets?.some(subnet=>subnet.publicId===publicId));return agentId?adapter3.mutate(agentId,"config.routerAdditionalSubnets",state).removeOne(publicId):state}),on(addSuccess4,didAdd5,(state,{agentId,publicId})=>adapter3.mutate(agentId,"config.routerPortForwards",state).upsertOne(publicId)),on(shouldRemove,removeSuccess4,didRemove5,(state,{agentId,publicId})=>adapter3.mutate(agentId,"config.routerPortForwards",state).removeOne(publicId)),on(addSuccess7,didAdd10,(state,{data})=>{let agentId=data.agent?.publicId;return agentId?adapter3.mutate(agentId,"vpnAccessRules",state).upsertOne(data.publicId):state}),on(removeSuccess7,didRemove10,(state,{publicId})=>{let agentId=Object.keys(state.entities).find(id=>state.entities[id]?.vpnAccessRules?.some(accessRule=>accessRule.publicId===publicId));return agentId?adapter3.mutate(agentId,"vpnAccessRules",state).removeOne(publicId):state}),on(addSuccess5,didAdd7,(state,{data,publicId})=>{let agentId=data.agent?.publicId;return agentId?adapter3.mutate(agentId,"dataSources",state).upsertOne(publicId):state}),on(removeSuccess5,didRemove7,(state,{publicId})=>{let agentId=Object.keys(state.entities).find(id=>state.entities[id]?.dataSources?.some(dataSource=>dataSource.publicId===publicId));return agentId?adapter3.mutate(agentId,"dataSources",state).removeOne(publicId):state}),on(addSuccess6,didAdd8,(state,{agentId,publicId})=>adapter3.mutate(agentId,"devices",state).upsertOne(publicId)),on(removeSuccess6,didRemove8,(state,{agentId,publicId})=>adapter3.mutate(agentId,"devices",state).removeOne(publicId)),on(addSuccess11,didAdd14,(state,{data,publicId})=>{let agentId=data?.agent?.publicId;return agentId?adapter3.mutate(agentId,"pageLinks",state).upsertOne(publicId):state}),on(removeSuccess11,didRemove14,(state,{publicId})=>{let agentId=Object.keys(state.entities).find(id=>state.entities[id]?.pageLinks?.some(pageLink=>pageLink.publicId===publicId));return agentId?adapter3.mutate(agentId,"pageLinks",state).removeOne(publicId):state}),on(addSuccess8,didAdd11,(state,{agentId,publicId})=>adapter3.mutate(agentId,"servers",state).upsertOne(publicId)),on(shouldRemove2,removeSuccess8,didRemove11,(state,{publicId})=>{let agentId=Object.keys(state.entities).find(id=>state.entities[id]?.servers?.some(server=>server.publicId===publicId));return agentId?adapter3.mutate(agentId,"servers",state).removeOne(publicId):state})),feature3=createFeature({name:FEATURE_NAME3,reducer:reducer3});var selectAll4=createSelector(feature3.selectAgentTemplateState,adapter3.getSelectors().selectAll),selectAllWithFields=createResourceSelectorFactory(selectAll4,SUBRESOURCE_PATH_TO_FEATURE_NAME2);var{selectAllLoading:selectAllLoading3,selectAllLoaded:selectAllLoaded3,selectAllLoadedFields:selectAllLoadedFields2,selectEntities:selectEntities5}=feature3;var FEATURE_NAME4="backendComponentTemplate",FIELDS=buildFields(`
@@ -281,7 +281,7 @@ list should be an Array.`),e3.length===0)return new f(0);if(e3.length===1)return
281
281
  resourceVariant { publicId }
282
282
  root { publicId reference { name } }
283
283
  }
284
- `),SUBRESOURCE_PATH_TO_FEATURE_NAME7=new Map([["memberships[]","assetMembership"],["appConfigs[]","assetAppConfig"],["appConfigs[].resources[]","assetAppConfigResource"],["libraryVersion","assetLibraryVersion"],["pageLinks[]","pageLink"],["resourceVariant","assetType"]]),SUBRESOURCE_PATHS7=[...SUBRESOURCE_PATH_TO_FEATURE_NAME7.keys()];function sortByOrder(a,b){return a.order!==void 0&&b.order!==void 0?a.order-b.order:0}var adapter16=createResourceAdapter({sortComparer:sortByOrder,subresourcePaths:SUBRESOURCE_PATHS7,mergeFn:updateResource}),initialState18=adapter16.getInitialState({allIdsForRoot:{},allLoadedForRoot:{},allLoadingForRoot:{},allRootsLoaded:!1,allRootsLoading:!1,allEnabledLoaded:!1,allEnabledLoading:!1,allLibrariesLoaded:!1,allLibrariesLoading:!1}),reducer15=createReducer(initialState18,on(reset12,()=>__spreadValues({},initialState18)),on(addSuccess9,didAdd12,(state,{data})=>data?adapter16.upsertOne(data,_updateAllIdsForRoot({added:[data]},state)):state),on(addLibrarySuccess,(state,{assetId,libraryAsset})=>adapter16.upsertOne({libraryAsset,publicId:assetId},state)),on(addInstanceListSuccess,(state,{data})=>data?adapter16.upsertMany(data,_updateAllIdsForRoot({added:data},state)):state),on(detachInstanceSuccess,(state,{publicId})=>adapter16.updateOne({id:publicId,changes:{libraryAsset:null}},state)),on(loadAll5,state=>__spreadProps(__spreadValues({},state),{allLoading:!0,allRootsLoading:!0,allEnabledLoading:!0,allLibrariesLoading:!0})),on(loadAllFailure5,state=>__spreadProps(__spreadValues({},state),{allLoading:!1,allRootsLoading:!1,allEnabledLoading:!1,allLibrariesLoading:!1})),on(loadAllSuccess6,(state,{data})=>adapter16.setAll(data,__spreadProps(__spreadValues({},state),{allLoading:!1,allLoaded:!0,allRootsLoading:!1,allRootsLoaded:!0,allEnabledLoading:!1,allEnabledLoaded:!0,allLibrariesLoading:!1,allLibrariesLoaded:!0}))),on(loadAllForRoot,(state,{rootId})=>__spreadProps(__spreadValues({},state),{allLoadingForRoot:__spreadProps(__spreadValues({},state.allLoadingForRoot),{[rootId]:!0})})),on(loadAllForRootFailure,(state,{rootId})=>__spreadProps(__spreadValues({},state),{allLoadingForRoot:__spreadProps(__spreadValues({},state.allLoadingForRoot),{[rootId]:!1})})),on(loadAllForRootSuccess,(state,{rootId,data})=>adapter16.upsertMany(data,__spreadProps(__spreadValues({},state),{allIdsForRoot:__spreadProps(__spreadValues({},state.allIdsForRoot),{[rootId]:data.map(asset=>asset.publicId)}),allLoadingForRoot:__spreadProps(__spreadValues({},state.allLoadingForRoot),{[rootId]:!1}),allLoadedForRoot:__spreadProps(__spreadValues({},state.allLoadedForRoot),{[rootId]:!0})}))),on(loadAllRoots,state=>__spreadProps(__spreadValues({},state),{allRootsLoading:!0})),on(loadAllRootsFailure,state=>__spreadProps(__spreadValues({},state),{allRootsLoading:!1})),on(loadAllRootsSuccess,(state,{data})=>adapter16.upsertMany(data,__spreadProps(__spreadValues({},state),{allRootsLoading:!1,allRootsLoaded:!0}))),on(loadAllEnabled,state=>__spreadProps(__spreadValues({},state),{allEnabledLoading:!0})),on(loadAllEnabledFailure,state=>__spreadProps(__spreadValues({},state),{allEnabledLoading:!1})),on(loadAllEnabledSuccess,(state,{data})=>adapter16.upsertMany(data,__spreadProps(__spreadValues({},state),{allEnabledLoading:!1,allEnabledLoaded:!0}))),on(loadAllLibraries,state=>__spreadProps(__spreadValues({},state),{allLibrariesLoading:!0})),on(loadAllLibrariesFailure,state=>__spreadProps(__spreadValues({},state),{allLibrariesLoading:!1})),on(loadAllLibrariesSuccess,(state,{data})=>adapter16.upsertMany(data,__spreadProps(__spreadValues({},state),{allLibrariesLoading:!1,allLibrariesLoaded:!0}))),on(loadOneSuccess2,(state,{data})=>adapter16.upsertOne(data,state)),on(removeLibrarySuccess,(state,{publicId})=>{let instances=Object.keys(state.entities).filter(id=>state.entities[id]?.libraryAsset?.publicId===publicId);return instances.length?adapter16.updateMany(instances.map(instanceId=>({id:instanceId,changes:{libraryAsset:null}})),adapter16.removeOne(publicId,state)):adapter16.removeOne(publicId,state)}),on(removeSuccess9,didRemove12,(state,{publicId})=>adapter16.removeOne(publicId,_updateAllIdsForRoot({removed:[publicId]},state))),on(updateSuccess9,didUpdate11,(state,{data,publicId})=>adapter16.updateOne({id:publicId,changes:data},state)),on(removeSuccess2,didRemove2,(state,{publicId})=>{let assetId=Object.keys(state.entities).find(id=>state.entities[id]?.agent?.publicId===publicId);return assetId?adapter16.updateOne({id:assetId,changes:{agent:null}},state):state}),on(didAdd49,(state,{data})=>{let assetId=data.asset?.publicId;return assetId?adapter16.mutate(assetId,"memberships",state).upsertOne(data.publicId):state}),on(addListSuccess9,(state,{data})=>data.reduce((newState,membership)=>{let assetId=membership.asset?.publicId;return assetId?adapter16.mutate(assetId,"memberships",newState).upsertOne(membership.publicId):newState},state)),on(didRemove46,(state,{publicId})=>{let assetId=Object.keys(state.entities).find(id=>state.entities[id]?.memberships?.some(membership=>membership.publicId===publicId));return assetId?adapter16.mutate(assetId,"memberships",state).removeOne(publicId):state}),on(removeListSuccess10,(state,{publicIdList})=>publicIdList.reduce((newState,publicId)=>{let assetId=Object.keys(state.entities).find(id=>newState.entities[id]?.memberships?.some(membership=>membership.publicId===publicId));return assetId?adapter16.mutate(assetId,"memberships",newState).removeOne(publicId):newState},state)),on(addSuccess33,(state,{assetId})=>adapter16.updateOne({id:assetId,changes:{hasChanges:!1}},state)),on(addSuccess11,didAdd14,(state,{data,publicId})=>{let assetId=data?.asset?.publicId;return assetId?adapter16.mutate(assetId,"pageLinks",state).upsertOne(publicId):state}),on(removeSuccess11,didRemove14,(state,{publicId})=>{let assetId=Object.keys(state.entities).find(id=>state.entities[id]?.pageLinks?.some(link=>link.publicId===publicId));return assetId?adapter16.mutate(assetId,"pageLinks",state).removeOne(publicId):state}),on(updateSuccess32,didAdd46,(state,{data})=>{let assetId=data?.asset?.publicId;return assetId?adapter16.mutate(assetId,"appConfigs",state).upsertOne(data.publicId):state}),on(didRemove43,(state,{publicId})=>{let assetId=Object.keys(state.entities).find(id=>state.entities[id]?.appConfigs?.some(appConfig=>appConfig.publicId===publicId));return assetId?adapter16.mutate(assetId,"appConfigs",state).removeOne(publicId):state})),feature15=createFeature({name:FEATURE_NAME18,reducer:reducer15});function _updateAllIdsForRoot(changes,state){return __spreadProps(__spreadValues({},state),{allIdsForRoot:Object.keys(state.allIdsForRoot).reduce((acc,rootId)=>(changes.added?.length&&(acc=changes.added.reduce((_acc,asset)=>asset.parent&&_acc[rootId].includes(asset.parent.publicId)?__spreadProps(__spreadValues({},_acc),{[rootId]:[..._acc[rootId],asset.publicId]}):_acc,acc)),changes.removed?.length&&(changes.removed.includes(rootId)?acc=omitBy_default(acc,(_,id)=>id===rootId):acc[rootId].some(id=>changes.removed?.includes(id))&&(acc=__spreadProps(__spreadValues({},acc),{[rootId]:acc[rootId].filter(id=>!changes.removed?.includes(id))}))),acc),state.allIdsForRoot)})}var selectAll16=createSelector(feature15.selectAssetState,adapter16.getSelectors().selectAll),selectAllRoots=createSelector(selectAll16,all=>all.filter(asset=>asset.parent===null&&!asset.isLibraryAsset)),selectAllForRoot=rootId=>createSelector(feature15.selectAssetState,state=>{let ids=[rootId,...state.allIdsForRoot[rootId]||[]];return state.ids.filter(id=>ids.includes(id)).map(id=>state.entities[id])}),selectAllLoadingForRoot=rootId=>createSelector(feature15.selectAssetState,state=>!!state.allLoadingForRoot[rootId]),selectAllLoadedForRoot=rootId=>createSelector(feature15.selectAssetState,state=>!!state.allLoadedForRoot[rootId]),selectAllEnabled=createSelector(selectAll16,all=>all.filter(asset=>!!asset.enabled&&!asset.isLibraryAsset)),selectAllLibraries=createSelector(selectAll16,all=>all.filter(asset=>!!asset.isLibraryAsset&&asset.parent===null)),selectEntity7=publicId=>createSelector(feature15.selectEntities,entities=>publicId&&entities[publicId]||null);var selectEntityWithFields3=publicId=>createResourceSelectorFactory(selectEntity7(publicId),SUBRESOURCE_PATH_TO_FEATURE_NAME7);var{selectAllLoading:selectAllLoading11,selectAllLoaded:selectAllLoaded11,selectAllRootsLoading,selectAllRootsLoaded,selectAllEnabledLoaded,selectAllEnabledLoading,selectAllLibrariesLoaded,selectAllLibrariesLoading,selectEntities:selectEntities16}=feature15;var AssetService=(()=>{let _AssetService=class _AssetService{constructor(api,http){this.api=api,this.http=http}add(body){let url=this.api.url("AssetList"),context3=new HttpContext().set(REQUIRES_COMPANY,!0),headers=this.api.headers,options={context:context3,headers};return this.http.post(url,body,options)}addLibrary(publicId){let url=this.api.url("AssetLibrary",{publicId}),context3=new HttpContext().set(REQUIRES_COMPANY,!0),headers=this.api.headers,options={context:context3,headers};return this.http.post(url,null,options)}addInstanceList(body){let url=this.api.url("AssetLibraryInstanceList"),context3=new HttpContext().set(REQUIRES_COMPANY,!0),headers=this.api.headers,options={context:context3,headers};return this.http.post(url,body,options)}detachInstance(publicId){let url=this.api.url("AssetLibraryInstanceDetach",{publicId}),context3=new HttpContext().set(REQUIRES_COMPANY,!0),headers=this.api.headers,body={},options={context:context3,headers};return this.http.patch(url,body,options)}getAll(fields,filters){return whileMoreAfter(moreAfter=>this.getList(fields,filters,moreAfter))}getAllChildren(publicId,fields){return this.getAll(fields,[`eq(parent.publicId,"${publicId}")`])}getAllDescendants(publicId,fields){return whileMoreAfter(moreAfter=>this.getDescendantList(publicId,fields,moreAfter))}getAllForRoot(rootId,fields){return forkJoin([this.getByPublicId(rootId,fields),this.getAllDescendants(rootId,fields)]).pipe(map(responses=>({data:[responses[0].data,...responses[1].data],moreAfter:null,status:"success",type:"Asset"})))}getAllRoots(fields){return this.getAll(fields,["isnull(parent)",'eq(isLibraryAsset,"false")'])}getAllLibraries(fields){return this.getAll(fields,['eq(isLibraryAsset,"true")'])}getAllEnabled(fields){return this.getAll(fields,["enabled"])}getByPublicId(publicId,fields){let url=this.api.url("Asset",{publicId}),context3=new HttpContext().set(REQUIRES_COMPANY,!0),headers=this.api.headers,params=new HttpParams({fromObject:{fields:fields.join(",")}}),options={context:context3,headers,params};return this.http.get(url,options)}getDescendantList(publicId,fields,pageAfter,pageSize){let url=this.api.url("AssetDescendantList",{publicId}),context3=new HttpContext().set(REQUIRES_COMPANY,!0),params=new HttpParams({fromObject:__spreadValues({fields:fields.join(",")},getPageParams(pageAfter,pageSize))}),headers=this.api.headers,options={context:context3,headers,params};return this.http.get(url,options)}getList(fields,filters,pageAfter,pageSize){let url=this.api.url("AssetList"),context3=new HttpContext().set(REQUIRES_COMPANY,!0),params=new HttpParams({fromObject:__spreadValues(__spreadValues({fields:fields.join(",")},filters?{filters}:{}),getPageParams(pageAfter,pageSize))}),headers=this.api.headers,options={context:context3,headers,params};return this.http.get(url,options)}removeByPublicId(publicId){let url=this.api.url("Asset",{publicId}),context3=new HttpContext().set(REQUIRES_COMPANY,!0),headers=this.api.headers,options={context:context3,headers};return this.http.delete(url,options)}removeLibrary(publicId){let url=this.api.url("AssetLibrary",{publicId}),context3=new HttpContext().set(REQUIRES_COMPANY,!0),headers=this.api.headers,options={context:context3,headers};return this.http.delete(url,options)}updateByPublicId(publicId,body){let url=this.api.url("Asset",{publicId}),context3=new HttpContext().set(REQUIRES_COMPANY,!0),headers=this.api.headers,options={context:context3,headers};return this.http.patch(url,body,options)}updateInstance(publicId){let url=this.api.url("AssetLibraryInstanceList"),context3=new HttpContext().set(REQUIRES_COMPANY,!0),headers=this.api.headers,options={context:context3,headers};return this.http.patch(url,[{instance:{publicId}}],options)}getRendered(publicId){let url=this.api.url("AssetRender",{publicId}),context3=new HttpContext().set(REQUIRES_COMPANY,!0),headers=this.api.headers,options={context:context3,headers};return this.http.get(url,options)}};_AssetService.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_AssetService)(\u0275\u0275inject(IxApiService),\u0275\u0275inject(HttpClient))},_AssetService.\u0275prov=\u0275\u0275defineInjectable({token:_AssetService,factory:_AssetService.\u0275fac,providedIn:"root"});let AssetService2=_AssetService;return AssetService2})();var AssetEffects=(()=>{let _AssetEffects=class _AssetEffects{constructor(actions$,store,service){this.actions$=actions$,this.store=store,this.service=service,this.add$=createEffect(()=>this.actions$.pipe(ofType(add9),mergeMap(({data})=>this.service.add(data).pipe(map(response=>addSuccess9({data:__spreadValues(__spreadValues({},response.data),data)})),catchError(errorResponse=>of(addFailure9({errors:errorResponse.error?.data??[]}))))))),this.addLibrary$=createEffect(()=>this.actions$.pipe(ofType(addLibrary),mergeMap(({assetId})=>this.service.addLibrary(assetId).pipe(map(({data})=>addLibrarySuccess({assetId,libraryAsset:data})),catchError(errorResponse=>of(addLibraryFailure({errors:errorResponse.error?.data??[]}))))))),this.addInstanceList$=createEffect(()=>this.actions$.pipe(ofType(addInstanceList),mergeMap(({data})=>this.service.addInstanceList(data.reduce((instanceCreateList,instanceCreate)=>{if(instanceCreate.libraryVersion.library){let assetInstanceCreate={parent:instanceCreate.parent,order:instanceCreate.order,libraryAsset:{publicId:instanceCreate.libraryVersion.library.publicId}};return[...instanceCreateList,assetInstanceCreate]}return instanceCreateList},[])).pipe(map(response=>addInstanceListSuccess({data:response.data.map((instance,index)=>({order:data[index].order,name:data[index].libraryVersion.name,publicId:instance.publicId,parent:{publicId:data[index].parent.publicId},libraryAsset:data[index].libraryVersion.library,libraryVersion:{publicId:data[index].libraryVersion.publicId},isLibraryAsset:!1}))})),catchError(errorResponse=>of(addInstanceListFailure({errors:errorResponse.error?.data??[]}))))))),this.detachInstance$=createEffect(()=>this.actions$.pipe(ofType(detachInstance),mergeMap(({publicId})=>this.service.detachInstance(publicId).pipe(map(()=>detachInstanceSuccess({publicId})),catchError(errorResponse=>of(detachInstanceFailure({errors:errorResponse.error?.data??[]}))))))),this.ensureAll$=createEffect(()=>this.actions$.pipe(ofType(ensureAll5),mergeMap(()=>combineLatest([this.store.select(selectAllLoading11),this.store.select(selectAllLoaded11)]).pipe(take(1),mergeMap(([loading,loaded])=>!loading&&!loaded?of(loadAll5()):EMPTY))))),this.ensureAllForRoot$=createEffect(()=>this.actions$.pipe(ofType(ensureAllForRoot),mergeMap(({rootId})=>combineLatest([this.store.select(selectAllLoadingForRoot(rootId)),this.store.select(selectAllLoadedForRoot(rootId))]).pipe(take(1),mergeMap(([loading,loaded])=>!loading&&!loaded?of(loadAllForRoot({rootId})):EMPTY))))),this.ensureAllRoots$=createEffect(()=>this.actions$.pipe(ofType(ensureAllRoots),mergeMap(()=>combineLatest([this.store.select(selectAllRootsLoading),this.store.select(selectAllRootsLoaded)]).pipe(take(1),mergeMap(([loading,loaded])=>!loading&&!loaded?of(loadAllRoots()):EMPTY))))),this.ensureAllEnabled$=createEffect(()=>this.actions$.pipe(ofType(ensureAllEnabled),mergeMap(()=>combineLatest([this.store.select(selectAllEnabledLoading),this.store.select(selectAllEnabledLoaded)]).pipe(take(1),mergeMap(([loading,loaded])=>!loading&&!loaded?of(loadAllEnabled()):EMPTY))))),this.ensureAllLibraries$=createEffect(()=>this.actions$.pipe(ofType(ensureAllLibraries),mergeMap(()=>combineLatest([this.store.select(selectAllLibrariesLoading),this.store.select(selectAllLibrariesLoaded)]).pipe(take(1),mergeMap(([loading,loaded])=>!loading&&!loaded?of(loadAllLibraries()):EMPTY))))),this.ensureOne$=createEffect(()=>this.actions$.pipe(ofType(ensureOne2),mergeMap(({publicId})=>this.store.select(selectEntity7(publicId)).pipe(take(1),mergeMap(asset=>asset?EMPTY:of(loadOne2({publicId}))))))),this.loadAll$=createEffect(()=>this.actions$.pipe(ofType(loadAll5),switchMap(()=>this.service.getAll(ASSET_FIELDS).pipe(map(({data})=>loadAllSuccess6({data})),catchError(errorResponse=>of(loadAllFailure5({errors:errorResponse.error?.data??[]}))))))),this.loadAllEnabled$=createEffect(()=>this.actions$.pipe(ofType(loadAllEnabled),switchMap(()=>this.service.getAllEnabled(ASSET_FIELDS).pipe(map(({data})=>loadAllEnabledSuccess({data})),catchError(errorResponse=>of(loadAllEnabledFailure({errors:errorResponse.error?.data??[]}))))))),this.loadAllLibraries$=createEffect(()=>this.actions$.pipe(ofType(loadAllLibraries),switchMap(()=>this.service.getAllLibraries(ASSET_FIELDS).pipe(map(({data})=>loadAllLibrariesSuccess({data})),catchError(errorResponse=>of(loadAllLibrariesFailure({errors:errorResponse.error?.data??[]}))))))),this.loadAllForRoot$=createEffect(()=>this.actions$.pipe(ofType(loadAllForRoot),switchMap(({rootId})=>this.service.getAllForRoot(rootId,ASSET_FIELDS).pipe(map(({data})=>loadAllForRootSuccess({rootId,data})),catchError(errorResponse=>of(loadAllForRootFailure({rootId,errors:errorResponse.error?.data??[]}))))))),this.loadAllRoots$=createEffect(()=>this.actions$.pipe(ofType(loadAllRoots),switchMap(()=>this.service.getAllRoots(ASSET_FIELDS).pipe(map(({data})=>loadAllRootsSuccess({data})),catchError(errorResponse=>of(loadAllRootsFailure({errors:errorResponse.error?.data??[]}))))))),this.loadOne$=createEffect(()=>this.actions$.pipe(ofType(loadOne2),switchMap(({publicId})=>this.service.getByPublicId(publicId,ASSET_FIELDS).pipe(map(({data})=>loadOneSuccess2({data,publicId})),catchError(errorResponse=>of(loadOneFailure2({errors:errorResponse.error?.data??[],publicId}))))))),this.remove$=createEffect(()=>this.actions$.pipe(ofType(remove9),mergeMap(({publicId})=>this.service.removeByPublicId(publicId).pipe(map(()=>removeSuccess9({publicId})),catchError(errorResponse=>of(removeFailure9({errors:errorResponse.error?.data??[],publicId}))))))),this.removeLibrary$=createEffect(()=>this.actions$.pipe(ofType(removeLibrary),mergeMap(({publicId})=>this.service.removeLibrary(publicId).pipe(map(()=>removeLibrarySuccess({publicId})),catchError(errorResponse=>of(removeLibraryFailure({errors:errorResponse.error?.data??[],publicId}))))))),this.update$=createEffect(()=>this.actions$.pipe(ofType(update9),mergeMap(({publicId,data})=>this.service.updateByPublicId(publicId,data).pipe(map(()=>updateSuccess9({data:__spreadProps(__spreadValues({},data),{publicId}),publicId})),catchError(errorResponse=>of(updateFailure9({errors:errorResponse.error?.data??[]}))))))),this.updateInstance$=createEffect(()=>this.actions$.pipe(ofType(updateInstance),mergeMap(({publicId})=>this.service.updateInstance(publicId).pipe(map(()=>updateInstanceSuccess({publicId})),catchError(errorResponse=>of(updateInstanceFailure({errors:errorResponse.error?.data??[]}))))))),this.didLinkAgent$=createEffect(()=>this.actions$.pipe(ofType(didUpdate11),filter(({data})=>!!data.agent?.publicId),map(({publicId})=>loadOne2({publicId}))))}};_AssetEffects.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_AssetEffects)(\u0275\u0275inject(Actions),\u0275\u0275inject(Store),\u0275\u0275inject(AssetService))},_AssetEffects.\u0275prov=\u0275\u0275defineInjectable({token:_AssetEffects,factory:_AssetEffects.\u0275fac,providedIn:"root"});let AssetEffects2=_AssetEffects;return AssetEffects2})();var AssetModule=(()=>{let _AssetModule=class _AssetModule{};_AssetModule.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_AssetModule)},_AssetModule.\u0275mod=\u0275\u0275defineNgModule({type:_AssetModule}),_AssetModule.\u0275inj=\u0275\u0275defineInjector({providers:[provideHttpClient(withInterceptorsFromDi())],imports:[IxApiModule,StoreModule.forFeature(feature15),EffectsModule.forFeature([AssetEffects])]});let AssetModule2=_AssetModule;return AssetModule2})();var FEATURE_NAME19="pageLink",SUBRESOURCE_PATH_TO_FEATURE_NAME8=new Map([["audience","audience"],["group","pageLinkGroup"]]),SUBRESOURCE_PATHS8=[...SUBRESOURCE_PATH_TO_FEATURE_NAME8.keys()];function getContextResLinkPath(contextType){return contextType.replace(/Like$/,"").toLowerCase()}function mapActionTypeToContextResLinkPath(type){return getContextResLinkPath(mapActionTypeToContextType(type))}function mapActionTypeToContextType(type){return type.includes("Asset")?"Asset":"AgentLike"}var adapter17=createResourceAdapter({subresourcePaths:SUBRESOURCE_PATHS8}),initialState19=adapter17.getInitialState(),reducer16=createReducer(initialState19,on(reset14,()=>__spreadValues({},initialState19)),on(addSuccess11,didAdd14,(state,{data})=>data?adapter17.upsertOne(data,state):state),on(removeSuccess11,didRemove14,(state,{publicId})=>adapter17.removeOne(publicId,state)),on(updateSuccess11,didUpdate13,(state,{data,publicId})=>adapter17.updateOne({id:publicId,changes:data},state)),on(updateManySuccess3,(state,{data})=>adapter17.upsertMany(data,state)),on(removeSuccess47,(state,{publicId,deletePageLinks})=>{let publicIds=Object.keys(state.entities).reduce((ids,id)=>state.entities[id]?.group?.publicId===publicId?[...ids,id]:ids,[]);return deletePageLinks?adapter17.removeMany(publicIds,state):adapter17.updateMany(publicIds.map(id=>({id,changes:{group:null}})),state)}),on(loadAllSuccess2,loadAllActiveSuccess,loadAllSuccess8,loadAllSuccess6,loadAllEnabledSuccess,loadAllForRootSuccess,loadAllLibrariesSuccess,loadAllRootsSuccess,(state,{type,data})=>data[0]?.pageLinks?adapter17.upsertMany(flatMap_default(data.map(entity=>mapResourceToSubResourceList(entity,"pageLinks",mapActionTypeToContextResLinkPath(type),mapActionTypeToContextType(type)))),state):state),on(loadOneSuccess,didAdd2,loadOneSuccess3,didAdd15,loadOneSuccess2,didAdd12,(state,{type,data})=>data?.pageLinks?adapter17.upsertMany(mapResourceToSubResourceList(data,"pageLinks",mapActionTypeToContextResLinkPath(type),mapActionTypeToContextType(type)),state):state),on(removeSuccess2,didRemove2,removeSuccess12,didRemove15,removeSuccess9,didRemove12,(state,{type,publicId})=>{let resLinkPath=mapActionTypeToContextResLinkPath(type),publicIdList=Object.keys(state.entities).reduce((ids,id)=>state.entities[id]?.[resLinkPath]?.publicId===publicId?[...ids,id]:ids,[]);return publicIdList.length?adapter17.removeMany(publicIdList,state):state}),on(didUpdate2,didUpdate11,(state,{type,data})=>{if(data?.pageLinks){let resLinkPath=mapActionTypeToContextResLinkPath(type),pageLinks=mapResourceToSubResourceList(data,"pageLinks",resLinkPath,mapActionTypeToContextType(type)),pageLinkIds=data.pageLinks.map(pageLink=>pageLink.publicId);return adapter17.upsertMany(pageLinks,adapter17.removeMany(Object.keys(state.entities).reduce((ids,id)=>state.entities[id]?.[resLinkPath]?.publicId===data.publicId&&!pageLinkIds.includes(id)?[...ids,id]:ids,[]),state))}return state})),feature16=createFeature({name:FEATURE_NAME19,reducer:reducer16});var selectAll17=createSelector(feature16.selectPageLinkState,adapter17.getSelectors().selectAll);var selectEntities17=feature16.selectEntities;var RoleService=(()=>{let _RoleService=class _RoleService{constructor(api,http){this.api=api,this.http=http}add(body){let url=this.api.url("RoleList"),context3=new HttpContext().set(REQUIRES_COMPANY,!0),headers=this.api.headers,options={context:context3,headers};return this.http.post(url,body,options)}getAll(){return whileMoreAfter(moreAfter=>this.getList(moreAfter))}getList(pageAfter,pageSize){let url=this.api.url("RoleList"),context3=new HttpContext().set(REQUIRES_COMPANY,!0),headers=this.api.headers,params=new HttpParams({fromObject:__spreadValues({fields:"audiences(publicId),enforce2fa,enforceSso,name,permissions"},getPageParams(pageAfter,pageSize))}),options={context:context3,headers,params};return this.http.get(url,options)}removeByPublicId(publicId){let url=this.api.url("Role",{publicId}),context3=new HttpContext().set(REQUIRES_COMPANY,!0),headers=this.api.headers,options={context:context3,headers};return this.http.delete(url,options)}updateByPublicId(publicId,body){let url=this.api.url("Role",{publicId}),context3=new HttpContext().set(REQUIRES_COMPANY,!0),headers=this.api.headers,options={context:context3,headers},_a=body,{permissions,audiences}=_a,roleData=__objRest(_a,["permissions","audiences"]);return delete roleData.publicId,forkJoin([roleData.name||roleData.enforce2fa?this.http.patch(url,__spreadValues({},roleData),options):of({data:null}),permissions?this.http.put(this.api.url("RolePermissionList",{publicId}),permissions,options):of({data:null}),audiences?this.http.put(this.api.url("RoleAudienceList",{publicId}),audiences,options):of({data:null})]).pipe(map(responses=>responses[0]))}};_RoleService.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_RoleService)(\u0275\u0275inject(IxApiService),\u0275\u0275inject(HttpClient))},_RoleService.\u0275prov=\u0275\u0275defineInjectable({token:_RoleService,factory:_RoleService.\u0275fac,providedIn:"root"});let RoleService2=_RoleService;return RoleService2})();var RoleEffects=(()=>{let _RoleEffects=class _RoleEffects{constructor(actions$,store,snackBar,service){this.actions$=actions$,this.store=store,this.snackBar=snackBar,this.service=service,this.add$=createEffect(()=>this.actions$.pipe(ofType(add15),mergeMap(({data})=>this.service.add(data).pipe(map(response=>addSuccess15({data:__spreadValues(__spreadValues({},response.data),data)})),catchError(errorResponse=>of(addFailure15({errors:errorResponse.error?.data??[]}))))))),this.ensureAll$=createEffect(()=>this.actions$.pipe(ofType(ensureAll10),mergeMap(()=>combineLatest([this.store.select(selectAllLoading6),this.store.select(selectAllLoaded6)]).pipe(take(1),mergeMap(([loading,loaded])=>!loading&&!loaded?of(loadAll10()):EMPTY))))),this.loadAll$=createEffect(()=>this.actions$.pipe(ofType(loadAll10),switchMap(()=>this.service.getAll().pipe(map(({data})=>loadAllSuccess11({data})),catchError(errorResponse=>of(loadAllFailure10({errors:errorResponse.error?.data??[]}))))))),this.remove$=createEffect(()=>this.actions$.pipe(ofType(remove16),mergeMap(({publicId})=>this.service.removeByPublicId(publicId).pipe(map(()=>removeSuccess16({publicId})),catchError(errorResponse=>of(removeFailure16({errors:errorResponse.error?.data??[]}))))))),this.removeFailure$=createEffect(()=>this.actions$.pipe(ofType(removeFailure16),tap(({errors:errors2})=>{let message=errors2?.[0]?.message;message&&this.snackBar.open(message,void 0,{duration:3e3})})),{dispatch:!1}),this.update$=createEffect(()=>this.actions$.pipe(ofType(update14),mergeMap(({data,publicId})=>this.service.updateByPublicId(publicId,data).pipe(map(()=>updateSuccess14({data:__spreadProps(__spreadValues({},data),{publicId}),publicId})),catchError(errorResponse=>of(updateFailure14({errors:errorResponse.error?.data??[]})))))))}};_RoleEffects.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_RoleEffects)(\u0275\u0275inject(Actions),\u0275\u0275inject(Store),\u0275\u0275inject(MatSnackBar),\u0275\u0275inject(RoleService))},_RoleEffects.\u0275prov=\u0275\u0275defineInjectable({token:_RoleEffects,factory:_RoleEffects.\u0275fac,providedIn:"root"});let RoleEffects2=_RoleEffects;return RoleEffects2})();var RoleModule=(()=>{let _RoleModule=class _RoleModule{};_RoleModule.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_RoleModule)},_RoleModule.\u0275mod=\u0275\u0275defineNgModule({type:_RoleModule}),_RoleModule.\u0275inj=\u0275\u0275defineInjector({providers:[provideHttpClient(withInterceptorsFromDi())],imports:[MatSnackBarModule,IxApiModule,StoreModule.forFeature(feature6),EffectsModule.forFeature([RoleEffects])]});let RoleModule2=_RoleModule;return RoleModule2})();function toValue(observable){let value;return observable.pipe(take(1)).subscribe(v=>value=v),value}var _c02=a0=>({destructive:a0});function ActionBottomSheetComponent_For_2_Template(rf,ctx){if(rf&1){let _r1=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"mat-list-item",1),\u0275\u0275listener("click",function(){let \u0275$index_3_r2=\u0275\u0275restoreView(_r1).$index,ctx_r2=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r2.ref.dismiss({index:\u0275$index_3_r2}))}),\u0275\u0275elementStart(1,"span",2),\u0275\u0275text(2),\u0275\u0275elementEnd()()}if(rf&2){let action_r4=ctx.$implicit;\u0275\u0275property("ngClass",\u0275\u0275pureFunction1(2,_c02,action_r4.destructive)),\u0275\u0275advance(2),\u0275\u0275textInterpolate(action_r4.title)}}var ActionBottomSheetComponent=(()=>{let _ActionBottomSheetComponent=class _ActionBottomSheetComponent{constructor(){this.options=inject(MAT_BOTTOM_SHEET_DATA),this.ref=inject(MatBottomSheetRef)}};_ActionBottomSheetComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_ActionBottomSheetComponent)},_ActionBottomSheetComponent.\u0275cmp=\u0275\u0275defineComponent({type:_ActionBottomSheetComponent,selectors:[["ix-action-bottom-sheet"]],decls:3,vars:0,consts:[[3,"ngClass"],[3,"click","ngClass"],["matListItemTitle",""]],template:function(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"mat-action-list"),\u0275\u0275repeaterCreate(1,ActionBottomSheetComponent_For_2_Template,3,4,"mat-list-item",0,\u0275\u0275repeaterTrackByIdentity),\u0275\u0275elementEnd()),rf&2&&(\u0275\u0275advance(),\u0275\u0275repeater(ctx.options.actions))},dependencies:[NgClass,MatListModule,MatActionList,MatListItem,MatListItemTitle],styles:["[_nghost-%COMP%] .destructive[_ngcontent-%COMP%]{--mdc-list-list-item-label-text-color: var(--warn);--mdc-list-list-item-hover-label-text-color: var(--warn);--mdc-list-list-item-focus-label-text-color: var(--warn)}"]});let ActionBottomSheetComponent2=_ActionBottomSheetComponent;return ActionBottomSheetComponent2})();function AlertDialogComponent_Conditional_0_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"h2",0),\u0275\u0275text(1),\u0275\u0275elementEnd()),rf&2){let ctx_r0=\u0275\u0275nextContext();\u0275\u0275advance(),\u0275\u0275textInterpolate(ctx_r0.options.title)}}var AlertDialogComponent=(()=>{let _AlertDialogComponent=class _AlertDialogComponent{constructor(){this.options=inject(MAT_DIALOG_DATA)}};_AlertDialogComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_AlertDialogComponent)},_AlertDialogComponent.\u0275cmp=\u0275\u0275defineComponent({type:_AlertDialogComponent,selectors:[["ix-alert-dialog"]],decls:7,vars:4,consts:[["mat-dialog-title","","data-testid","alert-dialog-title"],[1,"mat-body-medium"],["data-testid","alert-dialog-message"],["align","end"],["mat-button","","data-testid","alert-dialog-button",3,"mat-dialog-close"]],template:function(rf,ctx){if(rf&1&&(\u0275\u0275template(0,AlertDialogComponent_Conditional_0_Template,2,1,"h2",0),\u0275\u0275elementStart(1,"mat-dialog-content",1)(2,"p",2),\u0275\u0275text(3),\u0275\u0275elementEnd()(),\u0275\u0275elementStart(4,"mat-dialog-actions",3)(5,"button",4),\u0275\u0275text(6),\u0275\u0275elementEnd()()),rf&2){let tmp_3_0;\u0275\u0275conditional(ctx.options.title?0:-1),\u0275\u0275advance(3),\u0275\u0275textInterpolate(ctx.options.message),\u0275\u0275advance(2),\u0275\u0275property("mat-dialog-close",!0),\u0275\u0275advance(),\u0275\u0275textInterpolate1(" ",(tmp_3_0=ctx.options.buttonText)!==null&&tmp_3_0!==void 0?tmp_3_0:"OK"," ")}},dependencies:[TranslateModule,MatDialogModule,MatDialogClose,MatDialogTitle,MatDialogActions,MatDialogContent,MatButtonModule,MatButton],styles:["[_nghost-%COMP%]{width:100dvw;height:100dvh;display:flex;flex-direction:column;flex:1}@media (min-width: 960px){[_nghost-%COMP%]{height:auto;width:auto;min-width:528px;max-width:528px}}[_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%]{padding:calc(env(safe-area-inset-top,0) + 16px) 24px 16px}[_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%] .mat-toolbar{height:48px;padding-left:0;padding-right:0}[_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%] .mat-toolbar .mdc-dialog__title{--mat-dialog-headline-padding: 0;color:inherit}[_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%] .mat-toolbar .mdc-dialog__title:before{display:none}[_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%] + .ix-dialog__content[_ngcontent-%COMP%], [_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%] + .mdc-dialog__content[_ngcontent-%COMP%]{padding-top:0}[_nghost-%COMP%] .mdc-dialog__title[_ngcontent-%COMP%]:before{height:calc(env(safe-area-inset-top,0) + 40px)}[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%]{padding:20px 24px}[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%] > .ix-list[_ngcontent-%COMP%]{margin-left:-24px;margin-right:-24px}[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%], [_nghost-%COMP%] .mdc-dialog__content[_ngcontent-%COMP%]{flex-direction:column;box-sizing:border-box;display:flex;place-content:stretch flex-start;align-items:stretch;flex:1 1 auto;max-height:none;overflow:auto;-webkit-overflow-scrolling:touch}[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%] > .mat-mdc-subheader[_ngcontent-%COMP%], [_nghost-%COMP%] .mdc-dialog__content[_ngcontent-%COMP%] > .mat-mdc-subheader[_ngcontent-%COMP%]{margin-left:0;margin-right:0}@media (min-width: 960px){[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%], [_nghost-%COMP%] .mdc-dialog__content[_ngcontent-%COMP%]{max-height:calc(90dvh - 140px)}[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%]:has(+.mdc-dialog__actions), [_nghost-%COMP%] .mdc-dialog__content[_ngcontent-%COMP%]:has(+.mdc-dialog__actions){padding-bottom:0}}@media (min-width: 960px){[_nghost-%COMP%] .ix-dialog__banner[_ngcontent-%COMP%] + .ix-dialog__content[_ngcontent-%COMP%]{max-height:calc(90dvh - 225px)}}@media (max-width: 959.9px){[_nghost-%COMP%] .mdc-dialog__actions[_ngcontent-%COMP%]{border-top:1px solid rgba(0,0,0,.12);padding-bottom:calc(16px + env(safe-area-inset-bottom,0))}}[_nghost-%COMP%] form[_ngcontent-%COMP%]{flex-direction:column;box-sizing:border-box;display:flex;flex:1 1 auto;height:inherit}[_nghost-%COMP%] form[_ngcontent-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%]{margin-bottom:1rem}[_nghost-%COMP%] .mdc-dialog__content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{white-space:pre-wrap}"]});let AlertDialogComponent3=_AlertDialogComponent;return AlertDialogComponent3})();function ConfirmDialogComponent_Conditional_0_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"h2",0),\u0275\u0275text(1),\u0275\u0275elementEnd()),rf&2){let ctx_r0=\u0275\u0275nextContext();\u0275\u0275advance(),\u0275\u0275textInterpolate(ctx_r0.options.title)}}function ConfirmDialogComponent_Conditional_4_Template(rf,ctx){if(rf&1){let _r2=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"mat-checkbox",7),\u0275\u0275twoWayListener("ngModelChange",function($event){\u0275\u0275restoreView(_r2);let ctx_r0=\u0275\u0275nextContext();return \u0275\u0275twoWayBindingSet(ctx_r0.checked,$event)||(ctx_r0.checked=$event),\u0275\u0275resetView($event)}),\u0275\u0275text(1),\u0275\u0275pipe(2,"translate"),\u0275\u0275elementEnd()}if(rf&2){let tmp_2_0,ctx_r0=\u0275\u0275nextContext();\u0275\u0275twoWayProperty("ngModel",ctx_r0.checked),\u0275\u0275advance(),\u0275\u0275textInterpolate1(" ",\u0275\u0275pipeBind1(2,2,(tmp_2_0=ctx_r0.options.confirmCheckboxText)!==null&&tmp_2_0!==void 0?tmp_2_0:"I_AM_SURE")," ")}}var ConfirmDialogComponent=(()=>{let _ConfirmDialogComponent=class _ConfirmDialogComponent{constructor(){this.options=inject(MAT_DIALOG_DATA),this.checked=!1}};_ConfirmDialogComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_ConfirmDialogComponent)},_ConfirmDialogComponent.\u0275cmp=\u0275\u0275defineComponent({type:_ConfirmDialogComponent,selectors:[["ix-confirm-dialog"]],decls:12,vars:12,consts:[["mat-dialog-title","","data-testid","confirm-dialog-title"],[1,"mat-body-medium"],["data-testid","confirm-dialog-message"],[3,"ngModel"],["align","end"],["mat-button","",3,"mat-dialog-close"],["mat-button","","data-testid","confirm-dialog-confirm-button",3,"mat-dialog-close","disabled"],[3,"ngModelChange","ngModel"]],template:function(rf,ctx){if(rf&1&&(\u0275\u0275template(0,ConfirmDialogComponent_Conditional_0_Template,2,1,"h2",0),\u0275\u0275elementStart(1,"mat-dialog-content",1)(2,"p",2),\u0275\u0275text(3),\u0275\u0275elementEnd(),\u0275\u0275template(4,ConfirmDialogComponent_Conditional_4_Template,3,4,"mat-checkbox",3),\u0275\u0275elementEnd(),\u0275\u0275elementStart(5,"mat-dialog-actions",4)(6,"button",5),\u0275\u0275text(7),\u0275\u0275pipe(8,"translate"),\u0275\u0275elementEnd(),\u0275\u0275elementStart(9,"button",6),\u0275\u0275text(10),\u0275\u0275pipe(11,"translate"),\u0275\u0275elementEnd()()),rf&2){let tmp_4_0,tmp_7_0;\u0275\u0275conditional(ctx.options.title?0:-1),\u0275\u0275advance(3),\u0275\u0275textInterpolate(ctx.options.message),\u0275\u0275advance(),\u0275\u0275conditional(ctx.options.confirmCheckbox?4:-1),\u0275\u0275advance(2),\u0275\u0275property("mat-dialog-close",!1),\u0275\u0275advance(),\u0275\u0275textInterpolate1(" ",(tmp_4_0=ctx.options.cancelButtonText)!==null&&tmp_4_0!==void 0?tmp_4_0:\u0275\u0275pipeBind1(8,8,"CANCEL")," "),\u0275\u0275advance(2),\u0275\u0275property("mat-dialog-close",!0)("disabled",ctx.options.confirmCheckbox&&!ctx.checked),\u0275\u0275advance(),\u0275\u0275textInterpolate1(" ",(tmp_7_0=ctx.options.confirmButtonText)!==null&&tmp_7_0!==void 0?tmp_7_0:\u0275\u0275pipeBind1(11,10,"CONFIRM")," ")}},dependencies:[FormsModule,NgControlStatus,NgModel,TranslateModule,TranslatePipe,MatDialogModule,MatDialogClose,MatDialogTitle,MatDialogActions,MatDialogContent,MatButtonModule,MatButton,MatCheckboxModule,MatCheckbox],styles:["[_nghost-%COMP%]{width:100dvw;height:100dvh;display:flex;flex-direction:column;flex:1}@media (min-width: 960px){[_nghost-%COMP%]{height:auto;width:auto;min-width:528px;max-width:528px}}[_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%]{padding:calc(env(safe-area-inset-top,0) + 16px) 24px 16px}[_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%] .mat-toolbar{height:48px;padding-left:0;padding-right:0}[_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%] .mat-toolbar .mdc-dialog__title{--mat-dialog-headline-padding: 0;color:inherit}[_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%] .mat-toolbar .mdc-dialog__title:before{display:none}[_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%] + .ix-dialog__content[_ngcontent-%COMP%], [_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%] + .mdc-dialog__content[_ngcontent-%COMP%]{padding-top:0}[_nghost-%COMP%] .mdc-dialog__title[_ngcontent-%COMP%]:before{height:calc(env(safe-area-inset-top,0) + 40px)}[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%]{padding:20px 24px}[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%] > .ix-list[_ngcontent-%COMP%]{margin-left:-24px;margin-right:-24px}[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%], [_nghost-%COMP%] .mdc-dialog__content[_ngcontent-%COMP%]{flex-direction:column;box-sizing:border-box;display:flex;place-content:stretch flex-start;align-items:stretch;flex:1 1 auto;max-height:none;overflow:auto;-webkit-overflow-scrolling:touch}[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%] > .mat-mdc-subheader[_ngcontent-%COMP%], [_nghost-%COMP%] .mdc-dialog__content[_ngcontent-%COMP%] > .mat-mdc-subheader[_ngcontent-%COMP%]{margin-left:0;margin-right:0}@media (min-width: 960px){[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%], [_nghost-%COMP%] .mdc-dialog__content[_ngcontent-%COMP%]{max-height:calc(90dvh - 140px)}[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%]:has(+.mdc-dialog__actions), [_nghost-%COMP%] .mdc-dialog__content[_ngcontent-%COMP%]:has(+.mdc-dialog__actions){padding-bottom:0}}@media (min-width: 960px){[_nghost-%COMP%] .ix-dialog__banner[_ngcontent-%COMP%] + .ix-dialog__content[_ngcontent-%COMP%]{max-height:calc(90dvh - 225px)}}@media (max-width: 959.9px){[_nghost-%COMP%] .mdc-dialog__actions[_ngcontent-%COMP%]{border-top:1px solid rgba(0,0,0,.12);padding-bottom:calc(16px + env(safe-area-inset-bottom,0))}}[_nghost-%COMP%] form[_ngcontent-%COMP%]{flex-direction:column;box-sizing:border-box;display:flex;flex:1 1 auto;height:inherit}[_nghost-%COMP%] form[_ngcontent-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%]{margin-bottom:1rem}[_nghost-%COMP%] .mdc-dialog__content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{white-space:pre-wrap}[_nghost-%COMP%] .mat-mdc-checkbox[_ngcontent-%COMP%]{margin-bottom:4px}"]});let ConfirmDialogComponent2=_ConfirmDialogComponent;return ConfirmDialogComponent2})();var DialogPaginationComponent=(()=>{let _DialogPaginationComponent=class _DialogPaginationComponent{constructor(){this.translate=inject(TranslateService),this.nextPageLabel=this.translate.instant("NEXT"),this.previousPageLabel=this.translate.instant("PREVIOUS"),this.pageChange=new EventEmitter}getRangeLabel(){return this.translate.instant("N1_OF_N2",this.pageCount===0?{n1:1,n2:1}:{n1:this.pageIndex+1,n2:this.pageCount})}hasNextPage(){let maxPageIndex=this.pageCount-1;return this.pageIndex<maxPageIndex}hasPreviousPage(){return this.pageIndex>=1}nextPage(){this.hasNextPage()&&this.pageChange.emit(this.pageIndex+1)}previousPage(){this.hasPreviousPage()&&this.pageChange.emit(this.pageIndex-1)}};_DialogPaginationComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_DialogPaginationComponent)},_DialogPaginationComponent.\u0275cmp=\u0275\u0275defineComponent({type:_DialogPaginationComponent,selectors:[["ix-dialog-pagination"]],inputs:{pageCount:"pageCount",pageIndex:"pageIndex",nextPageLabel:"nextPageLabel",previousPageLabel:"previousPageLabel"},outputs:{pageChange:"pageChange"},decls:8,vars:7,consts:[["data-testid","dialog-pagination-range-label",1,"range-label"],["mat-icon-button","","type","button","data-testid","dialog-pagination-previous-page-button",3,"click","matTooltip","matTooltipDisabled","disabled"],["mat-icon-button","","type","button","data-testid","dialog-pagination-next-page-button",3,"click","matTooltip","matTooltipDisabled","disabled"]],template:function(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"div",0),\u0275\u0275text(1),\u0275\u0275elementEnd(),\u0275\u0275elementStart(2,"button",1),\u0275\u0275listener("click",function(){return ctx.previousPage()}),\u0275\u0275elementStart(3,"mat-icon"),\u0275\u0275text(4,"chevron_left"),\u0275\u0275elementEnd()(),\u0275\u0275elementStart(5,"button",2),\u0275\u0275listener("click",function(){return ctx.nextPage()}),\u0275\u0275elementStart(6,"mat-icon"),\u0275\u0275text(7,"chevron_right"),\u0275\u0275elementEnd()()),rf&2&&(\u0275\u0275advance(),\u0275\u0275textInterpolate(ctx.getRangeLabel()),\u0275\u0275advance(),\u0275\u0275property("matTooltip",ctx.previousPageLabel)("matTooltipDisabled",!ctx.hasPreviousPage())("disabled",!ctx.hasPreviousPage()),\u0275\u0275advance(3),\u0275\u0275property("matTooltip",ctx.nextPageLabel)("matTooltipDisabled",!ctx.hasNextPage())("disabled",!ctx.hasNextPage()))},dependencies:[TranslateModule,MatButtonModule,MatIconButton,MatIconModule,MatIcon,MatTooltipModule,MatTooltip],styles:["[_nghost-%COMP%]{display:flex;flex-direction:row;align-items:center;padding:0 8px}[_nghost-%COMP%] .range-label[_ngcontent-%COMP%]{margin:0 8px;font-family:Roboto,Helvetica Neue,sans-serif;font-size:12px;font-weight:400}"],changeDetection:0});let DialogPaginationComponent2=_DialogPaginationComponent;return DialogPaginationComponent2})();function ContentDialogComponent_Conditional_2_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"h2",1),\u0275\u0275text(1),\u0275\u0275elementEnd()),rf&2){let ctx_r0=\u0275\u0275nextContext();\u0275\u0275advance(),\u0275\u0275textInterpolate(ctx_r0.title)}}function ContentDialogComponent_Conditional_4_Template(rf,ctx){if(rf&1){let _r2=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"ix-dialog-pagination",6),\u0275\u0275listener("pageChange",function($event){\u0275\u0275restoreView(_r2);let ctx_r0=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r0.handlePageChange($event))}),\u0275\u0275elementEnd()}if(rf&2){let ctx_r0=\u0275\u0275nextContext();\u0275\u0275property("pageCount",ctx_r0.pagination.pageCount)("pageIndex",ctx_r0.pageIndex)}}var ContentDialogComponent=(()=>{let _ContentDialogComponent=class _ContentDialogComponent{constructor(){this.dialogRef=inject(MatDialogRef),this.options=inject(MAT_DIALOG_DATA),this.pageIndex=this.options.pagination?.initialPageIndex??0}get pagination(){return this.options.pagination}get title(){return this.options.title??""}ngAfterViewInit(){let target=this.contentVCRef?.element.nativeElement;if(target){let shadow=target.attachShadow({mode:"open"});if(this.options.htmlContent&&(typeof this.options.htmlContent=="string"?shadow.innerHTML=this.options.htmlContent:shadow.appendChild(this.options.htmlContent)),this.options.styles){let sheet2=new CSSStyleSheet;sheet2.replaceSync(this.options.styles),shadow.adoptedStyleSheets.push(sheet2)}this.options.onopened&&this.dialogRef.afterOpened().subscribe(()=>{this.options.onopened?.(shadow,()=>this.dialogRef.close())}),this.dialogRef.beforeClosed().subscribe(()=>{this.options.onclose?.(shadow),shadow.replaceChildren(...Array.from(shadow.children).map(child=>child.cloneNode(!0)))})}}handlePageChange(newPageIndex){this.pageIndex=newPageIndex,this.options.pagination?.onpagechange?.(newPageIndex)}};_ContentDialogComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_ContentDialogComponent)},_ContentDialogComponent.\u0275cmp=\u0275\u0275defineComponent({type:_ContentDialogComponent,selectors:[["ix-content-dialog"]],viewQuery:function(rf,ctx){if(rf&1&&\u0275\u0275viewQuery(MatDialogContent,5,ViewContainerRef),rf&2){let _t;\u0275\u0275queryRefresh(_t=\u0275\u0275loadQuery())&&(ctx.contentVCRef=_t.first)}},decls:10,vars:5,consts:[[1,"ix-dialog__header"],["mat-dialog-title","","data-testid","content-dialog-title"],["fxFlex",""],[3,"pageCount","pageIndex"],["type","button","mat-icon-button","","matDialogClose","",3,"matTooltip"],["data-testid","content-dialog-content"],[3,"pageChange","pageCount","pageIndex"]],template:function(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"div",0)(1,"mat-toolbar"),\u0275\u0275template(2,ContentDialogComponent_Conditional_2_Template,2,1,"h2",1),\u0275\u0275element(3,"span",2),\u0275\u0275template(4,ContentDialogComponent_Conditional_4_Template,1,2,"ix-dialog-pagination",3),\u0275\u0275elementStart(5,"button",4),\u0275\u0275pipe(6,"translate"),\u0275\u0275elementStart(7,"mat-icon"),\u0275\u0275text(8,"close"),\u0275\u0275elementEnd()()()(),\u0275\u0275element(9,"mat-dialog-content",5)),rf&2&&(\u0275\u0275advance(2),\u0275\u0275conditional(ctx.title?2:-1),\u0275\u0275advance(2),\u0275\u0275conditional(ctx.pagination?4:-1),\u0275\u0275advance(),\u0275\u0275property("matTooltip",\u0275\u0275pipeBind1(6,3,"CLOSE")))},dependencies:[TranslateModule,TranslatePipe,FlexLayoutModule,DefaultFlexDirective,MatButtonModule,MatIconButton,MatDialogModule,MatDialogClose,MatDialogTitle,MatDialogContent,MatIconModule,MatIcon,MatPaginatorModule,MatToolbarModule,MatToolbar,MatTooltipModule,MatTooltip,DialogPaginationComponent],styles:["[_nghost-%COMP%]{width:100dvw;height:100dvh;display:flex;flex-direction:column;flex:1}@media (min-width: 960px){[_nghost-%COMP%]{height:auto;width:auto;min-width:528px;max-width:528px}}[_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%]{padding:calc(env(safe-area-inset-top,0) + 16px) 24px 16px}[_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%] .mat-toolbar{height:48px;padding-left:0;padding-right:0}[_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%] .mat-toolbar .mdc-dialog__title{--mat-dialog-headline-padding: 0;color:inherit}[_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%] .mat-toolbar .mdc-dialog__title:before{display:none}[_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%] + .ix-dialog__content[_ngcontent-%COMP%], [_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%] + .mdc-dialog__content[_ngcontent-%COMP%]{padding-top:0}[_nghost-%COMP%] .mdc-dialog__title[_ngcontent-%COMP%]:before{height:calc(env(safe-area-inset-top,0) + 40px)}[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%]{padding:20px 24px}[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%] > .ix-list[_ngcontent-%COMP%]{margin-left:-24px;margin-right:-24px}[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%], [_nghost-%COMP%] .mdc-dialog__content[_ngcontent-%COMP%]{flex-direction:column;box-sizing:border-box;display:flex;place-content:stretch flex-start;align-items:stretch;flex:1 1 auto;max-height:none;overflow:auto;-webkit-overflow-scrolling:touch}[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%] > .mat-mdc-subheader[_ngcontent-%COMP%], [_nghost-%COMP%] .mdc-dialog__content[_ngcontent-%COMP%] > .mat-mdc-subheader[_ngcontent-%COMP%]{margin-left:0;margin-right:0}@media (min-width: 960px){[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%], [_nghost-%COMP%] .mdc-dialog__content[_ngcontent-%COMP%]{max-height:calc(90dvh - 140px)}[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%]:has(+.mdc-dialog__actions), [_nghost-%COMP%] .mdc-dialog__content[_ngcontent-%COMP%]:has(+.mdc-dialog__actions){padding-bottom:0}}@media (min-width: 960px){[_nghost-%COMP%] .ix-dialog__banner[_ngcontent-%COMP%] + .ix-dialog__content[_ngcontent-%COMP%]{max-height:calc(90dvh - 225px)}}@media (max-width: 959.9px){[_nghost-%COMP%] .mdc-dialog__actions[_ngcontent-%COMP%]{border-top:1px solid rgba(0,0,0,.12);padding-bottom:calc(16px + env(safe-area-inset-bottom,0))}}[_nghost-%COMP%] form[_ngcontent-%COMP%]{flex-direction:column;box-sizing:border-box;display:flex;flex:1 1 auto;height:inherit}[_nghost-%COMP%] form[_ngcontent-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%]{margin-bottom:1rem}@media (min-width: 960px){[_nghost-%COMP%]{max-width:unset}}[_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{flex:0 1 auto;overflow:hidden;text-overflow:ellipsis}[_nghost-%COMP%] .mdc-dialog__content[_ngcontent-%COMP%]{--mdc-dialog-supporting-text-line-height: 20px;--mdc-dialog-supporting-text-size: 14px;--mdc-dialog-supporting-text-tracking: .01786em}"]});let ContentDialogComponent2=_ContentDialogComponent;return ContentDialogComponent2})();var DiscardChangesDialogComponent=(()=>{let _DiscardChangesDialogComponent=class _DiscardChangesDialogComponent{};_DiscardChangesDialogComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_DiscardChangesDialogComponent)},_DiscardChangesDialogComponent.\u0275cmp=\u0275\u0275defineComponent({type:_DiscardChangesDialogComponent,selectors:[["ix-discard-changes-dialog"]],decls:12,vars:2,consts:[["mat-dialog-title","","translate",""],["mat-dialog-content",""],["translate",""],["mat-dialog-actions",""],["mat-button","",3,"mat-dialog-close"]],template:function(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"h1",0),\u0275\u0275text(1,"EXIT"),\u0275\u0275elementEnd(),\u0275\u0275elementStart(2,"div",1)(3,"p",2),\u0275\u0275text(4,"__TEXT__.DISCARD_CHANGES"),\u0275\u0275elementEnd()(),\u0275\u0275elementStart(5,"div",3)(6,"button",4)(7,"span",2),\u0275\u0275text(8,"CANCEL"),\u0275\u0275elementEnd()(),\u0275\u0275elementStart(9,"button",4)(10,"span",2),\u0275\u0275text(11,"CONFIRM"),\u0275\u0275elementEnd()()()),rf&2&&(\u0275\u0275advance(6),\u0275\u0275property("mat-dialog-close",!1),\u0275\u0275advance(3),\u0275\u0275property("mat-dialog-close",!0))},dependencies:[MatButtonModule,MatButton,MatDialogModule,MatDialogClose,MatDialogTitle,MatDialogActions,MatDialogContent,TranslateModule,TranslateDirective],styles:["[_nghost-%COMP%]{display:block}"]});let DiscardChangesDialogComponent2=_DiscardChangesDialogComponent;return DiscardChangesDialogComponent2})();var ComponentPropertiesInput=class{constructor(input2,value,context3,converter,level){this.hidden=!1,this.inputDescription=input2,this.inputName=input2.key,this.value=value,this.context=context3,this.level=level}toFormControl(){let formControl=new FormControl(this.value??this.inputDescription.defaultValue,this.inputDescription.required?Validators.required:null);return this.inputDescription.disabled&&formControl.disable(),formControl}transformValue(){return{[this.inputDescription.key]:this.value}}setValue(value){this.value=value}},ComponentInputComponent=class{get inputControl(){return this.componentFormGroup.get([this.field.inputDescription.key])}},INPUT_CONVERTER_TOKEN=new InjectionToken("input-converter.service");var _c03=["formPlaceholder"];function FormDialogComponent_Conditional_1_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"h2",2),\u0275\u0275text(1),\u0275\u0275elementEnd()),rf&2){let ctx_r1=\u0275\u0275nextContext();\u0275\u0275advance(),\u0275\u0275textInterpolate(ctx_r1.options.title)}}function FormDialogComponent_Conditional_3_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"p",4),\u0275\u0275text(1),\u0275\u0275elementEnd()),rf&2){let ctx_r1=\u0275\u0275nextContext();\u0275\u0275advance(),\u0275\u0275textInterpolate(ctx_r1.options.message)}}var FormDialogComponent=(()=>{let _FormDialogComponent=class _FormDialogComponent{constructor(){this.data=inject(MAT_DIALOG_DATA),this.dialog=inject(MatDialog),this.inputConverter=inject(INPUT_CONVERTER_TOKEN),this.ref=inject(MatDialogRef),this.cdRef=inject(ChangeDetectorRef),this.destroy=inject(DestroyRef)}get options(){return this.data.options}ngOnInit(){let component=this.data.component??{publicId:""},inputs=cloneDeep_default(this.options.inputs)||[];this.fields=this.options.inputs?.map(input2=>this.inputConverter.convertInput(input2,inputs,{component},0))||[];let formControls=this.inputConverter.getFormControls(this.fields);this.form=new FormGroup(formControls),this.options.initialValue&&this.form.patchValue(this.options.initialValue),this.options.discardChangesPrompt&&(this.ref.backdropClick().pipe(takeUntilDestroyed(this.destroy)).subscribe(()=>this.close()),this.ref.keydownEvents().pipe(takeUntilDestroyed(this.destroy)).subscribe(key=>{key.code==="Escape"&&this.close()}))}ngAfterViewInit(){this.formPlaceholder&&(this.formPlaceholder.clear(),this.inputConverter.loadComponentInputs(this.fields,this.form,this.formPlaceholder))}ngAfterViewChecked(){this.cdRef.detectChanges()}close(dialogResult){if(!this.options.discardChangesPrompt){this.ref.close(dialogResult);return}this.form.dirty?this.dialog.open(DiscardChangesDialogComponent).afterClosed().subscribe(confirmed=>{confirmed&&this.ref.close(dialogResult)}):this.ref.close(dialogResult)}submit(){this.ref.close({value:this.form.getRawValue()})}};_FormDialogComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_FormDialogComponent)},_FormDialogComponent.\u0275cmp=\u0275\u0275defineComponent({type:_FormDialogComponent,selectors:[["ix-form-dialog"]],viewQuery:function(rf,ctx){if(rf&1&&\u0275\u0275viewQuery(_c03,5,ViewContainerRef),rf&2){let _t;\u0275\u0275queryRefresh(_t=\u0275\u0275loadQuery())&&(ctx.formPlaceholder=_t.first)}},decls:13,vars:10,consts:[["formPlaceholder",""],["name","addLicense","novalidate","","autocomplete","off",3,"ngSubmit","formGroup"],["mat-dialog-title","","data-testid","form-dialog-title"],[1,"ix-dialog__content","mat-body-medium"],["data-testid","form-dialog-message"],["align","end"],["mat-button","","type","button",3,"click"],["mat-button","","type","submit",3,"disabled"]],template:function(rf,ctx){if(rf&1){let _r1=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"form",1),\u0275\u0275listener("ngSubmit",function(){return \u0275\u0275restoreView(_r1),\u0275\u0275resetView(ctx.submit())}),\u0275\u0275template(1,FormDialogComponent_Conditional_1_Template,2,1,"h2",2),\u0275\u0275elementStart(2,"div",3),\u0275\u0275template(3,FormDialogComponent_Conditional_3_Template,2,1,"p",4),\u0275\u0275element(4,"div",null,0),\u0275\u0275elementEnd(),\u0275\u0275elementStart(6,"mat-dialog-actions",5)(7,"button",6),\u0275\u0275listener("click",function(){return \u0275\u0275restoreView(_r1),\u0275\u0275resetView(ctx.close(!1))}),\u0275\u0275text(8),\u0275\u0275pipe(9,"translate"),\u0275\u0275elementEnd(),\u0275\u0275elementStart(10,"button",7),\u0275\u0275text(11),\u0275\u0275pipe(12,"translate"),\u0275\u0275elementEnd()()()}if(rf&2){let tmp_4_0,tmp_6_0;\u0275\u0275property("formGroup",ctx.form),\u0275\u0275advance(),\u0275\u0275conditional(ctx.options.title?1:-1),\u0275\u0275advance(2),\u0275\u0275conditional(ctx.options.message?3:-1),\u0275\u0275advance(5),\u0275\u0275textInterpolate1(" ",(tmp_4_0=ctx.options.cancelButtonText)!==null&&tmp_4_0!==void 0?tmp_4_0:\u0275\u0275pipeBind1(9,6,"CANCEL")," "),\u0275\u0275advance(2),\u0275\u0275property("disabled",ctx.form.invalid),\u0275\u0275advance(),\u0275\u0275textInterpolate1(" ",(tmp_6_0=ctx.options.submitButtonText)!==null&&tmp_6_0!==void 0?tmp_6_0:\u0275\u0275pipeBind1(12,8,"SUBMIT__FORM")," ")}},dependencies:[FormsModule,\u0275NgNoValidate,NgControlStatusGroup,MatButtonModule,MatButton,MatDialogModule,MatDialogTitle,MatDialogActions,ReactiveFormsModule,FormGroupDirective,TranslateModule,TranslatePipe],styles:["[_nghost-%COMP%]{width:100dvw;height:100dvh;display:flex;flex-direction:column;flex:1}@media (min-width: 960px){[_nghost-%COMP%]{height:auto;width:auto;min-width:528px;max-width:528px}}[_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%]{padding:calc(env(safe-area-inset-top,0) + 16px) 24px 16px}[_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%] .mat-toolbar{height:48px;padding-left:0;padding-right:0}[_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%] .mat-toolbar .mdc-dialog__title{--mat-dialog-headline-padding: 0;color:inherit}[_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%] .mat-toolbar .mdc-dialog__title:before{display:none}[_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%] + .ix-dialog__content[_ngcontent-%COMP%], [_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%] + .mdc-dialog__content[_ngcontent-%COMP%]{padding-top:0}[_nghost-%COMP%] .mdc-dialog__title[_ngcontent-%COMP%]:before{height:calc(env(safe-area-inset-top,0) + 40px)}[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%]{padding:20px 24px}[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%] > .ix-list[_ngcontent-%COMP%]{margin-left:-24px;margin-right:-24px}[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%], [_nghost-%COMP%] .mdc-dialog__content[_ngcontent-%COMP%]{flex-direction:column;box-sizing:border-box;display:flex;place-content:stretch flex-start;align-items:stretch;flex:1 1 auto;max-height:none;overflow:auto;-webkit-overflow-scrolling:touch}[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%] > .mat-mdc-subheader[_ngcontent-%COMP%], [_nghost-%COMP%] .mdc-dialog__content[_ngcontent-%COMP%] > .mat-mdc-subheader[_ngcontent-%COMP%]{margin-left:0;margin-right:0}@media (min-width: 960px){[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%], [_nghost-%COMP%] .mdc-dialog__content[_ngcontent-%COMP%]{max-height:calc(90dvh - 140px)}[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%]:has(+.mdc-dialog__actions), [_nghost-%COMP%] .mdc-dialog__content[_ngcontent-%COMP%]:has(+.mdc-dialog__actions){padding-bottom:0}}@media (min-width: 960px){[_nghost-%COMP%] .ix-dialog__banner[_ngcontent-%COMP%] + .ix-dialog__content[_ngcontent-%COMP%]{max-height:calc(90dvh - 225px)}}@media (max-width: 959.9px){[_nghost-%COMP%] .mdc-dialog__actions[_ngcontent-%COMP%]{border-top:1px solid rgba(0,0,0,.12);padding-bottom:calc(16px + env(safe-area-inset-bottom,0))}}[_nghost-%COMP%] form[_ngcontent-%COMP%]{flex-direction:column;box-sizing:border-box;display:flex;flex:1 1 auto;height:inherit}[_nghost-%COMP%] form[_ngcontent-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%]{margin-bottom:1rem}@media (min-width: 960px){[_nghost-%COMP%]:has(ix-rich-text-form-field){width:100dvw;min-width:908px;max-width:908px}}[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{white-space:pre-wrap}"]});let FormDialogComponent2=_FormDialogComponent;return FormDialogComponent2})();var ACTION_MENU_DATA=new InjectionToken("ActionMenuData");var _c04=a0=>({"mat-warn":a0});function ActionMenuComponent_For_4_Template(rf,ctx){if(rf&1){let _r1=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"button",4),\u0275\u0275listener("click",function(){let \u0275$index_5_r2=\u0275\u0275restoreView(_r1).$index,ctx_r2=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r2.select(\u0275$index_5_r2))}),\u0275\u0275text(1),\u0275\u0275elementEnd()}if(rf&2){let action_r4=ctx.$implicit;\u0275\u0275property("ngClass",\u0275\u0275pureFunction1(2,_c04,action_r4.destructive)),\u0275\u0275advance(),\u0275\u0275textInterpolate1(" ",action_r4.title," ")}}var ActionMenuComponent=(()=>{let _ActionMenuComponent=class _ActionMenuComponent{constructor(){this.data=inject(ACTION_MENU_DATA),this.ngZone=inject(NgZone),this.destroy=inject(DestroyRef),this.elementRef=inject(ElementRef),this.viewportRuler=inject(ViewportRuler),this.selected$=new BehaviorSubject(void 0)}ngOnInit(){this.viewportRuler.change(33).pipe(takeUntilDestroyed(this.destroy)).subscribe(()=>{this.ngZone.run(()=>{this.updatePosition(),this.trigger?.updatePosition()})}),this.updatePosition()}ngAfterViewInit(){this.trigger.menuClosed.pipe(takeUntilDestroyed(this.destroy)).subscribe(()=>this.selected$.complete()),this.trigger.openMenu()}select(index){this.selected$.next({index})}updatePosition(){let rect=this.data.target.getBoundingClientRect();this.elementRef.nativeElement.setAttribute("style",`inset:${rect.top}px auto auto ${rect.x}px`),this.elementRef.nativeElement.querySelector(".trigger")?.setAttribute("style",`height:${rect.height}px;width:${rect.width}px`)}};_ActionMenuComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_ActionMenuComponent)},_ActionMenuComponent.\u0275cmp=\u0275\u0275defineComponent({type:_ActionMenuComponent,selectors:[["ix-action-menu-component"]],viewQuery:function(rf,ctx){if(rf&1&&(\u0275\u0275viewQuery(MatMenu,5),\u0275\u0275viewQuery(MatMenuTrigger,5)),rf&2){let _t;\u0275\u0275queryRefresh(_t=\u0275\u0275loadQuery())&&(ctx.menu=_t.first),\u0275\u0275queryRefresh(_t=\u0275\u0275loadQuery())&&(ctx.trigger=_t.first)}},decls:5,vars:1,consts:[["menu","matMenu"],[1,"trigger",3,"matMenuTriggerFor"],[1,"dense"],["mat-menu-item","",3,"ngClass"],["mat-menu-item","",3,"click","ngClass"]],template:function(rf,ctx){if(rf&1&&(\u0275\u0275element(0,"div",1),\u0275\u0275elementStart(1,"mat-menu",2,0),\u0275\u0275repeaterCreate(3,ActionMenuComponent_For_4_Template,2,4,"button",3,\u0275\u0275repeaterTrackByIdentity),\u0275\u0275elementEnd()),rf&2){let menu_r5=\u0275\u0275reference(2);\u0275\u0275property("matMenuTriggerFor",menu_r5),\u0275\u0275advance(3),\u0275\u0275repeater(ctx.data.options.actions)}},dependencies:[NgClass,MatMenuModule,MatMenu,MatMenuItem,MatMenuTrigger,MatButtonModule,MatIconModule],styles:["[_nghost-%COMP%]{position:absolute;inset:0 auto auto 0;z-index:9999}[_nghost-%COMP%] .trigger[_ngcontent-%COMP%]{height:1px;width:1px;padding:0;opacity:0;visibility:hidden}"],changeDetection:0});let ActionMenuComponent2=_ActionMenuComponent;return ActionMenuComponent2})();var SELECT_PANEL_DATA=new InjectionToken("SelectPanelData");var AppearSchedulerDirective=(()=>{let _AppearSchedulerDirective=class _AppearSchedulerDirective{constructor(){this.cdRef=inject(ChangeDetectorRef),this.scheduler=new Subject,this.destroy=inject(DestroyRef)}ngOnInit(){this.scheduler.pipe(debounceTime(0),takeUntilDestroyed(this.destroy)).subscribe(()=>{this.cdRef.markForCheck()})}ngOnDestroy(){this.scheduler.complete()}schedule(){this.scheduler.next()}};_AppearSchedulerDirective.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_AppearSchedulerDirective)},_AppearSchedulerDirective.\u0275dir=\u0275\u0275defineDirective({type:_AppearSchedulerDirective,selectors:[["","ixAppearScheduler",""]]});let AppearSchedulerDirective3=_AppearSchedulerDirective;return AppearSchedulerDirective3})();var AppearDirective=(()=>{let _AppearDirective=class _AppearDirective{constructor(cdRef,elementRef){this.cdRef=cdRef,this.elementRef=elementRef,this.disabled=!1,this.appeared=!1,this.scheduler=inject(AppearSchedulerDirective,{optional:!0,skipSelf:!0,host:!0})}ngOnInit(){this.run()}ngOnChanges(changes){changes.disabled&&this.run()}ngOnDestroy(){this.stop()}run(){this.disabled?this.stop():this.start()}start(){this.observer||(this.observer=new IntersectionObserver(entries=>{entries.forEach(entry=>{(entry.isIntersecting||entry.intersectionRatio>0)&&(this.stop(),this.appeared=!0)}),this.appeared&&(this.scheduler?this.scheduler.schedule():this.cdRef.markForCheck())},{rootMargin:"50% 0px",threshold:0}),this.observer.observe(this.elementRef.nativeElement))}stop(){this.observer&&(this.observer.disconnect(),this.observer=void 0)}};_AppearDirective.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_AppearDirective)(\u0275\u0275directiveInject(ChangeDetectorRef),\u0275\u0275directiveInject(ElementRef))},_AppearDirective.\u0275dir=\u0275\u0275defineDirective({type:_AppearDirective,selectors:[["","ixAppear",""]],inputs:{disabled:[0,"ixAppearDisabled","disabled"]},exportAs:["ixAppear"],features:[\u0275\u0275NgOnChangesFeature]});let AppearDirective3=_AppearDirective;return AppearDirective3})();function FlatSearchInputComponent_Conditional_5_Template(rf,ctx){if(rf&1){let _r1=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"button",3),\u0275\u0275listener("click",function(){\u0275\u0275restoreView(_r1);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.clear())}),\u0275\u0275elementStart(1,"mat-icon"),\u0275\u0275text(2,"close"),\u0275\u0275elementEnd()()}}var FlatSearchInputComponent=(()=>{let _FlatSearchInputComponent=class _FlatSearchInputComponent{constructor(){this.showClearButtonWhenEmpty=!1,this.afterQueryChange=new EventEmitter,this.afterQueryClear=new EventEmitter,this.destroy=inject(DestroyRef)}ngOnInit(){this.query?.valueChanges.pipe(takeUntilDestroyed(this.destroy)).subscribe(()=>{this.afterQueryChange&&this.afterQueryChange.emit()})}clear(){this.query?.setValue(""),this.afterQueryClear&&this.afterQueryClear.emit()}};_FlatSearchInputComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_FlatSearchInputComponent)},_FlatSearchInputComponent.\u0275cmp=\u0275\u0275defineComponent({type:_FlatSearchInputComponent,selectors:[["ix-flat-search-input"]],inputs:{query:"query",showClearButtonWhenEmpty:[2,"showClearButtonWhenEmpty","showClearButtonWhenEmpty",booleanAttribute]},outputs:{afterQueryChange:"afterQueryChange",afterQueryClear:"afterQueryClear"},decls:6,vars:5,consts:[["matIconPrefix",""],["id","flat-search-mat-input","matInput","","type","search",3,"formControl","placeholder"],["matIconSuffix","","type","button","mat-icon-button","",1,"close-icon"],["matIconSuffix","","type","button","mat-icon-button","",1,"close-icon",3,"click"]],template:function(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"mat-form-field")(1,"mat-icon",0),\u0275\u0275text(2,"search"),\u0275\u0275elementEnd(),\u0275\u0275element(3,"input",1),\u0275\u0275pipe(4,"translate"),\u0275\u0275template(5,FlatSearchInputComponent_Conditional_5_Template,3,0,"button",2),\u0275\u0275elementEnd()),rf&2&&(\u0275\u0275advance(3),\u0275\u0275property("formControl",ctx.query)("placeholder",\u0275\u0275pipeBind1(4,3,"SEARCH")),\u0275\u0275advance(2),\u0275\u0275conditional(ctx.showClearButtonWhenEmpty||ctx.query.value?5:-1))},dependencies:[ReactiveFormsModule,DefaultValueAccessor,NgControlStatus,FormControlDirective,MatButtonModule,MatIconButton,MatFormFieldModule,MatFormField,MatPrefix,MatSuffix,MatIconModule,MatIcon,MatInputModule,MatInput,TranslateModule,TranslatePipe],styles:["[_nghost-%COMP%]{--ix-flat-search-input-width: 200px;--ix-flat-search-input-height: 32px;display:block}[_nghost-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%]{--mdc-filled-text-field-container-color: color-mix( in srgb, transparent, currentcolor 4% );--mat-form-field-container-text-size: 14px;width:var(--ix-flat-search-input-width);height:var(--ix-flat-search-input-height)}[_nghost-%COMP%] .mat-mdc-form-field.mat-focused[_ngcontent-%COMP%] .mat-mdc-form-field-focus-overlay{opacity:.04}[_nghost-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%] .mdc-text-field--filled{--mdc-filled-text-field-active-indicator-height: 0;--mdc-filled-text-field-focus-active-indicator-height: 0;--mdc-filled-text-field-input-text-color: color-mix( in srgb, transparent, currentcolor 67% );border-radius:calc(var(--ix-flat-search-input-height) * .5)}[_nghost-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%] .mat-mdc-form-field-flex{max-height:var(--ix-flat-search-input-height)}[_nghost-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%] .mat-mdc-form-field-icon-prefix>.mat-icon{padding:calc((var(--ix-flat-search-input-height) - 20px) * .5)}[_nghost-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%] .mat-mdc-form-field-infix{width:auto;min-height:var(--ix-flat-search-input-height);padding:0!important}[_nghost-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%] .mat-mdc-form-field-infix input{height:var(--ix-flat-search-input-height)}[_nghost-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%] .mat-mdc-form-field-infix input::placeholder{color:color-mix(in srgb,transparent,currentcolor 34%)}[_nghost-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%] .mat-mdc-form-field-infix input[type=search]::-webkit-search-decoration, [_nghost-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%] .mat-mdc-form-field-infix input[type=search]::-webkit-search-cancel-button{appearance:none}[_nghost-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%] .mat-mdc-form-field-icon-prefix{padding-right:max(36px - var(--ix-flat-search-input-height),0px)}[_nghost-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%] .mat-mdc-form-field-icon-suffix{padding-left:max(36px - var(--ix-flat-search-input-height),0px)}[_nghost-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%] .mat-mdc-form-field-icon-suffix .mat-mdc-icon-button{--mdc-icon-button-state-layer-size: var( --ix-flat-search-input-height );--mdc-icon-button-icon-size: min( calc(var(--ix-flat-search-input-height) - 12px), 20px );width:var(--ix-flat-search-input-height);height:var(--ix-flat-search-input-height)}[_nghost-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%] .mat-mdc-form-field-subscript-wrapper{display:none}"],changeDetection:0});let FlatSearchInputComponent2=_FlatSearchInputComponent;return FlatSearchInputComponent2})();function getSelectedOptions(select3){return isArray_default(select3.selected)?select3.selected:select3.selected?[select3.selected]:[]}var _c05=a0=>({$implicit:a0});function SelectDialogComponent_For_12_Conditional_0_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"div",9),\u0275\u0275text(1),\u0275\u0275elementEnd()),rf&2){let option_r2=\u0275\u0275nextContext().$implicit;\u0275\u0275advance(),\u0275\u0275textInterpolate(option_r2.group==null?null:option_r2.group.label)}}function SelectDialogComponent_For_12_Conditional_4_ng_container_1_Template(rf,ctx){rf&1&&\u0275\u0275elementContainer(0)}function SelectDialogComponent_For_12_Conditional_4_Conditional_2_Template(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"mat-icon"),\u0275\u0275text(1,"check"),\u0275\u0275elementEnd())}function SelectDialogComponent_For_12_Conditional_4_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"span",12),\u0275\u0275template(1,SelectDialogComponent_For_12_Conditional_4_ng_container_1_Template,1,0,"ng-container",13),\u0275\u0275elementEnd(),\u0275\u0275template(2,SelectDialogComponent_For_12_Conditional_4_Conditional_2_Template,2,0,"mat-icon")),rf&2){let tmp_13_0,option_r2=\u0275\u0275nextContext().$implicit,ctx_r2=\u0275\u0275nextContext(),defaultOptionTemplate_r4=\u0275\u0275reference(15);\u0275\u0275advance(),\u0275\u0275property("ngTemplateOutlet",(tmp_13_0=ctx_r2.customOptionTemplate)!==null&&tmp_13_0!==void 0?tmp_13_0:defaultOptionTemplate_r4)("ngTemplateOutletContext",\u0275\u0275pureFunction1(3,_c05,option_r2)),\u0275\u0275advance(),\u0275\u0275conditional(option_r2.selected?2:-1)}}function SelectDialogComponent_For_12_Template(rf,ctx){if(rf&1){let _r1=\u0275\u0275getCurrentView();\u0275\u0275template(0,SelectDialogComponent_For_12_Conditional_0_Template,2,1,"div",9),\u0275\u0275elementStart(1,"mat-list-item",10),\u0275\u0275listener("click",function(){let option_r2=\u0275\u0275restoreView(_r1).$implicit,ctx_r2=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r2.selectOption(option_r2))}),\u0275\u0275elementStart(2,"div",11,1),\u0275\u0275template(4,SelectDialogComponent_For_12_Conditional_4_Template,3,5),\u0275\u0275elementEnd()()}if(rf&2){let option_r2=ctx.$implicit,appearance_r5=\u0275\u0275reference(3),ctx_r2=\u0275\u0275nextContext();\u0275\u0275conditional(ctx_r2.isFirstGroupOcc(option_r2)?0:-1),\u0275\u0275advance(),\u0275\u0275classProp("has-group",!!option_r2.group)("is-checked",option_r2.selected),\u0275\u0275attribute("data-value",option_r2.value),\u0275\u0275advance(3),\u0275\u0275conditional(appearance_r5.appeared?4:-1)}}function SelectDialogComponent_Conditional_13_ng_container_1_Template(rf,ctx){rf&1&&\u0275\u0275elementContainer(0)}function SelectDialogComponent_Conditional_13_Template(rf,ctx){if(rf&1&&(\u0275\u0275element(0,"mat-divider"),\u0275\u0275template(1,SelectDialogComponent_Conditional_13_ng_container_1_Template,1,0,"ng-container",14)),rf&2){let ctx_r2=\u0275\u0275nextContext();\u0275\u0275advance(),\u0275\u0275property("ngTemplateOutlet",ctx_r2.actionTemplate)}}function SelectDialogComponent_ng_template_14_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"span",15),\u0275\u0275text(1),\u0275\u0275elementEnd()),rf&2){let option_r6=ctx.$implicit;\u0275\u0275advance(),\u0275\u0275textInterpolate(option_r6.viewValue)}}function SelectDialogComponent_Conditional_16_Template(rf,ctx){if(rf&1){let _r7=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"mat-dialog-actions",8)(1,"button",16),\u0275\u0275text(2),\u0275\u0275pipe(3,"translate"),\u0275\u0275elementEnd(),\u0275\u0275elementStart(4,"button",17),\u0275\u0275listener("click",function(){\u0275\u0275restoreView(_r7);let ctx_r2=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r2.applySelection())}),\u0275\u0275text(5),\u0275\u0275pipe(6,"translate"),\u0275\u0275elementEnd()()}rf&2&&(\u0275\u0275advance(),\u0275\u0275property("matDialogClose",null),\u0275\u0275advance(),\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(3,3,"CANCEL")),\u0275\u0275advance(3),\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(6,5,"APPLY")))}var SelectDialogComponent=(()=>{let _SelectDialogComponent=class _SelectDialogComponent{constructor(){this.cdRef=inject(ChangeDetectorRef),this.elementRef=inject(ElementRef),this.dialogRef=inject(MatDialogRef),this.data=inject(MAT_DIALOG_DATA),this.searchQueryControl=new FormControl("",{nonNullable:!0}),this.filteredOptions=this.options}get actionTemplate(){return this.data.actionTemplate}get customOptionTemplate(){return this.data.optionTemplate}get multiple(){return this.data.instance.multiple}get options(){let list=this.data.instance.options.toArray(),first2=this.data.instance.options.first;return first2&&first2.value===void 0&&first2.viewValue===""&&first2.disabled?list.slice(1):list}get firstSelected(){let{selected}=this.data.instance;return isArray_default(selected)?selected[0]:selected}get label(){return this.data.instance._parentFormField?._floatingLabel?.element.textContent??""}get searchPredicate(){return this.data.searchPredicate??((option,query)=>{let q=query.toLowerCase();return option.viewValue.toLowerCase().includes(q)})}ngOnInit(){this.searchQueryControl.valueChanges.subscribe(query=>{this.filteredOptions=this.options.filter(option=>this.searchPredicate(option,query))})}ngAfterViewInit(){this.firstSelected&&this.elementRef.nativeElement.querySelector(`[data-value="${this.firstSelected.value}"]`)?.scrollIntoView?.({behavior:"instant",block:"center"})}applySelection(selected){this.dialogRef.close(selected??this.data.instance.selected)}invalidateOptions(){let selectedValues=getSelectedOptions(this.data.instance).map(option=>option.value);this.filteredOptions=this.options.filter(option=>this.searchPredicate(option,this.searchQueryControl.value)),this.cdRef.markForCheck(),selectedValues.length&&setTimeout(()=>{selectedValues.forEach(value=>{this.filteredOptions.find(opt=>opt.value===value)?.select(!0)})})}isFirstGroupOcc(option){if(option.group){let idx=this.filteredOptions.indexOf(option),prevOption=this.filteredOptions[idx-1];return!prevOption||prevOption.group?._labelId!==option.group._labelId}return!1}selectOption(option){this.multiple?option[option.selected?"deselect":"select"](!0):this.applySelection([option])}};_SelectDialogComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_SelectDialogComponent)},_SelectDialogComponent.\u0275cmp=\u0275\u0275defineComponent({type:_SelectDialogComponent,selectors:[["ix-select-dialog"]],decls:17,vars:5,consts:[["defaultOptionTemplate",""],["appearance","ixAppear"],[1,"ix-dialog__header"],["matDialogTitle","","fxFlex",""],["mat-icon-button","",3,"matDialogClose"],[1,"search-area"],[3,"query"],["ixAppearScheduler",""],["align","end"],["mat-subheader",""],["role","option",3,"click"],["ixAppear","",1,"option-inner"],["fxFlex","",1,"option-template"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngTemplateOutlet"],[1,"option-label"],["type","button","mat-button","",3,"matDialogClose"],["type","button","mat-button","","color","primary",3,"click"]],template:function(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"div",2)(1,"mat-toolbar")(2,"h1",3),\u0275\u0275text(3),\u0275\u0275elementEnd(),\u0275\u0275elementStart(4,"button",4)(5,"mat-icon"),\u0275\u0275text(6,"close"),\u0275\u0275elementEnd()()()(),\u0275\u0275elementStart(7,"mat-dialog-content")(8,"div",5),\u0275\u0275element(9,"ix-flat-search-input",6),\u0275\u0275elementEnd(),\u0275\u0275elementStart(10,"mat-action-list",7),\u0275\u0275repeaterCreate(11,SelectDialogComponent_For_12_Template,5,7,null,null,\u0275\u0275repeaterTrackByIdentity),\u0275\u0275elementEnd(),\u0275\u0275template(13,SelectDialogComponent_Conditional_13_Template,2,1),\u0275\u0275elementEnd(),\u0275\u0275template(14,SelectDialogComponent_ng_template_14_Template,2,1,"ng-template",null,0,\u0275\u0275templateRefExtractor)(16,SelectDialogComponent_Conditional_16_Template,7,7,"mat-dialog-actions",8)),rf&2&&(\u0275\u0275advance(3),\u0275\u0275textInterpolate(ctx.label),\u0275\u0275advance(),\u0275\u0275property("matDialogClose",null),\u0275\u0275advance(5),\u0275\u0275property("query",ctx.searchQueryControl),\u0275\u0275advance(2),\u0275\u0275repeater(ctx.filteredOptions),\u0275\u0275advance(2),\u0275\u0275conditional(ctx.actionTemplate?13:-1),\u0275\u0275advance(3),\u0275\u0275conditional(ctx.multiple?16:-1))},dependencies:[NgTemplateOutlet,MatButtonModule,MatButton,MatIconButton,MatDialogModule,MatDialogClose,MatDialogTitle,MatDialogActions,MatDialogContent,MatDividerModule,MatDivider,MatIconModule,MatIcon,MatListModule,MatActionList,MatListItem,MatListSubheaderCssMatStyler,MatToolbarModule,MatToolbar,FlexModule,DefaultFlexDirective,TranslateModule,TranslatePipe,FlatSearchInputComponent,AppearDirective,AppearSchedulerDirective],styles:["[_nghost-%COMP%]{width:100dvw;height:100dvh;display:flex;flex-direction:column;flex:1}@media (min-width: 960px){[_nghost-%COMP%]{height:auto;width:auto;min-width:528px;max-width:528px}}[_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%]{padding:calc(env(safe-area-inset-top,0) + 16px) 24px 16px}[_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%] .mat-toolbar{height:48px;padding-left:0;padding-right:0}[_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%] .mat-toolbar .mdc-dialog__title{--mat-dialog-headline-padding: 0;color:inherit}[_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%] .mat-toolbar .mdc-dialog__title:before{display:none}[_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%] + .ix-dialog__content[_ngcontent-%COMP%], [_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%] + .mdc-dialog__content[_ngcontent-%COMP%]{padding-top:0}[_nghost-%COMP%] .mdc-dialog__title[_ngcontent-%COMP%]:before{height:calc(env(safe-area-inset-top,0) + 40px)}[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%]{padding:20px 24px}[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%] > .ix-list[_ngcontent-%COMP%]{margin-left:-24px;margin-right:-24px}[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%], [_nghost-%COMP%] .mdc-dialog__content[_ngcontent-%COMP%]{flex-direction:column;box-sizing:border-box;display:flex;place-content:stretch flex-start;align-items:stretch;flex:1 1 auto;max-height:none;overflow:auto;-webkit-overflow-scrolling:touch}[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%] > .mat-mdc-subheader[_ngcontent-%COMP%], [_nghost-%COMP%] .mdc-dialog__content[_ngcontent-%COMP%] > .mat-mdc-subheader[_ngcontent-%COMP%]{margin-left:0;margin-right:0}@media (min-width: 960px){[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%], [_nghost-%COMP%] .mdc-dialog__content[_ngcontent-%COMP%]{max-height:calc(90dvh - 140px)}[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%]:has(+.mdc-dialog__actions), [_nghost-%COMP%] .mdc-dialog__content[_ngcontent-%COMP%]:has(+.mdc-dialog__actions){padding-bottom:0}}@media (min-width: 960px){[_nghost-%COMP%] .ix-dialog__banner[_ngcontent-%COMP%] + .ix-dialog__content[_ngcontent-%COMP%]{max-height:calc(90dvh - 225px)}}@media (max-width: 959.9px){[_nghost-%COMP%] .mdc-dialog__actions[_ngcontent-%COMP%]{border-top:1px solid rgba(0,0,0,.12);padding-bottom:calc(16px + env(safe-area-inset-bottom,0))}}[_nghost-%COMP%] form[_ngcontent-%COMP%]{flex-direction:column;box-sizing:border-box;display:flex;flex:1 1 auto;height:inherit}[_nghost-%COMP%] form[_ngcontent-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%]{margin-bottom:1rem}[_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}[_nghost-%COMP%] .mat-mdc-dialog-content[_ngcontent-%COMP%]{padding:0}[_nghost-%COMP%] .mat-mdc-dialog-content[_ngcontent-%COMP%] .mat-mdc-action-list[_ngcontent-%COMP%] .mdc-list-group__subheader[_ngcontent-%COMP%]{margin-left:24px}[_nghost-%COMP%] .mat-mdc-dialog-content[_ngcontent-%COMP%] .mat-mdc-action-list[_ngcontent-%COMP%] .mdc-list-item[_ngcontent-%COMP%]{height:auto;min-height:48px;padding-left:24px}[_nghost-%COMP%] .mat-mdc-dialog-content[_ngcontent-%COMP%] .mat-mdc-action-list[_ngcontent-%COMP%] .mdc-list-item.has-group[_ngcontent-%COMP%]{padding-left:40px}[_nghost-%COMP%] .mat-mdc-dialog-content[_ngcontent-%COMP%] .mat-mdc-action-list[_ngcontent-%COMP%] .mdc-list-item.is-checked[_ngcontent-%COMP%] .option-template[_ngcontent-%COMP%]{max-width:calc(100% - 24px);padding-right:8px}[_nghost-%COMP%] .search-area[_ngcontent-%COMP%]{padding:12px 24px 4px}[_nghost-%COMP%] .search-area[_ngcontent-%COMP%] ix-flat-search-input[_ngcontent-%COMP%]{--ix-flat-search-input-width: 100%}[_nghost-%COMP%] .option-inner[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:flex-start;align-items:center}[_nghost-%COMP%] .option-template[_ngcontent-%COMP%]{max-width:100%;overflow:hidden}[_nghost-%COMP%] .option-label[_ngcontent-%COMP%]{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}"],changeDetection:0});let SelectDialogComponent2=_SelectDialogComponent;return SelectDialogComponent2})();var SelectDialogTriggerDirective=(()=>{let _SelectDialogTriggerDirective=class _SelectDialogTriggerDirective{constructor(){this.matSelect=inject(MatSelect),this.dialog=inject(MatDialog),this.bpObserver=inject(BreakpointObserver),this._dialogRef=null}get active(){return this.bpObserver.isMatched("(max-width: 959.98px)")&&!this.matSelect.disabled}get searchQueryControl(){return this._dialogRef?.componentInstance.searchQueryControl}ngAfterViewInit(){this._ogOnContainerClick=this.matSelect.onContainerClick.bind(this.matSelect),this.matSelect.onContainerClick=()=>{if(this.active){this.matSelect.panel?.nativeElement.setAttribute("hidden","");let selectedBeforeOpen=getSelectedOptions(this.matSelect),data={instance:this.matSelect,actionTemplate:this.ixSelectDialogActionTemplate,optionTemplate:this.ixSelectDialogOptionTemplate,searchPredicate:this.ixSelectDialogSearchPredicate};this._dialogRef=this.dialog.open(SelectDialogComponent,{data,panelClass:"fullscreen"}),this._dialogRef.afterClosed().subscribe(selected=>{if(this.matSelect.multiple){let selectOpts=selected??selectedBeforeOpen;(selected?selectedBeforeOpen:getSelectedOptions(this.matSelect)).forEach(option=>{selectOpts.includes(option)||option.deselect(!0)}),selectOpts.forEach(option=>this.matSelect.options.find(opt=>opt.value===option.value)?.select(!0))}else selected?.forEach(option=>this.matSelect.options.find(opt=>opt.value===option.value)?.select(!0));this.matSelect.close(),this._dialogRef=null})}else this._ogOnContainerClick()}}ngOnDestroy(){this._dialogRef?.close(),this._dialogRef=null}invalidate(){this._dialogRef?.componentInstance.invalidateOptions()}};_SelectDialogTriggerDirective.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_SelectDialogTriggerDirective)},_SelectDialogTriggerDirective.\u0275dir=\u0275\u0275defineDirective({type:_SelectDialogTriggerDirective,selectors:[["","ixSelectDialogTrigger",""]],inputs:{ixSelectDialogOptionTemplate:"ixSelectDialogOptionTemplate",ixSelectDialogActionTemplate:"ixSelectDialogActionTemplate",ixSelectDialogSearchPredicate:"ixSelectDialogSearchPredicate"}});let SelectDialogTriggerDirective3=_SelectDialogTriggerDirective;return SelectDialogTriggerDirective3})();var SelectDialogModule=(()=>{let _SelectDialogModule=class _SelectDialogModule{};_SelectDialogModule.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_SelectDialogModule)},_SelectDialogModule.\u0275mod=\u0275\u0275defineNgModule({type:_SelectDialogModule}),_SelectDialogModule.\u0275inj=\u0275\u0275defineInjector({imports:[SelectDialogComponent]});let SelectDialogModule2=_SelectDialogModule;return SelectDialogModule2})();var _c06=["searchSelectInput"],_c1=["innerSelectSearch"],_c2=[[["",8,"mat-select-search-custom-header-content"]],[["","ngxMatSelectSearchClear",""]],[["","ngxMatSelectNoEntriesFound",""]]],_c3=[".mat-select-search-custom-header-content","[ngxMatSelectSearchClear]","[ngxMatSelectNoEntriesFound]"],_c4=(a0,a1)=>({"mat-select-search-inner-multiple":a0,"mat-select-search-inner-toggle-all":a1});function MatSelectSearchComponent_mat_checkbox_4_Template(rf,ctx){if(rf&1){let _r2=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"mat-checkbox",12),\u0275\u0275listener("change",function($event){\u0275\u0275restoreView(_r2);let ctx_r2=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r2._emitSelectAllBooleanToParent($event.checked))}),\u0275\u0275elementEnd()}if(rf&2){let ctx_r2=\u0275\u0275nextContext();\u0275\u0275property("color",ctx_r2.matFormField==null?null:ctx_r2.matFormField.color)("checked",ctx_r2.toggleAllCheckboxChecked)("indeterminate",ctx_r2.toggleAllCheckboxIndeterminate)("matTooltip",ctx_r2.toggleAllCheckboxTooltipMessage)("matTooltipPosition",ctx_r2.toggleAllCheckboxTooltipPosition)}}function MatSelectSearchComponent_mat_spinner_7_Template(rf,ctx){rf&1&&\u0275\u0275element(0,"mat-spinner",13)}function MatSelectSearchComponent_button_8_ng_content_1_Template(rf,ctx){rf&1&&\u0275\u0275projection(0,1,["*ngIf","clearIcon; else defaultIcon"])}function MatSelectSearchComponent_button_8_ng_template_2_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"mat-icon",16),\u0275\u0275text(1),\u0275\u0275elementEnd()),rf&2){let ctx_r2=\u0275\u0275nextContext(2);\u0275\u0275property("svgIcon",ctx_r2.closeSvgIcon),\u0275\u0275advance(),\u0275\u0275textInterpolate1(" ",ctx_r2.closeSvgIcon?null:ctx_r2.closeIcon," ")}}function MatSelectSearchComponent_button_8_Template(rf,ctx){if(rf&1){let _r4=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"button",14),\u0275\u0275listener("click",function(){\u0275\u0275restoreView(_r4);let ctx_r2=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r2._reset(!0))}),\u0275\u0275template(1,MatSelectSearchComponent_button_8_ng_content_1_Template,1,0,"ng-content",15)(2,MatSelectSearchComponent_button_8_ng_template_2_Template,2,2,"ng-template",null,2,\u0275\u0275templateRefExtractor),\u0275\u0275elementEnd()}if(rf&2){let defaultIcon_r5=\u0275\u0275reference(3),ctx_r2=\u0275\u0275nextContext();\u0275\u0275advance(),\u0275\u0275property("ngIf",ctx_r2.clearIcon)("ngIfElse",defaultIcon_r5)}}function MatSelectSearchComponent_div_11_ng_content_1_Template(rf,ctx){rf&1&&\u0275\u0275projection(0,2,["*ngIf","noEntriesFound; else defaultNoEntriesFound"])}function MatSelectSearchComponent_div_11_ng_template_2_Template(rf,ctx){if(rf&1&&\u0275\u0275text(0),rf&2){let ctx_r2=\u0275\u0275nextContext(2);\u0275\u0275textInterpolate(ctx_r2.noEntriesFoundLabel)}}function MatSelectSearchComponent_div_11_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"div",17),\u0275\u0275template(1,MatSelectSearchComponent_div_11_ng_content_1_Template,1,0,"ng-content",15)(2,MatSelectSearchComponent_div_11_ng_template_2_Template,1,1,"ng-template",null,3,\u0275\u0275templateRefExtractor),\u0275\u0275elementEnd()),rf&2){let defaultNoEntriesFound_r6=\u0275\u0275reference(3),ctx_r2=\u0275\u0275nextContext();\u0275\u0275advance(),\u0275\u0275property("ngIf",ctx_r2.noEntriesFound)("ngIfElse",defaultNoEntriesFound_r6)}}var MatSelectSearchClearDirective=(()=>{class MatSelectSearchClearDirective2{static \u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||MatSelectSearchClearDirective2)};static \u0275dir=\u0275\u0275defineDirective({type:MatSelectSearchClearDirective2,selectors:[["","ngxMatSelectSearchClear",""]],standalone:!1})}return MatSelectSearchClearDirective2})(),configurableDefaultOptions=["ariaLabel","clearSearchInput","closeIcon","closeSvgIcon","disableInitialFocus","disableScrollToActiveOnOptionsChanged","enableClearOnEscapePressed","hideClearSearchButton","noEntriesFoundLabel","placeholderLabel","preventHomeEndKeyPropagation","searching"],MAT_SELECTSEARCH_DEFAULT_OPTIONS=new InjectionToken("mat-selectsearch-default-options"),MatSelectNoEntriesFoundDirective=(()=>{class MatSelectNoEntriesFoundDirective2{static \u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||MatSelectNoEntriesFoundDirective2)};static \u0275dir=\u0275\u0275defineDirective({type:MatSelectNoEntriesFoundDirective2,selectors:[["","ngxMatSelectNoEntriesFound",""]],standalone:!1})}return MatSelectNoEntriesFoundDirective2})(),MatSelectSearchComponent=(()=>{class MatSelectSearchComponent2{matSelect;changeDetectorRef;_viewportRuler;matOption;matFormField;placeholderLabel="Suche";type="text";closeIcon="close";closeSvgIcon;noEntriesFoundLabel="Keine Optionen gefunden";clearSearchInput=!0;searching=!1;disableInitialFocus=!1;enableClearOnEscapePressed=!1;preventHomeEndKeyPropagation=!1;disableScrollToActiveOnOptionsChanged=!1;ariaLabel="dropdown search";showToggleAllCheckbox=!1;toggleAllCheckboxChecked=!1;toggleAllCheckboxIndeterminate=!1;toggleAllCheckboxTooltipMessage="";toggleAllCheckboxTooltipPosition="below";hideClearSearchButton=!1;alwaysRestoreSelectedOptionsMulti=!1;recreateValuesArray=!1;toggleAll=new EventEmitter;searchSelectInput;innerSelectSearch;clearIcon;noEntriesFound;get value(){return this._formControl.value}_lastExternalInputValue;onTouched=_=>{};set _options(_options){this._options$.next(_options)}get _options(){return this._options$.getValue()}_options$=new BehaviorSubject(null);optionsList$=this._options$.pipe(switchMap(_options=>_options?_options.changes.pipe(map(options=>options.toArray()),startWith(_options.toArray())):of(null)));optionsLength$=this.optionsList$.pipe(map(options=>options?options.length:0));previousSelectedValues;_formControl=new FormControl("",{nonNullable:!0});_showNoEntriesFound$=combineLatest([this._formControl.valueChanges,this.optionsLength$]).pipe(map(([value,optionsLength])=>!!(this.noEntriesFoundLabel&&value&&optionsLength===this.getOptionsLengthOffset())));_onDestroy=new Subject;activeDescendant;constructor(matSelect,changeDetectorRef,_viewportRuler,matOption,matFormField,defaultOptions2){this.matSelect=matSelect,this.changeDetectorRef=changeDetectorRef,this._viewportRuler=_viewportRuler,this.matOption=matOption,this.matFormField=matFormField,this.applyDefaultOptions(defaultOptions2)}applyDefaultOptions(defaultOptions2){if(defaultOptions2)for(let key of configurableDefaultOptions)defaultOptions2.hasOwnProperty(key)&&(this[key]=defaultOptions2[key])}ngOnInit(){this.matOption?(this.matOption.disabled=!0,this.matOption._getHostElement().classList.add("contains-mat-select-search"),this.matOption._getHostElement().setAttribute("role","presentation")):console.error("<ngx-mat-select-search> must be placed inside a <mat-option> element"),this.matSelect.openedChange.pipe(delay(1),takeUntil(this._onDestroy)).subscribe(opened=>{opened?(this.updateInputWidth(),this.disableInitialFocus||this._focus()):this.clearSearchInput&&this._reset()}),this.matSelect.openedChange.pipe(take(1),switchMap(_=>{this._options=this.matSelect.options;let previousFirstOption=this._options.toArray()[this.getOptionsLengthOffset()];return this._options.changes.pipe(tap(()=>{setTimeout(()=>{let options=this._options.toArray(),currentFirstOption=options[this.getOptionsLengthOffset()],keyManager=this.matSelect._keyManager;keyManager&&this.matSelect.panelOpen&&currentFirstOption&&((!previousFirstOption||!this.matSelect.compareWith(previousFirstOption.value,currentFirstOption.value)||!keyManager.activeItem||!options.find(option=>this.matSelect.compareWith(option.value,keyManager.activeItem?.value)))&&keyManager.setActiveItem(this.getOptionsLengthOffset()),setTimeout(()=>{this.updateInputWidth()})),previousFirstOption=currentFirstOption})}))})).pipe(takeUntil(this._onDestroy)).subscribe(),this._showNoEntriesFound$.pipe(takeUntil(this._onDestroy)).subscribe(showNoEntriesFound=>{this.matOption&&(showNoEntriesFound?this.matOption._getHostElement().classList.add("mat-select-search-no-entries-found"):this.matOption._getHostElement().classList.remove("mat-select-search-no-entries-found"))}),this._viewportRuler.change().pipe(takeUntil(this._onDestroy)).subscribe(()=>{this.matSelect.panelOpen&&this.updateInputWidth()}),this.initMultipleHandling(),this.optionsList$.pipe(takeUntil(this._onDestroy)).subscribe(()=>{this.changeDetectorRef.markForCheck()})}_emitSelectAllBooleanToParent(state){this.toggleAll.emit(state)}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}_isToggleAllCheckboxVisible(){return this.matSelect.multiple&&this.showToggleAllCheckbox}_handleKeydown(event2){(event2.key&&event2.key.length===1||this.preventHomeEndKeyPropagation&&(event2.key==="Home"||event2.key==="End"))&&event2.stopPropagation(),this.matSelect.multiple&&event2.key&&event2.key==="Enter"&&setTimeout(()=>this._focus()),this.enableClearOnEscapePressed&&event2.key==="Escape"&&this.value&&(this._reset(!0),event2.stopPropagation())}_handleKeyup(event2){if(event2.key==="ArrowUp"||event2.key==="ArrowDown"){let ariaActiveDescendantId=this.matSelect._getAriaActiveDescendant(),index=this._options.toArray().findIndex(item=>item.id===ariaActiveDescendantId);index!==-1&&(this.unselectActiveDescendant(),this.activeDescendant=this._options.toArray()[index]._getHostElement(),this.activeDescendant.setAttribute("aria-selected","true"),this.searchSelectInput.nativeElement.setAttribute("aria-activedescendant",ariaActiveDescendantId))}}writeValue(value){this._lastExternalInputValue=value,this._formControl.setValue(value),this.changeDetectorRef.markForCheck()}onBlur(){this.unselectActiveDescendant(),this.onTouched()}registerOnChange(fn2){this._formControl.valueChanges.pipe(filter(value=>value!==this._lastExternalInputValue),tap(()=>this._lastExternalInputValue=void 0),takeUntil(this._onDestroy)).subscribe(fn2)}registerOnTouched(fn2){this.onTouched=fn2}_focus(){if(!this.searchSelectInput||!this.matSelect.panel)return;let panel=this.matSelect.panel.nativeElement,scrollTop=panel.scrollTop;this.searchSelectInput.nativeElement.focus(),panel.scrollTop=scrollTop}_reset(focus){this._formControl.setValue(""),focus&&this._focus()}initMultipleHandling(){if(!this.matSelect.ngControl){this.matSelect.multiple&&console.error("the mat-select containing ngx-mat-select-search must have a ngModel or formControl directive when multiple=true");return}this.previousSelectedValues=this.matSelect.ngControl.value,this.matSelect.ngControl.valueChanges&&this.matSelect.ngControl.valueChanges.pipe(takeUntil(this._onDestroy)).subscribe(values=>{let restoreSelectedValues=!1;if(this.matSelect.multiple&&(this.alwaysRestoreSelectedOptionsMulti||this._formControl.value&&this._formControl.value.length)&&this.previousSelectedValues&&Array.isArray(this.previousSelectedValues)){(!values||!Array.isArray(values))&&(values=[]);let optionValues=this.matSelect.options.map(option=>option.value);this.previousSelectedValues.forEach(previousValue=>{!values.some(v=>this.matSelect.compareWith(v,previousValue))&&!optionValues.some(v=>this.matSelect.compareWith(v,previousValue))&&(this.recreateValuesArray?values=[...values,previousValue]:values.push(previousValue),restoreSelectedValues=!0)})}this.previousSelectedValues=values,restoreSelectedValues&&this.matSelect._onChange(values)})}updateInputWidth(){if(!this.innerSelectSearch||!this.innerSelectSearch.nativeElement)return;let element=this.innerSelectSearch.nativeElement,panelElement=null;for(;element&&element.parentElement;)if(element=element.parentElement,element.classList.contains("mat-select-panel")){panelElement=element;break}panelElement&&(this.innerSelectSearch.nativeElement.style.width=panelElement.clientWidth+"px")}getOptionsLengthOffset(){return this.matOption?1:0}unselectActiveDescendant(){this.activeDescendant?.removeAttribute("aria-selected"),this.searchSelectInput.nativeElement.removeAttribute("aria-activedescendant")}static \u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||MatSelectSearchComponent2)(\u0275\u0275directiveInject(MatSelect),\u0275\u0275directiveInject(ChangeDetectorRef),\u0275\u0275directiveInject(ViewportRuler),\u0275\u0275directiveInject(MatOption,8),\u0275\u0275directiveInject(MatFormField,8),\u0275\u0275directiveInject(MAT_SELECTSEARCH_DEFAULT_OPTIONS,8))};static \u0275cmp=\u0275\u0275defineComponent({type:MatSelectSearchComponent2,selectors:[["ngx-mat-select-search"]],contentQueries:function(rf,ctx,dirIndex){if(rf&1&&(\u0275\u0275contentQuery(dirIndex,MatSelectSearchClearDirective,5),\u0275\u0275contentQuery(dirIndex,MatSelectNoEntriesFoundDirective,5)),rf&2){let _t;\u0275\u0275queryRefresh(_t=\u0275\u0275loadQuery())&&(ctx.clearIcon=_t.first),\u0275\u0275queryRefresh(_t=\u0275\u0275loadQuery())&&(ctx.noEntriesFound=_t.first)}},viewQuery:function(rf,ctx){if(rf&1&&(\u0275\u0275viewQuery(_c06,7,ElementRef),\u0275\u0275viewQuery(_c1,7,ElementRef)),rf&2){let _t;\u0275\u0275queryRefresh(_t=\u0275\u0275loadQuery())&&(ctx.searchSelectInput=_t.first),\u0275\u0275queryRefresh(_t=\u0275\u0275loadQuery())&&(ctx.innerSelectSearch=_t.first)}},inputs:{placeholderLabel:"placeholderLabel",type:"type",closeIcon:"closeIcon",closeSvgIcon:"closeSvgIcon",noEntriesFoundLabel:"noEntriesFoundLabel",clearSearchInput:"clearSearchInput",searching:"searching",disableInitialFocus:"disableInitialFocus",enableClearOnEscapePressed:"enableClearOnEscapePressed",preventHomeEndKeyPropagation:"preventHomeEndKeyPropagation",disableScrollToActiveOnOptionsChanged:"disableScrollToActiveOnOptionsChanged",ariaLabel:"ariaLabel",showToggleAllCheckbox:"showToggleAllCheckbox",toggleAllCheckboxChecked:"toggleAllCheckboxChecked",toggleAllCheckboxIndeterminate:"toggleAllCheckboxIndeterminate",toggleAllCheckboxTooltipMessage:"toggleAllCheckboxTooltipMessage",toggleAllCheckboxTooltipPosition:"toggleAllCheckboxTooltipPosition",hideClearSearchButton:"hideClearSearchButton",alwaysRestoreSelectedOptionsMulti:"alwaysRestoreSelectedOptionsMulti",recreateValuesArray:"recreateValuesArray"},outputs:{toggleAll:"toggleAll"},standalone:!1,features:[\u0275\u0275ProvidersFeature([{provide:NG_VALUE_ACCESSOR,useExisting:forwardRef(()=>MatSelectSearchComponent2),multi:!0}])],ngContentSelectors:_c3,decls:13,vars:14,consts:[["innerSelectSearch",""],["searchSelectInput",""],["defaultIcon",""],["defaultNoEntriesFound",""],["matInput","",1,"mat-select-search-input","mat-select-search-hidden"],[1,"mat-select-search-inner","mat-typography","mat-datepicker-content","mat-tab-header",3,"ngClass"],[1,"mat-select-search-inner-row"],["class","mat-select-search-toggle-all-checkbox","matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",3,"color","checked","indeterminate","matTooltip","matTooltipPosition","change",4,"ngIf"],["autocomplete","off",1,"mat-select-search-input",3,"keydown","keyup","blur","type","formControl","placeholder"],["class","mat-select-search-spinner","diameter","16",4,"ngIf"],["mat-icon-button","","aria-label","Clear","class","mat-select-search-clear",3,"click",4,"ngIf"],["class","mat-select-search-no-entries-found",4,"ngIf"],["matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",1,"mat-select-search-toggle-all-checkbox",3,"change","color","checked","indeterminate","matTooltip","matTooltipPosition"],["diameter","16",1,"mat-select-search-spinner"],["mat-icon-button","","aria-label","Clear",1,"mat-select-search-clear",3,"click"],[4,"ngIf","ngIfElse"],[3,"svgIcon"],[1,"mat-select-search-no-entries-found"]],template:function(rf,ctx){if(rf&1){let _r1=\u0275\u0275getCurrentView();\u0275\u0275projectionDef(_c2),\u0275\u0275element(0,"input",4),\u0275\u0275elementStart(1,"div",5,0)(3,"div",6),\u0275\u0275template(4,MatSelectSearchComponent_mat_checkbox_4_Template,1,5,"mat-checkbox",7),\u0275\u0275elementStart(5,"input",8,1),\u0275\u0275listener("keydown",function($event){return \u0275\u0275restoreView(_r1),\u0275\u0275resetView(ctx._handleKeydown($event))})("keyup",function($event){return \u0275\u0275restoreView(_r1),\u0275\u0275resetView(ctx._handleKeyup($event))})("blur",function(){return \u0275\u0275restoreView(_r1),\u0275\u0275resetView(ctx.onBlur())}),\u0275\u0275elementEnd(),\u0275\u0275template(7,MatSelectSearchComponent_mat_spinner_7_Template,1,0,"mat-spinner",9)(8,MatSelectSearchComponent_button_8_Template,4,2,"button",10),\u0275\u0275projection(9),\u0275\u0275elementEnd(),\u0275\u0275element(10,"mat-divider"),\u0275\u0275elementEnd(),\u0275\u0275template(11,MatSelectSearchComponent_div_11_Template,4,2,"div",11),\u0275\u0275pipe(12,"async")}rf&2&&(\u0275\u0275advance(),\u0275\u0275property("ngClass",\u0275\u0275pureFunction2(11,_c4,ctx.matSelect.multiple,ctx._isToggleAllCheckboxVisible())),\u0275\u0275advance(3),\u0275\u0275property("ngIf",ctx._isToggleAllCheckboxVisible()),\u0275\u0275advance(),\u0275\u0275property("type",ctx.type)("formControl",ctx._formControl)("placeholder",ctx.placeholderLabel),\u0275\u0275attribute("aria-label",ctx.ariaLabel),\u0275\u0275advance(2),\u0275\u0275property("ngIf",ctx.searching),\u0275\u0275advance(),\u0275\u0275property("ngIf",!ctx.hideClearSearchButton&&ctx.value&&!ctx.searching),\u0275\u0275advance(3),\u0275\u0275property("ngIf",\u0275\u0275pipeBind1(12,9,ctx._showNoEntriesFound$)))},dependencies:[NgClass,NgIf,DefaultValueAccessor,NgControlStatus,FormControlDirective,MatIconButton,MatCheckbox,MatIcon,MatProgressSpinner,MatTooltip,MatDivider,AsyncPipe],styles:[".mat-select-search-hidden[_ngcontent-%COMP%]{visibility:hidden}.mat-select-search-inner[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;z-index:100;font-size:inherit;box-shadow:none;background-color:var(--mat-select-panel-background-color)}.mat-select-search-inner.mat-select-search-inner-multiple.mat-select-search-inner-toggle-all[_ngcontent-%COMP%] .mat-select-search-inner-row[_ngcontent-%COMP%]{display:flex;align-items:center}.mat-select-search-input[_ngcontent-%COMP%]{box-sizing:border-box;width:100%;border:none;font-family:inherit;font-size:inherit;color:currentColor;outline:none;background-color:var(--mat-select-panel-background-color);padding:0 44px 0 16px;height:calc(3em - 1px);line-height:calc(3em - 1px)}[dir=rtl][_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%]{padding-right:16px;padding-left:44px}.mat-select-search-input[_ngcontent-%COMP%]::placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}.mat-select-search-inner-toggle-all[_ngcontent-%COMP%] .mat-select-search-input[_ngcontent-%COMP%]{padding-left:5px}.mat-select-search-no-entries-found[_ngcontent-%COMP%]{padding-top:8px}.mat-select-search-clear[_ngcontent-%COMP%]{position:absolute;right:4px;top:0}[dir=rtl][_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%]{right:auto;left:4px}.mat-select-search-spinner[_ngcontent-%COMP%]{position:absolute;right:16px;top:calc(50% - 8px)}[dir=rtl][_nghost-%COMP%] .mat-select-search-spinner[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-spinner[_ngcontent-%COMP%]{right:auto;left:16px} .mat-mdc-option[aria-disabled=true].contains-mat-select-search{position:sticky;top:-8px;z-index:1;opacity:1;margin-top:-8px;pointer-events:all} .mat-mdc-option[aria-disabled=true].contains-mat-select-search .mat-icon{margin-right:0;margin-left:0} .mat-mdc-option[aria-disabled=true].contains-mat-select-search mat-pseudo-checkbox{display:none} .mat-mdc-option[aria-disabled=true].contains-mat-select-search .mdc-list-item__primary-text{opacity:1}.mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%]{padding-left:5px}[dir=rtl][_nghost-%COMP%] .mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%]{padding-left:0;padding-right:5px}"],changeDetection:0})}return MatSelectSearchComponent2})();var NgxMatSelectSearchModule=(()=>{class NgxMatSelectSearchModule2{static \u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||NgxMatSelectSearchModule2)};static \u0275mod=\u0275\u0275defineNgModule({type:NgxMatSelectSearchModule2});static \u0275inj=\u0275\u0275defineInjector({imports:[CommonModule,ReactiveFormsModule,MatButtonModule,MatCheckboxModule,MatIconModule,MatProgressSpinnerModule,MatTooltipModule,MatDividerModule]})}return NgxMatSelectSearchModule2})();var _forTrack02=($index,$item)=>$item.index;function SelectPanelComponent_Conditional_1_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"mat-option"),\u0275\u0275element(1,"ngx-mat-select-search",2),\u0275\u0275pipe(2,"translate"),\u0275\u0275pipe(3,"translate"),\u0275\u0275elementEnd()),rf&2){let tmp_2_0,ctx_r0=\u0275\u0275nextContext();\u0275\u0275advance(),\u0275\u0275property("formControl",ctx_r0.queryControl)("placeholderLabel",(tmp_2_0=ctx_r0.selectPanelOptions.searchPlaceholderText)!==null&&tmp_2_0!==void 0?tmp_2_0:\u0275\u0275pipeBind1(2,3,"SEARCH"))("noEntriesFoundLabel",\u0275\u0275pipeBind1(3,5,"NO_RESULTS_FOUND"))}}function SelectPanelComponent_For_3_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"mat-option",1)(1,"span",3),\u0275\u0275text(2),\u0275\u0275elementEnd()()),rf&2){let option_r2=ctx.$implicit;\u0275\u0275property("value",option_r2.index),\u0275\u0275advance(2),\u0275\u0275textInterpolate(option_r2.text)}}var SelectPanelComponent=(()=>{let _SelectPanelComponent=class _SelectPanelComponent{constructor(){this.data=inject(SELECT_PANEL_DATA),this.ngZone=inject(NgZone),this.destroy=inject(DestroyRef),this.elementRef=inject(ElementRef),this.viewportRuler=inject(ViewportRuler),this.selected$=new BehaviorSubject(void 0),this.selectPanelOptions=this.data.options,this.isMultiple=this.selectPanelOptions.multiple??!1,this.selectOptions=this.selectPanelOptions.options.map((option,index)=>__spreadProps(__spreadValues({},option),{index})),this.queryControl=new FormControl("",{nonNullable:!0}),this.selectedOptions=new FormControl(this.selectPanelOptions.selected??null),this.filteredOptions=signal(this.selectOptions)}ngOnInit(){this.selectedOptions.valueChanges.pipe(takeUntilDestroyed(this.destroy)).subscribe(value=>{this.isMultiple&&Array.isArray(value)?this.selected$.next({indexes:value}):!this.isMultiple&&typeof value=="number"?this.selected$.next({index:value}):this.selected$.next(void 0)}),this.queryControl.valueChanges.pipe(takeUntilDestroyed(this.destroy)).subscribe(query=>{if(query){let filtered=this.selectOptions.filter(option=>option.text.toLowerCase().includes(query.toLowerCase()));this.filteredOptions.set(filtered)}else this.filteredOptions.set(this.selectOptions)}),this.viewportRuler.change(33).pipe(takeUntilDestroyed(this.destroy)).subscribe(()=>{this.ngZone.run(()=>{this.updatePosition()})}),this.updatePosition()}ngAfterViewInit(){this.select.close=()=>{this.selected$.complete()},this.select.panelWidth=null,this.select.onContainerClick()}updatePosition(){let rect=this.data.target.getBoundingClientRect();this.elementRef.nativeElement.setAttribute("style",`inset:${rect.top}px auto auto ${rect.x}px;`),this.elementRef.nativeElement.querySelector(".mat-mdc-select-trigger")?.setAttribute("style",`height:${rect.height}px;width:${rect.width}px`)}};_SelectPanelComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_SelectPanelComponent)},_SelectPanelComponent.\u0275cmp=\u0275\u0275defineComponent({type:_SelectPanelComponent,selectors:[["ix-select-panel"]],viewQuery:function(rf,ctx){if(rf&1&&\u0275\u0275viewQuery(MatSelect,5),rf&2){let _t;\u0275\u0275queryRefresh(_t=\u0275\u0275loadQuery())&&(ctx.select=_t.first)}},decls:4,vars:3,consts:[["matInput","","ixSelectDialogTrigger","",3,"multiple","formControl"],[3,"value"],[3,"formControl","placeholderLabel","noEntriesFoundLabel"],["matListItemTitle",""]],template:function(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"mat-select",0),\u0275\u0275template(1,SelectPanelComponent_Conditional_1_Template,4,7,"mat-option"),\u0275\u0275repeaterCreate(2,SelectPanelComponent_For_3_Template,3,2,"mat-option",1,_forTrack02),\u0275\u0275elementEnd()),rf&2&&(\u0275\u0275property("multiple",ctx.isMultiple)("formControl",ctx.selectedOptions),\u0275\u0275advance(),\u0275\u0275conditional(ctx.selectPanelOptions.search?1:-1),\u0275\u0275advance(),\u0275\u0275repeater(ctx.filteredOptions()))},dependencies:[MatSelectModule,MatSelect,MatOption,NgxMatSelectSearchModule,MatSelectSearchComponent,ReactiveFormsModule,NgControlStatus,FormControlDirective,SelectDialogModule,SelectDialogTriggerDirective,TranslateModule,TranslatePipe],styles:["[_nghost-%COMP%]{position:absolute;inset:0 auto auto 0}"],changeDetection:0});let SelectPanelComponent2=_SelectPanelComponent;return SelectPanelComponent2})();var TIME_RANGE_OPTIONS=[{code:"last-hour",translateKey:"LAST_HOUR"},{code:"last-3-hours",translateKey:"LAST_N_HOURS",translateParams:{n:"3"}},{code:"last-6-hours",translateKey:"LAST_N_HOURS",translateParams:{n:"6"}},{code:"last-8-hours",translateKey:"LAST_N_HOURS",translateParams:{n:"8"}},{code:"last-12-hours",translateKey:"LAST_N_HOURS",translateParams:{n:"12"}},{code:"last-24-hours",translateKey:"LAST_N_HOURS",translateParams:{n:"24"}},{code:"last-2-days-from-today",translateKey:"LAST_N_DAYS_FROM_TODAY",translateParams:{n:"2"}},{code:"last-2-days-from-yesterday",translateKey:"LAST_N_DAYS_FROM_YESTERDAY",translateParams:{n:"2"}},{code:"last-7-days-from-today",translateKey:"LAST_N_DAYS_FROM_TODAY",translateParams:{n:"7"}},{code:"last-7-days-from-yesterday",translateKey:"LAST_N_DAYS_FROM_YESTERDAY",translateParams:{n:"7"}},{code:"last-30-days-from-today",translateKey:"LAST_N_DAYS_FROM_TODAY",translateParams:{n:"30"}},{code:"last-30-days-from-yesterday",translateKey:"LAST_N_DAYS_FROM_YESTERDAY",translateParams:{n:"30"}},{code:"today",translateKey:"TODAY"},{code:"yesterday",translateKey:"YESTERDAY"},{code:"previous-week",translateKey:"PREVIOUS_WEEK"},{code:"previous-month",translateKey:"PREVIOUS_MONTH"},{code:"week-to-date",translateKey:"WEEK_TO_DATE"},{code:"month-to-date",translateKey:"MONTH_TO_DATE"},{code:"year-to-date",translateKey:"YEAR_TO_DATE"}];function toTimeRange(periodSpec,timeZone=Settings.defaultZone.name||"UTC",now2=Date.now()){if(typeof periodSpec=="string"){let range2=_toTimeRange(periodSpec,timeZone,now2);return{from:range2[0].toMillis(),to:range2[1].toMillis()}}return periodSpec}function toStringTimeRange(periodSpec,timeZone=Settings.defaultZone.name||"UTC",locale=Settings.defaultLocale||"en-US",now2=Date.now()){let[from2,to]=_toTimeRange(periodSpec,timeZone,now2);return from2.setLocale(locale).toLocaleString(DateTime.DATETIME_SHORT)+" \u2014 "+to.setLocale(locale).toLocaleString(DateTime.DATETIME_SHORT)}function _toTimeRange(periodSpec,timeZone,now2){if(typeof periodSpec!="string")return[DateTime.fromMillis(periodSpec.from).setZone(timeZone),DateTime.fromMillis(periodSpec.to).setZone(timeZone)];let nowDateTime=DateTime.fromMillis(now2).setZone(timeZone),startOfDay=nowDateTime.startOf("day"),endOfDay=nowDateTime.endOf("day").set({millisecond:0});switch(periodSpec){case"today":return[startOfDay,endOfDay];case"yesterday":return[startOfDay.minus({day:1}),endOfDay.minus({day:1})];case"day-before-yesterday":return[startOfDay.minus({days:2}),endOfDay.minus({days:2})];case"last-week":case"previous-week":return[nowDateTime.startOf("week").minus({week:1}),nowDateTime.endOf("week").set({millisecond:0}).minus({week:1})];case"last-month":case"previous-month":return[nowDateTime.minus({month:1}).startOf("month"),nowDateTime.minus({month:1}).endOf("month").set({millisecond:0})];case"last-hour":return[nowDateTime.startOf("minute").minus({hour:1}),nowDateTime.startOf("minute").minus({second:1})];case"last-3-hours":case"last-6-hours":case"last-8-hours":case"last-12-hours":case"last-24-hours":{let hours=Number(periodSpec.substr(5,periodSpec.length-11));return[nowDateTime.startOf("minute").minus({hours}),nowDateTime.startOf("minute").minus({second:1})]}case"last-7-days":case"last-30-days":case"last-90-days":{let days=Number(periodSpec.substr(5,periodSpec.length-10));return[startOfDay.minus({days}),endOfDay.minus({day:1})]}case"last-2-days-from-today":case"last-7-days-from-today":case"last-30-days-from-today":case"last-90-days-from-today":{let days=Number(periodSpec.substr(5,periodSpec.length-21));return[startOfDay.minus({days:days-1}),endOfDay]}case"last-2-days-from-yesterday":case"last-7-days-from-yesterday":case"last-30-days-from-yesterday":case"last-90-days-from-yesterday":{let days=Number(periodSpec.substr(5,periodSpec.length-25));return[startOfDay.minus({days}),endOfDay.minus({day:1})]}case"week-to-date":case"month-to-date":case"year-to-date":{let startOf=periodSpec.substr(0,periodSpec.length-8);return[nowDateTime.startOf(startOf),endOfDay]}}return[startOfDay,endOfDay]}function getTranslateParamsForPeriod(period){switch(period){case"last-3-hours":case"last-6-hours":case"last-8-hours":case"last-12-hours":case"last-24-hours":return{n:Number(period.substr(5,period.length-11))};case"last-7-days":case"last-30-days":case"last-90-days":return{n:Number(period.substr(5,period.length-10))};case"last-2-days-from-today":case"last-7-days-from-today":case"last-30-days-from-today":case"last-90-days-from-today":return{n:Number(period.substr(5,period.length-21))};case"last-2-days-from-yesterday":case"last-7-days-from-yesterday":case"last-30-days-from-yesterday":case"last-90-days-from-yesterday":return{n:Number(period.substr(5,period.length-25))}}return{}}function getTranslateKeyForPeriod(period){switch(period){case"last-3-hours":case"last-6-hours":case"last-8-hours":case"last-12-hours":case"last-24-hours":return"LAST_N_HOURS";case"last-7-days":case"last-30-days":case"last-90-days":return"LAST_N_DAYS";case"last-2-days-from-today":case"last-7-days-from-today":case"last-30-days-from-today":case"last-90-days-from-today":return"LAST_N_DAYS_FROM_TODAY";case"last-2-days-from-yesterday":case"last-7-days-from-yesterday":case"last-30-days-from-yesterday":case"last-90-days-from-yesterday":return"LAST_N_DAYS_FROM_YESTERDAY"}return snakeCase_default(period).toUpperCase()}var ActivePeriodSpec=(()=>{let _ActivePeriodSpec=class _ActivePeriodSpec extends ReplaySubject{constructor(){super(1),this._scoped=new BehaviorSubject({})}inScopeOf(scope){return scope?this._scoped.pipe(mergeMap(scoped=>scoped[scope]?of(scoped[scope]):EMPTY)).pipe(distinctUntilChanged(isEqual_default),map(({spec})=>spec)):this.asObservable()}setPeriodSpec(newPeriodSpec,scope){if(scope){let scoped=this._scoped.getValue(),ref=((scoped[scope]?.ref??0)+1)%2;return this._scoped.next(__spreadProps(__spreadValues({},scoped),{[scope]:{spec:newPeriodSpec,ref}}))}return this.next(newPeriodSpec)}asTimeRange(scope){return scope?this.inScopeOf(scope).pipe(map(spec=>toTimeRange(spec))):this.asObservable().pipe(map(spec=>toTimeRange(spec)))}};_ActivePeriodSpec.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_ActivePeriodSpec)},_ActivePeriodSpec.\u0275prov=\u0275\u0275defineInjectable({token:_ActivePeriodSpec,factory:_ActivePeriodSpec.\u0275fac,providedIn:"root"});let ActivePeriodSpec2=_ActivePeriodSpec;return ActivePeriodSpec2})();function DateTimeFormatValidator(formatter=value=>DateTime.fromISO(value)){return function(control){let dateTime=formatter(control.value);return!dateTime.isValid&&dateTime.invalidReason?{[camelCase_default(dateTime.invalidReason)]:!0}:null}}function DateTimeFromToInverted(formatter=value=>DateTime.fromISO(value)){return function(formGroup){let fromControl=formGroup.controls.from,toControl=formGroup.controls.to,controls=[];if((!fromControl.errors||Object.keys(fromControl.errors).filter(key=>key!=="inverted").length===0)&&controls.push(fromControl),(!toControl.errors||Object.keys(toControl.errors).filter(key=>key!=="inverted").length===0)&&controls.push(toControl),controls.length){let fromDateTime=formatter(fromControl.value),toDateTime=formatter(toControl.value);if(fromDateTime.isValid&&toDateTime.isValid){let inverted=toDateTime.diff(fromDateTime,"milliseconds").milliseconds<0;controls.forEach(control=>control.setErrors(inverted?{inverted:!0}:null))}}return null}}function MaxDateValidator(maxDateISOString,formatter=value=>DateTime.fromISO(value)){let maxDateTime=DateTime.fromISO(maxDateISOString);return function(control){let dateTime=formatter(control.value);return maxDateTime.diff(dateTime).toMillis()<0?{maxDate:!0}:null}}var DateTimeValidators=(()=>{let _DateTimeValidators=class _DateTimeValidators{};_DateTimeValidators.maxDate=MaxDateValidator,_DateTimeValidators.format=DateTimeFormatValidator,_DateTimeValidators.fromToInverted=DateTimeFromToInverted;let DateTimeValidators2=_DateTimeValidators;return DateTimeValidators2})();var Tooltip=class{constructor(_instance){this._instance=_instance}enable(){this._instance.enable()}disable(){this._instance.disable()}destroy(){this._instance.destroy()}setMessage(message){this._instance.setContent(message)}};var top="top",bottom="bottom",right="right",left="left",auto="auto",basePlacements=[top,bottom,right,left],start2="start",end="end",clippingParents="clippingParents",viewport="viewport",popper="popper",reference="reference",variationPlacements=basePlacements.reduce(function(acc,placement){return acc.concat([placement+"-"+start2,placement+"-"+end])},[]),placements=[].concat(basePlacements,[auto]).reduce(function(acc,placement){return acc.concat([placement,placement+"-"+start2,placement+"-"+end])},[]),beforeRead="beforeRead",read="read",afterRead="afterRead",beforeMain="beforeMain",main="main",afterMain="afterMain",beforeWrite="beforeWrite",write="write",afterWrite="afterWrite",modifierPhases=[beforeRead,read,afterRead,beforeMain,main,afterMain,beforeWrite,write,afterWrite];function getNodeName(element){return element?(element.nodeName||"").toLowerCase():null}function getWindow(node){if(node==null)return window;if(node.toString()!=="[object Window]"){var ownerDocument=node.ownerDocument;return ownerDocument&&ownerDocument.defaultView||window}return node}function isElement(node){var OwnElement=getWindow(node).Element;return node instanceof OwnElement||node instanceof Element}function isHTMLElement(node){var OwnElement=getWindow(node).HTMLElement;return node instanceof OwnElement||node instanceof HTMLElement}function isShadowRoot(node){if(typeof ShadowRoot>"u")return!1;var OwnElement=getWindow(node).ShadowRoot;return node instanceof OwnElement||node instanceof ShadowRoot}function applyStyles(_ref){var state=_ref.state;Object.keys(state.elements).forEach(function(name){var style2=state.styles[name]||{},attributes=state.attributes[name]||{},element=state.elements[name];!isHTMLElement(element)||!getNodeName(element)||(Object.assign(element.style,style2),Object.keys(attributes).forEach(function(name2){var value=attributes[name2];value===!1?element.removeAttribute(name2):element.setAttribute(name2,value===!0?"":value)}))})}function effect2(_ref2){var state=_ref2.state,initialStyles={popper:{position:state.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(state.elements.popper.style,initialStyles.popper),state.styles=initialStyles,state.elements.arrow&&Object.assign(state.elements.arrow.style,initialStyles.arrow),function(){Object.keys(state.elements).forEach(function(name){var element=state.elements[name],attributes=state.attributes[name]||{},styleProperties=Object.keys(state.styles.hasOwnProperty(name)?state.styles[name]:initialStyles[name]),style2=styleProperties.reduce(function(style3,property){return style3[property]="",style3},{});!isHTMLElement(element)||!getNodeName(element)||(Object.assign(element.style,style2),Object.keys(attributes).forEach(function(attribute){element.removeAttribute(attribute)}))})}}var applyStyles_default={name:"applyStyles",enabled:!0,phase:"write",fn:applyStyles,effect:effect2,requires:["computeStyles"]};function getBasePlacement(placement){return placement.split("-")[0]}var max=Math.max,min=Math.min,round=Math.round;function getUAString(){var uaData=navigator.userAgentData;return uaData!=null&&uaData.brands?uaData.brands.map(function(item){return item.brand+"/"+item.version}).join(" "):navigator.userAgent}function isLayoutViewport(){return!/^((?!chrome|android).)*safari/i.test(getUAString())}function getBoundingClientRect(element,includeScale,isFixedStrategy){includeScale===void 0&&(includeScale=!1),isFixedStrategy===void 0&&(isFixedStrategy=!1);var clientRect=element.getBoundingClientRect(),scaleX=1,scaleY=1;includeScale&&isHTMLElement(element)&&(scaleX=element.offsetWidth>0&&round(clientRect.width)/element.offsetWidth||1,scaleY=element.offsetHeight>0&&round(clientRect.height)/element.offsetHeight||1);var _ref=isElement(element)?getWindow(element):window,visualViewport=_ref.visualViewport,addVisualOffsets=!isLayoutViewport()&&isFixedStrategy,x=(clientRect.left+(addVisualOffsets&&visualViewport?visualViewport.offsetLeft:0))/scaleX,y=(clientRect.top+(addVisualOffsets&&visualViewport?visualViewport.offsetTop:0))/scaleY,width=clientRect.width/scaleX,height=clientRect.height/scaleY;return{width,height,top:y,right:x+width,bottom:y+height,left:x,x,y}}function getLayoutRect(element){var clientRect=getBoundingClientRect(element),width=element.offsetWidth,height=element.offsetHeight;return Math.abs(clientRect.width-width)<=1&&(width=clientRect.width),Math.abs(clientRect.height-height)<=1&&(height=clientRect.height),{x:element.offsetLeft,y:element.offsetTop,width,height}}function contains(parent,child){var rootNode=child.getRootNode&&child.getRootNode();if(parent.contains(child))return!0;if(rootNode&&isShadowRoot(rootNode)){var next=child;do{if(next&&parent.isSameNode(next))return!0;next=next.parentNode||next.host}while(next)}return!1}function getComputedStyle2(element){return getWindow(element).getComputedStyle(element)}function isTableElement(element){return["table","td","th"].indexOf(getNodeName(element))>=0}function getDocumentElement(element){return((isElement(element)?element.ownerDocument:element.document)||window.document).documentElement}function getParentNode(element){return getNodeName(element)==="html"?element:element.assignedSlot||element.parentNode||(isShadowRoot(element)?element.host:null)||getDocumentElement(element)}function getTrueOffsetParent(element){return!isHTMLElement(element)||getComputedStyle2(element).position==="fixed"?null:element.offsetParent}function getContainingBlock(element){var isFirefox=/firefox/i.test(getUAString()),isIE=/Trident/i.test(getUAString());if(isIE&&isHTMLElement(element)){var elementCss=getComputedStyle2(element);if(elementCss.position==="fixed")return null}var currentNode=getParentNode(element);for(isShadowRoot(currentNode)&&(currentNode=currentNode.host);isHTMLElement(currentNode)&&["html","body"].indexOf(getNodeName(currentNode))<0;){var css=getComputedStyle2(currentNode);if(css.transform!=="none"||css.perspective!=="none"||css.contain==="paint"||["transform","perspective"].indexOf(css.willChange)!==-1||isFirefox&&css.willChange==="filter"||isFirefox&&css.filter&&css.filter!=="none")return currentNode;currentNode=currentNode.parentNode}return null}function getOffsetParent(element){for(var window2=getWindow(element),offsetParent=getTrueOffsetParent(element);offsetParent&&isTableElement(offsetParent)&&getComputedStyle2(offsetParent).position==="static";)offsetParent=getTrueOffsetParent(offsetParent);return offsetParent&&(getNodeName(offsetParent)==="html"||getNodeName(offsetParent)==="body"&&getComputedStyle2(offsetParent).position==="static")?window2:offsetParent||getContainingBlock(element)||window2}function getMainAxisFromPlacement(placement){return["top","bottom"].indexOf(placement)>=0?"x":"y"}function within(min2,value,max2){return max(min2,min(value,max2))}function withinMaxClamp(min2,value,max2){var v=within(min2,value,max2);return v>max2?max2:v}function getFreshSideObject(){return{top:0,right:0,bottom:0,left:0}}function mergePaddingObject(paddingObject){return Object.assign({},getFreshSideObject(),paddingObject)}function expandToHashMap(value,keys){return keys.reduce(function(hashMap,key){return hashMap[key]=value,hashMap},{})}var toPaddingObject=function(padding,state){return padding=typeof padding=="function"?padding(Object.assign({},state.rects,{placement:state.placement})):padding,mergePaddingObject(typeof padding!="number"?padding:expandToHashMap(padding,basePlacements))};function arrow(_ref){var _state$modifiersData$,state=_ref.state,name=_ref.name,options=_ref.options,arrowElement=state.elements.arrow,popperOffsets2=state.modifiersData.popperOffsets,basePlacement=getBasePlacement(state.placement),axis=getMainAxisFromPlacement(basePlacement),isVertical=[left,right].indexOf(basePlacement)>=0,len=isVertical?"height":"width";if(!(!arrowElement||!popperOffsets2)){var paddingObject=toPaddingObject(options.padding,state),arrowRect=getLayoutRect(arrowElement),minProp=axis==="y"?top:left,maxProp=axis==="y"?bottom:right,endDiff=state.rects.reference[len]+state.rects.reference[axis]-popperOffsets2[axis]-state.rects.popper[len],startDiff=popperOffsets2[axis]-state.rects.reference[axis],arrowOffsetParent=getOffsetParent(arrowElement),clientSize=arrowOffsetParent?axis==="y"?arrowOffsetParent.clientHeight||0:arrowOffsetParent.clientWidth||0:0,centerToReference=endDiff/2-startDiff/2,min2=paddingObject[minProp],max2=clientSize-arrowRect[len]-paddingObject[maxProp],center=clientSize/2-arrowRect[len]/2+centerToReference,offset3=within(min2,center,max2),axisProp=axis;state.modifiersData[name]=(_state$modifiersData$={},_state$modifiersData$[axisProp]=offset3,_state$modifiersData$.centerOffset=offset3-center,_state$modifiersData$)}}function effect3(_ref2){var state=_ref2.state,options=_ref2.options,_options$element=options.element,arrowElement=_options$element===void 0?"[data-popper-arrow]":_options$element;if(arrowElement!=null&&!(typeof arrowElement=="string"&&(arrowElement=state.elements.popper.querySelector(arrowElement),!arrowElement))){if(isHTMLElement(arrowElement)||console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).',"To use an SVG arrow, wrap it in an HTMLElement that will be used as","the arrow."].join(" ")),!contains(state.elements.popper,arrowElement)){console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" "));return}state.elements.arrow=arrowElement}}var arrow_default={name:"arrow",enabled:!0,phase:"main",fn:arrow,effect:effect3,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function getVariation(placement){return placement.split("-")[1]}var unsetSides={top:"auto",right:"auto",bottom:"auto",left:"auto"};function roundOffsetsByDPR(_ref){var x=_ref.x,y=_ref.y,win=window,dpr=win.devicePixelRatio||1;return{x:round(x*dpr)/dpr||0,y:round(y*dpr)/dpr||0}}function mapToStyles(_ref2){var _Object$assign2,popper2=_ref2.popper,popperRect=_ref2.popperRect,placement=_ref2.placement,variation=_ref2.variation,offsets=_ref2.offsets,position=_ref2.position,gpuAcceleration=_ref2.gpuAcceleration,adaptive=_ref2.adaptive,roundOffsets=_ref2.roundOffsets,isFixed=_ref2.isFixed,_offsets$x=offsets.x,x=_offsets$x===void 0?0:_offsets$x,_offsets$y=offsets.y,y=_offsets$y===void 0?0:_offsets$y,_ref3=typeof roundOffsets=="function"?roundOffsets({x,y}):{x,y};x=_ref3.x,y=_ref3.y;var hasX=offsets.hasOwnProperty("x"),hasY=offsets.hasOwnProperty("y"),sideX=left,sideY=top,win=window;if(adaptive){var offsetParent=getOffsetParent(popper2),heightProp="clientHeight",widthProp="clientWidth";if(offsetParent===getWindow(popper2)&&(offsetParent=getDocumentElement(popper2),getComputedStyle2(offsetParent).position!=="static"&&position==="absolute"&&(heightProp="scrollHeight",widthProp="scrollWidth")),offsetParent=offsetParent,placement===top||(placement===left||placement===right)&&variation===end){sideY=bottom;var offsetY=isFixed&&offsetParent===win&&win.visualViewport?win.visualViewport.height:offsetParent[heightProp];y-=offsetY-popperRect.height,y*=gpuAcceleration?1:-1}if(placement===left||(placement===top||placement===bottom)&&variation===end){sideX=right;var offsetX=isFixed&&offsetParent===win&&win.visualViewport?win.visualViewport.width:offsetParent[widthProp];x-=offsetX-popperRect.width,x*=gpuAcceleration?1:-1}}var commonStyles=Object.assign({position},adaptive&&unsetSides),_ref4=roundOffsets===!0?roundOffsetsByDPR({x,y}):{x,y};if(x=_ref4.x,y=_ref4.y,gpuAcceleration){var _Object$assign;return Object.assign({},commonStyles,(_Object$assign={},_Object$assign[sideY]=hasY?"0":"",_Object$assign[sideX]=hasX?"0":"",_Object$assign.transform=(win.devicePixelRatio||1)<=1?"translate("+x+"px, "+y+"px)":"translate3d("+x+"px, "+y+"px, 0)",_Object$assign))}return Object.assign({},commonStyles,(_Object$assign2={},_Object$assign2[sideY]=hasY?y+"px":"",_Object$assign2[sideX]=hasX?x+"px":"",_Object$assign2.transform="",_Object$assign2))}function computeStyles(_ref5){var state=_ref5.state,options=_ref5.options,_options$gpuAccelerat=options.gpuAcceleration,gpuAcceleration=_options$gpuAccelerat===void 0?!0:_options$gpuAccelerat,_options$adaptive=options.adaptive,adaptive=_options$adaptive===void 0?!0:_options$adaptive,_options$roundOffsets=options.roundOffsets,roundOffsets=_options$roundOffsets===void 0?!0:_options$roundOffsets,transitionProperty=getComputedStyle2(state.elements.popper).transitionProperty||"";adaptive&&["transform","top","right","bottom","left"].some(function(property){return transitionProperty.indexOf(property)>=0})&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',`
284
+ `),SUBRESOURCE_PATH_TO_FEATURE_NAME7=new Map([["memberships[]","assetMembership"],["appConfigs[]","assetAppConfig"],["appConfigs[].resources[]","assetAppConfigResource"],["libraryVersion","assetLibraryVersion"],["pageLinks[]","pageLink"],["resourceVariant","assetType"]]),SUBRESOURCE_PATHS7=[...SUBRESOURCE_PATH_TO_FEATURE_NAME7.keys()];function sortByOrder(a,b){return a.order!==void 0&&b.order!==void 0?a.order-b.order:0}var adapter16=createResourceAdapter({sortComparer:sortByOrder,subresourcePaths:SUBRESOURCE_PATHS7,mergeFn:updateResource}),initialState18=adapter16.getInitialState({allIdsForRoot:{},allLoadedForRoot:{},allLoadingForRoot:{},allRootsLoaded:!1,allRootsLoading:!1,allEnabledLoaded:!1,allEnabledLoading:!1,allLibrariesLoaded:!1,allLibrariesLoading:!1}),reducer15=createReducer(initialState18,on(reset12,()=>__spreadValues({},initialState18)),on(addSuccess9,didAdd12,(state,{data})=>data?adapter16.upsertOne(data,_updateAllIdsForRoot({added:[data]},state)):state),on(addLibrarySuccess,(state,{assetId,libraryAsset})=>adapter16.upsertOne({libraryAsset,publicId:assetId},state)),on(addInstanceListSuccess,(state,{data})=>data?adapter16.upsertMany(data,_updateAllIdsForRoot({added:data},state)):state),on(detachInstanceSuccess,(state,{publicId})=>adapter16.updateOne({id:publicId,changes:{libraryAsset:null}},state)),on(loadAll5,state=>__spreadProps(__spreadValues({},state),{allLoading:!0,allRootsLoading:!0,allEnabledLoading:!0,allLibrariesLoading:!0})),on(loadAllFailure5,state=>__spreadProps(__spreadValues({},state),{allLoading:!1,allRootsLoading:!1,allEnabledLoading:!1,allLibrariesLoading:!1})),on(loadAllSuccess6,(state,{data})=>adapter16.setAll(data,__spreadProps(__spreadValues({},state),{allLoading:!1,allLoaded:!0,allRootsLoading:!1,allRootsLoaded:!0,allEnabledLoading:!1,allEnabledLoaded:!0,allLibrariesLoading:!1,allLibrariesLoaded:!0}))),on(loadAllForRoot,(state,{rootId})=>__spreadProps(__spreadValues({},state),{allLoadingForRoot:__spreadProps(__spreadValues({},state.allLoadingForRoot),{[rootId]:!0})})),on(loadAllForRootFailure,(state,{rootId})=>__spreadProps(__spreadValues({},state),{allLoadingForRoot:__spreadProps(__spreadValues({},state.allLoadingForRoot),{[rootId]:!1})})),on(loadAllForRootSuccess,(state,{rootId,data})=>adapter16.upsertMany(data,__spreadProps(__spreadValues({},state),{allIdsForRoot:__spreadProps(__spreadValues({},state.allIdsForRoot),{[rootId]:data.map(asset=>asset.publicId)}),allLoadingForRoot:__spreadProps(__spreadValues({},state.allLoadingForRoot),{[rootId]:!1}),allLoadedForRoot:__spreadProps(__spreadValues({},state.allLoadedForRoot),{[rootId]:!0})}))),on(loadAllRoots,state=>__spreadProps(__spreadValues({},state),{allRootsLoading:!0})),on(loadAllRootsFailure,state=>__spreadProps(__spreadValues({},state),{allRootsLoading:!1})),on(loadAllRootsSuccess,(state,{data})=>adapter16.upsertMany(data,__spreadProps(__spreadValues({},state),{allRootsLoading:!1,allRootsLoaded:!0}))),on(loadAllEnabled,state=>__spreadProps(__spreadValues({},state),{allEnabledLoading:!0})),on(loadAllEnabledFailure,state=>__spreadProps(__spreadValues({},state),{allEnabledLoading:!1})),on(loadAllEnabledSuccess,(state,{data})=>adapter16.upsertMany(data,__spreadProps(__spreadValues({},state),{allEnabledLoading:!1,allEnabledLoaded:!0}))),on(loadAllLibraries,state=>__spreadProps(__spreadValues({},state),{allLibrariesLoading:!0})),on(loadAllLibrariesFailure,state=>__spreadProps(__spreadValues({},state),{allLibrariesLoading:!1})),on(loadAllLibrariesSuccess,(state,{data})=>adapter16.upsertMany(data,__spreadProps(__spreadValues({},state),{allLibrariesLoading:!1,allLibrariesLoaded:!0}))),on(loadOneSuccess2,(state,{data})=>adapter16.upsertOne(data,state)),on(removeLibrarySuccess,(state,{publicId})=>{let instances=Object.keys(state.entities).filter(id=>state.entities[id]?.libraryAsset?.publicId===publicId);return instances.length?adapter16.updateMany(instances.map(instanceId=>({id:instanceId,changes:{libraryAsset:null}})),adapter16.removeOne(publicId,state)):adapter16.removeOne(publicId,state)}),on(removeSuccess9,didRemove12,(state,{publicId})=>adapter16.removeOne(publicId,_updateAllIdsForRoot({removed:[publicId]},state))),on(updateSuccess9,didUpdate11,(state,{data,publicId})=>adapter16.updateOne({id:publicId,changes:data},state)),on(removeSuccess2,didRemove2,(state,{publicId})=>{let assetId=Object.keys(state.entities).find(id=>state.entities[id]?.agent?.publicId===publicId);return assetId?adapter16.updateOne({id:assetId,changes:{agent:null}},state):state}),on(didAdd49,(state,{data})=>{let assetId=data.asset?.publicId;return assetId?adapter16.mutate(assetId,"memberships",state).upsertOne(data.publicId):state}),on(addListSuccess9,(state,{data})=>data.reduce((newState,membership)=>{let assetId=membership.asset?.publicId;return assetId?adapter16.mutate(assetId,"memberships",newState).upsertOne(membership.publicId):newState},state)),on(didRemove46,(state,{publicId})=>{let assetId=Object.keys(state.entities).find(id=>state.entities[id]?.memberships?.some(membership=>membership.publicId===publicId));return assetId?adapter16.mutate(assetId,"memberships",state).removeOne(publicId):state}),on(removeListSuccess10,(state,{publicIdList})=>publicIdList.reduce((newState,publicId)=>{let assetId=Object.keys(state.entities).find(id=>newState.entities[id]?.memberships?.some(membership=>membership.publicId===publicId));return assetId?adapter16.mutate(assetId,"memberships",newState).removeOne(publicId):newState},state)),on(addSuccess33,(state,{assetId})=>adapter16.updateOne({id:assetId,changes:{hasChanges:!1}},state)),on(addSuccess11,didAdd14,(state,{data,publicId})=>{let assetId=data?.asset?.publicId;return assetId?adapter16.mutate(assetId,"pageLinks",state).upsertOne(publicId):state}),on(removeSuccess11,didRemove14,(state,{publicId})=>{let assetId=Object.keys(state.entities).find(id=>state.entities[id]?.pageLinks?.some(link=>link.publicId===publicId));return assetId?adapter16.mutate(assetId,"pageLinks",state).removeOne(publicId):state}),on(updateSuccess32,didAdd46,(state,{data})=>{let assetId=data?.asset?.publicId;return assetId?adapter16.mutate(assetId,"appConfigs",state).upsertOne(data.publicId):state}),on(didRemove43,(state,{publicId})=>{let assetId=Object.keys(state.entities).find(id=>state.entities[id]?.appConfigs?.some(appConfig=>appConfig.publicId===publicId));return assetId?adapter16.mutate(assetId,"appConfigs",state).removeOne(publicId):state})),feature15=createFeature({name:FEATURE_NAME18,reducer:reducer15});function _updateAllIdsForRoot(changes,state){return __spreadProps(__spreadValues({},state),{allIdsForRoot:Object.keys(state.allIdsForRoot).reduce((acc,rootId)=>(changes.added?.length&&(acc=changes.added.reduce((_acc,asset)=>asset.parent&&_acc[rootId].includes(asset.parent.publicId)?__spreadProps(__spreadValues({},_acc),{[rootId]:[..._acc[rootId],asset.publicId]}):_acc,acc)),changes.removed?.length&&(changes.removed.includes(rootId)?acc=omitBy_default(acc,(_,id)=>id===rootId):acc[rootId].some(id=>changes.removed?.includes(id))&&(acc=__spreadProps(__spreadValues({},acc),{[rootId]:acc[rootId].filter(id=>!changes.removed?.includes(id))}))),acc),state.allIdsForRoot)})}var selectAll16=createSelector(feature15.selectAssetState,adapter16.getSelectors().selectAll),selectAllRoots=createSelector(selectAll16,all=>all.filter(asset=>asset.parent===null&&!asset.isLibraryAsset)),selectAllForRoot=rootId=>createSelector(feature15.selectAssetState,state=>{let ids=[rootId,...state.allIdsForRoot[rootId]||[]];return state.ids.filter(id=>ids.includes(id)).map(id=>state.entities[id])}),selectAllLoadingForRoot=rootId=>createSelector(feature15.selectAssetState,state=>!!state.allLoadingForRoot[rootId]),selectAllLoadedForRoot=rootId=>createSelector(feature15.selectAssetState,state=>!!state.allLoadedForRoot[rootId]),selectAllEnabled=createSelector(selectAll16,all=>all.filter(asset=>!!asset.enabled&&!asset.isLibraryAsset)),selectAllLibraries=createSelector(selectAll16,all=>all.filter(asset=>!!asset.isLibraryAsset&&asset.parent===null)),selectEntity7=publicId=>createSelector(feature15.selectEntities,entities=>publicId&&entities[publicId]||null);var selectEntityWithFields3=publicId=>createResourceSelectorFactory(selectEntity7(publicId),SUBRESOURCE_PATH_TO_FEATURE_NAME7);var{selectAllLoading:selectAllLoading11,selectAllLoaded:selectAllLoaded11,selectAllRootsLoading,selectAllRootsLoaded,selectAllEnabledLoaded,selectAllEnabledLoading,selectAllLibrariesLoaded,selectAllLibrariesLoading,selectEntities:selectEntities16}=feature15;var AssetService=(()=>{let _AssetService=class _AssetService{constructor(api,http){this.api=api,this.http=http}add(body){let url=this.api.url("AssetList"),context3=new HttpContext().set(REQUIRES_COMPANY,!0),headers=this.api.headers,options={context:context3,headers};return this.http.post(url,body,options)}addLibrary(publicId){let url=this.api.url("AssetLibrary",{publicId}),context3=new HttpContext().set(REQUIRES_COMPANY,!0),headers=this.api.headers,options={context:context3,headers};return this.http.post(url,null,options)}addInstanceList(body){let url=this.api.url("AssetLibraryInstanceList"),context3=new HttpContext().set(REQUIRES_COMPANY,!0),headers=this.api.headers,options={context:context3,headers};return this.http.post(url,body,options)}detachInstance(publicId){let url=this.api.url("AssetLibraryInstanceDetach",{publicId}),context3=new HttpContext().set(REQUIRES_COMPANY,!0),headers=this.api.headers,body={},options={context:context3,headers};return this.http.patch(url,body,options)}getAll(fields,filters){return whileMoreAfter(moreAfter=>this.getList(fields,filters,moreAfter))}getAllChildren(publicId,fields){return this.getAll(fields,[`eq(parent.publicId,"${publicId}")`])}getAllDescendants(publicId,fields){return whileMoreAfter(moreAfter=>this.getDescendantList(publicId,fields,moreAfter))}getAllForRoot(rootId,fields){return forkJoin([this.getByPublicId(rootId,fields),this.getAllDescendants(rootId,fields)]).pipe(map(responses=>({data:[responses[0].data,...responses[1].data],moreAfter:null,status:"success",type:"Asset"})))}getAllRoots(fields){return this.getAll(fields,["isnull(parent)",'eq(isLibraryAsset,"false")'])}getAllLibraries(fields){return this.getAll(fields,['eq(isLibraryAsset,"true")'])}getAllEnabled(fields){return this.getAll(fields,["enabled"])}getByPublicId(publicId,fields){let url=this.api.url("Asset",{publicId}),context3=new HttpContext().set(REQUIRES_COMPANY,!0),headers=this.api.headers,params=new HttpParams({fromObject:{fields:fields.join(",")}}),options={context:context3,headers,params};return this.http.get(url,options)}getDescendantList(publicId,fields,pageAfter,pageSize){let url=this.api.url("AssetDescendantList",{publicId}),context3=new HttpContext().set(REQUIRES_COMPANY,!0),params=new HttpParams({fromObject:__spreadValues({fields:fields.join(",")},getPageParams(pageAfter,pageSize))}),headers=this.api.headers,options={context:context3,headers,params};return this.http.get(url,options)}getList(fields,filters,pageAfter,pageSize){let url=this.api.url("AssetList"),context3=new HttpContext().set(REQUIRES_COMPANY,!0),params=new HttpParams({fromObject:__spreadValues(__spreadValues({fields:fields.join(",")},filters?{filters}:{}),getPageParams(pageAfter,pageSize))}),headers=this.api.headers,options={context:context3,headers,params};return this.http.get(url,options)}removeByPublicId(publicId){let url=this.api.url("Asset",{publicId}),context3=new HttpContext().set(REQUIRES_COMPANY,!0),headers=this.api.headers,options={context:context3,headers};return this.http.delete(url,options)}removeLibrary(publicId){let url=this.api.url("AssetLibrary",{publicId}),context3=new HttpContext().set(REQUIRES_COMPANY,!0),headers=this.api.headers,options={context:context3,headers};return this.http.delete(url,options)}updateByPublicId(publicId,body){let url=this.api.url("Asset",{publicId}),context3=new HttpContext().set(REQUIRES_COMPANY,!0),headers=this.api.headers,options={context:context3,headers};return this.http.patch(url,body,options)}updateInstance(publicId){let url=this.api.url("AssetLibraryInstanceList"),context3=new HttpContext().set(REQUIRES_COMPANY,!0),headers=this.api.headers,options={context:context3,headers};return this.http.patch(url,[{instance:{publicId}}],options)}getRendered(publicId){let url=this.api.url("AssetRender",{publicId}),context3=new HttpContext().set(REQUIRES_COMPANY,!0),headers=this.api.headers,options={context:context3,headers};return this.http.get(url,options)}};_AssetService.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_AssetService)(\u0275\u0275inject(IxApiService),\u0275\u0275inject(HttpClient))},_AssetService.\u0275prov=\u0275\u0275defineInjectable({token:_AssetService,factory:_AssetService.\u0275fac,providedIn:"root"});let AssetService2=_AssetService;return AssetService2})();var AssetEffects=(()=>{let _AssetEffects=class _AssetEffects{constructor(actions$,store,service){this.actions$=actions$,this.store=store,this.service=service,this.add$=createEffect(()=>this.actions$.pipe(ofType(add9),mergeMap(({data})=>this.service.add(data).pipe(map(response=>addSuccess9({data:__spreadValues(__spreadValues({},response.data),data)})),catchError(errorResponse=>of(addFailure9({errors:errorResponse.error?.data??[]}))))))),this.addLibrary$=createEffect(()=>this.actions$.pipe(ofType(addLibrary),mergeMap(({assetId})=>this.service.addLibrary(assetId).pipe(map(({data})=>addLibrarySuccess({assetId,libraryAsset:data})),catchError(errorResponse=>of(addLibraryFailure({errors:errorResponse.error?.data??[]}))))))),this.addInstanceList$=createEffect(()=>this.actions$.pipe(ofType(addInstanceList),mergeMap(({data})=>this.service.addInstanceList(data.reduce((instanceCreateList,instanceCreate)=>{if(instanceCreate.libraryVersion.library){let assetInstanceCreate={parent:instanceCreate.parent,order:instanceCreate.order,libraryAsset:{publicId:instanceCreate.libraryVersion.library.publicId}};return[...instanceCreateList,assetInstanceCreate]}return instanceCreateList},[])).pipe(map(response=>addInstanceListSuccess({data:response.data.map((instance,index)=>({order:data[index].order,name:data[index].libraryVersion.name,publicId:instance.publicId,parent:{publicId:data[index].parent.publicId},libraryAsset:data[index].libraryVersion.library,libraryVersion:{publicId:data[index].libraryVersion.publicId},isLibraryAsset:!1}))})),catchError(errorResponse=>of(addInstanceListFailure({errors:errorResponse.error?.data??[]}))))))),this.detachInstance$=createEffect(()=>this.actions$.pipe(ofType(detachInstance),mergeMap(({publicId})=>this.service.detachInstance(publicId).pipe(map(()=>detachInstanceSuccess({publicId})),catchError(errorResponse=>of(detachInstanceFailure({errors:errorResponse.error?.data??[]}))))))),this.ensureAll$=createEffect(()=>this.actions$.pipe(ofType(ensureAll5),mergeMap(()=>combineLatest([this.store.select(selectAllLoading11),this.store.select(selectAllLoaded11)]).pipe(take(1),mergeMap(([loading,loaded])=>!loading&&!loaded?of(loadAll5()):EMPTY))))),this.ensureAllForRoot$=createEffect(()=>this.actions$.pipe(ofType(ensureAllForRoot),mergeMap(({rootId})=>combineLatest([this.store.select(selectAllLoadingForRoot(rootId)),this.store.select(selectAllLoadedForRoot(rootId))]).pipe(take(1),mergeMap(([loading,loaded])=>!loading&&!loaded?of(loadAllForRoot({rootId})):EMPTY))))),this.ensureAllRoots$=createEffect(()=>this.actions$.pipe(ofType(ensureAllRoots),mergeMap(()=>combineLatest([this.store.select(selectAllRootsLoading),this.store.select(selectAllRootsLoaded)]).pipe(take(1),mergeMap(([loading,loaded])=>!loading&&!loaded?of(loadAllRoots()):EMPTY))))),this.ensureAllEnabled$=createEffect(()=>this.actions$.pipe(ofType(ensureAllEnabled),mergeMap(()=>combineLatest([this.store.select(selectAllEnabledLoading),this.store.select(selectAllEnabledLoaded)]).pipe(take(1),mergeMap(([loading,loaded])=>!loading&&!loaded?of(loadAllEnabled()):EMPTY))))),this.ensureAllLibraries$=createEffect(()=>this.actions$.pipe(ofType(ensureAllLibraries),mergeMap(()=>combineLatest([this.store.select(selectAllLibrariesLoading),this.store.select(selectAllLibrariesLoaded)]).pipe(take(1),mergeMap(([loading,loaded])=>!loading&&!loaded?of(loadAllLibraries()):EMPTY))))),this.ensureOne$=createEffect(()=>this.actions$.pipe(ofType(ensureOne2),mergeMap(({publicId})=>this.store.select(selectEntity7(publicId)).pipe(take(1),mergeMap(asset=>asset?EMPTY:of(loadOne2({publicId}))))))),this.loadAll$=createEffect(()=>this.actions$.pipe(ofType(loadAll5),switchMap(()=>this.service.getAll(ASSET_FIELDS).pipe(map(({data})=>loadAllSuccess6({data})),catchError(errorResponse=>of(loadAllFailure5({errors:errorResponse.error?.data??[]}))))))),this.loadAllEnabled$=createEffect(()=>this.actions$.pipe(ofType(loadAllEnabled),switchMap(()=>this.service.getAllEnabled(ASSET_FIELDS).pipe(map(({data})=>loadAllEnabledSuccess({data})),catchError(errorResponse=>of(loadAllEnabledFailure({errors:errorResponse.error?.data??[]}))))))),this.loadAllLibraries$=createEffect(()=>this.actions$.pipe(ofType(loadAllLibraries),switchMap(()=>this.service.getAllLibraries(ASSET_FIELDS).pipe(map(({data})=>loadAllLibrariesSuccess({data})),catchError(errorResponse=>of(loadAllLibrariesFailure({errors:errorResponse.error?.data??[]}))))))),this.loadAllForRoot$=createEffect(()=>this.actions$.pipe(ofType(loadAllForRoot),switchMap(({rootId})=>this.service.getAllForRoot(rootId,ASSET_FIELDS).pipe(map(({data})=>loadAllForRootSuccess({rootId,data})),catchError(errorResponse=>of(loadAllForRootFailure({rootId,errors:errorResponse.error?.data??[]}))))))),this.loadAllRoots$=createEffect(()=>this.actions$.pipe(ofType(loadAllRoots),switchMap(()=>this.service.getAllRoots(ASSET_FIELDS).pipe(map(({data})=>loadAllRootsSuccess({data})),catchError(errorResponse=>of(loadAllRootsFailure({errors:errorResponse.error?.data??[]}))))))),this.loadOne$=createEffect(()=>this.actions$.pipe(ofType(loadOne2),switchMap(({publicId})=>this.service.getByPublicId(publicId,ASSET_FIELDS).pipe(map(({data})=>loadOneSuccess2({data,publicId})),catchError(errorResponse=>of(loadOneFailure2({errors:errorResponse.error?.data??[],publicId}))))))),this.remove$=createEffect(()=>this.actions$.pipe(ofType(remove9),mergeMap(({publicId})=>this.service.removeByPublicId(publicId).pipe(map(()=>removeSuccess9({publicId})),catchError(errorResponse=>of(removeFailure9({errors:errorResponse.error?.data??[],publicId}))))))),this.removeLibrary$=createEffect(()=>this.actions$.pipe(ofType(removeLibrary),mergeMap(({publicId})=>this.service.removeLibrary(publicId).pipe(map(()=>removeLibrarySuccess({publicId})),catchError(errorResponse=>of(removeLibraryFailure({errors:errorResponse.error?.data??[],publicId}))))))),this.update$=createEffect(()=>this.actions$.pipe(ofType(update9),mergeMap(({publicId,data})=>this.service.updateByPublicId(publicId,data).pipe(map(()=>updateSuccess9({data:__spreadProps(__spreadValues({},data),{publicId}),publicId})),catchError(errorResponse=>of(updateFailure9({errors:errorResponse.error?.data??[]}))))))),this.updateInstance$=createEffect(()=>this.actions$.pipe(ofType(updateInstance),mergeMap(({publicId})=>this.service.updateInstance(publicId).pipe(map(()=>updateInstanceSuccess({publicId})),catchError(errorResponse=>of(updateInstanceFailure({errors:errorResponse.error?.data??[]}))))))),this.didLinkAgent$=createEffect(()=>this.actions$.pipe(ofType(didUpdate11),filter(({data})=>!!data.agent?.publicId),map(({publicId})=>loadOne2({publicId}))))}};_AssetEffects.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_AssetEffects)(\u0275\u0275inject(Actions),\u0275\u0275inject(Store),\u0275\u0275inject(AssetService))},_AssetEffects.\u0275prov=\u0275\u0275defineInjectable({token:_AssetEffects,factory:_AssetEffects.\u0275fac,providedIn:"root"});let AssetEffects2=_AssetEffects;return AssetEffects2})();var AssetModule=(()=>{let _AssetModule=class _AssetModule{};_AssetModule.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_AssetModule)},_AssetModule.\u0275mod=\u0275\u0275defineNgModule({type:_AssetModule}),_AssetModule.\u0275inj=\u0275\u0275defineInjector({providers:[provideHttpClient(withInterceptorsFromDi())],imports:[IxApiModule,StoreModule.forFeature(feature15),EffectsModule.forFeature([AssetEffects])]});let AssetModule2=_AssetModule;return AssetModule2})();var FEATURE_NAME19="pageLink",SUBRESOURCE_PATH_TO_FEATURE_NAME8=new Map([["audience","audience"],["group","pageLinkGroup"]]),SUBRESOURCE_PATHS8=[...SUBRESOURCE_PATH_TO_FEATURE_NAME8.keys()];function getContextResLinkPath(contextType){return contextType.replace(/Like$/,"").toLowerCase()}function mapActionTypeToContextResLinkPath(type){return getContextResLinkPath(mapActionTypeToContextType(type))}function mapActionTypeToContextType(type){return type.includes("Asset")?"Asset":"AgentLike"}var adapter17=createResourceAdapter({subresourcePaths:SUBRESOURCE_PATHS8}),initialState19=adapter17.getInitialState(),reducer16=createReducer(initialState19,on(reset14,()=>__spreadValues({},initialState19)),on(addSuccess11,didAdd14,(state,{data})=>data?adapter17.upsertOne(data,state):state),on(removeSuccess11,didRemove14,(state,{publicId})=>adapter17.removeOne(publicId,state)),on(updateSuccess11,didUpdate13,(state,{data,publicId})=>adapter17.updateOne({id:publicId,changes:data},state)),on(updateManySuccess3,(state,{data})=>adapter17.upsertMany(data,state)),on(removeSuccess47,(state,{publicId,deletePageLinks})=>{let publicIds=Object.keys(state.entities).reduce((ids,id)=>state.entities[id]?.group?.publicId===publicId?[...ids,id]:ids,[]);return deletePageLinks?adapter17.removeMany(publicIds,state):adapter17.updateMany(publicIds.map(id=>({id,changes:{group:null}})),state)}),on(loadAllSuccess2,loadAllActiveSuccess,loadAllSuccess8,loadAllSuccess6,loadAllEnabledSuccess,loadAllForRootSuccess,loadAllLibrariesSuccess,loadAllRootsSuccess,(state,{type,data})=>data[0]?.pageLinks?adapter17.upsertMany(flatMap_default(data.map(entity=>mapResourceToSubResourceList(entity,"pageLinks",mapActionTypeToContextResLinkPath(type),mapActionTypeToContextType(type)))),state):state),on(loadOneSuccess,didAdd2,loadOneSuccess3,didAdd15,loadOneSuccess2,didAdd12,(state,{type,data})=>data?.pageLinks?adapter17.upsertMany(mapResourceToSubResourceList(data,"pageLinks",mapActionTypeToContextResLinkPath(type),mapActionTypeToContextType(type)),state):state),on(removeSuccess2,didRemove2,removeSuccess12,didRemove15,removeSuccess9,didRemove12,(state,{type,publicId})=>{let resLinkPath=mapActionTypeToContextResLinkPath(type),publicIdList=Object.keys(state.entities).reduce((ids,id)=>state.entities[id]?.[resLinkPath]?.publicId===publicId?[...ids,id]:ids,[]);return publicIdList.length?adapter17.removeMany(publicIdList,state):state}),on(didUpdate2,didUpdate11,(state,{type,data})=>{if(data?.pageLinks){let resLinkPath=mapActionTypeToContextResLinkPath(type),pageLinks=mapResourceToSubResourceList(data,"pageLinks",resLinkPath,mapActionTypeToContextType(type)),pageLinkIds=data.pageLinks.map(pageLink=>pageLink.publicId);return adapter17.upsertMany(pageLinks,adapter17.removeMany(Object.keys(state.entities).reduce((ids,id)=>state.entities[id]?.[resLinkPath]?.publicId===data.publicId&&!pageLinkIds.includes(id)?[...ids,id]:ids,[]),state))}return state})),feature16=createFeature({name:FEATURE_NAME19,reducer:reducer16});var selectAll17=createSelector(feature16.selectPageLinkState,adapter17.getSelectors().selectAll);var selectEntities17=feature16.selectEntities;var RoleService=(()=>{let _RoleService=class _RoleService{constructor(api,http){this.api=api,this.http=http}add(body){let url=this.api.url("RoleList"),context3=new HttpContext().set(REQUIRES_COMPANY,!0),headers=this.api.headers,options={context:context3,headers};return this.http.post(url,body,options)}getAll(){return whileMoreAfter(moreAfter=>this.getList(moreAfter))}getList(pageAfter,pageSize){let url=this.api.url("RoleList"),context3=new HttpContext().set(REQUIRES_COMPANY,!0),headers=this.api.headers,params=new HttpParams({fromObject:__spreadValues({fields:"audiences(publicId),enforce2fa,enforceSso,name,permissions"},getPageParams(pageAfter,pageSize))}),options={context:context3,headers,params};return this.http.get(url,options)}removeByPublicId(publicId){let url=this.api.url("Role",{publicId}),context3=new HttpContext().set(REQUIRES_COMPANY,!0),headers=this.api.headers,options={context:context3,headers};return this.http.delete(url,options)}updateByPublicId(publicId,body){let url=this.api.url("Role",{publicId}),context3=new HttpContext().set(REQUIRES_COMPANY,!0),headers=this.api.headers,options={context:context3,headers},_a=body,{permissions,audiences}=_a,roleData=__objRest(_a,["permissions","audiences"]);return delete roleData.publicId,forkJoin([roleData.name||roleData.enforce2fa?this.http.patch(url,__spreadValues({},roleData),options):of({data:null}),permissions?this.http.put(this.api.url("RolePermissionList",{publicId}),permissions,options):of({data:null}),audiences?this.http.put(this.api.url("RoleAudienceList",{publicId}),audiences,options):of({data:null})]).pipe(map(responses=>responses[0]))}};_RoleService.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_RoleService)(\u0275\u0275inject(IxApiService),\u0275\u0275inject(HttpClient))},_RoleService.\u0275prov=\u0275\u0275defineInjectable({token:_RoleService,factory:_RoleService.\u0275fac,providedIn:"root"});let RoleService2=_RoleService;return RoleService2})();var RoleEffects=(()=>{let _RoleEffects=class _RoleEffects{constructor(actions$,store,snackBar,service){this.actions$=actions$,this.store=store,this.snackBar=snackBar,this.service=service,this.add$=createEffect(()=>this.actions$.pipe(ofType(add15),mergeMap(({data})=>this.service.add(data).pipe(map(response=>addSuccess15({data:__spreadValues(__spreadValues({},response.data),data)})),catchError(errorResponse=>of(addFailure15({errors:errorResponse.error?.data??[]}))))))),this.ensureAll$=createEffect(()=>this.actions$.pipe(ofType(ensureAll10),mergeMap(()=>combineLatest([this.store.select(selectAllLoading6),this.store.select(selectAllLoaded6)]).pipe(take(1),mergeMap(([loading,loaded])=>!loading&&!loaded?of(loadAll10()):EMPTY))))),this.loadAll$=createEffect(()=>this.actions$.pipe(ofType(loadAll10),switchMap(()=>this.service.getAll().pipe(map(({data})=>loadAllSuccess11({data})),catchError(errorResponse=>of(loadAllFailure10({errors:errorResponse.error?.data??[]}))))))),this.remove$=createEffect(()=>this.actions$.pipe(ofType(remove16),mergeMap(({publicId})=>this.service.removeByPublicId(publicId).pipe(map(()=>removeSuccess16({publicId})),catchError(errorResponse=>of(removeFailure16({errors:errorResponse.error?.data??[]}))))))),this.removeFailure$=createEffect(()=>this.actions$.pipe(ofType(removeFailure16),tap(({errors:errors2})=>{let message=errors2?.[0]?.message;message&&this.snackBar.open(message,void 0,{duration:3e3})})),{dispatch:!1}),this.update$=createEffect(()=>this.actions$.pipe(ofType(update14),mergeMap(({data,publicId})=>this.service.updateByPublicId(publicId,data).pipe(map(()=>updateSuccess14({data:__spreadProps(__spreadValues({},data),{publicId}),publicId})),catchError(errorResponse=>of(updateFailure14({errors:errorResponse.error?.data??[]})))))))}};_RoleEffects.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_RoleEffects)(\u0275\u0275inject(Actions),\u0275\u0275inject(Store),\u0275\u0275inject(MatSnackBar),\u0275\u0275inject(RoleService))},_RoleEffects.\u0275prov=\u0275\u0275defineInjectable({token:_RoleEffects,factory:_RoleEffects.\u0275fac,providedIn:"root"});let RoleEffects2=_RoleEffects;return RoleEffects2})();var RoleModule=(()=>{let _RoleModule=class _RoleModule{};_RoleModule.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_RoleModule)},_RoleModule.\u0275mod=\u0275\u0275defineNgModule({type:_RoleModule}),_RoleModule.\u0275inj=\u0275\u0275defineInjector({providers:[provideHttpClient(withInterceptorsFromDi())],imports:[MatSnackBarModule,IxApiModule,StoreModule.forFeature(feature6),EffectsModule.forFeature([RoleEffects])]});let RoleModule2=_RoleModule;return RoleModule2})();function toValue(observable){let value;return observable.pipe(take(1)).subscribe(v=>value=v),value}var _c02=a0=>({destructive:a0});function ActionBottomSheetComponent_For_2_Template(rf,ctx){if(rf&1){let _r1=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"mat-list-item",1),\u0275\u0275listener("click",function(){let \u0275$index_3_r2=\u0275\u0275restoreView(_r1).$index,ctx_r2=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r2.ref.dismiss({index:\u0275$index_3_r2}))}),\u0275\u0275elementStart(1,"span",2),\u0275\u0275text(2),\u0275\u0275elementEnd()()}if(rf&2){let action_r4=ctx.$implicit;\u0275\u0275property("ngClass",\u0275\u0275pureFunction1(2,_c02,action_r4.destructive)),\u0275\u0275advance(2),\u0275\u0275textInterpolate(action_r4.title)}}var ActionBottomSheetComponent=(()=>{let _ActionBottomSheetComponent=class _ActionBottomSheetComponent{constructor(){this.options=inject(MAT_BOTTOM_SHEET_DATA),this.ref=inject(MatBottomSheetRef)}};_ActionBottomSheetComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_ActionBottomSheetComponent)},_ActionBottomSheetComponent.\u0275cmp=\u0275\u0275defineComponent({type:_ActionBottomSheetComponent,selectors:[["ix-action-bottom-sheet"]],decls:3,vars:0,consts:[[3,"ngClass"],[3,"click","ngClass"],["matListItemTitle",""]],template:function(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"mat-action-list"),\u0275\u0275repeaterCreate(1,ActionBottomSheetComponent_For_2_Template,3,4,"mat-list-item",0,\u0275\u0275repeaterTrackByIdentity),\u0275\u0275elementEnd()),rf&2&&(\u0275\u0275advance(),\u0275\u0275repeater(ctx.options.actions))},dependencies:[NgClass,MatListModule,MatActionList,MatListItem,MatListItemTitle],styles:["[_nghost-%COMP%] .destructive[_ngcontent-%COMP%]{--mdc-list-list-item-label-text-color: var(--warn);--mdc-list-list-item-hover-label-text-color: var(--warn);--mdc-list-list-item-focus-label-text-color: var(--warn)}"]});let ActionBottomSheetComponent2=_ActionBottomSheetComponent;return ActionBottomSheetComponent2})();function AlertDialogComponent_Conditional_0_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"h2",0),\u0275\u0275text(1),\u0275\u0275elementEnd()),rf&2){let ctx_r0=\u0275\u0275nextContext();\u0275\u0275advance(),\u0275\u0275textInterpolate(ctx_r0.options.title)}}var AlertDialogComponent=(()=>{let _AlertDialogComponent=class _AlertDialogComponent{constructor(){this.options=inject(MAT_DIALOG_DATA)}};_AlertDialogComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_AlertDialogComponent)},_AlertDialogComponent.\u0275cmp=\u0275\u0275defineComponent({type:_AlertDialogComponent,selectors:[["ix-alert-dialog"]],decls:7,vars:4,consts:[["mat-dialog-title","","data-testid","alert-dialog-title"],[1,"mat-body-medium"],["data-testid","alert-dialog-message"],["align","end"],["mat-button","","data-testid","alert-dialog-button",3,"mat-dialog-close"]],template:function(rf,ctx){if(rf&1&&(\u0275\u0275template(0,AlertDialogComponent_Conditional_0_Template,2,1,"h2",0),\u0275\u0275elementStart(1,"mat-dialog-content",1)(2,"p",2),\u0275\u0275text(3),\u0275\u0275elementEnd()(),\u0275\u0275elementStart(4,"mat-dialog-actions",3)(5,"button",4),\u0275\u0275text(6),\u0275\u0275elementEnd()()),rf&2){let tmp_3_0;\u0275\u0275conditional(ctx.options.title?0:-1),\u0275\u0275advance(3),\u0275\u0275textInterpolate(ctx.options.message),\u0275\u0275advance(2),\u0275\u0275property("mat-dialog-close",!0),\u0275\u0275advance(),\u0275\u0275textInterpolate1(" ",(tmp_3_0=ctx.options.buttonText)!==null&&tmp_3_0!==void 0?tmp_3_0:"OK"," ")}},dependencies:[TranslateModule,MatDialogModule,MatDialogClose,MatDialogTitle,MatDialogActions,MatDialogContent,MatButtonModule,MatButton],styles:["[_nghost-%COMP%]{width:100dvw;height:100dvh;display:flex;flex-direction:column;flex:1}@media (min-width: 960px){[_nghost-%COMP%]{height:auto;width:auto;min-width:528px;max-width:528px}}[_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%]{padding:calc(env(safe-area-inset-top,0) + 16px) 24px 16px}[_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%] .mat-toolbar{height:48px;padding-left:0;padding-right:0}[_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%] .mat-toolbar .mdc-dialog__title{--mat-dialog-headline-padding: 0;color:inherit}[_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%] .mat-toolbar .mdc-dialog__title:before{display:none}[_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%] + .ix-dialog__content[_ngcontent-%COMP%], [_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%] + .mdc-dialog__content[_ngcontent-%COMP%]{padding-top:0}[_nghost-%COMP%] .mdc-dialog__title[_ngcontent-%COMP%]:before{height:calc(env(safe-area-inset-top,0) + 40px)}[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%]{padding:20px 24px}[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%] > .ix-list[_ngcontent-%COMP%]{margin-left:-24px;margin-right:-24px}[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%], [_nghost-%COMP%] .mdc-dialog__content[_ngcontent-%COMP%]{flex-direction:column;box-sizing:border-box;display:flex;place-content:stretch flex-start;align-items:stretch;flex:1 1 auto;max-height:none;overflow:auto;-webkit-overflow-scrolling:touch}[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%] > .mat-mdc-subheader[_ngcontent-%COMP%], [_nghost-%COMP%] .mdc-dialog__content[_ngcontent-%COMP%] > .mat-mdc-subheader[_ngcontent-%COMP%]{margin-left:0;margin-right:0}@media (min-width: 960px){[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%], [_nghost-%COMP%] .mdc-dialog__content[_ngcontent-%COMP%]{max-height:calc(90dvh - 140px)}[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%]:has(+.mdc-dialog__actions), [_nghost-%COMP%] .mdc-dialog__content[_ngcontent-%COMP%]:has(+.mdc-dialog__actions){padding-bottom:0}}@media (min-width: 960px){[_nghost-%COMP%] .ix-dialog__banner[_ngcontent-%COMP%] + .ix-dialog__content[_ngcontent-%COMP%]{max-height:calc(90dvh - 225px)}}@media (max-width: 959.9px){[_nghost-%COMP%] .mdc-dialog__actions[_ngcontent-%COMP%]{border-top:1px solid rgba(0,0,0,.12);padding-bottom:calc(16px + env(safe-area-inset-bottom,0))}}[_nghost-%COMP%] form[_ngcontent-%COMP%]{flex-direction:column;box-sizing:border-box;display:flex;flex:1 1 auto;height:inherit}[_nghost-%COMP%] form[_ngcontent-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%]{margin-bottom:1rem}[_nghost-%COMP%] .mdc-dialog__content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{white-space:pre-wrap}"]});let AlertDialogComponent3=_AlertDialogComponent;return AlertDialogComponent3})();function ConfirmDialogComponent_Conditional_0_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"h2",0),\u0275\u0275text(1),\u0275\u0275elementEnd()),rf&2){let ctx_r0=\u0275\u0275nextContext();\u0275\u0275advance(),\u0275\u0275textInterpolate(ctx_r0.options.title)}}function ConfirmDialogComponent_Conditional_4_Template(rf,ctx){if(rf&1){let _r2=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"mat-checkbox",7),\u0275\u0275twoWayListener("ngModelChange",function($event){\u0275\u0275restoreView(_r2);let ctx_r0=\u0275\u0275nextContext();return \u0275\u0275twoWayBindingSet(ctx_r0.checked,$event)||(ctx_r0.checked=$event),\u0275\u0275resetView($event)}),\u0275\u0275text(1),\u0275\u0275pipe(2,"translate"),\u0275\u0275elementEnd()}if(rf&2){let tmp_2_0,ctx_r0=\u0275\u0275nextContext();\u0275\u0275twoWayProperty("ngModel",ctx_r0.checked),\u0275\u0275advance(),\u0275\u0275textInterpolate1(" ",\u0275\u0275pipeBind1(2,2,(tmp_2_0=ctx_r0.options.confirmCheckboxText)!==null&&tmp_2_0!==void 0?tmp_2_0:"I_AM_SURE")," ")}}var ConfirmDialogComponent=(()=>{let _ConfirmDialogComponent=class _ConfirmDialogComponent{constructor(){this.options=inject(MAT_DIALOG_DATA),this.checked=!1}};_ConfirmDialogComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_ConfirmDialogComponent)},_ConfirmDialogComponent.\u0275cmp=\u0275\u0275defineComponent({type:_ConfirmDialogComponent,selectors:[["ix-confirm-dialog"]],decls:12,vars:12,consts:[["mat-dialog-title","","data-testid","confirm-dialog-title"],[1,"mat-body-medium"],["data-testid","confirm-dialog-message"],[3,"ngModel"],["align","end"],["mat-button","",3,"mat-dialog-close"],["mat-button","","data-testid","confirm-dialog-confirm-button",3,"mat-dialog-close","disabled"],[3,"ngModelChange","ngModel"]],template:function(rf,ctx){if(rf&1&&(\u0275\u0275template(0,ConfirmDialogComponent_Conditional_0_Template,2,1,"h2",0),\u0275\u0275elementStart(1,"mat-dialog-content",1)(2,"p",2),\u0275\u0275text(3),\u0275\u0275elementEnd(),\u0275\u0275template(4,ConfirmDialogComponent_Conditional_4_Template,3,4,"mat-checkbox",3),\u0275\u0275elementEnd(),\u0275\u0275elementStart(5,"mat-dialog-actions",4)(6,"button",5),\u0275\u0275text(7),\u0275\u0275pipe(8,"translate"),\u0275\u0275elementEnd(),\u0275\u0275elementStart(9,"button",6),\u0275\u0275text(10),\u0275\u0275pipe(11,"translate"),\u0275\u0275elementEnd()()),rf&2){let tmp_4_0,tmp_7_0;\u0275\u0275conditional(ctx.options.title?0:-1),\u0275\u0275advance(3),\u0275\u0275textInterpolate(ctx.options.message),\u0275\u0275advance(),\u0275\u0275conditional(ctx.options.confirmCheckbox?4:-1),\u0275\u0275advance(2),\u0275\u0275property("mat-dialog-close",!1),\u0275\u0275advance(),\u0275\u0275textInterpolate1(" ",(tmp_4_0=ctx.options.cancelButtonText)!==null&&tmp_4_0!==void 0?tmp_4_0:\u0275\u0275pipeBind1(8,8,"CANCEL")," "),\u0275\u0275advance(2),\u0275\u0275property("mat-dialog-close",!0)("disabled",ctx.options.confirmCheckbox&&!ctx.checked),\u0275\u0275advance(),\u0275\u0275textInterpolate1(" ",(tmp_7_0=ctx.options.confirmButtonText)!==null&&tmp_7_0!==void 0?tmp_7_0:\u0275\u0275pipeBind1(11,10,"CONFIRM")," ")}},dependencies:[FormsModule,NgControlStatus,NgModel,TranslateModule,TranslatePipe,MatDialogModule,MatDialogClose,MatDialogTitle,MatDialogActions,MatDialogContent,MatButtonModule,MatButton,MatCheckboxModule,MatCheckbox],styles:["[_nghost-%COMP%]{width:100dvw;height:100dvh;display:flex;flex-direction:column;flex:1}@media (min-width: 960px){[_nghost-%COMP%]{height:auto;width:auto;min-width:528px;max-width:528px}}[_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%]{padding:calc(env(safe-area-inset-top,0) + 16px) 24px 16px}[_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%] .mat-toolbar{height:48px;padding-left:0;padding-right:0}[_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%] .mat-toolbar .mdc-dialog__title{--mat-dialog-headline-padding: 0;color:inherit}[_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%] .mat-toolbar .mdc-dialog__title:before{display:none}[_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%] + .ix-dialog__content[_ngcontent-%COMP%], [_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%] + .mdc-dialog__content[_ngcontent-%COMP%]{padding-top:0}[_nghost-%COMP%] .mdc-dialog__title[_ngcontent-%COMP%]:before{height:calc(env(safe-area-inset-top,0) + 40px)}[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%]{padding:20px 24px}[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%] > .ix-list[_ngcontent-%COMP%]{margin-left:-24px;margin-right:-24px}[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%], [_nghost-%COMP%] .mdc-dialog__content[_ngcontent-%COMP%]{flex-direction:column;box-sizing:border-box;display:flex;place-content:stretch flex-start;align-items:stretch;flex:1 1 auto;max-height:none;overflow:auto;-webkit-overflow-scrolling:touch}[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%] > .mat-mdc-subheader[_ngcontent-%COMP%], [_nghost-%COMP%] .mdc-dialog__content[_ngcontent-%COMP%] > .mat-mdc-subheader[_ngcontent-%COMP%]{margin-left:0;margin-right:0}@media (min-width: 960px){[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%], [_nghost-%COMP%] .mdc-dialog__content[_ngcontent-%COMP%]{max-height:calc(90dvh - 140px)}[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%]:has(+.mdc-dialog__actions), [_nghost-%COMP%] .mdc-dialog__content[_ngcontent-%COMP%]:has(+.mdc-dialog__actions){padding-bottom:0}}@media (min-width: 960px){[_nghost-%COMP%] .ix-dialog__banner[_ngcontent-%COMP%] + .ix-dialog__content[_ngcontent-%COMP%]{max-height:calc(90dvh - 225px)}}@media (max-width: 959.9px){[_nghost-%COMP%] .mdc-dialog__actions[_ngcontent-%COMP%]{border-top:1px solid rgba(0,0,0,.12);padding-bottom:calc(16px + env(safe-area-inset-bottom,0))}}[_nghost-%COMP%] form[_ngcontent-%COMP%]{flex-direction:column;box-sizing:border-box;display:flex;flex:1 1 auto;height:inherit}[_nghost-%COMP%] form[_ngcontent-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%]{margin-bottom:1rem}[_nghost-%COMP%] .mdc-dialog__content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{white-space:pre-wrap}[_nghost-%COMP%] .mat-mdc-checkbox[_ngcontent-%COMP%]{margin-bottom:4px}"]});let ConfirmDialogComponent2=_ConfirmDialogComponent;return ConfirmDialogComponent2})();var DialogPaginationComponent=(()=>{let _DialogPaginationComponent=class _DialogPaginationComponent{constructor(){this.translate=inject(TranslateService),this.nextPageLabel=this.translate.instant("NEXT"),this.previousPageLabel=this.translate.instant("PREVIOUS"),this.pageChange=new EventEmitter}getRangeLabel(){return this.translate.instant("N1_OF_N2",this.pageCount===0?{n1:1,n2:1}:{n1:this.pageIndex+1,n2:this.pageCount})}hasNextPage(){let maxPageIndex=this.pageCount-1;return this.pageIndex<maxPageIndex}hasPreviousPage(){return this.pageIndex>=1}nextPage(){this.hasNextPage()&&this.pageChange.emit(this.pageIndex+1)}previousPage(){this.hasPreviousPage()&&this.pageChange.emit(this.pageIndex-1)}};_DialogPaginationComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_DialogPaginationComponent)},_DialogPaginationComponent.\u0275cmp=\u0275\u0275defineComponent({type:_DialogPaginationComponent,selectors:[["ix-dialog-pagination"]],inputs:{pageCount:"pageCount",pageIndex:"pageIndex",nextPageLabel:"nextPageLabel",previousPageLabel:"previousPageLabel"},outputs:{pageChange:"pageChange"},decls:8,vars:7,consts:[["data-testid","dialog-pagination-range-label",1,"range-label"],["mat-icon-button","","type","button","data-testid","dialog-pagination-previous-page-button",3,"click","matTooltip","matTooltipDisabled","disabled"],["mat-icon-button","","type","button","data-testid","dialog-pagination-next-page-button",3,"click","matTooltip","matTooltipDisabled","disabled"]],template:function(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"div",0),\u0275\u0275text(1),\u0275\u0275elementEnd(),\u0275\u0275elementStart(2,"button",1),\u0275\u0275listener("click",function(){return ctx.previousPage()}),\u0275\u0275elementStart(3,"mat-icon"),\u0275\u0275text(4,"chevron_left"),\u0275\u0275elementEnd()(),\u0275\u0275elementStart(5,"button",2),\u0275\u0275listener("click",function(){return ctx.nextPage()}),\u0275\u0275elementStart(6,"mat-icon"),\u0275\u0275text(7,"chevron_right"),\u0275\u0275elementEnd()()),rf&2&&(\u0275\u0275advance(),\u0275\u0275textInterpolate(ctx.getRangeLabel()),\u0275\u0275advance(),\u0275\u0275property("matTooltip",ctx.previousPageLabel)("matTooltipDisabled",!ctx.hasPreviousPage())("disabled",!ctx.hasPreviousPage()),\u0275\u0275advance(3),\u0275\u0275property("matTooltip",ctx.nextPageLabel)("matTooltipDisabled",!ctx.hasNextPage())("disabled",!ctx.hasNextPage()))},dependencies:[TranslateModule,MatButtonModule,MatIconButton,MatIconModule,MatIcon,MatTooltipModule,MatTooltip],styles:["[_nghost-%COMP%]{display:flex;flex-direction:row;align-items:center;padding:0 8px}[_nghost-%COMP%] .range-label[_ngcontent-%COMP%]{margin:0 8px;font-family:Roboto,Helvetica Neue,sans-serif;font-size:12px;font-weight:400}"],changeDetection:0});let DialogPaginationComponent2=_DialogPaginationComponent;return DialogPaginationComponent2})();function ContentDialogComponent_Conditional_2_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"h2",1),\u0275\u0275text(1),\u0275\u0275elementEnd()),rf&2){let ctx_r0=\u0275\u0275nextContext();\u0275\u0275advance(),\u0275\u0275textInterpolate(ctx_r0.title)}}function ContentDialogComponent_Conditional_4_Template(rf,ctx){if(rf&1){let _r2=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"ix-dialog-pagination",6),\u0275\u0275listener("pageChange",function($event){\u0275\u0275restoreView(_r2);let ctx_r0=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r0.handlePageChange($event))}),\u0275\u0275elementEnd()}if(rf&2){let ctx_r0=\u0275\u0275nextContext();\u0275\u0275property("pageCount",ctx_r0.pagination.pageCount)("pageIndex",ctx_r0.pageIndex)}}var ContentDialogComponent=(()=>{let _ContentDialogComponent=class _ContentDialogComponent{constructor(){this.dialogRef=inject(MatDialogRef),this.options=inject(MAT_DIALOG_DATA),this.pageIndex=this.options.pagination?.initialPageIndex??0}get pagination(){return this.options.pagination}get title(){return this.options.title??""}ngAfterViewInit(){let target=this.contentVCRef?.element.nativeElement;if(target){let shadow=target.attachShadow({mode:"open"});if(this.options.htmlContent&&(typeof this.options.htmlContent=="string"?shadow.innerHTML=this.options.htmlContent:shadow.appendChild(this.options.htmlContent)),this.options.styles){let sheet2=new CSSStyleSheet;sheet2.replaceSync(this.options.styles),shadow.adoptedStyleSheets.push(sheet2)}this.options.onopened&&this.dialogRef.afterOpened().subscribe(()=>{this.options.onopened?.(shadow,()=>this.dialogRef.close())}),this.dialogRef.beforeClosed().subscribe(()=>{this.options.onclose?.(shadow),shadow.replaceChildren(...Array.from(shadow.children).map(child=>child.cloneNode(!0)))})}}handlePageChange(newPageIndex){this.pageIndex=newPageIndex,this.options.pagination?.onpagechange?.(newPageIndex)}};_ContentDialogComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_ContentDialogComponent)},_ContentDialogComponent.\u0275cmp=\u0275\u0275defineComponent({type:_ContentDialogComponent,selectors:[["ix-content-dialog"]],viewQuery:function(rf,ctx){if(rf&1&&\u0275\u0275viewQuery(MatDialogContent,5,ViewContainerRef),rf&2){let _t;\u0275\u0275queryRefresh(_t=\u0275\u0275loadQuery())&&(ctx.contentVCRef=_t.first)}},decls:10,vars:5,consts:[[1,"ix-dialog__header"],["mat-dialog-title","","data-testid","content-dialog-title"],["fxFlex",""],[3,"pageCount","pageIndex"],["type","button","mat-icon-button","","matDialogClose","",3,"matTooltip"],["data-testid","content-dialog-content"],[3,"pageChange","pageCount","pageIndex"]],template:function(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"div",0)(1,"mat-toolbar"),\u0275\u0275template(2,ContentDialogComponent_Conditional_2_Template,2,1,"h2",1),\u0275\u0275element(3,"span",2),\u0275\u0275template(4,ContentDialogComponent_Conditional_4_Template,1,2,"ix-dialog-pagination",3),\u0275\u0275elementStart(5,"button",4),\u0275\u0275pipe(6,"translate"),\u0275\u0275elementStart(7,"mat-icon"),\u0275\u0275text(8,"close"),\u0275\u0275elementEnd()()()(),\u0275\u0275element(9,"mat-dialog-content",5)),rf&2&&(\u0275\u0275advance(2),\u0275\u0275conditional(ctx.title?2:-1),\u0275\u0275advance(2),\u0275\u0275conditional(ctx.pagination?4:-1),\u0275\u0275advance(),\u0275\u0275property("matTooltip",\u0275\u0275pipeBind1(6,3,"CLOSE")))},dependencies:[TranslateModule,TranslatePipe,FlexLayoutModule,DefaultFlexDirective,MatButtonModule,MatIconButton,MatDialogModule,MatDialogClose,MatDialogTitle,MatDialogContent,MatIconModule,MatIcon,MatPaginatorModule,MatToolbarModule,MatToolbar,MatTooltipModule,MatTooltip,DialogPaginationComponent],styles:["[_nghost-%COMP%]{width:100dvw;height:100dvh;display:flex;flex-direction:column;flex:1}@media (min-width: 960px){[_nghost-%COMP%]{height:auto;width:auto;min-width:528px;max-width:528px}}[_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%]{padding:calc(env(safe-area-inset-top,0) + 16px) 24px 16px}[_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%] .mat-toolbar{height:48px;padding-left:0;padding-right:0}[_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%] .mat-toolbar .mdc-dialog__title{--mat-dialog-headline-padding: 0;color:inherit}[_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%] .mat-toolbar .mdc-dialog__title:before{display:none}[_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%] + .ix-dialog__content[_ngcontent-%COMP%], [_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%] + .mdc-dialog__content[_ngcontent-%COMP%]{padding-top:0}[_nghost-%COMP%] .mdc-dialog__title[_ngcontent-%COMP%]:before{height:calc(env(safe-area-inset-top,0) + 40px)}[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%]{padding:20px 24px}[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%] > .ix-list[_ngcontent-%COMP%]{margin-left:-24px;margin-right:-24px}[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%], [_nghost-%COMP%] .mdc-dialog__content[_ngcontent-%COMP%]{flex-direction:column;box-sizing:border-box;display:flex;place-content:stretch flex-start;align-items:stretch;flex:1 1 auto;max-height:none;overflow:auto;-webkit-overflow-scrolling:touch}[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%] > .mat-mdc-subheader[_ngcontent-%COMP%], [_nghost-%COMP%] .mdc-dialog__content[_ngcontent-%COMP%] > .mat-mdc-subheader[_ngcontent-%COMP%]{margin-left:0;margin-right:0}@media (min-width: 960px){[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%], [_nghost-%COMP%] .mdc-dialog__content[_ngcontent-%COMP%]{max-height:calc(90dvh - 140px)}[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%]:has(+.mdc-dialog__actions), [_nghost-%COMP%] .mdc-dialog__content[_ngcontent-%COMP%]:has(+.mdc-dialog__actions){padding-bottom:0}}@media (min-width: 960px){[_nghost-%COMP%] .ix-dialog__banner[_ngcontent-%COMP%] + .ix-dialog__content[_ngcontent-%COMP%]{max-height:calc(90dvh - 225px)}}@media (max-width: 959.9px){[_nghost-%COMP%] .mdc-dialog__actions[_ngcontent-%COMP%]{border-top:1px solid rgba(0,0,0,.12);padding-bottom:calc(16px + env(safe-area-inset-bottom,0))}}[_nghost-%COMP%] form[_ngcontent-%COMP%]{flex-direction:column;box-sizing:border-box;display:flex;flex:1 1 auto;height:inherit}[_nghost-%COMP%] form[_ngcontent-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%]{margin-bottom:1rem}@media (min-width: 960px){[_nghost-%COMP%]{max-width:unset}}[_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{flex:0 1 auto;overflow:hidden;text-overflow:ellipsis}[_nghost-%COMP%] .mdc-dialog__content[_ngcontent-%COMP%]{--mdc-dialog-supporting-text-line-height: 20px;--mdc-dialog-supporting-text-size: 14px;--mdc-dialog-supporting-text-tracking: .01786em}"]});let ContentDialogComponent2=_ContentDialogComponent;return ContentDialogComponent2})();var DiscardChangesDialogComponent=(()=>{let _DiscardChangesDialogComponent=class _DiscardChangesDialogComponent{};_DiscardChangesDialogComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_DiscardChangesDialogComponent)},_DiscardChangesDialogComponent.\u0275cmp=\u0275\u0275defineComponent({type:_DiscardChangesDialogComponent,selectors:[["ix-discard-changes-dialog"]],decls:12,vars:2,consts:[["mat-dialog-title","","translate",""],["mat-dialog-content",""],["translate",""],["mat-dialog-actions",""],["mat-button","",3,"mat-dialog-close"]],template:function(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"h1",0),\u0275\u0275text(1,"EXIT"),\u0275\u0275elementEnd(),\u0275\u0275elementStart(2,"div",1)(3,"p",2),\u0275\u0275text(4,"__TEXT__.DISCARD_CHANGES"),\u0275\u0275elementEnd()(),\u0275\u0275elementStart(5,"div",3)(6,"button",4)(7,"span",2),\u0275\u0275text(8,"CANCEL"),\u0275\u0275elementEnd()(),\u0275\u0275elementStart(9,"button",4)(10,"span",2),\u0275\u0275text(11,"CONFIRM"),\u0275\u0275elementEnd()()()),rf&2&&(\u0275\u0275advance(6),\u0275\u0275property("mat-dialog-close",!1),\u0275\u0275advance(3),\u0275\u0275property("mat-dialog-close",!0))},dependencies:[MatButtonModule,MatButton,MatDialogModule,MatDialogClose,MatDialogTitle,MatDialogActions,MatDialogContent,TranslateModule,TranslateDirective],styles:["[_nghost-%COMP%]{display:block}"]});let DiscardChangesDialogComponent2=_DiscardChangesDialogComponent;return DiscardChangesDialogComponent2})();var ComponentPropertiesInput=class{constructor(input2,value,context3,converter,level){this.hidden=!1,this.inputDescription=input2,this.inputName=input2.key,this.value=value,this.context=context3,this.level=level}toFormControl(){let formControl=new FormControl(this.value??this.inputDescription.defaultValue,this.inputDescription.required?Validators.required:null);return this.inputDescription.disabled&&formControl.disable(),formControl}transformValue(){return{[this.inputDescription.key]:this.value}}setValue(value){this.value=value}},ComponentInputComponent=class{get inputControl(){return this.componentFormGroup.get([this.field.inputDescription.key])}},INPUT_CONVERTER_TOKEN=new InjectionToken("input-converter.service");var _c03=["formPlaceholder"];function FormDialogComponent_Conditional_1_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"h2",2),\u0275\u0275text(1),\u0275\u0275elementEnd()),rf&2){let ctx_r1=\u0275\u0275nextContext();\u0275\u0275advance(),\u0275\u0275textInterpolate(ctx_r1.options.title)}}function FormDialogComponent_Conditional_3_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"p",4),\u0275\u0275text(1),\u0275\u0275elementEnd()),rf&2){let ctx_r1=\u0275\u0275nextContext();\u0275\u0275advance(),\u0275\u0275textInterpolate(ctx_r1.options.message)}}var FormDialogComponent=(()=>{let _FormDialogComponent=class _FormDialogComponent{constructor(){this.data=inject(MAT_DIALOG_DATA),this.dialog=inject(MatDialog),this.inputConverter=inject(INPUT_CONVERTER_TOKEN),this.ref=inject(MatDialogRef),this.cdRef=inject(ChangeDetectorRef),this.destroy=inject(DestroyRef)}get options(){return this.data.options}ngOnInit(){let component=this.data.component??{publicId:""},inputs=cloneDeep_default(this.options.inputs)||[];this.fields=this.options.inputs?.map(input2=>this.inputConverter.convertInput(input2,inputs,{component},0))||[];let formControls=this.inputConverter.getFormControls(this.fields);this.form=new FormGroup(formControls),this.options.initialValue&&this.form.patchValue(this.options.initialValue),this.options.discardChangesPrompt&&(this.ref.backdropClick().pipe(takeUntilDestroyed(this.destroy)).subscribe(()=>this.close()),this.ref.keydownEvents().pipe(takeUntilDestroyed(this.destroy)).subscribe(key=>{key.code==="Escape"&&this.close()}))}ngAfterViewInit(){this.formPlaceholder&&(this.formPlaceholder.clear(),this.inputConverter.loadComponentInputs(this.fields,this.form,this.formPlaceholder))}ngAfterViewChecked(){this.cdRef.detectChanges()}close(dialogResult){if(!this.options.discardChangesPrompt){this.ref.close(dialogResult);return}this.form.dirty?this.dialog.open(DiscardChangesDialogComponent).afterClosed().subscribe(confirmed=>{confirmed&&this.ref.close(dialogResult)}):this.ref.close(dialogResult)}submit(){this.ref.close({value:this.form.getRawValue()})}};_FormDialogComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_FormDialogComponent)},_FormDialogComponent.\u0275cmp=\u0275\u0275defineComponent({type:_FormDialogComponent,selectors:[["ix-form-dialog"]],viewQuery:function(rf,ctx){if(rf&1&&\u0275\u0275viewQuery(_c03,5,ViewContainerRef),rf&2){let _t;\u0275\u0275queryRefresh(_t=\u0275\u0275loadQuery())&&(ctx.formPlaceholder=_t.first)}},decls:13,vars:10,consts:[["formPlaceholder",""],["name","addLicense","novalidate","","autocomplete","off",3,"ngSubmit","formGroup"],["mat-dialog-title","","data-testid","form-dialog-title"],[1,"ix-dialog__content","mat-body-medium"],["data-testid","form-dialog-message"],["align","end"],["mat-button","","type","button",3,"click"],["mat-button","","type","submit",3,"disabled"]],template:function(rf,ctx){if(rf&1){let _r1=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"form",1),\u0275\u0275listener("ngSubmit",function(){return \u0275\u0275restoreView(_r1),\u0275\u0275resetView(ctx.submit())}),\u0275\u0275template(1,FormDialogComponent_Conditional_1_Template,2,1,"h2",2),\u0275\u0275elementStart(2,"div",3),\u0275\u0275template(3,FormDialogComponent_Conditional_3_Template,2,1,"p",4),\u0275\u0275element(4,"div",null,0),\u0275\u0275elementEnd(),\u0275\u0275elementStart(6,"mat-dialog-actions",5)(7,"button",6),\u0275\u0275listener("click",function(){return \u0275\u0275restoreView(_r1),\u0275\u0275resetView(ctx.close(!1))}),\u0275\u0275text(8),\u0275\u0275pipe(9,"translate"),\u0275\u0275elementEnd(),\u0275\u0275elementStart(10,"button",7),\u0275\u0275text(11),\u0275\u0275pipe(12,"translate"),\u0275\u0275elementEnd()()()}if(rf&2){let tmp_4_0,tmp_6_0;\u0275\u0275property("formGroup",ctx.form),\u0275\u0275advance(),\u0275\u0275conditional(ctx.options.title?1:-1),\u0275\u0275advance(2),\u0275\u0275conditional(ctx.options.message?3:-1),\u0275\u0275advance(5),\u0275\u0275textInterpolate1(" ",(tmp_4_0=ctx.options.cancelButtonText)!==null&&tmp_4_0!==void 0?tmp_4_0:\u0275\u0275pipeBind1(9,6,"CANCEL")," "),\u0275\u0275advance(2),\u0275\u0275property("disabled",ctx.form.invalid),\u0275\u0275advance(),\u0275\u0275textInterpolate1(" ",(tmp_6_0=ctx.options.submitButtonText)!==null&&tmp_6_0!==void 0?tmp_6_0:\u0275\u0275pipeBind1(12,8,"SUBMIT__FORM")," ")}},dependencies:[FormsModule,\u0275NgNoValidate,NgControlStatusGroup,MatButtonModule,MatButton,MatDialogModule,MatDialogTitle,MatDialogActions,ReactiveFormsModule,FormGroupDirective,TranslateModule,TranslatePipe],styles:["[_nghost-%COMP%]{width:100dvw;height:100dvh;display:flex;flex-direction:column;flex:1}@media (min-width: 960px){[_nghost-%COMP%]{height:auto;width:auto;min-width:528px;max-width:528px}}[_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%]{padding:calc(env(safe-area-inset-top,0) + 16px) 24px 16px}[_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%] .mat-toolbar{height:48px;padding-left:0;padding-right:0}[_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%] .mat-toolbar .mdc-dialog__title{--mat-dialog-headline-padding: 0;color:inherit}[_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%] .mat-toolbar .mdc-dialog__title:before{display:none}[_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%] + .ix-dialog__content[_ngcontent-%COMP%], [_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%] + .mdc-dialog__content[_ngcontent-%COMP%]{padding-top:0}[_nghost-%COMP%] .mdc-dialog__title[_ngcontent-%COMP%]:before{height:calc(env(safe-area-inset-top,0) + 40px)}[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%]{padding:20px 24px}[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%] > .ix-list[_ngcontent-%COMP%]{margin-left:-24px;margin-right:-24px}[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%], [_nghost-%COMP%] .mdc-dialog__content[_ngcontent-%COMP%]{flex-direction:column;box-sizing:border-box;display:flex;place-content:stretch flex-start;align-items:stretch;flex:1 1 auto;max-height:none;overflow:auto;-webkit-overflow-scrolling:touch}[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%] > .mat-mdc-subheader[_ngcontent-%COMP%], [_nghost-%COMP%] .mdc-dialog__content[_ngcontent-%COMP%] > .mat-mdc-subheader[_ngcontent-%COMP%]{margin-left:0;margin-right:0}@media (min-width: 960px){[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%], [_nghost-%COMP%] .mdc-dialog__content[_ngcontent-%COMP%]{max-height:calc(90dvh - 140px)}[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%]:has(+.mdc-dialog__actions), [_nghost-%COMP%] .mdc-dialog__content[_ngcontent-%COMP%]:has(+.mdc-dialog__actions){padding-bottom:0}}@media (min-width: 960px){[_nghost-%COMP%] .ix-dialog__banner[_ngcontent-%COMP%] + .ix-dialog__content[_ngcontent-%COMP%]{max-height:calc(90dvh - 225px)}}@media (max-width: 959.9px){[_nghost-%COMP%] .mdc-dialog__actions[_ngcontent-%COMP%]{border-top:1px solid rgba(0,0,0,.12);padding-bottom:calc(16px + env(safe-area-inset-bottom,0))}}[_nghost-%COMP%] form[_ngcontent-%COMP%]{flex-direction:column;box-sizing:border-box;display:flex;flex:1 1 auto;height:inherit}[_nghost-%COMP%] form[_ngcontent-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%]{margin-bottom:1rem}@media (min-width: 960px){[_nghost-%COMP%]:has(ix-rich-text-form-field){width:100dvw;min-width:908px;max-width:908px}}[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{white-space:pre-wrap}"]});let FormDialogComponent2=_FormDialogComponent;return FormDialogComponent2})();var ACTION_MENU_DATA=new InjectionToken("ActionMenuData");var _c04=a0=>({"mat-warn":a0});function ActionMenuComponent_For_4_Template(rf,ctx){if(rf&1){let _r1=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"button",4),\u0275\u0275listener("click",function(){let \u0275$index_5_r2=\u0275\u0275restoreView(_r1).$index,ctx_r2=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r2.select(\u0275$index_5_r2))}),\u0275\u0275text(1),\u0275\u0275elementEnd()}if(rf&2){let action_r4=ctx.$implicit;\u0275\u0275property("ngClass",\u0275\u0275pureFunction1(2,_c04,action_r4.destructive)),\u0275\u0275advance(),\u0275\u0275textInterpolate1(" ",action_r4.title," ")}}var ActionMenuComponent=(()=>{let _ActionMenuComponent=class _ActionMenuComponent{constructor(){this.data=inject(ACTION_MENU_DATA),this.ngZone=inject(NgZone),this.destroy=inject(DestroyRef),this.elementRef=inject(ElementRef),this.viewportRuler=inject(ViewportRuler),this.selected$=new BehaviorSubject(void 0)}ngOnInit(){this.viewportRuler.change(33).pipe(takeUntilDestroyed(this.destroy)).subscribe(()=>{this.ngZone.run(()=>{this.updatePosition(),this.trigger?.updatePosition()})}),this.updatePosition()}ngAfterViewInit(){this.trigger.menuClosed.pipe(takeUntilDestroyed(this.destroy)).subscribe(()=>this.selected$.complete()),this.trigger.openMenu()}select(index){this.selected$.next({index})}updatePosition(){let rect=this.data.target.getBoundingClientRect();this.elementRef.nativeElement.setAttribute("style",`inset:${rect.top}px auto auto ${rect.x}px`),this.elementRef.nativeElement.querySelector(".trigger")?.setAttribute("style",`height:${rect.height}px;width:${rect.width}px`)}};_ActionMenuComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_ActionMenuComponent)},_ActionMenuComponent.\u0275cmp=\u0275\u0275defineComponent({type:_ActionMenuComponent,selectors:[["ix-action-menu-component"]],viewQuery:function(rf,ctx){if(rf&1&&(\u0275\u0275viewQuery(MatMenu,5),\u0275\u0275viewQuery(MatMenuTrigger,5)),rf&2){let _t;\u0275\u0275queryRefresh(_t=\u0275\u0275loadQuery())&&(ctx.menu=_t.first),\u0275\u0275queryRefresh(_t=\u0275\u0275loadQuery())&&(ctx.trigger=_t.first)}},decls:5,vars:1,consts:[["menu","matMenu"],[1,"trigger",3,"matMenuTriggerFor"],[1,"dense"],["mat-menu-item","",3,"ngClass"],["mat-menu-item","",3,"click","ngClass"]],template:function(rf,ctx){if(rf&1&&(\u0275\u0275element(0,"div",1),\u0275\u0275elementStart(1,"mat-menu",2,0),\u0275\u0275repeaterCreate(3,ActionMenuComponent_For_4_Template,2,4,"button",3,\u0275\u0275repeaterTrackByIdentity),\u0275\u0275elementEnd()),rf&2){let menu_r5=\u0275\u0275reference(2);\u0275\u0275property("matMenuTriggerFor",menu_r5),\u0275\u0275advance(3),\u0275\u0275repeater(ctx.data.options.actions)}},dependencies:[NgClass,MatMenuModule,MatMenu,MatMenuItem,MatMenuTrigger,MatButtonModule,MatIconModule],styles:["[_nghost-%COMP%]{position:absolute;inset:0 auto auto 0;z-index:9999}[_nghost-%COMP%] .trigger[_ngcontent-%COMP%]{height:1px;width:1px;padding:0;opacity:0;visibility:hidden}"],changeDetection:0});let ActionMenuComponent2=_ActionMenuComponent;return ActionMenuComponent2})();var SELECT_PANEL_DATA=new InjectionToken("SelectPanelData");var AppearSchedulerDirective=(()=>{let _AppearSchedulerDirective=class _AppearSchedulerDirective{constructor(){this.cdRef=inject(ChangeDetectorRef),this.scheduler=new Subject,this.destroy=inject(DestroyRef)}ngOnInit(){this.scheduler.pipe(debounceTime(0),takeUntilDestroyed(this.destroy)).subscribe(()=>{this.cdRef.markForCheck()})}ngOnDestroy(){this.scheduler.complete()}schedule(){this.scheduler.next()}};_AppearSchedulerDirective.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_AppearSchedulerDirective)},_AppearSchedulerDirective.\u0275dir=\u0275\u0275defineDirective({type:_AppearSchedulerDirective,selectors:[["","ixAppearScheduler",""]]});let AppearSchedulerDirective3=_AppearSchedulerDirective;return AppearSchedulerDirective3})();var AppearDirective=(()=>{let _AppearDirective=class _AppearDirective{constructor(cdRef,elementRef){this.cdRef=cdRef,this.elementRef=elementRef,this.disabled=!1,this.appeared=!1,this.scheduler=inject(AppearSchedulerDirective,{optional:!0,skipSelf:!0,host:!0})}ngOnInit(){this.run()}ngOnChanges(changes){changes.disabled&&this.run()}ngOnDestroy(){this.stop()}run(){this.disabled?this.stop():this.start()}start(){this.observer||(this.observer=new IntersectionObserver(entries=>{entries.forEach(entry=>{(entry.isIntersecting||entry.intersectionRatio>0)&&(this.stop(),this.appeared=!0)}),this.appeared&&(this.scheduler?this.scheduler.schedule():this.cdRef.markForCheck())},{rootMargin:"50% 0px",threshold:0}),this.observer.observe(this.elementRef.nativeElement))}stop(){this.observer&&(this.observer.disconnect(),this.observer=void 0)}};_AppearDirective.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_AppearDirective)(\u0275\u0275directiveInject(ChangeDetectorRef),\u0275\u0275directiveInject(ElementRef))},_AppearDirective.\u0275dir=\u0275\u0275defineDirective({type:_AppearDirective,selectors:[["","ixAppear",""]],inputs:{disabled:[0,"ixAppearDisabled","disabled"]},exportAs:["ixAppear"],features:[\u0275\u0275NgOnChangesFeature]});let AppearDirective3=_AppearDirective;return AppearDirective3})();function FlatSearchInputComponent_Conditional_5_Template(rf,ctx){if(rf&1){let _r1=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"button",3),\u0275\u0275listener("click",function(){\u0275\u0275restoreView(_r1);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.clear())}),\u0275\u0275elementStart(1,"mat-icon"),\u0275\u0275text(2,"close"),\u0275\u0275elementEnd()()}}var FlatSearchInputComponent=(()=>{let _FlatSearchInputComponent=class _FlatSearchInputComponent{constructor(){this.showClearButtonWhenEmpty=!1,this.afterQueryChange=new EventEmitter,this.afterQueryClear=new EventEmitter,this.destroy=inject(DestroyRef)}ngOnInit(){this.query?.valueChanges.pipe(takeUntilDestroyed(this.destroy)).subscribe(()=>{this.afterQueryChange&&this.afterQueryChange.emit()})}clear(){this.query?.setValue(""),this.afterQueryClear&&this.afterQueryClear.emit()}};_FlatSearchInputComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_FlatSearchInputComponent)},_FlatSearchInputComponent.\u0275cmp=\u0275\u0275defineComponent({type:_FlatSearchInputComponent,selectors:[["ix-flat-search-input"]],inputs:{query:"query",showClearButtonWhenEmpty:[2,"showClearButtonWhenEmpty","showClearButtonWhenEmpty",booleanAttribute]},outputs:{afterQueryChange:"afterQueryChange",afterQueryClear:"afterQueryClear"},decls:6,vars:5,consts:[["matIconPrefix",""],["id","flat-search-mat-input","matInput","","type","search",3,"formControl","placeholder"],["matIconSuffix","","type","button","mat-icon-button","",1,"close-icon"],["matIconSuffix","","type","button","mat-icon-button","",1,"close-icon",3,"click"]],template:function(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"mat-form-field")(1,"mat-icon",0),\u0275\u0275text(2,"search"),\u0275\u0275elementEnd(),\u0275\u0275element(3,"input",1),\u0275\u0275pipe(4,"translate"),\u0275\u0275template(5,FlatSearchInputComponent_Conditional_5_Template,3,0,"button",2),\u0275\u0275elementEnd()),rf&2&&(\u0275\u0275advance(3),\u0275\u0275property("formControl",ctx.query)("placeholder",\u0275\u0275pipeBind1(4,3,"SEARCH")),\u0275\u0275advance(2),\u0275\u0275conditional(ctx.showClearButtonWhenEmpty||ctx.query.value?5:-1))},dependencies:[ReactiveFormsModule,DefaultValueAccessor,NgControlStatus,FormControlDirective,MatButtonModule,MatIconButton,MatFormFieldModule,MatFormField,MatPrefix,MatSuffix,MatIconModule,MatIcon,MatInputModule,MatInput,TranslateModule,TranslatePipe],styles:["[_nghost-%COMP%]{--ix-flat-search-input-width: 200px;--ix-flat-search-input-height: 32px;display:block}[_nghost-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%]{--mdc-filled-text-field-container-color: color-mix( in srgb, transparent, currentcolor 4% );--mat-form-field-container-text-size: 14px;width:var(--ix-flat-search-input-width);height:var(--ix-flat-search-input-height)}[_nghost-%COMP%] .mat-mdc-form-field.mat-focused[_ngcontent-%COMP%] .mat-mdc-form-field-focus-overlay{opacity:.04}[_nghost-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%] .mdc-text-field--filled{--mdc-filled-text-field-active-indicator-height: 0;--mdc-filled-text-field-focus-active-indicator-height: 0;--mdc-filled-text-field-input-text-color: color-mix( in srgb, transparent, currentcolor 67% );border-radius:calc(var(--ix-flat-search-input-height) * .5)}[_nghost-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%] .mat-mdc-form-field-flex{max-height:var(--ix-flat-search-input-height)}[_nghost-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%] .mat-mdc-form-field-icon-prefix>.mat-icon{padding:calc((var(--ix-flat-search-input-height) - 20px) * .5)}[_nghost-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%] .mat-mdc-form-field-infix{width:auto;min-height:var(--ix-flat-search-input-height);padding:0!important}[_nghost-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%] .mat-mdc-form-field-infix input{height:var(--ix-flat-search-input-height)}[_nghost-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%] .mat-mdc-form-field-infix input::placeholder{color:color-mix(in srgb,transparent,currentcolor 34%)}[_nghost-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%] .mat-mdc-form-field-infix input[type=search]::-webkit-search-decoration, [_nghost-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%] .mat-mdc-form-field-infix input[type=search]::-webkit-search-cancel-button{appearance:none}[_nghost-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%] .mat-mdc-form-field-icon-prefix{padding-right:max(36px - var(--ix-flat-search-input-height),0px)}[_nghost-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%] .mat-mdc-form-field-icon-suffix{padding-left:max(36px - var(--ix-flat-search-input-height),0px)}[_nghost-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%] .mat-mdc-form-field-icon-suffix .mat-mdc-icon-button{--mdc-icon-button-state-layer-size: var( --ix-flat-search-input-height );--mdc-icon-button-icon-size: min( calc(var(--ix-flat-search-input-height) - 12px), 20px );width:var(--ix-flat-search-input-height);height:var(--ix-flat-search-input-height)}[_nghost-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%] .mat-mdc-form-field-subscript-wrapper{display:none}"],changeDetection:0});let FlatSearchInputComponent2=_FlatSearchInputComponent;return FlatSearchInputComponent2})();function getSelectedOptions(select3){return isArray_default(select3.selected)?select3.selected:select3.selected?[select3.selected]:[]}var _c05=a0=>({$implicit:a0});function SelectDialogComponent_Conditional_8_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"div",5),\u0275\u0275element(1,"ix-flat-search-input",8),\u0275\u0275elementEnd()),rf&2){let ctx_r0=\u0275\u0275nextContext();\u0275\u0275advance(),\u0275\u0275property("query",ctx_r0.searchQueryControl)}}function SelectDialogComponent_For_11_Conditional_0_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"div",9),\u0275\u0275text(1),\u0275\u0275elementEnd()),rf&2){let option_r3=\u0275\u0275nextContext().$implicit;\u0275\u0275advance(),\u0275\u0275textInterpolate(option_r3.group==null?null:option_r3.group.label)}}function SelectDialogComponent_For_11_Conditional_4_ng_container_1_Template(rf,ctx){rf&1&&\u0275\u0275elementContainer(0)}function SelectDialogComponent_For_11_Conditional_4_Conditional_2_Template(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"mat-icon"),\u0275\u0275text(1,"check"),\u0275\u0275elementEnd())}function SelectDialogComponent_For_11_Conditional_4_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"span",12),\u0275\u0275template(1,SelectDialogComponent_For_11_Conditional_4_ng_container_1_Template,1,0,"ng-container",13),\u0275\u0275elementEnd(),\u0275\u0275template(2,SelectDialogComponent_For_11_Conditional_4_Conditional_2_Template,2,0,"mat-icon")),rf&2){let tmp_13_0,option_r3=\u0275\u0275nextContext().$implicit,ctx_r0=\u0275\u0275nextContext(),defaultOptionTemplate_r4=\u0275\u0275reference(14);\u0275\u0275advance(),\u0275\u0275property("ngTemplateOutlet",(tmp_13_0=ctx_r0.customOptionTemplate)!==null&&tmp_13_0!==void 0?tmp_13_0:defaultOptionTemplate_r4)("ngTemplateOutletContext",\u0275\u0275pureFunction1(3,_c05,option_r3)),\u0275\u0275advance(),\u0275\u0275conditional(option_r3.selected?2:-1)}}function SelectDialogComponent_For_11_Template(rf,ctx){if(rf&1){let _r2=\u0275\u0275getCurrentView();\u0275\u0275template(0,SelectDialogComponent_For_11_Conditional_0_Template,2,1,"div",9),\u0275\u0275elementStart(1,"mat-list-item",10),\u0275\u0275listener("click",function(){let option_r3=\u0275\u0275restoreView(_r2).$implicit,ctx_r0=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r0.selectOption(option_r3))}),\u0275\u0275elementStart(2,"div",11,1),\u0275\u0275template(4,SelectDialogComponent_For_11_Conditional_4_Template,3,5),\u0275\u0275elementEnd()()}if(rf&2){let option_r3=ctx.$implicit,appearance_r5=\u0275\u0275reference(3),ctx_r0=\u0275\u0275nextContext();\u0275\u0275conditional(ctx_r0.isFirstGroupOcc(option_r3)?0:-1),\u0275\u0275advance(),\u0275\u0275classProp("has-group",!!option_r3.group)("is-checked",option_r3.selected),\u0275\u0275attribute("data-value",option_r3.value),\u0275\u0275advance(3),\u0275\u0275conditional(appearance_r5.appeared?4:-1)}}function SelectDialogComponent_Conditional_12_ng_container_1_Template(rf,ctx){rf&1&&\u0275\u0275elementContainer(0)}function SelectDialogComponent_Conditional_12_Template(rf,ctx){if(rf&1&&(\u0275\u0275element(0,"mat-divider"),\u0275\u0275template(1,SelectDialogComponent_Conditional_12_ng_container_1_Template,1,0,"ng-container",14)),rf&2){let ctx_r0=\u0275\u0275nextContext();\u0275\u0275advance(),\u0275\u0275property("ngTemplateOutlet",ctx_r0.actionTemplate)}}function SelectDialogComponent_ng_template_13_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"span",15),\u0275\u0275text(1),\u0275\u0275elementEnd()),rf&2){let option_r6=ctx.$implicit;\u0275\u0275advance(),\u0275\u0275textInterpolate(option_r6.viewValue)}}function SelectDialogComponent_Conditional_15_Template(rf,ctx){if(rf&1){let _r7=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"mat-dialog-actions",7)(1,"button",16),\u0275\u0275text(2),\u0275\u0275pipe(3,"translate"),\u0275\u0275elementEnd(),\u0275\u0275elementStart(4,"button",17),\u0275\u0275listener("click",function(){\u0275\u0275restoreView(_r7);let ctx_r0=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r0.applySelection())}),\u0275\u0275text(5),\u0275\u0275pipe(6,"translate"),\u0275\u0275elementEnd()()}rf&2&&(\u0275\u0275advance(),\u0275\u0275property("matDialogClose",null),\u0275\u0275advance(),\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(3,3,"CANCEL")),\u0275\u0275advance(3),\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(6,5,"APPLY")))}var SelectDialogComponent=(()=>{let _SelectDialogComponent=class _SelectDialogComponent{constructor(){this.cdRef=inject(ChangeDetectorRef),this.elementRef=inject(ElementRef),this.dialogRef=inject(MatDialogRef),this.data=inject(MAT_DIALOG_DATA),this.searchQueryControl=new FormControl("",{nonNullable:!0}),this.filteredOptions=this.options}get actionTemplate(){return this.data.actionTemplate}get customOptionTemplate(){return this.data.optionTemplate}get multiple(){return this.data.instance.multiple}get hasSearch(){return!this.data.noSearch}get options(){let list=this.data.instance.options.toArray(),first2=this.data.instance.options.first;return first2&&first2.value===void 0&&first2.viewValue===""&&first2.disabled?list.slice(1):list}get firstSelected(){let{selected}=this.data.instance;return isArray_default(selected)?selected[0]:selected}get label(){return this.data.instance._parentFormField?._floatingLabel?.element.textContent??""}get searchPredicate(){return this.data.searchPredicate??((option,query)=>{let q=query.toLowerCase();return option.viewValue.toLowerCase().includes(q)})}ngOnInit(){this.searchQueryControl.valueChanges.subscribe(query=>{this.filteredOptions=this.options.filter(option=>this.searchPredicate(option,query))})}ngAfterViewInit(){this.firstSelected&&this.elementRef.nativeElement.querySelector(`[data-value="${this.firstSelected.value}"]`)?.scrollIntoView?.({behavior:"instant",block:"center"})}applySelection(selected){this.dialogRef.close(selected??this.data.instance.selected)}invalidateOptions(){let selectedValues=getSelectedOptions(this.data.instance).map(option=>option.value);this.filteredOptions=this.options.filter(option=>this.searchPredicate(option,this.searchQueryControl.value)),this.cdRef.markForCheck(),selectedValues.length&&setTimeout(()=>{selectedValues.forEach(value=>{this.filteredOptions.find(opt=>opt.value===value)?.select(!0)})})}isFirstGroupOcc(option){if(option.group){let idx=this.filteredOptions.indexOf(option),prevOption=this.filteredOptions[idx-1];return!prevOption||prevOption.group?._labelId!==option.group._labelId}return!1}selectOption(option){this.multiple?option[option.selected?"deselect":"select"](!0):this.applySelection([option])}};_SelectDialogComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_SelectDialogComponent)},_SelectDialogComponent.\u0275cmp=\u0275\u0275defineComponent({type:_SelectDialogComponent,selectors:[["ix-select-dialog"]],decls:16,vars:5,consts:[["defaultOptionTemplate",""],["appearance","ixAppear"],[1,"ix-dialog__header"],["matDialogTitle","","fxFlex",""],["mat-icon-button","",3,"matDialogClose"],[1,"search-area"],["ixAppearScheduler",""],["align","end"],[3,"query"],["mat-subheader",""],["role","option",3,"click"],["ixAppear","",1,"option-inner"],["fxFlex","",1,"option-template"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngTemplateOutlet"],[1,"option-label"],["type","button","mat-button","",3,"matDialogClose"],["type","button","mat-button","","color","primary",3,"click"]],template:function(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"div",2)(1,"mat-toolbar")(2,"h1",3),\u0275\u0275text(3),\u0275\u0275elementEnd(),\u0275\u0275elementStart(4,"button",4)(5,"mat-icon"),\u0275\u0275text(6,"close"),\u0275\u0275elementEnd()()()(),\u0275\u0275elementStart(7,"mat-dialog-content"),\u0275\u0275template(8,SelectDialogComponent_Conditional_8_Template,2,1,"div",5),\u0275\u0275elementStart(9,"mat-action-list",6),\u0275\u0275repeaterCreate(10,SelectDialogComponent_For_11_Template,5,7,null,null,\u0275\u0275repeaterTrackByIdentity),\u0275\u0275elementEnd(),\u0275\u0275template(12,SelectDialogComponent_Conditional_12_Template,2,1),\u0275\u0275elementEnd(),\u0275\u0275template(13,SelectDialogComponent_ng_template_13_Template,2,1,"ng-template",null,0,\u0275\u0275templateRefExtractor)(15,SelectDialogComponent_Conditional_15_Template,7,7,"mat-dialog-actions",7)),rf&2&&(\u0275\u0275advance(3),\u0275\u0275textInterpolate(ctx.label),\u0275\u0275advance(),\u0275\u0275property("matDialogClose",null),\u0275\u0275advance(4),\u0275\u0275conditional(ctx.hasSearch?8:-1),\u0275\u0275advance(2),\u0275\u0275repeater(ctx.filteredOptions),\u0275\u0275advance(2),\u0275\u0275conditional(ctx.actionTemplate?12:-1),\u0275\u0275advance(3),\u0275\u0275conditional(ctx.multiple?15:-1))},dependencies:[NgTemplateOutlet,MatButtonModule,MatButton,MatIconButton,MatDialogModule,MatDialogClose,MatDialogTitle,MatDialogActions,MatDialogContent,MatDividerModule,MatDivider,MatIconModule,MatIcon,MatListModule,MatActionList,MatListItem,MatListSubheaderCssMatStyler,MatToolbarModule,MatToolbar,FlexModule,DefaultFlexDirective,TranslateModule,TranslatePipe,FlatSearchInputComponent,AppearDirective,AppearSchedulerDirective],styles:["[_nghost-%COMP%]{width:100dvw;height:100dvh;display:flex;flex-direction:column;flex:1}@media (min-width: 960px){[_nghost-%COMP%]{height:auto;width:auto;min-width:528px;max-width:528px}}[_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%]{padding:calc(env(safe-area-inset-top,0) + 16px) 24px 16px}[_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%] .mat-toolbar{height:48px;padding-left:0;padding-right:0}[_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%] .mat-toolbar .mdc-dialog__title{--mat-dialog-headline-padding: 0;color:inherit}[_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%] .mat-toolbar .mdc-dialog__title:before{display:none}[_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%] + .ix-dialog__content[_ngcontent-%COMP%], [_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%] + .mdc-dialog__content[_ngcontent-%COMP%]{padding-top:0}[_nghost-%COMP%] .mdc-dialog__title[_ngcontent-%COMP%]:before{height:calc(env(safe-area-inset-top,0) + 40px)}[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%]{padding:20px 24px}[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%] > .ix-list[_ngcontent-%COMP%]{margin-left:-24px;margin-right:-24px}[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%], [_nghost-%COMP%] .mdc-dialog__content[_ngcontent-%COMP%]{flex-direction:column;box-sizing:border-box;display:flex;place-content:stretch flex-start;align-items:stretch;flex:1 1 auto;max-height:none;overflow:auto;-webkit-overflow-scrolling:touch}[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%] > .mat-mdc-subheader[_ngcontent-%COMP%], [_nghost-%COMP%] .mdc-dialog__content[_ngcontent-%COMP%] > .mat-mdc-subheader[_ngcontent-%COMP%]{margin-left:0;margin-right:0}@media (min-width: 960px){[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%], [_nghost-%COMP%] .mdc-dialog__content[_ngcontent-%COMP%]{max-height:calc(90dvh - 140px)}[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%]:has(+.mdc-dialog__actions), [_nghost-%COMP%] .mdc-dialog__content[_ngcontent-%COMP%]:has(+.mdc-dialog__actions){padding-bottom:0}}@media (min-width: 960px){[_nghost-%COMP%] .ix-dialog__banner[_ngcontent-%COMP%] + .ix-dialog__content[_ngcontent-%COMP%]{max-height:calc(90dvh - 225px)}}@media (max-width: 959.9px){[_nghost-%COMP%] .mdc-dialog__actions[_ngcontent-%COMP%]{border-top:1px solid rgba(0,0,0,.12);padding-bottom:calc(16px + env(safe-area-inset-bottom,0))}}[_nghost-%COMP%] form[_ngcontent-%COMP%]{flex-direction:column;box-sizing:border-box;display:flex;flex:1 1 auto;height:inherit}[_nghost-%COMP%] form[_ngcontent-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%]{margin-bottom:1rem}[_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}[_nghost-%COMP%] .mat-mdc-dialog-content[_ngcontent-%COMP%]{padding:0}[_nghost-%COMP%] .mat-mdc-dialog-content[_ngcontent-%COMP%] .mat-mdc-action-list[_ngcontent-%COMP%] .mdc-list-group__subheader[_ngcontent-%COMP%]{margin-left:24px}[_nghost-%COMP%] .mat-mdc-dialog-content[_ngcontent-%COMP%] .mat-mdc-action-list[_ngcontent-%COMP%] .mdc-list-item[_ngcontent-%COMP%]{height:auto;min-height:48px;padding-left:24px}[_nghost-%COMP%] .mat-mdc-dialog-content[_ngcontent-%COMP%] .mat-mdc-action-list[_ngcontent-%COMP%] .mdc-list-item.has-group[_ngcontent-%COMP%]{padding-left:40px}[_nghost-%COMP%] .mat-mdc-dialog-content[_ngcontent-%COMP%] .mat-mdc-action-list[_ngcontent-%COMP%] .mdc-list-item.is-checked[_ngcontent-%COMP%] .option-template[_ngcontent-%COMP%]{max-width:calc(100% - 24px);padding-right:8px}[_nghost-%COMP%] .search-area[_ngcontent-%COMP%]{padding:12px 24px 4px}[_nghost-%COMP%] .search-area[_ngcontent-%COMP%] ix-flat-search-input[_ngcontent-%COMP%]{--ix-flat-search-input-width: 100%}[_nghost-%COMP%] .option-inner[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:flex-start;align-items:center}[_nghost-%COMP%] .option-template[_ngcontent-%COMP%]{max-width:100%;overflow:hidden}[_nghost-%COMP%] .option-label[_ngcontent-%COMP%]{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}"],changeDetection:0});let SelectDialogComponent2=_SelectDialogComponent;return SelectDialogComponent2})();var SelectDialogTriggerDirective=(()=>{let _SelectDialogTriggerDirective=class _SelectDialogTriggerDirective{constructor(){this.matSelect=inject(MatSelect),this.dialog=inject(MatDialog),this.bpObserver=inject(BreakpointObserver),this._dialogRef=null}get active(){return this.bpObserver.isMatched("(max-width: 959.98px)")&&!this.matSelect.disabled}get searchQueryControl(){return this._dialogRef?.componentInstance.searchQueryControl}ngAfterViewInit(){this._ogOnContainerClick=this.matSelect.onContainerClick.bind(this.matSelect),this.matSelect.onContainerClick=()=>{if(this.active){this.matSelect.panel?.nativeElement.setAttribute("hidden","");let selectedBeforeOpen=getSelectedOptions(this.matSelect),data={instance:this.matSelect,actionTemplate:this.ixSelectDialogActionTemplate,noSearch:this.ixSelectDialogNoSearch,optionTemplate:this.ixSelectDialogOptionTemplate,searchPredicate:this.ixSelectDialogSearchPredicate};this._dialogRef=this.dialog.open(SelectDialogComponent,{data,panelClass:"fullscreen"}),this._dialogRef.afterClosed().subscribe(selected=>{if(this.matSelect.multiple){let selectOpts=selected??selectedBeforeOpen;(selected?selectedBeforeOpen:getSelectedOptions(this.matSelect)).forEach(option=>{selectOpts.includes(option)||option.deselect(!0)}),selectOpts.forEach(option=>this.matSelect.options.find(opt=>opt.value===option.value)?.select(!0))}else selected?.forEach(option=>this.matSelect.options.find(opt=>opt.value===option.value)?.select(!0));this.matSelect.close(),this._dialogRef=null})}else this._ogOnContainerClick()}}ngOnDestroy(){this._dialogRef?.close(),this._dialogRef=null}invalidate(){this._dialogRef?.componentInstance.invalidateOptions()}};_SelectDialogTriggerDirective.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_SelectDialogTriggerDirective)},_SelectDialogTriggerDirective.\u0275dir=\u0275\u0275defineDirective({type:_SelectDialogTriggerDirective,selectors:[["","ixSelectDialogTrigger",""]],inputs:{ixSelectDialogOptionTemplate:"ixSelectDialogOptionTemplate",ixSelectDialogActionTemplate:"ixSelectDialogActionTemplate",ixSelectDialogSearchPredicate:"ixSelectDialogSearchPredicate",ixSelectDialogNoSearch:[2,"ixSelectDialogNoSearch","ixSelectDialogNoSearch",coerceBooleanProperty]}});let SelectDialogTriggerDirective3=_SelectDialogTriggerDirective;return SelectDialogTriggerDirective3})();var SelectDialogModule=(()=>{let _SelectDialogModule=class _SelectDialogModule{};_SelectDialogModule.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_SelectDialogModule)},_SelectDialogModule.\u0275mod=\u0275\u0275defineNgModule({type:_SelectDialogModule}),_SelectDialogModule.\u0275inj=\u0275\u0275defineInjector({imports:[SelectDialogComponent]});let SelectDialogModule2=_SelectDialogModule;return SelectDialogModule2})();var _c06=["searchSelectInput"],_c1=["innerSelectSearch"],_c2=[[["",8,"mat-select-search-custom-header-content"]],[["","ngxMatSelectSearchClear",""]],[["","ngxMatSelectNoEntriesFound",""]]],_c3=[".mat-select-search-custom-header-content","[ngxMatSelectSearchClear]","[ngxMatSelectNoEntriesFound]"],_c4=(a0,a1)=>({"mat-select-search-inner-multiple":a0,"mat-select-search-inner-toggle-all":a1});function MatSelectSearchComponent_mat_checkbox_4_Template(rf,ctx){if(rf&1){let _r2=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"mat-checkbox",12),\u0275\u0275listener("change",function($event){\u0275\u0275restoreView(_r2);let ctx_r2=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r2._emitSelectAllBooleanToParent($event.checked))}),\u0275\u0275elementEnd()}if(rf&2){let ctx_r2=\u0275\u0275nextContext();\u0275\u0275property("color",ctx_r2.matFormField==null?null:ctx_r2.matFormField.color)("checked",ctx_r2.toggleAllCheckboxChecked)("indeterminate",ctx_r2.toggleAllCheckboxIndeterminate)("matTooltip",ctx_r2.toggleAllCheckboxTooltipMessage)("matTooltipPosition",ctx_r2.toggleAllCheckboxTooltipPosition)}}function MatSelectSearchComponent_mat_spinner_7_Template(rf,ctx){rf&1&&\u0275\u0275element(0,"mat-spinner",13)}function MatSelectSearchComponent_button_8_ng_content_1_Template(rf,ctx){rf&1&&\u0275\u0275projection(0,1,["*ngIf","clearIcon; else defaultIcon"])}function MatSelectSearchComponent_button_8_ng_template_2_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"mat-icon",16),\u0275\u0275text(1),\u0275\u0275elementEnd()),rf&2){let ctx_r2=\u0275\u0275nextContext(2);\u0275\u0275property("svgIcon",ctx_r2.closeSvgIcon),\u0275\u0275advance(),\u0275\u0275textInterpolate1(" ",ctx_r2.closeSvgIcon?null:ctx_r2.closeIcon," ")}}function MatSelectSearchComponent_button_8_Template(rf,ctx){if(rf&1){let _r4=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"button",14),\u0275\u0275listener("click",function(){\u0275\u0275restoreView(_r4);let ctx_r2=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r2._reset(!0))}),\u0275\u0275template(1,MatSelectSearchComponent_button_8_ng_content_1_Template,1,0,"ng-content",15)(2,MatSelectSearchComponent_button_8_ng_template_2_Template,2,2,"ng-template",null,2,\u0275\u0275templateRefExtractor),\u0275\u0275elementEnd()}if(rf&2){let defaultIcon_r5=\u0275\u0275reference(3),ctx_r2=\u0275\u0275nextContext();\u0275\u0275advance(),\u0275\u0275property("ngIf",ctx_r2.clearIcon)("ngIfElse",defaultIcon_r5)}}function MatSelectSearchComponent_div_11_ng_content_1_Template(rf,ctx){rf&1&&\u0275\u0275projection(0,2,["*ngIf","noEntriesFound; else defaultNoEntriesFound"])}function MatSelectSearchComponent_div_11_ng_template_2_Template(rf,ctx){if(rf&1&&\u0275\u0275text(0),rf&2){let ctx_r2=\u0275\u0275nextContext(2);\u0275\u0275textInterpolate(ctx_r2.noEntriesFoundLabel)}}function MatSelectSearchComponent_div_11_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"div",17),\u0275\u0275template(1,MatSelectSearchComponent_div_11_ng_content_1_Template,1,0,"ng-content",15)(2,MatSelectSearchComponent_div_11_ng_template_2_Template,1,1,"ng-template",null,3,\u0275\u0275templateRefExtractor),\u0275\u0275elementEnd()),rf&2){let defaultNoEntriesFound_r6=\u0275\u0275reference(3),ctx_r2=\u0275\u0275nextContext();\u0275\u0275advance(),\u0275\u0275property("ngIf",ctx_r2.noEntriesFound)("ngIfElse",defaultNoEntriesFound_r6)}}var MatSelectSearchClearDirective=(()=>{class MatSelectSearchClearDirective2{static \u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||MatSelectSearchClearDirective2)};static \u0275dir=\u0275\u0275defineDirective({type:MatSelectSearchClearDirective2,selectors:[["","ngxMatSelectSearchClear",""]],standalone:!1})}return MatSelectSearchClearDirective2})(),configurableDefaultOptions=["ariaLabel","clearSearchInput","closeIcon","closeSvgIcon","disableInitialFocus","disableScrollToActiveOnOptionsChanged","enableClearOnEscapePressed","hideClearSearchButton","noEntriesFoundLabel","placeholderLabel","preventHomeEndKeyPropagation","searching"],MAT_SELECTSEARCH_DEFAULT_OPTIONS=new InjectionToken("mat-selectsearch-default-options"),MatSelectNoEntriesFoundDirective=(()=>{class MatSelectNoEntriesFoundDirective2{static \u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||MatSelectNoEntriesFoundDirective2)};static \u0275dir=\u0275\u0275defineDirective({type:MatSelectNoEntriesFoundDirective2,selectors:[["","ngxMatSelectNoEntriesFound",""]],standalone:!1})}return MatSelectNoEntriesFoundDirective2})(),MatSelectSearchComponent=(()=>{class MatSelectSearchComponent2{matSelect;changeDetectorRef;_viewportRuler;matOption;matFormField;placeholderLabel="Suche";type="text";closeIcon="close";closeSvgIcon;noEntriesFoundLabel="Keine Optionen gefunden";clearSearchInput=!0;searching=!1;disableInitialFocus=!1;enableClearOnEscapePressed=!1;preventHomeEndKeyPropagation=!1;disableScrollToActiveOnOptionsChanged=!1;ariaLabel="dropdown search";showToggleAllCheckbox=!1;toggleAllCheckboxChecked=!1;toggleAllCheckboxIndeterminate=!1;toggleAllCheckboxTooltipMessage="";toggleAllCheckboxTooltipPosition="below";hideClearSearchButton=!1;alwaysRestoreSelectedOptionsMulti=!1;recreateValuesArray=!1;toggleAll=new EventEmitter;searchSelectInput;innerSelectSearch;clearIcon;noEntriesFound;get value(){return this._formControl.value}_lastExternalInputValue;onTouched=_=>{};set _options(_options){this._options$.next(_options)}get _options(){return this._options$.getValue()}_options$=new BehaviorSubject(null);optionsList$=this._options$.pipe(switchMap(_options=>_options?_options.changes.pipe(map(options=>options.toArray()),startWith(_options.toArray())):of(null)));optionsLength$=this.optionsList$.pipe(map(options=>options?options.length:0));previousSelectedValues;_formControl=new FormControl("",{nonNullable:!0});_showNoEntriesFound$=combineLatest([this._formControl.valueChanges,this.optionsLength$]).pipe(map(([value,optionsLength])=>!!(this.noEntriesFoundLabel&&value&&optionsLength===this.getOptionsLengthOffset())));_onDestroy=new Subject;activeDescendant;constructor(matSelect,changeDetectorRef,_viewportRuler,matOption,matFormField,defaultOptions2){this.matSelect=matSelect,this.changeDetectorRef=changeDetectorRef,this._viewportRuler=_viewportRuler,this.matOption=matOption,this.matFormField=matFormField,this.applyDefaultOptions(defaultOptions2)}applyDefaultOptions(defaultOptions2){if(defaultOptions2)for(let key of configurableDefaultOptions)defaultOptions2.hasOwnProperty(key)&&(this[key]=defaultOptions2[key])}ngOnInit(){this.matOption?(this.matOption.disabled=!0,this.matOption._getHostElement().classList.add("contains-mat-select-search"),this.matOption._getHostElement().setAttribute("role","presentation")):console.error("<ngx-mat-select-search> must be placed inside a <mat-option> element"),this.matSelect.openedChange.pipe(delay(1),takeUntil(this._onDestroy)).subscribe(opened=>{opened?(this.updateInputWidth(),this.disableInitialFocus||this._focus()):this.clearSearchInput&&this._reset()}),this.matSelect.openedChange.pipe(take(1),switchMap(_=>{this._options=this.matSelect.options;let previousFirstOption=this._options.toArray()[this.getOptionsLengthOffset()];return this._options.changes.pipe(tap(()=>{setTimeout(()=>{let options=this._options.toArray(),currentFirstOption=options[this.getOptionsLengthOffset()],keyManager=this.matSelect._keyManager;keyManager&&this.matSelect.panelOpen&&currentFirstOption&&((!previousFirstOption||!this.matSelect.compareWith(previousFirstOption.value,currentFirstOption.value)||!keyManager.activeItem||!options.find(option=>this.matSelect.compareWith(option.value,keyManager.activeItem?.value)))&&keyManager.setActiveItem(this.getOptionsLengthOffset()),setTimeout(()=>{this.updateInputWidth()})),previousFirstOption=currentFirstOption})}))})).pipe(takeUntil(this._onDestroy)).subscribe(),this._showNoEntriesFound$.pipe(takeUntil(this._onDestroy)).subscribe(showNoEntriesFound=>{this.matOption&&(showNoEntriesFound?this.matOption._getHostElement().classList.add("mat-select-search-no-entries-found"):this.matOption._getHostElement().classList.remove("mat-select-search-no-entries-found"))}),this._viewportRuler.change().pipe(takeUntil(this._onDestroy)).subscribe(()=>{this.matSelect.panelOpen&&this.updateInputWidth()}),this.initMultipleHandling(),this.optionsList$.pipe(takeUntil(this._onDestroy)).subscribe(()=>{this.changeDetectorRef.markForCheck()})}_emitSelectAllBooleanToParent(state){this.toggleAll.emit(state)}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}_isToggleAllCheckboxVisible(){return this.matSelect.multiple&&this.showToggleAllCheckbox}_handleKeydown(event2){(event2.key&&event2.key.length===1||this.preventHomeEndKeyPropagation&&(event2.key==="Home"||event2.key==="End"))&&event2.stopPropagation(),this.matSelect.multiple&&event2.key&&event2.key==="Enter"&&setTimeout(()=>this._focus()),this.enableClearOnEscapePressed&&event2.key==="Escape"&&this.value&&(this._reset(!0),event2.stopPropagation())}_handleKeyup(event2){if(event2.key==="ArrowUp"||event2.key==="ArrowDown"){let ariaActiveDescendantId=this.matSelect._getAriaActiveDescendant(),index=this._options.toArray().findIndex(item=>item.id===ariaActiveDescendantId);index!==-1&&(this.unselectActiveDescendant(),this.activeDescendant=this._options.toArray()[index]._getHostElement(),this.activeDescendant.setAttribute("aria-selected","true"),this.searchSelectInput.nativeElement.setAttribute("aria-activedescendant",ariaActiveDescendantId))}}writeValue(value){this._lastExternalInputValue=value,this._formControl.setValue(value),this.changeDetectorRef.markForCheck()}onBlur(){this.unselectActiveDescendant(),this.onTouched()}registerOnChange(fn2){this._formControl.valueChanges.pipe(filter(value=>value!==this._lastExternalInputValue),tap(()=>this._lastExternalInputValue=void 0),takeUntil(this._onDestroy)).subscribe(fn2)}registerOnTouched(fn2){this.onTouched=fn2}_focus(){if(!this.searchSelectInput||!this.matSelect.panel)return;let panel=this.matSelect.panel.nativeElement,scrollTop=panel.scrollTop;this.searchSelectInput.nativeElement.focus(),panel.scrollTop=scrollTop}_reset(focus){this._formControl.setValue(""),focus&&this._focus()}initMultipleHandling(){if(!this.matSelect.ngControl){this.matSelect.multiple&&console.error("the mat-select containing ngx-mat-select-search must have a ngModel or formControl directive when multiple=true");return}this.previousSelectedValues=this.matSelect.ngControl.value,this.matSelect.ngControl.valueChanges&&this.matSelect.ngControl.valueChanges.pipe(takeUntil(this._onDestroy)).subscribe(values=>{let restoreSelectedValues=!1;if(this.matSelect.multiple&&(this.alwaysRestoreSelectedOptionsMulti||this._formControl.value&&this._formControl.value.length)&&this.previousSelectedValues&&Array.isArray(this.previousSelectedValues)){(!values||!Array.isArray(values))&&(values=[]);let optionValues=this.matSelect.options.map(option=>option.value);this.previousSelectedValues.forEach(previousValue=>{!values.some(v=>this.matSelect.compareWith(v,previousValue))&&!optionValues.some(v=>this.matSelect.compareWith(v,previousValue))&&(this.recreateValuesArray?values=[...values,previousValue]:values.push(previousValue),restoreSelectedValues=!0)})}this.previousSelectedValues=values,restoreSelectedValues&&this.matSelect._onChange(values)})}updateInputWidth(){if(!this.innerSelectSearch||!this.innerSelectSearch.nativeElement)return;let element=this.innerSelectSearch.nativeElement,panelElement=null;for(;element&&element.parentElement;)if(element=element.parentElement,element.classList.contains("mat-select-panel")){panelElement=element;break}panelElement&&(this.innerSelectSearch.nativeElement.style.width=panelElement.clientWidth+"px")}getOptionsLengthOffset(){return this.matOption?1:0}unselectActiveDescendant(){this.activeDescendant?.removeAttribute("aria-selected"),this.searchSelectInput.nativeElement.removeAttribute("aria-activedescendant")}static \u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||MatSelectSearchComponent2)(\u0275\u0275directiveInject(MatSelect),\u0275\u0275directiveInject(ChangeDetectorRef),\u0275\u0275directiveInject(ViewportRuler),\u0275\u0275directiveInject(MatOption,8),\u0275\u0275directiveInject(MatFormField,8),\u0275\u0275directiveInject(MAT_SELECTSEARCH_DEFAULT_OPTIONS,8))};static \u0275cmp=\u0275\u0275defineComponent({type:MatSelectSearchComponent2,selectors:[["ngx-mat-select-search"]],contentQueries:function(rf,ctx,dirIndex){if(rf&1&&(\u0275\u0275contentQuery(dirIndex,MatSelectSearchClearDirective,5),\u0275\u0275contentQuery(dirIndex,MatSelectNoEntriesFoundDirective,5)),rf&2){let _t;\u0275\u0275queryRefresh(_t=\u0275\u0275loadQuery())&&(ctx.clearIcon=_t.first),\u0275\u0275queryRefresh(_t=\u0275\u0275loadQuery())&&(ctx.noEntriesFound=_t.first)}},viewQuery:function(rf,ctx){if(rf&1&&(\u0275\u0275viewQuery(_c06,7,ElementRef),\u0275\u0275viewQuery(_c1,7,ElementRef)),rf&2){let _t;\u0275\u0275queryRefresh(_t=\u0275\u0275loadQuery())&&(ctx.searchSelectInput=_t.first),\u0275\u0275queryRefresh(_t=\u0275\u0275loadQuery())&&(ctx.innerSelectSearch=_t.first)}},inputs:{placeholderLabel:"placeholderLabel",type:"type",closeIcon:"closeIcon",closeSvgIcon:"closeSvgIcon",noEntriesFoundLabel:"noEntriesFoundLabel",clearSearchInput:"clearSearchInput",searching:"searching",disableInitialFocus:"disableInitialFocus",enableClearOnEscapePressed:"enableClearOnEscapePressed",preventHomeEndKeyPropagation:"preventHomeEndKeyPropagation",disableScrollToActiveOnOptionsChanged:"disableScrollToActiveOnOptionsChanged",ariaLabel:"ariaLabel",showToggleAllCheckbox:"showToggleAllCheckbox",toggleAllCheckboxChecked:"toggleAllCheckboxChecked",toggleAllCheckboxIndeterminate:"toggleAllCheckboxIndeterminate",toggleAllCheckboxTooltipMessage:"toggleAllCheckboxTooltipMessage",toggleAllCheckboxTooltipPosition:"toggleAllCheckboxTooltipPosition",hideClearSearchButton:"hideClearSearchButton",alwaysRestoreSelectedOptionsMulti:"alwaysRestoreSelectedOptionsMulti",recreateValuesArray:"recreateValuesArray"},outputs:{toggleAll:"toggleAll"},standalone:!1,features:[\u0275\u0275ProvidersFeature([{provide:NG_VALUE_ACCESSOR,useExisting:forwardRef(()=>MatSelectSearchComponent2),multi:!0}])],ngContentSelectors:_c3,decls:13,vars:14,consts:[["innerSelectSearch",""],["searchSelectInput",""],["defaultIcon",""],["defaultNoEntriesFound",""],["matInput","",1,"mat-select-search-input","mat-select-search-hidden"],[1,"mat-select-search-inner","mat-typography","mat-datepicker-content","mat-tab-header",3,"ngClass"],[1,"mat-select-search-inner-row"],["class","mat-select-search-toggle-all-checkbox","matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",3,"color","checked","indeterminate","matTooltip","matTooltipPosition","change",4,"ngIf"],["autocomplete","off",1,"mat-select-search-input",3,"keydown","keyup","blur","type","formControl","placeholder"],["class","mat-select-search-spinner","diameter","16",4,"ngIf"],["mat-icon-button","","aria-label","Clear","class","mat-select-search-clear",3,"click",4,"ngIf"],["class","mat-select-search-no-entries-found",4,"ngIf"],["matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",1,"mat-select-search-toggle-all-checkbox",3,"change","color","checked","indeterminate","matTooltip","matTooltipPosition"],["diameter","16",1,"mat-select-search-spinner"],["mat-icon-button","","aria-label","Clear",1,"mat-select-search-clear",3,"click"],[4,"ngIf","ngIfElse"],[3,"svgIcon"],[1,"mat-select-search-no-entries-found"]],template:function(rf,ctx){if(rf&1){let _r1=\u0275\u0275getCurrentView();\u0275\u0275projectionDef(_c2),\u0275\u0275element(0,"input",4),\u0275\u0275elementStart(1,"div",5,0)(3,"div",6),\u0275\u0275template(4,MatSelectSearchComponent_mat_checkbox_4_Template,1,5,"mat-checkbox",7),\u0275\u0275elementStart(5,"input",8,1),\u0275\u0275listener("keydown",function($event){return \u0275\u0275restoreView(_r1),\u0275\u0275resetView(ctx._handleKeydown($event))})("keyup",function($event){return \u0275\u0275restoreView(_r1),\u0275\u0275resetView(ctx._handleKeyup($event))})("blur",function(){return \u0275\u0275restoreView(_r1),\u0275\u0275resetView(ctx.onBlur())}),\u0275\u0275elementEnd(),\u0275\u0275template(7,MatSelectSearchComponent_mat_spinner_7_Template,1,0,"mat-spinner",9)(8,MatSelectSearchComponent_button_8_Template,4,2,"button",10),\u0275\u0275projection(9),\u0275\u0275elementEnd(),\u0275\u0275element(10,"mat-divider"),\u0275\u0275elementEnd(),\u0275\u0275template(11,MatSelectSearchComponent_div_11_Template,4,2,"div",11),\u0275\u0275pipe(12,"async")}rf&2&&(\u0275\u0275advance(),\u0275\u0275property("ngClass",\u0275\u0275pureFunction2(11,_c4,ctx.matSelect.multiple,ctx._isToggleAllCheckboxVisible())),\u0275\u0275advance(3),\u0275\u0275property("ngIf",ctx._isToggleAllCheckboxVisible()),\u0275\u0275advance(),\u0275\u0275property("type",ctx.type)("formControl",ctx._formControl)("placeholder",ctx.placeholderLabel),\u0275\u0275attribute("aria-label",ctx.ariaLabel),\u0275\u0275advance(2),\u0275\u0275property("ngIf",ctx.searching),\u0275\u0275advance(),\u0275\u0275property("ngIf",!ctx.hideClearSearchButton&&ctx.value&&!ctx.searching),\u0275\u0275advance(3),\u0275\u0275property("ngIf",\u0275\u0275pipeBind1(12,9,ctx._showNoEntriesFound$)))},dependencies:[NgClass,NgIf,DefaultValueAccessor,NgControlStatus,FormControlDirective,MatIconButton,MatCheckbox,MatIcon,MatProgressSpinner,MatTooltip,MatDivider,AsyncPipe],styles:[".mat-select-search-hidden[_ngcontent-%COMP%]{visibility:hidden}.mat-select-search-inner[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;z-index:100;font-size:inherit;box-shadow:none;background-color:var(--mat-select-panel-background-color)}.mat-select-search-inner.mat-select-search-inner-multiple.mat-select-search-inner-toggle-all[_ngcontent-%COMP%] .mat-select-search-inner-row[_ngcontent-%COMP%]{display:flex;align-items:center}.mat-select-search-input[_ngcontent-%COMP%]{box-sizing:border-box;width:100%;border:none;font-family:inherit;font-size:inherit;color:currentColor;outline:none;background-color:var(--mat-select-panel-background-color);padding:0 44px 0 16px;height:calc(3em - 1px);line-height:calc(3em - 1px)}[dir=rtl][_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%]{padding-right:16px;padding-left:44px}.mat-select-search-input[_ngcontent-%COMP%]::placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}.mat-select-search-inner-toggle-all[_ngcontent-%COMP%] .mat-select-search-input[_ngcontent-%COMP%]{padding-left:5px}.mat-select-search-no-entries-found[_ngcontent-%COMP%]{padding-top:8px}.mat-select-search-clear[_ngcontent-%COMP%]{position:absolute;right:4px;top:0}[dir=rtl][_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%]{right:auto;left:4px}.mat-select-search-spinner[_ngcontent-%COMP%]{position:absolute;right:16px;top:calc(50% - 8px)}[dir=rtl][_nghost-%COMP%] .mat-select-search-spinner[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-spinner[_ngcontent-%COMP%]{right:auto;left:16px} .mat-mdc-option[aria-disabled=true].contains-mat-select-search{position:sticky;top:-8px;z-index:1;opacity:1;margin-top:-8px;pointer-events:all} .mat-mdc-option[aria-disabled=true].contains-mat-select-search .mat-icon{margin-right:0;margin-left:0} .mat-mdc-option[aria-disabled=true].contains-mat-select-search mat-pseudo-checkbox{display:none} .mat-mdc-option[aria-disabled=true].contains-mat-select-search .mdc-list-item__primary-text{opacity:1}.mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%]{padding-left:5px}[dir=rtl][_nghost-%COMP%] .mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%]{padding-left:0;padding-right:5px}"],changeDetection:0})}return MatSelectSearchComponent2})();var NgxMatSelectSearchModule=(()=>{class NgxMatSelectSearchModule2{static \u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||NgxMatSelectSearchModule2)};static \u0275mod=\u0275\u0275defineNgModule({type:NgxMatSelectSearchModule2});static \u0275inj=\u0275\u0275defineInjector({imports:[CommonModule,ReactiveFormsModule,MatButtonModule,MatCheckboxModule,MatIconModule,MatProgressSpinnerModule,MatTooltipModule,MatDividerModule]})}return NgxMatSelectSearchModule2})();var _forTrack02=($index,$item)=>$item.index;function SelectPanelComponent_Conditional_1_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"mat-option"),\u0275\u0275element(1,"ngx-mat-select-search",2),\u0275\u0275pipe(2,"translate"),\u0275\u0275pipe(3,"translate"),\u0275\u0275elementEnd()),rf&2){let tmp_2_0,ctx_r0=\u0275\u0275nextContext();\u0275\u0275advance(),\u0275\u0275property("formControl",ctx_r0.queryControl)("placeholderLabel",(tmp_2_0=ctx_r0.selectPanelOptions.searchPlaceholderText)!==null&&tmp_2_0!==void 0?tmp_2_0:\u0275\u0275pipeBind1(2,3,"SEARCH"))("noEntriesFoundLabel",\u0275\u0275pipeBind1(3,5,"NO_RESULTS_FOUND"))}}function SelectPanelComponent_For_3_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"mat-option",1)(1,"span",3),\u0275\u0275text(2),\u0275\u0275elementEnd()()),rf&2){let option_r2=ctx.$implicit;\u0275\u0275property("value",option_r2.index),\u0275\u0275advance(2),\u0275\u0275textInterpolate(option_r2.text)}}var SelectPanelComponent=(()=>{let _SelectPanelComponent=class _SelectPanelComponent{constructor(){this.data=inject(SELECT_PANEL_DATA),this.ngZone=inject(NgZone),this.destroy=inject(DestroyRef),this.elementRef=inject(ElementRef),this.viewportRuler=inject(ViewportRuler),this.selected$=new BehaviorSubject(void 0),this.selectPanelOptions=this.data.options,this.isMultiple=this.selectPanelOptions.multiple??!1,this.selectOptions=this.selectPanelOptions.options.map((option,index)=>__spreadProps(__spreadValues({},option),{index})),this.queryControl=new FormControl("",{nonNullable:!0}),this.selectedOptions=new FormControl(this.selectPanelOptions.selected??null),this.filteredOptions=signal(this.selectOptions)}ngOnInit(){this.selectedOptions.valueChanges.pipe(takeUntilDestroyed(this.destroy)).subscribe(value=>{this.isMultiple&&Array.isArray(value)?this.selected$.next({indexes:value}):!this.isMultiple&&typeof value=="number"?this.selected$.next({index:value}):this.selected$.next(void 0)}),this.queryControl.valueChanges.pipe(takeUntilDestroyed(this.destroy)).subscribe(query=>{if(query){let filtered=this.selectOptions.filter(option=>option.text.toLowerCase().includes(query.toLowerCase()));this.filteredOptions.set(filtered)}else this.filteredOptions.set(this.selectOptions)}),this.viewportRuler.change(33).pipe(takeUntilDestroyed(this.destroy)).subscribe(()=>{this.ngZone.run(()=>{this.updatePosition()})}),this.updatePosition()}ngAfterViewInit(){this.select.close=()=>{this.selected$.complete()},this.select.panelWidth=null,this.select.onContainerClick()}updatePosition(){let rect=this.data.target.getBoundingClientRect();this.elementRef.nativeElement.setAttribute("style",`inset:${rect.top}px auto auto ${rect.x}px;`),this.elementRef.nativeElement.querySelector(".mat-mdc-select-trigger")?.setAttribute("style",`height:${rect.height}px;width:${rect.width}px`)}};_SelectPanelComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_SelectPanelComponent)},_SelectPanelComponent.\u0275cmp=\u0275\u0275defineComponent({type:_SelectPanelComponent,selectors:[["ix-select-panel"]],viewQuery:function(rf,ctx){if(rf&1&&\u0275\u0275viewQuery(MatSelect,5),rf&2){let _t;\u0275\u0275queryRefresh(_t=\u0275\u0275loadQuery())&&(ctx.select=_t.first)}},decls:4,vars:3,consts:[["matInput","","ixSelectDialogTrigger","","ixSelectDialogNoSearch","!search",3,"multiple","formControl"],[3,"value"],[3,"formControl","placeholderLabel","noEntriesFoundLabel"],["matListItemTitle",""]],template:function(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"mat-select",0),\u0275\u0275template(1,SelectPanelComponent_Conditional_1_Template,4,7,"mat-option"),\u0275\u0275repeaterCreate(2,SelectPanelComponent_For_3_Template,3,2,"mat-option",1,_forTrack02),\u0275\u0275elementEnd()),rf&2&&(\u0275\u0275property("multiple",ctx.isMultiple)("formControl",ctx.selectedOptions),\u0275\u0275advance(),\u0275\u0275conditional(ctx.selectPanelOptions.search?1:-1),\u0275\u0275advance(),\u0275\u0275repeater(ctx.filteredOptions()))},dependencies:[MatSelectModule,MatSelect,MatOption,NgxMatSelectSearchModule,MatSelectSearchComponent,ReactiveFormsModule,NgControlStatus,FormControlDirective,SelectDialogModule,SelectDialogTriggerDirective,TranslateModule,TranslatePipe],styles:["[_nghost-%COMP%]{position:absolute;inset:0 auto auto 0}"],changeDetection:0});let SelectPanelComponent2=_SelectPanelComponent;return SelectPanelComponent2})();var TIME_RANGE_OPTIONS=[{code:"last-hour",translateKey:"LAST_HOUR"},{code:"last-3-hours",translateKey:"LAST_N_HOURS",translateParams:{n:"3"}},{code:"last-6-hours",translateKey:"LAST_N_HOURS",translateParams:{n:"6"}},{code:"last-8-hours",translateKey:"LAST_N_HOURS",translateParams:{n:"8"}},{code:"last-12-hours",translateKey:"LAST_N_HOURS",translateParams:{n:"12"}},{code:"last-24-hours",translateKey:"LAST_N_HOURS",translateParams:{n:"24"}},{code:"last-2-days-from-today",translateKey:"LAST_N_DAYS_FROM_TODAY",translateParams:{n:"2"}},{code:"last-2-days-from-yesterday",translateKey:"LAST_N_DAYS_FROM_YESTERDAY",translateParams:{n:"2"}},{code:"last-7-days-from-today",translateKey:"LAST_N_DAYS_FROM_TODAY",translateParams:{n:"7"}},{code:"last-7-days-from-yesterday",translateKey:"LAST_N_DAYS_FROM_YESTERDAY",translateParams:{n:"7"}},{code:"last-30-days-from-today",translateKey:"LAST_N_DAYS_FROM_TODAY",translateParams:{n:"30"}},{code:"last-30-days-from-yesterday",translateKey:"LAST_N_DAYS_FROM_YESTERDAY",translateParams:{n:"30"}},{code:"today",translateKey:"TODAY"},{code:"yesterday",translateKey:"YESTERDAY"},{code:"previous-week",translateKey:"PREVIOUS_WEEK"},{code:"previous-month",translateKey:"PREVIOUS_MONTH"},{code:"week-to-date",translateKey:"WEEK_TO_DATE"},{code:"month-to-date",translateKey:"MONTH_TO_DATE"},{code:"year-to-date",translateKey:"YEAR_TO_DATE"}];function toTimeRange(periodSpec,timeZone=Settings.defaultZone.name||"UTC",now2=Date.now()){if(typeof periodSpec=="string"){let range2=_toTimeRange(periodSpec,timeZone,now2);return{from:range2[0].toMillis(),to:range2[1].toMillis()}}return periodSpec}function toStringTimeRange(periodSpec,timeZone=Settings.defaultZone.name||"UTC",locale=Settings.defaultLocale||"en-US",now2=Date.now()){let[from2,to]=_toTimeRange(periodSpec,timeZone,now2);return from2.setLocale(locale).toLocaleString(DateTime.DATETIME_SHORT)+" \u2014 "+to.setLocale(locale).toLocaleString(DateTime.DATETIME_SHORT)}function _toTimeRange(periodSpec,timeZone,now2){if(typeof periodSpec!="string")return[DateTime.fromMillis(periodSpec.from).setZone(timeZone),DateTime.fromMillis(periodSpec.to).setZone(timeZone)];let nowDateTime=DateTime.fromMillis(now2).setZone(timeZone),startOfDay=nowDateTime.startOf("day"),endOfDay=nowDateTime.endOf("day").set({millisecond:0});switch(periodSpec){case"today":return[startOfDay,endOfDay];case"yesterday":return[startOfDay.minus({day:1}),endOfDay.minus({day:1})];case"day-before-yesterday":return[startOfDay.minus({days:2}),endOfDay.minus({days:2})];case"last-week":case"previous-week":return[nowDateTime.startOf("week").minus({week:1}),nowDateTime.endOf("week").set({millisecond:0}).minus({week:1})];case"last-month":case"previous-month":return[nowDateTime.minus({month:1}).startOf("month"),nowDateTime.minus({month:1}).endOf("month").set({millisecond:0})];case"last-hour":return[nowDateTime.startOf("minute").minus({hour:1}),nowDateTime.startOf("minute").minus({second:1})];case"last-3-hours":case"last-6-hours":case"last-8-hours":case"last-12-hours":case"last-24-hours":{let hours=Number(periodSpec.substr(5,periodSpec.length-11));return[nowDateTime.startOf("minute").minus({hours}),nowDateTime.startOf("minute").minus({second:1})]}case"last-7-days":case"last-30-days":case"last-90-days":{let days=Number(periodSpec.substr(5,periodSpec.length-10));return[startOfDay.minus({days}),endOfDay.minus({day:1})]}case"last-2-days-from-today":case"last-7-days-from-today":case"last-30-days-from-today":case"last-90-days-from-today":{let days=Number(periodSpec.substr(5,periodSpec.length-21));return[startOfDay.minus({days:days-1}),endOfDay]}case"last-2-days-from-yesterday":case"last-7-days-from-yesterday":case"last-30-days-from-yesterday":case"last-90-days-from-yesterday":{let days=Number(periodSpec.substr(5,periodSpec.length-25));return[startOfDay.minus({days}),endOfDay.minus({day:1})]}case"week-to-date":case"month-to-date":case"year-to-date":{let startOf=periodSpec.substr(0,periodSpec.length-8);return[nowDateTime.startOf(startOf),endOfDay]}}return[startOfDay,endOfDay]}function getTranslateParamsForPeriod(period){switch(period){case"last-3-hours":case"last-6-hours":case"last-8-hours":case"last-12-hours":case"last-24-hours":return{n:Number(period.substr(5,period.length-11))};case"last-7-days":case"last-30-days":case"last-90-days":return{n:Number(period.substr(5,period.length-10))};case"last-2-days-from-today":case"last-7-days-from-today":case"last-30-days-from-today":case"last-90-days-from-today":return{n:Number(period.substr(5,period.length-21))};case"last-2-days-from-yesterday":case"last-7-days-from-yesterday":case"last-30-days-from-yesterday":case"last-90-days-from-yesterday":return{n:Number(period.substr(5,period.length-25))}}return{}}function getTranslateKeyForPeriod(period){switch(period){case"last-3-hours":case"last-6-hours":case"last-8-hours":case"last-12-hours":case"last-24-hours":return"LAST_N_HOURS";case"last-7-days":case"last-30-days":case"last-90-days":return"LAST_N_DAYS";case"last-2-days-from-today":case"last-7-days-from-today":case"last-30-days-from-today":case"last-90-days-from-today":return"LAST_N_DAYS_FROM_TODAY";case"last-2-days-from-yesterday":case"last-7-days-from-yesterday":case"last-30-days-from-yesterday":case"last-90-days-from-yesterday":return"LAST_N_DAYS_FROM_YESTERDAY"}return snakeCase_default(period).toUpperCase()}var ActivePeriodSpec=(()=>{let _ActivePeriodSpec=class _ActivePeriodSpec extends ReplaySubject{constructor(){super(1),this._scoped=new BehaviorSubject({})}inScopeOf(scope){return scope?this._scoped.pipe(mergeMap(scoped=>scoped[scope]?of(scoped[scope]):EMPTY)).pipe(distinctUntilChanged(isEqual_default),map(({spec})=>spec)):this.asObservable()}setPeriodSpec(newPeriodSpec,scope){if(scope){let scoped=this._scoped.getValue(),ref=((scoped[scope]?.ref??0)+1)%2;return this._scoped.next(__spreadProps(__spreadValues({},scoped),{[scope]:{spec:newPeriodSpec,ref}}))}return this.next(newPeriodSpec)}asTimeRange(scope){return scope?this.inScopeOf(scope).pipe(map(spec=>toTimeRange(spec))):this.asObservable().pipe(map(spec=>toTimeRange(spec)))}};_ActivePeriodSpec.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_ActivePeriodSpec)},_ActivePeriodSpec.\u0275prov=\u0275\u0275defineInjectable({token:_ActivePeriodSpec,factory:_ActivePeriodSpec.\u0275fac,providedIn:"root"});let ActivePeriodSpec2=_ActivePeriodSpec;return ActivePeriodSpec2})();function DateTimeFormatValidator(formatter=value=>DateTime.fromISO(value)){return function(control){let dateTime=formatter(control.value);return!dateTime.isValid&&dateTime.invalidReason?{[camelCase_default(dateTime.invalidReason)]:!0}:null}}function DateTimeFromToInverted(formatter=value=>DateTime.fromISO(value)){return function(formGroup){let fromControl=formGroup.controls.from,toControl=formGroup.controls.to,controls=[];if((!fromControl.errors||Object.keys(fromControl.errors).filter(key=>key!=="inverted").length===0)&&controls.push(fromControl),(!toControl.errors||Object.keys(toControl.errors).filter(key=>key!=="inverted").length===0)&&controls.push(toControl),controls.length){let fromDateTime=formatter(fromControl.value),toDateTime=formatter(toControl.value);if(fromDateTime.isValid&&toDateTime.isValid){let inverted=toDateTime.diff(fromDateTime,"milliseconds").milliseconds<0;controls.forEach(control=>control.setErrors(inverted?{inverted:!0}:null))}}return null}}function MaxDateValidator(maxDateISOString,formatter=value=>DateTime.fromISO(value)){let maxDateTime=DateTime.fromISO(maxDateISOString);return function(control){let dateTime=formatter(control.value);return maxDateTime.diff(dateTime).toMillis()<0?{maxDate:!0}:null}}var DateTimeValidators=(()=>{let _DateTimeValidators=class _DateTimeValidators{};_DateTimeValidators.maxDate=MaxDateValidator,_DateTimeValidators.format=DateTimeFormatValidator,_DateTimeValidators.fromToInverted=DateTimeFromToInverted;let DateTimeValidators2=_DateTimeValidators;return DateTimeValidators2})();var Tooltip=class{constructor(_instance){this._instance=_instance}enable(){this._instance.enable()}disable(){this._instance.disable()}destroy(){this._instance.destroy()}setMessage(message){this._instance.setContent(message)}};var top="top",bottom="bottom",right="right",left="left",auto="auto",basePlacements=[top,bottom,right,left],start2="start",end="end",clippingParents="clippingParents",viewport="viewport",popper="popper",reference="reference",variationPlacements=basePlacements.reduce(function(acc,placement){return acc.concat([placement+"-"+start2,placement+"-"+end])},[]),placements=[].concat(basePlacements,[auto]).reduce(function(acc,placement){return acc.concat([placement,placement+"-"+start2,placement+"-"+end])},[]),beforeRead="beforeRead",read="read",afterRead="afterRead",beforeMain="beforeMain",main="main",afterMain="afterMain",beforeWrite="beforeWrite",write="write",afterWrite="afterWrite",modifierPhases=[beforeRead,read,afterRead,beforeMain,main,afterMain,beforeWrite,write,afterWrite];function getNodeName(element){return element?(element.nodeName||"").toLowerCase():null}function getWindow(node){if(node==null)return window;if(node.toString()!=="[object Window]"){var ownerDocument=node.ownerDocument;return ownerDocument&&ownerDocument.defaultView||window}return node}function isElement(node){var OwnElement=getWindow(node).Element;return node instanceof OwnElement||node instanceof Element}function isHTMLElement(node){var OwnElement=getWindow(node).HTMLElement;return node instanceof OwnElement||node instanceof HTMLElement}function isShadowRoot(node){if(typeof ShadowRoot>"u")return!1;var OwnElement=getWindow(node).ShadowRoot;return node instanceof OwnElement||node instanceof ShadowRoot}function applyStyles(_ref){var state=_ref.state;Object.keys(state.elements).forEach(function(name){var style2=state.styles[name]||{},attributes=state.attributes[name]||{},element=state.elements[name];!isHTMLElement(element)||!getNodeName(element)||(Object.assign(element.style,style2),Object.keys(attributes).forEach(function(name2){var value=attributes[name2];value===!1?element.removeAttribute(name2):element.setAttribute(name2,value===!0?"":value)}))})}function effect2(_ref2){var state=_ref2.state,initialStyles={popper:{position:state.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(state.elements.popper.style,initialStyles.popper),state.styles=initialStyles,state.elements.arrow&&Object.assign(state.elements.arrow.style,initialStyles.arrow),function(){Object.keys(state.elements).forEach(function(name){var element=state.elements[name],attributes=state.attributes[name]||{},styleProperties=Object.keys(state.styles.hasOwnProperty(name)?state.styles[name]:initialStyles[name]),style2=styleProperties.reduce(function(style3,property){return style3[property]="",style3},{});!isHTMLElement(element)||!getNodeName(element)||(Object.assign(element.style,style2),Object.keys(attributes).forEach(function(attribute){element.removeAttribute(attribute)}))})}}var applyStyles_default={name:"applyStyles",enabled:!0,phase:"write",fn:applyStyles,effect:effect2,requires:["computeStyles"]};function getBasePlacement(placement){return placement.split("-")[0]}var max=Math.max,min=Math.min,round=Math.round;function getUAString(){var uaData=navigator.userAgentData;return uaData!=null&&uaData.brands?uaData.brands.map(function(item){return item.brand+"/"+item.version}).join(" "):navigator.userAgent}function isLayoutViewport(){return!/^((?!chrome|android).)*safari/i.test(getUAString())}function getBoundingClientRect(element,includeScale,isFixedStrategy){includeScale===void 0&&(includeScale=!1),isFixedStrategy===void 0&&(isFixedStrategy=!1);var clientRect=element.getBoundingClientRect(),scaleX=1,scaleY=1;includeScale&&isHTMLElement(element)&&(scaleX=element.offsetWidth>0&&round(clientRect.width)/element.offsetWidth||1,scaleY=element.offsetHeight>0&&round(clientRect.height)/element.offsetHeight||1);var _ref=isElement(element)?getWindow(element):window,visualViewport=_ref.visualViewport,addVisualOffsets=!isLayoutViewport()&&isFixedStrategy,x=(clientRect.left+(addVisualOffsets&&visualViewport?visualViewport.offsetLeft:0))/scaleX,y=(clientRect.top+(addVisualOffsets&&visualViewport?visualViewport.offsetTop:0))/scaleY,width=clientRect.width/scaleX,height=clientRect.height/scaleY;return{width,height,top:y,right:x+width,bottom:y+height,left:x,x,y}}function getLayoutRect(element){var clientRect=getBoundingClientRect(element),width=element.offsetWidth,height=element.offsetHeight;return Math.abs(clientRect.width-width)<=1&&(width=clientRect.width),Math.abs(clientRect.height-height)<=1&&(height=clientRect.height),{x:element.offsetLeft,y:element.offsetTop,width,height}}function contains(parent,child){var rootNode=child.getRootNode&&child.getRootNode();if(parent.contains(child))return!0;if(rootNode&&isShadowRoot(rootNode)){var next=child;do{if(next&&parent.isSameNode(next))return!0;next=next.parentNode||next.host}while(next)}return!1}function getComputedStyle2(element){return getWindow(element).getComputedStyle(element)}function isTableElement(element){return["table","td","th"].indexOf(getNodeName(element))>=0}function getDocumentElement(element){return((isElement(element)?element.ownerDocument:element.document)||window.document).documentElement}function getParentNode(element){return getNodeName(element)==="html"?element:element.assignedSlot||element.parentNode||(isShadowRoot(element)?element.host:null)||getDocumentElement(element)}function getTrueOffsetParent(element){return!isHTMLElement(element)||getComputedStyle2(element).position==="fixed"?null:element.offsetParent}function getContainingBlock(element){var isFirefox=/firefox/i.test(getUAString()),isIE=/Trident/i.test(getUAString());if(isIE&&isHTMLElement(element)){var elementCss=getComputedStyle2(element);if(elementCss.position==="fixed")return null}var currentNode=getParentNode(element);for(isShadowRoot(currentNode)&&(currentNode=currentNode.host);isHTMLElement(currentNode)&&["html","body"].indexOf(getNodeName(currentNode))<0;){var css=getComputedStyle2(currentNode);if(css.transform!=="none"||css.perspective!=="none"||css.contain==="paint"||["transform","perspective"].indexOf(css.willChange)!==-1||isFirefox&&css.willChange==="filter"||isFirefox&&css.filter&&css.filter!=="none")return currentNode;currentNode=currentNode.parentNode}return null}function getOffsetParent(element){for(var window2=getWindow(element),offsetParent=getTrueOffsetParent(element);offsetParent&&isTableElement(offsetParent)&&getComputedStyle2(offsetParent).position==="static";)offsetParent=getTrueOffsetParent(offsetParent);return offsetParent&&(getNodeName(offsetParent)==="html"||getNodeName(offsetParent)==="body"&&getComputedStyle2(offsetParent).position==="static")?window2:offsetParent||getContainingBlock(element)||window2}function getMainAxisFromPlacement(placement){return["top","bottom"].indexOf(placement)>=0?"x":"y"}function within(min2,value,max2){return max(min2,min(value,max2))}function withinMaxClamp(min2,value,max2){var v=within(min2,value,max2);return v>max2?max2:v}function getFreshSideObject(){return{top:0,right:0,bottom:0,left:0}}function mergePaddingObject(paddingObject){return Object.assign({},getFreshSideObject(),paddingObject)}function expandToHashMap(value,keys){return keys.reduce(function(hashMap,key){return hashMap[key]=value,hashMap},{})}var toPaddingObject=function(padding,state){return padding=typeof padding=="function"?padding(Object.assign({},state.rects,{placement:state.placement})):padding,mergePaddingObject(typeof padding!="number"?padding:expandToHashMap(padding,basePlacements))};function arrow(_ref){var _state$modifiersData$,state=_ref.state,name=_ref.name,options=_ref.options,arrowElement=state.elements.arrow,popperOffsets2=state.modifiersData.popperOffsets,basePlacement=getBasePlacement(state.placement),axis=getMainAxisFromPlacement(basePlacement),isVertical=[left,right].indexOf(basePlacement)>=0,len=isVertical?"height":"width";if(!(!arrowElement||!popperOffsets2)){var paddingObject=toPaddingObject(options.padding,state),arrowRect=getLayoutRect(arrowElement),minProp=axis==="y"?top:left,maxProp=axis==="y"?bottom:right,endDiff=state.rects.reference[len]+state.rects.reference[axis]-popperOffsets2[axis]-state.rects.popper[len],startDiff=popperOffsets2[axis]-state.rects.reference[axis],arrowOffsetParent=getOffsetParent(arrowElement),clientSize=arrowOffsetParent?axis==="y"?arrowOffsetParent.clientHeight||0:arrowOffsetParent.clientWidth||0:0,centerToReference=endDiff/2-startDiff/2,min2=paddingObject[minProp],max2=clientSize-arrowRect[len]-paddingObject[maxProp],center=clientSize/2-arrowRect[len]/2+centerToReference,offset3=within(min2,center,max2),axisProp=axis;state.modifiersData[name]=(_state$modifiersData$={},_state$modifiersData$[axisProp]=offset3,_state$modifiersData$.centerOffset=offset3-center,_state$modifiersData$)}}function effect3(_ref2){var state=_ref2.state,options=_ref2.options,_options$element=options.element,arrowElement=_options$element===void 0?"[data-popper-arrow]":_options$element;if(arrowElement!=null&&!(typeof arrowElement=="string"&&(arrowElement=state.elements.popper.querySelector(arrowElement),!arrowElement))){if(isHTMLElement(arrowElement)||console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).',"To use an SVG arrow, wrap it in an HTMLElement that will be used as","the arrow."].join(" ")),!contains(state.elements.popper,arrowElement)){console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" "));return}state.elements.arrow=arrowElement}}var arrow_default={name:"arrow",enabled:!0,phase:"main",fn:arrow,effect:effect3,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function getVariation(placement){return placement.split("-")[1]}var unsetSides={top:"auto",right:"auto",bottom:"auto",left:"auto"};function roundOffsetsByDPR(_ref){var x=_ref.x,y=_ref.y,win=window,dpr=win.devicePixelRatio||1;return{x:round(x*dpr)/dpr||0,y:round(y*dpr)/dpr||0}}function mapToStyles(_ref2){var _Object$assign2,popper2=_ref2.popper,popperRect=_ref2.popperRect,placement=_ref2.placement,variation=_ref2.variation,offsets=_ref2.offsets,position=_ref2.position,gpuAcceleration=_ref2.gpuAcceleration,adaptive=_ref2.adaptive,roundOffsets=_ref2.roundOffsets,isFixed=_ref2.isFixed,_offsets$x=offsets.x,x=_offsets$x===void 0?0:_offsets$x,_offsets$y=offsets.y,y=_offsets$y===void 0?0:_offsets$y,_ref3=typeof roundOffsets=="function"?roundOffsets({x,y}):{x,y};x=_ref3.x,y=_ref3.y;var hasX=offsets.hasOwnProperty("x"),hasY=offsets.hasOwnProperty("y"),sideX=left,sideY=top,win=window;if(adaptive){var offsetParent=getOffsetParent(popper2),heightProp="clientHeight",widthProp="clientWidth";if(offsetParent===getWindow(popper2)&&(offsetParent=getDocumentElement(popper2),getComputedStyle2(offsetParent).position!=="static"&&position==="absolute"&&(heightProp="scrollHeight",widthProp="scrollWidth")),offsetParent=offsetParent,placement===top||(placement===left||placement===right)&&variation===end){sideY=bottom;var offsetY=isFixed&&offsetParent===win&&win.visualViewport?win.visualViewport.height:offsetParent[heightProp];y-=offsetY-popperRect.height,y*=gpuAcceleration?1:-1}if(placement===left||(placement===top||placement===bottom)&&variation===end){sideX=right;var offsetX=isFixed&&offsetParent===win&&win.visualViewport?win.visualViewport.width:offsetParent[widthProp];x-=offsetX-popperRect.width,x*=gpuAcceleration?1:-1}}var commonStyles=Object.assign({position},adaptive&&unsetSides),_ref4=roundOffsets===!0?roundOffsetsByDPR({x,y}):{x,y};if(x=_ref4.x,y=_ref4.y,gpuAcceleration){var _Object$assign;return Object.assign({},commonStyles,(_Object$assign={},_Object$assign[sideY]=hasY?"0":"",_Object$assign[sideX]=hasX?"0":"",_Object$assign.transform=(win.devicePixelRatio||1)<=1?"translate("+x+"px, "+y+"px)":"translate3d("+x+"px, "+y+"px, 0)",_Object$assign))}return Object.assign({},commonStyles,(_Object$assign2={},_Object$assign2[sideY]=hasY?y+"px":"",_Object$assign2[sideX]=hasX?x+"px":"",_Object$assign2.transform="",_Object$assign2))}function computeStyles(_ref5){var state=_ref5.state,options=_ref5.options,_options$gpuAccelerat=options.gpuAcceleration,gpuAcceleration=_options$gpuAccelerat===void 0?!0:_options$gpuAccelerat,_options$adaptive=options.adaptive,adaptive=_options$adaptive===void 0?!0:_options$adaptive,_options$roundOffsets=options.roundOffsets,roundOffsets=_options$roundOffsets===void 0?!0:_options$roundOffsets,transitionProperty=getComputedStyle2(state.elements.popper).transitionProperty||"";adaptive&&["transform","top","right","bottom","left"].some(function(property){return transitionProperty.indexOf(property)>=0})&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',`
285
285
 
286
286
  `,'Disable the "computeStyles" modifier\'s `adaptive` option to allow',"for smooth transitions, or remove these properties from the CSS","transition declaration on the popper element if only transitioning","opacity or background-color for example.",`
287
287
 
@@ -799,7 +799,7 @@ ${end2.comment}`:end2.comment}this.doc.range[2]=end2.offset;break}default:this.e
799
799
  `],encapsulation:2})}return ColorPickerComponent2})(),NG_DEV_MODE=!1,ColorPickerDirective=(()=>{class ColorPickerDirective2{injector;appRef;vcRef;elRef;dialog;dialogCreated=!1;ignoreChanges=!1;cmpRef;viewAttachedToAppRef=!1;colorPicker;cpWidth="230px";cpHeight="auto";cpToggle=!1;cpDisabled=!1;cpIgnoredElements=[];cpFallbackColor="";cpColorMode="color";cpCmykEnabled=!1;cpOutputFormat="auto";cpAlphaChannel="enabled";cpDisableInput=!1;cpDialogDisplay="popup";cpSaveClickOutside=!0;cpCloseClickOutside=!0;cpUseRootViewContainer=!1;cpPosition="auto";cpPositionOffset="0%";cpPositionRelativeToArrow=!1;cpOKButton=!1;cpOKButtonText="OK";cpOKButtonClass="cp-ok-button-class";cpCancelButton=!1;cpCancelButtonText="Cancel";cpCancelButtonClass="cp-cancel-button-class";cpEyeDropper=!1;cpPresetLabel="Preset colors";cpPresetColors;cpPresetColorsClass="cp-preset-colors-class";cpMaxPresetColorsLength=6;cpPresetEmptyMessage="No colors added";cpPresetEmptyMessageClass="preset-empty-message";cpAddColorButton=!1;cpAddColorButtonText="Add color";cpAddColorButtonClass="cp-add-color-button-class";cpRemoveColorButtonClass="cp-remove-color-button-class";cpArrowPosition=0;cpExtraTemplate;cpInputChange=new EventEmitter(!0);cpToggleChange=new EventEmitter(!0);cpSliderChange=new EventEmitter(!0);cpSliderDragEnd=new EventEmitter(!0);cpSliderDragStart=new EventEmitter(!0);colorPickerOpen=new EventEmitter(!0);colorPickerClose=new EventEmitter(!0);colorPickerCancel=new EventEmitter(!0);colorPickerSelect=new EventEmitter(!0);colorPickerChange=new EventEmitter(!1);cpCmykColorChange=new EventEmitter(!0);cpPresetColorsChange=new EventEmitter(!0);handleClick(){this.inputFocus()}handleFocus(){this.inputFocus()}handleInput(event2){this.inputChange(event2)}constructor(injector,appRef,vcRef,elRef){this.injector=injector,this.appRef=appRef,this.vcRef=vcRef,this.elRef=elRef}ngOnDestroy(){this.cmpRef!=null&&(this.viewAttachedToAppRef&&this.appRef.detachView(this.cmpRef.hostView),this.cmpRef.destroy(),this.cmpRef=null,this.dialog=null)}ngOnChanges(changes){changes.cpToggle&&!this.cpDisabled&&(changes.cpToggle.currentValue?this.openDialog():changes.cpToggle.currentValue||this.closeDialog()),changes.colorPicker&&(this.dialog&&!this.ignoreChanges&&(this.cpDialogDisplay==="inline"&&this.dialog.setInitialColor(changes.colorPicker.currentValue),this.dialog.setColorFromString(changes.colorPicker.currentValue,!1),this.cpUseRootViewContainer&&this.cpDialogDisplay!=="inline"&&this.cmpRef.changeDetectorRef.detectChanges()),this.ignoreChanges=!1),(changes.cpPresetLabel||changes.cpPresetColors)&&this.dialog&&this.dialog.setPresetConfig(this.cpPresetLabel,this.cpPresetColors)}openDialog(){if(this.dialogCreated)this.dialog&&(this.cmpRef.instance.cpAlphaChannel=this.cpAlphaChannel,this.dialog.openDialog(this.colorPicker));else{let vcRef=this.vcRef;if(this.dialogCreated=!0,this.viewAttachedToAppRef=!1,this.cpUseRootViewContainer&&this.cpDialogDisplay!=="inline"){let classOfRootComponent=this.appRef.componentTypes[0],appInstance=this.injector.get(classOfRootComponent,Injector.NULL);appInstance!==Injector.NULL?(vcRef=appInstance.vcRef||appInstance.viewContainerRef||this.vcRef,NG_DEV_MODE&&vcRef===this.vcRef&&console.warn("You are using cpUseRootViewContainer, but the root component is not exposing viewContainerRef!Please expose it by adding 'public vcRef: ViewContainerRef' to the constructor.")):this.viewAttachedToAppRef=!0}if(this.viewAttachedToAppRef)this.cmpRef=vcRef.createComponent(ColorPickerComponent,{injector:this.injector}),this.appRef.attachView(this.cmpRef.hostView),document.body.appendChild(this.cmpRef.hostView.rootNodes[0]);else{let injector=Injector.create({providers:[],parent:vcRef.injector});this.cmpRef=vcRef.createComponent(ColorPickerComponent,{injector,index:0})}this.cmpRef.instance.setupDialog(this,this.elRef,this.colorPicker,this.cpWidth,this.cpHeight,this.cpDialogDisplay,this.cpFallbackColor,this.cpColorMode,this.cpCmykEnabled,this.cpAlphaChannel,this.cpOutputFormat,this.cpDisableInput,this.cpIgnoredElements,this.cpSaveClickOutside,this.cpCloseClickOutside,this.cpUseRootViewContainer,this.cpPosition,this.cpPositionOffset,this.cpPositionRelativeToArrow,this.cpPresetLabel,this.cpPresetColors,this.cpPresetColorsClass,this.cpMaxPresetColorsLength,this.cpPresetEmptyMessage,this.cpPresetEmptyMessageClass,this.cpOKButton,this.cpOKButtonClass,this.cpOKButtonText,this.cpCancelButton,this.cpCancelButtonClass,this.cpCancelButtonText,this.cpAddColorButton,this.cpAddColorButtonClass,this.cpAddColorButtonText,this.cpRemoveColorButtonClass,this.cpEyeDropper,this.elRef,this.cpExtraTemplate),this.dialog=this.cmpRef.instance,this.vcRef!==vcRef&&this.cmpRef.changeDetectorRef.detectChanges()}}closeDialog(){this.dialog&&this.cpDialogDisplay==="popup"&&this.dialog.closeDialog()}cmykChanged(value){this.cpCmykColorChange.emit(value)}stateChanged(state){this.cpToggleChange.emit(state),state?this.colorPickerOpen.emit(this.colorPicker):this.colorPickerClose.emit(this.colorPicker)}colorChanged(value,ignore=!0){this.ignoreChanges=ignore,this.colorPickerChange.emit(value)}colorSelected(value){this.colorPickerSelect.emit(value)}colorCanceled(){this.colorPickerCancel.emit()}inputFocus(){let element=this.elRef.nativeElement,ignored=this.cpIgnoredElements.filter(item=>item===element);!this.cpDisabled&&!ignored.length&&(typeof document<"u"&&element===document.activeElement?this.openDialog():!this.dialog||!this.dialog.show?this.openDialog():this.closeDialog())}inputChange(event2){this.dialog?this.dialog.setColorFromString(event2.target.value,!0):(this.colorPicker=event2.target.value,this.colorPickerChange.emit(this.colorPicker))}inputChanged(event2){this.cpInputChange.emit(event2)}sliderChanged(event2){this.cpSliderChange.emit(event2)}sliderDragEnd(event2){this.cpSliderDragEnd.emit(event2)}sliderDragStart(event2){this.cpSliderDragStart.emit(event2)}presetColorsChanged(value){this.cpPresetColorsChange.emit(value)}static \u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||ColorPickerDirective2)(\u0275\u0275directiveInject(Injector),\u0275\u0275directiveInject(ApplicationRef),\u0275\u0275directiveInject(ViewContainerRef),\u0275\u0275directiveInject(ElementRef))};static \u0275dir=\u0275\u0275defineDirective({type:ColorPickerDirective2,selectors:[["","colorPicker",""]],hostBindings:function(rf,ctx){rf&1&&\u0275\u0275listener("click",function(){return ctx.handleClick()})("focus",function(){return ctx.handleFocus()})("input",function($event){return ctx.handleInput($event)})},inputs:{colorPicker:"colorPicker",cpWidth:"cpWidth",cpHeight:"cpHeight",cpToggle:"cpToggle",cpDisabled:"cpDisabled",cpIgnoredElements:"cpIgnoredElements",cpFallbackColor:"cpFallbackColor",cpColorMode:"cpColorMode",cpCmykEnabled:"cpCmykEnabled",cpOutputFormat:"cpOutputFormat",cpAlphaChannel:"cpAlphaChannel",cpDisableInput:"cpDisableInput",cpDialogDisplay:"cpDialogDisplay",cpSaveClickOutside:"cpSaveClickOutside",cpCloseClickOutside:"cpCloseClickOutside",cpUseRootViewContainer:"cpUseRootViewContainer",cpPosition:"cpPosition",cpPositionOffset:"cpPositionOffset",cpPositionRelativeToArrow:"cpPositionRelativeToArrow",cpOKButton:"cpOKButton",cpOKButtonText:"cpOKButtonText",cpOKButtonClass:"cpOKButtonClass",cpCancelButton:"cpCancelButton",cpCancelButtonText:"cpCancelButtonText",cpCancelButtonClass:"cpCancelButtonClass",cpEyeDropper:"cpEyeDropper",cpPresetLabel:"cpPresetLabel",cpPresetColors:"cpPresetColors",cpPresetColorsClass:"cpPresetColorsClass",cpMaxPresetColorsLength:"cpMaxPresetColorsLength",cpPresetEmptyMessage:"cpPresetEmptyMessage",cpPresetEmptyMessageClass:"cpPresetEmptyMessageClass",cpAddColorButton:"cpAddColorButton",cpAddColorButtonText:"cpAddColorButtonText",cpAddColorButtonClass:"cpAddColorButtonClass",cpRemoveColorButtonClass:"cpRemoveColorButtonClass",cpArrowPosition:"cpArrowPosition",cpExtraTemplate:"cpExtraTemplate"},outputs:{cpInputChange:"cpInputChange",cpToggleChange:"cpToggleChange",cpSliderChange:"cpSliderChange",cpSliderDragEnd:"cpSliderDragEnd",cpSliderDragStart:"cpSliderDragStart",colorPickerOpen:"colorPickerOpen",colorPickerClose:"colorPickerClose",colorPickerCancel:"colorPickerCancel",colorPickerSelect:"colorPickerSelect",colorPickerChange:"colorPickerChange",cpCmykColorChange:"cpCmykColorChange",cpPresetColorsChange:"cpPresetColorsChange"},exportAs:["ngxColorPicker"],features:[\u0275\u0275NgOnChangesFeature]})}return ColorPickerDirective2})();var COLOR_SETS=[["#000000","#444444","#888888","#CCCCCC","#FFFFFF"],["#B5151D","#D5252C","#FB3633","#E86669","#F4B1AD"],["#FF561B","#FF6A22","#FF8B38","#FFA857","#FFC279"],["#E2A92A","#F7C333","#FFD741","#FFE95B","#FFF697"],["#2C7B30","#499C4A","#65B665","#89D388","#BFF0BE"],["#0058B8","#006BCF","#388CEB","#46AEF1","#ADDAF8"],["#5E1D8B","#83249C","#A058C2","#C38BDD","#DDB6E1"]];var COLOR_PICKER_PANEL_DATA=new InjectionToken("ColorPickerPanelData");var import_tinycolor2=__toESM(require_tinycolor());function mapColorToPanelOption(color,config3){let dark=(0,import_tinycolor2.default)(color).getLuminance()<.2,selected=config3?.selectedColor?import_tinycolor2.default.equals(color,config3.selectedColor):!1,outline=config3?.containerBgColor?import_tinycolor2.default.readability(color,config3.containerBgColor)<=1.2:!1;return{color,dark,outline,selected}}var _forTrack04=($index,$item)=>$item.color;function ColorPickerPanelComponent_Conditional_0_For_2_Template(rf,ctx){if(rf&1){let _r1=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"div",3),\u0275\u0275listener("click",function(){let option_r2=\u0275\u0275restoreView(_r1).$implicit,ctx_r2=\u0275\u0275nextContext(2);return \u0275\u0275resetView(ctx_r2.applyColor(option_r2.color))}),\u0275\u0275element(1,"div",4),\u0275\u0275elementEnd()}if(rf&2){let option_r2=ctx.$implicit;\u0275\u0275classProp("selected",option_r2.selected),\u0275\u0275attribute("data-value",option_r2.color),\u0275\u0275advance(),\u0275\u0275styleProp("background",option_r2.color),\u0275\u0275classProp("color-icon--dark",option_r2.dark)("color-icon--outline",option_r2.outline)}}function ColorPickerPanelComponent_Conditional_0_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"div",0),\u0275\u0275repeaterCreate(1,ColorPickerPanelComponent_Conditional_0_For_2_Template,2,9,"div",2,_forTrack04),\u0275\u0275elementEnd()),rf&2){let ctx_r2=\u0275\u0275nextContext();\u0275\u0275advance(),\u0275\u0275repeater(ctx_r2.colorSets()[0])}}function ColorPickerPanelComponent_Conditional_1_For_6_For_1_Template(rf,ctx){if(rf&1){let _r5=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"div",3),\u0275\u0275listener("click",function(){let option_r6=\u0275\u0275restoreView(_r5).$implicit,ctx_r2=\u0275\u0275nextContext(3);return \u0275\u0275resetView(ctx_r2.applyColor(option_r6.color))}),\u0275\u0275element(1,"div",4),\u0275\u0275elementEnd()}if(rf&2){let option_r6=ctx.$implicit;\u0275\u0275classProp("selected",option_r6.selected),\u0275\u0275attribute("data-value",option_r6.color),\u0275\u0275advance(),\u0275\u0275styleProp("background",option_r6.color),\u0275\u0275classProp("color-icon--dark",option_r6.dark)("color-icon--outline",option_r6.outline)}}function ColorPickerPanelComponent_Conditional_1_For_6_Template(rf,ctx){if(rf&1&&\u0275\u0275repeaterCreate(0,ColorPickerPanelComponent_Conditional_1_For_6_For_1_Template,2,9,"div",2,_forTrack04),rf&2){let options_r7=ctx.$implicit;\u0275\u0275repeater(options_r7)}}function ColorPickerPanelComponent_Conditional_1_Conditional_7_For_2_Template(rf,ctx){if(rf&1){let _r8=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"div",3),\u0275\u0275listener("click",function(){let option_r9=\u0275\u0275restoreView(_r8).$implicit,ctx_r2=\u0275\u0275nextContext(3);return \u0275\u0275resetView(ctx_r2.applyColor(option_r9.color))}),\u0275\u0275element(1,"div",4),\u0275\u0275elementEnd()}if(rf&2){let option_r9=ctx.$implicit;\u0275\u0275classProp("selected",option_r9.selected),\u0275\u0275attribute("data-value",option_r9.color),\u0275\u0275advance(),\u0275\u0275styleProp("background",option_r9.color),\u0275\u0275classProp("color-icon--dark",option_r9.dark)("color-icon--outline",option_r9.outline)}}function ColorPickerPanelComponent_Conditional_1_Conditional_7_Template(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"div",7),\u0275\u0275repeaterCreate(1,ColorPickerPanelComponent_Conditional_1_Conditional_7_For_2_Template,2,9,"div",2,_forTrack04),\u0275\u0275elementEnd()),rf&2&&(\u0275\u0275advance(),\u0275\u0275repeater(ctx))}function ColorPickerPanelComponent_Conditional_1_Template(rf,ctx){if(rf&1){let _r4=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"mat-tab-group",1)(1,"mat-tab",5),\u0275\u0275pipe(2,"translate"),\u0275\u0275elementStart(3,"div",6)(4,"div",0),\u0275\u0275repeaterCreate(5,ColorPickerPanelComponent_Conditional_1_For_6_Template,2,0,null,null,\u0275\u0275repeaterTrackByIndex),\u0275\u0275elementEnd(),\u0275\u0275template(7,ColorPickerPanelComponent_Conditional_1_Conditional_7_Template,3,0,"div",7),\u0275\u0275elementEnd()(),\u0275\u0275elementStart(8,"mat-tab",5),\u0275\u0275pipe(9,"translate"),\u0275\u0275elementStart(10,"div",6)(11,"span",8),\u0275\u0275listener("colorPickerChange",function($event){\u0275\u0275restoreView(_r4);let ctx_r2=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r2.selectedColor.set($event))}),\u0275\u0275elementEnd()()()()}if(rf&2){let tmp_5_0,tmp_9_0,ctx_r2=\u0275\u0275nextContext();\u0275\u0275property("disablePagination",!0)("selectedIndex",ctx_r2.tabIndex),\u0275\u0275advance(),\u0275\u0275property("label",\u0275\u0275pipeBind1(2,8,"COLORS")),\u0275\u0275advance(4),\u0275\u0275repeater(ctx_r2.colorSets()),\u0275\u0275advance(2),\u0275\u0275conditional((tmp_5_0=ctx_r2.extraColorSet())?7:-1,tmp_5_0),\u0275\u0275advance(),\u0275\u0275property("label",\u0275\u0275pipeBind1(9,10,"CUSTOM")),\u0275\u0275advance(3),\u0275\u0275property("cpDialogDisplay","inline")("cpToggle",!0)("colorPicker",(tmp_9_0=ctx_r2.selectedColor())!==null&&tmp_9_0!==void 0?tmp_9_0:"#FFFFFF")}}var ColorPickerPanelComponent=(()=>{let _ColorPickerPanelComponent=class _ColorPickerPanelComponent{constructor(){this.doc=inject(DOCUMENT),this.data=inject(COLOR_PICKER_PANEL_DATA),this.ref=inject(ColorPickerPanelRef),this.isMinimal=!!this.data.colors?.some(isString_default),this.containerBgColor=getComputedStyle(this.doc.body).getPropertyValue("--mat-sys-surface-container-highest"),this.selectedColor=signal(this.data.color),this.tabIndex=0,this.colorSets=computed(()=>{let colorSets=this.data.colors?.length?this.isMinimal?[this.data.colors]:this.data.colors:COLOR_SETS,config3={selectedColor:this.selectedColor(),containerBgColor:this.containerBgColor};return colorSets.map(colors=>colors.map(color=>mapColorToPanelOption(color,config3)))}),this.extraColorSet=computed(()=>{let config3={selectedColor:this.selectedColor(),containerBgColor:this.containerBgColor};return this.data.extraColors?.map(color=>mapColorToPanelOption(color,config3))});let options=[...this.colorSets(),this.extraColorSet()??[]].flat();this.tabIndex=this.data.color?options.some(({selected})=>selected)?0:1:0}ngOnDestroy(){this.ref.close(this.selectedColor())}applyColor(color){this.selectedColor.set(color),this.ref.close(this.selectedColor())}onEscapeHandler(event2){event2.stopPropagation(),event2.preventDefault(),this.ref.close()}};_ColorPickerPanelComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_ColorPickerPanelComponent)},_ColorPickerPanelComponent.\u0275cmp=\u0275\u0275defineComponent({type:_ColorPickerPanelComponent,selectors:[["ix-color-picker-panel"]],hostVars:2,hostBindings:function(rf,ctx){rf&1&&\u0275\u0275listener("keydown.escape",function($event){return ctx.onEscapeHandler($event)},!1,\u0275\u0275resolveDocument),rf&2&&\u0275\u0275classProp("minimal",ctx.isMinimal)},decls:2,vars:1,consts:[[1,"color-set"],["mat-stretch-tabs","","dynamicHeight","",3,"disablePagination","selectedIndex"],["data-testid","color-picker-panel-option",1,"color",3,"selected"],["data-testid","color-picker-panel-option",1,"color",3,"click"],[1,"color-icon"],[3,"label"],[1,"content"],[1,"color-set","color-set--extra"],["cpAlphaChannel","disabled",3,"colorPickerChange","cpDialogDisplay","cpToggle","colorPicker"]],template:function(rf,ctx){rf&1&&\u0275\u0275template(0,ColorPickerPanelComponent_Conditional_0_Template,3,0,"div",0)(1,ColorPickerPanelComponent_Conditional_1_Template,12,12,"mat-tab-group",1),rf&2&&\u0275\u0275conditional(ctx.isMinimal?0:1)},dependencies:[MatTabsModule,MatTab,MatTabGroup,TranslateModule,TranslatePipe,ColorPickerDirective],styles:['@keyframes _ngcontent-%COMP%_zoom-in{0%{transform:scale(.75);opacity:.9}to{transform:scale(1);opacity:1}}[_nghost-%COMP%]{--mat-tab-header-divider-color: var(--mat-sys-outline-variant);min-width:262px;height:fit-content;background-color:var(--mat-sys-surface-container);color:var(--mat-sys-on-surface-container);animation:_ngcontent-%COMP%_zoom-in .14s cubic-bezier(0,0,.2,1) both;border-radius:8px;box-shadow:0 1px 1px #00000024,0 2px 1px -1px #0000001f,0 1px 3px #0003;transform-origin:top left}.minimal[_nghost-%COMP%]{min-width:193px}.minimal[_nghost-%COMP%] .color-set[_ngcontent-%COMP%]{padding:0 4px;grid-template-columns:repeat(auto-fill,minmax(28px,1fr));gap:1px}.minimal[_nghost-%COMP%] .color-set[_ngcontent-%COMP%] .color[_ngcontent-%COMP%] .color-icon[_ngcontent-%COMP%]{height:20px;width:20px;border-radius:10px;margin:8px auto}.minimal[_nghost-%COMP%] .color-set[_ngcontent-%COMP%] .color.selected[_ngcontent-%COMP%] .color-icon[_ngcontent-%COMP%]:after{line-height:20px;text-indent:0}[_nghost-%COMP%] .mat-mdc-tab-group[_ngcontent-%COMP%]{--mdc-secondary-navigation-tab-container-height: 40px}[_nghost-%COMP%] .content[_ngcontent-%COMP%]{padding:16px}[_nghost-%COMP%] .color-set[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fill,minmax(36px,1fr));gap:12px}[_nghost-%COMP%] .color-set.color-set--extra[_ngcontent-%COMP%]{padding:12px 0 0;margin-top:12px;border-top:1px solid var(--mat-sys-outline-variant)}[_nghost-%COMP%] .color[_ngcontent-%COMP%]{display:block;cursor:pointer}[_nghost-%COMP%] .color[_ngcontent-%COMP%] .color-icon[_ngcontent-%COMP%]{display:block;height:24px;width:24px;border-radius:12px;margin:auto;color:#000}[_nghost-%COMP%] .color[_ngcontent-%COMP%] .color-icon.color-icon--dark[_ngcontent-%COMP%]{color:#fff}[_nghost-%COMP%] .color[_ngcontent-%COMP%] .color-icon.color-icon--outline[_ngcontent-%COMP%]{box-shadow:0 0 0 1px color-mix(in srgb,transparent,var(--mat-sys-on-surface) 12%)}[_nghost-%COMP%] .color[_ngcontent-%COMP%]:hover .color-icon[_ngcontent-%COMP%]{box-shadow:0 0 0 5px color-mix(in srgb,var(--mat-sys-surface-container),var(--mat-sys-on-surface) 8%)}[_nghost-%COMP%] .color.selected[_ngcontent-%COMP%] .color-icon[_ngcontent-%COMP%]{position:relative}[_nghost-%COMP%] .color.selected[_ngcontent-%COMP%] .color-icon[_ngcontent-%COMP%]:after{content:"check";position:absolute;inset:0;z-index:1;font-family:Material Symbols Outlined;font-size:16px;text-indent:1px;line-height:24px;text-align:center;pointer-events:none}[_nghost-%COMP%] .actions[_ngcontent-%COMP%]{padding:8px}[_nghost-%COMP%] .color-picker{border:none!important;background-color:transparent!important}[_nghost-%COMP%] .mat-mdc-tab-label{height:40px;min-width:130px}[_nghost-%COMP%] .mat-mdc-tab-header .mdc-tab:first-child .mdc-tab__ripple:before, [_nghost-%COMP%] .mat-mdc-tab-header .mdc-tab:first-child .mat-mdc-tab-ripple{border-top-right-radius:0}[_nghost-%COMP%] .mat-mdc-tab-header .mdc-tab:last-child .mdc-tab__ripple:before, [_nghost-%COMP%] .mat-mdc-tab-header .mdc-tab:last-child .mat-mdc-tab-ripple{border-top-left-radius:0}'],changeDetection:0});let ColorPickerPanelComponent2=_ColorPickerPanelComponent;return ColorPickerPanelComponent2})();var ColorPickerPanelService=(()=>{let _ColorPickerPanelService=class _ColorPickerPanelService{constructor(){this.injector=inject(Injector),this.overlay=inject(Overlay)}show(origin,data){let overlayRef=this.createOverlay(origin,data),instance=new ColorPickerPanelRef(overlayRef);return this.attachPanelContainer(overlayRef,instance,data),instance}createOverlay(origin,data){let overlayRef=this.overlay.create(this.getOverlayConfig(origin,data));return overlayRef.backdropClick().subscribe(()=>overlayRef.dispose()),overlayRef}createInjector(panelRef,data){let injectionTokens=new WeakMap;return injectionTokens.set(ColorPickerPanelRef,panelRef),injectionTokens.set(COLOR_PICKER_PANEL_DATA,data),new PortalInjector(this.injector,injectionTokens)}attachPanelContainer(overlayRef,panelRef,data){let injector=this.createInjector(panelRef,data),containerPortal=new ComponentPortal(ColorPickerPanelComponent,null,injector);return overlayRef.attach(containerPortal).instance}getOverlayConfig(origin,data){let positionStrategy=this.overlay.position().flexibleConnectedTo(origin).withPositions([{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top",offsetY:data.offsetY??0},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",offsetY:data.offsetY??0}]);return new OverlayConfig({hasBackdrop:!0,backdropClass:"overlay-transparent-backdrop",panelClass:"ix-color-picker-container",minWidth:262,maxWidth:262,scrollStrategy:this.overlay.scrollStrategies.noop(),positionStrategy})}};_ColorPickerPanelService.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_ColorPickerPanelService)},_ColorPickerPanelService.\u0275prov=\u0275\u0275defineInjectable({token:_ColorPickerPanelService,factory:_ColorPickerPanelService.\u0275fac,providedIn:"root"});let ColorPickerPanelService2=_ColorPickerPanelService;return ColorPickerPanelService2})();var _c012=["button"],_c14=a0=>({"color--error":a0}),_c24=(a0,a1)=>({"color--error":a0,"color--outline":a1});function ColorInputComponent_Conditional_0_Template(rf,ctx){if(rf&1&&(\u0275\u0275element(0,"p",1),\u0275\u0275pipe(1,"renderMarkdown")),rf&2){let ctx_r1=\u0275\u0275nextContext();\u0275\u0275property("innerHTML",\u0275\u0275pipeBind1(1,1,ctx_r1.field.inputDescription.description),\u0275\u0275sanitizeHtml)}}function ColorInputComponent_Conditional_7_Template(rf,ctx){if(rf&1&&\u0275\u0275element(0,"div",11),rf&2){let ctx_r1=\u0275\u0275nextContext();\u0275\u0275styleProp("background",ctx_r1.value),\u0275\u0275property("ngClass",\u0275\u0275pureFunction2(3,_c24,ctx_r1.hasError,ctx_r1.hasOutline))}}function ColorInputComponent_Conditional_8_Template(rf,ctx){if(rf&1&&\u0275\u0275element(0,"div",7),rf&2){let ctx_r1=\u0275\u0275nextContext();\u0275\u0275property("ngClass",\u0275\u0275pureFunction1(1,_c14,ctx_r1.hasError))}}function ColorInputComponent_Conditional_9_Template(rf,ctx){if(rf&1){let _r3=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"button",12),\u0275\u0275listener("click",function(){\u0275\u0275restoreView(_r3);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.clear())}),\u0275\u0275elementStart(1,"mat-icon"),\u0275\u0275text(2,"close"),\u0275\u0275elementEnd()()}}function ColorInputComponent_Conditional_11_Template(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"mat-error",10),\u0275\u0275text(1,"__MESSAGE__.REQUIRED"),\u0275\u0275elementEnd())}var ColorInputComponent=(()=>{let _ColorInputComponent=class _ColorInputComponent extends ComponentInputComponent{get control(){return this.componentFormGroup.controls[this.field.inputName]}get required(){return this.control?.hasValidator(Validators.required)}get value(){return this.componentFormGroup.value[this.field.inputName]||null}constructor(cdRef,colorPickerPanelService){super(),this.cdRef=cdRef,this.colorPickerPanelService=colorPickerPanelService}ngOnInit(){this.hasOutline=this.testHasOutline(this.value),this.hasError=this.testHasError(this.control.status),this.control.statusChanges.subscribe(status=>{this.hasError=this.testHasError(status),this.cdRef.markForCheck()}),this.control.valueChanges.subscribe(value=>{this.hasOutline=this.testHasOutline(value),this.cdRef.markForCheck()})}clear(){this.control.setValue(null)}testHasError(status){return status==="INVALID"}testHasOutline(color){return color?(0,import_tinycolor22.default)(this.value).getLuminance()>.85:!0}toggleSelect(){this.colorPickerPanelService.show(this.buttonRef,{color:this.value,offsetY:-45}).afterClosed().subscribe(color=>{this.control.setValue(color)})}enterKeyDownHandler(event2){event2.target.blur()}};_ColorInputComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_ColorInputComponent)(\u0275\u0275directiveInject(ChangeDetectorRef),\u0275\u0275directiveInject(ColorPickerPanelService))},_ColorInputComponent.\u0275cmp=\u0275\u0275defineComponent({type:_ColorInputComponent,selectors:[["ix-color-input"]],viewQuery:function(rf,ctx){if(rf&1&&\u0275\u0275viewQuery(_c012,5,ElementRef),rf&2){let _t;\u0275\u0275queryRefresh(_t=\u0275\u0275loadQuery())&&(ctx.buttonRef=_t.first)}},standalone:!1,features:[\u0275\u0275InheritDefinitionFeature],decls:12,vars:8,consts:[["button",""],[1,"description",3,"innerHTML"],["fxLayout","column"],[1,"label",3,"ngClass"],["fxLayout","row"],["mat-icon-button","",1,"select-trigger-button",3,"keydown.enter","click"],[1,"color",3,"ngClass","background"],[1,"color","color--empty","color--outline",3,"ngClass"],["mat-icon-button",""],[1,"errors"],["translate",""],[1,"color",3,"ngClass"],["mat-icon-button","",3,"click"]],template:function(rf,ctx){if(rf&1){let _r1=\u0275\u0275getCurrentView();\u0275\u0275template(0,ColorInputComponent_Conditional_0_Template,2,3,"p",1),\u0275\u0275elementStart(1,"div",2)(2,"div",3),\u0275\u0275text(3),\u0275\u0275elementEnd(),\u0275\u0275elementStart(4,"div",4)(5,"button",5,0),\u0275\u0275listener("keydown.enter",function($event){return \u0275\u0275restoreView(_r1),\u0275\u0275resetView(ctx.enterKeyDownHandler($event))})("click",function(){return \u0275\u0275restoreView(_r1),\u0275\u0275resetView(ctx.toggleSelect())}),\u0275\u0275template(7,ColorInputComponent_Conditional_7_Template,1,6,"div",6)(8,ColorInputComponent_Conditional_8_Template,1,3,"div",7),\u0275\u0275elementEnd(),\u0275\u0275template(9,ColorInputComponent_Conditional_9_Template,3,0,"button",8),\u0275\u0275elementEnd(),\u0275\u0275elementStart(10,"div",9),\u0275\u0275template(11,ColorInputComponent_Conditional_11_Template,2,0,"mat-error",10),\u0275\u0275elementEnd()()}rf&2&&(\u0275\u0275conditional(ctx.field.inputDescription.description?0:-1),\u0275\u0275advance(2),\u0275\u0275property("ngClass",\u0275\u0275pureFunction1(6,_c14,ctx.hasError)),\u0275\u0275advance(),\u0275\u0275textInterpolate1(" ",ctx.field.inputDescription.label+(ctx.required?" *":"")," "),\u0275\u0275advance(4),\u0275\u0275conditional(ctx.value?7:8),\u0275\u0275advance(2),\u0275\u0275conditional(ctx.value?9:-1),\u0275\u0275advance(2),\u0275\u0275conditional(ctx.control.hasError("required")?11:-1))},dependencies:[NgClass,DefaultLayoutDirective,DefaultClassDirective,TranslateDirective,MatIconButton,MatError,MatIcon,RenderMarkdownPipe],styles:["[_nghost-%COMP%]{display:block;position:relative;padding-bottom:22px}[_nghost-%COMP%] .description[_ngcontent-%COMP%]{font-size:11px}[_nghost-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%] .label[_ngcontent-%COMP%]{margin-bottom:4px;transform-origin:top left;transform:scale(.75) perspective(100px) translateZ(.001px);font-size:14px;color:#0000008a}[_nghost-%COMP%] .label.color--error[_ngcontent-%COMP%]{color:var(--warn)}[_nghost-%COMP%] .errors[_ngcontent-%COMP%]{position:absolute;top:64px;left:0}[_nghost-%COMP%] .errors[_ngcontent-%COMP%] .mat-mdc-form-field-error[_ngcontent-%COMP%]{line-height:var(--mat-form-field-subscript-text-line-height);letter-spacing:var(--mat-form-field-subscript-text-tracking);font-size:11px}[_nghost-%COMP%] .mdc-icon-button[_ngcontent-%COMP%]{padding:0}[_nghost-%COMP%] .color[_ngcontent-%COMP%]{display:block;width:36px;height:36px;border-radius:18px;margin:2px}[_nghost-%COMP%] .color.color--outline[_ngcontent-%COMP%]{box-shadow:inset 0 0 0 1px rgba(var(--body-color-rgb),.16)}[_nghost-%COMP%] .color.color--empty[_ngcontent-%COMP%]{background-image:linear-gradient(45deg,#ccc 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#ccc 75%),linear-gradient(45deg,transparent 75%,#ccc 75%),linear-gradient(45deg,#ccc 25%,#fff 25%);background-size:16px 16px;background-position:0 0,0 0,-8px -8px,8px 8px}[_nghost-%COMP%] .color.color--empty.color--outline[_ngcontent-%COMP%]{box-shadow:inset 0 0 0 1px rgba(var(--body-color-rgb),.34)}[_nghost-%COMP%] .color.color--error[_ngcontent-%COMP%]{box-shadow:inset 0 0 0 1px var(--warn)!important}"]});let ColorInputComponent3=_ColorInputComponent;return ColorInputComponent3})();function DateInputComponent_Conditional_0_Template(rf,ctx){if(rf&1&&(\u0275\u0275element(0,"p",1),\u0275\u0275pipe(1,"renderMarkdown")),rf&2){let ctx_r1=\u0275\u0275nextContext();\u0275\u0275property("innerHTML",\u0275\u0275pipeBind1(1,1,ctx_r1.field.inputDescription.description),\u0275\u0275sanitizeHtml)}}function DateInputComponent_Conditional_10_Template(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"mat-error",5),\u0275\u0275text(1,"__MESSAGE__.REQUIRED"),\u0275\u0275elementEnd())}var DateInputComponent=(()=>{let _DateInputComponent=class _DateInputComponent extends ComponentInputComponent{constructor(){super(...arguments),this.formControl=new FormControl(""),this.destroy=inject(DestroyRef)}ngOnInit(){this.formControl.valueChanges.pipe(takeUntilDestroyed(this.destroy)).subscribe(date=>{this.formControl.valid&&this.control?.setValue(DateTime.fromISO(date).set({millisecond:0}).toUTC().toISO({suppressMilliseconds:!0}))}),this.formControl.setValidators(this.getValidators());let value=this.inputControl?.value||this.field.inputDescription.defaultValue;this.formControl.setValue(value?DateTime.fromISO(value):""),this.field.inputDescription.disabled&&this.formControl.disable()}get control(){return this.componentFormGroup.controls[this.field.inputName]}getValidators(){let validators=[],{required}=this.field.inputDescription;return required&&validators.push(Validators.required),validators}enterKeyDownHandler(event2){event2.target.blur()}};_DateInputComponent.\u0275fac=(()=>{let \u0275DateInputComponent_BaseFactory;return function(__ngFactoryType__){return(\u0275DateInputComponent_BaseFactory||(\u0275DateInputComponent_BaseFactory=\u0275\u0275getInheritedFactory(_DateInputComponent)))(__ngFactoryType__||_DateInputComponent)}})(),_DateInputComponent.\u0275cmp=\u0275\u0275defineComponent({type:_DateInputComponent,selectors:[["ix-date-input"]],standalone:!1,features:[\u0275\u0275InheritDefinitionFeature],decls:11,vars:8,consts:[["picker",""],[1,"description",3,"innerHTML"],[3,"formGroup"],["matInput","","data-lpignore","true","autocomplete","off",3,"keydown.enter","formControl","matDatepicker"],["matIconSuffix","",3,"for"],["translate",""]],template:function(rf,ctx){if(rf&1){let _r1=\u0275\u0275getCurrentView();\u0275\u0275template(0,DateInputComponent_Conditional_0_Template,2,3,"p",1),\u0275\u0275elementStart(1,"mat-form-field",2)(2,"mat-label"),\u0275\u0275text(3),\u0275\u0275elementEnd(),\u0275\u0275elementStart(4,"input",3),\u0275\u0275listener("keydown.enter",function($event){return \u0275\u0275restoreView(_r1),\u0275\u0275resetView(ctx.enterKeyDownHandler($event))}),\u0275\u0275elementEnd(),\u0275\u0275element(5,"mat-datepicker-toggle",4)(6,"mat-datepicker",null,0),\u0275\u0275elementStart(8,"mat-hint"),\u0275\u0275text(9),\u0275\u0275elementEnd(),\u0275\u0275template(10,DateInputComponent_Conditional_10_Template,2,0,"mat-error",5),\u0275\u0275elementEnd()}if(rf&2){let picker_r3=\u0275\u0275reference(7);\u0275\u0275conditional(ctx.field.inputDescription.description?0:-1),\u0275\u0275advance(),\u0275\u0275property("formGroup",ctx.componentFormGroup),\u0275\u0275advance(2),\u0275\u0275textInterpolate(ctx.field.inputDescription.label),\u0275\u0275advance(),\u0275\u0275property("formControl",ctx.formControl)("matDatepicker",picker_r3),\u0275\u0275advance(),\u0275\u0275property("for",picker_r3),\u0275\u0275advance(4),\u0275\u0275textInterpolate(ctx.field.inputDescription.hint),\u0275\u0275advance(),\u0275\u0275conditional(ctx.inputControl!=null&&ctx.inputControl.hasError("required")?10:-1)}},dependencies:[DefaultValueAccessor,NgControlStatus,NgControlStatusGroup,FormControlDirective,FormGroupDirective,TranslateDirective,MatDatepicker,MatDatepickerInput,MatDatepickerToggle,MatFormField,MatLabel,MatHint,MatError,MatSuffix,MatInput,RenderMarkdownPipe],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] .description[_ngcontent-%COMP%]{font-size:11px}[_nghost-%COMP%] .mat-datepicker-toggle[_ngcontent-%COMP%]{margin-right:4px}[_nghost-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]});let DateInputComponent3=_DateInputComponent;return DateInputComponent3})();var MAX_FILE_SIZE=1e7;function readFile(file,output2){return new Observable(subscriber=>{let reader=createFileReader();reader.addEventListener("abort",onAbort),reader.addEventListener("error",onError),reader.addEventListener("load",onLoad),reader.addEventListener("progress",onProgress);let method=`readAs${upperFirst_default(output2)}`;return reader[method]&&reader[method](file),()=>{reader.removeEventListener("abort",onAbort),reader.removeEventListener("error",onError),reader.removeEventListener("load",onLoad),reader.removeEventListener("progress",onProgress)};function onAbort(event2){subscriber.next({event:event2}),subscriber.complete()}function onProgress(event2){subscriber.next({event:event2})}function onError(event2){subscriber.error(event2),subscriber.complete()}function onLoad(event2){subscriber.next({event:event2,result:reader.result||void 0}),subscriber.complete()}})}function createFileReader(){let reader=new FileReader;return reader._realReader?reader._realReader:reader}function readFileAsDataURL(file){return readFile(file,"dataURL")}function getFilesFromEvent(event2){let files;return files=get_default(event2,"target.files",[]),files.length||(files=get_default(event2,"dataTransfer.files",[])),files}function mapMimeTypeToIcon(type){if(type.startsWith("image/"))return"image";if(type.startsWith("audio/"))return"audio_file";if(type.startsWith("video/"))return"video_file";switch(type){case"application/x-cdf":return"audio_file";case"application/vnd.rar":case"application/x-7z-compressed":case"application/x-bzip":case"application/x-bzip2":case"application/x-freearc":case"application/x-tar":case"application/zip":case"application/gzip":return"folder_zip";case"application/pdf":return"picture_as_pdf";default:return"insert_drive_file"}}function getHeightAndWidthFromDataUrl(dataURL){return new Promise(resolve=>{let img=new Image;img.onload=()=>{resolve({height:img.height,width:img.width})},img.src=dataURL})}var _c013=["fileInput"],_c15=["*"];function FileUploadButtonComponent_Case_2_ng_container_1_Template(rf,ctx){rf&1&&\u0275\u0275elementContainer(0)}function FileUploadButtonComponent_Case_2_Template(rf,ctx){if(rf&1){let _r2=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"button",8),\u0275\u0275listener("click",function(){\u0275\u0275restoreView(_r2),\u0275\u0275nextContext();let fileInput_r3=\u0275\u0275reference(1);return \u0275\u0275resetView(fileInput_r3.click())}),\u0275\u0275template(1,FileUploadButtonComponent_Case_2_ng_container_1_Template,1,0,"ng-container",9),\u0275\u0275elementEnd()}if(rf&2){let ctx_r3=\u0275\u0275nextContext(),innerContent_r5=\u0275\u0275reference(8);\u0275\u0275property("color",ctx_r3.color),\u0275\u0275advance(),\u0275\u0275property("ngTemplateOutlet",innerContent_r5)}}function FileUploadButtonComponent_Case_3_ng_container_1_Template(rf,ctx){rf&1&&\u0275\u0275elementContainer(0)}function FileUploadButtonComponent_Case_3_Template(rf,ctx){if(rf&1){let _r6=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"button",10),\u0275\u0275listener("click",function(){\u0275\u0275restoreView(_r6),\u0275\u0275nextContext();let fileInput_r3=\u0275\u0275reference(1);return \u0275\u0275resetView(fileInput_r3.click())}),\u0275\u0275template(1,FileUploadButtonComponent_Case_3_ng_container_1_Template,1,0,"ng-container",9),\u0275\u0275elementEnd()}if(rf&2){let ctx_r3=\u0275\u0275nextContext(),innerContent_r5=\u0275\u0275reference(8);\u0275\u0275property("color",ctx_r3.color),\u0275\u0275advance(),\u0275\u0275property("ngTemplateOutlet",innerContent_r5)}}function FileUploadButtonComponent_Case_4_ng_container_1_Template(rf,ctx){rf&1&&\u0275\u0275elementContainer(0)}function FileUploadButtonComponent_Case_4_Template(rf,ctx){if(rf&1){let _r7=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"button",11),\u0275\u0275listener("click",function(){\u0275\u0275restoreView(_r7),\u0275\u0275nextContext();let fileInput_r3=\u0275\u0275reference(1);return \u0275\u0275resetView(fileInput_r3.click())}),\u0275\u0275template(1,FileUploadButtonComponent_Case_4_ng_container_1_Template,1,0,"ng-container",9),\u0275\u0275elementEnd()}if(rf&2){let ctx_r3=\u0275\u0275nextContext(),innerContent_r5=\u0275\u0275reference(8);\u0275\u0275property("color",ctx_r3.color),\u0275\u0275advance(),\u0275\u0275property("ngTemplateOutlet",innerContent_r5)}}function FileUploadButtonComponent_Case_5_ng_container_1_Template(rf,ctx){rf&1&&\u0275\u0275elementContainer(0)}function FileUploadButtonComponent_Case_5_Template(rf,ctx){if(rf&1){let _r8=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"button",12),\u0275\u0275listener("click",function(){\u0275\u0275restoreView(_r8),\u0275\u0275nextContext();let fileInput_r3=\u0275\u0275reference(1);return \u0275\u0275resetView(fileInput_r3.click())}),\u0275\u0275template(1,FileUploadButtonComponent_Case_5_ng_container_1_Template,1,0,"ng-container",9),\u0275\u0275elementEnd()}if(rf&2){\u0275\u0275nextContext();let innerContent_r5=\u0275\u0275reference(8);\u0275\u0275advance(),\u0275\u0275property("ngTemplateOutlet",innerContent_r5)}}function FileUploadButtonComponent_Case_6_ng_container_1_Template(rf,ctx){rf&1&&\u0275\u0275elementContainer(0)}function FileUploadButtonComponent_Case_6_Template(rf,ctx){if(rf&1){let _r9=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"button",13),\u0275\u0275listener("click",function(){\u0275\u0275restoreView(_r9),\u0275\u0275nextContext();let fileInput_r3=\u0275\u0275reference(1);return \u0275\u0275resetView(fileInput_r3.click())}),\u0275\u0275template(1,FileUploadButtonComponent_Case_6_ng_container_1_Template,1,0,"ng-container",9),\u0275\u0275elementEnd()}if(rf&2){let ctx_r3=\u0275\u0275nextContext(),innerContent_r5=\u0275\u0275reference(8);\u0275\u0275property("color",ctx_r3.color),\u0275\u0275advance(),\u0275\u0275property("ngTemplateOutlet",innerContent_r5)}}function FileUploadButtonComponent_ng_template_7_Template(rf,ctx){rf&1&&\u0275\u0275projection(0)}var FileUploadButtonComponent=(()=>{let _FileUploadButtonComponent=class _FileUploadButtonComponent{constructor(){this.multiple=!1,this.color="primary",this.fileChange=new EventEmitter,this.fileChanges=new EventEmitter,this.snackBar=inject(MatSnackBar),this.translate=inject(TranslateService)}ngOnChanges(){this.label||(this.label=this.getDefaultLabel())}change(event2){return __async(this,null,function*(){let fileObjects=getFilesFromEvent(event2);if(fileObjects.length){let files=[];for(let file of fileObjects){let{result:previewSrc}=yield firstValueFrom(readFileAsDataURL(file).pipe(filter(data=>data.event.type==="load")));if(file.type&&!this.isAllowedFileType(file.type)){let message=this.translate.instant("__MESSAGE__.INVALID_FILE_TYPE");this.snackBar.open(message,void 0,{duration:3e3}),this.clearFileInput(),files=[];break}else if(file.size!==void 0&&!this.isAllowedFileSize(file.size)){let name=file.name,size=`${this.allowMaxFileSize/1e3/1e3}MB`,message=this.translate.instant("__MESSAGE__.MAX_FILE_SIZE",{name,size});this.snackBar.open(message,void 0,{duration:3e3}),this.clearFileInput(),files=[];break}else if(this.imageSize&&this.isFileTypeImage(file)){let{height,width}=yield getHeightAndWidthFromDataUrl(previewSrc);if(this.isAllowedImageHeightAndWidth(height,width)){let actual=`${width} x ${height}px`,expected=`${this.imageSize?.width} x ${this.imageSize?.height}px`,message=this.translate.instant("__MESSAGE__.INVALID_IMAGE_SIZE",{actual,expected});this.snackBar.open(message,void 0,{duration:3e3}),this.clearFileInput(),files=[];break}else files.push({file,previewSrc})}else files.push({file,previewSrc})}this.multiple?this.fileChanges.emit(files):this.fileChange.emit(files.length?files[0]:null)}else this.multiple?this.fileChanges.emit([]):this.fileChange.emit(null)})}clearFileInput(){this.fileInputRef.nativeElement.value=null}getDefaultLabel(){return"Choose file"}isAllowedFileSize(fileSize){return fileSize<=this.allowMaxFileSize}isAllowedFileType(fileType){return this.allowedMimeTypes!==void 0?this.allowedMimeTypes.includes(fileType):!0}isAllowedImageHeightAndWidth(height,width){return this.imageSize===void 0?!0:!(this.imageSize.height===height&&this.imageSize.width===width)}isFileTypeImage(file){return file.type.includes("image")}get allowMaxFileSize(){return this.maxFileSize??MAX_FILE_SIZE}};_FileUploadButtonComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_FileUploadButtonComponent)},_FileUploadButtonComponent.\u0275cmp=\u0275\u0275defineComponent({type:_FileUploadButtonComponent,selectors:[["ix-file-upload-button"]],viewQuery:function(rf,ctx){if(rf&1&&\u0275\u0275viewQuery(_c013,7),rf&2){let _t;\u0275\u0275queryRefresh(_t=\u0275\u0275loadQuery())&&(ctx.fileInputRef=_t.first)}},inputs:{allowedMimeTypes:"allowedMimeTypes",multiple:"multiple",matButtonType:"matButtonType",color:"color",imageSize:"imageSize",label:"label",maxFileSize:"maxFileSize"},outputs:{fileChange:"fileChange",fileChanges:"fileChanges"},features:[\u0275\u0275NgOnChangesFeature],ngContentSelectors:_c15,decls:9,vars:3,consts:[["fileInput",""],["innerContent",""],["type","file","hidden","","onclick","this.value = null",3,"change","accept","multiple"],["mat-raised-button","","type","button",3,"color"],["mat-stroked-button","","type","button",3,"color"],["mat-flat-button","","type","button",3,"color"],["mat-menu-item","","type","button"],["mat-button","","type","button",3,"color"],["mat-raised-button","","type","button",3,"click","color"],[4,"ngTemplateOutlet"],["mat-stroked-button","","type","button",3,"click","color"],["mat-flat-button","","type","button",3,"click","color"],["mat-menu-item","","type","button",3,"click"],["mat-button","","type","button",3,"click","color"]],template:function(rf,ctx){if(rf&1){let _r1=\u0275\u0275getCurrentView();\u0275\u0275projectionDef(),\u0275\u0275elementStart(0,"input",2,0),\u0275\u0275listener("change",function($event){return \u0275\u0275restoreView(_r1),\u0275\u0275resetView(ctx.change($event))}),\u0275\u0275elementEnd(),\u0275\u0275template(2,FileUploadButtonComponent_Case_2_Template,2,2,"button",3)(3,FileUploadButtonComponent_Case_3_Template,2,2,"button",4)(4,FileUploadButtonComponent_Case_4_Template,2,2,"button",5)(5,FileUploadButtonComponent_Case_5_Template,2,1,"button",6)(6,FileUploadButtonComponent_Case_6_Template,2,2,"button",7)(7,FileUploadButtonComponent_ng_template_7_Template,1,0,"ng-template",null,1,\u0275\u0275templateRefExtractor)}if(rf&2){let tmp_4_0;\u0275\u0275property("accept",ctx.allowedMimeTypes)("multiple",ctx.multiple),\u0275\u0275advance(2),\u0275\u0275conditional((tmp_4_0=ctx.matButtonType)==="raised"?2:tmp_4_0==="stroked"?3:tmp_4_0==="flat"?4:tmp_4_0==="menu"?5:6)}},dependencies:[NgTemplateOutlet,MatButtonModule,MatButton,MatFormFieldModule,MatMenuModule,MatMenuItem,MatSnackBarModule],styles:["[_nghost-%COMP%]{--mdc-outlined-button-container-height: 36px}[_nghost-%COMP%] .container[_ngcontent-%COMP%]{position:relative}[_nghost-%COMP%] .content[_ngcontent-%COMP%]{display:inline-block;margin:8px}[_nghost-%COMP%] input[type=file][_ngcontent-%COMP%]{appearance:initial;background-color:initial;cursor:default;align-items:baseline;color:inherit;text-align:start!important;padding:initial;border:initial}"],changeDetection:0});let FileUploadButtonComponent2=_FileUploadButtonComponent;return FileUploadButtonComponent2})();function formatBytesValue(value,locale,decimals=2){let chars=["","k","M","G","T","P"],i=0;for(;value>=950&&i<chars.length-1;)value/=1e3,i++;return`${new Intl.NumberFormat(locale,{maximumFractionDigits:decimals}).format(value)} ${chars[i]}B`}var ByteFormatPipe=(()=>{let _ByteFormatPipe=class _ByteFormatPipe{transform(bytes){return formatBytesValue(bytes,Settings.defaultLocale)}};_ByteFormatPipe.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_ByteFormatPipe)},_ByteFormatPipe.\u0275pipe=\u0275\u0275definePipe({name:"byteFormat",type:_ByteFormatPipe,pure:!0});let ByteFormatPipe3=_ByteFormatPipe;return ByteFormatPipe3})();var _c014=["*"];function FileUploadDropContainerComponent_Conditional_4_Template(rf,ctx){if(rf&1&&\u0275\u0275element(0,"img",3),rf&2){let ctx_r1=\u0275\u0275nextContext();\u0275\u0275property("src",ctx_r1.filePreviewSrc,\u0275\u0275sanitizeUrl)}}function FileUploadDropContainerComponent_Conditional_17_For_2_Template(rf,ctx){if(rf&1){let _r3=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"mat-list-item",8)(1,"mat-icon",9),\u0275\u0275text(2,"draft"),\u0275\u0275elementEnd(),\u0275\u0275elementStart(3,"div",10),\u0275\u0275text(4),\u0275\u0275elementEnd(),\u0275\u0275elementStart(5,"div",11),\u0275\u0275text(6),\u0275\u0275pipe(7,"byteFormat"),\u0275\u0275elementEnd(),\u0275\u0275elementStart(8,"span",12)(9,"button",13),\u0275\u0275listener("click",function(){let \u0275$index_29_r4=\u0275\u0275restoreView(_r3).$index,ctx_r1=\u0275\u0275nextContext(2);return \u0275\u0275resetView(ctx_r1.removeFileFromList(\u0275$index_29_r4))}),\u0275\u0275elementStart(10,"mat-icon"),\u0275\u0275text(11,"close"),\u0275\u0275elementEnd()()()()}if(rf&2){let f_r5=ctx.$implicit;\u0275\u0275advance(4),\u0275\u0275textInterpolate(f_r5.name),\u0275\u0275advance(2),\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(7,2,f_r5.size))}}function FileUploadDropContainerComponent_Conditional_17_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"mat-list"),\u0275\u0275repeaterCreate(1,FileUploadDropContainerComponent_Conditional_17_For_2_Template,12,4,"mat-list-item",8,\u0275\u0275repeaterTrackByIdentity),\u0275\u0275elementEnd()),rf&2){let ctx_r1=\u0275\u0275nextContext();\u0275\u0275advance(),\u0275\u0275repeater(ctx_r1.files)}}var FileUploadDropContainerComponent=(()=>{let _FileUploadDropContainerComponent=class _FileUploadDropContainerComponent extends FileUploadButtonComponent{constructor(){super(...arguments),this.multiple=!1,this.maxFileSize=MAX_FILE_SIZE,this.fileChange=new EventEmitter,this.fileChanges=new EventEmitter,this.fileRemove=new EventEmitter,this.cdRef=inject(ChangeDetectorRef),this.files=[]}change(event2){return __async(this,null,function*(){this.files=getFilesFromEvent(event2),this.cdRef.detectChanges(),yield __superGet(_FileUploadDropContainerComponent.prototype,this,"change").call(this,event2)})}dropHandler(event2){event2.preventDefault(),this.change(event2)}dragOverHandler(event2){event2.stopPropagation(),event2.preventDefault()}fileChangeHandler(event2){this.files=event2?.file?[event2.file]:[],this.cdRef.detectChanges(),this.fileChange.emit(event2)}fileChangesHandler(event2){this.files=[...this.files,...event2.map(event3=>event3.file)],this.cdRef.detectChanges(),this.fileChanges.emit(event2)}removeFileFromList(index){let[file]=this.files.splice(index,1);this.fileRemove.emit({file})}};_FileUploadDropContainerComponent.\u0275fac=(()=>{let \u0275FileUploadDropContainerComponent_BaseFactory;return function(__ngFactoryType__){return(\u0275FileUploadDropContainerComponent_BaseFactory||(\u0275FileUploadDropContainerComponent_BaseFactory=\u0275\u0275getInheritedFactory(_FileUploadDropContainerComponent)))(__ngFactoryType__||_FileUploadDropContainerComponent)}})(),_FileUploadDropContainerComponent.\u0275cmp=\u0275\u0275defineComponent({type:_FileUploadDropContainerComponent,selectors:[["ix-file-upload-drop-container"]],inputs:{multiple:"multiple",filePreviewSrc:"filePreviewSrc",maxFileSize:"maxFileSize"},outputs:{fileChange:"fileChange",fileChanges:"fileChanges",fileRemove:"fileRemove"},features:[\u0275\u0275InheritDefinitionFeature],ngContentSelectors:_c014,decls:18,vars:20,consts:[["content",""],["fxLayout","column","fxLayoutAlign","center center","data-testid","drop-container",1,"drop-container",3,"drop","dragover"],["fxLayout","column","fxLayoutAlign","center center"],[1,"image",3,"src"],["fxLayout","column","fxLayoutAlign","center center",1,"ix-surface"],[1,"icon"],["translate",""],[3,"fileChange","fileChanges","multiple","allowedMimeTypes","maxFileSize","imageSize","matButtonType","color"],["fxLayoutAlign","start center"],["matListItemIcon",""],["matListItemTitle",""],["matListItemLine",""],["matListItemMeta",""],["type","button","mat-icon-button","",3,"click"]],template:function(rf,ctx){if(rf&1){let _r1=\u0275\u0275getCurrentView();\u0275\u0275projectionDef(),\u0275\u0275elementStart(0,"div",1),\u0275\u0275listener("drop",function($event){return \u0275\u0275restoreView(_r1),\u0275\u0275resetView(ctx.dropHandler($event))})("dragover",function($event){return \u0275\u0275restoreView(_r1),\u0275\u0275resetView(ctx.dragOverHandler($event))}),\u0275\u0275elementStart(1,"div",2,0),\u0275\u0275projection(3),\u0275\u0275elementEnd(),\u0275\u0275template(4,FileUploadDropContainerComponent_Conditional_4_Template,1,1,"img",3),\u0275\u0275elementStart(5,"span",4)(6,"mat-icon",5),\u0275\u0275text(7,"cloud_upload"),\u0275\u0275elementEnd(),\u0275\u0275elementStart(8,"span",6),\u0275\u0275text(9,"DRAG_AND_DROP_TO_UPLOAD"),\u0275\u0275elementEnd(),\u0275\u0275elementStart(10,"span"),\u0275\u0275text(11),\u0275\u0275pipe(12,"translate"),\u0275\u0275pipe(13,"lowercase"),\u0275\u0275elementEnd(),\u0275\u0275elementStart(14,"ix-file-upload-button",7),\u0275\u0275listener("fileChange",function($event){return \u0275\u0275restoreView(_r1),\u0275\u0275resetView(ctx.fileChangeHandler($event))})("fileChanges",function($event){return \u0275\u0275restoreView(_r1),\u0275\u0275resetView(ctx.fileChangesHandler($event))}),\u0275\u0275text(15),\u0275\u0275pipe(16,"translate"),\u0275\u0275elementEnd()()(),\u0275\u0275template(17,FileUploadDropContainerComponent_Conditional_17_Template,3,0,"mat-list")}if(rf&2){let content_r6=\u0275\u0275reference(2);\u0275\u0275classProp("minimize-height",ctx.multiple&&ctx.files.length),\u0275\u0275advance(4),\u0275\u0275conditional(ctx.filePreviewSrc&&!content_r6.children.length?4:-1),\u0275\u0275advance(),\u0275\u0275classProp("invisible",ctx.files.length&&!ctx.multiple),\u0275\u0275advance(6),\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(13,16,\u0275\u0275pipeBind1(12,14,"OR"))),\u0275\u0275advance(3),\u0275\u0275property("multiple",ctx.multiple)("allowedMimeTypes",ctx.allowedMimeTypes)("maxFileSize",ctx.maxFileSize)("imageSize",ctx.imageSize)("matButtonType","stroked")("color",null),\u0275\u0275advance(),\u0275\u0275textInterpolate1(" ",\u0275\u0275pipeBind1(16,18,ctx.multiple?"SELECT_FILES_TO_UPLOAD":"SELECT_FILE_TO_UPLOAD")," "),\u0275\u0275advance(2),\u0275\u0275conditional(ctx.multiple&&ctx.files.length?17:-1)}},dependencies:[ByteFormatPipe,MatButtonModule,MatIconButton,MatFormFieldModule,MatIconModule,MatIcon,MatListModule,MatList,MatListItem,MatListItemIcon,MatListItemLine,MatListItemTitle,MatListItemMeta,MatSnackBarModule,FileUploadButtonComponent,FormsModule,TranslateModule,TranslatePipe,TranslateDirective,LowerCasePipe,FlexModule,DefaultLayoutDirective,DefaultLayoutAlignDirective],styles:["[_nghost-%COMP%] .drop-container[_ngcontent-%COMP%]{position:relative;min-height:300px;overflow:hidden;border-radius:6px;background:var(--mat-sys-outline-variant)}[_nghost-%COMP%] .drop-container.minimize-height[_ngcontent-%COMP%]{min-height:150px}[_nghost-%COMP%] .drop-container[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{width:36px;height:36px;margin:4px 0;font-size:36px;color:var(--body-color)}[_nghost-%COMP%] .drop-container[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{margin-bottom:4px}[_nghost-%COMP%] .drop-container[_ngcontent-%COMP%] .invisible[_ngcontent-%COMP%]{background:color-mix(in srgb,var(--mat-sys-surface-variant) 92%,transparent);opacity:0;transition:opacity .1s ease-out;will-change:opacity}[_nghost-%COMP%] .drop-container[_ngcontent-%COMP%]:hover .invisible[_ngcontent-%COMP%], [_nghost-%COMP%] .drop-container[_ngcontent-%COMP%]:focus .invisible[_ngcontent-%COMP%]{opacity:1;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}[_nghost-%COMP%] .image[_ngcontent-%COMP%]{max-height:200px;max-width:200px}[_nghost-%COMP%] .mat-mdc-list-item[_ngcontent-%COMP%]{--mdc-list-list-item-leading-icon-color: var( --mdc-list-list-item-label-text-color );--mdc-list-list-item-hover-leading-icon-color: var( --mdc-list-list-item-hover-label-text-color );--mdc-list-list-item-trailing-supporting-text-color: var( --mdc-list-list-item-label-text-color );padding:0}[_nghost-%COMP%] .mat-mdc-list-item[_ngcontent-%COMP%] .mdc-list-item__content{margin-right:0!important}[_nghost-%COMP%] .mat-mdc-list-item[_ngcontent-%COMP%] .mdc-list-item__end[_ngcontent-%COMP%]{margin:15px 0 0 16px}[_nghost-%COMP%] .mat-mdc-list-item[_ngcontent-%COMP%] .mdc-list-item__start[_ngcontent-%COMP%]{margin:23px 16px 0 0}[_nghost-%COMP%] .mat-mdc-list-item[_ngcontent-%COMP%] .file-name[_ngcontent-%COMP%]{color:rgba(var(--body-color-rgb),.87);white-space:nowrap;text-overflow:ellipsis;overflow:hidden}[_nghost-%COMP%] .mat-mdc-list-item[_ngcontent-%COMP%] .file-size[_ngcontent-%COMP%]{font-size:12px}"],changeDetection:0});let FileUploadDropContainerComponent2=_FileUploadDropContainerComponent;return FileUploadDropContainerComponent2})();function FileInputComponent_Conditional_1_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"mat-icon",1),\u0275\u0275text(1),\u0275\u0275elementEnd()),rf&2){let ctx_r0=\u0275\u0275nextContext();\u0275\u0275advance(),\u0275\u0275textInterpolate(ctx_r0.icon)}}function FileInputComponent_Conditional_2_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"p",2),\u0275\u0275text(1),\u0275\u0275elementStart(2,"strong"),\u0275\u0275text(3),\u0275\u0275pipe(4,"byteFormat"),\u0275\u0275elementEnd(),\u0275\u0275text(5," ) "),\u0275\u0275elementEnd()),rf&2){let ctx_r0=\u0275\u0275nextContext();\u0275\u0275advance(),\u0275\u0275textInterpolate1(" ",ctx_r0.file.name," ( "),\u0275\u0275advance(2),\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(4,2,ctx_r0.file.size))}}var FileInputComponent=(()=>{let _FileInputComponent=class _FileInputComponent extends ComponentInputComponent{fileChange(changes){changes&&(this.inputControl?.setValue(changes.file),this.inputControl?.markAsDirty())}fileChanges(changes){changes?.length&&(this.inputControl?.setValue([...this.inputControl.value||[],...changes.map(fileEvent=>fileEvent.file)]),this.inputControl?.markAsDirty())}fileRemove(changes){changes.file&&(this.inputControl?.setValue([...(this.inputControl.value||[]).filter(file=>file!==changes.file)]),this.inputControl?.markAsDirty())}get icon(){if(this.inputControl?.value?.type)return mapMimeTypeToIcon(this.inputControl.value.type)}get maxSize(){return this.field.inputDescription.size?.max??MAX_FILE_SIZE}get multiple(){return this.field.inputDescription.multiple??!1}get file(){return Array.isArray(this.inputControl?.value)?null:this.inputControl?.value||null}};_FileInputComponent.\u0275fac=(()=>{let \u0275FileInputComponent_BaseFactory;return function(__ngFactoryType__){return(\u0275FileInputComponent_BaseFactory||(\u0275FileInputComponent_BaseFactory=\u0275\u0275getInheritedFactory(_FileInputComponent)))(__ngFactoryType__||_FileInputComponent)}})(),_FileInputComponent.\u0275cmp=\u0275\u0275defineComponent({type:_FileInputComponent,selectors:[["ix-file-input"]],standalone:!1,features:[\u0275\u0275InheritDefinitionFeature],decls:3,vars:5,consts:[["data-testid","drop-container",3,"fileChange","fileChanges","fileRemove","filePreviewSrc","maxFileSize","multiple"],[1,"icon"],["data-testid","file-info"]],template:function(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"ix-file-upload-drop-container",0),\u0275\u0275listener("fileChange",function($event){return ctx.fileChange($event)})("fileChanges",function($event){return ctx.fileChanges($event)})("fileRemove",function($event){return ctx.fileRemove($event)}),\u0275\u0275template(1,FileInputComponent_Conditional_1_Template,2,1,"mat-icon",1)(2,FileInputComponent_Conditional_2_Template,6,4,"p",2),\u0275\u0275elementEnd()),rf&2&&(\u0275\u0275property("filePreviewSrc",null)("maxFileSize",ctx.maxSize)("multiple",ctx.multiple),\u0275\u0275advance(),\u0275\u0275conditional(ctx.icon?1:-1),\u0275\u0275advance(),\u0275\u0275conditional(ctx.file?2:-1))},dependencies:[FileUploadDropContainerComponent,MatIcon,ByteFormatPipe],styles:["[_nghost-%COMP%] .icon[_ngcontent-%COMP%]{width:36px;height:36px;margin:4px 0;font-size:36px;color:var(--body-color)}[_nghost-%COMP%] span[_ngcontent-%COMP%]{margin-bottom:4px}"]});let FileInputComponent3=_FileInputComponent;return FileInputComponent3})();function GroupInputFormComponent_Conditional_0_Template(rf,ctx){if(rf&1&&(\u0275\u0275element(0,"p",0),\u0275\u0275pipe(1,"renderMarkdown")),rf&2){let ctx_r0=\u0275\u0275nextContext();\u0275\u0275property("innerHTML",\u0275\u0275pipeBind1(1,1,ctx_r0.field.inputDescription.description),\u0275\u0275sanitizeHtml)}}function GroupInputFormComponent_ng_template_1_Template(rf,ctx){}var GroupInputFormComponent=(()=>{let _GroupInputFormComponent=class _GroupInputFormComponent extends ComponentInputComponent{constructor(cdRef,inputConverter){super(),this.cdRef=cdRef,this.inputConverter=inputConverter}ngAfterViewInit(){this.formDirective.viewContainerRef.clear(),this.inputConverter.loadComponentInputs(this.field.children,this.componentFormGroup.get(this.field.inputDescription.key),this.formDirective.viewContainerRef),this.cdRef.detectChanges()}};_GroupInputFormComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_GroupInputFormComponent)(\u0275\u0275directiveInject(ChangeDetectorRef),\u0275\u0275directiveInject(INPUT_CONVERTER_TOKEN))},_GroupInputFormComponent.\u0275cmp=\u0275\u0275defineComponent({type:_GroupInputFormComponent,selectors:[["ix-group-input-form"]],viewQuery:function(rf,ctx){if(rf&1&&\u0275\u0275viewQuery(InputControlFormDirective,5),rf&2){let _t;\u0275\u0275queryRefresh(_t=\u0275\u0275loadQuery())&&(ctx.formDirective=_t.first)}},inputs:{field:"field",componentFormGroup:"componentFormGroup"},standalone:!1,features:[\u0275\u0275InheritDefinitionFeature],decls:2,vars:1,consts:[[1,"description",3,"innerHTML"],["ixInputControlForm",""]],template:function(rf,ctx){rf&1&&\u0275\u0275template(0,GroupInputFormComponent_Conditional_0_Template,2,3,"p",0)(1,GroupInputFormComponent_ng_template_1_Template,0,0,"ng-template",1),rf&2&&\u0275\u0275conditional(ctx.field.inputDescription.description?0:-1)},dependencies:[InputControlFormDirective,RenderMarkdownPipe],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] h3[_ngcontent-%COMP%]{font-size:11.5px!important;font-weight:500!important;text-transform:uppercase;letter-spacing:.8px;color:color-mix(in srgb,transparent,currentcolor 67%)}[_nghost-%COMP%] .mat-divider[_ngcontent-%COMP%]{margin:0 -16px 16px}[_nghost-%COMP%] .mat-divider.mat-divider-inset[_ngcontent-%COMP%]{margin-left:0}[_nghost-%COMP%] + *[_ngcontent-%COMP%]{border-top:1px solid var(--mat-sys-outline-variant)}"]});let GroupInputFormComponent3=_GroupInputFormComponent;return GroupInputFormComponent3})();var GroupInputDialogComponent=(()=>{let _GroupInputDialogComponent=class _GroupInputDialogComponent{constructor(data){this.data=data}};_GroupInputDialogComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_GroupInputDialogComponent)(\u0275\u0275directiveInject(MAT_DIALOG_DATA))},_GroupInputDialogComponent.\u0275cmp=\u0275\u0275defineComponent({type:_GroupInputDialogComponent,selectors:[["ix-group-input-dialog"]],standalone:!1,decls:11,vars:6,consts:[["mat-dialog-title",""],[3,"field","componentFormGroup"],["align","end"],["mat-button","",3,"mat-dialog-close"],["translate",""],["mat-button","",3,"mat-dialog-close","disabled"]],template:function(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"h1",0),\u0275\u0275text(1),\u0275\u0275elementEnd(),\u0275\u0275elementStart(2,"mat-dialog-content"),\u0275\u0275element(3,"ix-group-input-form",1),\u0275\u0275elementEnd(),\u0275\u0275elementStart(4,"mat-dialog-actions",2)(5,"button",3)(6,"span",4),\u0275\u0275text(7,"CANCEL"),\u0275\u0275elementEnd()(),\u0275\u0275elementStart(8,"button",5)(9,"span",4),\u0275\u0275text(10,"OK"),\u0275\u0275elementEnd()()()),rf&2&&(\u0275\u0275advance(),\u0275\u0275textInterpolate(ctx.data.field.inputDescription.label),\u0275\u0275advance(2),\u0275\u0275property("field",ctx.data.field)("componentFormGroup",ctx.data.componentFormGroup),\u0275\u0275advance(2),\u0275\u0275property("mat-dialog-close",!1),\u0275\u0275advance(3),\u0275\u0275property("mat-dialog-close",!0)("disabled",!ctx.data.componentFormGroup.valid))},dependencies:[TranslateDirective,MatButton,MatDialogClose,MatDialogTitle,MatDialogActions,MatDialogContent,GroupInputFormComponent],encapsulation:2});let GroupInputDialogComponent3=_GroupInputDialogComponent;return GroupInputDialogComponent3})();var GroupInputSummaryComponent=(()=>{let _GroupInputSummaryComponent=class _GroupInputSummaryComponent extends ComponentInputComponent{constructor(dialog,cdRef){super(),this.dialog=dialog,this.cdRef=cdRef}get fieldValue(){return this.componentFormGroup.value[this.field.inputDescription.key]}get hasValidationErrors(){let control=this.componentFormGroup.controls[this.field.inputDescription.key];return!this.isGroupValidRecursively(control)}get summary(){let labelTemplate=this.field.inputDescription?.summary?.label;if(labelTemplate)return mustache_default.render(labelTemplate,this.field.transformValue()[this.field.inputDescription.key],void 0,{escape:input2=>input2})}get summaryTooltipDisabled(){return(this.summary?.length||0)<20}get color(){let colorField=this.field.inputDescription?.summary?.colorField;if(colorField)return get_default(this.fieldValue,colorField)}openDialog(){let key=this.field.inputDescription.key,dialogForm=new FormGroup({[key]:this.field.toFormControl()});this.addDialogValuesWithoutNeedingRefreshAfterChange(dialogForm),this.dialog.open(GroupInputDialogComponent,{width:"500px",data:{field:this.field,componentFormGroup:dialogForm}}).afterClosed().subscribe(result=>{result&&(this.field.setValue(dialogForm.value[key]),this.componentFormGroup.markAsDirty(),this.componentFormGroup.setControl(key,dialogForm.controls[key]),this.cdRef.detectChanges())})}calculateStyle(){return{"background-color":this.color||"white"}}addDialogValuesWithoutNeedingRefreshAfterChange(dialogForm){dialogForm.patchValue(this.componentFormGroup.value)}isGroupValidRecursively(group){return group.valid&&Object.keys(group.controls).every(k=>{let subControl=group.controls[k];return subControl instanceof FormArray||subControl instanceof FormGroup?this.isGroupValidRecursively(subControl):subControl.valid})}};_GroupInputSummaryComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_GroupInputSummaryComponent)(\u0275\u0275directiveInject(MatDialog),\u0275\u0275directiveInject(ChangeDetectorRef))},_GroupInputSummaryComponent.\u0275cmp=\u0275\u0275defineComponent({type:_GroupInputSummaryComponent,selectors:[["ix-group-input-summary"]],hostVars:2,hostBindings:function(rf,ctx){rf&2&&\u0275\u0275classProp("has-validation-errors",ctx.hasValidationErrors)},inputs:{field:"field",componentFormGroup:"componentFormGroup"},standalone:!1,features:[\u0275\u0275InheritDefinitionFeature],decls:7,vars:5,consts:[["mat-icon-button","","type","button",3,"click"],[1,"color-patch"],[1,"summary-wrapper"],[1,"summary",3,"matTooltip","matTooltipDisabled"]],template:function(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"button",0),\u0275\u0275listener("click",function(){return ctx.openDialog()}),\u0275\u0275elementStart(1,"mat-icon"),\u0275\u0275text(2,"create"),\u0275\u0275elementEnd()(),\u0275\u0275element(3,"span",1),\u0275\u0275elementStart(4,"span",2)(5,"span",3),\u0275\u0275text(6),\u0275\u0275elementEnd()()),rf&2&&(\u0275\u0275advance(3),\u0275\u0275styleMap(ctx.calculateStyle()),\u0275\u0275advance(2),\u0275\u0275property("matTooltip",ctx.summary||"")("matTooltipDisabled",ctx.summaryTooltipDisabled),\u0275\u0275advance(),\u0275\u0275textInterpolate(ctx.summary))},dependencies:[MatIconButton,MatIcon,MatTooltip],styles:["[_nghost-%COMP%]{display:flex;background-color:rgba(var(--body-color-rgb),.04)}.has-validation-errors[_nghost-%COMP%]{border:thin solid var(--warn);color:var(--warn)}[_nghost-%COMP%] .description[_ngcontent-%COMP%]{font-size:11px}[_nghost-%COMP%] .color-patch[_ngcontent-%COMP%]{display:inline-block;vertical-align:top;height:40px;width:8px}[_nghost-%COMP%] .summary-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;padding:0 8px;overflow:hidden;flex:1}[_nghost-%COMP%] .summary-wrapper[_ngcontent-%COMP%] .summary[_ngcontent-%COMP%]{display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}"]});let GroupInputSummaryComponent3=_GroupInputSummaryComponent;return GroupInputSummaryComponent3})();function GroupInputComponent_Conditional_0_Conditional_0_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"h3"),\u0275\u0275text(1),\u0275\u0275elementEnd()),rf&2){let ctx_r0=\u0275\u0275nextContext(2);\u0275\u0275advance(),\u0275\u0275textInterpolate(ctx_r0.field.inputDescription.label)}}function GroupInputComponent_Conditional_0_Conditional_1_Template(rf,ctx){if(rf&1&&\u0275\u0275element(0,"ix-group-input-summary",0),rf&2){let ctx_r0=\u0275\u0275nextContext(2);\u0275\u0275property("field",ctx_r0.field)("componentFormGroup",ctx_r0.componentFormGroup)}}function GroupInputComponent_Conditional_0_Conditional_2_Template(rf,ctx){if(rf&1&&\u0275\u0275element(0,"ix-group-input-form",0),rf&2){let ctx_r0=\u0275\u0275nextContext(2);\u0275\u0275property("field",ctx_r0.field)("componentFormGroup",ctx_r0.componentFormGroup)}}function GroupInputComponent_Conditional_0_Template(rf,ctx){if(rf&1&&\u0275\u0275template(0,GroupInputComponent_Conditional_0_Conditional_0_Template,2,1,"h3")(1,GroupInputComponent_Conditional_0_Conditional_1_Template,1,2,"ix-group-input-summary",0)(2,GroupInputComponent_Conditional_0_Conditional_2_Template,1,2,"ix-group-input-form",0),rf&2){let ctx_r0=\u0275\u0275nextContext();\u0275\u0275conditional(ctx_r0.field.level===0||!ctx_r0.isSummary()?0:-1),\u0275\u0275advance(),\u0275\u0275conditional(ctx_r0.isSummary()?1:2)}}var GroupInputComponent=(()=>{let _GroupInputComponent=class _GroupInputComponent extends ComponentInputComponent{isSummary(){return this.field.inputDescription.summary!==void 0}};_GroupInputComponent.\u0275fac=(()=>{let \u0275GroupInputComponent_BaseFactory;return function(__ngFactoryType__){return(\u0275GroupInputComponent_BaseFactory||(\u0275GroupInputComponent_BaseFactory=\u0275\u0275getInheritedFactory(_GroupInputComponent)))(__ngFactoryType__||_GroupInputComponent)}})(),_GroupInputComponent.\u0275cmp=\u0275\u0275defineComponent({type:_GroupInputComponent,selectors:[["ix-group-input"]],standalone:!1,features:[\u0275\u0275InheritDefinitionFeature],decls:1,vars:1,consts:[[3,"field","componentFormGroup"]],template:function(rf,ctx){rf&1&&\u0275\u0275template(0,GroupInputComponent_Conditional_0_Template,3,2),rf&2&&\u0275\u0275conditional(ctx.field.hidden?-1:0)},dependencies:[GroupInputFormComponent,GroupInputSummaryComponent],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] h3[_ngcontent-%COMP%]{font-size:11.5px!important;font-weight:500!important;text-transform:uppercase;letter-spacing:.8px;color:color-mix(in srgb,transparent,currentcolor 67%)}[_nghost-%COMP%] .mat-divider[_ngcontent-%COMP%]{margin:0 -16px 16px}[_nghost-%COMP%] .mat-divider.mat-divider-inset[_ngcontent-%COMP%]{margin-left:0}"]});let GroupInputComponent3=_GroupInputComponent;return GroupInputComponent3})();var GroupInput=class extends ComponentPropertiesInput{constructor(input2,value,context3,converter,level){super(input2,value,context3,converter,level),this.converter=converter,this.children=input2.children?.map(child=>converter.convertInput(child,value,context3,level+1))||[],this.hidden=this.children.some(child=>child.inputDescription.required&&child.hidden)}toFormControl(){return new FormGroup(this.converter.getFormControls(this.children))}transformValue(){return{[this.inputDescription.key]:this.children.reduce((obj,child)=>__spreadValues(__spreadValues({},obj),child.transformValue()),{})}}setValue(value){this.children.forEach(child=>child.setValue(value[child.inputDescription.key]))}};function IconInputComponent_Conditional_0_Template(rf,ctx){if(rf&1&&(\u0275\u0275element(0,"p",0),\u0275\u0275pipe(1,"renderMarkdown")),rf&2){let ctx_r0=\u0275\u0275nextContext();\u0275\u0275property("innerHTML",\u0275\u0275pipeBind1(1,1,ctx_r0.field.inputDescription.description),\u0275\u0275sanitizeHtml)}}function IconInputComponent_Conditional_13_Template(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"mat-error",6),\u0275\u0275text(1,"__MESSAGE__.REQUIRED"),\u0275\u0275elementEnd())}var IconInputComponent=(()=>{let _IconInputComponent=class _IconInputComponent extends ComponentInputComponent{};_IconInputComponent.\u0275fac=(()=>{let \u0275IconInputComponent_BaseFactory;return function(__ngFactoryType__){return(\u0275IconInputComponent_BaseFactory||(\u0275IconInputComponent_BaseFactory=\u0275\u0275getInheritedFactory(_IconInputComponent)))(__ngFactoryType__||_IconInputComponent)}})(),_IconInputComponent.\u0275cmp=\u0275\u0275defineComponent({type:_IconInputComponent,selectors:[["ix-icon-input"]],standalone:!1,features:[\u0275\u0275InheritDefinitionFeature],decls:14,vars:7,consts:[[1,"description",3,"innerHTML"],[3,"formGroup"],[3,"formControlName","placeholder"],["value","warn"],["value","info"],["value","error"],["translate",""]],template:function(rf,ctx){rf&1&&(\u0275\u0275template(0,IconInputComponent_Conditional_0_Template,2,3,"p",0),\u0275\u0275elementStart(1,"mat-form-field",1)(2,"mat-label"),\u0275\u0275text(3),\u0275\u0275elementEnd(),\u0275\u0275elementStart(4,"mat-select",2)(5,"mat-option",3),\u0275\u0275text(6,"Warning"),\u0275\u0275elementEnd(),\u0275\u0275elementStart(7,"mat-option",4),\u0275\u0275text(8,"Info"),\u0275\u0275elementEnd(),\u0275\u0275elementStart(9,"mat-option",5),\u0275\u0275text(10,"Error"),\u0275\u0275elementEnd()(),\u0275\u0275elementStart(11,"mat-hint"),\u0275\u0275text(12),\u0275\u0275elementEnd(),\u0275\u0275template(13,IconInputComponent_Conditional_13_Template,2,0,"mat-error",6),\u0275\u0275elementEnd()),rf&2&&(\u0275\u0275conditional(ctx.field.inputDescription.description?0:-1),\u0275\u0275advance(),\u0275\u0275property("formGroup",ctx.componentFormGroup),\u0275\u0275advance(2),\u0275\u0275textInterpolate(ctx.field.inputDescription.label),\u0275\u0275advance(),\u0275\u0275property("formControlName",ctx.field.inputName)("placeholder",ctx.field.inputDescription.placeholder||""),\u0275\u0275advance(8),\u0275\u0275textInterpolate(ctx.field.inputDescription.hint),\u0275\u0275advance(),\u0275\u0275conditional(ctx.inputControl!=null&&ctx.inputControl.hasError("required")?13:-1))},dependencies:[NgControlStatus,NgControlStatusGroup,FormGroupDirective,FormControlName,TranslateDirective,MatOption,MatFormField,MatLabel,MatHint,MatError,MatSelect,RenderMarkdownPipe],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] .description[_ngcontent-%COMP%]{font-size:11px}[_nghost-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]});let IconInputComponent3=_IconInputComponent;return IconInputComponent3})();function ImageInputDialogComponent_Conditional_11_Template(rf,ctx){if(rf&1){let _r1=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"button",12),\u0275\u0275listener("click",function(){\u0275\u0275restoreView(_r1);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.clear())}),\u0275\u0275elementStart(1,"span",10),\u0275\u0275text(2,"CLEAR"),\u0275\u0275elementEnd()()}}var ImageInputDialogComponent=(()=>{let _ImageInputDialogComponent=class _ImageInputDialogComponent{constructor(){this.data=inject(MAT_DIALOG_DATA),this.dialogRef=inject(MatDialogRef),this.formBuilder=inject(FormBuilder),this.allowedMimeTypes=["image/gif","image/jpeg","image/png","image/webp"]}ngOnInit(){this.form=this.formBuilder.group({image:[this.data.image]})}clear(){this.file=null,this.form.controls.image.reset(),this.form.controls.image.markAsDirty()}fileChange(changes){changes&&(this.file=changes.file,this.form.controls.image.setValue(changes.previewSrc),this.form.controls.image.markAsDirty())}submit(){this.dialogRef.close({image:this.form.controls.image.value,file:this.file})}};_ImageInputDialogComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_ImageInputDialogComponent)},_ImageInputDialogComponent.\u0275cmp=\u0275\u0275defineComponent({type:_ImageInputDialogComponent,selectors:[["ix-image-input-dialog"]],standalone:!1,decls:19,vars:5,consts:[["autocomplete","off",3,"ngSubmit","formGroup"],[1,"ix-dialog__header"],["fxFlex","","mat-dialog-title",""],["mat-icon-button","","mat-dialog-close",""],["mat-dialog-content",""],[3,"fileChange","filePreviewSrc"],["mat-dialog-actions",""],["type","button","mat-button","","color","warn"],["fxFlex",""],["mat-button","","mat-dialog-close",""],["translate",""],["type","submit","mat-button","",3,"disabled"],["type","button","mat-button","","color","warn",3,"click"]],template:function(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"form",0),\u0275\u0275listener("ngSubmit",function(){return ctx.submit()}),\u0275\u0275elementStart(1,"div",1)(2,"mat-toolbar")(3,"h1",2),\u0275\u0275text(4),\u0275\u0275elementEnd(),\u0275\u0275elementStart(5,"button",3)(6,"mat-icon"),\u0275\u0275text(7,"close"),\u0275\u0275elementEnd()()()(),\u0275\u0275elementStart(8,"div",4)(9,"ix-file-upload-drop-container",5),\u0275\u0275listener("fileChange",function($event){return ctx.fileChange($event)}),\u0275\u0275elementEnd()(),\u0275\u0275elementStart(10,"div",6),\u0275\u0275template(11,ImageInputDialogComponent_Conditional_11_Template,3,0,"button",7),\u0275\u0275element(12,"span",8),\u0275\u0275elementStart(13,"button",9)(14,"span",10),\u0275\u0275text(15,"CANCEL"),\u0275\u0275elementEnd()(),\u0275\u0275elementStart(16,"button",11)(17,"span",10),\u0275\u0275text(18,"CONFIRM"),\u0275\u0275elementEnd()()()()),rf&2&&(\u0275\u0275property("formGroup",ctx.form),\u0275\u0275advance(4),\u0275\u0275textInterpolate(ctx.data.title),\u0275\u0275advance(5),\u0275\u0275property("filePreviewSrc",ctx.form.value.image),\u0275\u0275advance(2),\u0275\u0275conditional(ctx.form.value.image?11:-1),\u0275\u0275advance(5),\u0275\u0275property("disabled",ctx.form.pristine||ctx.form.invalid))},dependencies:[FileUploadDropContainerComponent,DefaultFlexDirective,\u0275NgNoValidate,NgControlStatusGroup,FormGroupDirective,TranslateDirective,MatButton,MatIconButton,MatDialogClose,MatDialogTitle,MatDialogActions,MatDialogContent,MatIcon,MatToolbar],styles:["[_nghost-%COMP%]{width:100dvw;height:100dvh;display:flex;flex-direction:column;flex:1}@media (min-width: 960px){[_nghost-%COMP%]{height:auto;width:auto;min-width:528px;max-width:528px}}[_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%]{padding:calc(env(safe-area-inset-top,0) + 16px) 24px 16px}[_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%] .mat-toolbar{height:48px;padding-left:0;padding-right:0}[_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%] .mat-toolbar .mdc-dialog__title{--mat-dialog-headline-padding: 0;color:inherit}[_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%] .mat-toolbar .mdc-dialog__title:before{display:none}[_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%] + .ix-dialog__content[_ngcontent-%COMP%], [_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%] + .mdc-dialog__content[_ngcontent-%COMP%]{padding-top:0}[_nghost-%COMP%] .mdc-dialog__title[_ngcontent-%COMP%]:before{height:calc(env(safe-area-inset-top,0) + 40px)}[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%]{padding:20px 24px}[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%] > .ix-list[_ngcontent-%COMP%]{margin-left:-24px;margin-right:-24px}[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%], [_nghost-%COMP%] .mdc-dialog__content[_ngcontent-%COMP%]{flex-direction:column;box-sizing:border-box;display:flex;place-content:stretch flex-start;align-items:stretch;flex:1 1 auto;max-height:none;overflow:auto;-webkit-overflow-scrolling:touch}[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%] > .mat-mdc-subheader[_ngcontent-%COMP%], [_nghost-%COMP%] .mdc-dialog__content[_ngcontent-%COMP%] > .mat-mdc-subheader[_ngcontent-%COMP%]{margin-left:0;margin-right:0}@media (min-width: 960px){[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%], [_nghost-%COMP%] .mdc-dialog__content[_ngcontent-%COMP%]{max-height:calc(90dvh - 140px)}[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%]:has(+.mdc-dialog__actions), [_nghost-%COMP%] .mdc-dialog__content[_ngcontent-%COMP%]:has(+.mdc-dialog__actions){padding-bottom:0}}@media (min-width: 960px){[_nghost-%COMP%] .ix-dialog__banner[_ngcontent-%COMP%] + .ix-dialog__content[_ngcontent-%COMP%]{max-height:calc(90dvh - 225px)}}@media (max-width: 959.9px){[_nghost-%COMP%] .mdc-dialog__actions[_ngcontent-%COMP%]{border-top:1px solid rgba(0,0,0,.12);padding-bottom:calc(16px + env(safe-area-inset-bottom,0))}}[_nghost-%COMP%] form[_ngcontent-%COMP%]{flex-direction:column;box-sizing:border-box;display:flex;flex:1 1 auto;height:inherit}[_nghost-%COMP%] form[_ngcontent-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%]{margin-bottom:1rem}[_nghost-%COMP%] .mdc-dialog__content[_ngcontent-%COMP%]{padding-bottom:24px}"]});let ImageInputDialogComponent3=_ImageInputDialogComponent;return ImageInputDialogComponent3})();function ImageInputFormComponent_Conditional_0_Template(rf,ctx){if(rf&1&&\u0275\u0275element(0,"img",0),rf&2){let ctx_r0=\u0275\u0275nextContext();\u0275\u0275property("src",ctx_r0.value,\u0275\u0275sanitizeUrl)}}var ImageInputFormComponent=(()=>{let _ImageInputFormComponent=class _ImageInputFormComponent{constructor(){this.dialog=inject(MatDialog),this.fileService=inject(FileService),this.onChange=()=>{},this.onTouched=()=>{}}registerOnChange(fn2){this.onChange=fn2}registerOnTouched(fn2){this.onTouched=fn2}writeValue(obj){this.value=obj,this.onChange(this.value)}openDialog(){this.dialog.open(ImageInputDialogComponent,{panelClass:"fullscreen",data:{image:this.value,title:this.dialogTitle}}).afterClosed().pipe(filter(data=>!!data),mergeMap(result=>this.uploadFile(result.file))).subscribe(url=>{this.writeValue(url),this.componentFormGroup.controls[this.field.inputName].setValue(url)})}uploadFile(file){return file?this.fileService.uploadPublic(file).pipe(map(response=>response.data.url)):of(null)}};_ImageInputFormComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_ImageInputFormComponent)},_ImageInputFormComponent.\u0275cmp=\u0275\u0275defineComponent({type:_ImageInputFormComponent,selectors:[["ix-image-input-form"]],inputs:{field:"field",componentFormGroup:"componentFormGroup",dialogTitle:"dialogTitle"},standalone:!1,features:[\u0275\u0275ProvidersFeature([{provide:NG_VALUE_ACCESSOR,useExisting:_ImageInputFormComponent,multi:!0}])],decls:4,vars:1,consts:[["alt","uploaded image",3,"src"],["mat-stroked-button","","color","primary","type","button",3,"click"],["translate",""]],template:function(rf,ctx){rf&1&&(\u0275\u0275template(0,ImageInputFormComponent_Conditional_0_Template,1,1,"img",0),\u0275\u0275elementStart(1,"button",1),\u0275\u0275listener("click",function(){return ctx.openDialog()}),\u0275\u0275elementStart(2,"span",2),\u0275\u0275text(3,"UPLOAD_FILE"),\u0275\u0275elementEnd()()),rf&2&&\u0275\u0275conditional(ctx.value?0:-1)},dependencies:[TranslateDirective,MatButton],styles:["[_nghost-%COMP%]{display:flex;place-content:center left;margin-bottom:16px}[_nghost-%COMP%] img[_ngcontent-%COMP%]{flex-grow:0;padding-right:8px;width:40px;height:40px;object-fit:contain}[_nghost-%COMP%] button[_ngcontent-%COMP%]{flex-grow:1}.ng-invalid[_nghost-%COMP%] button[_ngcontent-%COMP%]{border-color:var(--warn)}"]});let ImageInputFormComponent3=_ImageInputFormComponent;return ImageInputFormComponent3})();function ImageInputComponent_Conditional_0_Template(rf,ctx){if(rf&1&&(\u0275\u0275element(0,"p",0),\u0275\u0275pipe(1,"renderMarkdown")),rf&2){let ctx_r0=\u0275\u0275nextContext();\u0275\u0275property("innerHTML",\u0275\u0275pipeBind1(1,1,ctx_r0.field.inputDescription.description),\u0275\u0275sanitizeHtml)}}var ImageInputComponent=(()=>{let _ImageInputComponent=class _ImageInputComponent extends ComponentInputComponent{};_ImageInputComponent.\u0275fac=(()=>{let \u0275ImageInputComponent_BaseFactory;return function(__ngFactoryType__){return(\u0275ImageInputComponent_BaseFactory||(\u0275ImageInputComponent_BaseFactory=\u0275\u0275getInheritedFactory(_ImageInputComponent)))(__ngFactoryType__||_ImageInputComponent)}})(),_ImageInputComponent.\u0275cmp=\u0275\u0275defineComponent({type:_ImageInputComponent,selectors:[["ix-image-input"]],standalone:!1,features:[\u0275\u0275InheritDefinitionFeature],decls:3,vars:6,consts:[[1,"description",3,"innerHTML"],[3,"formGroup"],[3,"field","componentFormGroup","formControlName","dialogTitle"]],template:function(rf,ctx){rf&1&&(\u0275\u0275template(0,ImageInputComponent_Conditional_0_Template,2,3,"p",0),\u0275\u0275elementStart(1,"div",1),\u0275\u0275element(2,"ix-image-input-form",2),\u0275\u0275elementEnd()),rf&2&&(\u0275\u0275conditional(ctx.field.inputDescription.description?0:-1),\u0275\u0275advance(),\u0275\u0275property("formGroup",ctx.componentFormGroup),\u0275\u0275advance(),\u0275\u0275property("field",ctx.field)("componentFormGroup",ctx.componentFormGroup)("formControlName",ctx.field.inputName)("dialogTitle",ctx.field.inputDescription.label||""))},dependencies:[NgControlStatus,NgControlStatusGroup,FormGroupDirective,FormControlName,ImageInputFormComponent,RenderMarkdownPipe],styles:["[_nghost-%COMP%] .description[_ngcontent-%COMP%]{font-size:11px}"]});let ImageInputComponent3=_ImageInputComponent;return ImageInputComponent3})();function moveItemInFormArray(array,fromIndex,toIndex){fromIndex=Math.max(0,Math.min(fromIndex,array.length-1)),toIndex=Math.max(0,Math.min(toIndex,array.length-1));let item=array.at(fromIndex);array.removeAt(fromIndex),array.insert(toIndex,item)}function ListItemComponent_ng_template_2_Template(rf,ctx){}var ListItemComponent=(()=>{let _ListItemComponent=class _ListItemComponent{constructor(inputConverter,cdRef){this.inputConverter=inputConverter,this.cdRef=cdRef,this.delete=new EventEmitter}ngAfterViewInit(){this.inputConverter.loadComponentInputs([this.item],this.componentFormGroup,this.formDirective.viewContainerRef),this.cdRef.detectChanges()}deleteItem(){this.delete.emit(this.index)}};_ListItemComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_ListItemComponent)(\u0275\u0275directiveInject(INPUT_CONVERTER_TOKEN),\u0275\u0275directiveInject(ChangeDetectorRef))},_ListItemComponent.\u0275cmp=\u0275\u0275defineComponent({type:_ListItemComponent,selectors:[["ix-list-item"]],viewQuery:function(rf,ctx){if(rf&1&&\u0275\u0275viewQuery(InputControlFormDirective,5),rf&2){let _t;\u0275\u0275queryRefresh(_t=\u0275\u0275loadQuery())&&(ctx.formDirective=_t.first)}},inputs:{item:"item",index:"index",componentFormGroup:"componentFormGroup"},outputs:{delete:"delete"},standalone:!1,decls:9,vars:0,consts:[["fxLayout","row"],["fxFlex","",1,"list-item-content"],["ixInputControlForm",""],["mat-icon-button","","type","button","aria-label","Remove list item",1,"clear-button",3,"click"],["fxLayout","column","fxLayoutAlign","center end"]],template:function(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"div",0)(1,"div",1),\u0275\u0275template(2,ListItemComponent_ng_template_2_Template,0,0,"ng-template",2),\u0275\u0275elementEnd(),\u0275\u0275elementStart(3,"button",3),\u0275\u0275listener("click",function(){return ctx.deleteItem()}),\u0275\u0275elementStart(4,"mat-icon"),\u0275\u0275text(5,"clear"),\u0275\u0275elementEnd()(),\u0275\u0275elementStart(6,"div",4)(7,"mat-icon"),\u0275\u0275text(8,"drag_indicator"),\u0275\u0275elementEnd()()())},dependencies:[DefaultLayoutDirective,DefaultLayoutAlignDirective,DefaultFlexDirective,MatIconButton,MatIcon,InputControlFormDirective],styles:["[_nghost-%COMP%]{display:block;position:relative;font:400 14px/20px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal}[_nghost-%COMP%] .clear-button[_ngcontent-%COMP%]{position:absolute;top:0;right:24px;bottom:0;opacity:0;transition:opacity .2s ease-in-out;will-change:opacity}[_nghost-%COMP%] .clear-button[_ngcontent-%COMP%]:hover{opacity:1!important}[_nghost-%COMP%] .list-item-content[_ngcontent-%COMP%]{overflow:hidden}[_nghost-%COMP%] .list-item-content[_ngcontent-%COMP%]:hover + .clear-button[_ngcontent-%COMP%]{opacity:1!important}.cdk-drag-preview[_nghost-%COMP%]{background-color:#fff}.cdk-drag-preview[_nghost-%COMP%] .clear-button[_ngcontent-%COMP%]{display:none}.cdk-drag-preview[_nghost-%COMP%] .list-item-content[_ngcontent-%COMP%]{box-sizing:border-box;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}"]});let ListItemComponent3=_ListItemComponent;return ListItemComponent3})();function ListInputComponent_Conditional_0_Conditional_2_Template(rf,ctx){if(rf&1&&(\u0275\u0275element(0,"p",0),\u0275\u0275pipe(1,"renderMarkdown")),rf&2){let ctx_r1=\u0275\u0275nextContext(2);\u0275\u0275property("innerHTML",\u0275\u0275pipeBind1(1,1,ctx_r1.field.inputDescription.description),\u0275\u0275sanitizeHtml)}}function ListInputComponent_Conditional_0_For_5_Template(rf,ctx){if(rf&1){let _r3=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"ix-list-item",4),\u0275\u0275listener("delete",function(){let \u0275$index_11_r4=\u0275\u0275restoreView(_r3).$index,ctx_r1=\u0275\u0275nextContext(2);return \u0275\u0275resetView(ctx_r1.deleteItem(\u0275$index_11_r4))}),\u0275\u0275elementEnd()}if(rf&2){let item_r5=ctx.$implicit,\u0275$index_11_r4=ctx.$index,ctx_r1=\u0275\u0275nextContext(2);\u0275\u0275property("item",item_r5)("index",\u0275$index_11_r4)("componentFormGroup",ctx_r1.formGroupAt(\u0275$index_11_r4))}}function ListInputComponent_Conditional_0_Template(rf,ctx){if(rf&1){let _r1=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"h3"),\u0275\u0275text(1),\u0275\u0275elementEnd(),\u0275\u0275template(2,ListInputComponent_Conditional_0_Conditional_2_Template,2,3,"p",0),\u0275\u0275elementStart(3,"div",1),\u0275\u0275listener("cdkDropListDropped",function($event){\u0275\u0275restoreView(_r1);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.drop($event))}),\u0275\u0275repeaterCreate(4,ListInputComponent_Conditional_0_For_5_Template,1,3,"ix-list-item",2,\u0275\u0275repeaterTrackByIdentity),\u0275\u0275elementEnd(),\u0275\u0275elementStart(6,"button",3),\u0275\u0275listener("click",function(){\u0275\u0275restoreView(_r1);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.addItem())}),\u0275\u0275elementStart(7,"mat-icon"),\u0275\u0275text(8,"add"),\u0275\u0275elementEnd(),\u0275\u0275elementStart(9,"span"),\u0275\u0275text(10),\u0275\u0275elementEnd()()}if(rf&2){let ctx_r1=\u0275\u0275nextContext();\u0275\u0275advance(),\u0275\u0275textInterpolate(ctx_r1.field.inputDescription.label),\u0275\u0275advance(),\u0275\u0275conditional(ctx_r1.field.inputDescription.description?2:-1),\u0275\u0275advance(2),\u0275\u0275repeater(ctx_r1.listInput.items),\u0275\u0275advance(6),\u0275\u0275textInterpolate(ctx_r1.addButtonText)}}var ListInputComponent=(()=>{let _ListInputComponent=class _ListInputComponent extends ComponentInputComponent{constructor(inputConverter,translate,cdRef,dialog){super(),this.inputConverter=inputConverter,this.translate=translate,this.cdRef=cdRef,this.dialog=dialog}get listInput(){return this.field}get formArray(){return this.componentFormGroup.get(this.field.inputDescription.key)}get addButtonText(){return this.field.inputDescription.itemType?.label?this.translate.instant("ADD_NAME",{name:this.field.inputDescription.itemType.label}):this.translate.instant("ADD_ANOTHER")}formGroupAt(index){return this.formArray.at(index)}addItem(){let itemType=this.listInput.inputDescription.itemType;if(itemType){let itemInput=this.inputConverter.convertInput(itemType,itemType.defaultValue,this.listInput.context,this.listInput.level+1),itemForm=new FormGroup({[itemType.key]:itemInput.toFormControl()});itemType.type==="Group"&&itemType.summary?this.dialog.open(GroupInputDialogComponent,{width:"500px",data:{field:itemInput,componentFormGroup:itemForm}}).afterClosed().subscribe(result=>{result&&(itemInput.setValue(itemForm.value[itemType.key]),this.listInput.push(itemInput),this.formArray.markAsDirty(),this.formArray.push(itemForm),this.cdRef.detectChanges())}):(this.listInput.push(itemInput),this.formArray.markAsDirty(),this.formArray.push(itemForm))}}deleteItem(index){this.listInput.removeAt(index),this.formArray.removeAt(index)}drop($event){moveItemInArray(this.listInput.items,$event.previousIndex,$event.currentIndex),moveItemInFormArray(this.formArray,$event.previousIndex,$event.currentIndex)}};_ListInputComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_ListInputComponent)(\u0275\u0275directiveInject(INPUT_CONVERTER_TOKEN),\u0275\u0275directiveInject(TranslateService),\u0275\u0275directiveInject(ChangeDetectorRef),\u0275\u0275directiveInject(MatDialog))},_ListInputComponent.\u0275cmp=\u0275\u0275defineComponent({type:_ListInputComponent,selectors:[["ix-list-input"]],standalone:!1,features:[\u0275\u0275InheritDefinitionFeature],decls:1,vars:1,consts:[[1,"description",3,"innerHTML"],["cdkDropList","",3,"cdkDropListDropped"],["cdkDrag","",3,"item","index","componentFormGroup"],["type","button","mat-stroked-button","","color","primary",1,"add-button",3,"click"],["cdkDrag","",3,"delete","item","index","componentFormGroup"]],template:function(rf,ctx){rf&1&&\u0275\u0275template(0,ListInputComponent_Conditional_0_Template,11,3),rf&2&&\u0275\u0275conditional(ctx.field.hidden?-1:0)},dependencies:[CdkDropList,CdkDrag,MatButton,MatIcon,ListItemComponent,RenderMarkdownPipe],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] .description[_ngcontent-%COMP%]{font-size:11px}[_nghost-%COMP%] h3[_ngcontent-%COMP%]{font-size:11.5px!important;font-weight:500!important;text-transform:uppercase;letter-spacing:.8px;color:color-mix(in srgb,transparent,currentcolor 67%)}[_nghost-%COMP%] .add-button[_ngcontent-%COMP%]{--mdc-outlined-button-container-height: 32px;margin-top:16px}[_nghost-%COMP%] .cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}[_nghost-%COMP%] .cdk-drag-animating[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)}[_nghost-%COMP%] .cdk-drag[_ngcontent-%COMP%]:last-child{border:none}[_nghost-%COMP%] .cdk-drop-list-dragging[_ngcontent-%COMP%] .cdk-drag[_ngcontent-%COMP%]:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}[_nghost-%COMP%] .cdk-drop-list-dragging[_ngcontent-%COMP%] .cdk-drag-placeholder[_ngcontent-%COMP%]{cursor:grabbing}[_nghost-%COMP%] .cdk-drag[_ngcontent-%COMP%]{cursor:grab}[_nghost-%COMP%] ix-list-item[_ngcontent-%COMP%] + ix-list-item[_ngcontent-%COMP%]{margin-top:8px}"]});let ListInputComponent3=_ListInputComponent;return ListInputComponent3})();var ListInput=class extends ComponentPropertiesInput{constructor(input2,value,context3,converter,level){if(super(input2,value,context3,converter,level),input2.itemType){let itemType=input2.itemType;this.items=isArray_default(value)?value.map(value2=>converter.convertInput(itemType,value2,context3,level+1)):[],this.hidden=!!itemType.children?.some(item=>{let child=converter.convertInput(item,value,context3,level+1);return child.inputDescription.required&&child.hidden})}}toFormControl(){return new FormArray(this.items.map(item=>new FormGroup({[item.inputDescription.key]:item.toFormControl()})))}transformValue(){return{[this.inputDescription.key]:this.items.map(item=>item.transformValue())}}setValue(value){value.length===this.items.length&&this.items.forEach((item,i)=>item.setValue(value[i][item.inputDescription.key]))}push(item){this.items.push(item)}removeAt(index){this.items.splice(index,1)}};var LiveMetricInputFacade=(()=>{let _LiveMetricInputFacade=class _LiveMetricInputFacade extends RawMetricInputFacade{selectorDataIsLoaded(field){return this._selectorDataIsLoaded(field,selectAllLoadedForAgent2)}loadAgentDataVariables(agentId){this.store.dispatch(ensureAll25({agentId}))}selectorsForAgent(agentId,target){return this.loadAgentDataVariables(agentId),this._selectorsForAgent(agentId,target,selectAllForAgent2(agentId),{name:"variables",slug:"variable"})}};_LiveMetricInputFacade.\u0275fac=(()=>{let \u0275LiveMetricInputFacade_BaseFactory;return function(__ngFactoryType__){return(\u0275LiveMetricInputFacade_BaseFactory||(\u0275LiveMetricInputFacade_BaseFactory=\u0275\u0275getInheritedFactory(_LiveMetricInputFacade)))(__ngFactoryType__||_LiveMetricInputFacade)}})(),_LiveMetricInputFacade.\u0275prov=\u0275\u0275defineInjectable({token:_LiveMetricInputFacade,factory:_LiveMetricInputFacade.\u0275fac,providedIn:"root"});let LiveMetricInputFacade2=_LiveMetricInputFacade;return LiveMetricInputFacade2})();var _c015=a0=>({min:a0});function LiveMetricInputComponent_Conditional_0_Conditional_3_Template(rf,ctx){if(rf&1&&(\u0275\u0275element(0,"p",1),\u0275\u0275pipe(1,"renderMarkdown")),rf&2){let ctx_r0=\u0275\u0275nextContext(2);\u0275\u0275property("innerHTML",\u0275\u0275pipeBind1(1,1,ctx_r0.field.inputDescription.description),\u0275\u0275sanitizeHtml)}}function LiveMetricInputComponent_Conditional_0_Conditional_6_Conditional_5_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"mat-error"),\u0275\u0275text(1),\u0275\u0275pipe(2,"translate"),\u0275\u0275elementEnd()),rf&2){let tmp_3_0,ctx_r0=\u0275\u0275nextContext(3);\u0275\u0275advance(),\u0275\u0275textInterpolate1(" ",\u0275\u0275pipeBind2(2,1,"__MESSAGE__.MIN",\u0275\u0275pureFunction1(4,_c015,ctx_r0.decimalsControl==null||(tmp_3_0=ctx_r0.decimalsControl.getError("min"))==null?null:tmp_3_0.min))," ")}}function LiveMetricInputComponent_Conditional_0_Conditional_6_Conditional_6_Template(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"mat-error",6),\u0275\u0275text(1,"__MESSAGE__.INTEGER"),\u0275\u0275elementEnd())}function LiveMetricInputComponent_Conditional_0_Conditional_6_Conditional_7_Template(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"mat-error",6),\u0275\u0275text(1,"__MESSAGE__.INVALID_NUMBER"),\u0275\u0275elementEnd())}function LiveMetricInputComponent_Conditional_0_Conditional_6_Conditional_8_Conditional_4_Template(rf,ctx){if(rf&1){let _r2=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"ix-translation-icon-button",11),\u0275\u0275listener("setTranslationKey",function($event){\u0275\u0275restoreView(_r2);let ctx_r0=\u0275\u0275nextContext(4);return \u0275\u0275resetView(ctx_r0.setUnitTranslationKey($event))}),\u0275\u0275elementEnd()}if(rf&2){let ctx_r0=\u0275\u0275nextContext(4);\u0275\u0275property("key",ctx_r0.unitTranslationKey)}}function LiveMetricInputComponent_Conditional_0_Conditional_6_Conditional_8_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"mat-form-field",5)(1,"mat-label",6),\u0275\u0275text(2,"UNIT"),\u0275\u0275elementEnd(),\u0275\u0275element(3,"input",9),\u0275\u0275template(4,LiveMetricInputComponent_Conditional_0_Conditional_6_Conditional_8_Conditional_4_Template,1,1,"ix-translation-icon-button",10),\u0275\u0275elementEnd()),rf&2){let ctx_r0=\u0275\u0275nextContext(3);\u0275\u0275property("formGroupName",ctx_r0.field.inputDescription.key),\u0275\u0275advance(3),\u0275\u0275property("placeholder",ctx_r0.unitPlaceholder),\u0275\u0275advance(),\u0275\u0275conditional(ctx_r0.translation?4:-1)}}function LiveMetricInputComponent_Conditional_0_Conditional_6_Conditional_9_Template(rf,ctx){if(rf&1){let _r3=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"mat-form-field")(1,"mat-label",6),\u0275\u0275text(2,"UNIT"),\u0275\u0275elementEnd(),\u0275\u0275element(3,"input",12),\u0275\u0275pipe(4,"translate"),\u0275\u0275pipe(5,"trimTranslationNamespace"),\u0275\u0275elementStart(6,"ix-translation-icon-button",11),\u0275\u0275listener("setTranslationKey",function($event){\u0275\u0275restoreView(_r3);let ctx_r0=\u0275\u0275nextContext(3);return \u0275\u0275resetView(ctx_r0.setUnitTranslationKey($event))}),\u0275\u0275elementEnd()()}if(rf&2){let ctx_r0=\u0275\u0275nextContext(3);\u0275\u0275advance(3),\u0275\u0275property("value",ctx_r0.unitTranslationKey?\u0275\u0275pipeBind1(5,4,\u0275\u0275pipeBind1(4,2,ctx_r0.unitTranslationKey)):""),\u0275\u0275advance(3),\u0275\u0275property("key",ctx_r0.unitTranslationKey)}}function LiveMetricInputComponent_Conditional_0_Conditional_6_Conditional_14_Template(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"mat-error",6),\u0275\u0275text(1,"__MESSAGE__.INVALID_FACTOR"),\u0275\u0275elementEnd())}function LiveMetricInputComponent_Conditional_0_Conditional_6_Conditional_15_Template(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"mat-error",6),\u0275\u0275text(1,"__MESSAGE__.INVALID_NUMBER"),\u0275\u0275elementEnd())}function LiveMetricInputComponent_Conditional_0_Conditional_6_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"div",4)(1,"mat-form-field",5)(2,"mat-label",6),\u0275\u0275text(3,"DECIMALS"),\u0275\u0275elementEnd(),\u0275\u0275element(4,"input",7),\u0275\u0275template(5,LiveMetricInputComponent_Conditional_0_Conditional_6_Conditional_5_Template,3,6,"mat-error")(6,LiveMetricInputComponent_Conditional_0_Conditional_6_Conditional_6_Template,2,0,"mat-error",6)(7,LiveMetricInputComponent_Conditional_0_Conditional_6_Conditional_7_Template,2,0,"mat-error",6),\u0275\u0275elementEnd(),\u0275\u0275template(8,LiveMetricInputComponent_Conditional_0_Conditional_6_Conditional_8_Template,5,3,"mat-form-field",5)(9,LiveMetricInputComponent_Conditional_0_Conditional_6_Conditional_9_Template,7,6,"mat-form-field"),\u0275\u0275elementStart(10,"mat-form-field",5)(11,"mat-label",6),\u0275\u0275text(12,"FACTOR"),\u0275\u0275elementEnd(),\u0275\u0275element(13,"input",8),\u0275\u0275template(14,LiveMetricInputComponent_Conditional_0_Conditional_6_Conditional_14_Template,2,0,"mat-error",6)(15,LiveMetricInputComponent_Conditional_0_Conditional_6_Conditional_15_Template,2,0,"mat-error",6),\u0275\u0275elementEnd()()),rf&2){let ctx_r0=\u0275\u0275nextContext(2);\u0275\u0275advance(),\u0275\u0275property("formGroupName",ctx_r0.field.inputDescription.key),\u0275\u0275advance(4),\u0275\u0275conditional(ctx_r0.decimalsControl!=null&&ctx_r0.decimalsControl.hasError("min")?5:-1),\u0275\u0275advance(),\u0275\u0275conditional(ctx_r0.decimalsControl!=null&&ctx_r0.decimalsControl.hasError("integer")?6:-1),\u0275\u0275advance(),\u0275\u0275conditional(ctx_r0.decimalsControl!=null&&ctx_r0.decimalsControl.hasError("number")?7:-1),\u0275\u0275advance(),\u0275\u0275conditional(!ctx_r0.translation||!ctx_r0.unitTranslationKey?8:9),\u0275\u0275advance(2),\u0275\u0275property("formGroupName",ctx_r0.field.inputDescription.key),\u0275\u0275advance(3),\u0275\u0275property("placeholder",ctx_r0.factorPlaceholder||""),\u0275\u0275advance(),\u0275\u0275conditional(ctx_r0.factorControl!=null&&ctx_r0.factorControl.hasError("decimals")?14:-1),\u0275\u0275advance(),\u0275\u0275conditional(ctx_r0.factorControl!=null&&ctx_r0.factorControl.hasError("number")?15:-1)}}function LiveMetricInputComponent_Conditional_0_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"div",0)(1,"h3"),\u0275\u0275text(2),\u0275\u0275elementEnd(),\u0275\u0275template(3,LiveMetricInputComponent_Conditional_0_Conditional_3_Template,2,3,"p",1),\u0275\u0275elementStart(4,"div",2),\u0275\u0275element(5,"ix-selector-input",3),\u0275\u0275elementEnd(),\u0275\u0275template(6,LiveMetricInputComponent_Conditional_0_Conditional_6_Template,16,9,"div",4),\u0275\u0275elementEnd()),rf&2){let ctx_r0=\u0275\u0275nextContext();\u0275\u0275property("formGroup",ctx_r0.componentFormGroup),\u0275\u0275advance(2),\u0275\u0275textInterpolate(ctx_r0.field.inputDescription.label),\u0275\u0275advance(),\u0275\u0275conditional(ctx_r0.field.inputDescription.description?3:-1),\u0275\u0275advance(2),\u0275\u0275property("pageVersionId",ctx_r0.field.context.component.pageVersion==null?null:ctx_r0.field.context.component.pageVersion.publicId)("selectorControl",ctx_r0.selectorControl)("selectors",ctx_r0.selectors)("disabled",!ctx_r0.selectorDataIsLoaded)("required",ctx_r0.required),\u0275\u0275advance(),\u0275\u0275conditional(ctx_r0.showDecimalsUnitFactor?6:-1)}}var LiveMetricInputComponent=(()=>{let _LiveMetricInputComponent=class _LiveMetricInputComponent extends RawMetricInputComponent{constructor(){super(...arguments),this.facade=inject(LiveMetricInputFacade)}};_LiveMetricInputComponent.\u0275fac=(()=>{let \u0275LiveMetricInputComponent_BaseFactory;return function(__ngFactoryType__){return(\u0275LiveMetricInputComponent_BaseFactory||(\u0275LiveMetricInputComponent_BaseFactory=\u0275\u0275getInheritedFactory(_LiveMetricInputComponent)))(__ngFactoryType__||_LiveMetricInputComponent)}})(),_LiveMetricInputComponent.\u0275cmp=\u0275\u0275defineComponent({type:_LiveMetricInputComponent,selectors:[["ix-live-metric-input"]],standalone:!1,features:[\u0275\u0275InheritDefinitionFeature],decls:1,vars:1,consts:[[3,"formGroup"],[1,"description",3,"innerHTML"],["fxLayout","column"],["fxFlex","","label","VARIABLE",3,"pageVersionId","selectorControl","selectors","disabled","required"],["fxLayout","row","fxLayoutGap","8px"],["fxFlex","",3,"formGroupName"],["translate",""],["formControlName","decimals","min","0","type","number","matInput",""],["formControlName","factor","type","number","matInput","",3,"placeholder"],["formControlName","unit","matInput","",3,"placeholder"],[3,"key"],[3,"setTranslationKey","key"],["matInput","","disabled","",3,"value"]],template:function(rf,ctx){rf&1&&\u0275\u0275template(0,LiveMetricInputComponent_Conditional_0_Template,7,9,"div",0),rf&2&&\u0275\u0275conditional(ctx.field.hidden?-1:0)},dependencies:[NumberInputValidatorDirective,SelectorInputComponent,DefaultLayoutDirective,DefaultLayoutGapDirective,DefaultFlexDirective,DefaultValueAccessor,NumberValueAccessor,NgControlStatus,NgControlStatusGroup,MinValidator,FormGroupDirective,FormControlName,FormGroupName,TranslateDirective,MatFormField,MatLabel,MatError,MatInput,TranslationIconButtonComponent,RenderMarkdownPipe,TranslatePipe,TrimTranslationNamespacePipe],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] h3[_ngcontent-%COMP%]{font-size:11.5px!important;font-weight:500!important;text-transform:uppercase;letter-spacing:.8px;color:color-mix(in srgb,transparent,currentcolor 67%)}[_nghost-%COMP%] .description[_ngcontent-%COMP%]{font-size:11px}[_nghost-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%]{display:block}"]});let LiveMetricInputComponent3=_LiveMetricInputComponent;return LiveMetricInputComponent3})();var LiveMetricInput=class extends RawMetricInput{constructor(input2,value,context3,converter,level,injector){super(input2,value,context3,converter,level,injector),this.hidden=!injector.get(PlatformFeaturesService).instantCheck([{canInput:"live-data"}])}};var MaterialIconFieldsetFacade=(()=>{let _MaterialIconFieldsetFacade=class _MaterialIconFieldsetFacade{groups(appearance){return from(import("./chunk-PLQ7EYAV.js")).pipe(map(({ICONS_METADATA})=>{let groupsDict=ICONS_METADATA.reduce((groups,icon)=>(appearance==="legacy"&&icon.unsupported_families.includes("Material Icons")||appearance==="symbols"&&icon.unsupported_families.includes("Material Symbols Outlined")||icon.categories.forEach(category=>{groups[category]||(groups[category]=[]),groups[category].push(icon)}),groups),{});return Object.keys(groupsDict).map(key=>({name:key,icons:groupsDict[key]}))}),map(groups=>groups.map(group=>__spreadProps(__spreadValues({},group),{popularity:Math.round(group.icons.reduce((acc,curr)=>acc+curr.popularity,0)/group.icons.length),icons:group.icons.sort((a,b)=>b.popularity-a.popularity)})).sort((a,b)=>b.popularity-a.popularity)))}};_MaterialIconFieldsetFacade.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_MaterialIconFieldsetFacade)},_MaterialIconFieldsetFacade.\u0275prov=\u0275\u0275defineInjectable({token:_MaterialIconFieldsetFacade,factory:_MaterialIconFieldsetFacade.\u0275fac,providedIn:"root"});let MaterialIconFieldsetFacade2=_MaterialIconFieldsetFacade;return MaterialIconFieldsetFacade2})();var _c016=a0=>({"with-errors":a0}),_forTrack05=($index,$item)=>$item.name;function MaterialIconFieldsetComponent_For_7_For_2_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"mat-option",13)(1,"mat-icon"),\u0275\u0275text(2),\u0275\u0275elementEnd()()),rf&2){let icon_r2=ctx.$implicit;\u0275\u0275property("value",icon_r2.name)("title",icon_r2.name),\u0275\u0275advance(2),\u0275\u0275textInterpolate(icon_r2.name)}}function MaterialIconFieldsetComponent_For_7_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"mat-optgroup",4),\u0275\u0275repeaterCreate(1,MaterialIconFieldsetComponent_For_7_For_2_Template,3,3,"mat-option",13,_forTrack05),\u0275\u0275elementEnd()),rf&2){let group_r3=ctx.$implicit;\u0275\u0275property("label",group_r3.name),\u0275\u0275advance(),\u0275\u0275repeater(group_r3.icons)}}function MaterialIconFieldsetComponent_ng_container_15_Template(rf,ctx){rf&1&&\u0275\u0275elementContainer(0)}function MaterialIconFieldsetComponent_Conditional_16_Template(rf,ctx){if(rf&1){let _r4=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"button",14),\u0275\u0275pipe(1,"translate"),\u0275\u0275listener("click",function(){\u0275\u0275restoreView(_r4);let ctx_r4=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r4.clear())}),\u0275\u0275elementStart(2,"mat-icon"),\u0275\u0275text(3,"close"),\u0275\u0275elementEnd()()}rf&2&&\u0275\u0275property("matTooltip",\u0275\u0275pipeBind1(1,1,"CLEAR"))}function MaterialIconFieldsetComponent_Conditional_18_Template(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"mat-error",12),\u0275\u0275text(1,"__MESSAGE__.REQUIRED"),\u0275\u0275elementEnd())}function MaterialIconFieldsetComponent_ng_template_19_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"mat-icon",15),\u0275\u0275text(1),\u0275\u0275elementEnd()),rf&2){let ctx_r4=\u0275\u0275nextContext();\u0275\u0275advance(),\u0275\u0275textInterpolate(ctx_r4.value)}}function MaterialIconFieldsetComponent_ng_template_21_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"mat-icon",16),\u0275\u0275text(1),\u0275\u0275elementEnd()),rf&2){let ctx_r4=\u0275\u0275nextContext();\u0275\u0275advance(),\u0275\u0275textInterpolate(ctx_r4.placeholderIcon)}}var MaterialIconFieldsetComponent=(()=>{let _MaterialIconFieldsetComponent=class _MaterialIconFieldsetComponent{constructor(){this.appearance="symbols",this.placeholderIcon="add_reaction",this.filteredIconGroups$=new ReplaySubject(1),this.queryFormControl=new FormControl(""),this.destroy=inject(DestroyRef),this.facade=inject(MaterialIconFieldsetFacade)}get required(){return this.form.hasValidator(Validators.required)}get value(){return this.form.value}ngOnInit(){this.facade.groups(this.appearance).pipe(takeUntilDestroyed(this.destroy)).subscribe(groups=>{this.groups=groups,this.filteredIconGroups$.next(this.copyIconGroups(this.groups))}),this.queryFormControl.valueChanges.pipe(debounceTime(100),takeUntilDestroyed(this.destroy)).subscribe(()=>{this.filterIconGroups()})}ngAfterViewInit(){this.select._calculateOverlayScroll=this._calculateOverlayScroll.bind(this)}clear(){this.form.setValue(null)}toggleSelect(){this.select.panelOpen?this.select.close():this.select.open()}filterIconGroups(){if(!this.groups)return;let query=this.queryFormControl.value||"",iconGroupsCopy=this.copyIconGroups(this.groups);if(!query){this.filteredIconGroups$.next(iconGroupsCopy);return}query=query.toLowerCase(),this.filteredIconGroups$.next(iconGroupsCopy.filter(iconGroup=>(iconGroup.name.toLowerCase().includes(query)||(iconGroup.icons=iconGroup.icons.filter(icon=>icon.name.toLowerCase().includes(query)||icon.tags.some(tag=>tag.toLowerCase().includes(query)))),iconGroup.icons.length>0)))}copyIconGroups(iconGroups){let iconGroupsCopy=[];return iconGroups.forEach(iconGroup=>{iconGroupsCopy.push({name:iconGroup.name,popularity:iconGroup.popularity,icons:iconGroup.icons.slice()})}),iconGroupsCopy}_calculateOverlayScroll(selectedIndex,scrollBuffer,maxScroll){let selectedLabel=this.select.selected?this.select.selected.group?.label:null,_selectedGroupIndex=selectedLabel?this.groups.findIndex(group=>group.name===selectedLabel):-1,_selectedIndex=selectedIndex-_selectedGroupIndex-2,itemHeight=40,optionOffsetFromScrollTop=itemHeight*Math.ceil(_selectedIndex/7)+Math.round((_selectedGroupIndex+1)*48),halfOptionHeight=itemHeight/2,optimalScrollPosition=optionOffsetFromScrollTop-scrollBuffer+halfOptionHeight;return Math.min(Math.max(0,optimalScrollPosition),maxScroll)}};_MaterialIconFieldsetComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_MaterialIconFieldsetComponent)},_MaterialIconFieldsetComponent.\u0275cmp=\u0275\u0275defineComponent({type:_MaterialIconFieldsetComponent,selectors:[["ix-material-icon-fieldset"]],viewQuery:function(rf,ctx){if(rf&1&&\u0275\u0275viewQuery(MatSelect,5),rf&2){let _t;\u0275\u0275queryRefresh(_t=\u0275\u0275loadQuery())&&(ctx.select=_t.first)}},inputs:{appearance:"appearance",form:"form",label:"label",placeholderIcon:"placeholderIcon"},decls:23,vars:20,consts:[["selectedIcon",""],["defaultIcon",""],["panelClass","material-icon-select-panel",1,"select",3,"formControl"],[3,"formControl","placeholderLabel","noEntriesFoundLabel"],[1,"icon-group",3,"label"],["fxLayout","column",3,"ngClass"],["data-testid","material-icon-fieldset-label",1,"label"],["fxLayout","row","fxLayoutAlign","start center"],["type","button","mat-icon-button","",1,"select-trigger-button",3,"click","disabled"],[4,"ngTemplateOutlet"],["type","button","mat-icon-button","",1,"clear-button",3,"matTooltip"],[1,"errors"],["translate",""],[1,"icon",3,"value","title"],["type","button","mat-icon-button","",1,"clear-button",3,"click","matTooltip"],["data-testid","material-icon-fieldset-selected-icon"],["data-testid","material-icon-fieldset-placeholder-icon"]],template:function(rf,ctx){if(rf&1){let _r1=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"mat-form-field")(1,"mat-select",2)(2,"mat-option"),\u0275\u0275element(3,"ngx-mat-select-search",3),\u0275\u0275pipe(4,"translate"),\u0275\u0275pipe(5,"translate"),\u0275\u0275elementEnd(),\u0275\u0275repeaterCreate(6,MaterialIconFieldsetComponent_For_7_Template,3,1,"mat-optgroup",4,_forTrack05),\u0275\u0275pipe(8,"async"),\u0275\u0275elementEnd()(),\u0275\u0275elementStart(9,"div",5)(10,"div",6),\u0275\u0275text(11),\u0275\u0275pipe(12,"translate"),\u0275\u0275elementEnd(),\u0275\u0275elementStart(13,"div",7)(14,"button",8),\u0275\u0275listener("click",function(){return \u0275\u0275restoreView(_r1),\u0275\u0275resetView(ctx.toggleSelect())}),\u0275\u0275template(15,MaterialIconFieldsetComponent_ng_container_15_Template,1,0,"ng-container",9),\u0275\u0275elementEnd(),\u0275\u0275template(16,MaterialIconFieldsetComponent_Conditional_16_Template,4,3,"button",10),\u0275\u0275elementEnd(),\u0275\u0275elementStart(17,"div",11),\u0275\u0275template(18,MaterialIconFieldsetComponent_Conditional_18_Template,2,0,"mat-error",12),\u0275\u0275elementEnd()(),\u0275\u0275template(19,MaterialIconFieldsetComponent_ng_template_19_Template,2,1,"ng-template",null,0,\u0275\u0275templateRefExtractor)(21,MaterialIconFieldsetComponent_ng_template_21_Template,2,1,"ng-template",null,1,\u0275\u0275templateRefExtractor)}if(rf&2){let selectedIcon_r6=\u0275\u0275reference(20),defaultIcon_r7=\u0275\u0275reference(22);\u0275\u0275advance(),\u0275\u0275property("formControl",ctx.form),\u0275\u0275advance(2),\u0275\u0275property("formControl",ctx.queryFormControl)("placeholderLabel",\u0275\u0275pipeBind1(4,10,"SEARCH"))("noEntriesFoundLabel",\u0275\u0275pipeBind1(5,12,"NO_RESULTS_FOUND")),\u0275\u0275advance(3),\u0275\u0275repeater(\u0275\u0275pipeBind1(8,14,ctx.filteredIconGroups$)),\u0275\u0275advance(3),\u0275\u0275property("ngClass",\u0275\u0275pureFunction1(18,_c016,ctx.form.touched&&ctx.form.invalid)),\u0275\u0275advance(2),\u0275\u0275textInterpolate1(" ",(ctx.label||\u0275\u0275pipeBind1(12,16,"ICON"))+(ctx.required?" *":"")," "),\u0275\u0275advance(3),\u0275\u0275property("disabled",ctx.form.disabled),\u0275\u0275advance(),\u0275\u0275property("ngTemplateOutlet",ctx.value?selectedIcon_r6:defaultIcon_r7),\u0275\u0275advance(),\u0275\u0275conditional(ctx.value&&!ctx.form.disabled?16:-1),\u0275\u0275advance(2),\u0275\u0275conditional(ctx.form.touched&&ctx.form.hasError("required")?18:-1)}},dependencies:[AsyncPipe,NgClass,NgTemplateOutlet,FormsModule,NgControlStatus,FlexLayoutModule,DefaultLayoutDirective,DefaultLayoutAlignDirective,DefaultClassDirective,ReactiveFormsModule,FormControlDirective,MatButtonModule,MatIconButton,MatFormFieldModule,MatFormField,MatError,MatIconModule,MatIcon,MatTooltipModule,MatTooltip,MatSelectModule,MatSelect,MatOption,MatOptgroup,NgxMatSelectSearchModule,MatSelectSearchComponent,TranslateModule,TranslatePipe,TranslateDirective],styles:["[_nghost-%COMP%]{display:block;position:relative;padding-bottom:1.25em}[_nghost-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%]{position:absolute;left:40px;visibility:hidden}[_nghost-%COMP%] .select-trigger-button[_ngcontent-%COMP%]{background-color:rgba(var(--body-color-rgb),.04)}[_nghost-%COMP%] .label[_ngcontent-%COMP%]{margin-bottom:4px;transform-origin:top left;transform:scale(.75) perspective(100px) translateZ(.001px);font-size:14px;color:#0000008a}[_nghost-%COMP%] .with-errors[_ngcontent-%COMP%] .label[_ngcontent-%COMP%], [_nghost-%COMP%] .with-errors[_ngcontent-%COMP%] .select-trigger-button[_ngcontent-%COMP%]{color:var(--warn)}[_nghost-%COMP%] .errors[_ngcontent-%COMP%]{position:absolute;top:66px;left:0;font-size:10.5px}[_nghost-%COMP%] .clear-button[_ngcontent-%COMP%]{--mdc-icon-button-state-layer-size: 32px;--mdc-icon-button-icon-size: 20px;margin-left:4px}"],changeDetection:0});let MaterialIconFieldsetComponent2=_MaterialIconFieldsetComponent;return MaterialIconFieldsetComponent2})();function MaterialIconInputComponent_Conditional_0_Template(rf,ctx){if(rf&1&&(\u0275\u0275element(0,"p",0),\u0275\u0275pipe(1,"renderMarkdown")),rf&2){let ctx_r0=\u0275\u0275nextContext();\u0275\u0275property("innerHTML",\u0275\u0275pipeBind1(1,1,ctx_r0.field.inputDescription.description),\u0275\u0275sanitizeHtml)}}var MaterialIconInputComponent=(()=>{let _MaterialIconInputComponent=class _MaterialIconInputComponent extends ComponentInputComponent{get inputControl(){return super.inputControl}};_MaterialIconInputComponent.\u0275fac=(()=>{let \u0275MaterialIconInputComponent_BaseFactory;return function(__ngFactoryType__){return(\u0275MaterialIconInputComponent_BaseFactory||(\u0275MaterialIconInputComponent_BaseFactory=\u0275\u0275getInheritedFactory(_MaterialIconInputComponent)))(__ngFactoryType__||_MaterialIconInputComponent)}})(),_MaterialIconInputComponent.\u0275cmp=\u0275\u0275defineComponent({type:_MaterialIconInputComponent,selectors:[["ix-material-icon-input"]],standalone:!1,features:[\u0275\u0275InheritDefinitionFeature],decls:2,vars:3,consts:[[1,"description",3,"innerHTML"],["appearance","legacy",3,"form","label"]],template:function(rf,ctx){rf&1&&(\u0275\u0275template(0,MaterialIconInputComponent_Conditional_0_Template,2,3,"p",0),\u0275\u0275element(1,"ix-material-icon-fieldset",1)),rf&2&&(\u0275\u0275conditional(ctx.field.inputDescription.description?0:-1),\u0275\u0275advance(),\u0275\u0275property("form",ctx.inputControl)("label",ctx.field.inputDescription.label||""))},dependencies:[MaterialIconFieldsetComponent,RenderMarkdownPipe],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] .description[_ngcontent-%COMP%]{font-size:11px}"]});let MaterialIconInputComponent3=_MaterialIconInputComponent;return MaterialIconInputComponent3})();var _c017=a0=>({min:a0}),_c16=a0=>({max:a0});function NumberInputComponent_Conditional_0_Template(rf,ctx){if(rf&1&&(\u0275\u0275element(0,"p",0),\u0275\u0275pipe(1,"renderMarkdown")),rf&2){let ctx_r0=\u0275\u0275nextContext();\u0275\u0275property("innerHTML",\u0275\u0275pipeBind1(1,1,ctx_r0.field.inputDescription.description),\u0275\u0275sanitizeHtml)}}function NumberInputComponent_Conditional_7_Template(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"mat-error",3),\u0275\u0275text(1,"__MESSAGE__.REQUIRED"),\u0275\u0275elementEnd())}function NumberInputComponent_Conditional_8_Template(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"mat-error",3),\u0275\u0275text(1,"__MESSAGE__.INVALID_NUMBER"),\u0275\u0275elementEnd())}function NumberInputComponent_Conditional_9_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"mat-error",4),\u0275\u0275text(1,"__MESSAGE__.MIN"),\u0275\u0275elementEnd()),rf&2){let tmp_1_0,ctx_r0=\u0275\u0275nextContext();\u0275\u0275property("translateParams",\u0275\u0275pureFunction1(1,_c017,ctx_r0.inputControl==null||(tmp_1_0=ctx_r0.inputControl.getError("min"))==null?null:tmp_1_0.min))}}function NumberInputComponent_Conditional_10_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"mat-error",4),\u0275\u0275text(1,"__MESSAGE__.MAX"),\u0275\u0275elementEnd()),rf&2){let tmp_1_0,ctx_r0=\u0275\u0275nextContext();\u0275\u0275property("translateParams",\u0275\u0275pureFunction1(1,_c16,ctx_r0.inputControl==null||(tmp_1_0=ctx_r0.inputControl.getError("max"))==null?null:tmp_1_0.max))}}var NumberInputComponent=(()=>{let _NumberInputComponent=class _NumberInputComponent extends ComponentInputComponent{enterKeyDownHandler(event2){event2.target.blur()}};_NumberInputComponent.\u0275fac=(()=>{let \u0275NumberInputComponent_BaseFactory;return function(__ngFactoryType__){return(\u0275NumberInputComponent_BaseFactory||(\u0275NumberInputComponent_BaseFactory=\u0275\u0275getInheritedFactory(_NumberInputComponent)))(__ngFactoryType__||_NumberInputComponent)}})(),_NumberInputComponent.\u0275cmp=\u0275\u0275defineComponent({type:_NumberInputComponent,selectors:[["ix-number-input"]],standalone:!1,features:[\u0275\u0275InheritDefinitionFeature],decls:11,vars:11,consts:[[1,"description",3,"innerHTML"],[3,"formGroup"],["matInput","","type","number","autocomplete","off","data-lpignore","true",3,"keydown.enter","step","formControlName","placeholder"],["translate",""],["translate","",3,"translateParams"]],template:function(rf,ctx){rf&1&&(\u0275\u0275template(0,NumberInputComponent_Conditional_0_Template,2,3,"p",0),\u0275\u0275elementStart(1,"mat-form-field",1)(2,"mat-label"),\u0275\u0275text(3),\u0275\u0275elementEnd(),\u0275\u0275elementStart(4,"input",2),\u0275\u0275listener("keydown.enter",function($event){return ctx.enterKeyDownHandler($event)}),\u0275\u0275elementEnd(),\u0275\u0275elementStart(5,"mat-hint"),\u0275\u0275text(6),\u0275\u0275elementEnd(),\u0275\u0275template(7,NumberInputComponent_Conditional_7_Template,2,0,"mat-error",3)(8,NumberInputComponent_Conditional_8_Template,2,0,"mat-error",3)(9,NumberInputComponent_Conditional_9_Template,2,3,"mat-error",4)(10,NumberInputComponent_Conditional_10_Template,2,3,"mat-error",4),\u0275\u0275elementEnd()),rf&2&&(\u0275\u0275conditional(ctx.field.inputDescription.description?0:-1),\u0275\u0275advance(),\u0275\u0275property("formGroup",ctx.componentFormGroup),\u0275\u0275advance(2),\u0275\u0275textInterpolate(ctx.field.inputDescription.label),\u0275\u0275advance(),\u0275\u0275property("step",ctx.field.inputDescription.step)("formControlName",ctx.field.inputName)("placeholder",ctx.field.inputDescription.placeholder||""),\u0275\u0275advance(2),\u0275\u0275textInterpolate(ctx.field.inputDescription.hint),\u0275\u0275advance(),\u0275\u0275conditional(ctx.inputControl!=null&&ctx.inputControl.hasError("required")?7:-1),\u0275\u0275advance(),\u0275\u0275conditional(ctx.inputControl!=null&&ctx.inputControl.hasError("number")?8:-1),\u0275\u0275advance(),\u0275\u0275conditional(ctx.inputControl!=null&&ctx.inputControl.hasError("min")?9:-1),\u0275\u0275advance(),\u0275\u0275conditional(ctx.inputControl!=null&&ctx.inputControl.hasError("max")?10:-1))},dependencies:[NumberInputValidatorDirective,DefaultValueAccessor,NumberValueAccessor,NgControlStatus,NgControlStatusGroup,FormGroupDirective,FormControlName,TranslateDirective,MatFormField,MatLabel,MatHint,MatError,MatInput,RenderMarkdownPipe],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] .description[_ngcontent-%COMP%]{font-size:11px}[_nghost-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]});let NumberInputComponent3=_NumberInputComponent;return NumberInputComponent3})();var NumberInput=class extends ComponentPropertiesInput{toFormControl(){let value=this.value??this.inputDescription.defaultValue,validators=this.getValidators(),formControl=new FormControl(value,validators);return this.inputDescription.disabled&&formControl.disable(),formControl}getValidators(){let validators=[],{min:min2,max:max2,required}=this.inputDescription;return required&&validators.push(Validators.required),min2!==void 0&&validators.push(Validators.min(min2)),max2!==void 0&&validators.push(Validators.max(max2)),validators}};function SelectionInputComponent_Conditional_0_Template(rf,ctx){if(rf&1&&(\u0275\u0275element(0,"p",0),\u0275\u0275pipe(1,"renderMarkdown")),rf&2){let ctx_r0=\u0275\u0275nextContext();\u0275\u0275property("innerHTML",\u0275\u0275pipeBind1(1,1,ctx_r0.field.inputDescription.description),\u0275\u0275sanitizeHtml)}}function SelectionInputComponent_For_6_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"mat-option",3),\u0275\u0275text(1),\u0275\u0275elementEnd()),rf&2){let option_r2=ctx.$implicit;\u0275\u0275property("value",option_r2.value),\u0275\u0275advance(),\u0275\u0275textInterpolate(option_r2.label)}}function SelectionInputComponent_Conditional_7_Template(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"mat-error",4),\u0275\u0275text(1,"__MESSAGE__.REQUIRED"),\u0275\u0275elementEnd())}var SelectionInputComponent=(()=>{let _SelectionInputComponent=class _SelectionInputComponent extends ComponentInputComponent{};_SelectionInputComponent.\u0275fac=(()=>{let \u0275SelectionInputComponent_BaseFactory;return function(__ngFactoryType__){return(\u0275SelectionInputComponent_BaseFactory||(\u0275SelectionInputComponent_BaseFactory=\u0275\u0275getInheritedFactory(_SelectionInputComponent)))(__ngFactoryType__||_SelectionInputComponent)}})(),_SelectionInputComponent.\u0275cmp=\u0275\u0275defineComponent({type:_SelectionInputComponent,selectors:[["ix-selection-input"]],standalone:!1,features:[\u0275\u0275InheritDefinitionFeature],decls:8,vars:5,consts:[[1,"description",3,"innerHTML"],[3,"formGroup"],[3,"formControlName"],[3,"value"],["translate",""]],template:function(rf,ctx){rf&1&&(\u0275\u0275template(0,SelectionInputComponent_Conditional_0_Template,2,3,"p",0),\u0275\u0275elementStart(1,"mat-form-field",1)(2,"mat-label"),\u0275\u0275text(3),\u0275\u0275elementEnd(),\u0275\u0275elementStart(4,"mat-select",2),\u0275\u0275repeaterCreate(5,SelectionInputComponent_For_6_Template,2,2,"mat-option",3,\u0275\u0275repeaterTrackByIdentity),\u0275\u0275elementEnd(),\u0275\u0275template(7,SelectionInputComponent_Conditional_7_Template,2,0,"mat-error",4),\u0275\u0275elementEnd()),rf&2&&(\u0275\u0275conditional(ctx.field.inputDescription.description?0:-1),\u0275\u0275advance(),\u0275\u0275property("formGroup",ctx.componentFormGroup),\u0275\u0275advance(2),\u0275\u0275textInterpolate(ctx.field.inputDescription.label),\u0275\u0275advance(),\u0275\u0275property("formControlName",ctx.field.inputName),\u0275\u0275advance(),\u0275\u0275repeater(ctx.field.inputDescription.options),\u0275\u0275advance(2),\u0275\u0275conditional(ctx.inputControl!=null&&ctx.inputControl.hasError("required")?7:-1))},dependencies:[NgControlStatus,NgControlStatusGroup,FormGroupDirective,FormControlName,TranslateDirective,MatOption,MatFormField,MatLabel,MatError,MatSelect,RenderMarkdownPipe],styles:["[_nghost-%COMP%] .description[_ngcontent-%COMP%]{font-size:11px}[_nghost-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%]{display:block}"]});let SelectionInputComponent3=_SelectionInputComponent;return SelectionInputComponent3})();var SelectionInput=class extends ComponentPropertiesInput{constructor(input2,value,context3,converter,level){super(input2,value,context3,converter,level),this.setValue(value)}setValue(value){super.setValue(value)}transformValue(){let selectedOption=this.inputDescription.options?.find(v=>v.value===this.value);return selectedOption?__spreadProps(__spreadValues({},super.transformValue()),{["$"+this.inputDescription.key]:selectedOption}):super.transformValue()}};var StringInput=class extends ComponentPropertiesInput{constructor(input2,value,context3,converter,level,injector){super(input2,value,context3,converter,level),this.translate=injector.get(TranslateService),this.setValue(value)}transformValue(){return isString_default(this.value)&&this.value.startsWith("__TRANSLATION__.")?{[this.inputDescription.key]:trimNamespace(this.translate.instant(this.value))}:super.transformValue()}setValue(value){super.setValue(isNil_default(value)?value:String(value))}};function StringInputComponent_Conditional_0_Template(rf,ctx){if(rf&1&&(\u0275\u0275element(0,"p",0),\u0275\u0275pipe(1,"renderMarkdown")),rf&2){let ctx_r0=\u0275\u0275nextContext();\u0275\u0275property("innerHTML",\u0275\u0275pipeBind1(1,1,ctx_r0.field.inputDescription.description),\u0275\u0275sanitizeHtml)}}function StringInputComponent_Conditional_1_Conditional_4_Template(rf,ctx){if(rf&1){let _r3=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"ix-translation-icon-button",5),\u0275\u0275listener("setTranslationKey",function($event){\u0275\u0275restoreView(_r3);let ctx_r0=\u0275\u0275nextContext(2);return \u0275\u0275resetView(ctx_r0.setTranslationKey($event))}),\u0275\u0275elementEnd()}if(rf&2){let ctx_r0=\u0275\u0275nextContext(2);\u0275\u0275property("key",ctx_r0.translationKey)}}function StringInputComponent_Conditional_1_Conditional_7_Template(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"mat-error",4),\u0275\u0275text(1,"__MESSAGE__.REQUIRED"),\u0275\u0275elementEnd())}function StringInputComponent_Conditional_1_Template(rf,ctx){if(rf&1){let _r2=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"mat-form-field",1)(1,"mat-label"),\u0275\u0275text(2),\u0275\u0275elementEnd(),\u0275\u0275elementStart(3,"input",2),\u0275\u0275listener("keydown.enter",function($event){\u0275\u0275restoreView(_r2);let ctx_r0=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r0.enterKeyDownHandler($event))}),\u0275\u0275elementEnd(),\u0275\u0275template(4,StringInputComponent_Conditional_1_Conditional_4_Template,1,1,"ix-translation-icon-button",3),\u0275\u0275elementStart(5,"mat-hint"),\u0275\u0275text(6),\u0275\u0275elementEnd(),\u0275\u0275template(7,StringInputComponent_Conditional_1_Conditional_7_Template,2,0,"mat-error",4),\u0275\u0275elementEnd()}if(rf&2){let ctx_r0=\u0275\u0275nextContext();\u0275\u0275property("formGroup",ctx_r0.componentFormGroup),\u0275\u0275advance(2),\u0275\u0275textInterpolate(ctx_r0.field.inputDescription.label),\u0275\u0275advance(),\u0275\u0275property("formControlName",ctx_r0.field.inputName)("placeholder",ctx_r0.field.inputDescription.placeholder||""),\u0275\u0275advance(),\u0275\u0275conditional(ctx_r0.translation?4:-1),\u0275\u0275advance(2),\u0275\u0275textInterpolate(ctx_r0.field.inputDescription.hint),\u0275\u0275advance(),\u0275\u0275conditional(ctx_r0.inputControl!=null&&ctx_r0.inputControl.hasError("required")?7:-1)}}function StringInputComponent_Conditional_2_Template(rf,ctx){if(rf&1){let _r4=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"mat-form-field")(1,"mat-label"),\u0275\u0275text(2),\u0275\u0275elementEnd(),\u0275\u0275element(3,"input",6),\u0275\u0275pipe(4,"translate"),\u0275\u0275pipe(5,"trimTranslationNamespace"),\u0275\u0275elementStart(6,"ix-translation-icon-button",5),\u0275\u0275listener("setTranslationKey",function($event){\u0275\u0275restoreView(_r4);let ctx_r0=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r0.setTranslationKey($event))}),\u0275\u0275elementEnd(),\u0275\u0275elementStart(7,"mat-hint"),\u0275\u0275text(8),\u0275\u0275elementEnd()()}if(rf&2){let ctx_r0=\u0275\u0275nextContext();\u0275\u0275advance(2),\u0275\u0275textInterpolate(ctx_r0.field.inputDescription.label),\u0275\u0275advance(),\u0275\u0275property("value",ctx_r0.translationKey?\u0275\u0275pipeBind1(5,7,\u0275\u0275pipeBind1(4,5,ctx_r0.translationKey)):"")("placeholder",ctx_r0.field.inputDescription.placeholder||""),\u0275\u0275advance(3),\u0275\u0275property("key",ctx_r0.translationKey),\u0275\u0275advance(2),\u0275\u0275textInterpolate(ctx_r0.field.inputDescription.hint)}}var StringInputComponent=(()=>{let _StringInputComponent=class _StringInputComponent extends ComponentInputComponent{constructor(){super(...arguments),this.translate=inject(TranslateService)}ngOnInit(){this.translation=environment.appName!=="Simulator"&&(this.field?.inputDescription?.translate??!0),this.translationKey=this.inputControl?.value?.startsWith("__TRANSLATION__.")?this.inputControl.value:void 0}setTranslationKey(translationKey){this.translationKey=translationKey,translationKey?this.inputControl?.setValue(this.translationKey):this.inputControl?.setValue(this.translate.instant(this.field.value))}enterKeyDownHandler(event2){event2.target.blur()}};_StringInputComponent.\u0275fac=(()=>{let \u0275StringInputComponent_BaseFactory;return function(__ngFactoryType__){return(\u0275StringInputComponent_BaseFactory||(\u0275StringInputComponent_BaseFactory=\u0275\u0275getInheritedFactory(_StringInputComponent)))(__ngFactoryType__||_StringInputComponent)}})(),_StringInputComponent.\u0275cmp=\u0275\u0275defineComponent({type:_StringInputComponent,selectors:[["ix-string-input"]],standalone:!1,features:[\u0275\u0275InheritDefinitionFeature],decls:3,vars:2,consts:[[1,"description",3,"innerHTML"],[3,"formGroup"],["matInput","","autocomplete","off","data-lpignore","true",3,"keydown.enter","formControlName","placeholder"],[3,"key"],["translate",""],[3,"setTranslationKey","key"],["matInput","","disabled","","autocomplete","off","data-lpignore","true",3,"value","placeholder"]],template:function(rf,ctx){rf&1&&\u0275\u0275template(0,StringInputComponent_Conditional_0_Template,2,3,"p",0)(1,StringInputComponent_Conditional_1_Template,8,7,"mat-form-field",1)(2,StringInputComponent_Conditional_2_Template,9,9,"mat-form-field"),rf&2&&(\u0275\u0275conditional(ctx.field.inputDescription.description?0:-1),\u0275\u0275advance(),\u0275\u0275conditional(!ctx.translation||!ctx.translationKey?1:2))},dependencies:[DefaultValueAccessor,NgControlStatus,NgControlStatusGroup,FormGroupDirective,FormControlName,TranslateDirective,MatFormField,MatLabel,MatHint,MatError,MatInput,TranslationIconButtonComponent,RenderMarkdownPipe,TranslatePipe,TrimTranslationNamespacePipe],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] .description[_ngcontent-%COMP%]{font-size:11px}[_nghost-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]});let StringInputComponent3=_StringInputComponent;return StringInputComponent3})();var TextInput=class extends StringInput{};function TextInputComponent_Conditional_0_Template(rf,ctx){if(rf&1&&(\u0275\u0275element(0,"p",0),\u0275\u0275pipe(1,"renderMarkdown")),rf&2){let ctx_r0=\u0275\u0275nextContext();\u0275\u0275property("innerHTML",\u0275\u0275pipeBind1(1,1,ctx_r0.field.inputDescription.description),\u0275\u0275sanitizeHtml)}}function TextInputComponent_Conditional_1_Conditional_4_Template(rf,ctx){if(rf&1){let _r3=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"ix-translation-icon-button",5),\u0275\u0275listener("setTranslationKey",function($event){\u0275\u0275restoreView(_r3);let ctx_r0=\u0275\u0275nextContext(2);return \u0275\u0275resetView(ctx_r0.setTranslationKey($event))}),\u0275\u0275elementEnd()}if(rf&2){let ctx_r0=\u0275\u0275nextContext(2);\u0275\u0275property("key",ctx_r0.translationKey)}}function TextInputComponent_Conditional_1_Conditional_7_Template(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"mat-error",4),\u0275\u0275text(1,"__MESSAGE__.REQUIRED"),\u0275\u0275elementEnd())}function TextInputComponent_Conditional_1_Template(rf,ctx){if(rf&1){let _r2=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"mat-form-field",1)(1,"mat-label"),\u0275\u0275text(2),\u0275\u0275elementEnd(),\u0275\u0275elementStart(3,"textarea",2),\u0275\u0275listener("keydown.enter",function($event){return \u0275\u0275restoreView(_r2),\u0275\u0275resetView($event.stopPropagation())}),\u0275\u0275elementEnd(),\u0275\u0275template(4,TextInputComponent_Conditional_1_Conditional_4_Template,1,1,"ix-translation-icon-button",3),\u0275\u0275elementStart(5,"mat-hint"),\u0275\u0275text(6),\u0275\u0275elementEnd(),\u0275\u0275template(7,TextInputComponent_Conditional_1_Conditional_7_Template,2,0,"mat-error",4),\u0275\u0275elementEnd()}if(rf&2){let ctx_r0=\u0275\u0275nextContext();\u0275\u0275property("formGroup",ctx_r0.componentFormGroup),\u0275\u0275advance(2),\u0275\u0275textInterpolate(ctx_r0.field.inputDescription.label),\u0275\u0275advance(),\u0275\u0275property("formControlName",ctx_r0.field.inputName)("placeholder",ctx_r0.field.inputDescription.placeholder||""),\u0275\u0275advance(),\u0275\u0275conditional(ctx_r0.translation?4:-1),\u0275\u0275advance(2),\u0275\u0275textInterpolate(ctx_r0.field.inputDescription.hint),\u0275\u0275advance(),\u0275\u0275conditional(ctx_r0.inputControl!=null&&ctx_r0.inputControl.hasError("required")?7:-1)}}function TextInputComponent_Conditional_2_Template(rf,ctx){if(rf&1){let _r4=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"mat-form-field")(1,"mat-label"),\u0275\u0275text(2),\u0275\u0275elementEnd(),\u0275\u0275element(3,"textarea",6),\u0275\u0275pipe(4,"translate"),\u0275\u0275pipe(5,"trimTranslationNamespace"),\u0275\u0275elementStart(6,"ix-translation-icon-button",5),\u0275\u0275listener("setTranslationKey",function($event){\u0275\u0275restoreView(_r4);let ctx_r0=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r0.setTranslationKey($event))}),\u0275\u0275elementEnd(),\u0275\u0275elementStart(7,"mat-hint"),\u0275\u0275text(8),\u0275\u0275elementEnd()()}if(rf&2){let ctx_r0=\u0275\u0275nextContext();\u0275\u0275advance(2),\u0275\u0275textInterpolate(ctx_r0.field.inputDescription.label),\u0275\u0275advance(),\u0275\u0275property("value",ctx_r0.translationKey?\u0275\u0275pipeBind1(5,7,\u0275\u0275pipeBind1(4,5,ctx_r0.translationKey)):"")("placeholder",ctx_r0.field.inputDescription.placeholder||""),\u0275\u0275advance(3),\u0275\u0275property("key",ctx_r0.translationKey),\u0275\u0275advance(2),\u0275\u0275textInterpolate(ctx_r0.field.inputDescription.hint)}}var TextInputComponent=(()=>{let _TextInputComponent=class _TextInputComponent extends StringInputComponent{};_TextInputComponent.\u0275fac=(()=>{let \u0275TextInputComponent_BaseFactory;return function(__ngFactoryType__){return(\u0275TextInputComponent_BaseFactory||(\u0275TextInputComponent_BaseFactory=\u0275\u0275getInheritedFactory(_TextInputComponent)))(__ngFactoryType__||_TextInputComponent)}})(),_TextInputComponent.\u0275cmp=\u0275\u0275defineComponent({type:_TextInputComponent,selectors:[["ix-text-input"]],standalone:!1,features:[\u0275\u0275InheritDefinitionFeature],decls:3,vars:2,consts:[[1,"description",3,"innerHTML"],[3,"formGroup"],["matInput","","cdkTextareaAutosize","true","cdkAutosizeMinRows","2","cdkAutosizeMaxRows","15",3,"keydown.enter","formControlName","placeholder"],[3,"key"],["translate",""],[3,"setTranslationKey","key"],["matInput","","cdkTextareaAutosize","true","cdkAutosizeMinRows","2","cdkAutosizeMaxRows","15","disabled","",3,"value","placeholder"]],template:function(rf,ctx){rf&1&&\u0275\u0275template(0,TextInputComponent_Conditional_0_Template,2,3,"p",0)(1,TextInputComponent_Conditional_1_Template,8,7,"mat-form-field",1)(2,TextInputComponent_Conditional_2_Template,9,9,"mat-form-field"),rf&2&&(\u0275\u0275conditional(ctx.field.inputDescription.description?0:-1),\u0275\u0275advance(),\u0275\u0275conditional(!ctx.translation||!ctx.translationKey?1:2))},dependencies:[DefaultValueAccessor,NgControlStatus,NgControlStatusGroup,FormGroupDirective,FormControlName,TranslateDirective,MatFormField,MatLabel,MatHint,MatError,MatInput,CdkTextareaAutosize,TranslationIconButtonComponent,RenderMarkdownPipe,TranslatePipe,TrimTranslationNamespacePipe],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] .description[_ngcontent-%COMP%]{font-size:11px}[_nghost-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:calc(100% - 40px)}"]});let TextInputComponent3=_TextInputComponent;return TextInputComponent3})();var RichTextInput=class extends StringInput{};var MarkdownModule=(()=>{let _MarkdownModule=class _MarkdownModule{};_MarkdownModule.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_MarkdownModule)},_MarkdownModule.\u0275mod=\u0275\u0275defineNgModule({type:_MarkdownModule}),_MarkdownModule.\u0275inj=\u0275\u0275defineInjector({imports:[CommonModule]});let MarkdownModule2=_MarkdownModule;return MarkdownModule2})();var defaultModules={toolbar:[["bold","italic","underline","strike"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["clean"],["link","image","video"],["table"]]},QUILL_CONFIG_TOKEN=new InjectionToken("config",{providedIn:"root",factory:()=>({modules:defaultModules})});var _c018=[[["","above-quill-editor-toolbar",""]],[["","quill-editor-toolbar",""]],[["","below-quill-editor-toolbar",""]]],_c17=["[above-quill-editor-toolbar]","[quill-editor-toolbar]","[below-quill-editor-toolbar]"];function QuillEditorComponent_Conditional_0_Template(rf,ctx){rf&1&&\u0275\u0275element(0,"div",0)}function QuillEditorComponent_Conditional_4_Template(rf,ctx){rf&1&&\u0275\u0275element(0,"div",0)}var getFormat=(format2,configFormat)=>format2||configFormat||"html",raf$=()=>new Observable(subscriber=>{let rafId=requestAnimationFrame(()=>{subscriber.next(),subscriber.complete()});return()=>cancelAnimationFrame(rafId)}),QuillService=(()=>{let _QuillService=class _QuillService{constructor(){this.config=inject(QUILL_CONFIG_TOKEN)||{modules:defaultModules},this.document=inject(DOCUMENT),this.quill$=defer(()=>__async(this,null,function*(){if(!this.Quill){let maybePatchedAddEventListener=this.document.addEventListener;this.document.addEventListener=this.document.__zone_symbol__addEventListener||this.document.addEventListener;let quillImport=yield import("./chunk-5RT7KAV7.js");this.document.addEventListener=maybePatchedAddEventListener,this.Quill=quillImport.default?.default??quillImport.default??quillImport}return this.config.customOptions?.forEach(customOption=>{let newCustomOption=this.Quill.import(customOption.import);newCustomOption.whitelist=customOption.whitelist,this.Quill.register(newCustomOption,!0,this.config.suppressGlobalRegisterWarning)}),firstValueFrom(this.registerCustomModules(this.Quill,this.config.customModules,this.config.suppressGlobalRegisterWarning))})).pipe(shareReplay({bufferSize:1,refCount:!1})),this.registeredModules=new Set}getQuill(){return this.quill$}beforeRender(Quill,customModules,beforeRender=this.config.beforeRender){let sources=[this.registerCustomModules(Quill,customModules)];return beforeRender&&sources.push(from(beforeRender())),forkJoin(sources).pipe(map(()=>Quill))}registerCustomModules(Quill,customModules,suppressGlobalRegisterWarning){if(!Array.isArray(customModules))return of(Quill);let sources=[];for(let customModule of customModules){let{path,implementation:maybeImplementation}=customModule;this.registeredModules.has(path)||(this.registeredModules.add(path),isObservable(maybeImplementation)?sources.push(maybeImplementation.pipe(tap(implementation=>{Quill.register(path,implementation,suppressGlobalRegisterWarning)}))):Quill.register(path,maybeImplementation,suppressGlobalRegisterWarning))}return sources.length>0?forkJoin(sources).pipe(map(()=>Quill)):of(Quill)}};_QuillService.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_QuillService)},_QuillService.\u0275prov=\u0275\u0275defineInjectable({token:_QuillService,factory:_QuillService.\u0275fac,providedIn:"root"});let QuillService2=_QuillService;return QuillService2})(),QuillEditorBase=(()=>{let _QuillEditorBase=class _QuillEditorBase{constructor(){this.format=input(void 0),this.theme=input(void 0),this.modules=input(void 0),this.debug=input(!1),this.readOnly=input(!1),this.placeholder=input(void 0),this.maxLength=input(void 0),this.minLength=input(void 0),this.required=input(!1),this.formats=input(void 0),this.customToolbarPosition=input("top"),this.sanitize=input(void 0),this.beforeRender=input(void 0),this.styles=input(null),this.registry=input(void 0),this.bounds=input(void 0),this.customOptions=input([]),this.customModules=input([]),this.trackChanges=input(void 0),this.classes=input(void 0),this.trimOnValidation=input(!1),this.linkPlaceholder=input(void 0),this.compareValues=input(!1),this.filterNull=input(!1),this.debounceTime=input(void 0),this.defaultEmptyValue=input(null),this.onEditorCreated=new EventEmitter,this.onEditorChanged=new EventEmitter,this.onContentChanged=new EventEmitter,this.onSelectionChanged=new EventEmitter,this.onFocus=new EventEmitter,this.onBlur=new EventEmitter,this.onNativeFocus=new EventEmitter,this.onNativeBlur=new EventEmitter,this.disabled=!1,this.toolbarPosition=signal("top"),this.subscription=null,this.quillSubscription=null,this.elementRef=inject(ElementRef),this.document=inject(DOCUMENT),this.cd=inject(ChangeDetectorRef),this.domSanitizer=inject(DomSanitizer),this.platformId=inject(PLATFORM_ID),this.renderer=inject(Renderer2),this.zone=inject(NgZone),this.service=inject(QuillService),this.destroyRef=inject(DestroyRef),this.valueGetter=input(quillEditor=>{let html=quillEditor.getSemanticHTML();this.isEmptyValue(html)&&(html=this.defaultEmptyValue());let modelValue=html,format2=getFormat(this.format(),this.service.config.format);if(format2==="text")modelValue=quillEditor.getText();else if(format2==="object")modelValue=quillEditor.getContents();else if(format2==="json")try{modelValue=JSON.stringify(quillEditor.getContents())}catch{modelValue=quillEditor.getText()}return modelValue}),this.valueSetter=input((quillEditor,value)=>{let format2=getFormat(this.format(),this.service.config.format);if(format2==="html")return([!0,!1].includes(this.sanitize())?this.sanitize():this.service.config.sanitize||!1)&&(value=this.domSanitizer.sanitize(SecurityContext.HTML,value)),quillEditor.clipboard.convert({html:value});if(format2==="json")try{return JSON.parse(value)}catch{return[{insert:value}]}return value}),this.selectionChangeHandler=(range2,oldRange,source)=>{let trackChanges=this.trackChanges()||this.service.config.trackChanges,shouldTriggerOnModelTouched=!range2&&!!this.onModelTouched&&(source==="user"||trackChanges&&trackChanges==="all");!this.onBlur.observed&&!this.onFocus.observed&&!this.onSelectionChanged.observed&&!shouldTriggerOnModelTouched||this.zone.run(()=>{range2===null?this.onBlur.emit({editor:this.quillEditor,source}):oldRange===null&&this.onFocus.emit({editor:this.quillEditor,source}),this.onSelectionChanged.emit({editor:this.quillEditor,oldRange,range:range2,source}),shouldTriggerOnModelTouched&&this.onModelTouched(),this.cd.markForCheck()})},this.textChangeHandler=(delta,oldDelta,source)=>{let text=this.quillEditor.getText(),content=this.quillEditor.getContents(),html=this.quillEditor.getSemanticHTML();this.isEmptyValue(html)&&(html=this.defaultEmptyValue());let trackChanges=this.trackChanges()||this.service.config.trackChanges,shouldTriggerOnModelChange=(source==="user"||trackChanges&&trackChanges==="all")&&!!this.onModelChange;!this.onContentChanged.observed&&!shouldTriggerOnModelChange||this.zone.run(()=>{if(shouldTriggerOnModelChange){let valueGetter=this.valueGetter();this.onModelChange(valueGetter(this.quillEditor))}this.onContentChanged.emit({content,delta,editor:this.quillEditor,html,oldDelta,source,text}),this.cd.markForCheck()})},this.editorChangeHandler=(event2,current,old,source)=>{if(this.onEditorChanged.observed)if(event2==="text-change"){let text=this.quillEditor.getText(),content=this.quillEditor.getContents(),html=this.quillEditor.getSemanticHTML();this.isEmptyValue(html)&&(html=this.defaultEmptyValue()),this.zone.run(()=>{this.onEditorChanged.emit({content,delta:current,editor:this.quillEditor,event:event2,html,oldDelta:old,source,text}),this.cd.markForCheck()})}else this.zone.run(()=>{this.onEditorChanged.emit({editor:this.quillEditor,event:event2,oldRange:old,range:current,source}),this.cd.markForCheck()})}}static normalizeClassNames(classes){return classes.trim().split(" ").reduce((prev,cur)=>{let trimmed=cur.trim();return trimmed&&prev.push(trimmed),prev},[])}ngOnInit(){this.toolbarPosition.set(this.customToolbarPosition())}ngAfterViewInit(){isPlatformServer(this.platformId)||(this.quillSubscription=this.service.getQuill().pipe(mergeMap(Quill=>this.service.beforeRender(Quill,this.customModules(),this.beforeRender()))).subscribe(Quill=>{this.editorElem=this.elementRef.nativeElement.querySelector("[quill-editor-element]");let toolbarElem=this.elementRef.nativeElement.querySelector("[quill-editor-toolbar]"),modules=Object.assign({},this.modules()||this.service.config.modules);toolbarElem?modules.toolbar=toolbarElem:modules.toolbar===void 0&&(modules.toolbar=defaultModules.toolbar);let placeholder=this.placeholder()!==void 0?this.placeholder():this.service.config.placeholder;placeholder===void 0&&(placeholder="Insert text here ...");let styles=this.styles();styles&&Object.keys(styles).forEach(key=>{this.renderer.setStyle(this.editorElem,key,styles[key])}),this.classes()&&this.addClasses(this.classes()),this.customOptions().forEach(customOption=>{let newCustomOption=Quill.import(customOption.import);newCustomOption.whitelist=customOption.whitelist,Quill.register(newCustomOption,!0)});let bounds=this.bounds()&&this.bounds()==="self"?this.editorElem:this.bounds();bounds||(bounds=this.service.config.bounds?this.service.config.bounds:this.document.body);let debug=this.debug();!debug&&debug!==!1&&this.service.config.debug&&(debug=this.service.config.debug);let readOnly=this.readOnly();!readOnly&&this.readOnly()!==!1&&(readOnly=this.service.config.readOnly!==void 0?this.service.config.readOnly:!1);let formats=this.formats();if(!formats&&formats===void 0&&(formats=this.service.config.formats?[...this.service.config.formats]:this.service.config.formats===null?null:void 0),this.zone.runOutsideAngular(()=>{if(this.quillEditor=new Quill(this.editorElem,{bounds,debug,formats,modules,placeholder,readOnly,registry:this.registry(),theme:this.theme()||(this.service.config.theme?this.service.config.theme:"snow")}),this.onNativeBlur.observed){fromEvent(this.quillEditor.scroll.domNode,"blur").pipe(takeUntilDestroyed(this.destroyRef)).subscribe(()=>this.onNativeBlur.next({editor:this.quillEditor,source:"dom"}));let toolbar=this.quillEditor.getModule("toolbar");toolbar.container&&fromEvent(toolbar.container,"mousedown").pipe(takeUntilDestroyed(this.destroyRef)).subscribe(e=>e.preventDefault())}if(this.onNativeFocus.observed&&fromEvent(this.quillEditor.scroll.domNode,"focus").pipe(takeUntilDestroyed(this.destroyRef)).subscribe(()=>this.onNativeFocus.next({editor:this.quillEditor,source:"dom"})),this.linkPlaceholder()){let input2=this.quillEditor?.theme?.tooltip?.root?.querySelector("input[data-link]");input2?.dataset&&(input2.dataset.link=this.linkPlaceholder())}}),this.content){if(getFormat(this.format(),this.service.config.format)==="text")this.quillEditor.setText(this.content,"silent");else{let newValue=this.valueSetter()(this.quillEditor,this.content);this.quillEditor.setContents(newValue,"silent")}this.quillEditor.getModule("history").clear()}this.setDisabledState(),this.addQuillEventListeners(),!(!this.onEditorCreated.observed&&!this.onValidatorChanged)&&raf$().pipe(takeUntilDestroyed(this.destroyRef)).subscribe(()=>{this.onValidatorChanged&&this.onValidatorChanged(),this.onEditorCreated.emit(this.quillEditor)})}))}ngOnDestroy(){this.dispose(),this.quillSubscription?.unsubscribe(),this.quillSubscription=null}ngOnChanges(changes){if(this.quillEditor){if(changes.readOnly&&this.quillEditor.enable(!changes.readOnly.currentValue),changes.placeholder&&(this.quillEditor.root.dataset.placeholder=changes.placeholder.currentValue),changes.styles){let currentStyling=changes.styles.currentValue,previousStyling=changes.styles.previousValue;previousStyling&&Object.keys(previousStyling).forEach(key=>{this.renderer.removeStyle(this.editorElem,key)}),currentStyling&&Object.keys(currentStyling).forEach(key=>{this.renderer.setStyle(this.editorElem,key,this.styles()[key])})}if(changes.classes){let currentClasses=changes.classes.currentValue,previousClasses=changes.classes.previousValue;previousClasses&&this.removeClasses(previousClasses),currentClasses&&this.addClasses(currentClasses)}changes.debounceTime&&this.addQuillEventListeners()}}addClasses(classList){_QuillEditorBase.normalizeClassNames(classList).forEach(c=>{this.renderer.addClass(this.editorElem,c)})}removeClasses(classList){_QuillEditorBase.normalizeClassNames(classList).forEach(c=>{this.renderer.removeClass(this.editorElem,c)})}writeValue(currentValue){if(this.filterNull()&&currentValue===null||(this.content=currentValue,!this.quillEditor))return;let format2=getFormat(this.format(),this.service.config.format),newValue=this.valueSetter()(this.quillEditor,currentValue);if(this.compareValues()){let currentEditorValue=this.quillEditor.getContents();if(JSON.stringify(currentEditorValue)===JSON.stringify(newValue))return}if(currentValue){format2==="text"?this.quillEditor.setText(currentValue):this.quillEditor.setContents(newValue);return}this.quillEditor.setText("")}setDisabledState(isDisabled=this.disabled){this.disabled=isDisabled,this.quillEditor&&(isDisabled?(this.quillEditor.disable(),this.renderer.setAttribute(this.elementRef.nativeElement,"disabled","disabled")):(this.readOnly()||this.quillEditor.enable(),this.renderer.removeAttribute(this.elementRef.nativeElement,"disabled")))}registerOnChange(fn2){this.onModelChange=fn2}registerOnTouched(fn2){this.onModelTouched=fn2}registerOnValidatorChange(fn2){this.onValidatorChanged=fn2}validate(){if(!this.quillEditor)return null;let err={},valid=!0,text=this.quillEditor.getText(),textLength=this.trimOnValidation()?text.trim().length:text.length===1&&text.trim().length===0?0:text.length-1,deltaOperations=this.quillEditor.getContents().ops,onlyEmptyOperation=!!deltaOperations&&deltaOperations.length===1&&[`
800
800
  `,""].includes(deltaOperations[0].insert?.toString());return this.minLength()&&textLength&&textLength<this.minLength()&&(err.minLengthError={given:textLength,minLength:this.minLength()},valid=!1),this.maxLength()&&textLength>this.maxLength()&&(err.maxLengthError={given:textLength,maxLength:this.maxLength()},valid=!1),this.required()&&!textLength&&onlyEmptyOperation&&(err.requiredError={empty:!0},valid=!1),valid?null:err}addQuillEventListeners(){this.dispose(),this.zone.runOutsideAngular(()=>{this.subscription=new Subscription,this.subscription.add(fromEvent(this.quillEditor,"selection-change").subscribe(([range2,oldRange,source])=>{this.selectionChangeHandler(range2,oldRange,source)}));let textChange$=fromEvent(this.quillEditor,"text-change"),editorChange$=fromEvent(this.quillEditor,"editor-change");typeof this.debounceTime()=="number"&&(textChange$=textChange$.pipe(debounceTime(this.debounceTime())),editorChange$=editorChange$.pipe(debounceTime(this.debounceTime()))),this.subscription.add(textChange$.subscribe(([delta,oldDelta,source])=>{this.textChangeHandler(delta,oldDelta,source)})),this.subscription.add(editorChange$.subscribe(([event2,current,old,source])=>{this.editorChangeHandler(event2,current,old,source)}))})}dispose(){this.subscription!==null&&(this.subscription.unsubscribe(),this.subscription=null)}isEmptyValue(html){return html==="<p></p>"||html==="<div></div>"||html==="<p><br></p>"||html==="<div><br></div>"}};_QuillEditorBase.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_QuillEditorBase)},_QuillEditorBase.\u0275dir=\u0275\u0275defineDirective({type:_QuillEditorBase,inputs:{format:[1,"format"],theme:[1,"theme"],modules:[1,"modules"],debug:[1,"debug"],readOnly:[1,"readOnly"],placeholder:[1,"placeholder"],maxLength:[1,"maxLength"],minLength:[1,"minLength"],required:[1,"required"],formats:[1,"formats"],customToolbarPosition:[1,"customToolbarPosition"],sanitize:[1,"sanitize"],beforeRender:[1,"beforeRender"],styles:[1,"styles"],registry:[1,"registry"],bounds:[1,"bounds"],customOptions:[1,"customOptions"],customModules:[1,"customModules"],trackChanges:[1,"trackChanges"],classes:[1,"classes"],trimOnValidation:[1,"trimOnValidation"],linkPlaceholder:[1,"linkPlaceholder"],compareValues:[1,"compareValues"],filterNull:[1,"filterNull"],debounceTime:[1,"debounceTime"],defaultEmptyValue:[1,"defaultEmptyValue"],valueGetter:[1,"valueGetter"],valueSetter:[1,"valueSetter"]},outputs:{onEditorCreated:"onEditorCreated",onEditorChanged:"onEditorChanged",onContentChanged:"onContentChanged",onSelectionChanged:"onSelectionChanged",onFocus:"onFocus",onBlur:"onBlur",onNativeFocus:"onNativeFocus",onNativeBlur:"onNativeBlur"},features:[\u0275\u0275NgOnChangesFeature]});let QuillEditorBase2=_QuillEditorBase;return QuillEditorBase2})(),QuillEditorComponent=(()=>{let _QuillEditorComponent=class _QuillEditorComponent extends QuillEditorBase{};_QuillEditorComponent.\u0275fac=(()=>{let \u0275QuillEditorComponent_BaseFactory;return function(__ngFactoryType__){return(\u0275QuillEditorComponent_BaseFactory||(\u0275QuillEditorComponent_BaseFactory=\u0275\u0275getInheritedFactory(_QuillEditorComponent)))(__ngFactoryType__||_QuillEditorComponent)}})(),_QuillEditorComponent.\u0275cmp=\u0275\u0275defineComponent({type:_QuillEditorComponent,selectors:[["quill-editor"]],features:[\u0275\u0275ProvidersFeature([{multi:!0,provide:NG_VALUE_ACCESSOR,useExisting:forwardRef(()=>_QuillEditorComponent)},{multi:!0,provide:NG_VALIDATORS,useExisting:forwardRef(()=>_QuillEditorComponent)}]),\u0275\u0275InheritDefinitionFeature],ngContentSelectors:_c17,decls:5,vars:2,consts:[["quill-editor-element",""]],template:function(rf,ctx){rf&1&&(\u0275\u0275projectionDef(_c018),\u0275\u0275template(0,QuillEditorComponent_Conditional_0_Template,1,0,"div",0),\u0275\u0275projection(1),\u0275\u0275projection(2,1),\u0275\u0275projection(3,2),\u0275\u0275template(4,QuillEditorComponent_Conditional_4_Template,1,0,"div",0)),rf&2&&(\u0275\u0275conditional(ctx.toolbarPosition()!=="top"?0:-1),\u0275\u0275advance(4),\u0275\u0275conditional(ctx.toolbarPosition()==="top"?4:-1))},styles:["[_nghost-%COMP%]{display:inline-block}"]});let QuillEditorComponent2=_QuillEditorComponent;return QuillEditorComponent2})();var import_markdown_it2=__toESM(require_markdown_it());function renderMarkdownToHtml(markdown){let markdownIt=new import_markdown_it2.default({typographer:!0}),defaultRender=markdownIt.renderer.rules.link_open||function(tokens,idx,options,env,self2){return self2.renderToken(tokens,idx,options)};return markdownIt.renderer.rules.link_open=function(tokens,idx,options,env,self2){return tokens[idx].attrPush(["target","_blank"]),defaultRender(tokens,idx,options,env,self2)},markdownIt.render(markdown)}var indentRegex=/^ql-indent-([0-9]+)/;function addStylingToQuillContent(content){let htmlObject=document.createElement("div");return htmlObject.innerHTML=content,addStylingToHtmlChildNodes(htmlObject.childNodes),htmlObject.innerHTML}function addStylingToHtmlChildNodes(children){children.forEach(child=>{let element=child;setCodeBlockStyling(element),setIndentStyling(element),setListStyling(element),setQuotesStyling(element),child.childNodes.length&&addStylingToHtmlChildNodes(child.childNodes)})}function setCodeBlockStyling(element){element.tagName==="PRE"&&(element.hasAttribute("data-language")||element.classList?.contains("ql-syntax"))&&(element.style.backgroundColor="#f6f8fa",element.style.color="initial",element.style.overflow="visible",element.style.padding="5px 10px")}function setIndentStyling(element){element.classList?.forEach(className=>{let matches=className.match(indentRegex);if(matches?.[1]){let identNumber=parseInt(matches?.[1]);element.style.paddingLeft=3*identNumber+"em"}})}function setListStyling(element){element.tagName==="OL"&&(element.style.paddingLeft="1.5em"),element.tagName==="LI"&&(element.style.listStylePosition="inside")}function setQuotesStyling(element){element.tagName==="BLOCKQUOTE"&&(element.style.borderLeft="4px solid #ccc",element.style.margin="5px 0",element.style.paddingLeft="16px")}function registerQuillModules(){registerAlignStyle(),registerBlock()}function registerAlignStyle(){let alignStyle=quill_default.import("attributors/style/align");quill_default.register(alignStyle,!0)}function registerBlock(){let block=quill_default.import("blots/block");block.tagName="DIV",quill_default.register(block)}var _c019=()=>({height:"400px"});function RichTextFormFieldComponent_Conditional_0_Template(rf,ctx){if(rf&1){let _r1=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"form",0)(1,"quill-editor",2),\u0275\u0275listener("onEditorCreated",function($event){\u0275\u0275restoreView(_r1);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.onEditorCreated($event))})("keydown.backspace",function($event){return \u0275\u0275restoreView(_r1),\u0275\u0275resetView($event.stopPropagation())})("keydown.delete",function($event){return \u0275\u0275restoreView(_r1),\u0275\u0275resetView($event.stopPropagation())}),\u0275\u0275elementStart(2,"div",3)(3,"span",4)(4,"select",5),\u0275\u0275element(5,"option",6)(6,"option",7)(7,"option",8)(8,"option",9)(9,"option",10)(10,"option",11),\u0275\u0275elementEnd()(),\u0275\u0275elementStart(11,"span",4),\u0275\u0275element(12,"button",12)(13,"button",13)(14,"button",14)(15,"button",15),\u0275\u0275elementEnd(),\u0275\u0275elementStart(16,"span",4),\u0275\u0275element(17,"button",16)(18,"button",17),\u0275\u0275elementEnd(),\u0275\u0275elementStart(19,"span",4)(20,"select",18),\u0275\u0275element(21,"option",6)(22,"option",19)(23,"option",20)(24,"option",21),\u0275\u0275elementEnd(),\u0275\u0275element(25,"button",22)(26,"button",23),\u0275\u0275elementEnd(),\u0275\u0275elementStart(27,"span",4),\u0275\u0275element(28,"button",24)(29,"button",25),\u0275\u0275elementEnd(),\u0275\u0275elementStart(30,"span",4),\u0275\u0275element(31,"button",26)(32,"button",27)(33,"button",28),\u0275\u0275elementEnd()()()()}if(rf&2){let ctx_r1=\u0275\u0275nextContext();\u0275\u0275property("formGroup",ctx_r1.form),\u0275\u0275advance(),\u0275\u0275property("styles",\u0275\u0275pureFunction0(16,_c019))("placeholder",ctx_r1.field.inputDescription.placeholder||""),\u0275\u0275advance(11),\u0275\u0275property("matTooltip","Bold"),\u0275\u0275advance(),\u0275\u0275property("matTooltip","Italic"),\u0275\u0275advance(),\u0275\u0275property("matTooltip","Underline"),\u0275\u0275advance(),\u0275\u0275property("matTooltip","Strike-through"),\u0275\u0275advance(2),\u0275\u0275property("matTooltip","Text color"),\u0275\u0275advance(),\u0275\u0275property("matTooltip","Highlight color"),\u0275\u0275advance(7),\u0275\u0275property("matTooltip","Decrease indent"),\u0275\u0275advance(),\u0275\u0275property("matTooltip","Increase indent"),\u0275\u0275advance(2),\u0275\u0275property("matTooltip","Bulleted list"),\u0275\u0275advance(),\u0275\u0275property("matTooltip","Numbered list"),\u0275\u0275advance(2),\u0275\u0275property("matTooltip","Blockquote"),\u0275\u0275advance(),\u0275\u0275property("matTooltip","Code Block"),\u0275\u0275advance(),\u0275\u0275property("matTooltip","Insert link")}}function RichTextFormFieldComponent_Conditional_1_Template(rf,ctx){if(rf&1){let _r3=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"div",1)(1,"textarea",29),\u0275\u0275listener("keydown.enter",function($event){return \u0275\u0275restoreView(_r3),\u0275\u0275resetView($event.stopPropagation())}),\u0275\u0275elementEnd(),\u0275\u0275elementStart(2,"a",30),\u0275\u0275pipe(3,"translate"),\u0275\u0275elementStart(4,"mat-icon"),\u0275\u0275text(5,"markdown"),\u0275\u0275elementEnd()()()}if(rf&2){let ctx_r1=\u0275\u0275nextContext();\u0275\u0275advance(),\u0275\u0275property("formControl",ctx_r1.form.controls.editor)("placeholder",ctx_r1.field.inputDescription.placeholder||""),\u0275\u0275advance(),\u0275\u0275property("matTooltip",\u0275\u0275pipeBind1(3,4,"MARKDOWN_IS_SUPPORTED"))("matTooltipPosition","left")}}var RichTextFormFieldComponent=(()=>{let _RichTextFormFieldComponent=class _RichTextFormFieldComponent{constructor(){this.mode="rich-text",this.modeChange=new EventEmitter,this.valueChange=new EventEmitter,this.destroy=inject(DestroyRef),this.dialog=inject(MatDialog),this.doc=inject(DOCUMENT),this.formBuilder=inject(FormBuilder),this.colorPickerPanelService=inject(ColorPickerPanelService),this.ngZone=inject(NgZone),this.translate=inject(TranslateService),this.activeMode="rich-text",this.modules={toolbar:{container:"#toolbar"}},this.form=this.formBuilder.nonNullable.group({editor:[""]})}blockPaste(e){e.stopPropagation()}blockCopy(e){e.stopPropagation()}blockCut(e){e.stopPropagation()}get isDark(){return this.doc.body.classList.contains("dark")}ngOnInit(){registerQuillModules(),typeof this.field.value=="string"&&this.form.setValue({editor:this.field.value}),this.form.controls.editor.valueChanges.pipe(takeUntilDestroyed(this.destroy)).subscribe(value=>this.valueChange.emit(this.mode==="rich-text"?addStylingToQuillContent(value):value))}ngOnChanges(changes){changes.mode.firstChange&&(this.activeMode=this.mode),changes.mode.previousValue==="plain-text"&&changes.mode.currentValue==="rich-text"&&this.switchFromPlainTextToRichText(),changes.mode.previousValue==="rich-text"&&changes.mode.currentValue==="plain-text"&&this.mode!==this.activeMode&&(this.previousFormValue=this.form.value,this.activeMode=this.mode)}onEditorCreated(editor){this.quill=editor;let toolbar=editor.getModule("toolbar"),backgroundButton=toolbar.container?.querySelector(".ql-background"),colorButton=toolbar.container?.querySelector(".ql-color");backgroundButton&&toolbar.addHandler("background",()=>this.openColorPicker(backgroundButton,"background")),colorButton&&toolbar.addHandler("color",()=>this.openColorPicker(colorButton,"color")),editor.on("selection-change",range2=>{range2&&(this.setColorButtonColor(range2),this.setBackgroundButtonColor(range2))})}getColors(colors){return[...colors||[],"#F44336","#2196F3","#4CAF50","#FFC107","#9E9E9E"]}openColorPicker(element,format2){this.ngZone.run(()=>{let range2=this.quill.getSelection();if(range2){let defaultForegroundColor=this.isDark?"#FFFFFF":"#000000",defaultBackgroundColor=this.isDark?"#000000":"#FFFFFF",defaultColor=format2==="color"?defaultForegroundColor:defaultBackgroundColor,item=this.quill.getFormat(range2),colors=this.getColors([defaultColor]),currentColor=(item[format2]??defaultColor).toUpperCase(),colorPickerColor=currentColor==="TRANSPARENT"?defaultColor:currentColor;colors.includes(colorPickerColor)||colors.push(colorPickerColor),this.colorPickerPanelService.show(element,{color:colorPickerColor,colors}).afterClosed().subscribe(color=>{color===defaultColor?this.quill.format(format2,!1,quill_default.sources.USER):this.quill.format(format2,color,quill_default.sources.USER)})}})}setColorButtonColor(range2){let color=this.quill.getFormat(range2)?.color?.toUpperCase(),colorLabel=this.quill.getModule("toolbar").container?.querySelector(".ql-color .ql-stroke");colorLabel&&(color&&color!=="TRANSPARENT"?colorLabel.style.stroke=color==="#FFFFFF"?"#E1E1E1":color:colorLabel.style.stroke=this.isDark?"#FFFFFF":"#000000")}setBackgroundButtonColor(range2){let color=this.quill.getFormat(range2)?.background?.toUpperCase(),colorLabel=this.quill.getModule("toolbar").container?.querySelector(".ql-background .ql-fill");colorLabel&&(color&&color!=="TRANSPARENT"?colorLabel.style.fill=color:colorLabel.style.fill="#E1E1E1")}switchFromPlainTextToRichText(){let formValue=this.form.value;formValue.editor!==""&&formValue.editor!==this.previousFormValue?.editor?this.dialog.open(ConfirmDialogComponent,{data:{title:this.translate.instant("WARNING"),message:this.translate.instant("__TEXT__.MARKDOWN_FORMATTING_TO_RICH_TEXT")}}).afterClosed().subscribe(confirmed=>{if(confirmed){if(this.activeMode="rich-text",this.modeChange.emit("rich-text"),formValue.editor){let html=renderMarkdownToHtml(formValue.editor),editor=addStylingToQuillContent(html);this.form.patchValue({editor})}}else this.modeChange.emit("plain-text")}):(this.activeMode="rich-text",this.modeChange.emit("rich-text"))}};_RichTextFormFieldComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_RichTextFormFieldComponent)},_RichTextFormFieldComponent.\u0275cmp=\u0275\u0275defineComponent({type:_RichTextFormFieldComponent,selectors:[["ix-rich-text-form-field"]],hostBindings:function(rf,ctx){rf&1&&\u0275\u0275listener("paste",function($event){return ctx.blockPaste($event)})("copy",function($event){return ctx.blockCopy($event)})("cut",function($event){return ctx.blockCut($event)})},inputs:{field:"field",mode:"mode"},outputs:{modeChange:"modeChange",valueChange:"valueChange"},features:[\u0275\u0275NgOnChangesFeature],decls:2,vars:1,consts:[[3,"formGroup"],[1,"plain-text"],["bounds","self","formControlName","editor",3,"onEditorCreated","keydown.backspace","keydown.delete","styles","placeholder"],["quill-editor-toolbar","","data-testid","rich-text-toolbar"],[1,"ql-formats"],[1,"ql-header"],["selected",""],["value","1"],["value","2"],["value","3"],["value","4"],["value","5"],["matTooltipShowDelay","500",1,"ql-bold",3,"matTooltip"],["matTooltipShowDelay","500",1,"ql-italic",3,"matTooltip"],["matTooltipShowDelay","500",1,"ql-underline",3,"matTooltip"],["matTooltipShowDelay","500",1,"ql-strike",3,"matTooltip"],["matTooltipShowDelay","500","data-testid","rich-text-color-button",1,"ql-color",3,"matTooltip"],["matTooltipShowDelay","500",1,"ql-background",3,"matTooltip"],[1,"ql-align"],["value","center"],["value","right"],["value","justify"],["value","-1","matTooltipShowDelay","500",1,"ql-indent",3,"matTooltip"],["value","+1","matTooltipShowDelay","500",1,"ql-indent",3,"matTooltip"],["value","bullet","matTooltipShowDelay","500",1,"ql-list",3,"matTooltip"],["value","ordered","matTooltipShowDelay","500",1,"ql-list",3,"matTooltip"],["matTooltipShowDelay","500",1,"ql-blockquote",3,"matTooltip"],["matTooltipShowDelay","500",1,"ql-code-block",3,"matTooltip"],["matTooltipShowDelay","500",1,"ql-link",3,"matTooltip"],[3,"keydown.enter","formControl","placeholder"],["href","https://commonmark.org/help/","target","_blank","mat-icon-button","",1,"markdown-info-button",3,"matTooltip","matTooltipPosition"]],template:function(rf,ctx){rf&1&&\u0275\u0275template(0,RichTextFormFieldComponent_Conditional_0_Template,34,17,"form",0)(1,RichTextFormFieldComponent_Conditional_1_Template,6,6,"div",1),rf&2&&\u0275\u0275conditional(ctx.activeMode==="rich-text"?0:1)},dependencies:[ReactiveFormsModule,\u0275NgNoValidate,NgSelectOption,\u0275NgSelectMultipleOption,DefaultValueAccessor,NgControlStatus,NgControlStatusGroup,FormControlDirective,FormGroupDirective,FormControlName,FlexLayoutModule,MatButtonModule,MatIconAnchor,MatDialogModule,MatFormFieldModule,MatIconModule,MatIcon,MatInputModule,MatTooltipModule,MatTooltip,QuillEditorComponent,TranslateModule,TranslatePipe],styles:['[_nghost-%COMP%]{display:block}[_nghost-%COMP%] quill-editor[_ngcontent-%COMP%]{width:100%;color:var(--mat-sys-on-surface)}[_nghost-%COMP%] form[_ngcontent-%COMP%]{display:flex}[_nghost-%COMP%] .plain-text[_ngcontent-%COMP%]{display:flex;position:relative;width:100%;font-family:Roboto,sans-serif;white-space:pre-wrap;overflow-wrap:break-word}[_nghost-%COMP%] .plain-text[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:100%;height:441px;max-height:441px;box-sizing:border-box;padding:12px;border-radius:4px 4px 0 0;background-color:var(--mat-sys-surface-variant);border:none;border-bottom:1px solid rgba(0,0,0,.42);resize:none}[_nghost-%COMP%] .plain-text[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]:focus-visible{outline:none}[_nghost-%COMP%] .plain-text[_ngcontent-%COMP%] .markdown-info-button[_ngcontent-%COMP%]{position:absolute;right:5px;bottom:5px}[_nghost-%COMP%] .ql-toolbar{border-radius:4px 4px 0 0}[_nghost-%COMP%] .ql-toolbar.ql-snow{display:flex;flex-flow:row wrap;row-gap:4px;background-color:var(--mat-sys-surface-variant);border:none;border-bottom:1px solid rgba(0,0,0,.12)}[_nghost-%COMP%] .ql-toolbar.ql-snow button, [_nghost-%COMP%] .ql-toolbar.ql-snow .ql-picker-label, [_nghost-%COMP%] .ql-toolbar.ql-snow .ql-picker-item{color:var(--mat-sys-on-surface)}[_nghost-%COMP%] .ql-toolbar.ql-snow button .ql-fill, [_nghost-%COMP%] .ql-toolbar.ql-snow button .ql-stroke.ql-fill, [_nghost-%COMP%] .ql-toolbar.ql-snow .ql-picker-label .ql-fill, [_nghost-%COMP%] .ql-toolbar.ql-snow .ql-picker-label .ql-stroke.ql-fill, [_nghost-%COMP%] .ql-toolbar.ql-snow .ql-picker-item .ql-fill, [_nghost-%COMP%] .ql-toolbar.ql-snow .ql-picker-item .ql-stroke.ql-fill{fill:var(--mat-sys-on-surface)}[_nghost-%COMP%] .ql-toolbar.ql-snow button .ql-stroke, [_nghost-%COMP%] .ql-toolbar.ql-snow button .ql-stroke-miter, [_nghost-%COMP%] .ql-toolbar.ql-snow .ql-picker-label .ql-stroke, [_nghost-%COMP%] .ql-toolbar.ql-snow .ql-picker-label .ql-stroke-miter, [_nghost-%COMP%] .ql-toolbar.ql-snow .ql-picker-item .ql-stroke, [_nghost-%COMP%] .ql-toolbar.ql-snow .ql-picker-item .ql-stroke-miter{stroke:var(--mat-sys-on-surface)}[_nghost-%COMP%] .ql-toolbar.ql-snow button:hover, [_nghost-%COMP%] .ql-toolbar.ql-snow button:focus, [_nghost-%COMP%] .ql-toolbar.ql-snow button.ql-active, [_nghost-%COMP%] .ql-toolbar.ql-snow button.ql-selected, [_nghost-%COMP%] .ql-toolbar.ql-snow .ql-picker-label:hover, [_nghost-%COMP%] .ql-toolbar.ql-snow .ql-picker-label:focus, [_nghost-%COMP%] .ql-toolbar.ql-snow .ql-picker-label.ql-active, [_nghost-%COMP%] .ql-toolbar.ql-snow .ql-picker-label.ql-selected, [_nghost-%COMP%] .ql-toolbar.ql-snow .ql-picker-item:hover, [_nghost-%COMP%] .ql-toolbar.ql-snow .ql-picker-item:focus, [_nghost-%COMP%] .ql-toolbar.ql-snow .ql-picker-item.ql-active, [_nghost-%COMP%] .ql-toolbar.ql-snow .ql-picker-item.ql-selected{background-color:#00000014;border-radius:4px}[_nghost-%COMP%] .ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label{border-color:transparent}[_nghost-%COMP%] .ql-toolbar.ql-snow .ql-picker .ql-picker-options{border-radius:8px;border:none}[_nghost-%COMP%] .ql-toolbar.ql-snow .ql-picker.ql-header .ql-picker-label.ql-active:not(:hover,:focus){background-color:inherit}[_nghost-%COMP%] .ql-toolbar.ql-snow .ql-picker.ql-header .ql-picker-label>svg>polygon:nth-child(1){stroke-linejoin:initial;transform:translateY(-2px)}[_nghost-%COMP%] .ql-toolbar.ql-snow .ql-picker.ql-header .ql-picker-label>svg>polygon:nth-child(2){display:none}[_nghost-%COMP%] .ql-toolbar.ql-snow .ql-picker.ql-header .ql-picker-options{padding-left:0;padding-right:0}[_nghost-%COMP%] .ql-toolbar.ql-snow .ql-picker.ql-header .ql-picker-options .ql-picker-item{padding-left:8px;padding-right:8px;border-radius:0}[_nghost-%COMP%] .ql-toolbar.ql-snow .ql-picker.ql-header .ql-picker-options .ql-picker-item[data-value="1"]{padding-top:10px}[_nghost-%COMP%] .ql-toolbar.ql-snow .ql-picker.ql-header .ql-picker-options .ql-picker-item[data-value="2"]{padding-top:8px}[_nghost-%COMP%] .ql-toolbar.ql-snow .ql-align.ql-picker.ql-expanded .ql-picker-options{display:flex;padding:4px 4px 3px}[_nghost-%COMP%] .ql-toolbar.ql-snow .ql-align.ql-picker.ql-expanded .ql-picker-options .ql-picker-item{padding:4px}[_nghost-%COMP%] .ql-toolbar.ql-snow .ql-color .ql-color-label.ql-stroke.ql-transparent{opacity:1;stroke-linecap:square;stroke-width:4}@media (min-resolution: 2dppx){[_nghost-%COMP%] .ql-toolbar.ql-snow .ql-color .ql-color-label.ql-stroke.ql-transparent{stroke-width:3}}[_nghost-%COMP%] .ql-snow{font-family:Roboto,sans-serif}[_nghost-%COMP%] .ql-snow a{color:var(--mat-sys-primary)}[_nghost-%COMP%] .ql-snow .ql-code-block-container{background-color:#f6f8fa!important;border:1px solid rgba(0,0,0,.12);color:initial!important}[_nghost-%COMP%] .ql-container{border-radius:0}[_nghost-%COMP%] .ql-container.ql-snow{background-color:var(--mat-sys-surface-variant);border:none;border-bottom:1px solid color-mix(in srgb,transparent,currentcolor 42%)}[_nghost-%COMP%] .ql-container .ql-editor.ql-blank:before{font-style:normal;color:color-mix(in srgb,transparent,currentcolor 42%)}']});let RichTextFormFieldComponent2=_RichTextFormFieldComponent;return RichTextFormFieldComponent2})();var RichTextDialogComponent=(()=>{let _RichTextDialogComponent=class _RichTextDialogComponent{constructor(){this.data=inject(MAT_DIALOG_DATA),this.destroy=inject(DestroyRef),this.dialog=inject(MatDialog),this.dialogRef=inject(MatDialogRef),this.modules={toolbar:{container:"#toolbar"}}}ngOnInit(){this.dialogRef.keydownEvents().pipe(takeUntilDestroyed(this.destroy)).subscribe(event2=>{event2.key==="Escape"&&this.openDiscardChangesWarningDialog()}),this.dialogRef.backdropClick().pipe(takeUntilDestroyed(this.destroy)).subscribe(()=>this.openDiscardChangesWarningDialog())}get activeMode(){return this.formField?.activeMode??this.data.mode}submit(){let formValue=this.formField.form.value,editor=formValue.editor?addStylingToQuillContent(formValue.editor):null;this.dialogRef.close({value:editor})}toggleMode(){this.data.mode=this.data.mode==="rich-text"?"plain-text":"rich-text"}updateMode(mode){this.data.mode=mode}openDiscardChangesWarningDialog(){this.formField.form.dirty?this.dialog.open(DiscardChangesDialogComponent,{panelClass:"fullscreen"}).afterClosed().subscribe(confirmed=>{confirmed&&this.dialogRef.close()}):this.dialogRef.close()}};_RichTextDialogComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_RichTextDialogComponent)},_RichTextDialogComponent.\u0275cmp=\u0275\u0275defineComponent({type:_RichTextDialogComponent,selectors:[["ix-rich-text-dialog"]],viewQuery:function(rf,ctx){if(rf&1&&\u0275\u0275viewQuery(RichTextFormFieldComponent,5),rf&2){let _t;\u0275\u0275queryRefresh(_t=\u0275\u0275loadQuery())&&(ctx.formField=_t.first)}},decls:16,vars:8,consts:[["mat-dialog-title","","translate","","data-testid","rich-text-dialog-title"],["mat-dialog-content",""],[3,"modeChange","field","mode"],["type","button","mat-stroked-button","","data-testid","change-mode-button",1,"change-mode-button",3,"click"],["fxFlex",""],["mat-button","","mat-dialog-close",""],["translate",""],["mat-button","","color","primary",3,"click"]],template:function(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"h1",0),\u0275\u0275text(1),\u0275\u0275pipe(2,"titlecase"),\u0275\u0275elementEnd(),\u0275\u0275elementStart(3,"div",1)(4,"ix-rich-text-form-field",2),\u0275\u0275listener("modeChange",function($event){return ctx.updateMode($event)}),\u0275\u0275elementEnd()(),\u0275\u0275elementStart(5,"mat-dialog-actions")(6,"button",3),\u0275\u0275listener("click",function(){return ctx.toggleMode()}),\u0275\u0275text(7),\u0275\u0275pipe(8,"translate"),\u0275\u0275elementEnd(),\u0275\u0275element(9,"span",4),\u0275\u0275elementStart(10,"button",5)(11,"span",6),\u0275\u0275text(12,"CANCEL"),\u0275\u0275elementEnd()(),\u0275\u0275elementStart(13,"button",7),\u0275\u0275listener("click",function(){return ctx.submit()}),\u0275\u0275elementStart(14,"span",6),\u0275\u0275text(15,"CONFIRM"),\u0275\u0275elementEnd()()()),rf&2&&(\u0275\u0275advance(),\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(2,4,ctx.data.field.inputName)),\u0275\u0275advance(3),\u0275\u0275property("field",ctx.data.field)("mode",ctx.data.mode),\u0275\u0275advance(3),\u0275\u0275textInterpolate1(" ",\u0275\u0275pipeBind1(8,6,ctx.activeMode==="rich-text"?"SWITCH_TO_PLAIN_TEXT_EDITING":"SWITCH_TO_RICH_TEXT_EDITING")," "))},dependencies:[FlexLayoutModule,DefaultFlexDirective,MatButtonModule,MatButton,MatDialogModule,MatDialogClose,MatDialogTitle,MatDialogActions,MatDialogContent,MatFormFieldModule,MatIconModule,MatInputModule,MatTooltipModule,TitleCasePipe,TranslateModule,TranslatePipe,TranslateDirective,RichTextFormFieldComponent],styles:["[_nghost-%COMP%]{width:100dvw;height:100dvh;display:flex;flex-direction:column;flex:1}@media (min-width: 960px){[_nghost-%COMP%]{height:auto;width:auto;min-width:908px;max-width:908px}}[_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%]{padding:calc(env(safe-area-inset-top,0) + 16px) 24px 16px}[_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%] .mat-toolbar{height:48px;padding-left:0;padding-right:0}[_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%] .mat-toolbar .mdc-dialog__title{--mat-dialog-headline-padding: 0;color:inherit}[_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%] .mat-toolbar .mdc-dialog__title:before{display:none}[_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%] + .ix-dialog__content[_ngcontent-%COMP%], [_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%] + .mdc-dialog__content[_ngcontent-%COMP%]{padding-top:0}[_nghost-%COMP%] .mdc-dialog__title[_ngcontent-%COMP%]:before{height:calc(env(safe-area-inset-top,0) + 40px)}[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%]{padding:20px 24px}[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%] > .ix-list[_ngcontent-%COMP%]{margin-left:-24px;margin-right:-24px}[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%], [_nghost-%COMP%] .mdc-dialog__content[_ngcontent-%COMP%]{flex-direction:column;box-sizing:border-box;display:flex;place-content:stretch flex-start;align-items:stretch;flex:1 1 auto;max-height:none;overflow:auto;-webkit-overflow-scrolling:touch}[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%] > .mat-mdc-subheader[_ngcontent-%COMP%], [_nghost-%COMP%] .mdc-dialog__content[_ngcontent-%COMP%] > .mat-mdc-subheader[_ngcontent-%COMP%]{margin-left:0;margin-right:0}@media (min-width: 960px){[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%], [_nghost-%COMP%] .mdc-dialog__content[_ngcontent-%COMP%]{max-height:calc(90dvh - 140px)}[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%]:has(+.mdc-dialog__actions), [_nghost-%COMP%] .mdc-dialog__content[_ngcontent-%COMP%]:has(+.mdc-dialog__actions){padding-bottom:0}}@media (min-width: 960px){[_nghost-%COMP%] .ix-dialog__banner[_ngcontent-%COMP%] + .ix-dialog__content[_ngcontent-%COMP%]{max-height:calc(90dvh - 225px)}}@media (max-width: 959.9px){[_nghost-%COMP%] .mdc-dialog__actions[_ngcontent-%COMP%]{border-top:1px solid rgba(0,0,0,.12);padding-bottom:calc(16px + env(safe-area-inset-bottom,0))}}[_nghost-%COMP%] form[_ngcontent-%COMP%]{flex-direction:column;box-sizing:border-box;display:flex;flex:1 1 auto;height:inherit}[_nghost-%COMP%] form[_ngcontent-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%]{margin-bottom:1rem}[_nghost-%COMP%] .mat-mdc-dialog-content[_ngcontent-%COMP%]{padding-bottom:8px}[_nghost-%COMP%] .mat-mdc-dialog-actions[_ngcontent-%COMP%] .change-mode-button[_ngcontent-%COMP%]{--mdc-outlined-button-container-height: 30px;--mdc-outlined-button-label-text-size: 13px}"]});let RichTextDialogComponent2=_RichTextDialogComponent;return RichTextDialogComponent2})();function RichTextInputComponent_Conditional_0_Template(rf,ctx){if(rf&1&&(\u0275\u0275element(0,"p",0),\u0275\u0275pipe(1,"renderMarkdown")),rf&2){let ctx_r0=\u0275\u0275nextContext();\u0275\u0275property("innerHTML",\u0275\u0275pipeBind1(1,1,ctx_r0.field.inputDescription.description),\u0275\u0275sanitizeHtml)}}function RichTextInputComponent_Conditional_1_Template(rf,ctx){if(rf&1){let _r2=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"ix-rich-text-form-field",2),\u0275\u0275listener("valueChange",function($event){\u0275\u0275restoreView(_r2);let ctx_r0=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r0.updateValue($event))})("modeChange",function($event){\u0275\u0275restoreView(_r2);let ctx_r0=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r0.updateMode($event))}),\u0275\u0275elementEnd(),\u0275\u0275elementStart(1,"button",3),\u0275\u0275listener("click",function(){\u0275\u0275restoreView(_r2);let ctx_r0=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r0.toggleMode())}),\u0275\u0275text(2),\u0275\u0275pipe(3,"translate"),\u0275\u0275elementEnd()}if(rf&2){let ctx_r0=\u0275\u0275nextContext();\u0275\u0275property("field",ctx_r0.field)("mode",ctx_r0.mode),\u0275\u0275advance(2),\u0275\u0275textInterpolate1(" ",\u0275\u0275pipeBind1(3,3,ctx_r0.activeMode==="rich-text"?"SWITCH_TO_PLAIN_TEXT_EDITING":"SWITCH_TO_RICH_TEXT_EDITING")," ")}}function RichTextInputComponent_Conditional_2_Conditional_4_Template(rf,ctx){if(rf&1){let _r4=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"ix-translation-icon-button",7),\u0275\u0275listener("setTranslationKey",function($event){\u0275\u0275restoreView(_r4);let ctx_r0=\u0275\u0275nextContext(2);return \u0275\u0275resetView(ctx_r0.setTranslationKey($event))}),\u0275\u0275elementEnd()}if(rf&2){let ctx_r0=\u0275\u0275nextContext(2);\u0275\u0275property("key",ctx_r0.translationKey)}}function RichTextInputComponent_Conditional_2_Conditional_7_Template(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"mat-error",6),\u0275\u0275text(1,"__MESSAGE__.REQUIRED"),\u0275\u0275elementEnd())}function RichTextInputComponent_Conditional_2_Template(rf,ctx){if(rf&1){let _r3=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"mat-form-field",1)(1,"mat-label"),\u0275\u0275text(2),\u0275\u0275elementEnd(),\u0275\u0275elementStart(3,"textarea",4),\u0275\u0275listener("click",function(){\u0275\u0275restoreView(_r3);let ctx_r0=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r0.openEditRichTextDialog())}),\u0275\u0275elementEnd(),\u0275\u0275template(4,RichTextInputComponent_Conditional_2_Conditional_4_Template,1,1,"ix-translation-icon-button",5),\u0275\u0275elementStart(5,"mat-hint"),\u0275\u0275text(6),\u0275\u0275elementEnd(),\u0275\u0275template(7,RichTextInputComponent_Conditional_2_Conditional_7_Template,2,0,"mat-error",6),\u0275\u0275elementEnd()}if(rf&2){let ctx_r0=\u0275\u0275nextContext();\u0275\u0275property("formGroup",ctx_r0.componentFormGroup),\u0275\u0275advance(2),\u0275\u0275textInterpolate(ctx_r0.field.inputDescription.label),\u0275\u0275advance(),\u0275\u0275property("value",ctx_r0.text)("placeholder",ctx_r0.field.inputDescription.placeholder||""),\u0275\u0275advance(),\u0275\u0275conditional(ctx_r0.translation?4:-1),\u0275\u0275advance(2),\u0275\u0275textInterpolate(ctx_r0.field.inputDescription.hint),\u0275\u0275advance(),\u0275\u0275conditional(ctx_r0.inputControl!=null&&ctx_r0.inputControl.hasError("required")?7:-1)}}function RichTextInputComponent_Conditional_3_Template(rf,ctx){if(rf&1){let _r5=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"mat-form-field")(1,"mat-label"),\u0275\u0275text(2),\u0275\u0275elementEnd(),\u0275\u0275element(3,"textarea",8),\u0275\u0275pipe(4,"translate"),\u0275\u0275pipe(5,"trimTranslationNamespace"),\u0275\u0275elementStart(6,"ix-translation-icon-button",7),\u0275\u0275listener("setTranslationKey",function($event){\u0275\u0275restoreView(_r5);let ctx_r0=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r0.setTranslationKey($event))}),\u0275\u0275elementEnd(),\u0275\u0275elementStart(7,"mat-hint"),\u0275\u0275text(8),\u0275\u0275elementEnd()()}if(rf&2){let ctx_r0=\u0275\u0275nextContext();\u0275\u0275advance(2),\u0275\u0275textInterpolate(ctx_r0.field.inputDescription.label),\u0275\u0275advance(),\u0275\u0275property("value",ctx_r0.translationKey?\u0275\u0275pipeBind1(5,7,\u0275\u0275pipeBind1(4,5,ctx_r0.translationKey)):"")("placeholder",ctx_r0.field.inputDescription.placeholder||""),\u0275\u0275advance(3),\u0275\u0275property("key",ctx_r0.translationKey),\u0275\u0275advance(2),\u0275\u0275textInterpolate(ctx_r0.field.inputDescription.hint)}}var RichTextInputComponent=(()=>{let _RichTextInputComponent=class _RichTextInputComponent extends StringInputComponent{constructor(){super(...arguments),this.destroy=inject(DestroyRef),this.dialog=inject(MatDialog),this.dialogContainer=inject(MatDialogContainer,{optional:!0,skipSelf:!0}),this.domParser=new DOMParser,this.mode="rich-text"}get activeMode(){return this.formField?.activeMode??this.mode}get embedded(){return!!this.dialogContainer&&!this.translation}ngOnInit(){super.ngOnInit(),this.inputControl?.valueChanges.pipe(takeUntilDestroyed(this.destroy)).subscribe(value=>this.field.setValue(value));let initialValue=this.inputControl?.value;this.field.setValue(initialValue),initialValue&&!this.isHtml(initialValue)&&(this.mode="plain-text")}openEditRichTextDialog(){this.dialog.open(RichTextDialogComponent,{data:{field:this.field,mode:this.mode},autoFocus:!0,disableClose:!0,panelClass:"fullscreen"}).afterClosed().subscribe(result=>{result&&this.updateValue(result.value)})}get text(){let value=this.field.value;return value?value.replace(/<[^>]+>/g," ").replace(/\s+/g," ").trim():""}toggleMode(){this.mode=this.mode==="rich-text"?"plain-text":"rich-text"}updateMode(mode){this.mode=mode}updateValue(value){this.inputControl?.setValue(value)}isHtml(value){let doc=this.domParser.parseFromString(value,"text/html");return Array.from(doc.body.childNodes).some(node=>node.nodeType===Node.ELEMENT_NODE)}};_RichTextInputComponent.\u0275fac=(()=>{let \u0275RichTextInputComponent_BaseFactory;return function(__ngFactoryType__){return(\u0275RichTextInputComponent_BaseFactory||(\u0275RichTextInputComponent_BaseFactory=\u0275\u0275getInheritedFactory(_RichTextInputComponent)))(__ngFactoryType__||_RichTextInputComponent)}})(),_RichTextInputComponent.\u0275cmp=\u0275\u0275defineComponent({type:_RichTextInputComponent,selectors:[["ix-rich-text-input"]],viewQuery:function(rf,ctx){if(rf&1&&\u0275\u0275viewQuery(RichTextFormFieldComponent,5),rf&2){let _t;\u0275\u0275queryRefresh(_t=\u0275\u0275loadQuery())&&(ctx.formField=_t.first)}},features:[\u0275\u0275InheritDefinitionFeature],decls:4,vars:2,consts:[[1,"description",3,"innerHTML"],[3,"formGroup"],[3,"valueChange","modeChange","field","mode"],["type","button","mat-stroked-button","","data-testid","change-mode-button",1,"change-mode-button",3,"click"],["matInput","","cdkTextareaAutosize","true","cdkAutosizeMinRows","2","cdkAutosizeMaxRows","5","readonly","",3,"click","value","placeholder"],[3,"key"],["translate",""],[3,"setTranslationKey","key"],["matInput","","cdkTextareaAutosize","true","cdkAutosizeMinRows","2","cdkAutosizeMaxRows","15","disabled","",3,"value","placeholder"]],template:function(rf,ctx){rf&1&&\u0275\u0275template(0,RichTextInputComponent_Conditional_0_Template,2,3,"p",0)(1,RichTextInputComponent_Conditional_1_Template,4,5)(2,RichTextInputComponent_Conditional_2_Template,8,7,"mat-form-field",1)(3,RichTextInputComponent_Conditional_3_Template,9,9,"mat-form-field"),rf&2&&(\u0275\u0275conditional(ctx.field.inputDescription.description?0:-1),\u0275\u0275advance(),\u0275\u0275conditional(ctx.embedded?1:!ctx.translation||!ctx.translationKey?2:3))},dependencies:[TranslateModule,TranslatePipe,TranslateDirective,ReactiveFormsModule,NgControlStatusGroup,FormGroupDirective,MatButtonModule,MatButton,MatFormFieldModule,MatFormField,MatLabel,MatHint,MatError,MatInputModule,MatInput,CdkTextareaAutosize,TranslationIconButtonComponent,MarkdownModule,RenderMarkdownPipe,RichTextFormFieldComponent,TrimTranslationNamespacePipe],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%] .hidden[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{overflow:hidden;width:calc(100% - 40px)}[_nghost-%COMP%] ix-rich-text-form-field[_ngcontent-%COMP%]{margin-bottom:12px}[_nghost-%COMP%] .change-mode-button[_ngcontent-%COMP%]{--mdc-outlined-button-container-height: 30px;--mdc-outlined-button-label-text-size: 13px;margin-bottom:22px}"]});let RichTextInputComponent2=_RichTextInputComponent;return RichTextInputComponent2})();var ResourceSelectionInputFacade=(()=>{let _ResourceSelectionInputFacade=class _ResourceSelectionInputFacade{constructor(){this.store=inject(Store)}getAgentId(version2){return version2?.previewAgent?.publicId?of(version2?.previewAgent?.publicId):version2?.previewAsset?.publicId?this.store.select(selectEntity7(version2?.previewAsset?.publicId)).pipe(map(asset=>asset?.agent?.publicId)):of(void 0)}options(field,query){return this.store.select(selectEntity5(field.context.component.pageVersion?.publicId||null)).pipe(switchMap(version2=>combineLatest([this.getAgentId(version2),query.valueChanges.pipe(startWith(query.value))])),switchMap(([agentId,query2])=>{if(agentId)switch(field.inputDescription.resource?.type){case"AgentDataTag":return this.store.dispatch(ensureAll24({agentId,fields:AGENT_DATA_TAG_WITH_VARIABLE_LIST_FIELDS})),this.getGroupedAgentDataTags(agentId,query2);default:return of([])}return of([])}))}getGroupedAgentDataTags(agentId,query){return combineLatest([this.store.select(selectEntities24),this.store.select(selectAllForAgent3(agentId)),this.store.select(selectEntities25)]).pipe(map(([sourceEntities,tags,variableEntities])=>{let filteredTags=tags;if(query){let q=deburr_default(query.toLowerCase());filteredTags=tags.filter(tag=>tag.name?.toLocaleLowerCase().includes(q))}let optionGroups={};for(let tag of filteredTags)tag.source?.publicId&&tag.variable?.publicId&&!variableEntities[tag.variable.publicId]?.internalUse&&(optionGroups[tag.source?.publicId]||(optionGroups[tag.source?.publicId]=[]),optionGroups[tag.source?.publicId].push({publicId:tag.publicId,label:tag.name,sublabel:tag.slug}));return Object.keys(optionGroups).map(key=>({label:sourceEntities[key]?.name,options:optionGroups[key]}))}))}};_ResourceSelectionInputFacade.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_ResourceSelectionInputFacade)},_ResourceSelectionInputFacade.\u0275prov=\u0275\u0275defineInjectable({token:_ResourceSelectionInputFacade,factory:_ResourceSelectionInputFacade.\u0275fac,providedIn:"root"});let ResourceSelectionInputFacade2=_ResourceSelectionInputFacade;return ResourceSelectionInputFacade2})();var _forTrack06=($index,$item)=>$item.publicId;function ResourceSelectionInputComponent_Conditional_0_Template(rf,ctx){if(rf&1&&(\u0275\u0275element(0,"p",0),\u0275\u0275pipe(1,"renderMarkdown")),rf&2){let ctx_r0=\u0275\u0275nextContext();\u0275\u0275property("innerHTML",\u0275\u0275pipeBind1(1,1,ctx_r0.field.inputDescription.description),\u0275\u0275sanitizeHtml)}}function ResourceSelectionInputComponent_For_12_Conditional_0_For_2_Conditional_4_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"span",7),\u0275\u0275text(1),\u0275\u0275elementEnd()),rf&2){let option_r2=\u0275\u0275nextContext().$implicit;\u0275\u0275advance(),\u0275\u0275textInterpolate(option_r2.sublabel)}}function ResourceSelectionInputComponent_For_12_Conditional_0_For_2_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"mat-option",5)(1,"span",6)(2,"span"),\u0275\u0275text(3),\u0275\u0275elementEnd(),\u0275\u0275template(4,ResourceSelectionInputComponent_For_12_Conditional_0_For_2_Conditional_4_Template,2,1,"span",7),\u0275\u0275elementEnd()()),rf&2){let option_r2=ctx.$implicit;\u0275\u0275property("value",option_r2.publicId),\u0275\u0275advance(3),\u0275\u0275textInterpolate(option_r2.label),\u0275\u0275advance(),\u0275\u0275conditional(option_r2.sublabel?4:-1)}}function ResourceSelectionInputComponent_For_12_Conditional_0_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"mat-optgroup",4),\u0275\u0275repeaterCreate(1,ResourceSelectionInputComponent_For_12_Conditional_0_For_2_Template,5,3,"mat-option",5,_forTrack06),\u0275\u0275elementEnd()),rf&2){let groupOption_r3=\u0275\u0275nextContext().$implicit;\u0275\u0275property("label",groupOption_r3.label),\u0275\u0275advance(),\u0275\u0275repeater(groupOption_r3.options)}}function ResourceSelectionInputComponent_For_12_Template(rf,ctx){if(rf&1&&\u0275\u0275template(0,ResourceSelectionInputComponent_For_12_Conditional_0_Template,3,1,"mat-optgroup",4),rf&2){let groupOption_r3=ctx.$implicit;\u0275\u0275conditional(groupOption_r3.options.length?0:-1)}}function ResourceSelectionInputComponent_Conditional_13_Template(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"mat-error",3),\u0275\u0275text(1,"__MESSAGE__.REQUIRED"),\u0275\u0275elementEnd())}var ResourceSelectionInputComponent=(()=>{let _ResourceSelectionInputComponent=class _ResourceSelectionInputComponent extends ComponentInputComponent{constructor(){super(...arguments),this.cdRef=inject(ChangeDetectorRef),this.destroy=inject(DestroyRef),this.facade=inject(ResourceSelectionInputFacade),this.groupedOptions=[],this.queryFormControl=new FormControl("")}ngOnInit(){this.facade.options(this.field,this.queryFormControl).pipe(takeUntilDestroyed(this.destroy)).subscribe(options=>{this.groupedOptions=options,this.cdRef.markForCheck()})}get publicIdControl(){return this.componentFormGroup.get([this.field.inputDescription.key,"publicId"])}get nameControl(){return this.componentFormGroup.get([this.field.inputDescription.key,"name"])}selectionChanged(value){let option=this.groupedOptions.reduce((options,groupedOption)=>options.concat(groupedOption.options),[]).find(option2=>option2.publicId===value);option&&this.nameControl?.setValue(option.label)}};_ResourceSelectionInputComponent.\u0275fac=(()=>{let \u0275ResourceSelectionInputComponent_BaseFactory;return function(__ngFactoryType__){return(\u0275ResourceSelectionInputComponent_BaseFactory||(\u0275ResourceSelectionInputComponent_BaseFactory=\u0275\u0275getInheritedFactory(_ResourceSelectionInputComponent)))(__ngFactoryType__||_ResourceSelectionInputComponent)}})(),_ResourceSelectionInputComponent.\u0275cmp=\u0275\u0275defineComponent({type:_ResourceSelectionInputComponent,selectors:[["ix-resource-selection-input"]],standalone:!1,features:[\u0275\u0275InheritDefinitionFeature],decls:14,vars:12,consts:[[1,"description",3,"innerHTML"],["panelClass","select-resource-selector-panel",3,"selectionChange","formControl"],[3,"formControl","placeholderLabel","noEntriesFoundLabel"],["translate",""],[3,"label"],[3,"value"],["fxLayout","column"],[1,"sublabel"]],template:function(rf,ctx){rf&1&&(\u0275\u0275template(0,ResourceSelectionInputComponent_Conditional_0_Template,2,3,"p",0),\u0275\u0275elementStart(1,"mat-form-field")(2,"mat-label"),\u0275\u0275text(3),\u0275\u0275elementEnd(),\u0275\u0275elementStart(4,"mat-select",1),\u0275\u0275listener("selectionChange",function($event){return ctx.selectionChanged($event.value)}),\u0275\u0275elementStart(5,"mat-select-trigger"),\u0275\u0275text(6),\u0275\u0275elementEnd(),\u0275\u0275elementStart(7,"mat-option"),\u0275\u0275element(8,"ngx-mat-select-search",2),\u0275\u0275pipe(9,"translate"),\u0275\u0275pipe(10,"translate"),\u0275\u0275elementEnd(),\u0275\u0275repeaterCreate(11,ResourceSelectionInputComponent_For_12_Template,1,1,null,null,\u0275\u0275repeaterTrackByIdentity),\u0275\u0275elementEnd(),\u0275\u0275template(13,ResourceSelectionInputComponent_Conditional_13_Template,2,0,"mat-error",3),\u0275\u0275elementEnd()),rf&2&&(\u0275\u0275conditional(ctx.field.inputDescription.description?0:-1),\u0275\u0275advance(3),\u0275\u0275textInterpolate(ctx.field.inputDescription.label),\u0275\u0275advance(),\u0275\u0275property("formControl",ctx.publicIdControl),\u0275\u0275advance(2),\u0275\u0275textInterpolate1(" ",ctx.nameControl.value," "),\u0275\u0275advance(2),\u0275\u0275property("formControl",ctx.queryFormControl)("placeholderLabel",\u0275\u0275pipeBind1(9,8,"SEARCH"))("noEntriesFoundLabel",\u0275\u0275pipeBind1(10,10,"NO_RESULTS_FOUND")),\u0275\u0275advance(3),\u0275\u0275repeater(ctx.groupedOptions),\u0275\u0275advance(2),\u0275\u0275conditional(ctx.inputControl!=null&&ctx.inputControl.hasError("required")?13:-1))},dependencies:[MatSelectSearchComponent,DefaultLayoutDirective,NgControlStatus,FormControlDirective,TranslateDirective,MatOption,MatOptgroup,MatFormField,MatLabel,MatError,MatSelect,MatSelectTrigger,RenderMarkdownPipe,TranslatePipe],styles:["[_nghost-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%]{display:block} .mat-mdc-select-panel.select-resource-selector-panel mat-option.mat-mdc-option{line-height:1em} .mat-mdc-select-panel.select-resource-selector-panel mat-option.mat-mdc-option .sublabel{font-size:13px;color:#0000008a}"]});let ResourceSelectionInputComponent3=_ResourceSelectionInputComponent;return ResourceSelectionInputComponent3})();var ResourceSelectionInput=class extends ComponentPropertiesInput{constructor(input2,value,context3,converter,level){super(input2,value,context3,converter,level),this.setValue(value)}setValue(value){super.setValue(value),this.name=value?.name,this.publicId=value?.publicId}toFormControl(){let required=this.inputDescription.required?Validators.required:null;return new FormGroup({name:new FormControl(this.name),publicId:new FormControl(this.publicId,required)})}};function inputConstructor(input2){switch(input2.type){case"Number":return NumberInput;case"Group":return GroupInput;case"List":return ListInput;case"RichText":return RichTextInput;case"Selection":return SelectionInput;case"String":return StringInput;case"Text":return TextInput;default:return ComponentPropertiesInput}}function pageComponentInputConstructor(input2){switch(input2.type){case"AggregatedMetric":return AggregatedMetricInput;case"LiveMetric":return LiveMetricInput;case"RawMetric":return RawMetricInput;case"ResourceSelection":return ResourceSelectionInput;default:return inputConstructor(input2)}}function getComponentType(field){switch(field.inputDescription.type){case"Text":return TextInputComponent;case"Color":return ColorInputComponent;case"Date":return DateInputComponent;case"File":return FileInputComponent;case"MaterialIcon":return MaterialIconInputComponent;case"Number":return NumberInputComponent;case"Image":return ImageInputComponent;case"Checkbox":return CheckboxInputComponent;case"Selection":return SelectionInputComponent;case"RichText":return RichTextInputComponent;case"Group":return GroupInputComponent;case"List":return ListInputComponent;default:return StringInputComponent}}function getPageComponentComponentType(field){switch(field.inputDescription.type){case"Icon":return IconInputComponent;case"AggregatedMetric":return AggregatedMetricInputComponent;case"LiveMetric":return LiveMetricInputComponent;case"RawMetric":return RawMetricInputComponent;case"ResourceSelection":return ResourceSelectionInputComponent;default:return getComponentType(field)}}function getPendingFormValue(form){return Object.keys(form.controls).reduce((formValue,formControlName)=>{let _control=form.controls[formControlName];return _control instanceof FormGroup?__spreadProps(__spreadValues({},formValue),{[formControlName]:getPendingFormValue(_control)}):_control instanceof FormControl&&_control._pendingDirty?__spreadProps(__spreadValues({},formValue),{[formControlName]:_control._pendingValue}):formValue},form.value)}var ComponentPropertiesFacade=(()=>{let _ComponentPropertiesFacade=class _ComponentPropertiesFacade{constructor(store){this.store=store}manifest(template){return this.store.select(selectEntity2(template.publicId)).pipe(mergeMap(manifest=>manifest?of(manifest):(this.store.dispatch(ensureOne({template})),EMPTY)))}};_ComponentPropertiesFacade.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_ComponentPropertiesFacade)(\u0275\u0275inject(Store))},_ComponentPropertiesFacade.\u0275prov=\u0275\u0275defineInjectable({token:_ComponentPropertiesFacade,factory:_ComponentPropertiesFacade.\u0275fac,providedIn:"root"});let ComponentPropertiesFacade2=_ComponentPropertiesFacade;return ComponentPropertiesFacade2})();var ComponentPropertiesComponent=(()=>{let _ComponentPropertiesComponent=class _ComponentPropertiesComponent{constructor(cdRef,inputConverter,facade,contextService){this.cdRef=cdRef,this.inputConverter=inputConverter,this.facade=facade,this.contextService=contextService,this.afterViewInit$=new BehaviorSubject(!1),this.component$=new ReplaySubject(1),this.template$=new ReplaySubject(1),this.remove=new EventEmitter,this.update=new EventEmitter,this.unsavedChanges=new EventEmitter,this.form=new FormGroup({},{updateOn:"blur"}),this.destroy=inject(DestroyRef)}ngOnInit(){this.component$.pipe(distinctUntilChanged((a,b)=>a.publicId===b.publicId),pairwise(),takeUntilDestroyed(this.destroy)).subscribe(([previous])=>{this.emitPendingChanges(previous)}),combineLatest([this.component$,this.template$,this.afterViewInit$]).pipe(filter(([,,afterViewInit])=>afterViewInit),mergeMap(([component,template])=>combineLatest([of([component,template]),this.contextService.contextChanges.pipe(map(()=>this.inputConverter.hasFields({component})),distinctUntilChanged())])),filter(([,hasFields2])=>hasFields2),switchMap(([[component,template]])=>template?this.facade.manifest(template).pipe(map(manifest=>({component,manifest}))):of({component,manifest:null})),takeUntilDestroyed(this.destroy)).subscribe(({component,manifest})=>{if(this.currentComponentId===component.publicId)return;this.currentInputs=void 0,this.form.contains("inputs")&&this.form.removeControl("inputs"),this.fields=this.inputConverter.getFields({component},manifest?.inputs??null);let formControls=this.inputConverter.getFormControls(this.fields),inputs=new FormGroup(formControls);this.form.markAsPristine(),this.form.addControl("inputs",inputs),this.formDirective&&(this.formDirective.viewContainerRef.clear(),this.inputConverter.loadComponentInputs(this.fields,inputs,this.formDirective.viewContainerRef)),this.currentComponentId=component.publicId}),this.form.statusChanges.pipe(takeUntilDestroyed(this.destroy)).subscribe(()=>{this.unsavedChanges.emit(this.form.dirty&&this.form.invalid),this.cdRef.markForCheck()}),this.form.valueChanges.pipe(takeUntilDestroyed(this.destroy)).subscribe(data=>{let doSubmit=!1;if(!(!this.form.valid&&this.currentInputs!==void 0)){if("inputs"in data){this.fields.forEach(field=>field.setValue(data.inputs[field.inputDescription.key]));let inputsString=JSON.stringify(data.inputs);inputsString!==this.currentInputs&&(this.currentInputs!==void 0&&(doSubmit=!0),this.currentInputs=inputsString)}doSubmit&&this.submit()}})}ngOnChanges(changes){changes.template&&this.template$.next(this.template),changes.component&&this.component$.next(this.component)}ngAfterViewInit(){setTimeout(()=>{this.afterViewInit$.next(!0)},0)}ngOnDestroy(){this.emitPendingChanges(this.component),this.component$.complete(),this.template$.complete(),this.afterViewInit$.complete()}emitPendingChanges(component){if(component.inputs&&this.form.controls.inputs){let snapshot=cloneDeep_default(this.form.value);this.form.patchValue({inputs:getPendingFormValue(this.form.controls.inputs)},{emitEvent:!1}),!this.form.invalid&&!isEqual_default(snapshot,this.form.value)&&(isEqual_default(this.form.value.inputs,JSON.parse(component.inputs))||this.update.emit({publicId:component.publicId,inputs:JSON.stringify(this.form.value.inputs)}))}}submit(){let formValue=this.form.value.inputs?{inputs:JSON.stringify(this.form.value.inputs)}:{},component=__spreadValues(__spreadValues({},this.component),formValue);this.update.emit(component),this.form.markAsPristine()}};_ComponentPropertiesComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_ComponentPropertiesComponent)(\u0275\u0275directiveInject(ChangeDetectorRef),\u0275\u0275directiveInject(INPUT_CONVERTER_TOKEN),\u0275\u0275directiveInject(ComponentPropertiesFacade),\u0275\u0275directiveInject(ComponentContextService))},_ComponentPropertiesComponent.\u0275cmp=\u0275\u0275defineComponent({type:_ComponentPropertiesComponent,selectors:[["ix-page-component-properties"]],viewQuery:function(rf,ctx){if(rf&1&&(\u0275\u0275viewQuery(InputControlFormDirective,5),\u0275\u0275viewQuery(MatExpansionPanel,5)),rf&2){let _t;\u0275\u0275queryRefresh(_t=\u0275\u0275loadQuery())&&(ctx.formDirective=_t.first),\u0275\u0275queryRefresh(_t=\u0275\u0275loadQuery())&&(ctx.panelRefs=_t)}},inputs:{template:"template",component:"component"},outputs:{remove:"remove",update:"update",unsavedChanges:"unsavedChanges"},standalone:!1,features:[\u0275\u0275NgOnChangesFeature],decls:3,vars:1,consts:[["autocomplete","off",3,"ngSubmit","formGroup"],["fxLayout","column",1,"more-actions"],["ixInputControlForm",""]],template:function(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"form",0),\u0275\u0275listener("ngSubmit",function(){return ctx.submit()}),\u0275\u0275elementStart(1,"div",1),\u0275\u0275element(2,"div",2),\u0275\u0275elementEnd()()),rf&2&&\u0275\u0275property("formGroup",ctx.form)},dependencies:[InputControlFormDirective,\u0275NgNoValidate,NgControlStatusGroup,FormGroupDirective,DefaultLayoutDirective],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] form[_ngcontent-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%] button[type=submit][_ngcontent-%COMP%]{margin:16px}[_nghost-%COMP%] .mat-expansion-panel[_ngcontent-%COMP%]{background-color:transparent;border-radius:0}[_nghost-%COMP%] .mat-expansion-panel-header-title[_ngcontent-%COMP%]{color:var(--body-color)}[_nghost-%COMP%] .mat-expansion-panel[_ngcontent-%COMP%]:not(.mat-expanded){box-shadow:none!important}[_nghost-%COMP%] .mat-expansion-panel[_ngcontent-%COMP%]:not(.mat-expanded) + .mat-expansion-panel.mat-expanded[_ngcontent-%COMP%]{border-top-left-radius:8px;border-top-right-radius:8px}[_nghost-%COMP%] .mat-expansion-panel.mat-expanded[_ngcontent-%COMP%]{background-color:var(--mat-sys-surface)}[_nghost-%COMP%] .mat-expansion-panel.mat-expanded[_ngcontent-%COMP%] + .mat-expansion-panel.mat-expanded[_ngcontent-%COMP%]{border-top:1px solid var(--mat-sys-outline-variant)}[_nghost-%COMP%] .mat-expansion-panel.border-radius-bottom[_ngcontent-%COMP%]{border-bottom-left-radius:8px!important;border-bottom-right-radius:8px!important}[_nghost-%COMP%] .mat-expansion-panel[_ngcontent-%COMP%] .mat-expansion-panel-header[_ngcontent-%COMP%]{padding:0 20px 0 16px}[_nghost-%COMP%] .mat-expansion-panel[_ngcontent-%COMP%] .mat-expansion-panel-body{padding:0 16px 16px}[_nghost-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%]{margin-bottom:8px}[_nghost-%COMP%] .more-actions[_ngcontent-%COMP%] .component-property-level-0{border-bottom:1px solid var(--mat-sys-outline-variant);padding:16px}[_nghost-%COMP%] .more-actions[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{margin-right:4px}"]});let ComponentPropertiesComponent3=_ComponentPropertiesComponent;return ComponentPropertiesComponent3})();var MAT_LUXON_DATE_ADAPTER_OPTIONS=new InjectionToken("MAT_LUXON_DATE_ADAPTER_OPTIONS",{providedIn:"root",factory:MAT_LUXON_DATE_ADAPTER_OPTIONS_FACTORY});function MAT_LUXON_DATE_ADAPTER_OPTIONS_FACTORY(){return{useUtc:!1,defaultOutputCalendar:"gregory"}}function range(length,valueFunction){let valuesArray=Array(length);for(let i=0;i<length;i++)valuesArray[i]=valueFunction(i);return valuesArray}var LuxonDateAdapter=(()=>{class LuxonDateAdapter2 extends DateAdapter{_useUTC;_firstDayOfWeek;_defaultOutputCalendar;constructor(){super();let dateLocale=inject(MAT_DATE_LOCALE,{optional:!0}),options=inject(MAT_LUXON_DATE_ADAPTER_OPTIONS,{optional:!0});this._useUTC=!!options?.useUtc,this._firstDayOfWeek=options?.firstDayOfWeek,this._defaultOutputCalendar=options?.defaultOutputCalendar||"gregory",this.setLocale(dateLocale||DateTime.local().locale)}getYear(date){return date.year}getMonth(date){return date.month-1}getDate(date){return date.day}getDayOfWeek(date){return date.weekday}getMonthNames(style2){return Info.months(style2,{locale:this.locale,outputCalendar:this._defaultOutputCalendar})}getDateNames(){let dtf=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return range(31,i=>dtf.format(DateTime.utc(2017,1,i+1).toJSDate()))}getDayOfWeekNames(style2){let days=Info.weekdays(style2,{locale:this.locale});return days.unshift(days.pop()),days}getYearName(date){return date.toFormat("yyyy",this._getOptions())}getFirstDayOfWeek(){return this._firstDayOfWeek??Info.getStartOfWeek({locale:this.locale})}getNumDaysInMonth(date){return date.daysInMonth}clone(date){return DateTime.fromObject(date.toObject(),this._getOptions())}createDate(year,month,date){let options=this._getOptions();if(month<0||month>11)throw Error(`Invalid month index "${month}". Month index has to be between 0 and 11.`);if(date<1)throw Error(`Invalid date "${date}". Date has to be greater than 0.`);let result=this._useUTC?DateTime.utc(year,month+1,date,options):DateTime.local(year,month+1,date,options);if(!this.isValid(result))throw Error(`Invalid date "${date}". Reason: "${result.invalidReason}".`);return result}today(){let options=this._getOptions();return this._useUTC?DateTime.utc(options):DateTime.local(options)}parse(value,parseFormat){let options=this._getOptions();if(typeof value=="string"&&value.length>0){let iso8601Date=DateTime.fromISO(value,options);if(this.isValid(iso8601Date))return iso8601Date;let formats=Array.isArray(parseFormat)?parseFormat:[parseFormat];if(!parseFormat.length)throw Error("Formats array must not be empty.");for(let format2 of formats){let fromFormat=DateTime.fromFormat(value,format2,options);if(this.isValid(fromFormat))return fromFormat}return this.invalid()}else{if(typeof value=="number")return DateTime.fromMillis(value,options);if(value instanceof Date)return DateTime.fromJSDate(value,options);if(value instanceof DateTime)return DateTime.fromMillis(value.toMillis(),options)}return null}format(date,displayFormat){if(!this.isValid(date))throw Error("LuxonDateAdapter: Cannot format invalid date.");return this._useUTC?date.setLocale(this.locale).setZone("utc").toFormat(displayFormat):date.setLocale(this.locale).toFormat(displayFormat)}addCalendarYears(date,years){return date.reconfigure(this._getOptions()).plus({years})}addCalendarMonths(date,months2){return date.reconfigure(this._getOptions()).plus({months:months2})}addCalendarDays(date,days){return date.reconfigure(this._getOptions()).plus({days})}toIso8601(date){return date.toISO()}deserialize(value){let options=this._getOptions(),date;if(value instanceof Date&&(date=DateTime.fromJSDate(value,options)),typeof value=="string"){if(!value)return null;date=DateTime.fromISO(value,options)}return date&&this.isValid(date)?date:super.deserialize(value)}isDateInstance(obj){return obj instanceof DateTime}isValid(date){return date.isValid}invalid(){return DateTime.invalid("Invalid Luxon DateTime object.")}setTime(target,hours,minutes,seconds){return this.clone(target).set({hour:hours,minute:minutes,second:seconds,millisecond:0})}getHours(date){return date.hour}getMinutes(date){return date.minute}getSeconds(date){return date.second}parseTime(value,parseFormat){let result=this.parse(value,parseFormat);return(!result||!this.isValid(result))&&typeof value=="string"&&this.parse(value.replace(/[^0-9:(AM|PM)]/gi,""),parseFormat)||result}addSeconds(date,amount){return date.reconfigure(this._getOptions()).plus({seconds:amount})}_getOptions(){return{zone:this._useUTC?"utc":void 0,locale:this.locale,outputCalendar:this._defaultOutputCalendar}}static \u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||LuxonDateAdapter2)};static \u0275prov=\u0275\u0275defineInjectable({token:LuxonDateAdapter2,factory:LuxonDateAdapter2.\u0275fac})}return LuxonDateAdapter2})(),MAT_LUXON_DATE_FORMATS={parse:{dateInput:"D",timeInput:"t"},display:{dateInput:"D",timeInput:"t",monthYearLabel:"LLL yyyy",dateA11yLabel:"DD",monthYearA11yLabel:"LLLL yyyy",timeOptionLabel:"t"}};var MatLuxonDateModule=(()=>{class MatLuxonDateModule2{static \u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||MatLuxonDateModule2)};static \u0275mod=\u0275\u0275defineNgModule({type:MatLuxonDateModule2});static \u0275inj=\u0275\u0275defineInjector({providers:[provideLuxonDateAdapter()]})}return MatLuxonDateModule2})();function provideLuxonDateAdapter(formats=MAT_LUXON_DATE_FORMATS){return[{provide:DateAdapter,useClass:LuxonDateAdapter,deps:[MAT_DATE_LOCALE,MAT_LUXON_DATE_ADAPTER_OPTIONS]},{provide:MAT_DATE_FORMATS,useValue:formats}]}var PERIOD_SPEC_LIST=TIME_RANGE_OPTIONS.map(({code})=>code);var PeriodFieldsetModule=(()=>{let _PeriodFieldsetModule=class _PeriodFieldsetModule{};_PeriodFieldsetModule.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_PeriodFieldsetModule)},_PeriodFieldsetModule.\u0275mod=\u0275\u0275defineNgModule({type:_PeriodFieldsetModule}),_PeriodFieldsetModule.\u0275inj=\u0275\u0275defineInjector({imports:[SharedModule]});let PeriodFieldsetModule2=_PeriodFieldsetModule;return PeriodFieldsetModule2})();var SelectorDialogModule=(()=>{let _SelectorDialogModule=class _SelectorDialogModule{};_SelectorDialogModule.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_SelectorDialogModule)},_SelectorDialogModule.\u0275mod=\u0275\u0275defineNgModule({type:_SelectorDialogModule}),_SelectorDialogModule.\u0275inj=\u0275\u0275defineInjector({imports:[SharedModule,NgxMatSelectSearchModule]});let SelectorDialogModule2=_SelectorDialogModule;return SelectorDialogModule2})();var SelectorInputModule=(()=>{let _SelectorInputModule=class _SelectorInputModule{};_SelectorInputModule.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_SelectorInputModule)},_SelectorInputModule.\u0275mod=\u0275\u0275defineNgModule({type:_SelectorInputModule}),_SelectorInputModule.\u0275inj=\u0275\u0275defineInjector({imports:[SharedModule,SelectorDialogModule]});let SelectorInputModule2=_SelectorInputModule;return SelectorInputModule2})();var NumberInputValidatorModule=(()=>{let _NumberInputValidatorModule=class _NumberInputValidatorModule{};_NumberInputValidatorModule.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_NumberInputValidatorModule)},_NumberInputValidatorModule.\u0275mod=\u0275\u0275defineNgModule({type:_NumberInputValidatorModule}),_NumberInputValidatorModule.\u0275inj=\u0275\u0275defineInjector({});let NumberInputValidatorModule2=_NumberInputValidatorModule;return NumberInputValidatorModule2})();var InputConverterService=class{constructor(){this.injector=inject(Injector)}convertInput(input2,values,context3,level){let constructor=this.getInputConstructor(input2);return new constructor(input2,values?.[input2.key],context3,this,level,this.injector)}getFormControls(inputs){return inputs.reduce((acc,cur)=>__spreadProps(__spreadValues({},acc),{[cur.inputDescription.key]:cur.toFormControl()}),{})}getFields(context3,inputs){let componentInput=this.getInputs(context3);return inputs?.map(input2=>this.convertInput(input2,componentInput,context3,0))||[]}loadComponentInputs(fields,form,ref){for(let field of fields){let componentType=this.getComponentType(field),componentRef=ref.createComponent(componentType);componentRef.instance.field=field,componentRef.instance.componentFormGroup=form,componentRef.location.nativeElement.classList.add(`component-property-level-${field.level}`)}}};var PageComponentInputConverterService=(()=>{let _PageComponentInputConverterService=class _PageComponentInputConverterService extends InputConverterService{constructor(){super(...arguments),this.service=inject(ComponentContextService)}getInputs({component}){let context3=this.service.getContext(component);if(context3===void 0)throw Error(`ComponentContext could not be found for component ${component.publicId}.`);let inputs=cloneDeep_default(context3.inputs)||{};return Object.keys(context3._translationKeys).forEach(key=>set_default(inputs,key,context3._translationKeys[key])),inputs}getInputConstructor(input2){return pageComponentInputConstructor(input2)}getComponentType(field){return getPageComponentComponentType(field)}hasFields({component}){return this.service.getContext(component)!==void 0}};_PageComponentInputConverterService.\u0275fac=(()=>{let \u0275PageComponentInputConverterService_BaseFactory;return function(__ngFactoryType__){return(\u0275PageComponentInputConverterService_BaseFactory||(\u0275PageComponentInputConverterService_BaseFactory=\u0275\u0275getInheritedFactory(_PageComponentInputConverterService)))(__ngFactoryType__||_PageComponentInputConverterService)}})(),_PageComponentInputConverterService.\u0275prov=\u0275\u0275defineInjectable({token:_PageComponentInputConverterService,factory:_PageComponentInputConverterService.\u0275fac,providedIn:"root"});let PageComponentInputConverterService2=_PageComponentInputConverterService;return PageComponentInputConverterService2})();var InputControlModule=(()=>{let _InputControlModule=class _InputControlModule{};_InputControlModule.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_InputControlModule)},_InputControlModule.\u0275mod=\u0275\u0275defineNgModule({type:_InputControlModule}),_InputControlModule.\u0275inj=\u0275\u0275defineInjector({providers:[{provide:INPUT_CONVERTER_TOKEN,useClass:PageComponentInputConverterService}],imports:[FileUploadButtonComponent,FileUploadDropContainerComponent,MarkdownModule,MatLuxonDateModule,MaterialIconFieldsetComponent,NgxMatSelectSearchModule,NumberInputValidatorModule,PeriodFieldsetModule,SelectorInputModule,SharedModule,TranslationIconButtonComponent]});let InputControlModule2=_InputControlModule;return InputControlModule2})();var ComponentPropertiesModule=(()=>{let _ComponentPropertiesModule=class _ComponentPropertiesModule{};_ComponentPropertiesModule.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_ComponentPropertiesModule)},_ComponentPropertiesModule.\u0275mod=\u0275\u0275defineNgModule({type:_ComponentPropertiesModule}),_ComponentPropertiesModule.\u0275inj=\u0275\u0275defineInjector({imports:[InputControlModule,ReactiveFormsModule,FlexModule,InputControlModule]});let ComponentPropertiesModule2=_ComponentPropertiesModule;return ComponentPropertiesModule2})();var ComponentContextCleanupDirective=(()=>{let _ComponentContextCleanupDirective=class _ComponentContextCleanupDirective{set agentOrAssetId(agentOrAssetId){this.agentOrAssetId$.next(agentOrAssetId)}set pageVersionId(pageVersionId){this.pageVersionId$.next(pageVersionId)}constructor(scopeRef,contextService){this.scopeRef=scopeRef,this.contextService=contextService,this.agentOrAssetId$=new ReplaySubject(1),this.pageVersionId$=new ReplaySubject(1),this.destroy=inject(DestroyRef)}ngOnInit(){combineLatest([this.agentOrAssetId$,this.pageVersionId$]).pipe(filter(ids=>ids.every(Boolean)),distinctUntilChanged(isEqual_default),skip(1),takeUntilDestroyed(this.destroy)).subscribe(()=>{this.contextService.destroyAll(this.scopeRef?.value)})}ngOnDestroy(){this.agentOrAssetId$.complete(),this.pageVersionId$.complete()}};_ComponentContextCleanupDirective.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_ComponentContextCleanupDirective)(\u0275\u0275directiveInject(ComponentGridScopeDirective,8),\u0275\u0275directiveInject(ComponentContextService))},_ComponentContextCleanupDirective.\u0275dir=\u0275\u0275defineDirective({type:_ComponentContextCleanupDirective,selectors:[["","ixComponentContextCleanup",""]],inputs:{agentOrAssetId:"agentOrAssetId",pageVersionId:"pageVersionId"},standalone:!1});let ComponentContextCleanupDirective3=_ComponentContextCleanupDirective;return ComponentContextCleanupDirective3})();var setLocale=createAction("[Localization] Set Locale",props()),setTimeZone=createAction("[Localization] Set Time Zone",props());var LOCALE_STORAGE_KEY="locale";var LANGUAGE_TO_LOCALES=[{code:"nl",locale:"nl-NL"},{code:"de",locale:"de-DE"},{code:"en",locale:"en-US"}],TIME_ZONE_STORAGE_KEY="timezone";function mapLangToLocale(lang){return LANGUAGE_TO_LOCALES.find(map4=>map4.code===lang)?.locale||lang}var LocalizationService=(()=>{let _LocalizationService=class _LocalizationService{constructor(storage){this.storage=storage}getLocale(){if(this.storage.has(LOCALE_STORAGE_KEY)){let locale=this.storage.get(LOCALE_STORAGE_KEY);return locale.includes("_")&&(locale=locale.replace("_","-"),this.setLocale(locale)),locale}return mapLangToLocale(Intl.DateTimeFormat().resolvedOptions().locale)}getTimeZone(){return this.storage.has(TIME_ZONE_STORAGE_KEY)?this.storage.get(TIME_ZONE_STORAGE_KEY):Intl.DateTimeFormat().resolvedOptions().timeZone}setLocale(locale){locale!==null?(this.storage.forever(LOCALE_STORAGE_KEY,locale),Settings.defaultLocale=locale):(this.storage.forget(LOCALE_STORAGE_KEY),Settings.defaultLocale=mapLangToLocale(Intl.DateTimeFormat().resolvedOptions().locale))}setTimeZone(timeZone){timeZone!==null?(this.storage.forever(TIME_ZONE_STORAGE_KEY,timeZone),Settings.defaultZone=timeZone):(this.storage.forget(TIME_ZONE_STORAGE_KEY),Settings.defaultZone=Intl.DateTimeFormat().resolvedOptions().timeZone)}};_LocalizationService.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_LocalizationService)(\u0275\u0275inject(StorageService))},_LocalizationService.\u0275prov=\u0275\u0275defineInjectable({token:_LocalizationService,factory:_LocalizationService.\u0275fac,providedIn:"root"});let LocalizationService2=_LocalizationService;return LocalizationService2})();var LocalizationEffects=(()=>{let _LocalizationEffects=class _LocalizationEffects{constructor(actions$,service){this.actions$=actions$,this.service=service,this.setLocale$=createEffect(()=>this.actions$.pipe(ofType(setLocale),tap(({locale})=>this.service.setLocale(locale))),{dispatch:!1}),this.setTimeZone$=createEffect(()=>this.actions$.pipe(ofType(setTimeZone),tap(({timeZone})=>this.service.setTimeZone(timeZone))),{dispatch:!1}),this.setDefaultUserPreferences$=createEffect(()=>this.actions$.pipe(ofType(logInSuccess,loadMeSuccess3),map(({data})=>({localisation:get_default(data,"localisation",get_default(data,"user.localisation")),timeZone:get_default(data,"timeZone",get_default(data,"user.timeZone"))})),filter(({localisation,timeZone})=>isNil_default(localisation)||isNil_default(timeZone)),map(({localisation,timeZone})=>updateMe2({data:__spreadValues(__spreadValues({},isNil_default(localisation)?{localisation:this.service.getLocale()}:{}),isNil_default(timeZone)?{timeZone:this.service.getTimeZone()}:{})})))),this.localeUserPreference$=createEffect(()=>this.actions$.pipe(ofType(logInSuccess,loadMeSuccess3,updateMeSuccess2,didUpdateMe2),map(({data})=>get_default(data,"localisation",get_default(data,"user.localisation"))),filter(locale=>locale!==void 0),distinctUntilChanged(),map(locale=>setLocale({locale})))),this.timeZoneUserPreference$=createEffect(()=>this.actions$.pipe(ofType(logInSuccess,loadMeSuccess3,updateMeSuccess2,didUpdateMe2),map(({data})=>get_default(data,"timeZone",get_default(data,"user.timeZone"))),filter(timeZone=>timeZone!==void 0),distinctUntilChanged(),map(timeZone=>setTimeZone({timeZone}))))}};_LocalizationEffects.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_LocalizationEffects)(\u0275\u0275inject(Actions),\u0275\u0275inject(LocalizationService))},_LocalizationEffects.\u0275prov=\u0275\u0275defineInjectable({token:_LocalizationEffects,factory:_LocalizationEffects.\u0275fac});let LocalizationEffects2=_LocalizationEffects;return LocalizationEffects2})();var LocalizationModule=(()=>{let _LocalizationModule=class _LocalizationModule{constructor(storage){Settings.defaultLocale=storage.get(LOCALE_STORAGE_KEY,mapLangToLocale(Intl.DateTimeFormat().resolvedOptions().locale)),Settings.defaultZone=storage.get(TIME_ZONE_STORAGE_KEY,Intl.DateTimeFormat().resolvedOptions().timeZone)}};_LocalizationModule.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_LocalizationModule)(\u0275\u0275inject(StorageService))},_LocalizationModule.\u0275mod=\u0275\u0275defineNgModule({type:_LocalizationModule}),_LocalizationModule.\u0275inj=\u0275\u0275defineInjector({providers:[{provide:MAT_DATE_LOCALE,useFactory:service=>service.getLocale(),deps:[LocalizationService]}],imports:[StorageModule,EffectsModule.forFeature([LocalizationEffects])]});let LocalizationModule2=_LocalizationModule;return LocalizationModule2})();var LoggingDataPrefetcher=(()=>{let _LoggingDataPrefetcher=class _LoggingDataPrefetcher{constructor(store,actions$){this.store=store,this.actions$=actions$}forQueries(agentId,queries){let parsedSelectors=queries.map(query=>query.selector?parseSelector(query.selector):{type:"",target:"",dataSource:"",logType:"",logName:""}).filter(r=>r?.type==="Agent"&&r?.target==="selected"),uniqDataSourceSlugs=compact_default(uniq_default(parsedSelectors.map(r=>r?.dataSource))),uniqDataTagSlugs=compact_default(uniq_default(parsedSelectors.filter(r=>r?.logType==="tag").map(r=>r?.logName))),uniqDataVariableSlugs=compact_default(uniq_default(parsedSelectors.filter(r=>r?.logType==="variable").map(r=>r?.logName)));return combineLatest([this.handleDataSourceSlugs(agentId,uniqDataSourceSlugs),this.handleDataTagSlugs(agentId,uniqDataTagSlugs),this.handleDataVariableSlugs(agentId,uniqDataVariableSlugs)]).pipe(mergeMap(()=>of(queries)))}handleDataSourceSlugs(agentId,slugs){return agentId&&slugs.length?combineLatest([this.store.select(selectAllLoadedForAgent(agentId)),this.store.select(selectAllForAgent(agentId))]).pipe(take(1),mergeMap(([sourcesLoaded,sources])=>{if(sourcesLoaded&&sources.length===0)return of([]);let unmatchedSlugs=slugs.filter(slug=>!sources?.find(s2=>s2?.slug===slug));if(unmatchedSlugs.length){let filters=`in(slug,"${unmatchedSlugs.join('","')}")`,queryTooLarge=("?fields="+AGENT_DATA_SOURCE_LIST_FIELDS.join(",")+"&").length+filters.length+`&page-after=publicid0000&page-size=${4e3}`.length>4096,reference2=`${agentId}_${filters}`;return this.store.dispatch(loadAll2({agentId,filters:queryTooLarge?void 0:filters})),this.actions$.pipe(ofType(loadAllSuccess3,loadAllFailure2),filter(({agentId:agentId2,filters:filters2})=>`${agentId2}_${filters2}`===reference2||queryTooLarge),take(1),map(()=>[]))}return of([])}),map(()=>[])):of([])}handleDataTagSlugs(agentId,slugs){return agentId&&slugs.length?combineLatest([this.store.select(selectAllLoadedForAgent(agentId)),this.store.select(selectAllForAgent(agentId)),this.store.select(selectAllForAgent3(agentId))]).pipe(take(1),mergeMap(([sourcesLoaded,sources,tags])=>{if(sourcesLoaded&&sources.length===0)return of([]);let unmatchedSlugs=slugs.filter(slug=>!tags?.find(t=>t?.slug===slug));if(unmatchedSlugs.length){let filters=`in(slug,"${unmatchedSlugs.join('","')}")`,queryTooLarge=("?fields="+AGENT_DATA_TAG_WITH_VARIABLE_LIST_FIELDS.join(",")+"&").length+(filters?.length||0)+`&page-after=publicid0000&page-size=${4e3}`.length>4096,reference2=`${agentId}_${filters}`;return this.store.dispatch(loadAll28({agentId,fields:AGENT_DATA_TAG_WITH_VARIABLE_LIST_FIELDS,filters:queryTooLarge?void 0:filters})),this.actions$.pipe(ofType(loadAllSuccess29,loadAllFailure28),filter(({agentId:agentId2,filters:filters2})=>`${agentId2}_${filters2}`===reference2||queryTooLarge),take(1),map(()=>[]))}return of([])}),map(()=>[])):of([])}handleDataVariableSlugs(agentId,slugs){return agentId&&slugs.length?this.store.select(selectAllLoadedForAgent2(agentId)).pipe(take(1),mergeMap(loaded=>{if(!loaded){let reference2=agentId;return this.store.dispatch(loadAll29({agentId})),this.actions$.pipe(ofType(loadAllSuccess30,loadAllFailure29),filter(({agentId:agentId2})=>agentId2===reference2),take(1),map(()=>[]))}return of([])}),map(()=>[])):of([])}};_LoggingDataPrefetcher.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_LoggingDataPrefetcher)(\u0275\u0275inject(Store),\u0275\u0275inject(Actions))},_LoggingDataPrefetcher.\u0275prov=\u0275\u0275defineInjectable({token:_LoggingDataPrefetcher,factory:_LoggingDataPrefetcher.\u0275fac,providedIn:"root"});let LoggingDataPrefetcher2=_LoggingDataPrefetcher;return LoggingDataPrefetcher2})();var LoggingDataBrokerDirective=(()=>{let _LoggingDataBrokerDirective=class _LoggingDataBrokerDirective{constructor(scopeRef,store,activePeriodSpec,authTokenService,localization,loggingDataClient,loggingDataFetcherFactory,loggingDataPrefetcher){this.scopeRef=scopeRef,this.store=store,this.activePeriodSpec=activePeriodSpec,this.authTokenService=authTokenService,this.localization=localization,this.loggingDataClient=loggingDataClient,this.loggingDataFetcherFactory=loggingDataFetcherFactory,this.loggingDataPrefetcher=loggingDataPrefetcher,this.agentOrAssetId$=new ReplaySubject(1),this.agentId=null,this.agentId$=this.agentOrAssetId$.pipe(switchMap(agentOrAssetId=>this.store.select(selectEntities16).pipe(map(entities=>entities[agentOrAssetId]?findClosestAgentToAsset(agentOrAssetId,entities)?.publicId??null:agentOrAssetId),distinctUntilChanged()))),this._authToken$=combineLatest([timer(0,55*60*1e3),this.agentId$]).pipe(mergeMap(([,id])=>{let canUseLiveData=this.features.instantCanUse("live-data",{agentId:id}),canUseHistoricalData=this.features.instantCanUse("historical-data",{agentId:id});return id&&(canUseLiveData||canUseHistoricalData)?this.authTokenService.getForData({agents:[{publicId:id}],expiresIn:3600}).pipe(map(response=>response.data.secretId),catchError(()=>EMPTY)):EMPTY}),share()),this.authTokenRequired$=new ReplaySubject(1),this.authToken$=new ReplaySubject(1),this.dataSources$=this.agentId$.pipe(mergeMap(id=>this.store.select(selectAllForAgent(id)))),this.tags$=this.agentId$.pipe(mergeMap(id=>this.store.select(selectAllForAgent3(id)))),this.variables$=this.agentId$.pipe(mergeMap(id=>this.store.select(selectAllForAgent2(id)))),this.features=inject(PlatformFeaturesService),this.destroy=inject(DestroyRef)}ngOnInit(){this.agentId$.pipe(distinctUntilChanged()).subscribe(agentId=>this.agentId=agentId),this.fetcher=this.loggingDataFetcherFactory.create({agentId:this.agentId$.pipe(distinctUntilChanged()),authToken:this.authToken$.asObservable(),companyId:this.store.select(selectMyCompanyId),locale:this.localization.getLocale(),timeRange:this.activePeriodSpec.asTimeRange(this.scopeRef?.value),timeZone:of(Settings.defaultZone.name),dataSources:this.dataSources$,tags:this.tags$,variables:this.variables$,availabilityStrategy:LoggingDataConfigAvailabilityStrategy.Lazy,scope:this.scopeRef?.value,beforeFetch:queries=>this.agentId?this.loggingDataPrefetcher.forQueries(this.agentId,queries).pipe(mergeMap(queries2=>queries2.some(q=>q.selector?parseSelector(q.selector).logType==="variable":!1)?(this.authTokenRequired$.next(!0),this.authToken$.pipe(take(1),map(()=>queries2))):of(queries2))):of(queries)}),this.authTokenRequired$.pipe(distinctUntilChanged(),switchMap(required=>required?this._authToken$:EMPTY),takeUntilDestroyed(this.destroy)).subscribe(this.authToken$),merge(this.loggingDataClient.onQuery(this.scopeRef?.value),this.loggingDataClient.onDestroy(this.scopeRef?.value)).pipe(bufferDebounceTime(100),mergeMap(buffer2=>{let queries=[],destroyEvents=buffer2.filter(item=>item instanceof CustomEvent);return destroyEvents.length?queries=flatten_default(buffer2.filter(item=>!(item instanceof CustomEvent))).filter(q=>!destroyEvents.some(e=>q._clientRef?.startsWith(e.detail)&&(q._timeStamp?q._timeStamp<e.timeStamp:!0))):queries=flatten_default(buffer2),queries.length?of(queries):EMPTY}),mergeMap(queries=>this.fetcher.fetch(queries)),distinctUntilChanged(),takeUntilDestroyed(this.destroy)).subscribe(metrics=>{this.loggingDataClient.emitMetrics(metrics,this.scopeRef?.value)}),this.loggingDataClient.onExport(this.scopeRef?.value).pipe(mergeMap(({queries,csvDelimiter})=>this.fetcher.export(queries,csvDelimiter)),takeUntilDestroyed(this.destroy)).subscribe(blob=>{this.loggingDataClient.emitBlob(blob,this.scopeRef?.value)})}ngOnChanges(changes){changes.agentOrAssetId&&this.agentOrAssetId&&this.agentOrAssetId$.next(this.agentOrAssetId)}ngOnDestroy(){this.agentOrAssetId$.complete(),this.authToken$.complete(),this.authTokenRequired$.complete(),this.fetcher.destroy()}};_LoggingDataBrokerDirective.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_LoggingDataBrokerDirective)(\u0275\u0275directiveInject(ComponentGridScopeDirective,8),\u0275\u0275directiveInject(Store),\u0275\u0275directiveInject(ActivePeriodSpec),\u0275\u0275directiveInject(AuthTokenService),\u0275\u0275directiveInject(LocalizationService),\u0275\u0275directiveInject(LoggingDataClientProxyService),\u0275\u0275directiveInject(LoggingDataFetcherFactory),\u0275\u0275directiveInject(LoggingDataPrefetcher))},_LoggingDataBrokerDirective.\u0275dir=\u0275\u0275defineDirective({type:_LoggingDataBrokerDirective,selectors:[["","ixLoggingDataBroker",""]],inputs:{agentOrAssetId:"agentOrAssetId"},standalone:!1,features:[\u0275\u0275NgOnChangesFeature]});let LoggingDataBrokerDirective3=_LoggingDataBrokerDirective;return LoggingDataBrokerDirective3})();var ComponentGridFocusDirective=(()=>{let _ComponentGridFocusDirective=class _ComponentGridFocusDirective{constructor(){this.elRef=inject(ElementRef),this.service=inject(ComponentGridFocusService),this.destroy=inject(DestroyRef)}ngOnInit(){fromEvent(this.elRef.nativeElement,"mousedown").pipe(takeUntilDestroyed(this.destroy)).subscribe(()=>this.service.next())}};_ComponentGridFocusDirective.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_ComponentGridFocusDirective)},_ComponentGridFocusDirective.\u0275dir=\u0275\u0275defineDirective({type:_ComponentGridFocusDirective,selectors:[["","ixComponentGridFocus",""]]});let ComponentGridFocusDirective3=_ComponentGridFocusDirective;return ComponentGridFocusDirective3})();function PeriodBottomSheetComponent_For_4_Template(rf,ctx){if(rf&1){let _r1=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"mat-list-item",11),\u0275\u0275listener("click",function(){let range_r2=\u0275\u0275restoreView(_r1).$implicit,ctx_r2=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r2.applyRange(range_r2.code))}),\u0275\u0275text(1),\u0275\u0275pipe(2,"translate"),\u0275\u0275elementEnd()}if(rf&2){let range_r2=ctx.$implicit;\u0275\u0275advance(),\u0275\u0275textInterpolate1(" ",\u0275\u0275pipeBind2(2,1,range_r2.translateKey,range_r2.translateParams)," ")}}function PeriodBottomSheetComponent_Conditional_12_Template(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"mat-error",5),\u0275\u0275text(1,"FROM_MUST_BE_BEFORE_TO"),\u0275\u0275elementEnd())}function PeriodBottomSheetComponent_Conditional_13_Template(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"mat-error",5),\u0275\u0275text(1,"__MESSAGE__.MAX_DATE"),\u0275\u0275elementEnd())}function PeriodBottomSheetComponent_Conditional_18_Template(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"mat-error",5),\u0275\u0275text(1,"TO_MUST_BE_AFTER_FROM"),\u0275\u0275elementEnd())}function PeriodBottomSheetComponent_Conditional_19_Template(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"mat-error",5),\u0275\u0275text(1,"__MESSAGE__.MAX_DATE"),\u0275\u0275elementEnd())}var PeriodBottomSheetComponent=(()=>{let _PeriodBottomSheetComponent=class _PeriodBottomSheetComponent{constructor(){this.data=inject(MAT_BOTTOM_SHEET_DATA),this.ref=inject(MatBottomSheetRef),this.ranges=TIME_RANGE_OPTIONS,this.maxDate=DateTime.now().endOf("day").toISO()}ngOnInit(){let timeRange=toTimeRange(this.data.periodSpec);this.form=new FormGroup({from:new FormControl(DateTime.fromMillis(timeRange.from).set({millisecond:0}).toISO({includeOffset:!1,suppressMilliseconds:!0}),{validators:[Validators.required,DateTimeValidators.maxDate(this.maxDate)],nonNullable:!0}),to:new FormControl(DateTime.fromMillis(timeRange.to).set({millisecond:0}).toISO({includeOffset:!1,suppressMilliseconds:!0}),{validators:[Validators.required,DateTimeValidators.maxDate(this.maxDate)],nonNullable:!0})},{validators:DateTimeValidators.fromToInverted()})}applyRange(range2){this.ref.dismiss(range2)}cancel(){this.ref.dismiss()}submit(){let periodSpec={from:DateTime.fromISO(this.form.controls.from.value).toMillis(),to:DateTime.fromISO(this.form.controls.to.value).toMillis()};this.ref.dismiss(periodSpec)}};_PeriodBottomSheetComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_PeriodBottomSheetComponent)},_PeriodBottomSheetComponent.\u0275cmp=\u0275\u0275defineComponent({type:_PeriodBottomSheetComponent,selectors:[["ix-period-bottom-sheet"]],decls:27,vars:10,consts:[["fxLayout","column"],[1,"ranges"],["autocomplete","off",3,"ngSubmit","formGroup"],["fxLayout","row","fxLayoutGap","8px"],["fxFlex","grow"],["translate",""],["type","datetime-local","matInput","","formControlName","from","step","1",3,"max"],["type","datetime-local","matInput","","formControlName","to","step","1",3,"min","max"],["fxLayout","row","fxLayoutAlign","end center",1,"actions"],["type","button","mat-button","",3,"click"],["type","submit","mat-button","","color","primary",3,"disabled"],[3,"click"]],template:function(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"mat-action-list"),\u0275\u0275repeaterCreate(3,PeriodBottomSheetComponent_For_4_Template,3,4,"mat-list-item",null,\u0275\u0275repeaterTrackByIdentity),\u0275\u0275elementEnd()(),\u0275\u0275element(5,"mat-divider"),\u0275\u0275elementStart(6,"form",2),\u0275\u0275listener("ngSubmit",function(){return ctx.submit()}),\u0275\u0275elementStart(7,"fieldset",3)(8,"mat-form-field",4)(9,"mat-label",5),\u0275\u0275text(10,"FROM__DATE"),\u0275\u0275elementEnd(),\u0275\u0275element(11,"input",6),\u0275\u0275template(12,PeriodBottomSheetComponent_Conditional_12_Template,2,0,"mat-error",5)(13,PeriodBottomSheetComponent_Conditional_13_Template,2,0,"mat-error",5),\u0275\u0275elementEnd(),\u0275\u0275elementStart(14,"mat-form-field",4)(15,"mat-label",5),\u0275\u0275text(16,"TO__DATE"),\u0275\u0275elementEnd(),\u0275\u0275element(17,"input",7),\u0275\u0275template(18,PeriodBottomSheetComponent_Conditional_18_Template,2,0,"mat-error",5)(19,PeriodBottomSheetComponent_Conditional_19_Template,2,0,"mat-error",5),\u0275\u0275elementEnd()(),\u0275\u0275elementStart(20,"div",8)(21,"button",9),\u0275\u0275listener("click",function(){return ctx.cancel()}),\u0275\u0275elementStart(22,"span",5),\u0275\u0275text(23,"CANCEL"),\u0275\u0275elementEnd()(),\u0275\u0275elementStart(24,"button",10)(25,"span",5),\u0275\u0275text(26,"APPLY"),\u0275\u0275elementEnd()()()()()),rf&2){let tmp_2_0,tmp_6_0;\u0275\u0275advance(3),\u0275\u0275repeater(ctx.ranges),\u0275\u0275advance(3),\u0275\u0275property("formGroup",ctx.form),\u0275\u0275advance(5),\u0275\u0275property("max",(tmp_2_0=ctx.form.get("to"))==null?null:tmp_2_0.value)("max",ctx.maxDate),\u0275\u0275advance(),\u0275\u0275conditional(ctx.form.controls.from.hasError("inverted")?12:-1),\u0275\u0275advance(),\u0275\u0275conditional(ctx.form.controls.from.hasError("maxDate")?13:-1),\u0275\u0275advance(4),\u0275\u0275property("min",(tmp_6_0=ctx.form.get("from"))==null?null:tmp_6_0.value)("max",ctx.maxDate),\u0275\u0275advance(),\u0275\u0275conditional(ctx.form.controls.to.hasError("inverted")?18:-1),\u0275\u0275advance(),\u0275\u0275conditional(ctx.form.controls.to.hasError("maxDate")?19:-1),\u0275\u0275advance(5),\u0275\u0275property("disabled",ctx.form.invalid)}},dependencies:[FlexModule,DefaultLayoutDirective,DefaultLayoutGapDirective,DefaultLayoutAlignDirective,DefaultFlexDirective,MatButtonModule,MatButton,MatDividerModule,MatDivider,MatFormFieldModule,MatFormField,MatLabel,MatError,MatInputModule,MatInput,MatListModule,MatActionList,MatListItem,ReactiveFormsModule,\u0275NgNoValidate,DefaultValueAccessor,NgControlStatus,NgControlStatusGroup,FormGroupDirective,FormControlName,TranslateModule,TranslatePipe,TranslateDirective],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] .ranges[_ngcontent-%COMP%]{max-height:50vh;overflow-y:auto}[_nghost-%COMP%] form[_ngcontent-%COMP%]{display:block;padding-top:16px}[_nghost-%COMP%] form[_ngcontent-%COMP%] fieldset[_ngcontent-%COMP%]{margin:0;padding:0;border:none}[_nghost-%COMP%] form[_ngcontent-%COMP%] fieldset[_ngcontent-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%]{max-width:calc(50vw - 24px)!important}[_nghost-%COMP%] form[_ngcontent-%COMP%] fieldset[_ngcontent-%COMP%] input[type=datetime-local][_ngcontent-%COMP%]::-webkit-inner-spin-button, [_nghost-%COMP%] form[_ngcontent-%COMP%] fieldset[_ngcontent-%COMP%] input[type=datetime-local][_ngcontent-%COMP%]::-webkit-calendar-picker-indicator{appearance:none;display:none}[_nghost-%COMP%] .actions[_ngcontent-%COMP%]{padding-bottom:8px}[_nghost-%COMP%] .actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-left:8px}"]});let PeriodBottomSheetComponent2=_PeriodBottomSheetComponent;return PeriodBottomSheetComponent2})();var PERIOD_PANEL_DATA=new InjectionToken("device-board-header-period-panel-data");var import_dayjs4=__toESM(require_dayjs_min()),import_utc=__toESM(require_utc()),import_timezone=__toESM(require_timezone());var PeriodPanelRef=class{constructor(overlayRef){this.overlayRef=overlayRef,this._afterClosed=new Subject}afterClosed(){return this._afterClosed.asObservable()}close(data){this.overlayRef.dispose(),data&&(this._afterClosed.next(data),this._afterClosed.complete())}};var _c020=a0=>({active:a0});function PeriodPanelComponent_Conditional_21_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"button",6)(1,"div",4)(2,"mat-icon"),\u0275\u0275text(3,"public"),\u0275\u0275elementEnd(),\u0275\u0275elementStart(4,"span"),\u0275\u0275text(5),\u0275\u0275pipe(6,"translate"),\u0275\u0275elementEnd(),\u0275\u0275elementStart(7,"span"),\u0275\u0275text(8,":\xA0"),\u0275\u0275elementEnd(),\u0275\u0275elementStart(9,"span"),\u0275\u0275text(10),\u0275\u0275elementEnd(),\u0275\u0275elementStart(11,"mat-icon"),\u0275\u0275text(12,"arrow_drop_down"),\u0275\u0275elementEnd()()()),rf&2){let ctx_r1=\u0275\u0275nextContext(),timeZoneMenu_r3=\u0275\u0275reference(4);\u0275\u0275property("matMenuTriggerFor",timeZoneMenu_r3),\u0275\u0275advance(5),\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(6,3,ctx_r1.timeZoneSpec==="device"?"DEVICE_TIME_ZONE":"MY_TIME_ZONE")),\u0275\u0275advance(5),\u0275\u0275textInterpolate(ctx_r1.timeZoneSpec==="device"?ctx_r1.deviceTimeZone:ctx_r1.myTimeZone)}}function PeriodPanelComponent_Conditional_32_Template(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"mat-error",5),\u0275\u0275text(1,"FROM_MUST_BE_BEFORE_TO"),\u0275\u0275elementEnd())}function PeriodPanelComponent_Conditional_33_Template(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"mat-error",5),\u0275\u0275text(1,"__MESSAGE__.MAX_DATE"),\u0275\u0275elementEnd())}function PeriodPanelComponent_Conditional_34_Template(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"mat-error",5),\u0275\u0275text(1,"__MESSAGE__.INVALID_DATE_AND_TIME"),\u0275\u0275elementEnd())}function PeriodPanelComponent_Conditional_35_Template(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"mat-error",5),\u0275\u0275text(1,"__MESSAGE__.INVALID_DATE_AND_TIME"),\u0275\u0275elementEnd())}function PeriodPanelComponent_Conditional_41_Template(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"mat-error",5),\u0275\u0275text(1,"TO_MUST_BE_AFTER_FROM"),\u0275\u0275elementEnd())}function PeriodPanelComponent_Conditional_42_Template(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"mat-error",5),\u0275\u0275text(1,"__MESSAGE__.MAX_DATE"),\u0275\u0275elementEnd())}function PeriodPanelComponent_Conditional_43_Template(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"mat-error",5),\u0275\u0275text(1,"__MESSAGE__.INVALID_DATE_AND_TIME"),\u0275\u0275elementEnd())}function PeriodPanelComponent_Conditional_44_Template(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"mat-error",5),\u0275\u0275text(1,"__MESSAGE__.INVALID_DATE_AND_TIME"),\u0275\u0275elementEnd())}function PeriodPanelComponent_For_55_Template(rf,ctx){if(rf&1){let _r4=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"mat-list-item",20),\u0275\u0275listener("click",function(){let range_r5=\u0275\u0275restoreView(_r4).$implicit,ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.applyRange(range_r5.code))}),\u0275\u0275text(1),\u0275\u0275pipe(2,"translate"),\u0275\u0275elementEnd()}if(rf&2){let range_r5=ctx.$implicit;\u0275\u0275advance(),\u0275\u0275textInterpolate1(" ",\u0275\u0275pipeBind2(2,1,range_r5.translateKey,range_r5.translateParams)," ")}}import_dayjs4.default.extend(import_utc.default);import_dayjs4.default.extend(import_timezone.default);var PeriodPanelComponent=(()=>{let _PeriodPanelComponent=class _PeriodPanelComponent{constructor(data,formBuilder,localizationService,ref){this.data=data,this.formBuilder=formBuilder,this.localizationService=localizationService,this.ref=ref,this.browserTimeZone=Intl.DateTimeFormat().resolvedOptions().timeZone,this.locale={format:"YYYY-MM-DDTHH:mm:ss.SSSZ",displayFormat:"MM/DD/YYYY",direction:"ltr",weekLabel:"W",daysOfWeek:[Info.weekdays("short")[6],...Info.weekdays("short").slice(0,-1)],monthNames:Info.months("short"),firstDay:1},this.maxISO=DateTime.now().endOf("day").toISO(),this.ranges=TIME_RANGE_OPTIONS,this.myTimeZone=this.localizationService.getTimeZone()}ngOnInit(){this.deviceTimeZone=this.data.deviceTimeZone||null,this.timeZone=Settings.defaultZone.name,this.timeZoneSpec=this.data.timeZoneSpec||"user",this.processRange()}applyRange(range2){this.ref.close(range2)}cancel(){this.ref.close()}choosedDate(selection){this.form.setValue({from:DateTime.fromISO(selection.startDate.toISOString(),{zone:this.browserTimeZone}).setZone(this.timeZone,{keepLocalTime:!0}).toFormat("F"),to:DateTime.fromISO(selection.endDate.toISOString(),{zone:this.browserTimeZone}).setZone(this.timeZone,{keepLocalTime:!0}).toFormat("F")})}submit(){let periodSpec={from:DateTime.fromFormat(this.form.value.from,"F").toMillis(),to:DateTime.fromFormat(this.form.value.to,"F").toMillis()};this.ref.close(periodSpec)}setTimeZoneSpec(timeZoneSpec){this.timeZoneSpec=timeZoneSpec,this.timeZone=timeZoneSpec==="device"&&this.deviceTimeZone?this.deviceTimeZone:this.myTimeZone,this.processRange(),this.data.timeZoneSpecSelected?.emit({name:this.timeZone,spec:timeZoneSpec})}processRange(){let timeRange=toTimeRange(this.data.periodSpec||"yesterday");if(this.selected={startDate:(0,import_dayjs4.default)(DateTime.fromMillis(timeRange.from,{zone:this.timeZone}).setZone(this.browserTimeZone,{keepLocalTime:!0}).toMillis()),endDate:(0,import_dayjs4.default)(DateTime.fromMillis(timeRange.to,{zone:this.timeZone}).setZone(this.browserTimeZone,{keepLocalTime:!0}).toMillis())},this.form)this.form.setValue({from:DateTime.fromMillis(timeRange.from).toFormat("F"),to:DateTime.fromMillis(timeRange.to).toFormat("F")});else{let formatter=value=>DateTime.fromFormat(value,"F");this.form=this.formBuilder.group({from:[DateTime.fromMillis(timeRange.from).toFormat("F"),[Validators.required,DateTimeValidators.format(formatter),DateTimeValidators.maxDate(this.maxISO,formatter)]],to:[DateTime.fromMillis(timeRange.to).toFormat("F"),[Validators.required,DateTimeValidators.format(formatter),DateTimeValidators.maxDate(this.maxISO,formatter)]]},{validators:DateTimeValidators.fromToInverted(formatter)})}}onEscapeHandler(event2){event2.stopPropagation(),event2.preventDefault(),this.ref.close()}};_PeriodPanelComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_PeriodPanelComponent)(\u0275\u0275directiveInject(PERIOD_PANEL_DATA),\u0275\u0275directiveInject(FormBuilder),\u0275\u0275directiveInject(LocalizationService),\u0275\u0275directiveInject(PeriodPanelRef))},_PeriodPanelComponent.\u0275cmp=\u0275\u0275defineComponent({type:_PeriodPanelComponent,selectors:[["ix-period-panel"]],hostBindings:function(rf,ctx){rf&1&&\u0275\u0275listener("keydown.escape",function($event){return ctx.onEscapeHandler($event)},!1,\u0275\u0275resolveDocument)},decls:56,vars:31,consts:[["timeZoneMenu","matMenu"],["fxFlex","","translate",""],[1,"dense"],["mat-menu-item","",3,"click","ngClass"],["fxLayout","row","fxLayoutAlign","start center"],["translate",""],["mat-button","",1,"time-zone-select",3,"matMenuTriggerFor"],["fxLayout","row"],["fxFlex","",1,"picker"],[3,"choosedDate","autoApply","linkedCalendars","maxDate","locale","startDate","endDate"],["autocomplete","off",3,"ngSubmit","formGroup"],["fxlayout","row","fxLayoutGap","16px"],["fxFlex","grow"],["matInput","","formControlName","from",3,"placeholder"],["matInput","","formControlName","to",3,"placeholder"],["fxLayout","row","fxLayoutAlign","end center",1,"actions"],["type","button","mat-stroked-button","","color","primary",3,"click"],["type","submit","mat-flat-button","","color","primary",3,"disabled"],[1,"ranges"],["dense",""],[3,"click"]],template:function(rf,ctx){if(rf&1){let _r1=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"mat-toolbar")(1,"span",1),\u0275\u0275text(2,"TIME_RANGE_SELECTION"),\u0275\u0275elementEnd(),\u0275\u0275elementStart(3,"mat-menu",2,0)(5,"button",3),\u0275\u0275listener("click",function(){return \u0275\u0275restoreView(_r1),\u0275\u0275resetView(ctx.setTimeZoneSpec("user"))}),\u0275\u0275elementStart(6,"div",4)(7,"span",5),\u0275\u0275text(8,"MY_TIME_ZONE"),\u0275\u0275elementEnd(),\u0275\u0275elementStart(9,"span"),\u0275\u0275text(10,":\xA0"),\u0275\u0275elementEnd(),\u0275\u0275elementStart(11,"span"),\u0275\u0275text(12),\u0275\u0275elementEnd()()(),\u0275\u0275elementStart(13,"button",3),\u0275\u0275listener("click",function(){return \u0275\u0275restoreView(_r1),\u0275\u0275resetView(ctx.setTimeZoneSpec("device"))}),\u0275\u0275elementStart(14,"div",4)(15,"span",5),\u0275\u0275text(16,"DEVICE_TIME_ZONE"),\u0275\u0275elementEnd(),\u0275\u0275elementStart(17,"span"),\u0275\u0275text(18,":\xA0"),\u0275\u0275elementEnd(),\u0275\u0275elementStart(19,"span"),\u0275\u0275text(20),\u0275\u0275elementEnd()()()(),\u0275\u0275template(21,PeriodPanelComponent_Conditional_21_Template,13,5,"button",6),\u0275\u0275elementEnd(),\u0275\u0275elementStart(22,"div",7)(23,"div",8)(24,"ngx-daterangepicker-material",9),\u0275\u0275listener("choosedDate",function($event){return \u0275\u0275restoreView(_r1),\u0275\u0275resetView(ctx.choosedDate($event))}),\u0275\u0275elementEnd(),\u0275\u0275elementStart(25,"form",10),\u0275\u0275listener("ngSubmit",function(){return \u0275\u0275restoreView(_r1),\u0275\u0275resetView(ctx.submit())}),\u0275\u0275elementStart(26,"fieldset",11)(27,"mat-form-field",12)(28,"mat-label",5),\u0275\u0275text(29,"FROM__DATE"),\u0275\u0275elementEnd(),\u0275\u0275element(30,"input",13),\u0275\u0275pipe(31,"translate"),\u0275\u0275template(32,PeriodPanelComponent_Conditional_32_Template,2,0,"mat-error",5)(33,PeriodPanelComponent_Conditional_33_Template,2,0,"mat-error",5)(34,PeriodPanelComponent_Conditional_34_Template,2,0,"mat-error",5)(35,PeriodPanelComponent_Conditional_35_Template,2,0,"mat-error",5),\u0275\u0275elementEnd(),\u0275\u0275elementStart(36,"mat-form-field",12)(37,"mat-label",5),\u0275\u0275text(38,"TO__DATE"),\u0275\u0275elementEnd(),\u0275\u0275element(39,"input",14),\u0275\u0275pipe(40,"translate"),\u0275\u0275template(41,PeriodPanelComponent_Conditional_41_Template,2,0,"mat-error",5)(42,PeriodPanelComponent_Conditional_42_Template,2,0,"mat-error",5)(43,PeriodPanelComponent_Conditional_43_Template,2,0,"mat-error",5)(44,PeriodPanelComponent_Conditional_44_Template,2,0,"mat-error",5),\u0275\u0275elementEnd()(),\u0275\u0275elementStart(45,"div",15)(46,"button",16),\u0275\u0275listener("click",function(){return \u0275\u0275restoreView(_r1),\u0275\u0275resetView(ctx.cancel())}),\u0275\u0275elementStart(47,"span",5),\u0275\u0275text(48,"CANCEL"),\u0275\u0275elementEnd()(),\u0275\u0275elementStart(49,"button",17)(50,"span",5),\u0275\u0275text(51,"APPLY"),\u0275\u0275elementEnd()()()()(),\u0275\u0275elementStart(52,"div",18)(53,"mat-action-list",19),\u0275\u0275repeaterCreate(54,PeriodPanelComponent_For_55_Template,3,4,"mat-list-item",null,\u0275\u0275repeaterTrackByIdentity),\u0275\u0275elementEnd()()()}rf&2&&(\u0275\u0275advance(5),\u0275\u0275property("ngClass",\u0275\u0275pureFunction1(27,_c020,ctx.timeZoneSpec==="user")),\u0275\u0275advance(7),\u0275\u0275textInterpolate(ctx.myTimeZone),\u0275\u0275advance(),\u0275\u0275property("ngClass",\u0275\u0275pureFunction1(29,_c020,ctx.timeZoneSpec==="device")),\u0275\u0275advance(7),\u0275\u0275textInterpolate(ctx.deviceTimeZone),\u0275\u0275advance(),\u0275\u0275conditional(ctx.deviceTimeZone&&ctx.deviceTimeZone!==ctx.myTimeZone?21:-1),\u0275\u0275advance(3),\u0275\u0275property("autoApply",!0)("linkedCalendars",!0)("maxDate",ctx.maxISO)("locale",ctx.locale)("startDate",ctx.selected.startDate)("endDate",ctx.selected.endDate||null),\u0275\u0275advance(),\u0275\u0275property("formGroup",ctx.form),\u0275\u0275advance(5),\u0275\u0275propertyInterpolate("placeholder",\u0275\u0275pipeBind1(31,23,"FROM__DATE")),\u0275\u0275advance(2),\u0275\u0275conditional(ctx.form.controls.from.hasError("inverted")?32:-1),\u0275\u0275advance(),\u0275\u0275conditional(ctx.form.controls.from.hasError("maxDate")?33:-1),\u0275\u0275advance(),\u0275\u0275conditional(ctx.form.controls.from.hasError("unitOutOfRange")?34:-1),\u0275\u0275advance(),\u0275\u0275conditional(ctx.form.controls.from.hasError("unparsable")?35:-1),\u0275\u0275advance(4),\u0275\u0275propertyInterpolate("placeholder",\u0275\u0275pipeBind1(40,25,"TO__DATE")),\u0275\u0275advance(2),\u0275\u0275conditional(ctx.form.controls.to.hasError("inverted")?41:-1),\u0275\u0275advance(),\u0275\u0275conditional(ctx.form.controls.to.hasError("maxDate")?42:-1),\u0275\u0275advance(),\u0275\u0275conditional(ctx.form.controls.to.hasError("unitOutOfRange")?43:-1),\u0275\u0275advance(),\u0275\u0275conditional(ctx.form.controls.to.hasError("unparsable")?44:-1),\u0275\u0275advance(5),\u0275\u0275property("disabled",ctx.form.invalid),\u0275\u0275advance(5),\u0275\u0275repeater(ctx.ranges))},dependencies:[FlexModule,DefaultLayoutDirective,DefaultLayoutGapDirective,DefaultLayoutAlignDirective,DefaultFlexDirective,MatButtonModule,MatButton,MatFormFieldModule,MatFormField,MatLabel,MatError,MatIconModule,MatIcon,MatInputModule,MatInput,MatListModule,MatActionList,MatListItem,MatMenuModule,MatMenu,MatMenuItem,MatMenuTrigger,MatToolbarModule,MatToolbar,NgClass,NgxDaterangepickerMd,DaterangepickerComponent,ReactiveFormsModule,\u0275NgNoValidate,DefaultValueAccessor,NgControlStatus,NgControlStatusGroup,FormGroupDirective,FormControlName,TranslateModule,TranslatePipe,TranslateDirective],styles:['@keyframes _ngcontent-%COMP%_zoom-in{0%{transform:scale(.75);opacity:.9}to{transform:scale(1);opacity:1}}[_nghost-%COMP%]{min-width:754px;max-height:514px;background-color:var(--mat-sys-surface-container);animation:_ngcontent-%COMP%_zoom-in .14s cubic-bezier(0,0,.2,1) both;border-radius:4px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;transform-origin:top right}[_nghost-%COMP%] .mat-toolbar[_ngcontent-%COMP%]{border-bottom:1px solid var(--mat-sys-outline-variant)}[_nghost-%COMP%] .mat-toolbar[_ngcontent-%COMP%]{--mat-toolbar-container-background-color: var(--mat-sys-surface-container)}[_nghost-%COMP%] .mat-toolbar[_ngcontent-%COMP%]{--mat-toolbar-title-text-size: 14px}[_nghost-%COMP%] .time-zone-select[_ngcontent-%COMP%]{padding:0 4px 0 8px;font-size:12px;color:color-mix(in srgb,transparent,var(--mat-sys-on-surface) 67%)}[_nghost-%COMP%] .time-zone-select[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]:first-child{height:20px;width:20px;margin-right:4px;font-size:20px}[_nghost-%COMP%] .picker[_ngcontent-%COMP%] .md-drppicker{margin-top:0;background-color:var(--mat-sys-surface-container);box-shadow:none;border-radius:0}[_nghost-%COMP%] .picker[_ngcontent-%COMP%] .md-drppicker .calendar-table{background-color:var(--mat-sys-surface-container);border-color:var(--mat-sys-surface-container)}[_nghost-%COMP%] .picker[_ngcontent-%COMP%] .md-drppicker td.available:hover, [_nghost-%COMP%] .picker[_ngcontent-%COMP%] .md-drppicker th.available:hover{background-color:var(--mat-sys-surface-container-highest)}[_nghost-%COMP%] .picker[_ngcontent-%COMP%] .md-drppicker td{transition-property:none;opacity:1}[_nghost-%COMP%] .picker[_ngcontent-%COMP%] .md-drppicker td.off{color:color-mix(in srgb,transparent,currentcolor 16%)}[_nghost-%COMP%] .picker[_ngcontent-%COMP%] .md-drppicker td.off.active:hover{background-color:#eee;border-radius:50%}[_nghost-%COMP%] .picker[_ngcontent-%COMP%] .md-drppicker td.off, [_nghost-%COMP%] .picker[_ngcontent-%COMP%] .md-drppicker td.off.in-range, [_nghost-%COMP%] .picker[_ngcontent-%COMP%] .md-drppicker td.off.start-date, [_nghost-%COMP%] .picker[_ngcontent-%COMP%] .md-drppicker td.off.end-date{background-color:var(--mat-sys-surface-container)}[_nghost-%COMP%] .picker[_ngcontent-%COMP%] .md-drppicker tbody tr td{height:32px}[_nghost-%COMP%] .picker[_ngcontent-%COMP%] .md-drppicker th.month{font-weight:500;color:color-mix(in srgb,transparent,currentcolor 77%)}[_nghost-%COMP%] .picker[_ngcontent-%COMP%] .md-drppicker th.next, [_nghost-%COMP%] .picker[_ngcontent-%COMP%] .md-drppicker th.prev{min-width:28px}[_nghost-%COMP%] .picker[_ngcontent-%COMP%] .md-drppicker td.available.prev, [_nghost-%COMP%] .picker[_ngcontent-%COMP%] .md-drppicker th.available.prev, [_nghost-%COMP%] .picker[_ngcontent-%COMP%] .md-drppicker td.available.next, [_nghost-%COMP%] .picker[_ngcontent-%COMP%] .md-drppicker th.available.next{background-image:none}[_nghost-%COMP%] .picker[_ngcontent-%COMP%] .md-drppicker td.available.prev:after, [_nghost-%COMP%] .picker[_ngcontent-%COMP%] .md-drppicker th.available.prev:after, [_nghost-%COMP%] .picker[_ngcontent-%COMP%] .md-drppicker td.available.next:after, [_nghost-%COMP%] .picker[_ngcontent-%COMP%] .md-drppicker th.available.next:after{content:"";display:block;height:2em;width:2em;background-color:var(--mat-sys-on-surface);background-image:none;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:.5em;mask-size:.5em;-webkit-mask-position:center;mask-position:center}[_nghost-%COMP%] .picker[_ngcontent-%COMP%] .md-drppicker td.available.prev:after, [_nghost-%COMP%] .picker[_ngcontent-%COMP%] .md-drppicker th.available.prev:after{-webkit-mask-image:url(data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB2aWV3Qm94PSIwIDAgMy43IDYiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDMuNyA2IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxnPg0KCTxwYXRoIGQ9Ik0zLjcsMC43TDEuNCwzbDIuMywyLjNMMyw2TDAsM2wzLTNMMy43LDAuN3oiLz4NCjwvZz4NCjwvc3ZnPg0K);mask-image:url(data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB2aWV3Qm94PSIwIDAgMy43IDYiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDMuNyA2IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxnPg0KCTxwYXRoIGQ9Ik0zLjcsMC43TDEuNCwzbDIuMywyLjNMMyw2TDAsM2wzLTNMMy43LDAuN3oiLz4NCjwvZz4NCjwvc3ZnPg0K)}[_nghost-%COMP%] .picker[_ngcontent-%COMP%] .md-drppicker td.available.next:after, [_nghost-%COMP%] .picker[_ngcontent-%COMP%] .md-drppicker th.available.next:after{-webkit-mask-image:url(data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB2aWV3Qm94PSIwIDAgMy43IDYiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDMuNyA2IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxnPg0KCTxwYXRoIGQ9Ik0zLjcsMC43TDEuNCwzbDIuMywyLjNMMyw2TDAsM2wzLTNMMy43LDAuN3oiLz4NCjwvZz4NCjwvc3ZnPg0K);mask-image:url(data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB2aWV3Qm94PSIwIDAgMy43IDYiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDMuNyA2IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxnPg0KCTxwYXRoIGQ9Ik0zLjcsMC43TDEuNCwzbDIuMywyLjNMMyw2TDAsM2wzLTNMMy43LDAuN3oiLz4NCjwvZz4NCjwvc3ZnPg0K)}[_nghost-%COMP%] .picker[_ngcontent-%COMP%] .md-drppicker tr.week-days th{font-size:11px;font-weight:400;color:color-mix(in srgb,transparent,currentcolor 38%)}[_nghost-%COMP%] .picker[_ngcontent-%COMP%] .md-drppicker td.in-range{background-color:color-mix(in srgb,transparent,var(--mat-sys-primary) 12%);color:color-mix(in srgb,transparent,currentcolor 87%)}[_nghost-%COMP%] .picker[_ngcontent-%COMP%] .md-drppicker td.today:not(.active,.in-range,.off){border:1px solid color-mix(in srgb,transparent,currentcolor 38%)}[_nghost-%COMP%] .picker[_ngcontent-%COMP%] .md-drppicker td.active:not(.off), [_nghost-%COMP%] .picker[_ngcontent-%COMP%] .md-drppicker td.active:not(.off):hover{background-color:var(--mat-sys-primary);color:var(--mat-sys-on-primary);border-radius:50%;opacity:1;transition-property:border-radius}[_nghost-%COMP%] .picker[_ngcontent-%COMP%] .md-drppicker td.active:not(.off).start-date:not(.end-date), [_nghost-%COMP%] .picker[_ngcontent-%COMP%] .md-drppicker td.active:not(.off):hover.start-date:not(.end-date){border-top-right-radius:0;border-bottom-right-radius:0}[_nghost-%COMP%] .picker[_ngcontent-%COMP%] .md-drppicker td.active:not(.off).end-date:not(.start-date), [_nghost-%COMP%] .picker[_ngcontent-%COMP%] .md-drppicker td.active:not(.off):hover.end-date:not(.start-date){border-top-left-radius:0;border-bottom-left-radius:0}[_nghost-%COMP%] .ranges[_ngcontent-%COMP%]{border-left:1px solid var(--mat-sys-outline-variant);height:449px;width:200px;overflow-y:auto}[_nghost-%COMP%] .ranges[_ngcontent-%COMP%] .mat-mdc-action-list[dense][_ngcontent-%COMP%]{padding:4px 0}[_nghost-%COMP%] .ranges[_ngcontent-%COMP%] .mat-mdc-action-list[dense][_ngcontent-%COMP%] .mat-mdc-list-item[_ngcontent-%COMP%]{padding-top:6px;padding-bottom:6px}[_nghost-%COMP%] .ranges[_ngcontent-%COMP%] .mat-mdc-action-list[dense][_ngcontent-%COMP%] .mat-mdc-list-item[_ngcontent-%COMP%]{--mdc-list-list-item-one-line-container-height: auto}[_nghost-%COMP%] .ranges[_ngcontent-%COMP%] .mat-mdc-action-list[dense][_ngcontent-%COMP%] .mat-mdc-list-item[_ngcontent-%COMP%]{--mdc-list-list-item-label-text-line-height: 14px}[_nghost-%COMP%] .ranges[_ngcontent-%COMP%] .mat-mdc-action-list[dense][_ngcontent-%COMP%] .mat-mdc-list-item[_ngcontent-%COMP%]{--mdc-list-list-item-label-text-size: 12px}[_nghost-%COMP%] .ranges[_ngcontent-%COMP%] .mat-mdc-action-list[dense][_ngcontent-%COMP%] .mat-mdc-list-item[_ngcontent-%COMP%] .mdc-list-item__primary-text{white-space:normal}[_nghost-%COMP%] fieldset[_ngcontent-%COMP%]{margin:0;padding:0 16px;border:none}[_nghost-%COMP%] .actions[_ngcontent-%COMP%]{padding:12px 16px}[_nghost-%COMP%] .actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-left:8px}']});let PeriodPanelComponent2=_PeriodPanelComponent;return PeriodPanelComponent2})();var DEFAULT_CONNECTED_POSITIONS=[{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top",offsetX:0,offsetY:0}],PeriodPanelService=(()=>{let _PeriodPanelService=class _PeriodPanelService{constructor(injector,overlay){this.injector=injector,this.overlay=overlay}show(origin,data,positions){let overlayRef=this.createOverlay(origin,positions),instance=new PeriodPanelRef(overlayRef);return this.attachSnackBarContainer(overlayRef,instance,data,this.getTransformOrigin(positions)),instance}getTransformOrigin(positions){if(!positions)return;let positionOriginX=positions[0].originX,originX=positionOriginX==="start"?"left":positionOriginX==="end"?"right":"center",originY=positions[0].originY;return`${originX} ${originY}`}createOverlay(origin,positions){let overlayRef=this.overlay.create(this.getOverlayConfig(origin,positions));return overlayRef.backdropClick().subscribe(()=>overlayRef.dispose()),overlayRef}createInjector(snackBarRef,data){let injectionTokens=new WeakMap;return injectionTokens.set(PeriodPanelRef,snackBarRef),injectionTokens.set(PERIOD_PANEL_DATA,data),new PortalInjector(this.injector,injectionTokens)}attachSnackBarContainer(overlayRef,snackBarRef,data,transformOrigin){let injector=this.createInjector(snackBarRef,data),containerPortal=new ComponentPortal(PeriodPanelComponent,null,injector),containerRef=overlayRef.attach(containerPortal);if(transformOrigin){let panelElement=overlayRef.overlayElement.firstElementChild;panelElement.style.transformOrigin=transformOrigin}return containerRef.instance}getOverlayConfig(origin,positions){let positionStrategy=this.overlay.position().flexibleConnectedTo(origin).withPositions(positions||DEFAULT_CONNECTED_POSITIONS);return new OverlayConfig({hasBackdrop:!0,backdropClass:"overlay-transparent-backdrop",panelClass:"ix-period-panel-container",scrollStrategy:this.overlay.scrollStrategies.noop(),positionStrategy})}};_PeriodPanelService.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_PeriodPanelService)(\u0275\u0275inject(Injector),\u0275\u0275inject(Overlay))},_PeriodPanelService.\u0275prov=\u0275\u0275defineInjectable({token:_PeriodPanelService,factory:_PeriodPanelService.\u0275fac,providedIn:"root"});let PeriodPanelService2=_PeriodPanelService;return PeriodPanelService2})();function PeriodControlsComponent_Conditional_0_Template(rf,ctx){if(rf&1){let _r1=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"button",2),\u0275\u0275pipe(1,"translate"),\u0275\u0275listener("click",function(){\u0275\u0275restoreView(_r1);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.handleZoomOutButtonClick())}),\u0275\u0275elementStart(2,"mat-icon"),\u0275\u0275text(3,"zoom_out"),\u0275\u0275elementEnd()()}rf&2&&\u0275\u0275property("matTooltip",\u0275\u0275pipeBind1(1,1,"ZOOM_OUT"))}var PeriodControlsComponent=(()=>{let _PeriodControlsComponent=class _PeriodControlsComponent{get gtSm(){return this.bpObserver.isMatched("(min-width: 960px)")}constructor(bpObserver,bottomSheet,periodPanel,translate){this.bpObserver=bpObserver,this.bottomSheet=bottomSheet,this.periodPanel=periodPanel,this.translate=translate,this.periodSpecSelected=new EventEmitter,this.timeZoneSpecSelected=new EventEmitter}ngOnChanges(changes){changes.periodSpecs&&(this.periodButtonLabel=this.getPeriodButtonLabel(),this.zoomOutIsVisible=this.getZoomOutIsVisible())}handleZoomOutButtonClick(){this.zoomOut()}handlePeriodButtonClick(event2){return this.gtSm?this.openPeriodPanel(event2):this.openPeriodBottomSheet()}openPeriodBottomSheet(){this.periodSpecs&&this.bottomSheet.open(PeriodBottomSheetComponent,{data:{periodSpec:this.periodSpecs.active}}).afterDismissed().subscribe(periodSpec=>{periodSpec&&(this.periodSpecs=__spreadProps(__spreadValues({},this.periodSpecs),{selected:periodSpec}),this.periodSpecSelected.emit(periodSpec))})}openPeriodPanel(event2){this.periodSpecs&&this.periodPanel.show(event2.currentTarget,{periodSpec:this.periodSpecs.active||null,deviceTimeZone:this.deviceTimeZone,timeZoneSpec:this.timeZoneSpec,timeZoneSpecSelected:this.timeZoneSpecSelected}).afterClosed().subscribe(periodSpec=>{periodSpec&&(this.periodSpecs=__spreadProps(__spreadValues({},this.periodSpecs),{selected:periodSpec}),this.periodSpecSelected.emit(periodSpec))})}getPeriodButtonLabel(){return this.periodSpecs?.active?typeof this.periodSpecs.active=="string"?this.translate.instant(getTranslateKeyForPeriod(this.periodSpecs.active),getTranslateParamsForPeriod(this.periodSpecs.active)):toStringTimeRange(this.periodSpecs.active):""}getZoomOutIsVisible(){return this.periodSpecs?!isEqual_default(this.periodSpecs.active,this.periodSpecs.selected):!1}zoomOut(){this.periodSpecSelected.emit(this.periodSpecs.selected)}enterKeyDownHandler(event2){event2.target.blur()}};_PeriodControlsComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_PeriodControlsComponent)(\u0275\u0275directiveInject(BreakpointObserver),\u0275\u0275directiveInject(MatBottomSheet),\u0275\u0275directiveInject(PeriodPanelService),\u0275\u0275directiveInject(TranslateService))},_PeriodControlsComponent.\u0275cmp=\u0275\u0275defineComponent({type:_PeriodControlsComponent,selectors:[["ix-period-controls"]],inputs:{deviceTimeZone:"deviceTimeZone",periodSpecs:"periodSpecs",timeZoneSpec:"timeZoneSpec",mobile:"mobile"},outputs:{periodSpecSelected:"periodSpecSelected",timeZoneSpecSelected:"timeZoneSpecSelected"},standalone:!1,features:[\u0275\u0275NgOnChangesFeature],decls:3,vars:2,consts:[["mat-stroked-button","",1,"zoom-out-button",3,"matTooltip"],["mat-stroked-button","",3,"keydown.enter","click"],["mat-stroked-button","",1,"zoom-out-button",3,"click","matTooltip"]],template:function(rf,ctx){rf&1&&(\u0275\u0275template(0,PeriodControlsComponent_Conditional_0_Template,4,3,"button",0),\u0275\u0275elementStart(1,"button",1),\u0275\u0275listener("keydown.enter",function($event){return ctx.enterKeyDownHandler($event)})("click",function($event){return ctx.handlePeriodButtonClick($event)}),\u0275\u0275text(2),\u0275\u0275elementEnd()),rf&2&&(\u0275\u0275conditional(ctx.zoomOutIsVisible?0:-1),\u0275\u0275advance(2),\u0275\u0275textInterpolate1(" ",ctx.periodButtonLabel,`
801
801
  `))},dependencies:[MatButton,MatIcon,MatTooltip,TranslatePipe],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] .zoom-out-button[_ngcontent-%COMP%]{min-width:0;padding:0 7px;margin-right:8px}[_nghost-%COMP%] .zoom-out-button[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{margin:0}"],changeDetection:0});let PeriodControlsComponent3=_PeriodControlsComponent;return PeriodControlsComponent3})();var BackendComponentBrokerDirective=(()=>{let _BackendComponentBrokerDirective=class _BackendComponentBrokerDirective{constructor(){this.scopeRef=inject(ComponentGridScopeDirective,{optional:!0}),this.callerFactory=inject(BackendComponentCallerServiceFactory),this.facade=inject(BackendComponentBrokerFacade),this.clientProxy=inject(BackendComponentClientProxyService),this.destroyRef=inject(DestroyRef),this.myCompany$=this.facade.myCompany$,this.myUser$=this.facade.myUser$,this.agentOrAssetId$=new ReplaySubject(1)}set agentOrAssetId(agentOrAssetId){this.agentOrAssetId$.next(agentOrAssetId)}ngOnInit(){combineLatest([this.facade.findAgentAndAsset(this.agentOrAssetId$),this.facade.myCompany$,this.facade.myUser$]).pipe(filter(([,myCompany,myUser])=>!!myCompany&&!!myUser),takeUntilDestroyed(this.destroyRef)).subscribe(([[agent,asset],myCompany,myUser])=>{this.caller=this.callerFactory.create({agent,asset,myCompany,myUser})}),this.clientProxy.onCall(this.scopeRef?.value).pipe(mergeMap(call=>this.facade.resolveTemplateFromPageComponent(call.pageComponentId).pipe(first(),map(result=>({call:call.call,template:{publicId:result}})))),mergeMap(call=>this.caller?this.caller.call(call).pipe(map(result=>({result,call})),catchError(()=>EMPTY)):EMPTY),takeUntilDestroyed(this.destroyRef)).subscribe(({result,call})=>{this.clientProxy.emitResult({call:call.call,data:result.value},this.scopeRef?.value)})}};_BackendComponentBrokerDirective.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_BackendComponentBrokerDirective)},_BackendComponentBrokerDirective.\u0275dir=\u0275\u0275defineDirective({type:_BackendComponentBrokerDirective,selectors:[["","ixBackendComponentBroker",""]],inputs:{agentOrAssetId:"agentOrAssetId"},standalone:!1});let BackendComponentBrokerDirective3=_BackendComponentBrokerDirective;return BackendComponentBrokerDirective3})();var PagesModule=(()=>{let _PagesModule=class _PagesModule{};_PagesModule.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_PagesModule)},_PagesModule.\u0275mod=\u0275\u0275defineNgModule({type:_PagesModule}),_PagesModule.\u0275inj=\u0275\u0275defineInjector({providers:[ComponentContextService],imports:[SharedModule,NgxDaterangepickerMd,ComponentGridModule,ComponentPropertiesModule,FileSaveModule,PeriodBottomSheetComponent,PeriodPanelComponent,ComponentGridModule,ComponentPropertiesModule]});let PagesModule2=_PagesModule;return PagesModule2})();function mutationObservableFactory(target,options){return new Observable(subscriber=>{let observer=new MutationObserver(records=>{subscriber.next(records)});return observer.observe(target,options),function(){observer.disconnect()}})}var _c021=["*"],ButtonToggleComponent=(()=>{let _ButtonToggleComponent=class _ButtonToggleComponent{constructor(){this.elRef=inject(ElementRef),this.disabled=!1,this.valueChange=new EventEmitter}getWidth(){return this.elRef.nativeElement.clientWidth??0}getOffset(){return this.elRef.nativeElement.offsetLeft??0}select(){this.selected=!0}unselect(){this.selected=!1}};_ButtonToggleComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_ButtonToggleComponent)},_ButtonToggleComponent.\u0275cmp=\u0275\u0275defineComponent({type:_ButtonToggleComponent,selectors:[["ix-button-toggle"]],inputs:{value:"value",disabled:"disabled"},outputs:{valueChange:"valueChange"},ngContentSelectors:_c021,decls:2,vars:4,consts:[["role","tab","tabindex","0",1,"button",3,"click"]],template:function(rf,ctx){rf&1&&(\u0275\u0275projectionDef(),\u0275\u0275elementStart(0,"div",0),\u0275\u0275listener("click",function(){return ctx.valueChange.emit(ctx.value)}),\u0275\u0275projection(1),\u0275\u0275elementEnd()),rf&2&&\u0275\u0275classProp("disabled",ctx.disabled)("selected",ctx.selected)},styles:["[_nghost-%COMP%] .button[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding:0 12px;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-wrap:normal;cursor:pointer;font-size:14px;max-width:100%;position:relative;height:34px;color:color-mix(in srgb,currentcolor 50%,transparent);transition:box-shadow .2s cubic-bezier(.4,1,.75,.9);-webkit-user-select:none;user-select:none}[_nghost-%COMP%] .button.selected[_ngcontent-%COMP%]{color:currentcolor;font-weight:500;z-index:1}[_nghost-%COMP%] .button.disabled[_ngcontent-%COMP%]{color:color-mix(in srgb,currentcolor 25%,transparent);pointer-events:none}[_nghost-%COMP%] .button[_ngcontent-%COMP%]:focus{outline:none;outline-offset:0;-moz-outline-radius:0}[_nghost-%COMP%]:hover [_ngcontent-%COMP%]:not(.selected,.disabled){border-bottom:none;color:color-mix(in srgb,currentcolor 75%,transparent);background-color:color-mix(in srgb,currentcolor 4%,transparent)!important;border-radius:12px;box-shadow:none!important;transition:all .2s cubic-bezier(.4,1,.75,.9)}"]});let ButtonToggleComponent3=_ButtonToggleComponent;return ButtonToggleComponent3})();var _c022=["*"],ButtonToggleGroupComponent=(()=>{let _ButtonToggleGroupComponent=class _ButtonToggleGroupComponent{constructor(){this.cdRef=inject(ChangeDetectorRef),this.elRef=inject(ElementRef),this.destroy=inject(DestroyRef),this.ngZone=inject(NgZone),this.indicatorStyle=null,this._animate=!1,mutationObservableFactory(this.elRef.nativeElement,{childList:!0}).pipe(takeUntilDestroyed(this.destroy)).subscribe(()=>{this.animate(),this.cdRef.markForCheck()}),resizeObservableFactory(this.elRef.nativeElement).pipe(skip(1),takeUntilDestroyed(this.destroy)).subscribe(()=>{this.animate(),this.cdRef.markForCheck()})}ngOnChanges(changes){changes.value&&!changes.value.isFirstChange()&&this.animate()}animate(){this._active=this._buttons?.find(segment=>segment.value===this.value)??null,this._active?.select(),this._buttons?.filter(s2=>s2!==this._active).forEach(s2=>s2.unselect()),this.indicatorStyle=this._active?{width:`${this._active.getWidth()}px`,transform:`translateX(${this._active.getOffset()}px)`}:null,this._active&&!this._animate&&this.ngZone.runOutsideAngular(()=>{setTimeout(()=>{this._animate=!0,this.elRef.nativeElement.classList.add("animate")},0)})}};_ButtonToggleGroupComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_ButtonToggleGroupComponent)},_ButtonToggleGroupComponent.\u0275cmp=\u0275\u0275defineComponent({type:_ButtonToggleGroupComponent,selectors:[["ix-button-toggle-group"]],contentQueries:function(rf,ctx,dirIndex){if(rf&1&&\u0275\u0275contentQuery(dirIndex,ButtonToggleComponent,4),rf&2){let _t;\u0275\u0275queryRefresh(_t=\u0275\u0275loadQuery())&&(ctx._buttons=_t)}},inputs:{value:"value"},features:[\u0275\u0275NgOnChangesFeature],ngContentSelectors:_c022,decls:3,vars:2,consts:[["role","tablist",1,"button-list"],[1,"active-indicator"]],template:function(rf,ctx){rf&1&&(\u0275\u0275projectionDef(),\u0275\u0275elementStart(0,"div",0),\u0275\u0275element(1,"div",1),\u0275\u0275projection(2),\u0275\u0275elementEnd()),rf&2&&(\u0275\u0275advance(),\u0275\u0275styleMap(ctx.indicatorStyle))},styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] .button-list[_ngcontent-%COMP%]{align-items:flex-end;border:none;display:flex;flex:0 0 auto;list-style:none;margin:0;padding:0;position:relative;background-color:var(--button-toggle-bg, var(--mat-sys-background));color:var(--button-toggle-color, var(--mat-sys-on-background));box-shadow:0 0 0 1px color-mix(in srgb,transparent,var(--button-toggle-color, var(--mat-sys-on-background)) 24%);border-radius:12px}[_nghost-%COMP%] .button-list[_ngcontent-%COMP%] .active-indicator[_ngcontent-%COMP%]{left:0;pointer-events:none;position:absolute;top:0;transform:translate(0);transition:height,transform,width;transition-duration:0;transition-timing-function:cubic-bezier(.4,1,.75,.9);border-radius:12px;box-shadow:0 0 0 1px var(--button-toggle-color, var(--mat-sys-on-background)),inset 0 0 0 1px var(--button-toggle-color, var(--mat-sys-on-background));height:34px;background-color:var(--button-toggle-bg, var(--mat-sys-background));z-index:1}.animate[_nghost-%COMP%] .button-list[_ngcontent-%COMP%] .active-indicator[_ngcontent-%COMP%]{transition-duration:.2s}"],changeDetection:0});let ButtonToggleGroupComponent3=_ButtonToggleGroupComponent;return ButtonToggleGroupComponent3})();var ButtonToggleModule=(()=>{let _ButtonToggleModule=class _ButtonToggleModule{};_ButtonToggleModule.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_ButtonToggleModule)},_ButtonToggleModule.\u0275mod=\u0275\u0275defineNgModule({type:_ButtonToggleModule}),_ButtonToggleModule.\u0275inj=\u0275\u0275defineInjector({});let ButtonToggleModule2=_ButtonToggleModule;return ButtonToggleModule2})();var ReloadOnValueChangeDirective=(()=>{let _ReloadOnValueChangeDirective=class _ReloadOnValueChangeDirective{constructor(cdRef,templateRef,viewContainer){this.cdRef=cdRef,this.templateRef=templateRef,this.viewContainer=viewContainer,this.changes=new ReplaySubject,this.destroy=inject(DestroyRef)}ngOnInit(){this.viewContainer.createEmbeddedView(this.templateRef),this.changes.pipe(distinctUntilChanged(isEqual_default),takeUntilDestroyed(this.destroy)).subscribe(()=>{this.viewContainer.clear(),this.viewContainer.createEmbeddedView(this.templateRef),this.cdRef.markForCheck()})}ngOnChanges(changes){changes.value.isFirstChange()||this.changes.next(changes.value.currentValue)}ngOnDestroy(){this.changes.complete()}};_ReloadOnValueChangeDirective.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_ReloadOnValueChangeDirective)(\u0275\u0275directiveInject(ChangeDetectorRef),\u0275\u0275directiveInject(TemplateRef),\u0275\u0275directiveInject(ViewContainerRef))},_ReloadOnValueChangeDirective.\u0275dir=\u0275\u0275defineDirective({type:_ReloadOnValueChangeDirective,selectors:[["","ixReloadOnValueChange",""]],inputs:{value:[0,"ixReloadOnValueChange","value"]},standalone:!1,features:[\u0275\u0275NgOnChangesFeature]});let ReloadOnValueChangeDirective3=_ReloadOnValueChangeDirective;return ReloadOnValueChangeDirective3})();var ReloadTriggerModule=(()=>{let _ReloadTriggerModule=class _ReloadTriggerModule{};_ReloadTriggerModule.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_ReloadTriggerModule)},_ReloadTriggerModule.\u0275mod=\u0275\u0275defineNgModule({type:_ReloadTriggerModule}),_ReloadTriggerModule.\u0275inj=\u0275\u0275defineInjector({imports:[CommonModule]});let ReloadTriggerModule2=_ReloadTriggerModule;return ReloadTriggerModule2})();var AlertDialogModule=(()=>{let _AlertDialogModule=class _AlertDialogModule{};_AlertDialogModule.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_AlertDialogModule)},_AlertDialogModule.\u0275mod=\u0275\u0275defineNgModule({type:_AlertDialogModule}),_AlertDialogModule.\u0275inj=\u0275\u0275defineInjector({imports:[SharedModule]});let AlertDialogModule2=_AlertDialogModule;return AlertDialogModule2})();var DeviceSelectFacade=(()=>{let _DeviceSelectFacade=class _DeviceSelectFacade{constructor(){this.appName=inject(APP_NAME),this.store=inject(Store),this.agentsDict$=this.store.select(selectEntities3),this.customPropsDict$=this.store.select(selectAll23).pipe(map(props2=>props2.reduce((dict,p)=>(p.resourceType==="Agent"||p.resourceType==="Asset")&&p.scopeType&&p.slug?this.appName==="Portal"&&p.flags?.includes("hiddenInPortal")?dict:__spreadProps(__spreadValues({},dict),{[p.resourceType+".custom."+p.scopeType+p.slug]:p}):dict,{}))),this.groupsDict$=this.store.select(selectEntities9)}};_DeviceSelectFacade.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_DeviceSelectFacade)},_DeviceSelectFacade.\u0275prov=\u0275\u0275defineInjectable({token:_DeviceSelectFacade,factory:_DeviceSelectFacade.\u0275fac,providedIn:"root"});let DeviceSelectFacade2=_DeviceSelectFacade;return DeviceSelectFacade2})();function geoLocationIsEmpty(geoLocation){return geoLocation===null||geoLocation.city==="-"&&geoLocation.country==="-"||geoLocation.latitude==="0.000000"&&geoLocation.longitude==="0.000000"}function mapGeoLocationToName(geoLocation){return geoLocationIsEmpty(geoLocation)?null:geoLocation?.city&&geoLocation?.country?`${geoLocation.city}, ${geoLocation.country}`:geoLocation?.country?geoLocation.country:null}function findAgentOrAssetMatch(a,query,customPropsDict,groupsDict,agentsDict,nullifyName=!0){let q=deburr_default(query.toLowerCase().trim());if((a.name?deburr_default(a.name.toLowerCase()):null)?.includes(q))return nullifyName?null:a.name;if(a.description?.toLowerCase().includes(q))return a.description;if("serialNumber"in a&&a.serialNumber?.toLowerCase().includes(q))return a.serialNumber;let location2="location"in a?a.location?.name||(a.geoLocation?mapGeoLocationToName(a.geoLocation):null):null;if(location2?.toLowerCase().includes(q))return location2;if(groupsDict){let groups=a.memberships?.map(m=>groupsDict[m.group?.publicId]).filter(g=>!!g?.type)??[],groupName=_findBestMatch(groups.map(g=>g.name),q);if(groupName)return groupName}if(customPropsDict){let resType="agent"in a?"Asset":"Agent",customValues=Object.keys(customPropsDict).filter(key=>key.startsWith(`${resType}.`)).map(key=>(a.custom??{})[key.replace(`${resType}.custom.`,"")]).filter(val=>!isNil_default(val)).map(String),customValue=_findBestMatch(customValues,q);if(customValue)return customValue}if(agentsDict&&"agent"in a&&a.agent?.publicId){let linkedAgent=agentsDict[a.agent.publicId];if(linkedAgent)return findAgentOrAssetMatch(linkedAgent,query,customPropsDict,groupsDict,void 0,!1)}}function _findBestMatch(values,q){return values.reduce((best,value)=>{if(!value)return best;let v=deburr_default(value.toLowerCase());if(!v.includes(q))return best;let matchRatio=q.length/v.length;return!best||matchRatio>best.matchRatio?{value,matchRatio}:best},void 0)?.value}var DeviceSelectBaseComponent=(()=>{let _DeviceSelectBaseComponent=class _DeviceSelectBaseComponent{constructor(){this.facade=inject(DeviceSelectFacade),this.agentsOrAssets=input.required(),this.control=input(new FormControl("")),this.selectDialogTrigger=viewChild(SelectDialogTriggerDirective),this.agentsDict=toSignal(this.facade.agentsDict$,{requireSync:!0}),this.customPropsDict=toSignal(this.facade.customPropsDict$,{requireSync:!0}),this.groupsDict=toSignal(this.facade.groupsDict$,{requireSync:!0}),this.options=computed(()=>{let agentsDict=this.agentsDict(),customPropsDict=this.customPropsDict(),groupsDict=this.groupsDict(),query=this.query();return query?this.agentsOrAssets().reduce((options,a)=>{let match2=findAgentOrAssetMatch(a,query,customPropsDict,groupsDict,agentsDict);return match2!==void 0?[...options,{id:a.publicId,name:a.name,match:match2}]:options},[]):this.agentsOrAssets().map(a=>({id:a.publicId,name:a.name,match:null}))}),this.queryControl=new FormControl("",{nonNullable:!0}),this.query=toSignal(this.queryControl.valueChanges,{initialValue:""}),this.searchPredicate=this._optionSearchPredicate.bind(this)}_optionSearchPredicate(option,query){if(!query)return!0;let a=this.agentsOrAssets().find(opt=>opt.publicId===option.value);return!!(a&&findAgentOrAssetMatch(a,query,this.customPropsDict(),this.groupsDict(),this.agentsDict())!==void 0)}findOptionMatch(option){let query=this.selectDialogTrigger()?.searchQueryControl?.value;if(!query)return;let a=this.agentsOrAssets().find(opt=>opt.publicId===option.value);if(a)return findAgentOrAssetMatch(a,query,this.customPropsDict(),this.groupsDict(),this.agentsDict())}findSelectTriggerLabel(){return this.agentsOrAssets().find(opt=>opt.publicId===this.control().value)?.name}};_DeviceSelectBaseComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_DeviceSelectBaseComponent)},_DeviceSelectBaseComponent.\u0275dir=\u0275\u0275defineDirective({type:_DeviceSelectBaseComponent,viewQuery:function(rf,ctx){rf&1&&\u0275\u0275viewQuerySignal(ctx.selectDialogTrigger,SelectDialogTriggerDirective,5),rf&2&&\u0275\u0275queryAdvance()},inputs:{agentsOrAssets:[1,"agentsOrAssets"],control:[1,"control"]}});let DeviceSelectBaseComponent2=_DeviceSelectBaseComponent;return DeviceSelectBaseComponent2})();var _forTrack07=($index,$item)=>$item.id;function DeviceSelectButtonComponent_Conditional_1_Template(rf,ctx){if(rf&1){let _r2=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"button",8),\u0275\u0275listener("click",function(){\u0275\u0275restoreView(_r2),\u0275\u0275nextContext();let deviceSelect_r3=\u0275\u0275reference(4);return \u0275\u0275resetView(deviceSelect_r3.onContainerClick())}),\u0275\u0275text(1),\u0275\u0275elementEnd()}if(rf&2){\u0275\u0275nextContext();let buttonLabel_r4=\u0275\u0275readContextLet(0);\u0275\u0275advance(),\u0275\u0275textInterpolate(buttonLabel_r4)}}function DeviceSelectButtonComponent_Conditional_2_Template(rf,ctx){if(rf&1){let _r5=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"button",9),\u0275\u0275listener("click",function(){\u0275\u0275restoreView(_r5),\u0275\u0275nextContext();let deviceSelect_r3=\u0275\u0275reference(4);return \u0275\u0275resetView(deviceSelect_r3.onContainerClick())}),\u0275\u0275text(1),\u0275\u0275elementEnd()}if(rf&2){\u0275\u0275nextContext();let buttonLabel_r4=\u0275\u0275readContextLet(0);\u0275\u0275advance(),\u0275\u0275textInterpolate(buttonLabel_r4)}}function DeviceSelectButtonComponent_Conditional_11_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"mat-option",7),\u0275\u0275text(1),\u0275\u0275pipe(2,"translate"),\u0275\u0275elementEnd()),rf&2){let tmp_6_0,noneOpt_r6=ctx;\u0275\u0275property("value",noneOpt_r6.value),\u0275\u0275advance(),\u0275\u0275textInterpolate((tmp_6_0=noneOpt_r6.label)!==null&&tmp_6_0!==void 0?tmp_6_0:\u0275\u0275pipeBind1(2,2,"NONE"))}}function DeviceSelectButtonComponent_For_13_Conditional_4_Template(rf,ctx){if(rf&1&&(\u0275\u0275element(0,"span",11),\u0275\u0275pipe(1,"highlightText")),rf&2){let option_r7=\u0275\u0275nextContext().$implicit,ctx_r7=\u0275\u0275nextContext();\u0275\u0275property("innerHTML",\u0275\u0275pipeBind2(1,1,option_r7.match,ctx_r7.query()),\u0275\u0275sanitizeHtml)}}function DeviceSelectButtonComponent_For_13_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"mat-option",7)(1,"div"),\u0275\u0275element(2,"span",10),\u0275\u0275pipe(3,"highlightText"),\u0275\u0275template(4,DeviceSelectButtonComponent_For_13_Conditional_4_Template,2,4,"span",11),\u0275\u0275elementEnd()()),rf&2){let option_r7=ctx.$implicit,ctx_r7=\u0275\u0275nextContext();\u0275\u0275property("value",option_r7.id),\u0275\u0275advance(2),\u0275\u0275property("innerHTML",\u0275\u0275pipeBind2(3,3,option_r7.name,ctx_r7.query()),\u0275\u0275sanitizeHtml),\u0275\u0275advance(2),\u0275\u0275conditional(option_r7.match?4:-1)}}function DeviceSelectButtonComponent_ng_template_14_Conditional_4_Template(rf,ctx){if(rf&1&&(\u0275\u0275element(0,"span",11),\u0275\u0275pipe(1,"highlightText")),rf&2){let tmp_7_0,ctx_r7=\u0275\u0275nextContext(2);\u0275\u0275property("innerHTML",\u0275\u0275pipeBind2(1,1,ctx,(tmp_7_0=(tmp_7_0=ctx_r7.selectDialogTrigger())==null||tmp_7_0.searchQueryControl==null?null:tmp_7_0.searchQueryControl.value)!==null&&tmp_7_0!==void 0?tmp_7_0:""),\u0275\u0275sanitizeHtml)}}function DeviceSelectButtonComponent_ng_template_14_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"div",12)(1,"div"),\u0275\u0275element(2,"span",10),\u0275\u0275pipe(3,"highlightText"),\u0275\u0275template(4,DeviceSelectButtonComponent_ng_template_14_Conditional_4_Template,2,4,"span",11),\u0275\u0275elementEnd()()),rf&2){let tmp_5_0,tmp_6_0,option_r9=ctx.$implicit,ctx_r7=\u0275\u0275nextContext();\u0275\u0275advance(2),\u0275\u0275property("innerHTML",\u0275\u0275pipeBind2(3,2,option_r9.viewValue,(tmp_5_0=(tmp_5_0=ctx_r7.selectDialogTrigger())==null||tmp_5_0.searchQueryControl==null?null:tmp_5_0.searchQueryControl.value)!==null&&tmp_5_0!==void 0?tmp_5_0:""),\u0275\u0275sanitizeHtml),\u0275\u0275advance(2),\u0275\u0275conditional((tmp_6_0=ctx_r7.findOptionMatch(option_r9))?4:-1,tmp_6_0)}}var DeviceSelectButtonComponent=(()=>{let _DeviceSelectButtonComponent=class _DeviceSelectButtonComponent extends DeviceSelectBaseComponent{constructor(){super(),this.emptyLabel=input(""),this.noneOption=input(),this.selectionChange=output(),this.stroked=input(!1),this.value=input(""),effect(()=>this.control().setValue(this.value()))}handleClosed(){let publicId=this.control().value;publicId&&this.selectionChange.emit(publicId)}};_DeviceSelectButtonComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_DeviceSelectButtonComponent)},_DeviceSelectButtonComponent.\u0275cmp=\u0275\u0275defineComponent({type:_DeviceSelectButtonComponent,selectors:[["ix-device-select-button"]],inputs:{emptyLabel:[1,"emptyLabel"],noneOption:[1,"noneOption"],stroked:[1,"stroked"],value:[1,"value"]},outputs:{selectionChange:"selectionChange"},features:[\u0275\u0275InheritDefinitionFeature],decls:16,vars:14,consts:[["deviceSelect",""],["dialogOptionTemplate",""],["mat-stroked-button",""],["mat-button",""],["data-testid","device-select","disableOptionCentering","","panelClass","device-select-button-panel","name","device","ixSelectDialogTrigger","",3,"closed","formControl","ixSelectDialogOptionTemplate","ixSelectDialogSearchPredicate"],[1,"search-option"],[3,"formControl","placeholderLabel","noEntriesFoundLabel"],[3,"value"],["mat-stroked-button","",3,"click"],["mat-button","",3,"click"],[3,"innerHTML"],[1,"match",3,"innerHTML"],[1,"ix-device-dialog-option-template"]],template:function(rf,ctx){if(rf&1){let _r1=\u0275\u0275getCurrentView();\u0275\u0275declareLet(0),\u0275\u0275template(1,DeviceSelectButtonComponent_Conditional_1_Template,2,1,"button",2)(2,DeviceSelectButtonComponent_Conditional_2_Template,2,1,"button",3),\u0275\u0275elementStart(3,"mat-select",4,0),\u0275\u0275listener("closed",function(){return \u0275\u0275restoreView(_r1),\u0275\u0275resetView(ctx.handleClosed())}),\u0275\u0275elementStart(5,"mat-select-trigger"),\u0275\u0275text(6),\u0275\u0275elementEnd(),\u0275\u0275elementStart(7,"mat-option",5),\u0275\u0275element(8,"ngx-mat-select-search",6),\u0275\u0275pipe(9,"translate"),\u0275\u0275pipe(10,"translate"),\u0275\u0275elementEnd(),\u0275\u0275template(11,DeviceSelectButtonComponent_Conditional_11_Template,3,4,"mat-option",7),\u0275\u0275repeaterCreate(12,DeviceSelectButtonComponent_For_13_Template,5,6,"mat-option",7,_forTrack07),\u0275\u0275elementEnd(),\u0275\u0275template(14,DeviceSelectButtonComponent_ng_template_14_Template,5,5,"ng-template",null,1,\u0275\u0275templateRefExtractor)}if(rf&2){let tmp_2_0,tmp_11_0,dialogOptionTemplate_r10=\u0275\u0275reference(15);\u0275\u0275storeLet((tmp_2_0=ctx.findSelectTriggerLabel())!==null&&tmp_2_0!==void 0?tmp_2_0:ctx.emptyLabel()),\u0275\u0275advance(),\u0275\u0275conditional(ctx.stroked()?1:2),\u0275\u0275advance(2),\u0275\u0275property("formControl",ctx.control())("ixSelectDialogOptionTemplate",dialogOptionTemplate_r10)("ixSelectDialogSearchPredicate",ctx.searchPredicate),\u0275\u0275advance(3),\u0275\u0275textInterpolate(ctx.findSelectTriggerLabel()),\u0275\u0275advance(2),\u0275\u0275property("formControl",ctx.queryControl)("placeholderLabel",\u0275\u0275pipeBind1(9,10,"SEARCH"))("noEntriesFoundLabel",\u0275\u0275pipeBind1(10,12,"NO_RESULTS_FOUND")),\u0275\u0275advance(3),\u0275\u0275conditional((tmp_11_0=ctx.noneOption())?11:-1,tmp_11_0),\u0275\u0275advance(),\u0275\u0275repeater(ctx.options())}},dependencies:[ReactiveFormsModule,NgControlStatus,FormControlDirective,SelectDialogModule,SelectDialogTriggerDirective,TranslateModule,TranslatePipe,MatButtonModule,MatButton,MatSelectModule,MatSelect,MatSelectTrigger,MatOption,NgxMatSelectSearchModule,MatSelectSearchComponent,HighlightTextPipe],styles:[`ix-device-select-button{display:flex;flex-direction:column;position:relative}ix-device-select-button .mat-mdc-button-base{display:block;padding-left:8px!important;padding-right:24px!important;position:relative}ix-device-select-button .mat-mdc-button-base .mdc-button__label{display:block;overflow-x:hidden;text-overflow:ellipsis}ix-device-select-button .mat-mdc-button-base .mdc-button__label:after{content:"";position:absolute;top:50%;right:8px;margin-top:-2px;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid currentcolor}ix-device-select-button .mat-mdc-select{position:absolute;visibility:hidden;top:12px;left:0;font-size:14px}@media (min-width: 960px){.mat-mdc-select-panel.device-select-button-panel{min-width:400px!important;max-width:500px!important}}.mat-mdc-select-panel.device-select-button-panel .mat-mdc-option[role=option]{min-height:32px;padding-top:4px;padding-bottom:4px}.mat-mdc-select-panel.device-select-button-panel .mat-mdc-option div,.ix-device-dialog-option-template div{display:flex;flex-direction:column}.mat-mdc-select-panel.device-select-button-panel .mat-mdc-option span:has(+.match),.ix-device-dialog-option-template span:has(+.match){margin-top:6px;margin-bottom:-2px}.mat-mdc-select-panel.device-select-button-panel .mat-mdc-option .match,.ix-device-dialog-option-template .match{font-size:12px;line-height:14px;margin-bottom:8px;text-wrap:auto}
802
- `],encapsulation:2,changeDetection:0});let DeviceSelectButtonComponent2=_DeviceSelectButtonComponent;return DeviceSelectButtonComponent2})();var _c023=()=>({value:"none"}),_c18=()=>[],_c25=(a0,a1)=>({"locked-drawer":a0,"open-drawer":a1}),_c33=(a0,a1)=>({desktop:a0,mobile:a1});function BuilderComponent_Conditional_0_Conditional_4_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"span"),\u0275\u0275text(1),\u0275\u0275elementEnd()),rf&2){let ctx_r1=\u0275\u0275nextContext(2);\u0275\u0275advance(),\u0275\u0275textInterpolate1(" - ",ctx_r1.componentName,"")}}function BuilderComponent_Conditional_0_Conditional_15_Template(rf,ctx){if(rf&1){let _r3=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"ix-button-toggle-group",22),\u0275\u0275listener("mousedown",function($event){return \u0275\u0275restoreView(_r3),\u0275\u0275resetView($event.stopPropagation())}),\u0275\u0275elementStart(1,"ix-button-toggle",23),\u0275\u0275pipe(2,"translate"),\u0275\u0275listener("valueChange",function($event){\u0275\u0275restoreView(_r3);let ctx_r1=\u0275\u0275nextContext(2);return \u0275\u0275resetView(ctx_r1.setPreviewMode($event))}),\u0275\u0275elementStart(3,"mat-icon"),\u0275\u0275text(4,"desktop_windows"),\u0275\u0275elementEnd()(),\u0275\u0275elementStart(5,"ix-button-toggle",24),\u0275\u0275pipe(6,"translate"),\u0275\u0275listener("valueChange",function($event){\u0275\u0275restoreView(_r3);let ctx_r1=\u0275\u0275nextContext(2);return \u0275\u0275resetView(ctx_r1.setPreviewMode($event))}),\u0275\u0275elementStart(7,"mat-icon"),\u0275\u0275text(8,"smartphone"),\u0275\u0275elementEnd()()()}if(rf&2){let ctx_r1=\u0275\u0275nextContext(2);\u0275\u0275property("value",ctx_r1.previewMode),\u0275\u0275advance(),\u0275\u0275property("matTooltip",\u0275\u0275pipeBind1(2,3,"DESKTOP_VIEW")),\u0275\u0275advance(4),\u0275\u0275property("matTooltip",\u0275\u0275pipeBind1(6,5,"MOBILE_VIEW"))}}function BuilderComponent_Conditional_0_Conditional_16_Template(rf,ctx){if(rf&1){let _r4=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"ix-button-toggle-group",25),\u0275\u0275listener("mousedown",function($event){return \u0275\u0275restoreView(_r4),\u0275\u0275resetView($event.stopPropagation())}),\u0275\u0275elementStart(1,"ix-button-toggle",26),\u0275\u0275pipe(2,"translate"),\u0275\u0275listener("valueChange",function($event){\u0275\u0275restoreView(_r4);let ctx_r1=\u0275\u0275nextContext(2);return \u0275\u0275resetView(ctx_r1.setOrientation($event))}),\u0275\u0275elementStart(3,"mat-icon"),\u0275\u0275text(4,"crop_portrait"),\u0275\u0275elementEnd()(),\u0275\u0275elementStart(5,"ix-button-toggle",27),\u0275\u0275pipe(6,"translate"),\u0275\u0275listener("valueChange",function($event){\u0275\u0275restoreView(_r4);let ctx_r1=\u0275\u0275nextContext(2);return \u0275\u0275resetView(ctx_r1.setOrientation($event))}),\u0275\u0275elementStart(7,"mat-icon"),\u0275\u0275text(8,"crop_landscape"),\u0275\u0275elementEnd()()()}if(rf&2){let ctx_r1=\u0275\u0275nextContext(2);\u0275\u0275property("value",ctx_r1.orientation),\u0275\u0275advance(),\u0275\u0275property("matTooltip",\u0275\u0275pipeBind1(2,3,"PORTRAIT_ORIENTATION")),\u0275\u0275advance(4),\u0275\u0275property("matTooltip",\u0275\u0275pipeBind1(6,5,"LANDSCAPE_ORIENTATION"))}}function BuilderComponent_Conditional_0_Conditional_17_Template(rf,ctx){if(rf&1){let _r5=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"button",28),\u0275\u0275listener("click",function(){\u0275\u0275restoreView(_r5);let ctx_r1=\u0275\u0275nextContext(2);return \u0275\u0275resetView(ctx_r1.toggleMode())})("mousedown",function($event){return \u0275\u0275restoreView(_r5),\u0275\u0275resetView($event.stopPropagation())}),\u0275\u0275elementStart(1,"mat-icon"),\u0275\u0275text(2),\u0275\u0275elementEnd(),\u0275\u0275elementStart(3,"span"),\u0275\u0275text(4),\u0275\u0275pipe(5,"translate"),\u0275\u0275elementEnd()()}if(rf&2){let ctx_r1=\u0275\u0275nextContext(2);\u0275\u0275advance(2),\u0275\u0275textInterpolate(ctx_r1.mode==="preview"?"edit":"visibility"),\u0275\u0275advance(2),\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(5,2,ctx_r1.mode==="preview"?"EDIT":"PREVIEW"))}}function BuilderComponent_Conditional_0_Conditional_37_Conditional_0_Template(rf,ctx){if(rf&1){let _r6=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"mat-toolbar")(1,"h1"),\u0275\u0275text(2),\u0275\u0275elementEnd(),\u0275\u0275element(3,"span",3),\u0275\u0275elementStart(4,"button",30),\u0275\u0275listener("click",function(){\u0275\u0275restoreView(_r6);let ctx_r1=\u0275\u0275nextContext(3);return \u0275\u0275resetView(ctx_r1.toggleDrawerLock())}),\u0275\u0275elementStart(5,"mat-icon"),\u0275\u0275text(6,"keyboard_arrow_right"),\u0275\u0275elementEnd()()()}if(rf&2){let ctx_r1=\u0275\u0275nextContext(3);\u0275\u0275advance(2),\u0275\u0275textInterpolate(ctx_r1.selectedComponentTemplate==null?null:ctx_r1.selectedComponentTemplate.name)}}function BuilderComponent_Conditional_0_Conditional_37_Conditional_2_Template(rf,ctx){if(rf&1){let _r7=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"ix-page-component-properties",31),\u0275\u0275listener("update",function($event){\u0275\u0275restoreView(_r7);let ctx_r1=\u0275\u0275nextContext(3);return \u0275\u0275resetView(ctx_r1.updateComponent($event))}),\u0275\u0275elementEnd()}if(rf&2){let ctx_r1=\u0275\u0275nextContext(3);\u0275\u0275property("component",ctx_r1.selectedComponent)("template",ctx_r1.selectedComponentTemplate)}}function BuilderComponent_Conditional_0_Conditional_37_Template(rf,ctx){if(rf&1&&(\u0275\u0275template(0,BuilderComponent_Conditional_0_Conditional_37_Conditional_0_Template,7,1,"mat-toolbar"),\u0275\u0275elementStart(1,"div",17),\u0275\u0275template(2,BuilderComponent_Conditional_0_Conditional_37_Conditional_2_Template,1,2,"ix-page-component-properties",29),\u0275\u0275elementEnd()),rf&2){let ctx_r1=\u0275\u0275nextContext(2);\u0275\u0275conditional(ctx_r1.selectedComponentTemplate!=null&&ctx_r1.selectedComponentTemplate.name?0:-1),\u0275\u0275advance(2),\u0275\u0275conditional(ctx_r1.selectedComponent?2:-1)}}function BuilderComponent_Conditional_0_Conditional_38_Template(rf,ctx){if(rf&1){let _r8=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"button",30),\u0275\u0275listener("click",function(){\u0275\u0275restoreView(_r8);let ctx_r1=\u0275\u0275nextContext(2);return \u0275\u0275resetView(ctx_r1.toggleDrawerLock())}),\u0275\u0275elementStart(1,"mat-icon"),\u0275\u0275text(2,"keyboard_arrow_left"),\u0275\u0275elementEnd()()}}function BuilderComponent_Conditional_0_Case_40_Template(rf,ctx){if(rf&1&&\u0275\u0275elementContainer(0,21),rf&2){\u0275\u0275nextContext();let standaloneContent_r9=\u0275\u0275reference(43);\u0275\u0275property("ngTemplateOutlet",standaloneContent_r9)}}function BuilderComponent_Conditional_0_Case_41_Conditional_0_Conditional_1_Template(rf,ctx){if(rf&1){let _r10=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"ix-component-grid",37),\u0275\u0275listener("selectionChange",function($event){\u0275\u0275restoreView(_r10);let ctx_r1=\u0275\u0275nextContext(4);return \u0275\u0275resetView(ctx_r1.handleSelectionChange($event))})("componentChanges",function($event){\u0275\u0275restoreView(_r10);let ctx_r1=\u0275\u0275nextContext(4);return \u0275\u0275resetView(ctx_r1.handleComponentChanges($event))})("movingGridItem",function($event){\u0275\u0275restoreView(_r10);let ctx_r1=\u0275\u0275nextContext(4);return \u0275\u0275resetView(ctx_r1.setDrawerIsOpen($event))}),\u0275\u0275elementEnd()}if(rf&2){let pageVersion_r11=\u0275\u0275nextContext(3),ctx_r1=\u0275\u0275nextContext();\u0275\u0275property("ixComponentGridScope",ctx_r1.gridScope)("agentOrAssetId",(pageVersion_r11.previewAgent==null?null:pageVersion_r11.previewAgent.publicId)||(pageVersion_r11.previewAsset==null?null:pageVersion_r11.previewAsset.publicId)||null)("mobile",ctx_r1.previewMode==="mobile")("pageVersionId",pageVersion_r11.publicId)("selectedComponentId",(ctx_r1.selectedComponent==null?null:ctx_r1.selectedComponent.publicId)||null)("ngClass",\u0275\u0275pureFunction2(6,_c33,ctx_r1.previewMode!=="mobile",ctx_r1.previewMode==="mobile"))}}function BuilderComponent_Conditional_0_Case_41_Conditional_0_Conditional_2_Template(rf,ctx){if(rf&1){let _r12=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"ix-card-component-grid",38),\u0275\u0275listener("componentResize",function($event){\u0275\u0275restoreView(_r12);let ctx_r1=\u0275\u0275nextContext(4);return \u0275\u0275resetView(ctx_r1.updateComponentSize($event))})("selectionChange",function($event){\u0275\u0275restoreView(_r12);let ctx_r1=\u0275\u0275nextContext(4);return \u0275\u0275resetView(ctx_r1.handleSelectionChange($event))}),\u0275\u0275elementEnd()}if(rf&2){let tmp_7_0,tmp_9_0,pageVersion_r11=\u0275\u0275nextContext(3),ctx_r1=\u0275\u0275nextContext();\u0275\u0275property("ixComponentGridScope",ctx_r1.gridScope)("agentOrAssetId",(tmp_7_0=ctx_r1.previewAgentOrAsset==null?null:ctx_r1.previewAgentOrAsset.publicId)!==null&&tmp_7_0!==void 0?tmp_7_0:null)("pageVersionId",pageVersion_r11.publicId)("selectedComponentId",(tmp_9_0=ctx_r1.selectedComponent==null?null:ctx_r1.selectedComponent.publicId)!==null&&tmp_9_0!==void 0?tmp_9_0:null)}}function BuilderComponent_Conditional_0_Case_41_Conditional_0_Conditional_3_ix_component_grid_0_Template(rf,ctx){if(rf&1){let _r13=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"ix-component-grid",40),\u0275\u0275listener("selectionChange",function($event){\u0275\u0275restoreView(_r13);let ctx_r1=\u0275\u0275nextContext(5);return \u0275\u0275resetView(ctx_r1.handleSelectionChange($event))})("componentChanges",function($event){\u0275\u0275restoreView(_r13);let ctx_r1=\u0275\u0275nextContext(5);return \u0275\u0275resetView(ctx_r1.handleComponentChanges($event))})("movingGridItem",function($event){\u0275\u0275restoreView(_r13);let ctx_r1=\u0275\u0275nextContext(5);return \u0275\u0275resetView(ctx_r1.setDrawerIsOpen($event))}),\u0275\u0275elementEnd()}if(rf&2){let tmp_10_0,pageVersion_r11=\u0275\u0275nextContext(4),ctx_r1=\u0275\u0275nextContext();\u0275\u0275property("ixComponentGridScope",ctx_r1.gridScope)("agentOrAssetId",(pageVersion_r11.previewAgent==null?null:pageVersion_r11.previewAgent.publicId)||(pageVersion_r11.previewAsset==null?null:pageVersion_r11.previewAsset.publicId)||null)("pageVersionId",pageVersion_r11.publicId)("selectedComponentId",(tmp_10_0=ctx_r1.selectedComponent==null?null:ctx_r1.selectedComponent.publicId)!==null&&tmp_10_0!==void 0?tmp_10_0:null)("ngClass",ctx_r1.orientation)("orientation",ctx_r1.orientation)("mobile",!1)}}function BuilderComponent_Conditional_0_Case_41_Conditional_0_Conditional_3_Template(rf,ctx){if(rf&1&&\u0275\u0275template(0,BuilderComponent_Conditional_0_Case_41_Conditional_0_Conditional_3_ix_component_grid_0_Template,1,7,"ix-component-grid",39),rf&2){let ctx_r1=\u0275\u0275nextContext(4);\u0275\u0275property("ixReloadOnValueChange",ctx_r1.orientation)}}function BuilderComponent_Conditional_0_Case_41_Conditional_0_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"div",32),\u0275\u0275template(1,BuilderComponent_Conditional_0_Case_41_Conditional_0_Conditional_1_Template,1,9,"ix-component-grid",34)(2,BuilderComponent_Conditional_0_Case_41_Conditional_0_Conditional_2_Template,1,4,"ix-card-component-grid",35)(3,BuilderComponent_Conditional_0_Case_41_Conditional_0_Conditional_3_Template,1,1,"ix-component-grid",36),\u0275\u0275elementEnd()),rf&2){let ctx_r1=\u0275\u0275nextContext(3);\u0275\u0275property("ngClass",ctx_r1.gridClasses),\u0275\u0275advance(),\u0275\u0275conditional(ctx_r1.applicationType==="sheet"?1:-1),\u0275\u0275advance(),\u0275\u0275conditional(ctx_r1.applicationType==="card"?2:-1),\u0275\u0275advance(),\u0275\u0275conditional(ctx_r1.applicationType==="report"?3:-1)}}function BuilderComponent_Conditional_0_Case_41_Conditional_1_Conditional_1_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"div",41),\u0275\u0275element(1,"ix-simple-component-grid",43),\u0275\u0275elementEnd()),rf&2){let pageVersion_r11=\u0275\u0275nextContext(3),ctx_r1=\u0275\u0275nextContext();\u0275\u0275advance(),\u0275\u0275property("ixComponentGridScope",ctx_r1.gridScope)("agentOrAssetId",(pageVersion_r11.previewAgent==null?null:pageVersion_r11.previewAgent.publicId)||(pageVersion_r11.previewAsset==null?null:pageVersion_r11.previewAsset.publicId)||null)("mobile",ctx_r1.previewMode==="mobile")("pageVersionId",pageVersion_r11.publicId)("ngClass",ctx_r1.previewMode)}}function BuilderComponent_Conditional_0_Case_41_Conditional_1_Conditional_2_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"div",42),\u0275\u0275element(1,"ix-simple-card-component-grid",44),\u0275\u0275elementEnd()),rf&2){let pageVersion_r11=\u0275\u0275nextContext(3),ctx_r1=\u0275\u0275nextContext();\u0275\u0275advance(),\u0275\u0275property("ixComponentGridScope",ctx_r1.gridScope)("agentOrAssetId",(pageVersion_r11.previewAgent==null?null:pageVersion_r11.previewAgent.publicId)||(pageVersion_r11.previewAsset==null?null:pageVersion_r11.previewAsset.publicId)||null)("pageVersionId",pageVersion_r11.publicId)}}function BuilderComponent_Conditional_0_Case_41_Conditional_1_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"div",33),\u0275\u0275template(1,BuilderComponent_Conditional_0_Case_41_Conditional_1_Conditional_1_Template,2,5,"div",41)(2,BuilderComponent_Conditional_0_Case_41_Conditional_1_Conditional_2_Template,2,3,"div",42),\u0275\u0275elementEnd()),rf&2){let ctx_r1=\u0275\u0275nextContext(3);\u0275\u0275property("ngClass",ctx_r1.applicationType),\u0275\u0275advance(),\u0275\u0275conditional(ctx_r1.applicationType==="sheet"?1:-1),\u0275\u0275advance(),\u0275\u0275conditional(ctx_r1.applicationType==="card"?2:-1)}}function BuilderComponent_Conditional_0_Case_41_Template(rf,ctx){if(rf&1&&\u0275\u0275template(0,BuilderComponent_Conditional_0_Case_41_Conditional_0_Template,4,4,"div",32)(1,BuilderComponent_Conditional_0_Case_41_Conditional_1_Template,3,3,"div",33),rf&2){let ctx_r1=\u0275\u0275nextContext(2);\u0275\u0275conditional(ctx_r1.mode==="edit"?0:1)}}function BuilderComponent_Conditional_0_ng_template_42_Conditional_0_ix_component_loader_2_Template(rf,ctx){if(rf&1&&\u0275\u0275element(0,"ix-component-loader",48),rf&2){let component_r15=\u0275\u0275nextContext();\u0275\u0275property("component",component_r15)}}function BuilderComponent_Conditional_0_ng_template_42_Conditional_0_Template(rf,ctx){if(rf&1){let _r14=\u0275\u0275getCurrentView();\u0275\u0275elementContainerStart(0,45),\u0275\u0275elementStart(1,"div",46),\u0275\u0275listener("click",function(){let component_r15=\u0275\u0275restoreView(_r14),ctx_r1=\u0275\u0275nextContext(3);return \u0275\u0275resetView(ctx_r1.handleSelectionChange(component_r15.publicId))}),\u0275\u0275template(2,BuilderComponent_Conditional_0_ng_template_42_Conditional_0_ix_component_loader_2_Template,1,1,"ix-component-loader",47),\u0275\u0275elementEnd(),\u0275\u0275elementContainerEnd()}if(rf&2){let ctx_r1=\u0275\u0275nextContext(3);\u0275\u0275property("ixComponentGridScope",ctx_r1.gridScope),\u0275\u0275advance(),\u0275\u0275property("ixComponentGridScope",ctx_r1.gridScope),\u0275\u0275advance(),\u0275\u0275property("ixReloadOnValueChange",ctx)}}function BuilderComponent_Conditional_0_ng_template_42_Template(rf,ctx){if(rf&1&&(\u0275\u0275template(0,BuilderComponent_Conditional_0_ng_template_42_Conditional_0_Template,3,3,"ng-container",45),\u0275\u0275pipe(1,"async")),rf&2){let tmp_4_0,ctx_r1=\u0275\u0275nextContext(2);\u0275\u0275conditional((tmp_4_0=\u0275\u0275pipeBind1(1,1,ctx_r1.component$))?0:-1,tmp_4_0)}}function BuilderComponent_Conditional_0_Template(rf,ctx){if(rf&1){let _r1=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"div",1)(1,"mat-toolbar",2)(2,"h1"),\u0275\u0275text(3," Simulator "),\u0275\u0275template(4,BuilderComponent_Conditional_0_Conditional_4_Template,2,1,"span"),\u0275\u0275elementEnd(),\u0275\u0275element(5,"span",3),\u0275\u0275elementStart(6,"button",4)(7,"mat-icon"),\u0275\u0275text(8,"settings"),\u0275\u0275elementEnd()()(),\u0275\u0275elementStart(9,"mat-toolbar",5)(10,"ix-device-select-button",6),\u0275\u0275pipe(11,"translate"),\u0275\u0275pipe(12,"async"),\u0275\u0275listener("selectionChange",function($event){\u0275\u0275restoreView(_r1);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.selectPreviewAgentOrAsset($event))})("mousedown",function($event){return \u0275\u0275restoreView(_r1),\u0275\u0275resetView($event.stopPropagation())}),\u0275\u0275elementEnd(),\u0275\u0275element(13,"div",3),\u0275\u0275elementStart(14,"ix-period-controls",7),\u0275\u0275listener("periodSpecSelected",function($event){\u0275\u0275restoreView(_r1);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.updateSelectedPeriodSpec($event))})("mousedown",function($event){return \u0275\u0275restoreView(_r1),\u0275\u0275resetView($event.stopPropagation())}),\u0275\u0275elementEnd(),\u0275\u0275template(15,BuilderComponent_Conditional_0_Conditional_15_Template,9,7,"ix-button-toggle-group",8)(16,BuilderComponent_Conditional_0_Conditional_16_Template,9,7,"ix-button-toggle-group",9)(17,BuilderComponent_Conditional_0_Conditional_17_Template,6,4,"button",10),\u0275\u0275elementStart(18,"ix-button-toggle-group",11),\u0275\u0275listener("mousedown",function($event){return \u0275\u0275restoreView(_r1),\u0275\u0275resetView($event.stopPropagation())}),\u0275\u0275elementStart(19,"ix-button-toggle",12),\u0275\u0275pipe(20,"translate"),\u0275\u0275listener("valueChange",function($event){\u0275\u0275restoreView(_r1);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.setApplicationType($event))}),\u0275\u0275elementStart(21,"mat-icon"),\u0275\u0275text(22,"dashboard"),\u0275\u0275elementEnd()(),\u0275\u0275elementStart(23,"ix-button-toggle",13),\u0275\u0275pipe(24,"translate"),\u0275\u0275listener("valueChange",function($event){\u0275\u0275restoreView(_r1);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.setApplicationType($event))}),\u0275\u0275element(25,"mat-icon",14),\u0275\u0275elementEnd(),\u0275\u0275elementStart(26,"ix-button-toggle",15),\u0275\u0275pipe(27,"translate"),\u0275\u0275listener("valueChange",function($event){\u0275\u0275restoreView(_r1);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.setApplicationType($event))}),\u0275\u0275elementStart(28,"mat-icon"),\u0275\u0275text(29,"draft"),\u0275\u0275elementEnd()(),\u0275\u0275elementStart(30,"ix-button-toggle",16),\u0275\u0275pipe(31,"translate"),\u0275\u0275listener("valueChange",function($event){\u0275\u0275restoreView(_r1);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.setApplicationType($event))}),\u0275\u0275elementStart(32,"mat-icon"),\u0275\u0275text(33,"fit_screen"),\u0275\u0275elementEnd()()()(),\u0275\u0275elementStart(34,"div",17)(35,"mat-drawer-container")(36,"mat-drawer",18),\u0275\u0275template(37,BuilderComponent_Conditional_0_Conditional_37_Template,3,2)(38,BuilderComponent_Conditional_0_Conditional_38_Template,3,0,"button",19),\u0275\u0275elementEnd(),\u0275\u0275elementStart(39,"mat-drawer-content",20),\u0275\u0275template(40,BuilderComponent_Conditional_0_Case_40_Template,1,1,"ng-container",21)(41,BuilderComponent_Conditional_0_Case_41_Template,2,1)(42,BuilderComponent_Conditional_0_ng_template_42_Template,2,3,"ng-template",null,0,\u0275\u0275templateRefExtractor),\u0275\u0275elementEnd()()()()}if(rf&2){let tmp_7_0,tmp_8_0,tmp_22_0,ctx_r1=\u0275\u0275nextContext();\u0275\u0275advance(4),\u0275\u0275conditional(ctx_r1.componentName?4:-1),\u0275\u0275advance(6),\u0275\u0275property("emptyLabel",\u0275\u0275pipeBind1(11,20,"SELECT_DEVICE_FOR_PREVIEW"))("noneOption",\u0275\u0275pureFunction0(32,_c023))("stroked",!0)("value",(tmp_7_0=ctx_r1.previewAgentOrAsset==null?null:ctx_r1.previewAgentOrAsset.publicId)!==null&&tmp_7_0!==void 0?tmp_7_0:"")("agentsOrAssets",(tmp_8_0=\u0275\u0275pipeBind1(12,22,ctx_r1.previewAgentsOrAssets$))!==null&&tmp_8_0!==void 0?tmp_8_0:\u0275\u0275pureFunction0(33,_c18)),\u0275\u0275advance(4),\u0275\u0275property("deviceTimeZone",null)("periodSpecs",ctx_r1.periodSpecs),\u0275\u0275advance(),\u0275\u0275conditional(ctx_r1.applicationType==="sheet"?15:-1),\u0275\u0275advance(),\u0275\u0275conditional(ctx_r1.applicationType==="report"?16:-1),\u0275\u0275advance(),\u0275\u0275conditional(ctx_r1.applicationType==="sheet"||ctx_r1.applicationType==="card"?17:-1),\u0275\u0275advance(),\u0275\u0275property("value",ctx_r1.applicationType),\u0275\u0275advance(),\u0275\u0275property("matTooltip",\u0275\u0275pipeBind1(20,24,"PAGE")),\u0275\u0275advance(4),\u0275\u0275property("matTooltip",\u0275\u0275pipeBind1(24,26,"CARD")),\u0275\u0275advance(3),\u0275\u0275property("matTooltip",\u0275\u0275pipeBind1(27,28,"REPORT")),\u0275\u0275advance(4),\u0275\u0275property("matTooltip",\u0275\u0275pipeBind1(31,30,"STANDALONE")),\u0275\u0275advance(6),\u0275\u0275property("opened",ctx_r1.selectedComponent&&ctx_r1.drawerIsOpen&&ctx_r1.mode==="edit")("ngClass",\u0275\u0275pureFunction2(34,_c25,ctx_r1.drawerLockedClose,ctx_r1.selectedComponent&&!ctx_r1.drawerLockedClose)),\u0275\u0275advance(),\u0275\u0275conditional(ctx_r1.selectedComponent&&!ctx_r1.drawerLockedClose?37:38),\u0275\u0275advance(3),\u0275\u0275conditional((tmp_22_0=ctx_r1.applicationType)==="standalone"?40:41)}}var BuilderComponent=(()=>{let _BuilderComponent=class _BuilderComponent{constructor(){this.activePeriodSpec=inject(ActivePeriodSpec),this.cdRef=inject(ChangeDetectorRef),this.destroy=inject(DestroyRef),this.facade=inject(BuilderFacade),this.sessionStorage=inject(SESSION_STORAGE),this.applicationType=this.sessionStorage.getItem("application-type")||"sheet",this.orientation=this.sessionStorage.getItem("orientation")||"portrait",this.drawerLockedClose=!1,this.gridScope="simulator",this.mode=this.sessionStorage.getItem("mode")||"edit",this.previewMode=this.sessionStorage.getItem("preview-mode")||"desktop",this.drawerIsOpen=!0,this.selectedComponentId$=new BehaviorSubject(null),this.busyUpdating$=this.facade.busyUpdating$,this.component$=this.facade.getComponent(this.pageId),this.pageVersion$=this.facade.draftVersionByPageId(this.pageId),this.previewAgentsOrAssets$=this.facade.previewAgentsOrAssets$,this.previewAgentOrAsset$=this.facade.previewAgentOrAsset(this.pageVersion$)}get gridClasses(){return this.previewMode==="mobile"?["mobile"]:[]}get pageId(){return"page"}ngOnInit(){this.pageVersion$.pipe(takeUntilDestroyed(this.destroy)).subscribe(pageVersion=>{this.pageVersion=pageVersion,this.pageVersionId=pageVersion.publicId}),this.facade.selectedPeriodSpec(of(this.pageId)).pipe(takeUntilDestroyed(this.destroy)).subscribe(periodSpec=>{this.periodSpecs=__spreadProps(__spreadValues({},this.periodSpecs),{selected:periodSpec}),this.activePeriodSpec.setPeriodSpec(periodSpec,this.gridScope),this.zoomOutIsVisible=this.getZoomOutIsVisible(),this.cdRef.markForCheck()}),this.activePeriodSpec.inScopeOf(this.gridScope).pipe(takeUntilDestroyed(this.destroy)).subscribe(periodSpec=>{this.periodSpecs=__spreadProps(__spreadValues({},this.periodSpecs),{active:periodSpec}),this.zoomOutIsVisible=this.getZoomOutIsVisible(),this.cdRef.markForCheck()}),this.selectedComponentId$.pipe(distinctUntilChanged(),switchMap(id=>combineLatest([this.facade.pageComponent(id),this.facade.pageComponentTemplate(id)])),takeUntilDestroyed(this.destroy)).subscribe(([component,template])=>{this.selectedComponent=component,this.selectedComponentTemplate=template,this.cdRef.markForCheck()}),this.previewAgentOrAsset$.pipe(takeUntilDestroyed(this.destroy)).subscribe(agentOrAsset=>{this.previewAgentOrAsset=agentOrAsset,this.cdRef.markForCheck()}),this.facade.getComponentName(this.pageId).pipe(takeUntilDestroyed(this.destroy)).subscribe(name=>{this.componentName=name}),this.facade.loadAgents(),this.facade.loadAssets(),this.facade.loadCustomProperties(),this.facade.loadGroups(),this.facade.loadPageComponentTemplates(),this.facade.loadPage(this.pageId),this.facade.loadRoles(),this.destroy.onDestroy(()=>{this.facade.reset()})}handleSelectionChange(componentId){this.selectedComponentId$.next(componentId)}handleComponentChanges(components){let updates=components.reduce((acc,component)=>this.previewMode==="desktop"&&component.dimensions?.type==="sheet"?[...acc,pick_default(component,["publicId","dimensions.type","dimensions.left","dimensions.top","dimensions.rows","dimensions.cols"])]:this.previewMode==="mobile"&&component.dimensions?.type==="sheet"?[...acc,pick_default(component,["publicId","dimensions.type","dimensions.mobileCols","dimensions.mobileHeight","dimensions.mobileLeft","dimensions.mobileOrder"])]:component.dimensions?.type==="report"?[...acc,pick_default(component,["publicId","dimensions.type","dimensions.left","dimensions.top","dimensions.rows","dimensions.cols"])]:acc,[]);updates.length>0&&(updates.length===1?this.facade.updateComponent(updates[0].publicId,omit_default(updates[0],["publicId"])):this.facade.updateComponentList(updates))}updateComponent(component){this.facade.updateComponent(component.publicId,omit_default(component,["publicId"]))}updateComponentSize({componentId,height}){this.facade.updateComponent(componentId,{dimensions:{type:"card",height}})}selectPreviewAgentOrAsset(publicId){this.previewAgentOrAsset?.publicId!==publicId&&this.facade.updatePreviewAgentOrAsset(this.pageVersionId,publicId==="none"?null:publicId)}setApplicationType(newApplicationType){this.applicationType=newApplicationType,this.sessionStorage.setItem("application-type",newApplicationType),this.facade.reloadDimensions(this.pageId,newApplicationType);let mode=null,remember=!0;switch(newApplicationType){case"report":mode="edit",remember=!1;break;case"standalone":mode="preview",remember=!1;break}mode||(mode=this.sessionStorage.getItem("mode")||null),mode&&this.setMode(mode,remember)}setPreviewMode(newPreviewMode){this.previewMode=newPreviewMode,this.sessionStorage.setItem("preview-mode",newPreviewMode)}setOrientation(newOrientation){this.orientation=newOrientation,this.sessionStorage.setItem("orientation",newOrientation);let component=this.pageVersion.components?.[0];component?.dimensions?.type==="report"&&this.facade.updateComponent(component.publicId,{dimensions:__spreadProps(__spreadValues({},component.dimensions),{type:"report",left:0,top:3,cols:newOrientation==="landscape"?8:6,rows:6})})}getZoomOutIsVisible(){return this.periodSpecs?!isEqual_default(this.periodSpecs.active,this.periodSpecs.selected):!1}setMode(newMode,rememberMode=!0){this.mode=newMode,rememberMode&&this.sessionStorage.setItem("mode",newMode)}setDrawerIsOpen(gridItemIsMoving){this.drawerIsOpen=!gridItemIsMoving}toggleDrawerLock(){this.drawerLockedClose=!this.drawerLockedClose}toggleMode(){this.setMode(this.mode==="preview"?"edit":"preview")}updateSelectedPeriodSpec(periodSpec){this.facade.updateSelectedPeriodSpec(periodSpec)}};_BuilderComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_BuilderComponent)},_BuilderComponent.\u0275cmp=\u0275\u0275defineComponent({type:_BuilderComponent,selectors:[["ix-builder"]],viewQuery:function(rf,ctx){if(rf&1&&\u0275\u0275viewQuery(ComponentGridComponent,5),rf&2){let _t;\u0275\u0275queryRefresh(_t=\u0275\u0275loadQuery())&&(ctx.componentGrid=_t.first)}},decls:2,vars:3,consts:[["standaloneContent",""],["fxFlex","","fxLayout","column",1,"ix-surface"],["ixComponentGridFocus",""],["fxFlex",""],["mat-icon-button","","routerLink","/settings","matTooltip","Settings"],["ixComponentGridFocus","",1,"second"],[3,"selectionChange","mousedown","emptyLabel","noneOption","stroked","value","agentsOrAssets"],[3,"periodSpecSelected","mousedown","deviceTimeZone","periodSpecs"],[1,"screen-toggle-group",3,"value"],[1,"orientation-toggle-group",3,"value"],["mat-stroked-button","","type","button",1,"mode-button"],[1,"application-type-toggle-group",3,"mousedown","value"],["value","sheet",3,"valueChange","matTooltip"],["value","card",3,"valueChange","matTooltip"],["svgIcon","card_outline"],["value","report",3,"valueChange","matTooltip"],["value","standalone",3,"valueChange","matTooltip"],["fxFlex","",1,"ix-content"],["mode","over","position","end",3,"opened","ngClass"],["mat-icon-button","","disableRipple","true"],["fxLayout","column"],[3,"ngTemplateOutlet"],[1,"screen-toggle-group",3,"mousedown","value"],["value","desktop",3,"valueChange","matTooltip"],["value","mobile",3,"valueChange","matTooltip"],[1,"orientation-toggle-group",3,"mousedown","value"],["value","portrait",3,"valueChange","matTooltip"],["value","landscape",3,"valueChange","matTooltip"],["mat-stroked-button","","type","button",1,"mode-button",3,"click","mousedown"],[3,"component","template"],["mat-icon-button","","disableRipple","true",3,"click"],[3,"update","component","template"],["ixComponentGridFocus","",1,"grid-container",3,"ngClass"],[1,"preview-grid-container",3,"ngClass"],["ixBackendComponentBroker","","ixLoggingDataBroker","","ixResourceDataBroker","","ixObjectStorageBroker","","ixComponentGridMode","edit","ixComponentContextCleanup","","pagePageId","pagepage",3,"ixComponentGridScope","agentOrAssetId","mobile","pageVersionId","selectedComponentId","ngClass"],["ixBackendComponentBroker","","ixLoggingDataBroker","","ixResourceDataBroker","","ixObjectStorageBroker","","ixComponentContextCleanup","","ixComponentGridMode","edit","pagePageId","pagepage",3,"ixComponentGridScope","agentOrAssetId","pageVersionId","selectedComponentId"],["ixBackendComponentBroker","","ixLoggingDataBroker","","ixResourceDataBroker","","ixObjectStorageBroker","","ixComponentGridMode","edit","ixComponentContextCleanup","","pagePageId","pagepage","applicationType","report",1,"report-grid","mat-elevation-z2",3,"ixComponentGridScope","agentOrAssetId","pageVersionId","selectedComponentId","ngClass","orientation","mobile"],["ixBackendComponentBroker","","ixLoggingDataBroker","","ixResourceDataBroker","","ixObjectStorageBroker","","ixComponentGridMode","edit","ixComponentContextCleanup","","pagePageId","pagepage",3,"selectionChange","componentChanges","movingGridItem","ixComponentGridScope","agentOrAssetId","mobile","pageVersionId","selectedComponentId","ngClass"],["ixBackendComponentBroker","","ixLoggingDataBroker","","ixResourceDataBroker","","ixObjectStorageBroker","","ixComponentContextCleanup","","ixComponentGridMode","edit","pagePageId","pagepage",3,"componentResize","selectionChange","ixComponentGridScope","agentOrAssetId","pageVersionId","selectedComponentId"],["ixBackendComponentBroker","","ixLoggingDataBroker","","ixResourceDataBroker","","ixObjectStorageBroker","","ixComponentGridMode","edit","ixComponentContextCleanup","","pagePageId","pagepage","class","report-grid mat-elevation-z2","applicationType","report",3,"ixComponentGridScope","agentOrAssetId","pageVersionId","selectedComponentId","ngClass","orientation","mobile","selectionChange","componentChanges","movingGridItem",4,"ixReloadOnValueChange"],["ixBackendComponentBroker","","ixLoggingDataBroker","","ixResourceDataBroker","","ixObjectStorageBroker","","ixComponentGridMode","edit","ixComponentContextCleanup","","pagePageId","pagepage","applicationType","report",1,"report-grid","mat-elevation-z2",3,"selectionChange","componentChanges","movingGridItem","ixComponentGridScope","agentOrAssetId","pageVersionId","selectedComponentId","ngClass","orientation","mobile"],[1,"ix-large-section","preview"],[1,"preview"],["ixBackendComponentBroker","","ixLoggingDataBroker","","ixResourceDataBroker","","ixObjectStorageBroker","","ixComponentContextCleanup","","ixComponentGridMode","view",3,"ixComponentGridScope","agentOrAssetId","mobile","pageVersionId","ngClass"],["ixBackendComponentBroker","","ixLoggingDataBroker","","ixResourceDataBroker","","ixObjectStorageBroker","","ixComponentContextCleanup","","ixComponentGridMode","view",3,"ixComponentGridScope","agentOrAssetId","pageVersionId"],[3,"ixComponentGridScope"],["ixBackendComponentBroker","","ixLoggingDataBroker","","ixResourceDataBroker","","ixObjectStorageBroker","","ixComponentContextCleanup","",1,"standalone",3,"click","ixComponentGridScope"],[3,"component",4,"ixReloadOnValueChange"],[3,"component"]],template:function(rf,ctx){if(rf&1&&(\u0275\u0275template(0,BuilderComponent_Conditional_0_Template,44,37,"div",1),\u0275\u0275pipe(1,"async")),rf&2){let tmp_0_0;\u0275\u0275conditional((tmp_0_0=\u0275\u0275pipeBind1(1,1,ctx.pageVersion$))?0:-1,tmp_0_0)}},dependencies:[AlertDialogModule,AsyncPipe,ButtonToggleModule,ButtonToggleComponent,ButtonToggleGroupComponent,ComponentLoaderModule,ComponentLoaderComponent,DeviceSelectButtonComponent,FlexModule,DefaultLayoutDirective,DefaultFlexDirective,MatButtonModule,MatButton,MatIconButton,MatFormFieldModule,MatIconModule,MatIcon,MatInputModule,MatSidenavModule,MatDrawer,MatDrawerContainer,MatDrawerContent,MatToolbarModule,MatToolbar,MatTooltipModule,MatTooltip,NgClass,NgTemplateOutlet,PagesModule,ComponentGridComponent,CardComponentGridComponent,SimpleComponentGridComponent,SimpleCardComponentGridComponent,ComponentPropertiesComponent,ComponentGridModeDirective,ComponentGridScopeDirective,ComponentContextCleanupDirective,BackendComponentBrokerDirective,LoggingDataBrokerDirective,ObjectStorageBrokerDirective,ResourceDataBrokerDirective,PeriodControlsComponent,ComponentGridFocusDirective,PeriodFieldsetModule,ReloadTriggerModule,ReloadOnValueChangeDirective,RouterModule,RouterLink,TranslateModule,TranslatePipe],styles:['[_nghost-%COMP%]{height:100%;width:100%}[_nghost-%COMP%] .mat-toolbar[_ngcontent-%COMP%]{border-bottom:1px solid var(--mat-sys-surface-variant)}[_nghost-%COMP%] .mat-toolbar[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{padding-right:16px}[_nghost-%COMP%] .mat-toolbar[_ngcontent-%COMP%] ix-device-select-button[_ngcontent-%COMP%]{margin-right:8px;max-width:calc(100% - 340px)}[_nghost-%COMP%] .mat-toolbar.second[_ngcontent-%COMP%]{--mat-toolbar-standard-height: 56px;--mdc-outlined-button-container-height: 36px;border-bottom:1px solid var(--mat-sys-surface-variant)}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%]{height:100%}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .mat-drawer-backdrop{display:none}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .mat-drawer[_ngcontent-%COMP%]{height:100%;width:300px;border-left:1px solid var(--mat-sys-surface-variant)}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .mat-drawer[_ngcontent-%COMP%] .mat-drawer-inner-container{height:100%;flex-direction:column}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .mat-drawer[_ngcontent-%COMP%] .mat-drawer-inner-container>.mat-toolbar{height:40px!important}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .mat-drawer[_ngcontent-%COMP%] .mat-drawer-inner-container>.mat-toolbar h1{color:var(--body-color);font-size:16px;font-weight:400}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .mat-drawer.locked-drawer[_ngcontent-%COMP%]{--mat-sidenav-container-elevation-shadow: 0px 8px 10px -5px rgb(0 0 0 / 20%), 0px 16px 24px 2px rgb(0 0 0 / 14%), 0px 6px 30px 5px rgb(0 0 0 / 12%);width:50px;height:40px;border-top-left-radius:25px;border-bottom-left-radius:25px;border-left:none}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .mat-drawer[_ngcontent-%COMP%] .mat-mdc-icon-button[_ngcontent-%COMP%] .mat-mdc-button-focus-overlay{display:none}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .grid-container[_ngcontent-%COMP%]{height:100%;overflow-x:auto;background-color:#f5f5f5}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .grid-container[_ngcontent-%COMP%] .grid[_ngcontent-%COMP%]{height:100%}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .grid-container[_ngcontent-%COMP%] ix-component-grid[_ngcontent-%COMP%]{margin:0 auto;height:100%}@media (min-width: 960px){[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .grid-container[_ngcontent-%COMP%] ix-component-grid[_ngcontent-%COMP%]{max-width:970px}}@media (min-width: 1280px){[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .grid-container[_ngcontent-%COMP%] ix-component-grid[_ngcontent-%COMP%]{max-width:1200px}}@media (min-width: 1920px){[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .grid-container[_ngcontent-%COMP%] ix-component-grid[_ngcontent-%COMP%]{max-width:1600px}}@media screen and (min-width: 2251px){[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .grid-container[_ngcontent-%COMP%] ix-component-grid[_ngcontent-%COMP%]{max-width:2000px}}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .grid-container[_ngcontent-%COMP%] ix-component-grid.desktop[_ngcontent-%COMP%]{min-width:970px}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .grid-container[_ngcontent-%COMP%] ix-component-grid.mobile[_ngcontent-%COMP%]{max-width:480px}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .preview-grid-container[_ngcontent-%COMP%]{height:100%;width:100%;box-sizing:border-box;overflow-x:auto;display:flex;flex-direction:column;background-color:var(--detail-page-bg)}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .preview-grid-container.card[_ngcontent-%COMP%]{place-content:center}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .preview-grid-container.card[_ngcontent-%COMP%] .preview[_ngcontent-%COMP%]{display:flex;place-items:center}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .preview-grid-container[_ngcontent-%COMP%] .preview[_ngcontent-%COMP%]{height:100%}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .preview-grid-container[_ngcontent-%COMP%] .preview[_ngcontent-%COMP%] ix-simple-component-grid[_ngcontent-%COMP%]{height:100%;box-sizing:border-box;margin:0 auto}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .preview-grid-container[_ngcontent-%COMP%] .preview[_ngcontent-%COMP%] ix-simple-component-grid.desktop[_ngcontent-%COMP%]{min-width:970px}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .preview-grid-container[_ngcontent-%COMP%] .preview[_ngcontent-%COMP%] ix-simple-component-grid.mobile[_ngcontent-%COMP%]{max-width:480px;border-left:1px solid rgba(0,0,0,.08);border-right:1px solid rgba(0,0,0,.08)}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .preview-grid-container[_ngcontent-%COMP%] .preview[_ngcontent-%COMP%] ix-simple-card-component-grid[_ngcontent-%COMP%]{width:300px;padding:0;margin:0 auto;box-sizing:border-box;background-color:var(--card-bg);color:var(--card-color);color-scheme:var(--card-color-scheme);border:var(--card-border-width) solid var(--card-border-color);border-radius:8px}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .standalone[_ngcontent-%COMP%]{height:100%}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .standalone[_ngcontent-%COMP%] ix-component-loader[_ngcontent-%COMP%]{overflow:auto}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] ix-page-properties[_ngcontent-%COMP%]{padding:20px 16px}[_nghost-%COMP%] .select-button[_ngcontent-%COMP%]{padding-left:8px;padding-right:2px;margin-right:8px}[_nghost-%COMP%] .select-button[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]:first-child{margin-right:6px}[_nghost-%COMP%] .screen-toggle-group[_ngcontent-%COMP%], [_nghost-%COMP%] .orientation-toggle-group[_ngcontent-%COMP%], [_nghost-%COMP%] .application-type-toggle-group[_ngcontent-%COMP%]{margin-left:12px}[_nghost-%COMP%] .mode-button[_ngcontent-%COMP%]{margin-left:12px}[_nghost-%COMP%] .mode-button[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]:first-child{margin-right:6px}[_nghost-%COMP%] .report-grid[_ngcontent-%COMP%]{--card-bg: #fff;--card-border-color: rgb(0 0 0 / 12%);--card-border-width: 1px;--card-color: rgb(0 0 0 / 87%);--card-color-scheme: "light";margin:16px auto!important;background:#fff;height:842pt!important;width:595pt}[_nghost-%COMP%] .report-grid.landscape[_ngcontent-%COMP%]{height:595pt!important;width:842pt}[_nghost-%COMP%] .report-grid[_ngcontent-%COMP%] .canvas gridster .gridster-row{width:calc(100% - 76px)!important}[_nghost-%COMP%] .report-grid[_ngcontent-%COMP%] .gridster-column, [_nghost-%COMP%] .report-grid[_ngcontent-%COMP%] .gridster-row{border-color:#00000014}'],changeDetection:0});let BuilderComponent2=_BuilderComponent;return BuilderComponent2})();var BuilderGuard=(()=>{let _BuilderGuard=class _BuilderGuard{constructor(store){this.store=store}canActivate(){return forkJoin([this.getMyUser(),this.getMyCompany()]).pipe(map(()=>!0),take(1))}getMyUser(){return this._loadIfAbsent(selectMyUser,loadMe3())}getMyCompany(){return this._loadIfAbsent(selectMyCompany,loadMe())}_loadIfAbsent(selector3,action){return this.store.select(selector3).pipe(tap(entity=>{entity||this.store.dispatch(action)}),first(entity=>!!entity),map(()=>!0))}};_BuilderGuard.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_BuilderGuard)(\u0275\u0275inject(Store))},_BuilderGuard.\u0275prov=\u0275\u0275defineInjectable({token:_BuilderGuard,factory:_BuilderGuard.\u0275fac,providedIn:"root"});let BuilderGuard2=_BuilderGuard;return BuilderGuard2})();var LoginExpiredComponent=(()=>{let _LoginExpiredComponent=class _LoginExpiredComponent{constructor(document2,storage){this.document=document2,this.storage=storage}useMockData(){this.storage.forget("api-data-provider"),this.storage.forget("company"),this.reload()}reload(){this.document.location.href="/"}};_LoginExpiredComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_LoginExpiredComponent)(\u0275\u0275directiveInject(DOCUMENT),\u0275\u0275directiveInject(StorageService))},_LoginExpiredComponent.\u0275cmp=\u0275\u0275defineComponent({type:_LoginExpiredComponent,selectors:[["ix-login-expired"]],standalone:!1,decls:18,vars:0,consts:[["fxFlex","","fxLayout","column","fxLayoutAlign","center center",1,"ix-surface"],[1,"ix-status-card"],[1,"ix-status-card__icon"],["type","button","mat-button","","color","primary",3,"click"]],template:function(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"div",0)(1,"mat-card",1)(2,"div",2)(3,"mat-icon"),\u0275\u0275text(4,"error"),\u0275\u0275elementEnd()(),\u0275\u0275elementStart(5,"mat-card-header")(6,"mat-card-title"),\u0275\u0275text(7,"Login expired"),\u0275\u0275elementEnd(),\u0275\u0275elementStart(8,"mat-card-subtitle"),\u0275\u0275text(9," Please re-authenticate via the command line "),\u0275\u0275elementStart(10,"pre"),\u0275\u0275text(11,"npx cdk login"),\u0275\u0275elementEnd(),\u0275\u0275text(12," and reload or revert to using API mock data. "),\u0275\u0275elementEnd()(),\u0275\u0275elementStart(13,"mat-card-actions")(14,"button",3),\u0275\u0275listener("click",function(){return ctx.useMockData()}),\u0275\u0275text(15,"Use mock data"),\u0275\u0275elementEnd(),\u0275\u0275elementStart(16,"button",3),\u0275\u0275listener("click",function(){return ctx.reload()}),\u0275\u0275text(17,"Reload"),\u0275\u0275elementEnd()()()())},dependencies:[DefaultLayoutDirective,DefaultLayoutAlignDirective,DefaultFlexDirective,MatButton,MatCard,MatCardActions,MatCardHeader,MatCardSubtitle,MatCardTitle,MatIcon],styles:["[_nghost-%COMP%]{width:100%;height:100%}"],changeDetection:0});let LoginExpiredComponent3=_LoginExpiredComponent;return LoginExpiredComponent3})();var LoginExpiredCanActivateGuard=(()=>{let _LoginExpiredCanActivateGuard=class _LoginExpiredCanActivateGuard{constructor(router,storage){this.router=router,this.storage=storage}canActivate(route){return this.isAuthenticated(route)}isAuthenticated(route){return of(this.storage.has("auth")).pipe(tap(authenticated=>{if(authenticated)if(route.queryParamMap.has("next")){let next=route.queryParams.next;this.router.navigateByUrl(next).then(success=>{success||this.router.navigate(["/"])})}else this.router.navigate(["/"])}),map(authenticated=>!authenticated))}};_LoginExpiredCanActivateGuard.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_LoginExpiredCanActivateGuard)(\u0275\u0275inject(Router),\u0275\u0275inject(StorageService))},_LoginExpiredCanActivateGuard.\u0275prov=\u0275\u0275defineInjectable({token:_LoginExpiredCanActivateGuard,factory:_LoginExpiredCanActivateGuard.\u0275fac,providedIn:"root"});let LoginExpiredCanActivateGuard2=_LoginExpiredCanActivateGuard;return LoginExpiredCanActivateGuard2})();var LoginExpiredModule=(()=>{let _LoginExpiredModule=class _LoginExpiredModule{};_LoginExpiredModule.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_LoginExpiredModule)},_LoginExpiredModule.\u0275mod=\u0275\u0275defineNgModule({type:_LoginExpiredModule}),_LoginExpiredModule.\u0275inj=\u0275\u0275defineInjector({imports:[SharedModule]});let LoginExpiredModule2=_LoginExpiredModule;return LoginExpiredModule2})();var ManifestInvalidComponent=(()=>{let _ManifestInvalidComponent=class _ManifestInvalidComponent{};_ManifestInvalidComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_ManifestInvalidComponent)},_ManifestInvalidComponent.\u0275cmp=\u0275\u0275defineComponent({type:_ManifestInvalidComponent,selectors:[["ix-manifest-invalid"]],standalone:!1,decls:13,vars:0,consts:[["fxFlex","","fxLayout","column","fxLayoutAlign","center center",1,"ix-surface"],[1,"ix-status-card"],[1,"ix-status-card__icon"]],template:function(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"div",0)(1,"mat-card",1)(2,"div",2)(3,"mat-icon"),\u0275\u0275text(4,"error"),\u0275\u0275elementEnd()(),\u0275\u0275elementStart(5,"mat-card-header")(6,"mat-card-title"),\u0275\u0275text(7,"Manifest invalid"),\u0275\u0275elementEnd(),\u0275\u0275elementStart(8,"mat-card-subtitle"),\u0275\u0275text(9," Schema validation for the "),\u0275\u0275elementStart(10,"pre"),\u0275\u0275text(11,"manifest.json"),\u0275\u0275elementEnd(),\u0275\u0275text(12," file failed. "),\u0275\u0275elementEnd()()()())},dependencies:[DefaultLayoutDirective,DefaultLayoutAlignDirective,DefaultFlexDirective,MatCard,MatCardHeader,MatCardSubtitle,MatCardTitle,MatIcon],styles:["[_nghost-%COMP%]{width:100%;height:100%}"],changeDetection:0});let ManifestInvalidComponent3=_ManifestInvalidComponent;return ManifestInvalidComponent3})();var TwoFactorAuthRequiredComponent=(()=>{let _TwoFactorAuthRequiredComponent=class _TwoFactorAuthRequiredComponent{constructor(document2,storage){this.document=document2,this.storage=storage}switchCompany(){this.storage.forget("api-data-provider"),this.storage.forget("company"),this.document.location.href="/settings/general"}useMockData(){this.storage.forget("api-data-provider"),this.storage.forget("company"),this.document.location.href="/"}};_TwoFactorAuthRequiredComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_TwoFactorAuthRequiredComponent)(\u0275\u0275directiveInject(DOCUMENT),\u0275\u0275directiveInject(StorageService))},_TwoFactorAuthRequiredComponent.\u0275cmp=\u0275\u0275defineComponent({type:_TwoFactorAuthRequiredComponent,selectors:[["ix-two-factor-auth-required"]],decls:13,vars:0,consts:[["fxFlex","","fxLayout","column","fxLayoutAlign","center center",1,"ix-surface"],[1,"ix-status-card"],[1,"ix-status-card__icon"],["type","button","mat-button","","color","primary",3,"click"]],template:function(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"div",0)(1,"mat-card",1)(2,"div",2)(3,"mat-icon"),\u0275\u0275text(4,"error"),\u0275\u0275elementEnd()(),\u0275\u0275elementStart(5,"mat-card-header")(6,"mat-card-title"),\u0275\u0275text(7,"Two-factor authentication is required"),\u0275\u0275elementEnd()(),\u0275\u0275elementStart(8,"mat-card-actions")(9,"button",3),\u0275\u0275listener("click",function(){return ctx.useMockData()}),\u0275\u0275text(10,"Use mock data"),\u0275\u0275elementEnd(),\u0275\u0275elementStart(11,"button",3),\u0275\u0275listener("click",function(){return ctx.switchCompany()}),\u0275\u0275text(12,"Switch company"),\u0275\u0275elementEnd()()()())},dependencies:[FlexModule,DefaultLayoutDirective,DefaultLayoutAlignDirective,DefaultFlexDirective,MatButtonModule,MatButton,MatCardModule,MatCard,MatCardActions,MatCardHeader,MatCardTitle,MatIconModule,MatIcon],styles:["[_nghost-%COMP%]{width:100%;height:100%}"],changeDetection:0});let TwoFactorAuthRequiredComponent2=_TwoFactorAuthRequiredComponent;return TwoFactorAuthRequiredComponent2})();var routes=[{path:"",canActivate:[AppGuard],children:[{path:"",component:BuilderComponent,canActivate:__use_api_mocks__?[BuilderGuard]:[AuthCompanyGuard,BuilderGuard]},{path:"settings",loadChildren:()=>import("./chunk-W2GDKE7S.js").then(m=>m.SettingsModule)},...__use_api_mocks__?[]:[{path:"login",component:LoginExpiredComponent,canActivate:[LoginExpiredCanActivateGuard]},{path:"my-companies",redirectTo:"settings"},{path:"two-factor-auth-required",component:TwoFactorAuthRequiredComponent}]]},{path:"manifest-invalid",component:ManifestInvalidComponent},{path:"**",redirectTo:""}];var AppRoutingConfig={routerState:RouterState?.Minimal,serializer:CustomRouterStateSerializer};var AppRoutingModule=(()=>{let _AppRoutingModule=class _AppRoutingModule{};_AppRoutingModule.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_AppRoutingModule)},_AppRoutingModule.\u0275mod=\u0275\u0275defineNgModule({type:_AppRoutingModule}),_AppRoutingModule.\u0275inj=\u0275\u0275defineInjector({imports:[RouterModule.forRoot(routes,{onSameUrlNavigation:"reload",preloadingStrategy:CustomPreloadingStrategy}),StoreRouterConnectingModule.forRoot(AppRoutingConfig),RouterModule]});let AppRoutingModule2=_AppRoutingModule;return AppRoutingModule2})();var PERFORM_ACTION="PERFORM_ACTION",REFRESH="REFRESH",RESET="RESET",ROLLBACK="ROLLBACK",COMMIT="COMMIT",SWEEP="SWEEP",TOGGLE_ACTION="TOGGLE_ACTION",SET_ACTIONS_ACTIVE="SET_ACTIONS_ACTIVE",JUMP_TO_STATE="JUMP_TO_STATE",JUMP_TO_ACTION="JUMP_TO_ACTION",IMPORT_STATE="IMPORT_STATE",LOCK_CHANGES="LOCK_CHANGES",PAUSE_RECORDING="PAUSE_RECORDING",PerformAction=class{constructor(action,timestamp2){if(this.action=action,this.timestamp=timestamp2,this.type=PERFORM_ACTION,typeof action.type>"u")throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?')}},Refresh=class{constructor(){this.type=REFRESH}},Reset=class{constructor(timestamp2){this.timestamp=timestamp2,this.type=RESET}},Rollback=class{constructor(timestamp2){this.timestamp=timestamp2,this.type=ROLLBACK}},Commit=class{constructor(timestamp2){this.timestamp=timestamp2,this.type=COMMIT}},Sweep=class{constructor(){this.type=SWEEP}},ToggleAction=class{constructor(id){this.id=id,this.type=TOGGLE_ACTION}};var JumpToState=class{constructor(index){this.index=index,this.type=JUMP_TO_STATE}},JumpToAction=class{constructor(actionId){this.actionId=actionId,this.type=JUMP_TO_ACTION}},ImportState=class{constructor(nextLiftedState){this.nextLiftedState=nextLiftedState,this.type=IMPORT_STATE}},LockChanges=class{constructor(status){this.status=status,this.type=LOCK_CHANGES}},PauseRecording=class{constructor(status){this.status=status,this.type=PAUSE_RECORDING}};var STORE_DEVTOOLS_CONFIG=new InjectionToken("@ngrx/store-devtools Options"),INITIAL_OPTIONS=new InjectionToken("@ngrx/store-devtools Initial Config");function noMonitor(){return null}var DEFAULT_NAME="NgRx Store DevTools";function createConfig(optionsInput){let DEFAULT_OPTIONS2={maxAge:!1,monitor:noMonitor,actionSanitizer:void 0,stateSanitizer:void 0,name:DEFAULT_NAME,serialize:!1,logOnly:!1,autoPause:!1,trace:!1,traceLimit:75,features:{pause:!0,lock:!0,persist:!0,export:!0,import:"custom",jump:!0,skip:!0,reorder:!0,dispatch:!0,test:!0},connectInZone:!1},options=typeof optionsInput=="function"?optionsInput():optionsInput,logOnly=options.logOnly?{pause:!0,export:!0,test:!0}:!1,features2=options.features||logOnly||DEFAULT_OPTIONS2.features;features2.import===!0&&(features2.import="custom");let config3=Object.assign({},DEFAULT_OPTIONS2,{features:features2},options);if(config3.maxAge&&config3.maxAge<2)throw new Error(`Devtools 'maxAge' cannot be less than 2, got ${config3.maxAge}`);return config3}function difference(first2,second){return first2.filter(item=>second.indexOf(item)<0)}function unliftState(liftedState){let{computedStates,currentStateIndex}=liftedState;if(currentStateIndex>=computedStates.length){let{state:state2}=computedStates[computedStates.length-1];return state2}let{state}=computedStates[currentStateIndex];return state}function liftAction(action){return new PerformAction(action,+Date.now())}function sanitizeActions(actionSanitizer,actions){return Object.keys(actions).reduce((sanitizedActions,actionIdx)=>{let idx=Number(actionIdx);return sanitizedActions[idx]=sanitizeAction(actionSanitizer,actions[idx],idx),sanitizedActions},{})}function sanitizeAction(actionSanitizer,action,actionIdx){return __spreadProps(__spreadValues({},action),{action:actionSanitizer(action.action,actionIdx)})}function sanitizeStates(stateSanitizer,states){return states.map((computedState,idx)=>({state:sanitizeState(stateSanitizer,computedState.state,idx),error:computedState.error}))}function sanitizeState(stateSanitizer,state,stateIdx){return stateSanitizer(state,stateIdx)}function shouldFilterActions(config3){return config3.predicate||config3.actionsSafelist||config3.actionsBlocklist}function filterLiftedState(liftedState,predicate,safelist,blocklist){let filteredStagedActionIds=[],filteredActionsById={},filteredComputedStates=[];return liftedState.stagedActionIds.forEach((id,idx)=>{let liftedAction=liftedState.actionsById[id];liftedAction&&(idx&&isActionFiltered(liftedState.computedStates[idx],liftedAction,predicate,safelist,blocklist)||(filteredActionsById[id]=liftedAction,filteredStagedActionIds.push(id),filteredComputedStates.push(liftedState.computedStates[idx])))}),__spreadProps(__spreadValues({},liftedState),{stagedActionIds:filteredStagedActionIds,actionsById:filteredActionsById,computedStates:filteredComputedStates})}function isActionFiltered(state,action,predicate,safelist,blockedlist){let predicateMatch=predicate&&!predicate(state,action.action),safelistMatch=safelist&&!action.action.type.match(safelist.map(s2=>escapeRegExp(s2)).join("|")),blocklistMatch=blockedlist&&action.action.type.match(blockedlist.map(s2=>escapeRegExp(s2)).join("|"));return predicateMatch||safelistMatch||blocklistMatch}function escapeRegExp(s2){return s2.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function injectZoneConfig(connectInZone){return{ngZone:connectInZone?inject(NgZone):null,connectInZone}}var DevtoolsDispatcher=(()=>{let _DevtoolsDispatcher=class _DevtoolsDispatcher extends ActionsSubject{};_DevtoolsDispatcher.\u0275fac=(()=>{let \u0275DevtoolsDispatcher_BaseFactory;return function(__ngFactoryType__){return(\u0275DevtoolsDispatcher_BaseFactory||(\u0275DevtoolsDispatcher_BaseFactory=\u0275\u0275getInheritedFactory(_DevtoolsDispatcher)))(__ngFactoryType__||_DevtoolsDispatcher)}})(),_DevtoolsDispatcher.\u0275prov=\u0275\u0275defineInjectable({token:_DevtoolsDispatcher,factory:_DevtoolsDispatcher.\u0275fac});let DevtoolsDispatcher2=_DevtoolsDispatcher;return DevtoolsDispatcher2})(),ExtensionActionTypes={START:"START",DISPATCH:"DISPATCH",STOP:"STOP",ACTION:"ACTION"},REDUX_DEVTOOLS_EXTENSION=new InjectionToken("@ngrx/store-devtools Redux Devtools Extension"),DevtoolsExtension=(()=>{let _DevtoolsExtension=class _DevtoolsExtension{constructor(devtoolsExtension,config3,dispatcher){this.config=config3,this.dispatcher=dispatcher,this.zoneConfig=injectZoneConfig(this.config.connectInZone),this.devtoolsExtension=devtoolsExtension,this.createActionStreams()}notify(action,state){if(this.devtoolsExtension)if(action.type===PERFORM_ACTION){if(state.isLocked||state.isPaused)return;let currentState=unliftState(state);if(shouldFilterActions(this.config)&&isActionFiltered(currentState,action,this.config.predicate,this.config.actionsSafelist,this.config.actionsBlocklist))return;let sanitizedState=this.config.stateSanitizer?sanitizeState(this.config.stateSanitizer,currentState,state.currentStateIndex):currentState,sanitizedAction=this.config.actionSanitizer?sanitizeAction(this.config.actionSanitizer,action,state.nextActionId):action;this.sendToReduxDevtools(()=>this.extensionConnection.send(sanitizedAction,sanitizedState))}else{let sanitizedLiftedState=__spreadProps(__spreadValues({},state),{stagedActionIds:state.stagedActionIds,actionsById:this.config.actionSanitizer?sanitizeActions(this.config.actionSanitizer,state.actionsById):state.actionsById,computedStates:this.config.stateSanitizer?sanitizeStates(this.config.stateSanitizer,state.computedStates):state.computedStates});this.sendToReduxDevtools(()=>this.devtoolsExtension.send(null,sanitizedLiftedState,this.getExtensionConfig(this.config)))}}createChangesObservable(){return this.devtoolsExtension?new Observable(subscriber=>{let connection=this.zoneConfig.connectInZone?this.zoneConfig.ngZone.runOutsideAngular(()=>this.devtoolsExtension.connect(this.getExtensionConfig(this.config))):this.devtoolsExtension.connect(this.getExtensionConfig(this.config));return this.extensionConnection=connection,connection.init(),connection.subscribe(change=>subscriber.next(change)),connection.unsubscribe}):EMPTY}createActionStreams(){let changes$=this.createChangesObservable().pipe(share()),start$=changes$.pipe(filter(change=>change.type===ExtensionActionTypes.START)),stop$=changes$.pipe(filter(change=>change.type===ExtensionActionTypes.STOP)),liftedActions$=changes$.pipe(filter(change=>change.type===ExtensionActionTypes.DISPATCH),map(change=>this.unwrapAction(change.payload)),concatMap(action=>action.type===IMPORT_STATE?this.dispatcher.pipe(filter(action2=>action2.type===UPDATE),timeout(1e3),debounceTime(1e3),map(()=>action),catchError(()=>of(action)),take(1)):of(action))),actionsUntilStop$=changes$.pipe(filter(change=>change.type===ExtensionActionTypes.ACTION),map(change=>this.unwrapAction(change.payload))).pipe(takeUntil(stop$)),liftedUntilStop$=liftedActions$.pipe(takeUntil(stop$));this.start$=start$.pipe(takeUntil(stop$)),this.actions$=this.start$.pipe(switchMap(()=>actionsUntilStop$)),this.liftedActions$=this.start$.pipe(switchMap(()=>liftedUntilStop$))}unwrapAction(action){return typeof action=="string"?(0,eval)(`(${action})`):action}getExtensionConfig(config3){let extensionOptions={name:config3.name,features:config3.features,serialize:config3.serialize,autoPause:config3.autoPause??!1,trace:config3.trace??!1,traceLimit:config3.traceLimit??75};return config3.maxAge!==!1&&(extensionOptions.maxAge=config3.maxAge),extensionOptions}sendToReduxDevtools(send){try{send()}catch(err){console.warn("@ngrx/store-devtools: something went wrong inside the redux devtools",err)}}};_DevtoolsExtension.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_DevtoolsExtension)(\u0275\u0275inject(REDUX_DEVTOOLS_EXTENSION),\u0275\u0275inject(STORE_DEVTOOLS_CONFIG),\u0275\u0275inject(DevtoolsDispatcher))},_DevtoolsExtension.\u0275prov=\u0275\u0275defineInjectable({token:_DevtoolsExtension,factory:_DevtoolsExtension.\u0275fac});let DevtoolsExtension2=_DevtoolsExtension;return DevtoolsExtension2})(),INIT_ACTION={type:INIT},RECOMPUTE="@ngrx/store-devtools/recompute",RECOMPUTE_ACTION={type:RECOMPUTE};function computeNextEntry(reducer44,action,state,error2,errorHandler){if(error2)return{state,error:"Interrupted by an error up the chain"};let nextState=state,nextError;try{nextState=reducer44(state,action)}catch(err){nextError=err.toString(),errorHandler.handleError(err)}return{state:nextState,error:nextError}}function recomputeStates(computedStates,minInvalidatedStateIndex,reducer44,committedState,actionsById,stagedActionIds,skippedActionIds,errorHandler,isPaused){if(minInvalidatedStateIndex>=computedStates.length&&computedStates.length===stagedActionIds.length)return computedStates;let nextComputedStates=computedStates.slice(0,minInvalidatedStateIndex),lastIncludedActionId=stagedActionIds.length-(isPaused?1:0);for(let i=minInvalidatedStateIndex;i<lastIncludedActionId;i++){let actionId=stagedActionIds[i],action=actionsById[actionId].action,previousEntry=nextComputedStates[i-1],previousState=previousEntry?previousEntry.state:committedState,previousError=previousEntry?previousEntry.error:void 0,entry=skippedActionIds.indexOf(actionId)>-1?previousEntry:computeNextEntry(reducer44,action,previousState,previousError,errorHandler);nextComputedStates.push(entry)}return isPaused&&nextComputedStates.push(computedStates[computedStates.length-1]),nextComputedStates}function liftInitialState(initialCommittedState,monitorReducer){return{monitorState:monitorReducer(void 0,{}),nextActionId:1,actionsById:{0:liftAction(INIT_ACTION)},stagedActionIds:[0],skippedActionIds:[],committedState:initialCommittedState,currentStateIndex:0,computedStates:[],isLocked:!1,isPaused:!1}}function liftReducerWith(initialCommittedState,initialLiftedState,errorHandler,monitorReducer,options={}){return reducer44=>(liftedState,liftedAction)=>{let{monitorState,actionsById,nextActionId,stagedActionIds,skippedActionIds,committedState,currentStateIndex,computedStates,isLocked,isPaused}=liftedState||initialLiftedState;liftedState||(actionsById=Object.create(actionsById));function commitExcessActions(n2){let excess=n2,idsToDelete=stagedActionIds.slice(1,excess+1);for(let i=0;i<idsToDelete.length;i++)if(computedStates[i+1].error){excess=i,idsToDelete=stagedActionIds.slice(1,excess+1);break}else delete actionsById[idsToDelete[i]];skippedActionIds=skippedActionIds.filter(id=>idsToDelete.indexOf(id)===-1),stagedActionIds=[0,...stagedActionIds.slice(excess+1)],committedState=computedStates[excess].state,computedStates=computedStates.slice(excess),currentStateIndex=currentStateIndex>excess?currentStateIndex-excess:0}function commitChanges(){actionsById={0:liftAction(INIT_ACTION)},nextActionId=1,stagedActionIds=[0],skippedActionIds=[],committedState=computedStates[currentStateIndex].state,currentStateIndex=0,computedStates=[]}let minInvalidatedStateIndex=0;switch(liftedAction.type){case LOCK_CHANGES:{isLocked=liftedAction.status,minInvalidatedStateIndex=1/0;break}case PAUSE_RECORDING:{isPaused=liftedAction.status,isPaused?(stagedActionIds=[...stagedActionIds,nextActionId],actionsById[nextActionId]=new PerformAction({type:"@ngrx/devtools/pause"},+Date.now()),nextActionId++,minInvalidatedStateIndex=stagedActionIds.length-1,computedStates=computedStates.concat(computedStates[computedStates.length-1]),currentStateIndex===stagedActionIds.length-2&&currentStateIndex++,minInvalidatedStateIndex=1/0):commitChanges();break}case RESET:{actionsById={0:liftAction(INIT_ACTION)},nextActionId=1,stagedActionIds=[0],skippedActionIds=[],committedState=initialCommittedState,currentStateIndex=0,computedStates=[];break}case COMMIT:{commitChanges();break}case ROLLBACK:{actionsById={0:liftAction(INIT_ACTION)},nextActionId=1,stagedActionIds=[0],skippedActionIds=[],currentStateIndex=0,computedStates=[];break}case TOGGLE_ACTION:{let{id:actionId}=liftedAction;skippedActionIds.indexOf(actionId)===-1?skippedActionIds=[actionId,...skippedActionIds]:skippedActionIds=skippedActionIds.filter(id=>id!==actionId),minInvalidatedStateIndex=stagedActionIds.indexOf(actionId);break}case SET_ACTIONS_ACTIVE:{let{start:start3,end:end2,active}=liftedAction,actionIds=[];for(let i=start3;i<end2;i++)actionIds.push(i);active?skippedActionIds=difference(skippedActionIds,actionIds):skippedActionIds=[...skippedActionIds,...actionIds],minInvalidatedStateIndex=stagedActionIds.indexOf(start3);break}case JUMP_TO_STATE:{currentStateIndex=liftedAction.index,minInvalidatedStateIndex=1/0;break}case JUMP_TO_ACTION:{let index=stagedActionIds.indexOf(liftedAction.actionId);index!==-1&&(currentStateIndex=index),minInvalidatedStateIndex=1/0;break}case SWEEP:{stagedActionIds=difference(stagedActionIds,skippedActionIds),skippedActionIds=[],currentStateIndex=Math.min(currentStateIndex,stagedActionIds.length-1);break}case PERFORM_ACTION:{if(isLocked)return liftedState||initialLiftedState;if(isPaused||liftedState&&isActionFiltered(liftedState.computedStates[currentStateIndex],liftedAction,options.predicate,options.actionsSafelist,options.actionsBlocklist)){let lastState=computedStates[computedStates.length-1];computedStates=[...computedStates.slice(0,-1),computeNextEntry(reducer44,liftedAction.action,lastState.state,lastState.error,errorHandler)],minInvalidatedStateIndex=1/0;break}options.maxAge&&stagedActionIds.length===options.maxAge&&commitExcessActions(1),currentStateIndex===stagedActionIds.length-1&&currentStateIndex++;let actionId=nextActionId++;actionsById[actionId]=liftedAction,stagedActionIds=[...stagedActionIds,actionId],minInvalidatedStateIndex=stagedActionIds.length-1;break}case IMPORT_STATE:{({monitorState,actionsById,nextActionId,stagedActionIds,skippedActionIds,committedState,currentStateIndex,computedStates,isLocked,isPaused}=liftedAction.nextLiftedState);break}case INIT:{minInvalidatedStateIndex=0,options.maxAge&&stagedActionIds.length>options.maxAge&&(computedStates=recomputeStates(computedStates,minInvalidatedStateIndex,reducer44,committedState,actionsById,stagedActionIds,skippedActionIds,errorHandler,isPaused),commitExcessActions(stagedActionIds.length-options.maxAge),minInvalidatedStateIndex=1/0);break}case UPDATE:{if(computedStates.filter(state=>state.error).length>0)minInvalidatedStateIndex=0,options.maxAge&&stagedActionIds.length>options.maxAge&&(computedStates=recomputeStates(computedStates,minInvalidatedStateIndex,reducer44,committedState,actionsById,stagedActionIds,skippedActionIds,errorHandler,isPaused),commitExcessActions(stagedActionIds.length-options.maxAge),minInvalidatedStateIndex=1/0);else{if(!isPaused&&!isLocked){currentStateIndex===stagedActionIds.length-1&&currentStateIndex++;let actionId=nextActionId++;actionsById[actionId]=new PerformAction(liftedAction,+Date.now()),stagedActionIds=[...stagedActionIds,actionId],minInvalidatedStateIndex=stagedActionIds.length-1,computedStates=recomputeStates(computedStates,minInvalidatedStateIndex,reducer44,committedState,actionsById,stagedActionIds,skippedActionIds,errorHandler,isPaused)}computedStates=computedStates.map(cmp=>__spreadProps(__spreadValues({},cmp),{state:reducer44(cmp.state,RECOMPUTE_ACTION)})),currentStateIndex=stagedActionIds.length-1,options.maxAge&&stagedActionIds.length>options.maxAge&&commitExcessActions(stagedActionIds.length-options.maxAge),minInvalidatedStateIndex=1/0}break}default:{minInvalidatedStateIndex=1/0;break}}return computedStates=recomputeStates(computedStates,minInvalidatedStateIndex,reducer44,committedState,actionsById,stagedActionIds,skippedActionIds,errorHandler,isPaused),monitorState=monitorReducer(monitorState,liftedAction),{monitorState,actionsById,nextActionId,stagedActionIds,skippedActionIds,committedState,currentStateIndex,computedStates,isLocked,isPaused}}}var StoreDevtools=(()=>{let _StoreDevtools=class _StoreDevtools{constructor(dispatcher,actions$,reducers$,extension,scannedActions,errorHandler,initialState48,config3){let liftedInitialState=liftInitialState(initialState48,config3.monitor),liftReducer=liftReducerWith(initialState48,liftedInitialState,errorHandler,config3.monitor,config3),liftedAction$=merge(merge(actions$.asObservable().pipe(skip(1)),extension.actions$).pipe(map(liftAction)),dispatcher,extension.liftedActions$).pipe(observeOn(queueScheduler)),liftedReducer$=reducers$.pipe(map(liftReducer)),zoneConfig=injectZoneConfig(config3.connectInZone),liftedStateSubject=new ReplaySubject(1);this.liftedStateSubscription=liftedAction$.pipe(withLatestFrom(liftedReducer$),emitInZone(zoneConfig),scan(({state:liftedState},[action,reducer44])=>{let reducedLiftedState=reducer44(liftedState,action);return action.type!==PERFORM_ACTION&&shouldFilterActions(config3)&&(reducedLiftedState=filterLiftedState(reducedLiftedState,config3.predicate,config3.actionsSafelist,config3.actionsBlocklist)),extension.notify(action,reducedLiftedState),{state:reducedLiftedState,action}},{state:liftedInitialState,action:null})).subscribe(({state,action})=>{if(liftedStateSubject.next(state),action.type===PERFORM_ACTION){let unliftedAction=action.action;scannedActions.next(unliftedAction)}}),this.extensionStartSubscription=extension.start$.pipe(emitInZone(zoneConfig)).subscribe(()=>{this.refresh()});let liftedState$=liftedStateSubject.asObservable(),state$=liftedState$.pipe(map(unliftState));Object.defineProperty(state$,"state",{value:toSignal(state$,{manualCleanup:!0,requireSync:!0})}),this.dispatcher=dispatcher,this.liftedState=liftedState$,this.state=state$}ngOnDestroy(){this.liftedStateSubscription.unsubscribe(),this.extensionStartSubscription.unsubscribe()}dispatch(action){this.dispatcher.next(action)}next(action){this.dispatcher.next(action)}error(error2){}complete(){}performAction(action){this.dispatch(new PerformAction(action,+Date.now()))}refresh(){this.dispatch(new Refresh)}reset(){this.dispatch(new Reset(+Date.now()))}rollback(){this.dispatch(new Rollback(+Date.now()))}commit(){this.dispatch(new Commit(+Date.now()))}sweep(){this.dispatch(new Sweep)}toggleAction(id){this.dispatch(new ToggleAction(id))}jumpToAction(actionId){this.dispatch(new JumpToAction(actionId))}jumpToState(index){this.dispatch(new JumpToState(index))}importState(nextLiftedState){this.dispatch(new ImportState(nextLiftedState))}lockChanges(status){this.dispatch(new LockChanges(status))}pauseRecording(status){this.dispatch(new PauseRecording(status))}};_StoreDevtools.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_StoreDevtools)(\u0275\u0275inject(DevtoolsDispatcher),\u0275\u0275inject(ActionsSubject),\u0275\u0275inject(ReducerObservable),\u0275\u0275inject(DevtoolsExtension),\u0275\u0275inject(ScannedActionsSubject),\u0275\u0275inject(ErrorHandler),\u0275\u0275inject(INITIAL_STATE),\u0275\u0275inject(STORE_DEVTOOLS_CONFIG))},_StoreDevtools.\u0275prov=\u0275\u0275defineInjectable({token:_StoreDevtools,factory:_StoreDevtools.\u0275fac});let StoreDevtools2=_StoreDevtools;return StoreDevtools2})();function emitInZone({ngZone,connectInZone}){return source=>connectInZone?new Observable(subscriber=>source.subscribe({next:value=>ngZone.run(()=>subscriber.next(value)),error:error2=>ngZone.run(()=>subscriber.error(error2)),complete:()=>ngZone.run(()=>subscriber.complete())})):source}var IS_EXTENSION_OR_MONITOR_PRESENT=new InjectionToken("@ngrx/store-devtools Is Devtools Extension or Monitor Present");function createIsExtensionOrMonitorPresent(extension,config3){return!!extension||config3.monitor!==noMonitor}function createReduxDevtoolsExtension(){let extensionKey="__REDUX_DEVTOOLS_EXTENSION__";return typeof window=="object"&&typeof window[extensionKey]<"u"?window[extensionKey]:null}function createStateObservable(devtools){return devtools.state}function provideStoreDevtools(options={}){return makeEnvironmentProviders([DevtoolsExtension,DevtoolsDispatcher,StoreDevtools,{provide:INITIAL_OPTIONS,useValue:options},{provide:IS_EXTENSION_OR_MONITOR_PRESENT,deps:[REDUX_DEVTOOLS_EXTENSION,STORE_DEVTOOLS_CONFIG],useFactory:createIsExtensionOrMonitorPresent},{provide:REDUX_DEVTOOLS_EXTENSION,useFactory:createReduxDevtoolsExtension},{provide:STORE_DEVTOOLS_CONFIG,deps:[INITIAL_OPTIONS],useFactory:createConfig},{provide:StateObservable,deps:[StoreDevtools],useFactory:createStateObservable},{provide:ReducerManagerDispatcher,useExisting:DevtoolsDispatcher}])}var StoreDevtoolsModule=(()=>{let _StoreDevtoolsModule=class _StoreDevtoolsModule{static instrument(options={}){return{ngModule:_StoreDevtoolsModule,providers:[provideStoreDevtools(options)]}}};_StoreDevtoolsModule.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_StoreDevtoolsModule)},_StoreDevtoolsModule.\u0275mod=\u0275\u0275defineNgModule({type:_StoreDevtoolsModule}),_StoreDevtoolsModule.\u0275inj=\u0275\u0275defineInjector({});let StoreDevtoolsModule2=_StoreDevtoolsModule;return StoreDevtoolsModule2})();var GLOBAL_OBJ=globalThis;var DEBUG_BUILD=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;var SDK_VERSION="9.12.0";function getMainCarrier(){return getSentryCarrier(GLOBAL_OBJ),GLOBAL_OBJ}function getSentryCarrier(carrier){let __SENTRY__=carrier.__SENTRY__=carrier.__SENTRY__||{};return __SENTRY__.version=__SENTRY__.version||SDK_VERSION,__SENTRY__[SDK_VERSION]=__SENTRY__[SDK_VERSION]||{}}function getGlobalSingleton(name,creator,obj=GLOBAL_OBJ){let __SENTRY__=obj.__SENTRY__=obj.__SENTRY__||{},carrier=__SENTRY__[SDK_VERSION]=__SENTRY__[SDK_VERSION]||{};return carrier[name]||(carrier[name]=creator())}var PREFIX="Sentry Logger ",CONSOLE_LEVELS=["debug","info","warn","error","log","assert","trace"],originalConsoleMethods={};function consoleSandbox(callback){if(!("console"in GLOBAL_OBJ))return callback();let console2=GLOBAL_OBJ.console,wrappedFuncs={},wrappedLevels=Object.keys(originalConsoleMethods);wrappedLevels.forEach(level=>{let originalConsoleMethod=originalConsoleMethods[level];wrappedFuncs[level]=console2[level],console2[level]=originalConsoleMethod});try{return callback()}finally{wrappedLevels.forEach(level=>{console2[level]=wrappedFuncs[level]})}}function makeLogger(){let enabled=!1,logger2={enable:()=>{enabled=!0},disable:()=>{enabled=!1},isEnabled:()=>enabled};return DEBUG_BUILD?CONSOLE_LEVELS.forEach(name=>{logger2[name]=(...args)=>{enabled&&consoleSandbox(()=>{GLOBAL_OBJ.console[name](`${PREFIX}[${name}]:`,...args)})}}):CONSOLE_LEVELS.forEach(name=>{logger2[name]=()=>{}}),logger2}var logger=getGlobalSingleton("logger",makeLogger);var ONE_SECOND_IN_MS=1e3;function dateTimestampInSeconds(){return Date.now()/ONE_SECOND_IN_MS}function createUnixTimestampInSecondsFunc(){let{performance:performance2}=GLOBAL_OBJ;if(!performance2?.now)return dateTimestampInSeconds;let approxStartingTimeOrigin=Date.now()-performance2.now(),timeOrigin=performance2.timeOrigin==null?approxStartingTimeOrigin:performance2.timeOrigin;return()=>(timeOrigin+performance2.now())/ONE_SECOND_IN_MS}var timestampInSeconds=createUnixTimestampInSecondsFunc();var objectToString=Object.prototype.toString;function isBuiltin(wat,className){return objectToString.call(wat)===`[object ${className}]`}function isPlainObject(wat){return isBuiltin(wat,"Object")}function isThenable(wat){return!!(wat?.then&&typeof wat.then=="function")}function truncate(str,max2=0){return typeof str!="string"||max2===0||str.length<=max2?str:`${str.slice(0,max2)}...`}function addNonEnumerableProperty(obj,name,value){try{Object.defineProperty(obj,name,{value,writable:!0,configurable:!0})}catch{DEBUG_BUILD&&logger.log(`Failed to add non-enumerable property "${name}" to object`,obj)}}function getCrypto(){let gbl=GLOBAL_OBJ;return gbl.crypto||gbl.msCrypto}function uuid4(crypto2=getCrypto()){let getRandomByte=()=>Math.random()*16;try{if(crypto2?.randomUUID)return crypto2.randomUUID().replace(/-/g,"");crypto2?.getRandomValues&&(getRandomByte=()=>{let typedArray=new Uint8Array(1);return crypto2.getRandomValues(typedArray),typedArray[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,c=>(c^(getRandomByte()&15)>>c/4).toString(16))}function updateSession(session,context3={}){if(context3.user&&(!session.ipAddress&&context3.user.ip_address&&(session.ipAddress=context3.user.ip_address),!session.did&&!context3.did&&(session.did=context3.user.id||context3.user.email||context3.user.username)),session.timestamp=context3.timestamp||timestampInSeconds(),context3.abnormal_mechanism&&(session.abnormal_mechanism=context3.abnormal_mechanism),context3.ignoreDuration&&(session.ignoreDuration=context3.ignoreDuration),context3.sid&&(session.sid=context3.sid.length===32?context3.sid:uuid4()),context3.init!==void 0&&(session.init=context3.init),!session.did&&context3.did&&(session.did=`${context3.did}`),typeof context3.started=="number"&&(session.started=context3.started),session.ignoreDuration)session.duration=void 0;else if(typeof context3.duration=="number")session.duration=context3.duration;else{let duration=session.timestamp-session.started;session.duration=duration>=0?duration:0}context3.release&&(session.release=context3.release),context3.environment&&(session.environment=context3.environment),!session.ipAddress&&context3.ipAddress&&(session.ipAddress=context3.ipAddress),!session.userAgent&&context3.userAgent&&(session.userAgent=context3.userAgent),typeof context3.errors=="number"&&(session.errors=context3.errors),context3.status&&(session.status=context3.status)}function generateTraceId(){return uuid4()}function merge3(initialObj,mergeObj,levels=2){if(!mergeObj||typeof mergeObj!="object"||levels<=0)return mergeObj;if(initialObj&&Object.keys(mergeObj).length===0)return initialObj;let output2=__spreadValues({},initialObj);for(let key in mergeObj)Object.prototype.hasOwnProperty.call(mergeObj,key)&&(output2[key]=merge3(output2[key],mergeObj[key],levels-1));return output2}var SCOPE_SPAN_FIELD="_sentrySpan";function _setSpanForScope(scope,span){span?addNonEnumerableProperty(scope,SCOPE_SPAN_FIELD,span):delete scope[SCOPE_SPAN_FIELD]}function _getSpanForScope(scope){return scope[SCOPE_SPAN_FIELD]}var DEFAULT_MAX_BREADCRUMBS=100,Scope=class _Scope{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:generateTraceId(),sampleRand:Math.random()}}clone(){let newScope=new _Scope;return newScope._breadcrumbs=[...this._breadcrumbs],newScope._tags=__spreadValues({},this._tags),newScope._extra=__spreadValues({},this._extra),newScope._contexts=__spreadValues({},this._contexts),this._contexts.flags&&(newScope._contexts.flags={values:[...this._contexts.flags.values]}),newScope._user=this._user,newScope._level=this._level,newScope._session=this._session,newScope._transactionName=this._transactionName,newScope._fingerprint=this._fingerprint,newScope._eventProcessors=[...this._eventProcessors],newScope._attachments=[...this._attachments],newScope._sdkProcessingMetadata=__spreadValues({},this._sdkProcessingMetadata),newScope._propagationContext=__spreadValues({},this._propagationContext),newScope._client=this._client,newScope._lastEventId=this._lastEventId,_setSpanForScope(newScope,_getSpanForScope(this)),newScope}setClient(client){this._client=client}setLastEventId(lastEventId2){this._lastEventId=lastEventId2}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(callback){this._scopeListeners.push(callback)}addEventProcessor(callback){return this._eventProcessors.push(callback),this}setUser(user){return this._user=user||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&updateSession(this._session,{user}),this._notifyScopeListeners(),this}getUser(){return this._user}setTags(tags){return this._tags=__spreadValues(__spreadValues({},this._tags),tags),this._notifyScopeListeners(),this}setTag(key,value){return this._tags=__spreadProps(__spreadValues({},this._tags),{[key]:value}),this._notifyScopeListeners(),this}setExtras(extras){return this._extra=__spreadValues(__spreadValues({},this._extra),extras),this._notifyScopeListeners(),this}setExtra(key,extra){return this._extra=__spreadProps(__spreadValues({},this._extra),{[key]:extra}),this._notifyScopeListeners(),this}setFingerprint(fingerprint){return this._fingerprint=fingerprint,this._notifyScopeListeners(),this}setLevel(level){return this._level=level,this._notifyScopeListeners(),this}setTransactionName(name){return this._transactionName=name,this._notifyScopeListeners(),this}setContext(key,context3){return context3===null?delete this._contexts[key]:this._contexts[key]=context3,this._notifyScopeListeners(),this}setSession(session){return session?this._session=session:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(captureContext){if(!captureContext)return this;let scopeToMerge=typeof captureContext=="function"?captureContext(this):captureContext,scopeInstance=scopeToMerge instanceof _Scope?scopeToMerge.getScopeData():isPlainObject(scopeToMerge)?captureContext:void 0,{tags,extra,user,contexts,level,fingerprint=[],propagationContext}=scopeInstance||{};return this._tags=__spreadValues(__spreadValues({},this._tags),tags),this._extra=__spreadValues(__spreadValues({},this._extra),extra),this._contexts=__spreadValues(__spreadValues({},this._contexts),contexts),user&&Object.keys(user).length&&(this._user=user),level&&(this._level=level),fingerprint.length&&(this._fingerprint=fingerprint),propagationContext&&(this._propagationContext=propagationContext),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,_setSpanForScope(this,void 0),this._attachments=[],this.setPropagationContext({traceId:generateTraceId(),sampleRand:Math.random()}),this._notifyScopeListeners(),this}addBreadcrumb(breadcrumb,maxBreadcrumbs){let maxCrumbs=typeof maxBreadcrumbs=="number"?maxBreadcrumbs:DEFAULT_MAX_BREADCRUMBS;if(maxCrumbs<=0)return this;let mergedBreadcrumb=__spreadProps(__spreadValues({timestamp:dateTimestampInSeconds()},breadcrumb),{message:breadcrumb.message?truncate(breadcrumb.message,2048):breadcrumb.message});return this._breadcrumbs.push(mergedBreadcrumb),this._breadcrumbs.length>maxCrumbs&&(this._breadcrumbs=this._breadcrumbs.slice(-maxCrumbs),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(attachment){return this._attachments.push(attachment),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:_getSpanForScope(this)}}setSDKProcessingMetadata(newData){return this._sdkProcessingMetadata=merge3(this._sdkProcessingMetadata,newData,2),this}setPropagationContext(context3){return this._propagationContext=context3,this}getPropagationContext(){return this._propagationContext}captureException(exception,hint){let eventId=hint?.event_id||uuid4();if(!this._client)return logger.warn("No client configured on scope - will not capture exception!"),eventId;let syntheticException=new Error("Sentry syntheticException");return this._client.captureException(exception,__spreadProps(__spreadValues({originalException:exception,syntheticException},hint),{event_id:eventId}),this),eventId}captureMessage(message,level,hint){let eventId=hint?.event_id||uuid4();if(!this._client)return logger.warn("No client configured on scope - will not capture message!"),eventId;let syntheticException=new Error(message);return this._client.captureMessage(message,level,__spreadProps(__spreadValues({originalException:message,syntheticException},hint),{event_id:eventId}),this),eventId}captureEvent(event2,hint){let eventId=hint?.event_id||uuid4();return this._client?(this._client.captureEvent(event2,__spreadProps(__spreadValues({},hint),{event_id:eventId}),this),eventId):(logger.warn("No client configured on scope - will not capture event!"),eventId)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(callback=>{callback(this)}),this._notifyingListeners=!1)}};function getDefaultCurrentScope(){return getGlobalSingleton("defaultCurrentScope",()=>new Scope)}function getDefaultIsolationScope(){return getGlobalSingleton("defaultIsolationScope",()=>new Scope)}var AsyncContextStack=class{constructor(scope,isolationScope){let assignedScope;scope?assignedScope=scope:assignedScope=new Scope;let assignedIsolationScope;isolationScope?assignedIsolationScope=isolationScope:assignedIsolationScope=new Scope,this._stack=[{scope:assignedScope}],this._isolationScope=assignedIsolationScope}withScope(callback){let scope=this._pushScope(),maybePromiseResult;try{maybePromiseResult=callback(scope)}catch(e){throw this._popScope(),e}return isThenable(maybePromiseResult)?maybePromiseResult.then(res=>(this._popScope(),res),e=>{throw this._popScope(),e}):(this._popScope(),maybePromiseResult)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let scope=this.getScope().clone();return this._stack.push({client:this.getClient(),scope}),scope}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}};function getAsyncContextStack(){let registry=getMainCarrier(),sentry=getSentryCarrier(registry);return sentry.stack=sentry.stack||new AsyncContextStack(getDefaultCurrentScope(),getDefaultIsolationScope())}function withScope(callback){return getAsyncContextStack().withScope(callback)}function withSetScope(scope,callback){let stack=getAsyncContextStack();return stack.withScope(()=>(stack.getStackTop().scope=scope,callback(scope)))}function withIsolationScope(callback){return getAsyncContextStack().withScope(()=>callback(getAsyncContextStack().getIsolationScope()))}function getStackAsyncContextStrategy(){return{withIsolationScope,withScope,withSetScope,withSetIsolationScope:(_isolationScope,callback)=>withIsolationScope(callback),getCurrentScope:()=>getAsyncContextStack().getScope(),getIsolationScope:()=>getAsyncContextStack().getIsolationScope()}}function getAsyncContextStrategy(carrier){let sentry=getSentryCarrier(carrier);return sentry.acs?sentry.acs:getStackAsyncContextStrategy()}function getCurrentScope(){let carrier=getMainCarrier();return getAsyncContextStrategy(carrier).getCurrentScope()}function getIsolationScope(){let carrier=getMainCarrier();return getAsyncContextStrategy(carrier).getIsolationScope()}function getClient(){return getCurrentScope().getClient()}var DEFAULT_BREADCRUMBS=100;function addBreadcrumb(breadcrumb,hint){let client=getClient(),isolationScope=getIsolationScope();if(!client)return;let{beforeBreadcrumb=null,maxBreadcrumbs=DEFAULT_BREADCRUMBS}=client.getOptions();if(maxBreadcrumbs<=0)return;let timestamp2=dateTimestampInSeconds(),mergedBreadcrumb=__spreadValues({timestamp:timestamp2},breadcrumb),finalBreadcrumb=beforeBreadcrumb?consoleSandbox(()=>beforeBreadcrumb(mergedBreadcrumb,hint)):mergedBreadcrumb;finalBreadcrumb!==null&&(client.emit&&client.emit("beforeAddBreadcrumb",finalBreadcrumb,hint),isolationScope.addBreadcrumb(finalBreadcrumb,maxBreadcrumbs))}function sentryNgrxMetaReducer(reducer44){return function(state,action){return addBreadcrumb({category:"ngrx",message:action.type,level:"info"}),reducer44(state,action)}}var reducers={router:routerReducer},metaReducers=environment.production?[sentryNgrxMetaReducer]:[];var AppEffects=(()=>{let _AppEffects=class _AppEffects{constructor(actions$,location2,router){this.actions$=actions$,this.location=location2,this.router=router,this.company2faRequired$=createEffect(()=>this.actions$.pipe(ofType(loadMeFailure),mergeMap(({errors:errors2})=>errors2.some(error2=>error2.message===IxApiRequestErrorMessages.TWO_FACTOR_AUTH_REQUIRED)?of(redirectTo2faRequired()):EMPTY))),this.redirectTo2faRequired$=createEffect(()=>this.actions$.pipe(ofType(redirectTo2faRequired),tap(()=>{this.router.navigate(["/two-factor-auth-required"],{skipLocationChange:!0})})),{dispatch:!1})}};_AppEffects.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_AppEffects)(\u0275\u0275inject(Actions),\u0275\u0275inject(Location),\u0275\u0275inject(Router))},_AppEffects.\u0275prov=\u0275\u0275defineInjectable({token:_AppEffects,factory:_AppEffects.\u0275fac});let AppEffects2=_AppEffects;return AppEffects2})();var AppStateModule=(()=>{let _AppStateModule=class _AppStateModule{};_AppStateModule.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_AppStateModule)},_AppStateModule.\u0275mod=\u0275\u0275defineNgModule({type:_AppStateModule}),_AppStateModule.\u0275inj=\u0275\u0275defineInjector({imports:[TranslateModule,StoreModule.forRoot(reducers,{metaReducers,runtimeChecks:{strictStateImmutability:!environment.production,strictActionImmutability:!environment.production,strictStateSerializability:!environment.production}}),environment.production?[]:[StoreDevtoolsModule.instrument({maxAge:50,connectInZone:!0})],EffectsModule.forRoot([AppEffects])]});let AppStateModule2=_AppStateModule;return AppStateModule2})();function generateBanner(metadata,translate){let header=document.createElement("div");return header.innerHTML=`
802
+ `],encapsulation:2,changeDetection:0});let DeviceSelectButtonComponent2=_DeviceSelectButtonComponent;return DeviceSelectButtonComponent2})();var _c023=()=>({value:"none"}),_c18=()=>[],_c25=(a0,a1)=>({"locked-drawer":a0,"open-drawer":a1}),_c33=(a0,a1)=>({desktop:a0,mobile:a1});function BuilderComponent_Conditional_0_Conditional_4_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"span"),\u0275\u0275text(1),\u0275\u0275elementEnd()),rf&2){let ctx_r1=\u0275\u0275nextContext(2);\u0275\u0275advance(),\u0275\u0275textInterpolate1(" - ",ctx_r1.componentName,"")}}function BuilderComponent_Conditional_0_Conditional_15_Template(rf,ctx){if(rf&1){let _r3=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"ix-button-toggle-group",22),\u0275\u0275listener("mousedown",function($event){return \u0275\u0275restoreView(_r3),\u0275\u0275resetView($event.stopPropagation())}),\u0275\u0275elementStart(1,"ix-button-toggle",23),\u0275\u0275pipe(2,"translate"),\u0275\u0275listener("valueChange",function($event){\u0275\u0275restoreView(_r3);let ctx_r1=\u0275\u0275nextContext(2);return \u0275\u0275resetView(ctx_r1.setPreviewMode($event))}),\u0275\u0275elementStart(3,"mat-icon"),\u0275\u0275text(4,"desktop_windows"),\u0275\u0275elementEnd()(),\u0275\u0275elementStart(5,"ix-button-toggle",24),\u0275\u0275pipe(6,"translate"),\u0275\u0275listener("valueChange",function($event){\u0275\u0275restoreView(_r3);let ctx_r1=\u0275\u0275nextContext(2);return \u0275\u0275resetView(ctx_r1.setPreviewMode($event))}),\u0275\u0275elementStart(7,"mat-icon"),\u0275\u0275text(8,"smartphone"),\u0275\u0275elementEnd()()()}if(rf&2){let ctx_r1=\u0275\u0275nextContext(2);\u0275\u0275property("value",ctx_r1.previewMode),\u0275\u0275advance(),\u0275\u0275property("matTooltip",\u0275\u0275pipeBind1(2,3,"DESKTOP_VIEW")),\u0275\u0275advance(4),\u0275\u0275property("matTooltip",\u0275\u0275pipeBind1(6,5,"MOBILE_VIEW"))}}function BuilderComponent_Conditional_0_Conditional_16_Template(rf,ctx){if(rf&1){let _r4=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"ix-button-toggle-group",25),\u0275\u0275listener("mousedown",function($event){return \u0275\u0275restoreView(_r4),\u0275\u0275resetView($event.stopPropagation())}),\u0275\u0275elementStart(1,"ix-button-toggle",26),\u0275\u0275pipe(2,"translate"),\u0275\u0275listener("valueChange",function($event){\u0275\u0275restoreView(_r4);let ctx_r1=\u0275\u0275nextContext(2);return \u0275\u0275resetView(ctx_r1.setOrientation($event))}),\u0275\u0275elementStart(3,"mat-icon"),\u0275\u0275text(4,"crop_portrait"),\u0275\u0275elementEnd()(),\u0275\u0275elementStart(5,"ix-button-toggle",27),\u0275\u0275pipe(6,"translate"),\u0275\u0275listener("valueChange",function($event){\u0275\u0275restoreView(_r4);let ctx_r1=\u0275\u0275nextContext(2);return \u0275\u0275resetView(ctx_r1.setOrientation($event))}),\u0275\u0275elementStart(7,"mat-icon"),\u0275\u0275text(8,"crop_landscape"),\u0275\u0275elementEnd()()()}if(rf&2){let ctx_r1=\u0275\u0275nextContext(2);\u0275\u0275property("value",ctx_r1.orientation),\u0275\u0275advance(),\u0275\u0275property("matTooltip",\u0275\u0275pipeBind1(2,3,"PORTRAIT_ORIENTATION")),\u0275\u0275advance(4),\u0275\u0275property("matTooltip",\u0275\u0275pipeBind1(6,5,"LANDSCAPE_ORIENTATION"))}}function BuilderComponent_Conditional_0_Conditional_17_Template(rf,ctx){if(rf&1){let _r5=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"button",28),\u0275\u0275listener("click",function(){\u0275\u0275restoreView(_r5);let ctx_r1=\u0275\u0275nextContext(2);return \u0275\u0275resetView(ctx_r1.toggleMode())})("mousedown",function($event){return \u0275\u0275restoreView(_r5),\u0275\u0275resetView($event.stopPropagation())}),\u0275\u0275elementStart(1,"mat-icon"),\u0275\u0275text(2),\u0275\u0275elementEnd(),\u0275\u0275elementStart(3,"span"),\u0275\u0275text(4),\u0275\u0275pipe(5,"translate"),\u0275\u0275elementEnd()()}if(rf&2){let ctx_r1=\u0275\u0275nextContext(2);\u0275\u0275advance(2),\u0275\u0275textInterpolate(ctx_r1.mode==="preview"?"edit":"visibility"),\u0275\u0275advance(2),\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(5,2,ctx_r1.mode==="preview"?"EDIT":"PREVIEW"))}}function BuilderComponent_Conditional_0_Conditional_37_Conditional_0_Template(rf,ctx){if(rf&1){let _r6=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"mat-toolbar")(1,"h1"),\u0275\u0275text(2),\u0275\u0275elementEnd(),\u0275\u0275element(3,"span",3),\u0275\u0275elementStart(4,"button",30),\u0275\u0275listener("click",function(){\u0275\u0275restoreView(_r6);let ctx_r1=\u0275\u0275nextContext(3);return \u0275\u0275resetView(ctx_r1.toggleDrawerLock())}),\u0275\u0275elementStart(5,"mat-icon"),\u0275\u0275text(6,"keyboard_arrow_right"),\u0275\u0275elementEnd()()()}if(rf&2){let ctx_r1=\u0275\u0275nextContext(3);\u0275\u0275advance(2),\u0275\u0275textInterpolate(ctx_r1.selectedComponentTemplate==null?null:ctx_r1.selectedComponentTemplate.name)}}function BuilderComponent_Conditional_0_Conditional_37_Conditional_2_Template(rf,ctx){if(rf&1){let _r7=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"ix-page-component-properties",31),\u0275\u0275listener("update",function($event){\u0275\u0275restoreView(_r7);let ctx_r1=\u0275\u0275nextContext(3);return \u0275\u0275resetView(ctx_r1.updateComponent($event))}),\u0275\u0275elementEnd()}if(rf&2){let ctx_r1=\u0275\u0275nextContext(3);\u0275\u0275property("component",ctx_r1.selectedComponent)("template",ctx_r1.selectedComponentTemplate)}}function BuilderComponent_Conditional_0_Conditional_37_Template(rf,ctx){if(rf&1&&(\u0275\u0275template(0,BuilderComponent_Conditional_0_Conditional_37_Conditional_0_Template,7,1,"mat-toolbar"),\u0275\u0275elementStart(1,"div",17),\u0275\u0275template(2,BuilderComponent_Conditional_0_Conditional_37_Conditional_2_Template,1,2,"ix-page-component-properties",29),\u0275\u0275elementEnd()),rf&2){let ctx_r1=\u0275\u0275nextContext(2);\u0275\u0275conditional(ctx_r1.selectedComponentTemplate!=null&&ctx_r1.selectedComponentTemplate.name?0:-1),\u0275\u0275advance(2),\u0275\u0275conditional(ctx_r1.selectedComponent?2:-1)}}function BuilderComponent_Conditional_0_Conditional_38_Template(rf,ctx){if(rf&1){let _r8=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"button",30),\u0275\u0275listener("click",function(){\u0275\u0275restoreView(_r8);let ctx_r1=\u0275\u0275nextContext(2);return \u0275\u0275resetView(ctx_r1.toggleDrawerLock())}),\u0275\u0275elementStart(1,"mat-icon"),\u0275\u0275text(2,"keyboard_arrow_left"),\u0275\u0275elementEnd()()}}function BuilderComponent_Conditional_0_Case_40_Template(rf,ctx){if(rf&1&&\u0275\u0275elementContainer(0,21),rf&2){\u0275\u0275nextContext();let standaloneContent_r9=\u0275\u0275reference(43);\u0275\u0275property("ngTemplateOutlet",standaloneContent_r9)}}function BuilderComponent_Conditional_0_Case_41_Conditional_0_Conditional_1_Template(rf,ctx){if(rf&1){let _r10=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"ix-component-grid",37),\u0275\u0275listener("selectionChange",function($event){\u0275\u0275restoreView(_r10);let ctx_r1=\u0275\u0275nextContext(4);return \u0275\u0275resetView(ctx_r1.handleSelectionChange($event))})("componentChanges",function($event){\u0275\u0275restoreView(_r10);let ctx_r1=\u0275\u0275nextContext(4);return \u0275\u0275resetView(ctx_r1.handleComponentChanges($event))})("movingGridItem",function($event){\u0275\u0275restoreView(_r10);let ctx_r1=\u0275\u0275nextContext(4);return \u0275\u0275resetView(ctx_r1.setDrawerIsOpen($event))}),\u0275\u0275elementEnd()}if(rf&2){let pageVersion_r11=\u0275\u0275nextContext(3),ctx_r1=\u0275\u0275nextContext();\u0275\u0275property("ixComponentGridScope",ctx_r1.gridScope)("agentOrAssetId",(pageVersion_r11.previewAgent==null?null:pageVersion_r11.previewAgent.publicId)||(pageVersion_r11.previewAsset==null?null:pageVersion_r11.previewAsset.publicId)||null)("mobile",ctx_r1.previewMode==="mobile")("pageVersionId",pageVersion_r11.publicId)("selectedComponentId",(ctx_r1.selectedComponent==null?null:ctx_r1.selectedComponent.publicId)||null)("ngClass",\u0275\u0275pureFunction2(6,_c33,ctx_r1.previewMode!=="mobile",ctx_r1.previewMode==="mobile"))}}function BuilderComponent_Conditional_0_Case_41_Conditional_0_Conditional_2_Template(rf,ctx){if(rf&1){let _r12=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"ix-card-component-grid",38),\u0275\u0275listener("componentResize",function($event){\u0275\u0275restoreView(_r12);let ctx_r1=\u0275\u0275nextContext(4);return \u0275\u0275resetView(ctx_r1.updateComponentSize($event))})("selectionChange",function($event){\u0275\u0275restoreView(_r12);let ctx_r1=\u0275\u0275nextContext(4);return \u0275\u0275resetView(ctx_r1.handleSelectionChange($event))}),\u0275\u0275elementEnd()}if(rf&2){let tmp_7_0,tmp_9_0,pageVersion_r11=\u0275\u0275nextContext(3),ctx_r1=\u0275\u0275nextContext();\u0275\u0275property("ixComponentGridScope",ctx_r1.gridScope)("agentOrAssetId",(tmp_7_0=ctx_r1.previewAgentOrAsset==null?null:ctx_r1.previewAgentOrAsset.publicId)!==null&&tmp_7_0!==void 0?tmp_7_0:null)("pageVersionId",pageVersion_r11.publicId)("selectedComponentId",(tmp_9_0=ctx_r1.selectedComponent==null?null:ctx_r1.selectedComponent.publicId)!==null&&tmp_9_0!==void 0?tmp_9_0:null)}}function BuilderComponent_Conditional_0_Case_41_Conditional_0_Conditional_3_ix_component_grid_0_Template(rf,ctx){if(rf&1){let _r13=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"ix-component-grid",40),\u0275\u0275listener("selectionChange",function($event){\u0275\u0275restoreView(_r13);let ctx_r1=\u0275\u0275nextContext(5);return \u0275\u0275resetView(ctx_r1.handleSelectionChange($event))})("componentChanges",function($event){\u0275\u0275restoreView(_r13);let ctx_r1=\u0275\u0275nextContext(5);return \u0275\u0275resetView(ctx_r1.handleComponentChanges($event))})("movingGridItem",function($event){\u0275\u0275restoreView(_r13);let ctx_r1=\u0275\u0275nextContext(5);return \u0275\u0275resetView(ctx_r1.setDrawerIsOpen($event))}),\u0275\u0275elementEnd()}if(rf&2){let tmp_10_0,pageVersion_r11=\u0275\u0275nextContext(4),ctx_r1=\u0275\u0275nextContext();\u0275\u0275property("ixComponentGridScope",ctx_r1.gridScope)("agentOrAssetId",(pageVersion_r11.previewAgent==null?null:pageVersion_r11.previewAgent.publicId)||(pageVersion_r11.previewAsset==null?null:pageVersion_r11.previewAsset.publicId)||null)("pageVersionId",pageVersion_r11.publicId)("selectedComponentId",(tmp_10_0=ctx_r1.selectedComponent==null?null:ctx_r1.selectedComponent.publicId)!==null&&tmp_10_0!==void 0?tmp_10_0:null)("ngClass",ctx_r1.orientation)("orientation",ctx_r1.orientation)("mobile",!1)}}function BuilderComponent_Conditional_0_Case_41_Conditional_0_Conditional_3_Template(rf,ctx){if(rf&1&&\u0275\u0275template(0,BuilderComponent_Conditional_0_Case_41_Conditional_0_Conditional_3_ix_component_grid_0_Template,1,7,"ix-component-grid",39),rf&2){let ctx_r1=\u0275\u0275nextContext(4);\u0275\u0275property("ixReloadOnValueChange",ctx_r1.orientation)}}function BuilderComponent_Conditional_0_Case_41_Conditional_0_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"div",32),\u0275\u0275template(1,BuilderComponent_Conditional_0_Case_41_Conditional_0_Conditional_1_Template,1,9,"ix-component-grid",34)(2,BuilderComponent_Conditional_0_Case_41_Conditional_0_Conditional_2_Template,1,4,"ix-card-component-grid",35)(3,BuilderComponent_Conditional_0_Case_41_Conditional_0_Conditional_3_Template,1,1,"ix-component-grid",36),\u0275\u0275elementEnd()),rf&2){let ctx_r1=\u0275\u0275nextContext(3);\u0275\u0275property("ngClass",ctx_r1.gridClasses),\u0275\u0275advance(),\u0275\u0275conditional(ctx_r1.applicationType==="sheet"?1:-1),\u0275\u0275advance(),\u0275\u0275conditional(ctx_r1.applicationType==="card"?2:-1),\u0275\u0275advance(),\u0275\u0275conditional(ctx_r1.applicationType==="report"?3:-1)}}function BuilderComponent_Conditional_0_Case_41_Conditional_1_Conditional_1_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"div",41),\u0275\u0275element(1,"ix-simple-component-grid",43),\u0275\u0275elementEnd()),rf&2){let pageVersion_r11=\u0275\u0275nextContext(3),ctx_r1=\u0275\u0275nextContext();\u0275\u0275advance(),\u0275\u0275property("ixComponentGridScope",ctx_r1.gridScope)("agentOrAssetId",(pageVersion_r11.previewAgent==null?null:pageVersion_r11.previewAgent.publicId)||(pageVersion_r11.previewAsset==null?null:pageVersion_r11.previewAsset.publicId)||null)("mobile",ctx_r1.previewMode==="mobile")("pageVersionId",pageVersion_r11.publicId)("ngClass",ctx_r1.previewMode)}}function BuilderComponent_Conditional_0_Case_41_Conditional_1_Conditional_2_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"div",42),\u0275\u0275element(1,"ix-simple-card-component-grid",44),\u0275\u0275elementEnd()),rf&2){let pageVersion_r11=\u0275\u0275nextContext(3),ctx_r1=\u0275\u0275nextContext();\u0275\u0275advance(),\u0275\u0275property("ixComponentGridScope",ctx_r1.gridScope)("agentOrAssetId",(pageVersion_r11.previewAgent==null?null:pageVersion_r11.previewAgent.publicId)||(pageVersion_r11.previewAsset==null?null:pageVersion_r11.previewAsset.publicId)||null)("pageVersionId",pageVersion_r11.publicId)}}function BuilderComponent_Conditional_0_Case_41_Conditional_1_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"div",33),\u0275\u0275template(1,BuilderComponent_Conditional_0_Case_41_Conditional_1_Conditional_1_Template,2,5,"div",41)(2,BuilderComponent_Conditional_0_Case_41_Conditional_1_Conditional_2_Template,2,3,"div",42),\u0275\u0275elementEnd()),rf&2){let ctx_r1=\u0275\u0275nextContext(3);\u0275\u0275property("ngClass",ctx_r1.applicationType),\u0275\u0275advance(),\u0275\u0275conditional(ctx_r1.applicationType==="sheet"?1:-1),\u0275\u0275advance(),\u0275\u0275conditional(ctx_r1.applicationType==="card"?2:-1)}}function BuilderComponent_Conditional_0_Case_41_Template(rf,ctx){if(rf&1&&\u0275\u0275template(0,BuilderComponent_Conditional_0_Case_41_Conditional_0_Template,4,4,"div",32)(1,BuilderComponent_Conditional_0_Case_41_Conditional_1_Template,3,3,"div",33),rf&2){let ctx_r1=\u0275\u0275nextContext(2);\u0275\u0275conditional(ctx_r1.mode==="edit"?0:1)}}function BuilderComponent_Conditional_0_ng_template_42_Conditional_0_ix_component_loader_2_Template(rf,ctx){if(rf&1&&\u0275\u0275element(0,"ix-component-loader",48),rf&2){let component_r15=\u0275\u0275nextContext();\u0275\u0275property("component",component_r15)}}function BuilderComponent_Conditional_0_ng_template_42_Conditional_0_Template(rf,ctx){if(rf&1){let _r14=\u0275\u0275getCurrentView();\u0275\u0275elementContainerStart(0,45),\u0275\u0275elementStart(1,"div",46),\u0275\u0275listener("click",function(){let component_r15=\u0275\u0275restoreView(_r14),ctx_r1=\u0275\u0275nextContext(3);return \u0275\u0275resetView(ctx_r1.handleSelectionChange(component_r15.publicId))}),\u0275\u0275template(2,BuilderComponent_Conditional_0_ng_template_42_Conditional_0_ix_component_loader_2_Template,1,1,"ix-component-loader",47),\u0275\u0275elementEnd(),\u0275\u0275elementContainerEnd()}if(rf&2){let ctx_r1=\u0275\u0275nextContext(3);\u0275\u0275property("ixComponentGridScope",ctx_r1.gridScope),\u0275\u0275advance(),\u0275\u0275property("ixComponentGridScope",ctx_r1.gridScope),\u0275\u0275advance(),\u0275\u0275property("ixReloadOnValueChange",ctx)}}function BuilderComponent_Conditional_0_ng_template_42_Template(rf,ctx){if(rf&1&&(\u0275\u0275template(0,BuilderComponent_Conditional_0_ng_template_42_Conditional_0_Template,3,3,"ng-container",45),\u0275\u0275pipe(1,"async")),rf&2){let tmp_4_0,ctx_r1=\u0275\u0275nextContext(2);\u0275\u0275conditional((tmp_4_0=\u0275\u0275pipeBind1(1,1,ctx_r1.component$))?0:-1,tmp_4_0)}}function BuilderComponent_Conditional_0_Template(rf,ctx){if(rf&1){let _r1=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"div",1)(1,"mat-toolbar",2)(2,"h1"),\u0275\u0275text(3," Simulator "),\u0275\u0275template(4,BuilderComponent_Conditional_0_Conditional_4_Template,2,1,"span"),\u0275\u0275elementEnd(),\u0275\u0275element(5,"span",3),\u0275\u0275elementStart(6,"button",4)(7,"mat-icon"),\u0275\u0275text(8,"settings"),\u0275\u0275elementEnd()()(),\u0275\u0275elementStart(9,"mat-toolbar",5)(10,"ix-device-select-button",6),\u0275\u0275pipe(11,"translate"),\u0275\u0275pipe(12,"async"),\u0275\u0275listener("selectionChange",function($event){\u0275\u0275restoreView(_r1);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.selectPreviewAgentOrAsset($event))})("mousedown",function($event){return \u0275\u0275restoreView(_r1),\u0275\u0275resetView($event.stopPropagation())}),\u0275\u0275elementEnd(),\u0275\u0275element(13,"div",3),\u0275\u0275elementStart(14,"ix-period-controls",7),\u0275\u0275listener("periodSpecSelected",function($event){\u0275\u0275restoreView(_r1);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.updateSelectedPeriodSpec($event))})("mousedown",function($event){return \u0275\u0275restoreView(_r1),\u0275\u0275resetView($event.stopPropagation())}),\u0275\u0275elementEnd(),\u0275\u0275template(15,BuilderComponent_Conditional_0_Conditional_15_Template,9,7,"ix-button-toggle-group",8)(16,BuilderComponent_Conditional_0_Conditional_16_Template,9,7,"ix-button-toggle-group",9)(17,BuilderComponent_Conditional_0_Conditional_17_Template,6,4,"button",10),\u0275\u0275elementStart(18,"ix-button-toggle-group",11),\u0275\u0275listener("mousedown",function($event){return \u0275\u0275restoreView(_r1),\u0275\u0275resetView($event.stopPropagation())}),\u0275\u0275elementStart(19,"ix-button-toggle",12),\u0275\u0275pipe(20,"translate"),\u0275\u0275listener("valueChange",function($event){\u0275\u0275restoreView(_r1);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.setApplicationType($event))}),\u0275\u0275elementStart(21,"mat-icon"),\u0275\u0275text(22,"dashboard"),\u0275\u0275elementEnd()(),\u0275\u0275elementStart(23,"ix-button-toggle",13),\u0275\u0275pipe(24,"translate"),\u0275\u0275listener("valueChange",function($event){\u0275\u0275restoreView(_r1);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.setApplicationType($event))}),\u0275\u0275element(25,"mat-icon",14),\u0275\u0275elementEnd(),\u0275\u0275elementStart(26,"ix-button-toggle",15),\u0275\u0275pipe(27,"translate"),\u0275\u0275listener("valueChange",function($event){\u0275\u0275restoreView(_r1);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.setApplicationType($event))}),\u0275\u0275elementStart(28,"mat-icon"),\u0275\u0275text(29,"draft"),\u0275\u0275elementEnd()(),\u0275\u0275elementStart(30,"ix-button-toggle",16),\u0275\u0275pipe(31,"translate"),\u0275\u0275listener("valueChange",function($event){\u0275\u0275restoreView(_r1);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.setApplicationType($event))}),\u0275\u0275elementStart(32,"mat-icon"),\u0275\u0275text(33,"fit_screen"),\u0275\u0275elementEnd()()()(),\u0275\u0275elementStart(34,"div",17)(35,"mat-drawer-container")(36,"mat-drawer",18),\u0275\u0275template(37,BuilderComponent_Conditional_0_Conditional_37_Template,3,2)(38,BuilderComponent_Conditional_0_Conditional_38_Template,3,0,"button",19),\u0275\u0275elementEnd(),\u0275\u0275elementStart(39,"mat-drawer-content",20),\u0275\u0275template(40,BuilderComponent_Conditional_0_Case_40_Template,1,1,"ng-container",21)(41,BuilderComponent_Conditional_0_Case_41_Template,2,1)(42,BuilderComponent_Conditional_0_ng_template_42_Template,2,3,"ng-template",null,0,\u0275\u0275templateRefExtractor),\u0275\u0275elementEnd()()()()}if(rf&2){let tmp_7_0,tmp_8_0,tmp_22_0,ctx_r1=\u0275\u0275nextContext();\u0275\u0275advance(4),\u0275\u0275conditional(ctx_r1.componentName?4:-1),\u0275\u0275advance(6),\u0275\u0275property("emptyLabel",\u0275\u0275pipeBind1(11,20,"SELECT_DEVICE_FOR_PREVIEW"))("noneOption",\u0275\u0275pureFunction0(32,_c023))("stroked",!0)("value",(tmp_7_0=ctx_r1.previewAgentOrAsset==null?null:ctx_r1.previewAgentOrAsset.publicId)!==null&&tmp_7_0!==void 0?tmp_7_0:"")("agentsOrAssets",(tmp_8_0=\u0275\u0275pipeBind1(12,22,ctx_r1.previewAgentsOrAssets$))!==null&&tmp_8_0!==void 0?tmp_8_0:\u0275\u0275pureFunction0(33,_c18)),\u0275\u0275advance(4),\u0275\u0275property("deviceTimeZone",null)("periodSpecs",ctx_r1.periodSpecs),\u0275\u0275advance(),\u0275\u0275conditional(ctx_r1.applicationType==="sheet"?15:-1),\u0275\u0275advance(),\u0275\u0275conditional(ctx_r1.applicationType==="report"?16:-1),\u0275\u0275advance(),\u0275\u0275conditional(ctx_r1.applicationType==="sheet"||ctx_r1.applicationType==="card"?17:-1),\u0275\u0275advance(),\u0275\u0275property("value",ctx_r1.applicationType),\u0275\u0275advance(),\u0275\u0275property("matTooltip",\u0275\u0275pipeBind1(20,24,"PAGE")),\u0275\u0275advance(4),\u0275\u0275property("matTooltip",\u0275\u0275pipeBind1(24,26,"CARD")),\u0275\u0275advance(3),\u0275\u0275property("matTooltip",\u0275\u0275pipeBind1(27,28,"REPORT")),\u0275\u0275advance(4),\u0275\u0275property("matTooltip",\u0275\u0275pipeBind1(31,30,"STANDALONE")),\u0275\u0275advance(6),\u0275\u0275property("opened",ctx_r1.selectedComponent&&ctx_r1.drawerIsOpen&&ctx_r1.mode==="edit")("ngClass",\u0275\u0275pureFunction2(34,_c25,ctx_r1.drawerLockedClose,ctx_r1.selectedComponent&&!ctx_r1.drawerLockedClose)),\u0275\u0275advance(),\u0275\u0275conditional(ctx_r1.selectedComponent&&!ctx_r1.drawerLockedClose?37:38),\u0275\u0275advance(3),\u0275\u0275conditional((tmp_22_0=ctx_r1.applicationType)==="standalone"?40:41)}}var BuilderComponent=(()=>{let _BuilderComponent=class _BuilderComponent{constructor(){this.activePeriodSpec=inject(ActivePeriodSpec),this.cdRef=inject(ChangeDetectorRef),this.destroy=inject(DestroyRef),this.facade=inject(BuilderFacade),this.sessionStorage=inject(SESSION_STORAGE),this.applicationType=this.sessionStorage.getItem("application-type")||"sheet",this.orientation=this.sessionStorage.getItem("orientation")||"portrait",this.drawerLockedClose=!1,this.gridScope="simulator",this.mode=this.sessionStorage.getItem("mode")||"edit",this.previewMode=this.sessionStorage.getItem("preview-mode")||"desktop",this.drawerIsOpen=!0,this.selectedComponentId$=new BehaviorSubject(null),this.busyUpdating$=this.facade.busyUpdating$,this.component$=this.facade.getComponent(this.pageId),this.pageVersion$=this.facade.draftVersionByPageId(this.pageId),this.previewAgentsOrAssets$=this.facade.previewAgentsOrAssets$,this.previewAgentOrAsset$=this.facade.previewAgentOrAsset(this.pageVersion$)}get gridClasses(){return this.previewMode==="mobile"?["mobile"]:[]}get pageId(){return"page"}ngOnInit(){this.pageVersion$.pipe(takeUntilDestroyed(this.destroy)).subscribe(pageVersion=>{this.pageVersion=pageVersion,this.pageVersionId=pageVersion.publicId}),this.facade.selectedPeriodSpec(of(this.pageId)).pipe(takeUntilDestroyed(this.destroy)).subscribe(periodSpec=>{this.periodSpecs=__spreadProps(__spreadValues({},this.periodSpecs),{selected:periodSpec}),this.activePeriodSpec.setPeriodSpec(periodSpec,this.gridScope),this.zoomOutIsVisible=this.getZoomOutIsVisible(),this.cdRef.markForCheck()}),this.activePeriodSpec.inScopeOf(this.gridScope).pipe(takeUntilDestroyed(this.destroy)).subscribe(periodSpec=>{this.periodSpecs=__spreadProps(__spreadValues({},this.periodSpecs),{active:periodSpec}),this.zoomOutIsVisible=this.getZoomOutIsVisible(),this.cdRef.markForCheck()}),this.selectedComponentId$.pipe(distinctUntilChanged(),switchMap(id=>combineLatest([this.facade.pageComponent(id),this.facade.pageComponentTemplate(id)])),takeUntilDestroyed(this.destroy)).subscribe(([component,template])=>{this.selectedComponent=component,this.selectedComponentTemplate=template,this.cdRef.markForCheck()}),this.previewAgentOrAsset$.pipe(takeUntilDestroyed(this.destroy)).subscribe(agentOrAsset=>{this.previewAgentOrAsset=agentOrAsset,this.cdRef.markForCheck()}),this.facade.getComponentName(this.pageId).pipe(takeUntilDestroyed(this.destroy)).subscribe(name=>{this.componentName=name}),this.facade.loadAgents(),this.facade.loadAssets(),this.facade.loadCustomProperties(),this.facade.loadGroups(),this.facade.loadPageComponentTemplates(),this.facade.loadPage(this.pageId),this.facade.loadRoles(),this.destroy.onDestroy(()=>{this.facade.reset()})}handleSelectionChange(componentId){this.selectedComponentId$.next(componentId)}handleComponentChanges(components){let updates=components.reduce((acc,component)=>this.previewMode==="desktop"&&component.dimensions?.type==="sheet"?[...acc,pick_default(component,["publicId","dimensions.type","dimensions.left","dimensions.top","dimensions.rows","dimensions.cols"])]:this.previewMode==="mobile"&&component.dimensions?.type==="sheet"?[...acc,pick_default(component,["publicId","dimensions.type","dimensions.mobileCols","dimensions.mobileHeight","dimensions.mobileLeft","dimensions.mobileOrder"])]:component.dimensions?.type==="report"?[...acc,pick_default(component,["publicId","dimensions.type","dimensions.left","dimensions.top","dimensions.rows","dimensions.cols"])]:acc,[]);updates.length>0&&(updates.length===1?this.facade.updateComponent(updates[0].publicId,omit_default(updates[0],["publicId"])):this.facade.updateComponentList(updates))}updateComponent(component){this.facade.updateComponent(component.publicId,omit_default(component,["publicId"]))}updateComponentSize({componentId,height}){this.facade.updateComponent(componentId,{dimensions:{type:"card",height}})}selectPreviewAgentOrAsset(publicId){this.previewAgentOrAsset?.publicId!==publicId&&this.facade.updatePreviewAgentOrAsset(this.pageVersionId,publicId==="none"?null:publicId)}setApplicationType(newApplicationType){this.applicationType=newApplicationType,this.sessionStorage.setItem("application-type",newApplicationType),this.facade.reloadDimensions(this.pageId,newApplicationType);let mode=null,remember=!0;switch(newApplicationType){case"report":mode="edit",remember=!1;break;case"standalone":mode="preview",remember=!1;break}mode||(mode=this.sessionStorage.getItem("mode")||null),mode&&this.setMode(mode,remember)}setPreviewMode(newPreviewMode){this.previewMode=newPreviewMode,this.sessionStorage.setItem("preview-mode",newPreviewMode)}setOrientation(newOrientation){this.orientation=newOrientation,this.sessionStorage.setItem("orientation",newOrientation);let component=this.pageVersion.components?.[0];component?.dimensions?.type==="report"&&this.facade.updateComponent(component.publicId,{dimensions:__spreadProps(__spreadValues({},component.dimensions),{type:"report",left:0,top:3,cols:newOrientation==="landscape"?8:6,rows:6})})}getZoomOutIsVisible(){return this.periodSpecs?!isEqual_default(this.periodSpecs.active,this.periodSpecs.selected):!1}setMode(newMode,rememberMode=!0){this.mode=newMode,rememberMode&&this.sessionStorage.setItem("mode",newMode)}setDrawerIsOpen(gridItemIsMoving){this.drawerIsOpen=!gridItemIsMoving}toggleDrawerLock(){this.drawerLockedClose=!this.drawerLockedClose}toggleMode(){this.setMode(this.mode==="preview"?"edit":"preview")}updateSelectedPeriodSpec(periodSpec){this.facade.updateSelectedPeriodSpec(periodSpec)}};_BuilderComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_BuilderComponent)},_BuilderComponent.\u0275cmp=\u0275\u0275defineComponent({type:_BuilderComponent,selectors:[["ix-builder"]],viewQuery:function(rf,ctx){if(rf&1&&\u0275\u0275viewQuery(ComponentGridComponent,5),rf&2){let _t;\u0275\u0275queryRefresh(_t=\u0275\u0275loadQuery())&&(ctx.componentGrid=_t.first)}},decls:2,vars:3,consts:[["standaloneContent",""],["fxFlex","","fxLayout","column",1,"ix-surface"],["ixComponentGridFocus",""],["fxFlex",""],["mat-icon-button","","routerLink","/settings","matTooltip","Settings"],["ixComponentGridFocus","",1,"second"],[3,"selectionChange","mousedown","emptyLabel","noneOption","stroked","value","agentsOrAssets"],[3,"periodSpecSelected","mousedown","deviceTimeZone","periodSpecs"],[1,"screen-toggle-group",3,"value"],[1,"orientation-toggle-group",3,"value"],["mat-stroked-button","","type","button",1,"mode-button"],[1,"application-type-toggle-group",3,"mousedown","value"],["value","sheet",3,"valueChange","matTooltip"],["value","card",3,"valueChange","matTooltip"],["svgIcon","card_outline"],["value","report",3,"valueChange","matTooltip"],["value","standalone",3,"valueChange","matTooltip"],["fxFlex","",1,"ix-content"],["mode","over","position","end",3,"opened","ngClass"],["mat-icon-button","","disableRipple","true"],["fxLayout","column"],[3,"ngTemplateOutlet"],[1,"screen-toggle-group",3,"mousedown","value"],["value","desktop",3,"valueChange","matTooltip"],["value","mobile",3,"valueChange","matTooltip"],[1,"orientation-toggle-group",3,"mousedown","value"],["value","portrait",3,"valueChange","matTooltip"],["value","landscape",3,"valueChange","matTooltip"],["mat-stroked-button","","type","button",1,"mode-button",3,"click","mousedown"],[3,"component","template"],["mat-icon-button","","disableRipple","true",3,"click"],[3,"update","component","template"],["ixComponentGridFocus","",1,"grid-container",3,"ngClass"],[1,"preview-grid-container",3,"ngClass"],["ixBackendComponentBroker","","ixLoggingDataBroker","","ixResourceDataBroker","","ixObjectStorageBroker","","ixComponentGridMode","edit","ixComponentContextCleanup","","pagePageId","pagepage",3,"ixComponentGridScope","agentOrAssetId","mobile","pageVersionId","selectedComponentId","ngClass"],["ixBackendComponentBroker","","ixLoggingDataBroker","","ixResourceDataBroker","","ixObjectStorageBroker","","ixComponentContextCleanup","","ixComponentGridMode","edit","pagePageId","pagepage",3,"ixComponentGridScope","agentOrAssetId","pageVersionId","selectedComponentId"],["ixBackendComponentBroker","","ixLoggingDataBroker","","ixResourceDataBroker","","ixObjectStorageBroker","","ixComponentGridMode","edit","ixComponentContextCleanup","","pagePageId","pagepage","applicationType","report",1,"report-grid","mat-elevation-z2",3,"ixComponentGridScope","agentOrAssetId","pageVersionId","selectedComponentId","ngClass","orientation","mobile"],["ixBackendComponentBroker","","ixLoggingDataBroker","","ixResourceDataBroker","","ixObjectStorageBroker","","ixComponentGridMode","edit","ixComponentContextCleanup","","pagePageId","pagepage",3,"selectionChange","componentChanges","movingGridItem","ixComponentGridScope","agentOrAssetId","mobile","pageVersionId","selectedComponentId","ngClass"],["ixBackendComponentBroker","","ixLoggingDataBroker","","ixResourceDataBroker","","ixObjectStorageBroker","","ixComponentContextCleanup","","ixComponentGridMode","edit","pagePageId","pagepage",3,"componentResize","selectionChange","ixComponentGridScope","agentOrAssetId","pageVersionId","selectedComponentId"],["ixBackendComponentBroker","","ixLoggingDataBroker","","ixResourceDataBroker","","ixObjectStorageBroker","","ixComponentGridMode","edit","ixComponentContextCleanup","","pagePageId","pagepage","class","report-grid mat-elevation-z2","applicationType","report",3,"ixComponentGridScope","agentOrAssetId","pageVersionId","selectedComponentId","ngClass","orientation","mobile","selectionChange","componentChanges","movingGridItem",4,"ixReloadOnValueChange"],["ixBackendComponentBroker","","ixLoggingDataBroker","","ixResourceDataBroker","","ixObjectStorageBroker","","ixComponentGridMode","edit","ixComponentContextCleanup","","pagePageId","pagepage","applicationType","report",1,"report-grid","mat-elevation-z2",3,"selectionChange","componentChanges","movingGridItem","ixComponentGridScope","agentOrAssetId","pageVersionId","selectedComponentId","ngClass","orientation","mobile"],[1,"ix-large-section","preview"],[1,"preview"],["ixBackendComponentBroker","","ixLoggingDataBroker","","ixResourceDataBroker","","ixObjectStorageBroker","","ixComponentContextCleanup","","ixComponentGridMode","view",3,"ixComponentGridScope","agentOrAssetId","mobile","pageVersionId","ngClass"],["ixBackendComponentBroker","","ixLoggingDataBroker","","ixResourceDataBroker","","ixObjectStorageBroker","","ixComponentContextCleanup","","ixComponentGridMode","view",3,"ixComponentGridScope","agentOrAssetId","pageVersionId"],[3,"ixComponentGridScope"],["ixBackendComponentBroker","","ixLoggingDataBroker","","ixResourceDataBroker","","ixObjectStorageBroker","","ixComponentContextCleanup","",1,"standalone",3,"click","ixComponentGridScope"],[3,"component",4,"ixReloadOnValueChange"],[3,"component"]],template:function(rf,ctx){if(rf&1&&(\u0275\u0275template(0,BuilderComponent_Conditional_0_Template,44,37,"div",1),\u0275\u0275pipe(1,"async")),rf&2){let tmp_0_0;\u0275\u0275conditional((tmp_0_0=\u0275\u0275pipeBind1(1,1,ctx.pageVersion$))?0:-1,tmp_0_0)}},dependencies:[AlertDialogModule,AsyncPipe,ButtonToggleModule,ButtonToggleComponent,ButtonToggleGroupComponent,ComponentLoaderModule,ComponentLoaderComponent,DeviceSelectButtonComponent,FlexModule,DefaultLayoutDirective,DefaultFlexDirective,MatButtonModule,MatButton,MatIconButton,MatFormFieldModule,MatIconModule,MatIcon,MatInputModule,MatSidenavModule,MatDrawer,MatDrawerContainer,MatDrawerContent,MatToolbarModule,MatToolbar,MatTooltipModule,MatTooltip,NgClass,NgTemplateOutlet,PagesModule,ComponentGridComponent,CardComponentGridComponent,SimpleComponentGridComponent,SimpleCardComponentGridComponent,ComponentPropertiesComponent,ComponentGridModeDirective,ComponentGridScopeDirective,ComponentContextCleanupDirective,BackendComponentBrokerDirective,LoggingDataBrokerDirective,ObjectStorageBrokerDirective,ResourceDataBrokerDirective,PeriodControlsComponent,ComponentGridFocusDirective,PeriodFieldsetModule,ReloadTriggerModule,ReloadOnValueChangeDirective,RouterModule,RouterLink,TranslateModule,TranslatePipe],styles:['[_nghost-%COMP%]{height:100%;width:100%}[_nghost-%COMP%] .mat-toolbar[_ngcontent-%COMP%]{border-bottom:1px solid var(--mat-sys-surface-variant)}[_nghost-%COMP%] .mat-toolbar[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{padding-right:16px}[_nghost-%COMP%] .mat-toolbar[_ngcontent-%COMP%] ix-device-select-button[_ngcontent-%COMP%]{margin-right:8px;max-width:calc(100% - 340px)}[_nghost-%COMP%] .mat-toolbar.second[_ngcontent-%COMP%]{--mat-toolbar-standard-height: 56px;--mdc-outlined-button-container-height: 36px;border-bottom:1px solid var(--mat-sys-surface-variant)}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%]{height:100%}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .mat-drawer-backdrop{display:none}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .mat-drawer[_ngcontent-%COMP%]{height:100%;width:300px;border-left:1px solid var(--mat-sys-surface-variant)}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .mat-drawer[_ngcontent-%COMP%] .mat-drawer-inner-container{height:100%;flex-direction:column}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .mat-drawer[_ngcontent-%COMP%] .mat-drawer-inner-container>.mat-toolbar{height:40px!important}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .mat-drawer[_ngcontent-%COMP%] .mat-drawer-inner-container>.mat-toolbar h1{color:var(--body-color);font-size:16px;font-weight:400}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .mat-drawer.locked-drawer[_ngcontent-%COMP%]{--mat-sidenav-container-elevation-shadow: 0px 8px 10px -5px rgb(0 0 0 / 20%), 0px 16px 24px 2px rgb(0 0 0 / 14%), 0px 6px 30px 5px rgb(0 0 0 / 12%);width:50px;height:40px;border-top-left-radius:25px;border-bottom-left-radius:25px;border-left:none}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .mat-drawer[_ngcontent-%COMP%] .mat-mdc-icon-button[_ngcontent-%COMP%] .mat-mdc-button-focus-overlay{display:none}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .grid-container[_ngcontent-%COMP%]{height:100%;overflow-x:auto;background-color:#f5f5f5}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .grid-container[_ngcontent-%COMP%] .grid[_ngcontent-%COMP%]{height:100%}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .grid-container[_ngcontent-%COMP%] ix-component-grid[_ngcontent-%COMP%]{margin:0 auto;height:100%}@media (min-width: 960px){[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .grid-container[_ngcontent-%COMP%] ix-component-grid[_ngcontent-%COMP%]{max-width:970px}}@media (min-width: 1280px){[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .grid-container[_ngcontent-%COMP%] ix-component-grid[_ngcontent-%COMP%]{max-width:1200px}}@media (min-width: 1920px){[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .grid-container[_ngcontent-%COMP%] ix-component-grid[_ngcontent-%COMP%]{max-width:1600px}}@media screen and (min-width: 2251px){[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .grid-container[_ngcontent-%COMP%] ix-component-grid[_ngcontent-%COMP%]{max-width:2000px}}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .grid-container[_ngcontent-%COMP%] ix-component-grid.desktop[_ngcontent-%COMP%]{min-width:970px}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .grid-container[_ngcontent-%COMP%] ix-component-grid.mobile[_ngcontent-%COMP%]{max-width:480px}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .preview-grid-container[_ngcontent-%COMP%]{height:100%;width:100%;box-sizing:border-box;overflow-x:auto;display:flex;flex-direction:column;background-color:var(--detail-page-bg)}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .preview-grid-container.card[_ngcontent-%COMP%]{place-content:center}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .preview-grid-container.card[_ngcontent-%COMP%] .preview[_ngcontent-%COMP%]{display:flex;place-items:center}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .preview-grid-container[_ngcontent-%COMP%] .preview[_ngcontent-%COMP%]{height:100%}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .preview-grid-container[_ngcontent-%COMP%] .preview[_ngcontent-%COMP%] ix-simple-component-grid[_ngcontent-%COMP%]{height:100%;box-sizing:border-box;margin:0 auto}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .preview-grid-container[_ngcontent-%COMP%] .preview[_ngcontent-%COMP%] ix-simple-component-grid.desktop[_ngcontent-%COMP%]{min-width:970px}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .preview-grid-container[_ngcontent-%COMP%] .preview[_ngcontent-%COMP%] ix-simple-component-grid.mobile[_ngcontent-%COMP%]{max-width:480px;border-left:1px solid rgba(0,0,0,.08);border-right:1px solid rgba(0,0,0,.08)}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .preview-grid-container[_ngcontent-%COMP%] .preview[_ngcontent-%COMP%] ix-simple-card-component-grid[_ngcontent-%COMP%]{width:300px;padding:0;margin:0 auto;box-sizing:border-box;background-color:var(--card-bg);color:var(--card-color);color-scheme:var(--card-color-scheme);border:var(--card-border-width) solid var(--card-border-color);border-radius:8px}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .standalone[_ngcontent-%COMP%]{height:100%}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .standalone[_ngcontent-%COMP%] ix-component-loader[_ngcontent-%COMP%]{overflow:auto}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] ix-page-properties[_ngcontent-%COMP%]{padding:20px 16px}[_nghost-%COMP%] .select-button[_ngcontent-%COMP%]{padding-left:8px;padding-right:2px;margin-right:8px}[_nghost-%COMP%] .select-button[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]:first-child{margin-right:6px}[_nghost-%COMP%] .screen-toggle-group[_ngcontent-%COMP%], [_nghost-%COMP%] .orientation-toggle-group[_ngcontent-%COMP%], [_nghost-%COMP%] .application-type-toggle-group[_ngcontent-%COMP%]{margin-left:12px}[_nghost-%COMP%] .mode-button[_ngcontent-%COMP%]{margin-left:12px}[_nghost-%COMP%] .mode-button[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]:first-child{margin-right:6px}[_nghost-%COMP%] .report-grid[_ngcontent-%COMP%]{--card-bg: #fff;--card-border-color: rgb(0 0 0 / 12%);--card-border-width: 1px;--card-color: rgb(0 0 0 / 87%);--card-color-scheme: "light";margin:16px auto!important;background:#fff;height:842pt!important;width:595pt}[_nghost-%COMP%] .report-grid.landscape[_ngcontent-%COMP%]{height:595pt!important;width:842pt}[_nghost-%COMP%] .report-grid[_ngcontent-%COMP%] .canvas gridster .gridster-row{width:calc(100% - 76px)!important}[_nghost-%COMP%] .report-grid[_ngcontent-%COMP%] .gridster-column, [_nghost-%COMP%] .report-grid[_ngcontent-%COMP%] .gridster-row{border-color:#00000014}'],changeDetection:0});let BuilderComponent2=_BuilderComponent;return BuilderComponent2})();var BuilderGuard=(()=>{let _BuilderGuard=class _BuilderGuard{constructor(store){this.store=store}canActivate(){return forkJoin([this.getMyUser(),this.getMyCompany()]).pipe(map(()=>!0),take(1))}getMyUser(){return this._loadIfAbsent(selectMyUser,loadMe3())}getMyCompany(){return this._loadIfAbsent(selectMyCompany,loadMe())}_loadIfAbsent(selector3,action){return this.store.select(selector3).pipe(tap(entity=>{entity||this.store.dispatch(action)}),first(entity=>!!entity),map(()=>!0))}};_BuilderGuard.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_BuilderGuard)(\u0275\u0275inject(Store))},_BuilderGuard.\u0275prov=\u0275\u0275defineInjectable({token:_BuilderGuard,factory:_BuilderGuard.\u0275fac,providedIn:"root"});let BuilderGuard2=_BuilderGuard;return BuilderGuard2})();var LoginExpiredComponent=(()=>{let _LoginExpiredComponent=class _LoginExpiredComponent{constructor(document2,storage){this.document=document2,this.storage=storage}useMockData(){this.storage.forget("api-data-provider"),this.storage.forget("company"),this.reload()}reload(){this.document.location.href="/"}};_LoginExpiredComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_LoginExpiredComponent)(\u0275\u0275directiveInject(DOCUMENT),\u0275\u0275directiveInject(StorageService))},_LoginExpiredComponent.\u0275cmp=\u0275\u0275defineComponent({type:_LoginExpiredComponent,selectors:[["ix-login-expired"]],standalone:!1,decls:18,vars:0,consts:[["fxFlex","","fxLayout","column","fxLayoutAlign","center center",1,"ix-surface"],[1,"ix-status-card"],[1,"ix-status-card__icon"],["type","button","mat-button","","color","primary",3,"click"]],template:function(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"div",0)(1,"mat-card",1)(2,"div",2)(3,"mat-icon"),\u0275\u0275text(4,"error"),\u0275\u0275elementEnd()(),\u0275\u0275elementStart(5,"mat-card-header")(6,"mat-card-title"),\u0275\u0275text(7,"Login expired"),\u0275\u0275elementEnd(),\u0275\u0275elementStart(8,"mat-card-subtitle"),\u0275\u0275text(9," Please re-authenticate via the command line "),\u0275\u0275elementStart(10,"pre"),\u0275\u0275text(11,"npx cdk login"),\u0275\u0275elementEnd(),\u0275\u0275text(12," and reload or revert to using API mock data. "),\u0275\u0275elementEnd()(),\u0275\u0275elementStart(13,"mat-card-actions")(14,"button",3),\u0275\u0275listener("click",function(){return ctx.useMockData()}),\u0275\u0275text(15,"Use mock data"),\u0275\u0275elementEnd(),\u0275\u0275elementStart(16,"button",3),\u0275\u0275listener("click",function(){return ctx.reload()}),\u0275\u0275text(17,"Reload"),\u0275\u0275elementEnd()()()())},dependencies:[DefaultLayoutDirective,DefaultLayoutAlignDirective,DefaultFlexDirective,MatButton,MatCard,MatCardActions,MatCardHeader,MatCardSubtitle,MatCardTitle,MatIcon],styles:["[_nghost-%COMP%]{width:100%;height:100%}"],changeDetection:0});let LoginExpiredComponent3=_LoginExpiredComponent;return LoginExpiredComponent3})();var LoginExpiredCanActivateGuard=(()=>{let _LoginExpiredCanActivateGuard=class _LoginExpiredCanActivateGuard{constructor(router,storage){this.router=router,this.storage=storage}canActivate(route){return this.isAuthenticated(route)}isAuthenticated(route){return of(this.storage.has("auth")).pipe(tap(authenticated=>{if(authenticated)if(route.queryParamMap.has("next")){let next=route.queryParams.next;this.router.navigateByUrl(next).then(success=>{success||this.router.navigate(["/"])})}else this.router.navigate(["/"])}),map(authenticated=>!authenticated))}};_LoginExpiredCanActivateGuard.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_LoginExpiredCanActivateGuard)(\u0275\u0275inject(Router),\u0275\u0275inject(StorageService))},_LoginExpiredCanActivateGuard.\u0275prov=\u0275\u0275defineInjectable({token:_LoginExpiredCanActivateGuard,factory:_LoginExpiredCanActivateGuard.\u0275fac,providedIn:"root"});let LoginExpiredCanActivateGuard2=_LoginExpiredCanActivateGuard;return LoginExpiredCanActivateGuard2})();var LoginExpiredModule=(()=>{let _LoginExpiredModule=class _LoginExpiredModule{};_LoginExpiredModule.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_LoginExpiredModule)},_LoginExpiredModule.\u0275mod=\u0275\u0275defineNgModule({type:_LoginExpiredModule}),_LoginExpiredModule.\u0275inj=\u0275\u0275defineInjector({imports:[SharedModule]});let LoginExpiredModule2=_LoginExpiredModule;return LoginExpiredModule2})();var ManifestInvalidComponent=(()=>{let _ManifestInvalidComponent=class _ManifestInvalidComponent{};_ManifestInvalidComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_ManifestInvalidComponent)},_ManifestInvalidComponent.\u0275cmp=\u0275\u0275defineComponent({type:_ManifestInvalidComponent,selectors:[["ix-manifest-invalid"]],standalone:!1,decls:13,vars:0,consts:[["fxFlex","","fxLayout","column","fxLayoutAlign","center center",1,"ix-surface"],[1,"ix-status-card"],[1,"ix-status-card__icon"]],template:function(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"div",0)(1,"mat-card",1)(2,"div",2)(3,"mat-icon"),\u0275\u0275text(4,"error"),\u0275\u0275elementEnd()(),\u0275\u0275elementStart(5,"mat-card-header")(6,"mat-card-title"),\u0275\u0275text(7,"Manifest invalid"),\u0275\u0275elementEnd(),\u0275\u0275elementStart(8,"mat-card-subtitle"),\u0275\u0275text(9," Schema validation for the "),\u0275\u0275elementStart(10,"pre"),\u0275\u0275text(11,"manifest.json"),\u0275\u0275elementEnd(),\u0275\u0275text(12," file failed. "),\u0275\u0275elementEnd()()()())},dependencies:[DefaultLayoutDirective,DefaultLayoutAlignDirective,DefaultFlexDirective,MatCard,MatCardHeader,MatCardSubtitle,MatCardTitle,MatIcon],styles:["[_nghost-%COMP%]{width:100%;height:100%}"],changeDetection:0});let ManifestInvalidComponent3=_ManifestInvalidComponent;return ManifestInvalidComponent3})();var TwoFactorAuthRequiredComponent=(()=>{let _TwoFactorAuthRequiredComponent=class _TwoFactorAuthRequiredComponent{constructor(document2,storage){this.document=document2,this.storage=storage}switchCompany(){this.storage.forget("api-data-provider"),this.storage.forget("company"),this.document.location.href="/settings/general"}useMockData(){this.storage.forget("api-data-provider"),this.storage.forget("company"),this.document.location.href="/"}};_TwoFactorAuthRequiredComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_TwoFactorAuthRequiredComponent)(\u0275\u0275directiveInject(DOCUMENT),\u0275\u0275directiveInject(StorageService))},_TwoFactorAuthRequiredComponent.\u0275cmp=\u0275\u0275defineComponent({type:_TwoFactorAuthRequiredComponent,selectors:[["ix-two-factor-auth-required"]],decls:13,vars:0,consts:[["fxFlex","","fxLayout","column","fxLayoutAlign","center center",1,"ix-surface"],[1,"ix-status-card"],[1,"ix-status-card__icon"],["type","button","mat-button","","color","primary",3,"click"]],template:function(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"div",0)(1,"mat-card",1)(2,"div",2)(3,"mat-icon"),\u0275\u0275text(4,"error"),\u0275\u0275elementEnd()(),\u0275\u0275elementStart(5,"mat-card-header")(6,"mat-card-title"),\u0275\u0275text(7,"Two-factor authentication is required"),\u0275\u0275elementEnd()(),\u0275\u0275elementStart(8,"mat-card-actions")(9,"button",3),\u0275\u0275listener("click",function(){return ctx.useMockData()}),\u0275\u0275text(10,"Use mock data"),\u0275\u0275elementEnd(),\u0275\u0275elementStart(11,"button",3),\u0275\u0275listener("click",function(){return ctx.switchCompany()}),\u0275\u0275text(12,"Switch company"),\u0275\u0275elementEnd()()()())},dependencies:[FlexModule,DefaultLayoutDirective,DefaultLayoutAlignDirective,DefaultFlexDirective,MatButtonModule,MatButton,MatCardModule,MatCard,MatCardActions,MatCardHeader,MatCardTitle,MatIconModule,MatIcon],styles:["[_nghost-%COMP%]{width:100%;height:100%}"],changeDetection:0});let TwoFactorAuthRequiredComponent2=_TwoFactorAuthRequiredComponent;return TwoFactorAuthRequiredComponent2})();var routes=[{path:"",canActivate:[AppGuard],children:[{path:"",component:BuilderComponent,canActivate:__use_api_mocks__?[BuilderGuard]:[AuthCompanyGuard,BuilderGuard]},{path:"settings",loadChildren:()=>import("./chunk-MUPTS4TW.js").then(m=>m.SettingsModule)},...__use_api_mocks__?[]:[{path:"login",component:LoginExpiredComponent,canActivate:[LoginExpiredCanActivateGuard]},{path:"my-companies",redirectTo:"settings"},{path:"two-factor-auth-required",component:TwoFactorAuthRequiredComponent}]]},{path:"manifest-invalid",component:ManifestInvalidComponent},{path:"**",redirectTo:""}];var AppRoutingConfig={routerState:RouterState?.Minimal,serializer:CustomRouterStateSerializer};var AppRoutingModule=(()=>{let _AppRoutingModule=class _AppRoutingModule{};_AppRoutingModule.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_AppRoutingModule)},_AppRoutingModule.\u0275mod=\u0275\u0275defineNgModule({type:_AppRoutingModule}),_AppRoutingModule.\u0275inj=\u0275\u0275defineInjector({imports:[RouterModule.forRoot(routes,{onSameUrlNavigation:"reload",preloadingStrategy:CustomPreloadingStrategy}),StoreRouterConnectingModule.forRoot(AppRoutingConfig),RouterModule]});let AppRoutingModule2=_AppRoutingModule;return AppRoutingModule2})();var PERFORM_ACTION="PERFORM_ACTION",REFRESH="REFRESH",RESET="RESET",ROLLBACK="ROLLBACK",COMMIT="COMMIT",SWEEP="SWEEP",TOGGLE_ACTION="TOGGLE_ACTION",SET_ACTIONS_ACTIVE="SET_ACTIONS_ACTIVE",JUMP_TO_STATE="JUMP_TO_STATE",JUMP_TO_ACTION="JUMP_TO_ACTION",IMPORT_STATE="IMPORT_STATE",LOCK_CHANGES="LOCK_CHANGES",PAUSE_RECORDING="PAUSE_RECORDING",PerformAction=class{constructor(action,timestamp2){if(this.action=action,this.timestamp=timestamp2,this.type=PERFORM_ACTION,typeof action.type>"u")throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?')}},Refresh=class{constructor(){this.type=REFRESH}},Reset=class{constructor(timestamp2){this.timestamp=timestamp2,this.type=RESET}},Rollback=class{constructor(timestamp2){this.timestamp=timestamp2,this.type=ROLLBACK}},Commit=class{constructor(timestamp2){this.timestamp=timestamp2,this.type=COMMIT}},Sweep=class{constructor(){this.type=SWEEP}},ToggleAction=class{constructor(id){this.id=id,this.type=TOGGLE_ACTION}};var JumpToState=class{constructor(index){this.index=index,this.type=JUMP_TO_STATE}},JumpToAction=class{constructor(actionId){this.actionId=actionId,this.type=JUMP_TO_ACTION}},ImportState=class{constructor(nextLiftedState){this.nextLiftedState=nextLiftedState,this.type=IMPORT_STATE}},LockChanges=class{constructor(status){this.status=status,this.type=LOCK_CHANGES}},PauseRecording=class{constructor(status){this.status=status,this.type=PAUSE_RECORDING}};var STORE_DEVTOOLS_CONFIG=new InjectionToken("@ngrx/store-devtools Options"),INITIAL_OPTIONS=new InjectionToken("@ngrx/store-devtools Initial Config");function noMonitor(){return null}var DEFAULT_NAME="NgRx Store DevTools";function createConfig(optionsInput){let DEFAULT_OPTIONS2={maxAge:!1,monitor:noMonitor,actionSanitizer:void 0,stateSanitizer:void 0,name:DEFAULT_NAME,serialize:!1,logOnly:!1,autoPause:!1,trace:!1,traceLimit:75,features:{pause:!0,lock:!0,persist:!0,export:!0,import:"custom",jump:!0,skip:!0,reorder:!0,dispatch:!0,test:!0},connectInZone:!1},options=typeof optionsInput=="function"?optionsInput():optionsInput,logOnly=options.logOnly?{pause:!0,export:!0,test:!0}:!1,features2=options.features||logOnly||DEFAULT_OPTIONS2.features;features2.import===!0&&(features2.import="custom");let config3=Object.assign({},DEFAULT_OPTIONS2,{features:features2},options);if(config3.maxAge&&config3.maxAge<2)throw new Error(`Devtools 'maxAge' cannot be less than 2, got ${config3.maxAge}`);return config3}function difference(first2,second){return first2.filter(item=>second.indexOf(item)<0)}function unliftState(liftedState){let{computedStates,currentStateIndex}=liftedState;if(currentStateIndex>=computedStates.length){let{state:state2}=computedStates[computedStates.length-1];return state2}let{state}=computedStates[currentStateIndex];return state}function liftAction(action){return new PerformAction(action,+Date.now())}function sanitizeActions(actionSanitizer,actions){return Object.keys(actions).reduce((sanitizedActions,actionIdx)=>{let idx=Number(actionIdx);return sanitizedActions[idx]=sanitizeAction(actionSanitizer,actions[idx],idx),sanitizedActions},{})}function sanitizeAction(actionSanitizer,action,actionIdx){return __spreadProps(__spreadValues({},action),{action:actionSanitizer(action.action,actionIdx)})}function sanitizeStates(stateSanitizer,states){return states.map((computedState,idx)=>({state:sanitizeState(stateSanitizer,computedState.state,idx),error:computedState.error}))}function sanitizeState(stateSanitizer,state,stateIdx){return stateSanitizer(state,stateIdx)}function shouldFilterActions(config3){return config3.predicate||config3.actionsSafelist||config3.actionsBlocklist}function filterLiftedState(liftedState,predicate,safelist,blocklist){let filteredStagedActionIds=[],filteredActionsById={},filteredComputedStates=[];return liftedState.stagedActionIds.forEach((id,idx)=>{let liftedAction=liftedState.actionsById[id];liftedAction&&(idx&&isActionFiltered(liftedState.computedStates[idx],liftedAction,predicate,safelist,blocklist)||(filteredActionsById[id]=liftedAction,filteredStagedActionIds.push(id),filteredComputedStates.push(liftedState.computedStates[idx])))}),__spreadProps(__spreadValues({},liftedState),{stagedActionIds:filteredStagedActionIds,actionsById:filteredActionsById,computedStates:filteredComputedStates})}function isActionFiltered(state,action,predicate,safelist,blockedlist){let predicateMatch=predicate&&!predicate(state,action.action),safelistMatch=safelist&&!action.action.type.match(safelist.map(s2=>escapeRegExp(s2)).join("|")),blocklistMatch=blockedlist&&action.action.type.match(blockedlist.map(s2=>escapeRegExp(s2)).join("|"));return predicateMatch||safelistMatch||blocklistMatch}function escapeRegExp(s2){return s2.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function injectZoneConfig(connectInZone){return{ngZone:connectInZone?inject(NgZone):null,connectInZone}}var DevtoolsDispatcher=(()=>{let _DevtoolsDispatcher=class _DevtoolsDispatcher extends ActionsSubject{};_DevtoolsDispatcher.\u0275fac=(()=>{let \u0275DevtoolsDispatcher_BaseFactory;return function(__ngFactoryType__){return(\u0275DevtoolsDispatcher_BaseFactory||(\u0275DevtoolsDispatcher_BaseFactory=\u0275\u0275getInheritedFactory(_DevtoolsDispatcher)))(__ngFactoryType__||_DevtoolsDispatcher)}})(),_DevtoolsDispatcher.\u0275prov=\u0275\u0275defineInjectable({token:_DevtoolsDispatcher,factory:_DevtoolsDispatcher.\u0275fac});let DevtoolsDispatcher2=_DevtoolsDispatcher;return DevtoolsDispatcher2})(),ExtensionActionTypes={START:"START",DISPATCH:"DISPATCH",STOP:"STOP",ACTION:"ACTION"},REDUX_DEVTOOLS_EXTENSION=new InjectionToken("@ngrx/store-devtools Redux Devtools Extension"),DevtoolsExtension=(()=>{let _DevtoolsExtension=class _DevtoolsExtension{constructor(devtoolsExtension,config3,dispatcher){this.config=config3,this.dispatcher=dispatcher,this.zoneConfig=injectZoneConfig(this.config.connectInZone),this.devtoolsExtension=devtoolsExtension,this.createActionStreams()}notify(action,state){if(this.devtoolsExtension)if(action.type===PERFORM_ACTION){if(state.isLocked||state.isPaused)return;let currentState=unliftState(state);if(shouldFilterActions(this.config)&&isActionFiltered(currentState,action,this.config.predicate,this.config.actionsSafelist,this.config.actionsBlocklist))return;let sanitizedState=this.config.stateSanitizer?sanitizeState(this.config.stateSanitizer,currentState,state.currentStateIndex):currentState,sanitizedAction=this.config.actionSanitizer?sanitizeAction(this.config.actionSanitizer,action,state.nextActionId):action;this.sendToReduxDevtools(()=>this.extensionConnection.send(sanitizedAction,sanitizedState))}else{let sanitizedLiftedState=__spreadProps(__spreadValues({},state),{stagedActionIds:state.stagedActionIds,actionsById:this.config.actionSanitizer?sanitizeActions(this.config.actionSanitizer,state.actionsById):state.actionsById,computedStates:this.config.stateSanitizer?sanitizeStates(this.config.stateSanitizer,state.computedStates):state.computedStates});this.sendToReduxDevtools(()=>this.devtoolsExtension.send(null,sanitizedLiftedState,this.getExtensionConfig(this.config)))}}createChangesObservable(){return this.devtoolsExtension?new Observable(subscriber=>{let connection=this.zoneConfig.connectInZone?this.zoneConfig.ngZone.runOutsideAngular(()=>this.devtoolsExtension.connect(this.getExtensionConfig(this.config))):this.devtoolsExtension.connect(this.getExtensionConfig(this.config));return this.extensionConnection=connection,connection.init(),connection.subscribe(change=>subscriber.next(change)),connection.unsubscribe}):EMPTY}createActionStreams(){let changes$=this.createChangesObservable().pipe(share()),start$=changes$.pipe(filter(change=>change.type===ExtensionActionTypes.START)),stop$=changes$.pipe(filter(change=>change.type===ExtensionActionTypes.STOP)),liftedActions$=changes$.pipe(filter(change=>change.type===ExtensionActionTypes.DISPATCH),map(change=>this.unwrapAction(change.payload)),concatMap(action=>action.type===IMPORT_STATE?this.dispatcher.pipe(filter(action2=>action2.type===UPDATE),timeout(1e3),debounceTime(1e3),map(()=>action),catchError(()=>of(action)),take(1)):of(action))),actionsUntilStop$=changes$.pipe(filter(change=>change.type===ExtensionActionTypes.ACTION),map(change=>this.unwrapAction(change.payload))).pipe(takeUntil(stop$)),liftedUntilStop$=liftedActions$.pipe(takeUntil(stop$));this.start$=start$.pipe(takeUntil(stop$)),this.actions$=this.start$.pipe(switchMap(()=>actionsUntilStop$)),this.liftedActions$=this.start$.pipe(switchMap(()=>liftedUntilStop$))}unwrapAction(action){return typeof action=="string"?(0,eval)(`(${action})`):action}getExtensionConfig(config3){let extensionOptions={name:config3.name,features:config3.features,serialize:config3.serialize,autoPause:config3.autoPause??!1,trace:config3.trace??!1,traceLimit:config3.traceLimit??75};return config3.maxAge!==!1&&(extensionOptions.maxAge=config3.maxAge),extensionOptions}sendToReduxDevtools(send){try{send()}catch(err){console.warn("@ngrx/store-devtools: something went wrong inside the redux devtools",err)}}};_DevtoolsExtension.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_DevtoolsExtension)(\u0275\u0275inject(REDUX_DEVTOOLS_EXTENSION),\u0275\u0275inject(STORE_DEVTOOLS_CONFIG),\u0275\u0275inject(DevtoolsDispatcher))},_DevtoolsExtension.\u0275prov=\u0275\u0275defineInjectable({token:_DevtoolsExtension,factory:_DevtoolsExtension.\u0275fac});let DevtoolsExtension2=_DevtoolsExtension;return DevtoolsExtension2})(),INIT_ACTION={type:INIT},RECOMPUTE="@ngrx/store-devtools/recompute",RECOMPUTE_ACTION={type:RECOMPUTE};function computeNextEntry(reducer44,action,state,error2,errorHandler){if(error2)return{state,error:"Interrupted by an error up the chain"};let nextState=state,nextError;try{nextState=reducer44(state,action)}catch(err){nextError=err.toString(),errorHandler.handleError(err)}return{state:nextState,error:nextError}}function recomputeStates(computedStates,minInvalidatedStateIndex,reducer44,committedState,actionsById,stagedActionIds,skippedActionIds,errorHandler,isPaused){if(minInvalidatedStateIndex>=computedStates.length&&computedStates.length===stagedActionIds.length)return computedStates;let nextComputedStates=computedStates.slice(0,minInvalidatedStateIndex),lastIncludedActionId=stagedActionIds.length-(isPaused?1:0);for(let i=minInvalidatedStateIndex;i<lastIncludedActionId;i++){let actionId=stagedActionIds[i],action=actionsById[actionId].action,previousEntry=nextComputedStates[i-1],previousState=previousEntry?previousEntry.state:committedState,previousError=previousEntry?previousEntry.error:void 0,entry=skippedActionIds.indexOf(actionId)>-1?previousEntry:computeNextEntry(reducer44,action,previousState,previousError,errorHandler);nextComputedStates.push(entry)}return isPaused&&nextComputedStates.push(computedStates[computedStates.length-1]),nextComputedStates}function liftInitialState(initialCommittedState,monitorReducer){return{monitorState:monitorReducer(void 0,{}),nextActionId:1,actionsById:{0:liftAction(INIT_ACTION)},stagedActionIds:[0],skippedActionIds:[],committedState:initialCommittedState,currentStateIndex:0,computedStates:[],isLocked:!1,isPaused:!1}}function liftReducerWith(initialCommittedState,initialLiftedState,errorHandler,monitorReducer,options={}){return reducer44=>(liftedState,liftedAction)=>{let{monitorState,actionsById,nextActionId,stagedActionIds,skippedActionIds,committedState,currentStateIndex,computedStates,isLocked,isPaused}=liftedState||initialLiftedState;liftedState||(actionsById=Object.create(actionsById));function commitExcessActions(n2){let excess=n2,idsToDelete=stagedActionIds.slice(1,excess+1);for(let i=0;i<idsToDelete.length;i++)if(computedStates[i+1].error){excess=i,idsToDelete=stagedActionIds.slice(1,excess+1);break}else delete actionsById[idsToDelete[i]];skippedActionIds=skippedActionIds.filter(id=>idsToDelete.indexOf(id)===-1),stagedActionIds=[0,...stagedActionIds.slice(excess+1)],committedState=computedStates[excess].state,computedStates=computedStates.slice(excess),currentStateIndex=currentStateIndex>excess?currentStateIndex-excess:0}function commitChanges(){actionsById={0:liftAction(INIT_ACTION)},nextActionId=1,stagedActionIds=[0],skippedActionIds=[],committedState=computedStates[currentStateIndex].state,currentStateIndex=0,computedStates=[]}let minInvalidatedStateIndex=0;switch(liftedAction.type){case LOCK_CHANGES:{isLocked=liftedAction.status,minInvalidatedStateIndex=1/0;break}case PAUSE_RECORDING:{isPaused=liftedAction.status,isPaused?(stagedActionIds=[...stagedActionIds,nextActionId],actionsById[nextActionId]=new PerformAction({type:"@ngrx/devtools/pause"},+Date.now()),nextActionId++,minInvalidatedStateIndex=stagedActionIds.length-1,computedStates=computedStates.concat(computedStates[computedStates.length-1]),currentStateIndex===stagedActionIds.length-2&&currentStateIndex++,minInvalidatedStateIndex=1/0):commitChanges();break}case RESET:{actionsById={0:liftAction(INIT_ACTION)},nextActionId=1,stagedActionIds=[0],skippedActionIds=[],committedState=initialCommittedState,currentStateIndex=0,computedStates=[];break}case COMMIT:{commitChanges();break}case ROLLBACK:{actionsById={0:liftAction(INIT_ACTION)},nextActionId=1,stagedActionIds=[0],skippedActionIds=[],currentStateIndex=0,computedStates=[];break}case TOGGLE_ACTION:{let{id:actionId}=liftedAction;skippedActionIds.indexOf(actionId)===-1?skippedActionIds=[actionId,...skippedActionIds]:skippedActionIds=skippedActionIds.filter(id=>id!==actionId),minInvalidatedStateIndex=stagedActionIds.indexOf(actionId);break}case SET_ACTIONS_ACTIVE:{let{start:start3,end:end2,active}=liftedAction,actionIds=[];for(let i=start3;i<end2;i++)actionIds.push(i);active?skippedActionIds=difference(skippedActionIds,actionIds):skippedActionIds=[...skippedActionIds,...actionIds],minInvalidatedStateIndex=stagedActionIds.indexOf(start3);break}case JUMP_TO_STATE:{currentStateIndex=liftedAction.index,minInvalidatedStateIndex=1/0;break}case JUMP_TO_ACTION:{let index=stagedActionIds.indexOf(liftedAction.actionId);index!==-1&&(currentStateIndex=index),minInvalidatedStateIndex=1/0;break}case SWEEP:{stagedActionIds=difference(stagedActionIds,skippedActionIds),skippedActionIds=[],currentStateIndex=Math.min(currentStateIndex,stagedActionIds.length-1);break}case PERFORM_ACTION:{if(isLocked)return liftedState||initialLiftedState;if(isPaused||liftedState&&isActionFiltered(liftedState.computedStates[currentStateIndex],liftedAction,options.predicate,options.actionsSafelist,options.actionsBlocklist)){let lastState=computedStates[computedStates.length-1];computedStates=[...computedStates.slice(0,-1),computeNextEntry(reducer44,liftedAction.action,lastState.state,lastState.error,errorHandler)],minInvalidatedStateIndex=1/0;break}options.maxAge&&stagedActionIds.length===options.maxAge&&commitExcessActions(1),currentStateIndex===stagedActionIds.length-1&&currentStateIndex++;let actionId=nextActionId++;actionsById[actionId]=liftedAction,stagedActionIds=[...stagedActionIds,actionId],minInvalidatedStateIndex=stagedActionIds.length-1;break}case IMPORT_STATE:{({monitorState,actionsById,nextActionId,stagedActionIds,skippedActionIds,committedState,currentStateIndex,computedStates,isLocked,isPaused}=liftedAction.nextLiftedState);break}case INIT:{minInvalidatedStateIndex=0,options.maxAge&&stagedActionIds.length>options.maxAge&&(computedStates=recomputeStates(computedStates,minInvalidatedStateIndex,reducer44,committedState,actionsById,stagedActionIds,skippedActionIds,errorHandler,isPaused),commitExcessActions(stagedActionIds.length-options.maxAge),minInvalidatedStateIndex=1/0);break}case UPDATE:{if(computedStates.filter(state=>state.error).length>0)minInvalidatedStateIndex=0,options.maxAge&&stagedActionIds.length>options.maxAge&&(computedStates=recomputeStates(computedStates,minInvalidatedStateIndex,reducer44,committedState,actionsById,stagedActionIds,skippedActionIds,errorHandler,isPaused),commitExcessActions(stagedActionIds.length-options.maxAge),minInvalidatedStateIndex=1/0);else{if(!isPaused&&!isLocked){currentStateIndex===stagedActionIds.length-1&&currentStateIndex++;let actionId=nextActionId++;actionsById[actionId]=new PerformAction(liftedAction,+Date.now()),stagedActionIds=[...stagedActionIds,actionId],minInvalidatedStateIndex=stagedActionIds.length-1,computedStates=recomputeStates(computedStates,minInvalidatedStateIndex,reducer44,committedState,actionsById,stagedActionIds,skippedActionIds,errorHandler,isPaused)}computedStates=computedStates.map(cmp=>__spreadProps(__spreadValues({},cmp),{state:reducer44(cmp.state,RECOMPUTE_ACTION)})),currentStateIndex=stagedActionIds.length-1,options.maxAge&&stagedActionIds.length>options.maxAge&&commitExcessActions(stagedActionIds.length-options.maxAge),minInvalidatedStateIndex=1/0}break}default:{minInvalidatedStateIndex=1/0;break}}return computedStates=recomputeStates(computedStates,minInvalidatedStateIndex,reducer44,committedState,actionsById,stagedActionIds,skippedActionIds,errorHandler,isPaused),monitorState=monitorReducer(monitorState,liftedAction),{monitorState,actionsById,nextActionId,stagedActionIds,skippedActionIds,committedState,currentStateIndex,computedStates,isLocked,isPaused}}}var StoreDevtools=(()=>{let _StoreDevtools=class _StoreDevtools{constructor(dispatcher,actions$,reducers$,extension,scannedActions,errorHandler,initialState48,config3){let liftedInitialState=liftInitialState(initialState48,config3.monitor),liftReducer=liftReducerWith(initialState48,liftedInitialState,errorHandler,config3.monitor,config3),liftedAction$=merge(merge(actions$.asObservable().pipe(skip(1)),extension.actions$).pipe(map(liftAction)),dispatcher,extension.liftedActions$).pipe(observeOn(queueScheduler)),liftedReducer$=reducers$.pipe(map(liftReducer)),zoneConfig=injectZoneConfig(config3.connectInZone),liftedStateSubject=new ReplaySubject(1);this.liftedStateSubscription=liftedAction$.pipe(withLatestFrom(liftedReducer$),emitInZone(zoneConfig),scan(({state:liftedState},[action,reducer44])=>{let reducedLiftedState=reducer44(liftedState,action);return action.type!==PERFORM_ACTION&&shouldFilterActions(config3)&&(reducedLiftedState=filterLiftedState(reducedLiftedState,config3.predicate,config3.actionsSafelist,config3.actionsBlocklist)),extension.notify(action,reducedLiftedState),{state:reducedLiftedState,action}},{state:liftedInitialState,action:null})).subscribe(({state,action})=>{if(liftedStateSubject.next(state),action.type===PERFORM_ACTION){let unliftedAction=action.action;scannedActions.next(unliftedAction)}}),this.extensionStartSubscription=extension.start$.pipe(emitInZone(zoneConfig)).subscribe(()=>{this.refresh()});let liftedState$=liftedStateSubject.asObservable(),state$=liftedState$.pipe(map(unliftState));Object.defineProperty(state$,"state",{value:toSignal(state$,{manualCleanup:!0,requireSync:!0})}),this.dispatcher=dispatcher,this.liftedState=liftedState$,this.state=state$}ngOnDestroy(){this.liftedStateSubscription.unsubscribe(),this.extensionStartSubscription.unsubscribe()}dispatch(action){this.dispatcher.next(action)}next(action){this.dispatcher.next(action)}error(error2){}complete(){}performAction(action){this.dispatch(new PerformAction(action,+Date.now()))}refresh(){this.dispatch(new Refresh)}reset(){this.dispatch(new Reset(+Date.now()))}rollback(){this.dispatch(new Rollback(+Date.now()))}commit(){this.dispatch(new Commit(+Date.now()))}sweep(){this.dispatch(new Sweep)}toggleAction(id){this.dispatch(new ToggleAction(id))}jumpToAction(actionId){this.dispatch(new JumpToAction(actionId))}jumpToState(index){this.dispatch(new JumpToState(index))}importState(nextLiftedState){this.dispatch(new ImportState(nextLiftedState))}lockChanges(status){this.dispatch(new LockChanges(status))}pauseRecording(status){this.dispatch(new PauseRecording(status))}};_StoreDevtools.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_StoreDevtools)(\u0275\u0275inject(DevtoolsDispatcher),\u0275\u0275inject(ActionsSubject),\u0275\u0275inject(ReducerObservable),\u0275\u0275inject(DevtoolsExtension),\u0275\u0275inject(ScannedActionsSubject),\u0275\u0275inject(ErrorHandler),\u0275\u0275inject(INITIAL_STATE),\u0275\u0275inject(STORE_DEVTOOLS_CONFIG))},_StoreDevtools.\u0275prov=\u0275\u0275defineInjectable({token:_StoreDevtools,factory:_StoreDevtools.\u0275fac});let StoreDevtools2=_StoreDevtools;return StoreDevtools2})();function emitInZone({ngZone,connectInZone}){return source=>connectInZone?new Observable(subscriber=>source.subscribe({next:value=>ngZone.run(()=>subscriber.next(value)),error:error2=>ngZone.run(()=>subscriber.error(error2)),complete:()=>ngZone.run(()=>subscriber.complete())})):source}var IS_EXTENSION_OR_MONITOR_PRESENT=new InjectionToken("@ngrx/store-devtools Is Devtools Extension or Monitor Present");function createIsExtensionOrMonitorPresent(extension,config3){return!!extension||config3.monitor!==noMonitor}function createReduxDevtoolsExtension(){let extensionKey="__REDUX_DEVTOOLS_EXTENSION__";return typeof window=="object"&&typeof window[extensionKey]<"u"?window[extensionKey]:null}function createStateObservable(devtools){return devtools.state}function provideStoreDevtools(options={}){return makeEnvironmentProviders([DevtoolsExtension,DevtoolsDispatcher,StoreDevtools,{provide:INITIAL_OPTIONS,useValue:options},{provide:IS_EXTENSION_OR_MONITOR_PRESENT,deps:[REDUX_DEVTOOLS_EXTENSION,STORE_DEVTOOLS_CONFIG],useFactory:createIsExtensionOrMonitorPresent},{provide:REDUX_DEVTOOLS_EXTENSION,useFactory:createReduxDevtoolsExtension},{provide:STORE_DEVTOOLS_CONFIG,deps:[INITIAL_OPTIONS],useFactory:createConfig},{provide:StateObservable,deps:[StoreDevtools],useFactory:createStateObservable},{provide:ReducerManagerDispatcher,useExisting:DevtoolsDispatcher}])}var StoreDevtoolsModule=(()=>{let _StoreDevtoolsModule=class _StoreDevtoolsModule{static instrument(options={}){return{ngModule:_StoreDevtoolsModule,providers:[provideStoreDevtools(options)]}}};_StoreDevtoolsModule.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_StoreDevtoolsModule)},_StoreDevtoolsModule.\u0275mod=\u0275\u0275defineNgModule({type:_StoreDevtoolsModule}),_StoreDevtoolsModule.\u0275inj=\u0275\u0275defineInjector({});let StoreDevtoolsModule2=_StoreDevtoolsModule;return StoreDevtoolsModule2})();var GLOBAL_OBJ=globalThis;var DEBUG_BUILD=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;var SDK_VERSION="9.12.0";function getMainCarrier(){return getSentryCarrier(GLOBAL_OBJ),GLOBAL_OBJ}function getSentryCarrier(carrier){let __SENTRY__=carrier.__SENTRY__=carrier.__SENTRY__||{};return __SENTRY__.version=__SENTRY__.version||SDK_VERSION,__SENTRY__[SDK_VERSION]=__SENTRY__[SDK_VERSION]||{}}function getGlobalSingleton(name,creator,obj=GLOBAL_OBJ){let __SENTRY__=obj.__SENTRY__=obj.__SENTRY__||{},carrier=__SENTRY__[SDK_VERSION]=__SENTRY__[SDK_VERSION]||{};return carrier[name]||(carrier[name]=creator())}var PREFIX="Sentry Logger ",CONSOLE_LEVELS=["debug","info","warn","error","log","assert","trace"],originalConsoleMethods={};function consoleSandbox(callback){if(!("console"in GLOBAL_OBJ))return callback();let console2=GLOBAL_OBJ.console,wrappedFuncs={},wrappedLevels=Object.keys(originalConsoleMethods);wrappedLevels.forEach(level=>{let originalConsoleMethod=originalConsoleMethods[level];wrappedFuncs[level]=console2[level],console2[level]=originalConsoleMethod});try{return callback()}finally{wrappedLevels.forEach(level=>{console2[level]=wrappedFuncs[level]})}}function makeLogger(){let enabled=!1,logger2={enable:()=>{enabled=!0},disable:()=>{enabled=!1},isEnabled:()=>enabled};return DEBUG_BUILD?CONSOLE_LEVELS.forEach(name=>{logger2[name]=(...args)=>{enabled&&consoleSandbox(()=>{GLOBAL_OBJ.console[name](`${PREFIX}[${name}]:`,...args)})}}):CONSOLE_LEVELS.forEach(name=>{logger2[name]=()=>{}}),logger2}var logger=getGlobalSingleton("logger",makeLogger);var ONE_SECOND_IN_MS=1e3;function dateTimestampInSeconds(){return Date.now()/ONE_SECOND_IN_MS}function createUnixTimestampInSecondsFunc(){let{performance:performance2}=GLOBAL_OBJ;if(!performance2?.now)return dateTimestampInSeconds;let approxStartingTimeOrigin=Date.now()-performance2.now(),timeOrigin=performance2.timeOrigin==null?approxStartingTimeOrigin:performance2.timeOrigin;return()=>(timeOrigin+performance2.now())/ONE_SECOND_IN_MS}var timestampInSeconds=createUnixTimestampInSecondsFunc();var objectToString=Object.prototype.toString;function isBuiltin(wat,className){return objectToString.call(wat)===`[object ${className}]`}function isPlainObject(wat){return isBuiltin(wat,"Object")}function isThenable(wat){return!!(wat?.then&&typeof wat.then=="function")}function truncate(str,max2=0){return typeof str!="string"||max2===0||str.length<=max2?str:`${str.slice(0,max2)}...`}function addNonEnumerableProperty(obj,name,value){try{Object.defineProperty(obj,name,{value,writable:!0,configurable:!0})}catch{DEBUG_BUILD&&logger.log(`Failed to add non-enumerable property "${name}" to object`,obj)}}function getCrypto(){let gbl=GLOBAL_OBJ;return gbl.crypto||gbl.msCrypto}function uuid4(crypto2=getCrypto()){let getRandomByte=()=>Math.random()*16;try{if(crypto2?.randomUUID)return crypto2.randomUUID().replace(/-/g,"");crypto2?.getRandomValues&&(getRandomByte=()=>{let typedArray=new Uint8Array(1);return crypto2.getRandomValues(typedArray),typedArray[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,c=>(c^(getRandomByte()&15)>>c/4).toString(16))}function updateSession(session,context3={}){if(context3.user&&(!session.ipAddress&&context3.user.ip_address&&(session.ipAddress=context3.user.ip_address),!session.did&&!context3.did&&(session.did=context3.user.id||context3.user.email||context3.user.username)),session.timestamp=context3.timestamp||timestampInSeconds(),context3.abnormal_mechanism&&(session.abnormal_mechanism=context3.abnormal_mechanism),context3.ignoreDuration&&(session.ignoreDuration=context3.ignoreDuration),context3.sid&&(session.sid=context3.sid.length===32?context3.sid:uuid4()),context3.init!==void 0&&(session.init=context3.init),!session.did&&context3.did&&(session.did=`${context3.did}`),typeof context3.started=="number"&&(session.started=context3.started),session.ignoreDuration)session.duration=void 0;else if(typeof context3.duration=="number")session.duration=context3.duration;else{let duration=session.timestamp-session.started;session.duration=duration>=0?duration:0}context3.release&&(session.release=context3.release),context3.environment&&(session.environment=context3.environment),!session.ipAddress&&context3.ipAddress&&(session.ipAddress=context3.ipAddress),!session.userAgent&&context3.userAgent&&(session.userAgent=context3.userAgent),typeof context3.errors=="number"&&(session.errors=context3.errors),context3.status&&(session.status=context3.status)}function generateTraceId(){return uuid4()}function merge3(initialObj,mergeObj,levels=2){if(!mergeObj||typeof mergeObj!="object"||levels<=0)return mergeObj;if(initialObj&&Object.keys(mergeObj).length===0)return initialObj;let output2=__spreadValues({},initialObj);for(let key in mergeObj)Object.prototype.hasOwnProperty.call(mergeObj,key)&&(output2[key]=merge3(output2[key],mergeObj[key],levels-1));return output2}var SCOPE_SPAN_FIELD="_sentrySpan";function _setSpanForScope(scope,span){span?addNonEnumerableProperty(scope,SCOPE_SPAN_FIELD,span):delete scope[SCOPE_SPAN_FIELD]}function _getSpanForScope(scope){return scope[SCOPE_SPAN_FIELD]}var DEFAULT_MAX_BREADCRUMBS=100,Scope=class _Scope{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:generateTraceId(),sampleRand:Math.random()}}clone(){let newScope=new _Scope;return newScope._breadcrumbs=[...this._breadcrumbs],newScope._tags=__spreadValues({},this._tags),newScope._extra=__spreadValues({},this._extra),newScope._contexts=__spreadValues({},this._contexts),this._contexts.flags&&(newScope._contexts.flags={values:[...this._contexts.flags.values]}),newScope._user=this._user,newScope._level=this._level,newScope._session=this._session,newScope._transactionName=this._transactionName,newScope._fingerprint=this._fingerprint,newScope._eventProcessors=[...this._eventProcessors],newScope._attachments=[...this._attachments],newScope._sdkProcessingMetadata=__spreadValues({},this._sdkProcessingMetadata),newScope._propagationContext=__spreadValues({},this._propagationContext),newScope._client=this._client,newScope._lastEventId=this._lastEventId,_setSpanForScope(newScope,_getSpanForScope(this)),newScope}setClient(client){this._client=client}setLastEventId(lastEventId2){this._lastEventId=lastEventId2}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(callback){this._scopeListeners.push(callback)}addEventProcessor(callback){return this._eventProcessors.push(callback),this}setUser(user){return this._user=user||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&updateSession(this._session,{user}),this._notifyScopeListeners(),this}getUser(){return this._user}setTags(tags){return this._tags=__spreadValues(__spreadValues({},this._tags),tags),this._notifyScopeListeners(),this}setTag(key,value){return this._tags=__spreadProps(__spreadValues({},this._tags),{[key]:value}),this._notifyScopeListeners(),this}setExtras(extras){return this._extra=__spreadValues(__spreadValues({},this._extra),extras),this._notifyScopeListeners(),this}setExtra(key,extra){return this._extra=__spreadProps(__spreadValues({},this._extra),{[key]:extra}),this._notifyScopeListeners(),this}setFingerprint(fingerprint){return this._fingerprint=fingerprint,this._notifyScopeListeners(),this}setLevel(level){return this._level=level,this._notifyScopeListeners(),this}setTransactionName(name){return this._transactionName=name,this._notifyScopeListeners(),this}setContext(key,context3){return context3===null?delete this._contexts[key]:this._contexts[key]=context3,this._notifyScopeListeners(),this}setSession(session){return session?this._session=session:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(captureContext){if(!captureContext)return this;let scopeToMerge=typeof captureContext=="function"?captureContext(this):captureContext,scopeInstance=scopeToMerge instanceof _Scope?scopeToMerge.getScopeData():isPlainObject(scopeToMerge)?captureContext:void 0,{tags,extra,user,contexts,level,fingerprint=[],propagationContext}=scopeInstance||{};return this._tags=__spreadValues(__spreadValues({},this._tags),tags),this._extra=__spreadValues(__spreadValues({},this._extra),extra),this._contexts=__spreadValues(__spreadValues({},this._contexts),contexts),user&&Object.keys(user).length&&(this._user=user),level&&(this._level=level),fingerprint.length&&(this._fingerprint=fingerprint),propagationContext&&(this._propagationContext=propagationContext),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,_setSpanForScope(this,void 0),this._attachments=[],this.setPropagationContext({traceId:generateTraceId(),sampleRand:Math.random()}),this._notifyScopeListeners(),this}addBreadcrumb(breadcrumb,maxBreadcrumbs){let maxCrumbs=typeof maxBreadcrumbs=="number"?maxBreadcrumbs:DEFAULT_MAX_BREADCRUMBS;if(maxCrumbs<=0)return this;let mergedBreadcrumb=__spreadProps(__spreadValues({timestamp:dateTimestampInSeconds()},breadcrumb),{message:breadcrumb.message?truncate(breadcrumb.message,2048):breadcrumb.message});return this._breadcrumbs.push(mergedBreadcrumb),this._breadcrumbs.length>maxCrumbs&&(this._breadcrumbs=this._breadcrumbs.slice(-maxCrumbs),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(attachment){return this._attachments.push(attachment),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:_getSpanForScope(this)}}setSDKProcessingMetadata(newData){return this._sdkProcessingMetadata=merge3(this._sdkProcessingMetadata,newData,2),this}setPropagationContext(context3){return this._propagationContext=context3,this}getPropagationContext(){return this._propagationContext}captureException(exception,hint){let eventId=hint?.event_id||uuid4();if(!this._client)return logger.warn("No client configured on scope - will not capture exception!"),eventId;let syntheticException=new Error("Sentry syntheticException");return this._client.captureException(exception,__spreadProps(__spreadValues({originalException:exception,syntheticException},hint),{event_id:eventId}),this),eventId}captureMessage(message,level,hint){let eventId=hint?.event_id||uuid4();if(!this._client)return logger.warn("No client configured on scope - will not capture message!"),eventId;let syntheticException=new Error(message);return this._client.captureMessage(message,level,__spreadProps(__spreadValues({originalException:message,syntheticException},hint),{event_id:eventId}),this),eventId}captureEvent(event2,hint){let eventId=hint?.event_id||uuid4();return this._client?(this._client.captureEvent(event2,__spreadProps(__spreadValues({},hint),{event_id:eventId}),this),eventId):(logger.warn("No client configured on scope - will not capture event!"),eventId)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(callback=>{callback(this)}),this._notifyingListeners=!1)}};function getDefaultCurrentScope(){return getGlobalSingleton("defaultCurrentScope",()=>new Scope)}function getDefaultIsolationScope(){return getGlobalSingleton("defaultIsolationScope",()=>new Scope)}var AsyncContextStack=class{constructor(scope,isolationScope){let assignedScope;scope?assignedScope=scope:assignedScope=new Scope;let assignedIsolationScope;isolationScope?assignedIsolationScope=isolationScope:assignedIsolationScope=new Scope,this._stack=[{scope:assignedScope}],this._isolationScope=assignedIsolationScope}withScope(callback){let scope=this._pushScope(),maybePromiseResult;try{maybePromiseResult=callback(scope)}catch(e){throw this._popScope(),e}return isThenable(maybePromiseResult)?maybePromiseResult.then(res=>(this._popScope(),res),e=>{throw this._popScope(),e}):(this._popScope(),maybePromiseResult)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let scope=this.getScope().clone();return this._stack.push({client:this.getClient(),scope}),scope}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}};function getAsyncContextStack(){let registry=getMainCarrier(),sentry=getSentryCarrier(registry);return sentry.stack=sentry.stack||new AsyncContextStack(getDefaultCurrentScope(),getDefaultIsolationScope())}function withScope(callback){return getAsyncContextStack().withScope(callback)}function withSetScope(scope,callback){let stack=getAsyncContextStack();return stack.withScope(()=>(stack.getStackTop().scope=scope,callback(scope)))}function withIsolationScope(callback){return getAsyncContextStack().withScope(()=>callback(getAsyncContextStack().getIsolationScope()))}function getStackAsyncContextStrategy(){return{withIsolationScope,withScope,withSetScope,withSetIsolationScope:(_isolationScope,callback)=>withIsolationScope(callback),getCurrentScope:()=>getAsyncContextStack().getScope(),getIsolationScope:()=>getAsyncContextStack().getIsolationScope()}}function getAsyncContextStrategy(carrier){let sentry=getSentryCarrier(carrier);return sentry.acs?sentry.acs:getStackAsyncContextStrategy()}function getCurrentScope(){let carrier=getMainCarrier();return getAsyncContextStrategy(carrier).getCurrentScope()}function getIsolationScope(){let carrier=getMainCarrier();return getAsyncContextStrategy(carrier).getIsolationScope()}function getClient(){return getCurrentScope().getClient()}var DEFAULT_BREADCRUMBS=100;function addBreadcrumb(breadcrumb,hint){let client=getClient(),isolationScope=getIsolationScope();if(!client)return;let{beforeBreadcrumb=null,maxBreadcrumbs=DEFAULT_BREADCRUMBS}=client.getOptions();if(maxBreadcrumbs<=0)return;let timestamp2=dateTimestampInSeconds(),mergedBreadcrumb=__spreadValues({timestamp:timestamp2},breadcrumb),finalBreadcrumb=beforeBreadcrumb?consoleSandbox(()=>beforeBreadcrumb(mergedBreadcrumb,hint)):mergedBreadcrumb;finalBreadcrumb!==null&&(client.emit&&client.emit("beforeAddBreadcrumb",finalBreadcrumb,hint),isolationScope.addBreadcrumb(finalBreadcrumb,maxBreadcrumbs))}function sentryNgrxMetaReducer(reducer44){return function(state,action){return addBreadcrumb({category:"ngrx",message:action.type,level:"info"}),reducer44(state,action)}}var reducers={router:routerReducer},metaReducers=environment.production?[sentryNgrxMetaReducer]:[];var AppEffects=(()=>{let _AppEffects=class _AppEffects{constructor(actions$,location2,router){this.actions$=actions$,this.location=location2,this.router=router,this.company2faRequired$=createEffect(()=>this.actions$.pipe(ofType(loadMeFailure),mergeMap(({errors:errors2})=>errors2.some(error2=>error2.message===IxApiRequestErrorMessages.TWO_FACTOR_AUTH_REQUIRED)?of(redirectTo2faRequired()):EMPTY))),this.redirectTo2faRequired$=createEffect(()=>this.actions$.pipe(ofType(redirectTo2faRequired),tap(()=>{this.router.navigate(["/two-factor-auth-required"],{skipLocationChange:!0})})),{dispatch:!1})}};_AppEffects.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_AppEffects)(\u0275\u0275inject(Actions),\u0275\u0275inject(Location),\u0275\u0275inject(Router))},_AppEffects.\u0275prov=\u0275\u0275defineInjectable({token:_AppEffects,factory:_AppEffects.\u0275fac});let AppEffects2=_AppEffects;return AppEffects2})();var AppStateModule=(()=>{let _AppStateModule=class _AppStateModule{};_AppStateModule.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_AppStateModule)},_AppStateModule.\u0275mod=\u0275\u0275defineNgModule({type:_AppStateModule}),_AppStateModule.\u0275inj=\u0275\u0275defineInjector({imports:[TranslateModule,StoreModule.forRoot(reducers,{metaReducers,runtimeChecks:{strictStateImmutability:!environment.production,strictActionImmutability:!environment.production,strictStateSerializability:!environment.production}}),environment.production?[]:[StoreDevtoolsModule.instrument({maxAge:50,connectInZone:!0})],EffectsModule.forRoot([AppEffects])]});let AppStateModule2=_AppStateModule;return AppStateModule2})();function generateBanner(metadata,translate){let header=document.createElement("div");return header.innerHTML=`
803
803
  <div id="appBanner" style="display: flex; top: 0; left: 0; width: 100%; height: 80px; position: absolute; justify-content: center; background-color: #f2f2f2;">
804
804
  <div style="display: flex; justify-content: flex-start; width: 100vw; color: black;">
805
805
  <div style="justify-content: flex-start; max-width: 330px; display: flex; align-items: center; flex: 1;">