(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t(require("vue"),require("__jszip"),require("__jsyaml")):"function"===typeof define&&define.amd?define([,"__jszip","__jsyaml"],t):"object"===typeof exports?exports["harvester-1.0.2"]=t(require("vue"),require("__jszip"),require("__jsyaml")):e["harvester-1.0.2"]=t(e["Vue"],e["__jszip"],e["__jsyaml"])})("undefined"!==typeof self?self:this,(function(e,t,n){return function(){var r={4979:function(){"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(e,t){"use strict";if(null==e)throw new TypeError("Cannot convert undefined or null to object");const n=Object(e);for(let r=1;r{function e(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};const n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}e.prototype=window.Event.prototype,"function"!==typeof window.CustomEvent&&(window.CustomEvent=e)})(),Number.isInteger=Number.isInteger||function(e){return"number"===typeof e&&isFinite(e)&&Math.floor(e)===e}},20652:function(e,t,n){"use strict";n.d(t,{KR:function(){return r}});const r="harvester";n(59870)},50889:function(e,t,n){"use strict";n.d(t,{EP:function(){return r},LP:function(){return o},gh:function(){return i}});const r={BACKUP_TARGET:"backup-target",CONTAINERD_REGISTRY:"containerd-registry",LOG_LEVEL:"log-level",SERVER_VERSION:"server-version",UI_INDEX:"ui-index",UI_PLUGIN_INDEX:"ui-plugin-index",UPGRADE_CHECKER_ENABLED:"upgrade-checker-enabled",UPGRADE_CHECKER_URL:"upgrade-checker-url",VLAN:"vlan",UI_SOURCE:"ui-source",UI_PL:"ui-pl",HTTP_PROXY:"http-proxy",ADDITIONAL_CA:"additional-ca",OVERCOMMIT_CONFIG:"overcommit-config",CLUSTER_REGISTRATION_URL:"cluster-registration-url",DEFAULT_STORAGE_CLASS:"default-storage-class",SUPPORT_BUNDLE_TIMEOUT:"support-bundle-timeout",SUPPORT_BUNDLE_EXPIRATION:"support-bundle-expiration",SUPPORT_BUNDLE_IMAGE:"support-bundle-image",SUPPORT_BUNDLE_NODE_COLLECTION_TIMEOUT:"support-bundle-node-collection-timeout",STORAGE_NETWORK:"storage-network",VM_FORCE_RESET_POLICY:"vm-force-reset-policy",SSL_CERTIFICATES:"ssl-certificates",SSL_PARAMETERS:"ssl-parameters",SUPPORT_BUNDLE_NAMESPACES:"support-bundle-namespaces",AUTO_DISK_PROVISION_PATHS:"auto-disk-provision-paths",RELEASE_DOWNLOAD_URL:"release-download-url",CCM_CSI_VERSION:"harvester-csi-ccm-versions",CSI_DRIVER_CONFIG:"csi-driver-config",VM_TERMINATION_PERIOD:"default-vm-termination-grace-period-seconds",NTP_SERVERS:"ntp-servers",AUTO_ROTATE_RKE2_CERTS:"auto-rotate-rke2-certs",KUBECONFIG_DEFAULT_TOKEN_TTL_MINUTES:"kubeconfig-default-token-ttl-minutes",LONGHORN_V2_DATA_ENGINE_ENABLED:"longhorn-v2-data-engine-enabled",ADDITIONAL_GUEST_MEMORY_OVERHEAD_RATIO:"additional-guest-memory-overhead-ratio"},i={[r.BACKUP_TARGET]:{kind:"json",from:"import",canReset:!0},[r.LOG_LEVEL]:{kind:"enum",options:["info","debug","trace"]},[r.VLAN]:{kind:"custom",from:"import",alias:"vlan"},[r.AUTO_ROTATE_RKE2_CERTS]:{kind:"json",from:"import",featureFlag:"autoRotateRke2CertsSetting"},[r.CSI_DRIVER_CONFIG]:{kind:"json",from:"import"},[r.SERVER_VERSION]:{readOnly:!0},[r.UPGRADE_CHECKER_ENABLED]:{kind:"boolean"},[r.UPGRADE_CHECKER_URL]:{kind:"url"},[r.HTTP_PROXY]:{kind:"json",from:"import"},[r.ADDITIONAL_CA]:{kind:"multiline",canReset:!0,from:"import"},[r.OVERCOMMIT_CONFIG]:{kind:"json",from:"import"},[r.SUPPORT_BUNDLE_TIMEOUT]:{},[r.SUPPORT_BUNDLE_EXPIRATION]:{},[r.SUPPORT_BUNDLE_NODE_COLLECTION_TIMEOUT]:{featureFlag:"supportBundleNodeCollectionTimeoutSetting"},[r.SUPPORT_BUNDLE_IMAGE]:{kind:"json",from:"import"},[r.STORAGE_NETWORK]:{kind:"custom",from:"import"},[r.VM_FORCE_RESET_POLICY]:{kind:"json",from:"import"},[r.SSL_CERTIFICATES]:{kind:"json",from:"import"},[r.SSL_PARAMETERS]:{kind:"json",from:"import",canReset:!0},[r.SUPPORT_BUNDLE_NAMESPACES]:{from:"import",canReset:!0},[r.AUTO_DISK_PROVISION_PATHS]:{canReset:!0},[r.RELEASE_DOWNLOAD_URL]:{kind:"url"},[r.UI_PLUGIN_INDEX]:{kind:"url"},[r.CONTAINERD_REGISTRY]:{kind:"json",from:"import",canReset:!0},[r.UI_SOURCE]:{kind:"enum",options:["auto","external","bundled"]},[r.UI_INDEX]:{kind:"url"},[r.VM_TERMINATION_PERIOD]:{kind:"string",from:"import"},[r.NTP_SERVERS]:{kind:"json",from:"import",canReset:!0},[r.KUBECONFIG_DEFAULT_TOKEN_TTL_MINUTES]:{featureFlag:"kubeconfigDefaultTokenTTLMinutesSetting"},[r.LONGHORN_V2_DATA_ENGINE_ENABLED]:{kind:"boolean",experimental:!0,featureFlag:"longhornV2LVMSupport"},[r.ADDITIONAL_GUEST_MEMORY_OVERHEAD_RATIO]:{kind:"string",from:"import"}},o={[r.CLUSTER_REGISTRATION_URL]:{kind:"url",canReset:!0},[r.UI_PL]:{kind:"custom",from:"import",alias:"branding"}}},32766:function(e,t,n){"use strict";n.d(t,{Zq:function(){return o},nE:function(){return a},qY:function(){return i},rk:function(){return r}});const r={VM:"kubevirt.io.virtualmachine",VMI:"kubevirt.io.virtualmachineinstance",VMIM:"kubevirt.io.virtualmachineinstancemigration",VM_TEMPLATE:"harvesterhci.io.virtualmachinetemplate",VM_VERSION:"harvesterhci.io.virtualmachinetemplateversion",IMAGE:"harvesterhci.io.virtualmachineimage",SSH:"harvesterhci.io.keypair",VOLUME:"harvesterhci.io.volume",USER:"harvesterhci.io.user",SETTING:"harvesterhci.io.setting",UPGRADE:"harvesterhci.io.upgrade",UPGRADE_LOG:"harvesterhci.io.upgradelog",SCHEDULE_VM_BACKUP:"harvesterhci.io.schedulevmbackup",BACKUP:"harvesterhci.io.virtualmachinebackup",RESTORE:"harvesterhci.io.virtualmachinerestore",NODE_NETWORK:"network.harvesterhci.io.nodenetwork",CLUSTER_NETWORK:"network.harvesterhci.io.clusternetwork",SUPPORT_BUNDLE:"harvesterhci.io.supportbundle",NETWORK_ATTACHMENT:"harvesterhci.io.networkattachmentdefinition",CLUSTER:"harvesterhci.io.management.cluster",DASHBOARD:"harvesterhci.io.dashboard",BLOCK_DEVICE:"harvesterhci.io.blockdevice",CLOUD_TEMPLATE:"harvesterhci.io.cloudtemplate",HOST:"harvesterhci.io.host",VERSION:"harvesterhci.io.version",SNAPSHOT:"harvesterhci.io.volumesnapshot",VM_SNAPSHOT:"harvesterhci.io.vmsnapshot",ALERTMANAGERCONFIG:"harvesterhci.io.monitoring.alertmanagerconfig",CLUSTER_FLOW:"harvesterhci.io.logging.clusterflow",CLUSTER_OUTPUT:"harvesterhci.io.logging.clusteroutput",FLOW:"harvesterhci.io.logging.flow",OUTPUT:"harvesterhci.io.logging.output",STORAGE:"harvesterhci.io.storage",RESOURCE_QUOTA:"harvesterhci.io.resourcequota",KSTUNED:"node.harvesterhci.io.ksmtuned",PCI_DEVICE:"devices.harvesterhci.io.pcidevice",PCI_CLAIM:"devices.harvesterhci.io.pcideviceclaim",SR_IOV:"devices.harvesterhci.io.sriovnetworkdevice",VGPU_DEVICE:"devices.harvesterhci.io.vgpudevice",SR_IOVGPU_DEVICE:"devices.harvesterhci.io.sriovgpudevice",USB_DEVICE:"devices.harvesterhci.io.usbdevice",USB_CLAIM:"devices.harvesterhci.io.usbdeviceclaim",VLAN_CONFIG:"network.harvesterhci.io.vlanconfig",VLAN_STATUS:"network.harvesterhci.io.vlanstatus",ADD_ONS:"harvesterhci.io.addon",LINK_MONITOR:"network.harvesterhci.io.linkmonitor",SECRET:"harvesterhci.io.secret",INVENTORY:"metal.harvesterhci.io.inventory",LB:"loadbalancer.harvesterhci.io.loadbalancer",IP_POOL:"loadbalancer.harvesterhci.io.ippool",HARVESTER_CONFIG:"rke-machine-config.cattle.io.harvesterconfig",LVM_VOLUME_GROUP:"harvesterhci.io.lvmvolumegroup"},i="snapshot.storage.k8s.io.volumesnapshot",o="storage.k8s.io.csidriver",a="snapshot.storage.k8s.io.volumesnapshotclass"},63465:function(e,t,n){"use strict";n.d(t,{j:function(){return l}});var r=n(9274);function i(e,t,n,i,o,a){return(0,r.openBlock)(),(0,r.createElementBlock)("span",{class:(0,r.normalizeClass)(["badge-state",e.bg])},[e.icon?((0,r.openBlock)(),(0,r.createElementBlock)("i",{key:0,class:(0,r.normalizeClass)(["icon",{[e.icon]:!0,"mr-5":!!e.msg}])},null,2)):(0,r.createCommentVNode)("",!0),(0,r.createTextVNode)((0,r.toDisplayString)(e.msg),1)],2)}var o=(0,r.defineComponent)({props:{value:{type:Object,default:null},color:{type:String,default:null},icon:{type:String,default:null},label:{type:String,default:null}},computed:{bg(){return this.value?.stateBackground||this.color},msg(){return this.value?.stateDisplay||this.label}}}),a=(n(32206),n(29112),n(47433));const s=(0,a.A)(o,[["render",i],["__scopeId","data-v-1a187b86"]]);var l=s},58832:function(e,t,n){"use strict";n.d(t,{l:function(){return r.A}});var r=n(52167)},27666:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=n(9274);const i={class:"card-wrap"},o={class:"card-title","data-testid":"card-title-slot"},a=(0,r.createElementVNode)("hr",null,null,-1),s={class:"card-body","data-testid":"card-body-slot"},l={key:0,class:"card-actions","data-testid":"card-actions-slot"};function c(e,t,n,c,u,d){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)(["card-container",{"highlight-border":e.showHighlightBorder,"card-sticky":e.sticky}]),"data-testid":"card"},[(0,r.createElementVNode)("div",i,[(0,r.createElementVNode)("div",o,[(0,r.renderSlot)(e.$slots,"title",{},(()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.title),1)]))]),a,(0,r.createElementVNode)("div",s,[(0,r.renderSlot)(e.$slots,"body",{},(()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.content),1)]))]),e.showActions?((0,r.openBlock)(),(0,r.createElementBlock)("div",l,[(0,r.renderSlot)(e.$slots,"actions",{},(()=>[(0,r.createElementVNode)("button",{class:"btn role-primary",onClick:t[0]||(t[0]=(...t)=>e.buttonAction&&e.buttonAction(...t))},(0,r.toDisplayString)(e.buttonText),1)]))])):(0,r.createCommentVNode)("",!0)])],2)}var u=(0,r.defineComponent)({name:"Card",props:{title:{type:String,default:""},content:{type:String,default:""},buttonAction:{type:Function,default:()=>{}},buttonText:{type:String,default:"go"},showHighlightBorder:{type:Boolean,default:!0},showActions:{type:Boolean,default:!0},sticky:{type:Boolean,default:!1}}}),d=(n(87923),n(47433));const h=(0,d.A)(u,[["render",c]]);var p=h},3276:function(e,t,n){"use strict";n.d(t,{S:function(){return r.A}});var r=n(87732)},53512:function(e,t,n){"use strict";n.d(t,{o:function(){return r.A}});var r=n(8080)},83328:function(e,t,n){"use strict";n.d(t,{a:function(){return r.A},z:function(){return i.A}});var r=n(9886),i=n(77163)},67683:function(e,t,n){"use strict";n.d(t,{V:function(){return r.A}});var r=n(41664)},8368:function(e,t,n){"use strict";n.d(t,{Z:function(){return r.A}});var r=n(53921)},41890:function(e,t,n){"use strict";n.d(t,{$8:function(){return a},Df:function(){return o},HG:function(){return i}});var r=n(36371);const i={VERSION_RANCHER:"server-version",VERSION_CLI:"cli-version",VERSION_MACHINE:"machine-version",VERSION_HELM:"helm-version",CLI_URL:{DARWIN:"cli-url-darwin",WINDOWS:"cli-url-windows",LINUX:"cli-url-linux"},API_HOST:"api-host",CA_CERTS:"cacerts",HIDE_LOCAL_CLUSTER:"hide-local-cluster",AUTH_TOKEN_MAX_TTL_MINUTES:"auth-token-max-ttl-minutes",KUBECONFIG_GENERATE_TOKEN:"kubeconfig-generate-token",KUBECONFIG_DEFAULT_TOKEN_TTL_MINUTES:"kubeconfig-default-token-ttl-minutes",ENGINE_URL:"engine-install-url",ENGINE_ISO_URL:"engine-iso-url",FIRST_LOGIN:"first-login",INGRESS_IP_DOMAIN:"ingress-ip-domain",SERVER_URL:"server-url",RKE_METADATA_CONFIG:"rke-metadata-config",EULA_AGREED:"eula-agreed",AUTH_USER_INFO_MAX_AGE_SECONDS:"auth-user-info-max-age-seconds",AUTH_USER_SESSION_TTL_MINUTES:"auth-user-session-ttl-minutes",AUTH_USER_INFO_RESYNC_CRON:"auth-user-info-resync-cron",AUTH_LOCAL_VALIDATE_DESC:"auth-password-requirements-description",PASSWORD_MIN_LENGTH:"password-min-length",CLUSTER_TEMPLATE_ENFORCEMENT:"cluster-template-enforcement",UI_INDEX:"ui-index",UI_DASHBOARD_INDEX:"ui-dashboard-index",UI_DASHBOARD_HARVESTER_LEGACY_PLUGIN:"ui-dashboard-harvester-legacy-plugin",UI_OFFLINE_PREFERRED:"ui-offline-preferred",SYSTEM_DEFAULT_REGISTRY:"system-default-registry",UI_ISSUES:"ui-issues",PL:"ui-pl",PL_RANCHER_VALUE:"rancher",SUPPORTED:"has-support",BANNERS:"ui-banners",ISSUES:"ui-issues",BRAND:"ui-brand",LOGO_LIGHT:"ui-logo-light",LOGO_DARK:"ui-logo-dark",BANNER_LIGHT:"ui-banner-light",BANNER_DARK:"ui-banner-dark",LOGIN_BACKGROUND_LIGHT:"ui-login-background-light",LOGIN_BACKGROUND_DARK:"ui-login-background-dark",PRIMARY_COLOR:"ui-primary-color",LINK_COLOR:"ui-link-color",COMMUNITY_LINKS:"ui-community-links",FAVICON:"ui-favicon",UI_PERFORMANCE:"ui-performance",UI_CUSTOM_LINKS:"ui-custom-links",UI_SUPPORTED_K8S_VERSIONS:"ui-k8s-supported-versions-range",THEME:"ui-theme",SYSTEM_NAMESPACES:"system-namespaces",CLUSTER_AGENT_DEFAULT_AFFINITY:"cluster-agent-default-affinity",FLEET_AGENT_DEFAULT_AFFINITY:"fleet-agent-default-affinity",ADD_EXTENSION_REPOS_BANNER_DISPLAY:"display-add-extension-repos-banner",AGENT_TLS_MODE:"agent-tls-mode",USER_RETENTION_CRON:"user-retention-cron",USER_RETENTION_DRY_RUN:"user-retention-dry-run",USER_LAST_LOGIN_DEFAULT:"user-last-login-default",DISABLE_INACTIVE_USER_AFTER:"disable-inactive-user-after",DELETE_INACTIVE_USER_AFTER:"delete-inactive-user-after",K3S_UPGRADER_UNINSTALL_CONCURRENCY:"k3s-based-upgrader-uninstall-concurrency"},o={[i.CA_CERTS]:{kind:"multiline",readOnly:!0},[i.ENGINE_URL]:{},[i.ENGINE_ISO_URL]:{},[i.PASSWORD_MIN_LENGTH]:{kind:"integer",ruleSet:[{name:"betweenValues",key:"Password",factoryArg:[2,256]},{name:"isInteger",key:"Password"},{name:"isPositive",key:"Password"},{name:"isOctal",key:"Password"}]},[i.INGRESS_IP_DOMAIN]:{},[i.AUTH_USER_INFO_MAX_AGE_SECONDS]:{},[i.AUTH_USER_SESSION_TTL_MINUTES]:{},[i.AUTH_TOKEN_MAX_TTL_MINUTES]:{},[i.KUBECONFIG_GENERATE_TOKEN]:{kind:"boolean"},[i.KUBECONFIG_DEFAULT_TOKEN_TTL_MINUTES]:{kind:"integer"},[i.AUTH_USER_INFO_RESYNC_CRON]:{},[i.SERVER_URL]:{kind:"url",canReset:!0},[i.RKE_METADATA_CONFIG]:{kind:"json"},[i.SYSTEM_DEFAULT_REGISTRY]:{},[i.UI_INDEX]:{},[i.UI_DASHBOARD_INDEX]:{},[i.UI_OFFLINE_PREFERRED]:{kind:"enum",options:["dynamic","true","false"]},[i.BRAND]:{canReset:!0},[i.CLUSTER_TEMPLATE_ENFORCEMENT]:{kind:"boolean"},[i.HIDE_LOCAL_CLUSTER]:{kind:"boolean"},[i.AGENT_TLS_MODE]:{kind:"enum",options:["strict","system-store"],warning:"agent-tls-mode"},[i.K3S_UPGRADER_UNINSTALL_CONCURRENCY]:{kind:"integer",ruleSet:[{name:"minValue",factoryArg:1}]}},a={inactivity:{enabled:!1,threshold:900},incrementalLoading:{enabled:!0,threshold:1500},manualRefresh:{enabled:!1,threshold:1500},disableWebsocketNotification:!0,garbageCollection:r.W,forceNsFilterV2:{enabled:!1},advancedWorker:{enabled:!1},kubeAPI:{warningHeader:{separator:"299 - ",notificationBlockList:["299 - unknown field"]}},serverPagination:{enabled:!1,stores:{cluster:{resources:{enableAll:!1,enableSome:{enabled:["configmap","secret","pod","node"],generic:!0}}}}}}},37255:function(e,t,n){"use strict";n.d(t,{A:function(){return p}});var r,i=n(99855),o=n(82709),a=n(78359),s=n(75040),l=n(98983),c=n(65852);function u(e,t){const n=(0,l.P)(e);return"home"===t&&"home"===e.name||t===n}function d({name:e,query:t},n){return!(n!==s.G5||!t.mode||t.mode!==s.G5||t.as)||(!(n!==s.au||!t.as||t.as!==s.au)||(!(n!==s.fS||t.as||!e.includes("-id")||t.mode&&t?.mode===s.G5)||(!(n!==s.wC||e.includes("-id")||!e.includes("-resource"))||!(n!==s.YQ||!e.endsWith("-create")))))}function h(e,t,n){if(!Object.keys(t).length)return!0;const{params:r}=e,i=["product","resource","namespace","cluster","id","mode","path","hash","queryParam","context"];let o=!0;for(let a=0;a{if(h(r,e.locationConfig,l||{})){if(t===i.c7.CARD)n===i.O4.CLUSTER_DASHBOARD_CARD&&e.labelKey&&(u[d].label=s.t(e.labelKey));else if(t===i.c7.ACTION&&(n===i.ug.TABLE&&(e.labelKey&&(u[d].label=s.t(e.labelKey)),u[d].bulkable=u[d].multiple||u[d].bulkable,u[d].action||(u[d].action=`custom-table-action-${(0,a.vx)(10).toLowerCase()}`)),n===i.ug.HEADER&&e.shortcut))if("string"===typeof e.shortcut)u[d].shortcutLabel=()=>o.cX?`(⌘-${e.shortcut.toUpperCase()})`:`(Ctrl-${e.shortcut.toUpperCase()})`,u[d].shortcutKey={windows:["ctrl",e.shortcut],mac:["meta",e.shortcut]};else if("object"===typeof e.shortcut&&!Array.isArray(e.shortcut)&&null!==e.shortcut){u[d].shortcutKey=e.shortcut;const t=o.cX?u[d].shortcut.mac:u[d].shortcut.windows?u[d].shortcut.windows:[];let n="";t.forEach(((e,r)=>{r`(${n})`}c.push(u[d])}}))}return c}(function(e){e["_CONFIG"]="config",e["_CREATE"]="create",e["_DETAIL"]="detail",e["_EDIT"]="edit",e["_LIST"]="list"})(r||(r={}))},99855:function(e,t,n){"use strict";var r,i,o,a,s,l;n.d(t,{O4:function(){return s},W3:function(){return l},W7:function(){return o},c7:function(){return r},lX:function(){return a},ug:function(){return i}}),function(e){e["ACTION"]="Action",e["TAB"]="Tab",e["PANEL"]="Panel",e["CARD"]="Card",e["TABLE_COL"]="TableColumn"}(r||(r={})),function(e){e["HEADER"]="header-action",e["TABLE"]="table-action"}(i||(i={})),function(e){e["DETAILS_MASTHEAD"]="details-masthead",e["DETAIL_TOP"]="detail-top",e["RESOURCE_LIST"]="resource-list"}(o||(o={})),function(e){e["RESOURCE_DETAIL"]="tab",e["CLUSTER_CREATE_RKE2"]="cluster-create-rke2"}(a||(a={})),function(e){e["CLUSTER_DASHBOARD_CARD"]="cluster-dashboard-card"}(s||(s={})),function(e){e["RESOURCE"]="resource-list"}(l||(l={}))},53318:function(e,t,n){"use strict";n.d(t,{A:function(){return a}});var r=n(75040);function i(e,t){e&&("function"===typeof t&&(t=t()),e.style.width="string"!==typeof t?`${t}px`:t)}function o(e){if(e&&e.length)return e.length?parseFloat(getComputedStyle(e[0]).width.replace("px","")):parseFloat(getComputedStyle(e).width.replace("px",""))}var a={inheritAttrs:!1,emits:["update:validation","on-focus","on-blur"],props:{mode:{type:String,default:r.G5},label:{type:String,default:null},labelKey:{type:String,default:null},placeholderKey:{type:String,default:null},tooltip:{type:[String,Object],default:null},hoverTooltip:{type:Boolean,default:!0},tooltipKey:{type:String,default:null},required:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},placeholder:{type:[String,Number],default:""},value:{type:[String,Number,Object],default:""},options:{default:null,type:Array},searchable:{default:!1,type:Boolean},filterable:{default:!0,type:Boolean},rules:{default:()=>[],type:Array,validator:e=>e.every((e=>["function"].includes(typeof e)))},requireDirty:{default:!0,type:Boolean}},data(){return{raised:this.mode===r.nW||!!`${this.value}`,focused:!1,blurred:null}},computed:{requiredField(){return this.required||this.rules.some((e=>"required"===e?.name))},empty(){return!!`${this.value}`},isView(){return this.mode===r.nW},isDisabled(){return this.disabled||this.isView},isSearchable(){const{searchable:e,canPaginate:t}=this;if(t)return!0;const n=this.options||[];return!!(e||n.length>=10)},isFilterable(){const{filterable:e,canPaginate:t}=this;return!t&&e},validationMessage(){const e=this.rules.find((e=>"required"===e?.name)),t=[],n=this?.value;if(e&&this.blurred&&!this.focused){const t=e(n);if(t)return this.$emit("update:validation",!1),t}for(const r of this.rules){const e=r(n);e&&"required"!==r.name&&t.push(e)}return t.length>0&&(this.blurred||this.focused||!this.requireDirty)?(this.$emit("update:validation",!1),t.join(", ")):void this.$emit("update:validation",!0)}},methods:{resizeHandler(){this.$nextTick((()=>{const e=this.$refs.select.querySelector("ul.vs__dropdown-menu"),t=o(this.$refs.select)||0,n=o(e)||0;n{describe("replicaSetId",(()=>{it.each([{relationships:[],expected:void 0},{relationships:[{rel:"owner",toType:i.oU.REPLICA_SET,toId:"rel-id"}],expected:"rel-id"},{relationships:[{rel:"owner",toType:i.oU.REPLICA_SET,toId:"rel-id-1",message:"ReplicaSet is available. Replicas: 1"}],expected:"rel-id-1"},{relationships:[{rel:"owner",toType:i.oU.REPLICA_SET,toId:"rel-id-1",message:"ReplicaSet is available. Replicas: 0"},{rel:"owner",toType:i.oU.REPLICA_SET,toId:"rel-id-2",message:"ReplicaSet is available. Replicas: 1"}],expected:"rel-id-2"},{relationships:[{rel:"owner",toType:i.oU.REPLICA_SET,toId:"rel-id-1",message:"Message without replicas count"},{rel:"owner",toType:i.oU.REPLICA_SET,toId:"rel-id-2",message:"Another message without replicas count"}],expected:"rel-id-1"},{relationships:[{rel:"owner",toType:i.oU.REPLICA_SET,toId:"rel-id-1",message:"ReplicaSet is available. Replicas: 0"},{rel:"owner",toType:i.oU.REPLICA_SET,toId:"rel-id-2",message:"ReplicaSet is available. Replicas: 0"}],expected:"rel-id-1"},{relationships:[{rel:"owner",toType:i.oU.REPLICA_SET,toId:"rel-id-1",message:"Message without replicas count"},{rel:"owner",toType:i.oU.REPLICA_SET,toId:"rel-id-2",message:"ReplicaSet is available. Replicas: 0"}],expected:"rel-id-1"}])("replicaSetId",(({relationships:e,expected:t})=>{const n={id:"any-id",type:i.oU.DEPLOYMENT,metadata:{name:"any-name",namespace:"any-namespace",uid:"any-uid",relationships:e}},o=new r["default"](n);expect(o.replicaSetId).toStrictEqual(t)}))}))}))},3340:function(e,t,n){"use strict";n.r(t);var r=n(29800);describe("class Cronjob",(()=>{it("should have no ownerReferences by default",(()=>{const e={id:"any-id",type:"batch.job",apiVersion:"batch/v1",kind:"Job",metadata:{name:"any-name",namespace:"any-namespace",uid:"any-uid"},spec:{jobTemplate:{}}},t={name:"any-name",namespace:"any-namespace",uid:"any-uid"},n=new r["default"](e);expect(n.metadata).toStrictEqual(t)})),describe("method runNow",(()=>{it("should populate job metadata",(async()=>{const e={id:"any-id",type:"batch.job",apiVersion:"batch/v1",kind:"Job",metadata:{name:"any-name",namespace:"any-namespace",uid:"any-uid"},spec:{jobTemplate:{}}},t=Date.now(),n={name:`${e.metadata.name}-${t}`,namespace:e.metadata.namespace,ownerReferences:[{apiVersion:"batch/v1",controller:!0,kind:"Job",name:e.metadata.name,uid:e.metadata.uid}],uid:e.metadata.uid},i=()=>({...e,save:jest.fn(),goToDetail:jest.fn()}),o=new r["default"](e,{dispatch:i});jest.useFakeTimers().setSystemTime(t),jest.spyOn(o,"$dispatch").mockImplementation(i),await o.runNow(),expect(o.metadata).toStrictEqual(n)})),it("should redirect to another page",(async()=>{const e={metadata:{name:"any-name"},spec:{jobTemplate:{}}},t=jest.fn(),n=()=>({...e,save:jest.fn(),goToDetail:t}),i=new r["default"](e,{dispatch:n});jest.spyOn(i,"$dispatch").mockImplementation(n),await i.runNow(),expect(t).toHaveBeenCalledWith()}))}))}))},50425:function(e,t,n){"use strict";n.r(t);var r=n(35783);describe("class NormanCluster",(()=>{const e=jest.fn((()=>"abc")),t={rootGetters:{"i18n/t":e},dispatch:jest.fn()};it("should return empty arrays of system labels and system annotations if cluster labels and annotations are undefined",(()=>{const e=new r["default"]({},t);expect(e.systemLabels).toStrictEqual([]),expect(e.systemAnnotations).toStrictEqual([])})),it("should list all the cluster's annotation keys that contain coreos.com, cattle.io, k3s.io, kubernetes.io, or k3s.io",(()=>{const e=["cattle.io/test","coreos.com","test.cattle.io/something","kubernetes.io/test"],n=new r["default"]({annotations:{"cattle.io/test":"abc","coreos.com":"abc","k3s.io/test":"abc","test.cattle.io/something":"abc","kubernetes.io/test":"abc","other-label":"abc"}},t);expect(e.find((e=>!n.systemAnnotations.includes(e)))).toBeUndefined()})),it("should list all the cluster's label keys that contain io.cattle.lifecycle, kubernetes.io, cattle.io, or k3s.io",(()=>{const e=["cattle.io/test","test.io.cattle.lifecycle","test.kubernetes.io/test","k3s.io/test"],n=new r["default"]({labels:{"cattle.io/test":"abc","test.io.cattle.lifecycle":"abc","k3s.io/test":"abc","test.kubernetes.io/test":"abc","other-label":"abc"}},t);expect(e.find((e=>!n.systemLabels.includes(e)))).toBeUndefined()}))}))},55572:function(e,t,n){"use strict";n.r(t);var r=n(7532);describe("class FleetCluster",(()=>{it("should provide bundleInfo if correct data is present",(()=>{const e=new r["default"]({metadata:{},spec:{},status:{display:{readyBundles:"0/1"}}});expect(e.bundleInfo.ready).toBe(0),expect(e.bundleInfo.total).toBe(1),expect(Object.getOwnPropertyNames(e.bundleInfo)).not.toContain("noValidData")})),describe("should provide bundleInfo with error",(()=>{it.each([[""],["/"],["1/"],["/1"],["1/1/2"],["a/1"],["a/b"],["any-string"],["any-string1/string2"]])('with multiple scenarios of wrongful "readyBundles" data',(e=>{const t=new r["default"]({metadata:{},spec:{},status:{display:{readyBundles:e}}});expect(Object.getOwnPropertyNames(t.bundleInfo)).toContain("noValidData")}))}))}))},8713:function(e,t,n){"use strict";n.r(t);var r=n(11042);jest.mock("@shell/utils/clipboard",(()=>({copyTextToClipboard:jest.fn((()=>Promise.resolve({})))}))),describe("class MgmtCluster",(()=>{describe("provisioner",(()=>{const e=[[{provider:"rke",driver:"imported"},"imported"],[{provider:"k3s",driver:"K3S"},"K3S"],[{provider:"aks",driver:"AKS"},"AKS"],[{},"imported"]];it.each(e)("should return provisioner value properly based on the props data",((e,t)=>{const n=new r["default"]({status:e});expect(n.provisioner).toBe(t)}))}))}))},40613:function(e,t,n){"use strict";n.r(t);var r=n(34049);describe("class MgmtNode",(()=>{const e="foo",t="bar",n=jest.fn((()=>t)),i={rootGetters:{"i18n/t":n}},o=()=>{jest.clearAllMocks()};it("should not return addresses if they are not present in the resource status, the internalNodeStatus, or the rkeNode key in status",(()=>{const e=new r["default"]({status:{}});expect(e.addresses).toStrictEqual([]),o()})),describe("should return addresses",(()=>{const t=[e];it("if they are present directly on the resource status",(()=>{const e=new r["default"]({status:{addresses:t}});expect(e.addresses).toStrictEqual(t)})),it('if they are not present directly on the resource status but are on "status.internalNodeStatus"',(()=>{const e=new r["default"]({status:{internalNodeStatus:{addresses:t}}});expect(e.addresses).toStrictEqual(t)}))})),describe("should return an internalIp",(()=>{const t=[{type:"InternalIP",address:e}],n=e;it("if addresses includes an object with an appropriate type and address",(()=>{const n=new r["default"]({status:{addresses:t}});expect(n.internalIp).toStrictEqual(e)})),it("if internalNodeStatus.addresses includes an object with an appropriate type and address",(()=>{const n=new r["default"]({status:{internalNodeStatus:{addresses:t}}});expect(n.internalIp).toStrictEqual(e)})),it("if addresses and internalNodeStatus.addresses do not provide an internal ip and the status includes an rkeNode key with an appropriate type and address",(()=>{const e=new r["default"]({status:{rkeNode:{internalAddress:n}}});expect(e.internalIp).toStrictEqual(n)}))})),describe("should return an externalIp",(()=>{const t=[{type:"ExternalIP",address:e}],n=e;it("if addresses includes an object with an appropriate type and address",(()=>{const n=new r["default"]({status:{addresses:t}});expect(n.externalIp).toStrictEqual(e)})),it("if internalNodeStatus.addresses includes an object with an appropriate type and address",(()=>{const n=new r["default"]({status:{internalNodeStatus:{addresses:t}}});expect(n.externalIp).toStrictEqual(e)})),it("if addresses and internalNodeStatus.addresses do not provide an external ip and the status includes an rkeNode key with an appropriate type and address",(()=>{const e=new r["default"]({status:{rkeNode:{address:n}}});expect(e.externalIp).toStrictEqual(n)}))})),describe("should return an appropriate message",(()=>{it("if there is no internalIp to display",(()=>{const e=new r["default"]({status:{}},i);expect(e.internalIp).toStrictEqual(t),expect(n).toHaveBeenCalledTimes(1),expect(n).toHaveBeenCalledWith("generic.none"),o()})),it("if there is no externalIp to display",(()=>{const e=new r["default"]({status:{}},i);expect(e.externalIp).toStrictEqual(t),expect(n).toHaveBeenCalledTimes(1),expect(n).toHaveBeenCalledWith("generic.none"),o()}))})),describe("canScaleDown",(()=>{const e="test",t="test/id",i={worker:{worker:!0,etcd:!1,controlPlane:!1},etcd:{worker:!1,etcd:!0,controlPlane:!1},controlPlane:{worker:!1,etcd:!1,controlPlane:!0},etcdAndControlPlane:{worker:!1,etcd:!0,controlPlane:!0},all:{worker:!0,etcd:!0,controlPlane:!0}},o={id:"01",isWorker:!0,isControlPlane:!1,isEtcd:!1},a={id:"02",isWorker:!1,isControlPlane:!1,isEtcd:!0},s={id:"03",isWorker:!1,isControlPlane:!0,isEtcd:!1},l={id:"03",isWorker:!1,isControlPlane:!0,isEtcd:!0},c={id:"04",isWorker:!0,isControlPlane:!0,isEtcd:!0},u={rootGetters:{"rancher/byId":()=>({actions:{scaledown:"scaledown"}}),"i18n/t":n}};it.each([[{spec:i.worker,nodes:[o]},!0],[{spec:i.etcd,nodes:[a,a,s]},!0],[{spec:i.etcdAndControlPlane,nodes:[l,l]},!0],[{spec:i.etcdAndControlPlane,nodes:[l]},!1],[{spec:i.all,nodes:[c]},!1],[{spec:i.all,nodes:[c,c]},!0]])("should return canScaleDown properly",((n,i)=>{const{spec:o,nodes:a}=n,s=new r["default"]({spec:o,id:t},{...u,getters:{all:()=>[{mgmtClusterId:e,nodes:a}]}});expect(s.canScaleDown).toStrictEqual(i)}))}))}))},18835:function(e,t,n){"use strict";n.r(t);var r=n(51995);describe("class MgmtNodePool",(()=>{describe("canScaleDownPool",(()=>{const e="test",t="test/id",n={worker:{worker:!0,etcd:!1,controlPlane:!1},etcd:{worker:!1,etcd:!0,controlPlane:!1},controlPlane:{worker:!1,etcd:!1,controlPlane:!0},etcdAndControlPlane:{worker:!1,etcd:!0,controlPlane:!0},all:{worker:!0,etcd:!0,controlPlane:!0}},i={id:"01",isWorker:!0,isControlPlane:!1,isEtcd:!1},o={id:"02",isWorker:!1,isControlPlane:!1,isEtcd:!0},a={id:"03",isWorker:!1,isControlPlane:!0,isEtcd:!1},s={id:"03",isWorker:!1,isControlPlane:!0,isEtcd:!0},l={id:"04",isWorker:!0,isControlPlane:!0,isEtcd:!0},c={rootGetters:{"rancher/byId":()=>({actions:{scaledown:"scaledown"}})}};it.each([[{spec:n.worker,nodes:[i]},!0],[{spec:n.etcd,nodes:[o,o,a]},!0],[{spec:n.etcdAndControlPlane,nodes:[s,s]},!0],[{spec:n.etcdAndControlPlane,nodes:[s]},!1],[{spec:n.all,nodes:[l]},!1],[{spec:n.all,nodes:[l,l]},!0]])("should return canScaleDownPool properly",((n,i)=>{const{spec:o,nodes:a}=n,s=new r["default"]({spec:o,id:t},{...c,getters:{all:()=>[{mgmtClusterId:e,nodes:a}]}});expect(s.canScaleDownPool()).toStrictEqual(i)}))}))}))},75622:function(e,t,n){"use strict";n.r(t);var r=n(83929),i=n(71445),o=n(45901);describe("class Namespace",(()=>{describe("checking if isSystem",(()=>{it.each([["whatever1",i.eG,!0],["whatever2","any-annotation",!1],["whatever3","",!1]])("should return true if it has the correct annotation",((e,t,n)=>{const i=new r["default"]({});i.metadata={...i.metadata,name:e},t&&(i.metadata.annotations={[t]:"true"}),expect(i.isSystem).toBe(n)}));const e=[];o.A.forEach((t=>{e.push([t,!0])})),e.push(["c-whatever-system",!1]),e.push(["cattle-whatever",!1]),e.push(["",!1]),it.each(e)("should return true if it belongs to the curated list of namespaces",((e,t)=>{const n=new r["default"]({});n.metadata={...n.metadata,name:e},expect(n.isSystem).toBe(t)})),it.each([["cattle-c-whatever-system",!0],["cattle-whatever",!1],["c-whatever-system",!1]])('should return true if starts with "cattle-" end with "-system',((e,t)=>{const n=new r["default"]({});n.metadata={...n.metadata,name:e},expect(n.isSystem).toBe(t)}))})),it.todo("should check if isFleetManaged"),describe("checking if isObscure",(()=>{it.each([["c-whatever-system","management.cattle.io/system-namespace",!0],["p-whatever",i.eG,!0],["p-whatever","",!1],["","",!1]])("should return a value if is system AND has the correct prefix",((e,t,n)=>{const i=new r["default"]({});i.metadata={...i.metadata,name:e},t&&(i.metadata.annotations={[t]:"true"}),expect(i.isObscure).toBe(n)}))})),it.each([["foo:bar","bar"],["",null]])("given %p annotation, projectId should be %p",((e,t)=>{const n=new r["default"]({});n.metadata={name:"",annotations:{"field.cattle.io/projectId":e}},expect(n.projectId).toBe(t)})),it.todo("should return the project"),it.todo("should return the groupByLabel with i18n"),it.todo("should return the project name with i18n"),it.todo("should return the projectNameSort"),it.todo("should check if istioInstalled"),it.todo("should check if injectionEnabled"),describe("handling Istio labels",(()=>{const e=jest.fn();it.each([{metadata:{name:"",labels:{"istio-injection":"whatever"}},save:e},[{metadata:{name:"",labels:{"istio-injection":"whatever"}},save:e}]])("should handle both data as list and single object and save",(t=>{const n=new r["default"]({});n.enableAutoInjection(t),expect(e).toHaveBeenCalledWith()})),it("should add auto injection label as enable",(()=>{const t={metadata:{name:"",labels:{"istio-injection":"whatever"}},save:e},n=new r["default"]({});n.enableAutoInjection(t),expect(t.metadata.labels["istio-injection"]).toBe("enabled")})),it("should remove label on disable",(()=>{const t={metadata:{name:"",labels:{"istio-injection":"whatever"}},save:e},n=new r["default"]({});n.enableAutoInjection(t,!1),expect(t.metadata.labels["istio-injection"]).toBeUndefined()}))})),it.todo("should disableAutoInjection"),it.todo("should check if confirmRemove"),describe("handling listLocation",(()=>{it.each([["c-cluster-product-projectsnamespaces",!0],["c-cluster-product-resource",!1]])("should return the name %p if is Rancher (%p)",((e,t)=>{const n=new r["default"]({});jest.spyOn(n,"$rootGetters","get").mockReturnValue({isRancher:t,currentProduct:{inStore:""}}),expect(n.listLocation.name).toBe(e)})),it("should return the name and resource if Harvester",(()=>{const e=new r["default"]({});jest.spyOn(e,"$rootGetters","get").mockReturnValue({isRancher:!0,currentProduct:{inStore:"harvester"}});const t={name:"harvester-c-cluster-projectsnamespaces",params:{resource:"namespace"}};expect(e.listLocation).toStrictEqual(t)}))})),it.todo("should return _detailLocation with a name"),it.todo("should return the resourceQuota"),it.todo("should set the resourceQuota as reactive Vue property"),it.todo("should reset project with cleanForNew")}))},55087:function(e,t,n){"use strict";n.r(t);var r=n(34049);describe("class Node",(()=>{const e="foo",t="bar",n=jest.fn((()=>t)),i={rootGetters:{"i18n/t":n}},o=()=>{jest.clearAllMocks()};it("should not return addresses if they are not present in the resource status",(()=>{const e=new r["default"]({status:{}});expect(e.addresses).toStrictEqual([]),o()})),describe("should return addresses",(()=>{const t=[e];it("if they are present directly on the resource status",(()=>{const e=new r["default"]({status:{addresses:t}});expect(e.addresses).toStrictEqual(t)}))})),describe("should return an internalIp",(()=>{const t=[{type:"InternalIP",address:e}];it("if addresses includes an object with an appropriate type and address",(()=>{const n=new r["default"]({status:{addresses:t}});expect(n.internalIp).toStrictEqual(e)}))})),describe("should return an externalIp",(()=>{const t=[{type:"ExternalIP",address:e}];it("if addresses includes an object with an appropriate type and address",(()=>{const n=new r["default"]({status:{addresses:t}});expect(n.externalIp).toStrictEqual(e)})),it("if internalNodeStatus.addresses includes an object with an appropriate type and address",(()=>{const n=new r["default"]({status:{internalNodeStatus:{addresses:t}}});expect(n.externalIp).toStrictEqual(e)}))})),describe("should return an appropriate message",(()=>{it("if there is no internalIp to display",(()=>{const e=new r["default"]({status:{}},i);expect(e.internalIp).toStrictEqual(t),expect(n).toHaveBeenCalledTimes(1),expect(n).toHaveBeenCalledWith("generic.none"),o()})),it("if there is no externalIp to display",(()=>{const e=new r["default"]({status:{}},i);expect(e.externalIp).toStrictEqual(t),expect(n).toHaveBeenCalledTimes(1),expect(n).toHaveBeenCalledWith("generic.none"),o()}))}))}))},93403:function(e,t,n){"use strict";n.r(t);var r=n(16257);describe("class ProvCluster",(()=>{const e={clusterName:"test",provisioner:"GKE",spec:{rkeConfig:{}},mgmt:{spec:{gkeConfig:{privateClusterConfig:{enablePrivateEndpoint:!0}}}}},t={clusterName:"test",provisioner:"EKS",spec:{rkeConfig:{}},mgmt:{spec:{eksConfig:{privateAccess:!0}}}},n={clusterName:"test",provisioner:"AKS",spec:{rkeConfig:{}},mgmt:{spec:{aksConfig:{privateCluster:!0}}}};describe("isHostedKubernetesProvider + isPrivateHostedProvider",(()=>{const i=[[e,!0],[t,!0],[n,!0]],o=()=>{jest.clearAllMocks()};it.each(i)("should return the isHostedKubernetesProvider and isPrivateHostedProvider values properly based on the props data",((e,t)=>{const n=new r["default"]({spec:e.spec});jest.spyOn(n,"mgmt","get").mockReturnValue(e.mgmt),jest.spyOn(n,"provisioner","get").mockReturnValue(e.provisioner),expect(n.isRke2).toBe(t),expect(n.isHostedKubernetesProvider).toBe(t),expect(n.isPrivateHostedProvider).toBe(t),o()}))})),describe("hasError",(()=>{const e=[{error:!1,lastUpdateTime:"2022-10-17T23:09:15Z",status:"True",transitioning:!1,type:"Ready"}],t=[{error:!0,lastUpdateTime:"2022-10-17T23:09:15Z",status:"False",message:"some-error-message",transitioning:!1,type:"Pending"}],n=[],i=[{error:!0,lastUpdateTime:"2022-10-17T23:09:15Z",status:"False",message:"some-error-message",transitioning:!1,type:"Pending"},{error:!1,lastUpdateTime:"2023-10-17T23:09:15Z",status:"True",transitioning:!1,type:"Ready"}],o=[{error:!1,lastUpdateTime:"2022-10-17T23:09:15Z",status:"True",transitioning:!1,type:"Ready"},{error:!0,lastUpdateTime:"2023-10-17T23:09:15Z",status:"False",message:"some-error-message",transitioning:!1,type:"Pending"}],a=[{error:!0,lastUpdateTime:"",status:"False",message:"some-error-message",transitioning:!1,type:"Pending"},{error:!1,lastUpdateTime:"2023-10-17T23:09:15Z",status:"True",transitioning:!1,type:"Ready"}],s=[["conditionsWithoutError",e,!1],["conditionsWithoutReady",t,!0],["noConditions",n,!1],["conditionsWithReadyLatest",i,!1],["conditionsWithErrorLatest",o,!0],["conditionsWithProblemInLastUpdateTimeProp",a,!1]],l=()=>{jest.clearAllMocks()};it.each(s)('should return the hasError value properly based on the "status.conditions" props data for testcase %p',((e,t,n)=>{const i={rootGetters:{"management/byId":jest.fn()}},o=new r["default"]({status:{conditions:t}},i);expect(o.hasError).toBe(n),l()}))}))}))},23281:function(e,t,n){"use strict";n.r(t);var r=n(93738);describe("class: schema:",(()=>{describe("parseType",(()=>{it.each([["array",void 0,["array"]],["map",void 0,["map"]],["io.cattle.provisioning.v1.Cluster.status",void 0,["io.cattle.provisioning.v1.Cluster.status"]],["array[string]",void 0,["array","string"]],["array",{subtype:"string"},["array","string"]],["map[string]",void 0,["map","string"]],["map",{subtype:"string"},["map","string"]],["array[io.cattle.provisioning.v1.Cluster.status]",void 0,["array","io.cattle.provisioning.v1.Cluster.status"]],["array",{subtype:"io.cattle.provisioning.v1.Cluster.status"},["array","io.cattle.provisioning.v1.Cluster.status"]],["map[io.cattle.provisioning.v1.Cluster.status]",void 0,["map","io.cattle.provisioning.v1.Cluster.status"]],["map",{subtype:"io.cattle.provisioning.v1.Cluster.status"},["map","io.cattle.provisioning.v1.Cluster.status"]]])("string: %p and field: %p ... should equal %p",((e,t,n)=>{expect((0,r.parseType)(e,t)).toStrictEqual(n)}))}))}))},1647:function(e,t,n){"use strict";n.r(t);var r=n(62737);describe("class Secret",(()=>{it("should contains the type attribute if cleanForDownload",(async()=>{const e=new r["default"]({}),t="apiVersion: v1\nkind: Secret\nmetadata:\n name: my-secret\ntype: Opaque\n",n=await e.cleanForDownload(t);expect(n).toBe(t)})),it("should remove id, links and actions keys if cleanForDownload",(async()=>{const e=new r["default"]({}),t="apiVersion: v1\nkind: Secret\nmetadata:\n name: my-secret\n namespace: default\ntype: Opaque\n",n="id: test_id\nlinks:\n view: https://example.com\nactions:\n remove: https://example.com",i=`${t}\n${n}`,o=await e.cleanForDownload(i);expect(o).toBe(t)}))}))},9388:function(e,t,n){"use strict";n.r(t);var r=n(9950),i=n(89422);describe("class SteveSchema",(()=>{describe("schema diet",(()=>{it("schema Definitions",(async()=>{const e="cluster",t="steveTest";r["default"].reset(e);const n={id:t,metadata:{name:t},resourceFields:null,links:{self:`/v1/schemas/${t}`}},o={type:t,resourceFields:{a:{},b:{}}},a={a:{type:"a"},b:{type:"b"}},s=new r["default"](n,{dispatch:jest.fn().mockImplementation(((e,n)=>(expect(e).toBe("request"),expect(n.type).toBe("schemaDefinition"),expect(n.url).toBe(`/v1/schemaDefinitions/${t}`),{definitionType:t,definitions:{[t]:o,...a}}))),state:{config:{namespace:e}}});expect(s.schemaDefinition).toBeNull(),expect(s.schemaDefinitions).toBeNull(),expect(s.requiresResourceFields).toBeTruthy(),expect(s.hasResourceFields).toBeFalsy(),await s.fetchResourceFields(),expect(s.schemaDefinition).toStrictEqual(o),expect(s.schemaDefinitions).toStrictEqual(a),expect(s.requiresResourceFields).toBeTruthy(),expect(s.hasResourceFields).toBeTruthy(),(0,i.HC)(s,{...n}),expect(s.schemaDefinition).toStrictEqual(o),expect(s.schemaDefinitions).toStrictEqual(a),expect(s.requiresResourceFields).toBeTruthy(),expect(s.hasResourceFields).toBeTruthy()}))}))}))},31439:function(e,t,n){"use strict";n.r(t);var r=n(11341);describe("class StorageClass",(()=>{describe("checking if provisionerDisplay",(()=>{it.each([["kubernetes.io/azure-disk",!0],["kubernetes.io/portworx-volume",!0],["rancher.io/local-path",!1],["some-random-string-as-provisioner",!1]])("should NOT show a suffix IF they are built-in (on the PROVISIONER_OPTIONS list)",((e,t)=>{const n=new r["default"]({metadata:{},spec:{},provisioner:e});jest.spyOn(n,"$rootGetters","get").mockReturnValue({"i18n/t":jest.fn()}),expect(!!r.PROVISIONER_OPTIONS.find((t=>t.value===e))).toBe(t)}))}))}))},18452:function(e,t,n){"use strict";var r=n(97737);const i="dsaf",o={type:i,__rehydrate:"whatever",__clone:"whatever"},a="asdasd",s={...o,type:a,__clone:"whatever",metadata:{clusterName:"whatever",creationTimestamp:"whatever",deletionGracePeriodSeconds:"whatever",deletionTimestamp:"whatever",fields:"whatever",finalizers:"whatever",generateName:"whatever",generation:"whatever",initializers:"whatever",managedFields:"whatever",ownerReferences:"whatever",relationships:"whatever",selfLink:"whatever",state:"whatever",uid:"whatever",resourceVersion:"whatever"},spec:{versions:{schema:"whatever"}},links:"whatever",status:"whatever",stringData:"whatever"};describe("class: Workload",(()=>{describe("given custom workload keys",(()=>{const e="image",t={image:e,__active:"whatever",active:"whatever",_init:"whatever",error:"whatever"},n={...s,type:"123abv",__rehydrate:"whatever",__clone:"whatever",spec:{template:{spec:{containers:[t],initContainers:[t]}}}};n.metadata.name="abc",it("should keep internal keys",(()=>{const e=new r["default"](n,{getters:{schemaFor:()=>({linkFor:jest.fn()})},dispatch:jest.fn(),rootGetters:{"i18n/t":jest.fn()}});expect({...e}).toStrictEqual(n)})),describe("method: save",(()=>{it("should remove all the internal keys",(async()=>{const t=jest.fn(),i=new r["default"](n,{getters:{schemaFor:()=>({linkFor:jest.fn()})},dispatch:t,rootGetters:{"i18n/t":jest.fn(),"i18n/exists":()=>!0}}),o={metadata:{name:"abc",fields:"whatever",resourceVersion:"whatever",clusterName:"whatever",deletionGracePeriodSeconds:"whatever",generateName:"whatever"},spec:{template:{spec:{containers:[{image:e}],initContainers:[{image:e}]}}}};await i.save();const a={data:o,headers:{accept:"application/json","content-type":"application/json"},method:"post",url:void 0};expect(t).toHaveBeenCalledWith("request",{opt:a,type:n.type}),expect({...i}).toStrictEqual(n)}))}))}))}))},9950:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l}});var r=n(4284),i=n(93738),o=n(35038),a=n(9776);const s={};class l extends i["default"]{constructor(e,t,n,r){super(e,t,n,r),s[this.store]||(s[this.store]={ids:{},definitions:{}}),this.requiresResourceFields=null===this._resourceFields}static reset(e){delete s[e]}get hasResourceFields(){var e;return this.requiresResourceFields?!!(null===(e=this.schemaDefinition)||void 0===e?void 0:e.resourceFields):!!this._resourceFields}get resourceFields(){if(this.requiresResourceFields){if(!this.schemaDefinitionsIds)throw new Error(`Cannot find resourceFields for Schema ${this.id} (schemaDefinitions have not been fetched) `);if(!this.schemaDefinition)throw new Error(`No schemaDefinition for ${this.id} found (not in schemaDefinition response) `);return this.schemaDefinition.resourceFields}return this._resourceFields}set resourceFields(e){this._resourceFields=e,this.requiresResourceFields=null===this._resourceFields}async fetchResourceFields(e=0){if(!this.requiresResourceFields)return;if(this.schemaDefinition)return this.schemaDefinition;const t=this.schemaDefinitionUrl;if(!t)return void a.warn(`Unable to fetch schema definitions for ${this.id} (failed to find url of schema definition)`);if(e>=4)return void a.warn(`Unable to fetch schema definitions for ${this.id} (too many failed requests)`);let n;try{n=await this.$dispatch("request",{type:r.m4.SCHEMA_DEFINITION,url:t})}catch(i){return 500===(null===i||void 0===i?void 0:i._status)||503===(null===i||void 0===i?void 0:i._status)?(await(0,o.u)(2e3),this.fetchResourceFields(++e)):void a.warn(`Unable to fetch schema definitions for ${this.id}`,i)}return this.cacheSchemaDefinitionResponse(n),this.schemaDefinition}cacheSchemaDefinitionResponse(e){const{[e.definitionType]:t,...n}=e.definitions,r=this.store;s[r].ids[this.id]={self:t.type,others:Object.keys(n)},Object.entries(e.definitions).forEach((([e,t])=>{s[r].definitions[e]=t}))}get schemaDefinition(){return this.schemaDefinitionsIds?s[this.store].definitions[this.schemaDefinitionsIds.self]:null}get schemaDefinitions(){return this.schemaDefinitionsIds?this.schemaDefinitionsIds.others.reduce(((e,t)=>(e[t]=s[this.store].definitions[t],e)),{}):null}get schemaDefinitionUrl(){var e,t;return null===(t=null===(e=this.links)||void 0===e?void 0:e.self)||void 0===t?void 0:t.replace("/schemas/","/schemaDefinitions/")}get store(){var e,t;return null===(t=null===(e=this.$ctx.state)||void 0===e?void 0:e.config)||void 0===t?void 0:t.namespace}get schemaDefinitionsIds(){var e;return null===(e=s[this.store])||void 0===e?void 0:e.ids[this.id]}}},57871:function(e,t,n){"use strict";n.d(t,{C:function(){return a}});var r=n(65852),i=n(20246),o=n.n(i);function a(e,t){if(!e)return;const{rootKeys:n=["id","links","type","actions"],metadataKeys:i=["fields","relationships","state"],conditionKeys:a=["error","transitioning"]}=t||{},s=o().load(e);return(0,r.cX)(s,n),(0,r.cX)(s?.metadata,i),(s?.status?.conditions||[]).forEach((e=>(0,r.cX)(e,a))),o().dump(s)}},61972:function(e,t,n){"use strict";n.d(t,{Bm:function(){return o},Ng:function(){return l},h1:function(){return s}});var r=n(24759);n(4284);const i=/^\$\.metadata\.fields\[([0-9]*)\]/;function o(e,t){var n;const{headers:i,typeOptions:o,schema:s,columns:l,pagination:c}=t,{state:u,name:d,namespace:h,id:p,age:f}=l,{rootGetters:m}=e,g=o.showState?[u]:[],v=s.attributes||{},y=v.columns||[];if(null===(n=null===i||void 0===i?void 0:i[s.id])||void 0===n?void 0:n.length)return i[s.id].map((e=>{if("string"===typeof e){const t=(0,r.jq)(y,"name",e);return t?a(t,m,c,f):null}return e})).filter((e=>!!e));let b=!1;const _=v.namespaced||!1;for(const r of y)"name"===r.format?(b=!0,g.push(d||a(r,m,c,f)),_&&g.push(h)):g.push(a(r,m,c,f));b||((0,r.PT)(g,1,p||d),_&&(0,r.PT)(g,2,h));const w=g.find((e=>"age"===e.name.toLocaleLowerCase()));return w&&((0,r.Gj)(g,w),o.showAge&&g.push(w)),g}function a(e,t,n,r){let i,o,a;if((""===e.format||"date"===e.format)&&"Age"===e.name&&r)return r;"date"!==e.format&&"date"!==e.type||(i="Date",o=120,a={multiline:!0}),"number"!==e.type&&"int"!==e.type||(i="Number");const l=e.name.includes(" ")?e.name.split(" ").map((e=>e.charAt(0).toUpperCase()+e.substring(1))).join(""):e.name,c=t["i18n/exists"],u=t["i18n/t"],d=`tableHeaders.${l.charAt(0).toLowerCase()+l.slice(1)}`,h=e.description||"",p=h&&"."===h[h.length-1]?h.slice(0,-1):h,f=s(e,!1),m=n?f:s(e,!0);return{name:e.name.toLowerCase(),label:c(d)?u(d):e.name,value:m,sort:[f],search:f,formatter:i,formatterOpts:a,width:o,tooltip:p}}function s(e,t=!0){const n=e.field.startsWith(".")?`$${e.field}`:e.field,r=n.match(i);if(r&&2===r.length){const e=parseInt(r[1],10);return t?t=>{var n,r;return null===(r=null===(n=t.metadata)||void 0===n?void 0:n.fields)||void 0===r?void 0:r[e]}:`metadata.fields.${e}`}return n}const l=(e,t)=>"function"===typeof e?!!t&&e(t):e},41452:function(e,t,n){"use strict";n.d(t,{c:function(){return r},w:function(){return i}});const r={GROUP:"group",DIVIDER:"divider",NONE:"none"},i=[r.GROUP,r.DIVIDER]},80989:function(e,t,n){"use strict";n.d(t,{B6:function(){return s},Js:function(){return i},eY:function(){return a},gR:function(){return l}});var r=n(66442);class i{constructor({field:e,value:t,equals:n=!0,exact:r=!0}){this.field=e,this.value=t,this.equals=n,this.exact=r}}class o{constructor({param:e,equals:t=!0,fields:n=[]}){this.param=e,this.equals=t,this.fields=n}}class a extends o{constructor({equals:e=!0,fields:t=[]}){super({param:"filter",equals:e,fields:t})}static createSingleField(e){return new a({fields:[new i(e)]})}static createMultipleFields(e){return new a({fields:e})}}class s extends o{constructor({equals:e=!0,projectOrNamespace:t=[]}){const n=t.map((e=>new i({value:e.replace(r.os,"").replace(r.tA,"")})));super({param:"projectsornamespaces",equals:e,fields:n})}}class l{constructor({page:e=1,pageSize:t=10,sort:n=[],filters:r=[],projectsOrNamespaces:i=[]}){this.page=e,this.pageSize=t,this.sort=n,this.filters=r?Array.isArray(r)?r:[r]:[],this.projectsOrNamespaces=i?Array.isArray(i)?i:[i]:[]}}},72073:function(e,t,n){"use strict";n.d(t,{c:function(){return r}});const r={TABLET:"tablet",LAPTOP:"laptop",DESKTOP:"desktop"}},24759:function(e,t,n){"use strict";n.d(t,{$M:function(){return s},Gj:function(){return a},IU:function(){return p},P1:function(){return v},PG:function(){return l},PT:function(){return u},WP:function(){return m},Wq:function(){return h},cn:function(){return c},cy:function(){return d},jq:function(){return g},oQ:function(){return _},sb:function(){return b},yI:function(){return y}});var r=n(79898),i=n.n(r),o=n(65852);function a(e,t){const n=e.indexOf(t);return n>=0&&e.splice(n,1),e}function s(e,t){let n,r=[];for(n=0;ne-t));const i=[];let o,a;while(r.length){o=r.shift(),a=o;while(r.length&&r[0]===a+1)a=r.shift();i.push({start:o,end:a})}for(n=i.length-1;n>=0;n--){const{start:t,end:r}=i[n];e.splice(t,r-t+1)}return e}function l(e,t){const n=e.indexOf(t);-1===n&&e.push(t)}function c(e,t){const n=[];for(const r of t)e.includes(r)||n.includes(r)||n.push(r);e.push(...n)}function u(e,t,...n){e.splice(t,0,...n)}function d(e){return Array.isArray(e)}function h(e,t,n=1){if(t<0)throw new Error("Index too low");if(t+n>e.length)throw new Error("Index + length too high");return e.splice(t,n),e}function p(e){e.splice(0,e.length)}function f(e,t,n,r){return t=t||[],"object"===typeof n?t[e]((e=>{for(const t in n){const r=n[t],i=(0,o.Jt)(e,t);if("undefined"===typeof r){if(!i)return!1}else if(i!==r)return!1}return!0})):void 0===r?t[e]((e=>!!(0,o.Jt)(e,n))):t[e]((e=>(0,o.Jt)(e,n)===r))}function m(e,t,n){return f("filter",e,t,n)}function g(e,t,n){return f("find",e,t,n)}function v(e,t){return 0===i()(e,t).length}function y(e,t,n=!1){if(!e&&!t)return!1;if((null===e||void 0===e?void 0:e.length)!==(null===t||void 0===t?void 0:t.length))return!1;if(n){const n={};t.forEach(((e,t)=>{n[t]=!1}));for(let r=0;r(0,o.n4)(e,i)&&!n[t]));if(!(a>=0))return!1;n[a]=!0}}else for(let r=0;r(Object.keys(t.metadata.labels).forEach((t=>e[t]=!0)),e)),{});return Object.keys(t).sort()}},35038:function(e,t,n){"use strict";n.d(t,{f:function(){return i},u:function(){return o}});var r=n(9776);const i=(e,t="",n=3e6,i=500,o=!1)=>{return a("Starting wait for",t),new Promise(((r,o)=>{e()&&(a("Wait for",t||"unknown","done immediately"),r(void 0));const s=setTimeout((()=>{if(a("Wait for",t,"timed out"),clearInterval(l),clearTimeout(s),!t)throw new Error(`waitFor timed out after ${n/1e3} seconds`);o(new Error(`Failed waiting for: ${t}`))}),n),l=setInterval((()=>{e()?(a("Wait for",t,"done"),clearInterval(l),clearTimeout(s),r(void 0)):t&&a("Wait for",t,"not done yet")}),i)}));function a(...e){o&&r.log(...e)}},o=e=>new Promise((t=>setTimeout(t,e)))},36371:function(e,t,n){"use strict";n.d(t,{W:function(){return r}});const r={enabled:!1,enabledInterval:!0,interval:300,enabledOnNavigate:!0,ageThreshold:120,countThreshold:500}},76291:function(e,t,n){"use strict";var r=n(41890),i=n(4284),o=n(36371),a=n(9776);class s{constructor(){this.cachedGcPrefs=o.W,this.cachedGcPrefsStamp="",this.debugLog=(...e)=>{s.ENABLE_DEBUG_LOGGING&&a.debug("GC",...e)},this.gcLastRun=0,this.getUiPerfGarbageCollection=e=>{var t,n;const o=null===(n=null===(t=e.management.types[i.Mc.SETTING])||void 0===t?void 0:t.list)||void 0===n?void 0:n.find((e=>e.id===r.HG.UI_PERFORMANCE));if(!o||!o.value)return;const a=`${o.metadata.generation}-${o.metadata.resourceVersion}`;if(this.cachedGcPrefsStamp!==a){this.debugLog(`Updating ${r.HG.UI_PERFORMANCE} cache`),this.cachedGcPrefsStamp=a;const e=JSON.parse(o.value);this.cachedGcPrefs=e.garbageCollection}return this.cachedGcPrefs},this.lastAccessedCache={},this.lastRouteChange=0}gcEnabledAll(e,t){return this.gcEnabledForStore(e.state)&&this.gcEnabledSetting(e)&&this.gcEnabledForType(e,t)}gcEnabledSetting(e){const{rootState:t}=e,n=this.getUiPerfGarbageCollection(t);return null===n||void 0===n?void 0:n.enabled}gcEnabledForStore(e){var t;return null===(t=null===e||void 0===e?void 0:e.config)||void 0===t?void 0:t.supportsGc}gcEnabledForType(e,t){const{getters:n}=e;return!(!t||n.gcIgnoreTypes[t])}gcEnabledInterval(e){const{rootState:t}=e,n=this.getUiPerfGarbageCollection(t);return{enabled:null===n||void 0===n?void 0:n.enabledInterval,interval:(null===n||void 0===n?void 0:n.interval)||0}}gcEnabledRoute(e){const{rootState:t}=e,n=this.getUiPerfGarbageCollection(t);return null===n||void 0===n?void 0:n.enabledOnNavigate}garbageCollect(e,t={}){const n=(new Date).getTime();if(null===this.gcLastRun||n-this.gcLastRun{var d;if(!l)return void this.debugLog(`${a}: Skipping (no accessed time)`);if(!this.gcEnabledForType(e,a))return void this.debugLog(`${a}: Skipping (type ignored by store)`);if(t[a])return void this.debugLog(`${a}: Skipping (navigating to type)`);if(n-l<=c)return void this.debugLog(`${a}: Skipping (recently accessed)`);if(void 0!==this.lastRouteChange&&this.lastRouteChange0&&a.info("Garbage Collected Resources",r),this.debugLog("------ Finished ------")}gcUpdateLastAccessed(e,t){if(!this.gcEnabledAll(e,t))return;const n=e.state.config.namespace;this.lastAccessedCache[n]||(this.lastAccessedCache[n]={}),this.lastAccessedCache[n][t]=(new Date).getTime()}gcUpdateRouteChanged(){this.lastRouteChange=(new Date).getTime()}gcResetStore(e){const t=e.config.namespace;delete this.lastAccessedCache[t],this.debugLog("Forgetting Store:",t)}gcResetType(e,t){const n=e.config.namespace;this.lastAccessedCache[n]&&(delete this.lastAccessedCache[n][t],this.debugLog("Forgetting Type:",n,t))}}s.ENABLE_DEBUG_LOGGING=!1,s.GC_RE_RUN_GAP=5e3;const l=new s;t.A=l},6344:function(e,t){"use strict";t.A={memberOfObject:(e,t)=>Object.entries(e||{}).find((([e])=>e===t)),memberOfComponent:(e,t)=>e[t]}},23967:function(e,t,n){"use strict";function r(e,t,n){let r=e+(e.includes("?")?"&":"?");return Array.isArray(n)||(n=[n]),r+=n.map((e=>null===e?`${encodeURIComponent(t)}`:`${encodeURIComponent(t)}=${encodeURIComponent(e)}`)).join("&"),r}function i(e,t){return t&&"object"===typeof t&&Object.keys(t).forEach((n=>{e=r(e,n,t[n])})),e}function o(e,t){const n=t.toLowerCase();return a([e],[443,8443],["443"])||"https"===n}function a(e,t,n){for(let r=0;r(n&&(r[t.q.name][n]=i),""))),r}function l(e){let t=`${e.protocol}://`;return e.user&&e.password?t+=`${e.user}:${e.password}@`:e.user&&(t+=`${e.user}@`),t+=e.host,e.port&&(t+=`:${e.port}`),t+=e.path||"/",t=i(t,e.query||{}),e.anchor&&(t+=`#${e.anchor}`),t}n.d(t,{As:function(){return l},E4:function(){return o},R_:function(){return r},g:function(){return i},qg:function(){return s}}),s.options={strictMode:!1,key:["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","queryStr","anchor"],q:{name:"query",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},parser:{strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/}}},6246:function(e,t,n){"use strict";n.d(t,{A:function(){return b}});var r=n(4284),i=n(71445),o=n(15510),a=n.n(o),s=n(10427),l=n.n(s),c=n(91990),u=n.n(c),d=n(77905),h=n.n(d),p=n(64314);function f(e,t,n){return(t=m(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(e){var t=g(e,"string");return"symbol"==typeof t?t:t+""}function g(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}class v{constructor(e){f(this,"empty",void 0),f(this,"int",void 0),f(this,"string",void 0),f(this,"isNumber",void 0),f(this,"isInt",void 0),this.string=String(e),this.int=parseInt(this.string,10),this.empty=!e&&0!==this.int,this.isNumber=!isNaN(this.int)&&!this.string.includes("e"),this.isInt=this.isNumber&&!this.string.includes(".")}}const y=(e,t)=>{for(const n of t){const t=n(e);if(t)return t}};function b(e,{key:t="Value"}){const n=n=>r=>"."===r?.slice(0,1)?e(`validation.dns.${n}.startDot`,{key:t}):void 0,o=n=>r=>"."===r?.slice(-1)?e(`validation.dns.${n}.endDot`,{key:t}):void 0,s=n=>r=>r?.slice(0,1)?.match(/[0-9]/)?e(`validation.dns.${n}.startNumber`,{key:t}):void 0,c=n=>r=>"-"===r?.slice(0,1)?e(`validation.dns.${n}.startHyphen`,{key:t}):void 0,d=n=>r=>"-"===r?.slice(-1)?e(`validation.dns.${n}.endHyphen`,{key:t}):void 0,f=n=>r=>Number(r)r=>Number(r)>Number(n)?e("validation.maxValue",{key:t,max:n}):void 0,g=([n,r])=>i=>f(n)(i)||m(r)(i)?e("validation.betweenValues",{key:t,min:n,max:r}):void 0,b=n=>r=>r.lengthr=>r.length>Number(n)?e("validation.maxLength",{key:t,max:n}):void 0,w=([n,r])=>i=>b(n)(i)||_(r)(i)?e("validation.betweenLengths",{key:t,min:n,max:r}):void 0,E=n=>isNaN(parseInt(n,10))?e("validation.number.requiredInt",{key:t}):void 0,S=n=>!Number.isInteger(+n)||`${n}`.match(/\.+/g)?e("validation.number.requiredInt",{key:t}):void 0,x=n=>+n<0?e("validation.number.isPositive",{key:t}):void 0,k=n=>{const r=`${n}`,i=r.match(/(^0+)(.+)/);return i?e("validation.number.isOctal",{key:t}):void 0},A=n=>parseInt(n,10)<1||parseInt(n,10)>65535?e("validation.number.between",{key:t,min:"1",max:"65535"}):void 0,N=n=>{const r=n?.match(/[^${'A-Za-z0-9-'}]/g);if(r)return e("validation.chars",{key:t,count:r.length,chars:r.map((e=>" "===e?"Space":`"${e}"`)).join(", ")})},T=n=>"--"===n?.substr(2,2)&&"xn"!==n?.substr(0,2)?e("validation.dns.doubleHyphen",{key:t}):void 0,C=n=>"--"===n?.substr(2,2)&&"xn"!==n?.substr(0,2)?e("validation.dns.doubleHyphen",{key:t}):void 0,R=n=>(r="")=>0===r.length?e(`validation.dns.${n}.emptyLabel`,{key:t,min:1}):void 0,O=(n,r=63)=>(i="")=>i.length>r?e(`validation.dns.${n}.tooLongLabel`,{key:t,max:r}):void 0,I=(n="")=>n.length>253?e("validation.dns.hostname.tooLong",{key:t,max:253}):void 0,D=(n="")=>"/"!==n[0]&&n.length>0?e("validation.path",{key:t}):void 0,L=n=>n||!1===n?void 0:e("validation.required",{key:t}),P=(n="")=>n.toLowerCase()!==n?e("validation.noUpperCase",{key:t}):void 0,M=t=>{try{h().toString(t,{verbose:!0})}catch(n){return e("validation.invalidCron")}},F=t=>t&&!(0,p.Q6)(t)?e("validation.setting.serverUrl.https"):void 0,B=t=>(0,p.M8)(t)?e("validation.setting.serverUrl.localhost"):void 0,$=t=>(0,p.fB)(t)?e("validation.setting.serverUrl.trailingForwardSlash"):void 0,j=t=>t&&!u()(t)?e("validation.setting.serverUrl.url"):void 0,U=n=>n&&!/^[a-zA-Z0-9]+$/.test(n)?e("validation.alphanumeric",{key:t}):void 0,V=n=>/^\d+[hms]$/.test(n)?void 0:e("validation.monitoring.route.interval",{key:t}),K=t=>t?.image?void 0:e("workload.validation.containerImage",{name:t.name}),H=t=>{const n=t.jobTemplate?t?.jobTemplate?.spec?.template?.spec?.containers:t?.template?.spec?.containers;return n&&n.length?n.map((e=>K(e))).find((e=>e)):e("validation.required",{key:e("workload.container.titles.containers")})},G=e=>{const t=[N,c("label"),d("label"),T,O("label")];return y(e,t)},z=e=>{const t=[N,c("label"),d("label"),C,R("label"),O("label",15)];return y(e,t)},X=e=>{const t=[N,s("label"),c("label"),d("label"),T,R("label"),O("label")];return y(e,t)},q=e=>{if(e){const t=[n("hostname"),I,o("hostname")],r=y(e,t);if(r)return r;const i=e.split("."),a=[N,c("hostname"),d("hostname"),T,R("hostname"),O("hostname")];for(let e=0;e(e=e?e.replace(/^\*\./,""):e,q(e)),Y=t=>a()(t)?e("validation.service.externalName.none"):q(t),Q=e=>"This is an error returned by the testRule validator",J=t=>a()(t?.groups)?e("validation.prometheusRule.groups.required"):void 0,Z=t=>n=>t&&(n||"")?.match(/^(c-.{5}|local)$/i)?e("validation.cluster.name"):void 0,ee=t=>{const{name:n,idx:r}=t,i=new v(t.nodePort),o=new v(t.port),s=new v(t.targetPort);if(a()(n))return e("validation.service.ports.name.required",{position:r+1});if(!i.empty){if(!i.isInt)return e("validation.service.ports.nodePort.requiredInt",{position:r+1});if(i.int<1||i.int>65535)return e("validation.service.ports.nodePort.between",{position:r+1})}if(o.empty)return e("validation.service.ports.port.required",{position:r+1});if(!o.isInt)return e("validation.service.ports.port.requiredInt",{position:r+1});if(o.int<1||o.int>65535)return e("validation.service.ports.port.between",{position:r+1});if(o.string?.includes("."))return o;if(s.empty)return e("validation.service.ports.targetPort.required",{position:r+1});if(s.isInt){if(s.int<1||s.int>65535)return e("validation.service.ports.targetPort.between",{position:r+1})}else{const e=z(s.string);if(e)return e}},te=(t,n)=>{let r;return a()(t?.name)?e("validation.prometheusRule.groups.valid.name",{index:n}):a()(t.rules)?e("validation.prometheusRule.groups.valid.singleEntry",{index:n}):(t.rules.forEach(((t,i)=>{const o=i+1;l()(t,"alert")&&a()(t?.alert)&&!r?r=e("validation.prometheusRule.groups.valid.rule.alertName",{groupIndex:n,ruleIndex:o}):l()(t,"record")&&a()(t?.record)&&(r=e("validation.prometheusRule.groups.valid.rule.recordName",{groupIndex:n,ruleIndex:o})),(l()(t,"expr")&&a()(t.expr)&&!r||!l()(t,"expr")&&!r)&&(r=e("validation.prometheusRule.groups.valid.rule.expr",{groupIndex:n,ruleIndex:o})),l()(t,"alert")&&(l()(t,"labels")&&a()(t.labels)&&!r||!l()(t,"labels")&&!r)&&(r=e("validation.prometheusRule.groups.valid.rule.labels",{groupIndex:n,ruleIndex:o}))})),r)},ne=e=>{const t=[...e];let n;return t.forEach(((e,t,r)=>{n=te(e,t+1),n&&(r.length=t+1)})),n},re=t=>{if(a()(t?.match)&&a()(t?.["match_re"]))return e("validation.monitoring.route.match")},ie=t=>(n=[])=>{if(n.some((e=>a()(e.verbs))))return e("validation.roleTemplate.roleTemplateRules.missingVerb");if(n.some((e=>e.resources?.length&&e.nonResourceURLs?.length)))return e("validation.roleTemplate.roleTemplateRules.noResourceAndNonResource");if(t===r.lk.ROLE){if(n.some((e=>a()(e.resources))))return e("validation.roleTemplate.roleTemplateRules.missingResource");if(n.some((e=>a()(e.apiGroups))))return e("validation.roleTemplate.roleTemplateRules.missingApiGroup")}else if(n.some((e=>a()(e.resources)&&a()(e.nonResourceURLs))))return e("validation.roleTemplate.roleTemplateRules.missingOneResource")},oe=e=>{},ae=t=>{const n=JSON.parse(t),r=n.type;if(!r)return e("validation.required",{key:"Type"});if("s3"===r){if(!n.accessKeyId)return e("validation.required",{key:"accessKeyId"});if(!n.secretAccessKey)return e("validation.required",{key:"secretAccessKey"});if(!n.bucketRegion)return e("validation.required",{key:"bucketRegion"});if(!n.bucketName)return e("validation.required",{key:"bucketName"})}},se=t=>{const n=["qcow","qcow2","raw","img","iso"];if(!t||""===t)return;const r=t.split("/").pop(),i=r.split(".").pop().toLowerCase();return n.includes(i)?void 0:e("harvester.validation.image.ruleTip")},le=(t={})=>{if(!t[i.rk.IMAGE_NAME])return e("validation.required",{key:e("harvester.image.fileName")})},ce=r=>{const i=r?.match(/[^a-z0-9.-]/g);return i?e("validation.chars",{key:t,count:i.length,chars:i.map((e=>" "===e?"Space":`"${e}"`)).join(", ")}):y(r,[c("label"),d("label"),n("label"),o("label"),L])};return{absolutePath:D,alphanumeric:U,backupTarget:ae,betweenLengths:w,betweenValues:g,clusterIp:oe,clusterName:Z,containerImage:K,containerImages:H,cronSchedule:M,dnsLabel:G,dnsLabelIanaServiceName:z,dnsLabelRestricted:X,externalName:Y,fileRequired:le,groupsAreValid:ne,hostname:q,imageUrl:se,interval:V,https:F,localhost:B,trailingForwardSlash:$,url:j,matching:re,maxLength:_,maxValue:m,minLength:b,minValue:f,noUpperCase:P,portNumber:A,required:L,requiredInt:E,isInteger:S,isPositive:x,isOctal:k,roleTemplateRules:ie,ruleGroups:J,servicePort:ee,subDomain:ce,testRule:Q,wildcardHostname:W}}},91806:function(e,t,n){"use strict";n.d(t,{A:function(){return m}});var r=n(9274);const i={class:"mb-5"},o={class:"mb-5"},a={class:"mb-5"},s=["href"];function l(e,t,n,l,c,u){const d=(0,r.resolveComponent)("Banner"),h=(0,r.resolveDirective)("clean-html");return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[(0,r.createVNode)(d,{color:"warning"},{default:(0,r.withCtx)((()=>[(0,r.createElementVNode)("div",null,[(0,r.createElementVNode)("strong",null,(0,r.toDisplayString)(e.t("harvester.upgradePage.upgradeInfo.warning"))+":",1),(0,r.withDirectives)((0,r.createElementVNode)("p",i,null,512),[[h,e.t("harvester.upgradePage.upgradeInfo.doc",{url:u.upgradeLink},!0)]]),(0,r.createElementVNode)("p",o,(0,r.toDisplayString)(e.t("harvester.upgradePage.upgradeInfo.tip")),1),(0,r.createElementVNode)("p",a,[(0,r.createTextVNode)((0,r.toDisplayString)(e.t("harvester.upgradePage.upgradeInfo.moreNotes"))+" ",1),(0,r.createElementVNode)("a",{href:u.releaseVersion,target:"_blank"},(0,r.toDisplayString)(e.t("generic.moreInfo")),9,s)])])])),_:1})])}var c=n(58832),u=n(66242),d=n(3791),h={name:"HarvesterUpgradeInfo",components:{Banner:c.l},props:{version:{type:String,default:""}},computed:{releaseVersion(){return this.version?`https://github.com/harvester/harvester/releases/tag/${this.version}`:"https://github.com/harvester/harvester/releases"},upgradeLink(){const e=this.$store.getters["harvester-common/getServerVersion"]();return(0,d.nn)(u.d.UPGRADE_URL,e)}}},p=n(47433);const f=(0,p.A)(h,[["render",l]]);var m=f},53953:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return F}});var r=n(9274);const i={class:"bundleModal"},o={class:"p-20"},a={key:0,class:"content"},s={key:1,class:"content"},l={class:"circle"},c={class:"footer mt-20"};function u(e,t,n,u,d,h){const p=(0,r.resolveComponent)("LabeledInput"),f=(0,r.resolveComponent)("GraphCircle"),m=(0,r.resolveComponent)("Banner"),g=(0,r.resolveComponent)("AsyncButton"),v=(0,r.resolveComponent)("app-modal");return(0,r.openBlock)(),(0,r.createElementBlock)("div",i,[d.isOpen?((0,r.openBlock)(),(0,r.createBlock)(v,{key:0,name:"bundle-modal","custom-class":"bundleModal","click-to-close":!1,width:550,height:390,class:"remove-modal support-modal",onClose:h.close},{default:(0,r.withCtx)((()=>[(0,r.createElementVNode)("div",o,[(0,r.createElementVNode)("h2",null,(0,r.toDisplayString)(e.t("harvester.modal.bundle.title")),1),h.bundlePending?((0,r.openBlock)(),(0,r.createElementBlock)("div",s,[(0,r.createElementVNode)("div",l,[(0,r.createVNode)(f,{"primary-stroke-color":"green","secondary-stroke-color":"white","stroke-width":6,percentage:h.percentage,"show-text":!0},null,8,["percentage"])])])):((0,r.openBlock)(),(0,r.createElementBlock)("div",a,[(0,r.createVNode)(p,{value:d.url,"onUpdate:value":t[0]||(t[0]=e=>d.url=e),label:e.t("harvester.modal.bundle.url"),class:"mb-20"},null,8,["value","label"]),(0,r.createVNode)(p,{value:d.description,"onUpdate:value":t[1]||(t[1]=e=>d.description=e),label:e.t("harvester.modal.bundle.description"),type:"multiline","min-height":120,required:""},null,8,["value","label"])])),((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(d.errors,((e,t)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:t},[(0,r.createVNode)(m,{color:"error",label:h.stringify(e)},null,8,["label"])])))),128)),(0,r.createElementVNode)("div",c,[(0,r.createElementVNode)("button",{class:"btn btn-sm role-secondary mr-10",onClick:t[2]||(t[2]=(...e)=>h.close&&h.close(...e))},(0,r.toDisplayString)(e.t("generic.close")),1),(0,r.createVNode)(g,{type:"submit",mode:"generate",class:"btn btn-sm bg-primary",disabled:h.bundlePending,onClick:h.save},null,8,["disabled","onClick"])])])])),_:1},8,["onClose"])):(0,r.createCommentVNode)("",!0)])}var d=n(78359),h=n(71898),p=n(53512),f=n(1804);const m=["viewBox"],g=["transform"],v=["id"],y=["stop-color"],b=["stop-color"],_=["id"],w=["stop-color"],E=["stop-color"],S=["r","cy","cx","stroke-width","stroke"],x=["r","cy","cx","stroke-width","stroke","stroke-dasharray","stroke-dashoffset"],k=["x","y","fill"];function A(e,t,n,i,o,a){return(0,r.openBlock)(),(0,r.createElementBlock)("svg",{class:"circle",width:"100%",height:"100%",viewBox:a.viewBox},[(0,r.createElementVNode)("g",{transform:a.transform},[(0,r.createElementVNode)("defs",null,[(0,r.createElementVNode)("linearGradient",{id:a.primaryStrokeColorId,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[(0,r.createElementVNode)("stop",{offset:"50%","stop-color":n.primaryStrokeGradientColor||n.primaryStrokeColor},null,8,y),(0,r.createElementVNode)("stop",{offset:"100%","stop-color":n.primaryStrokeColor},null,8,b)],8,v),(0,r.createElementVNode)("linearGradient",{id:a.secondaryStrokeColorId,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[(0,r.createElementVNode)("stop",{offset:"50%","stop-color":n.secondaryStrokeGradientColor||n.secondaryStrokeColor},null,8,w),(0,r.createElementVNode)("stop",{offset:"100%","stop-color":n.secondaryStrokeColor},null,8,E)],8,_)]),(0,r.createElementVNode)("circle",{r:a.radius,cy:a.center,cx:a.center,"stroke-width":n.strokeWidth,stroke:`url(#${a.secondaryStrokeColorId})`,fill:"none"},null,8,S),(0,r.createElementVNode)("circle",{r:a.radius,cy:a.center,cx:a.center,"stroke-width":n.strokeWidth,stroke:`url(#${a.primaryStrokeColorId})`,"stroke-dasharray":a.circumference,"stroke-dashoffset":a.circumference*(1-n.percentage),fill:"none"},null,8,x)],8,g),n.showText?((0,r.openBlock)(),(0,r.createElementBlock)("text",{key:0,x:a.center,y:a.center,style:{"font-size":"25","dominant-baseline":"middle","text-anchor":"middle"},fill:`url(#${a.primaryStrokeColorId})`},(0,r.toDisplayString)(a.parsePercentage)+"% ",9,k)):(0,r.createCommentVNode)("",!0)],8,m)}let N=0;var T={props:{percentage:{type:Number,default:.75},strokeWidth:{type:Number,default:22},primaryStrokeColor:{type:String,required:!0},primaryStrokeGradientColor:{type:String,default:null},secondaryStrokeColor:{type:String,required:!0},secondaryStrokeGradientColor:{type:String,default:null},rotate:{type:Number,default:90},showText:{type:Boolean,default:!1}},data(){return{id:N++}},computed:{viewportSize(){return 100},radius(){const e=this.viewportSize/2,t=this.strokeWidth/2;return e-t},center(){return this.viewportSize/2},viewBox(){return`0 0 ${this.viewportSize} ${this.viewportSize}`},circumference(){return 2*Math.PI*this.radius},transform(){return`rotate(${this.rotate}, ${this.center}, ${this.center})`},strokeDasharray(){return this.circumference},strokeDashoffset(){return this.circumference*(1-this.percentage)},primaryStrokeColorId(){return`primary-${N}`},secondaryStrokeColorId(){return`secondary-${N}`},parsePercentage(){return parseInt(100*this.percentage)||0}}},C=(n(7230),n(47433));const R=(0,C.A)(T,[["render",A],["__scopeId","data-v-31844031"]]);var O=R,I=n(58832),D=n(70876),L=n(32766),P={name:"SupportBundle",components:{LabeledInput:p.o,GraphCircle:O,AsyncButton:f.A,Banner:I.l,AppModal:D.A},data(){return{url:"",description:"",errors:[],isOpen:!1}},computed:{bundlePending(){return this.$store.getters["harvester-common/isBundlePending"]},isShowBundleModal(){return this.$store.getters["harvester-common/isShowBundleModal"]},percentage(){return this.$store.getters["harvester-common/getBundlePercentage"]}},watch:{isShowBundleModal:{handler(e){e?this.$nextTick((()=>{this.isOpen=!0})):(this.isOpen=!1,this.url="",this.description="")},immediate:!0}},methods:{stringify:h.As,close(){this.isOpen=!1,this.$store.commit("harvester-common/toggleBundleModal",!1),this.backUpName=""},async save(e){this.errors=[];const t=`bundle-${(0,d.vx)(5).toLowerCase()}`,n="harvester-system",r={apiVersion:"harvesterhci.io/v1beta1",type:L.rk.SUPPORT_BUNDLE,kind:"SupportBundle",metadata:{name:t,namespace:n},spec:{issueURL:this.url,description:this.description}},i=this.$store.getters["currentProduct"].inStore,o=await this.$store.dispatch(`${i}/create`,r);try{await o.save(),this.$store.commit("harvester-common/setLatestBundleId",`${n}/${t}`,{root:!0}),this.$store.dispatch("harvester-common/bundleProgress",{root:!0})}catch(a){this.errors=(0,h.rz)(a),e(!1)}}}};n(13358);const M=(0,C.A)(P,[["render",u],["__scopeId","data-v-4369f8da"]]);var F=M},52167:function(e,t,n){"use strict";n.d(t,{A:function(){return g}});var r=n(9274);const i=e=>((0,r.pushScopeId)("data-v-4f269fb8"),e=e(),(0,r.popScopeId)(),e),o={key:0,class:"banner__icon","data-testid":"banner-icon"},a={key:1},s={key:2},l=i((()=>(0,r.createElementVNode)("i",{"data-testid":"banner-close",class:"icon icon-close closer-icon"},null,-1))),c=[l];function u(e,t,n,i,l,u){const d=(0,r.resolveComponent)("t"),h=(0,r.resolveDirective)("clean-html");return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)(["banner",{[e.color]:!0}])},[e.icon?((0,r.openBlock)(),(0,r.createElementBlock)("div",o,[(0,r.createElementVNode)("i",{class:(0,r.normalizeClass)(["icon icon-2x",e.icon])},null,2)])):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["banner__content",{closable:e.closable,stacked:e.stacked,icon:e.icon}]),"data-testid":"banner-content"},[(0,r.renderSlot)(e.$slots,"default",{},(()=>[e.labelKey?((0,r.openBlock)(),(0,r.createBlock)(d,{key:0,k:e.labelKey,raw:!0},null,8,["k"])):e.messageLabel?((0,r.openBlock)(),(0,r.createElementBlock)("span",a,(0,r.toDisplayString)(e.messageLabel),1)):(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("span",s,null,512)),[[h,e.nlToBr(e.label)]])]),!0),e.closable?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,class:"banner__content__closer",onClick:t[0]||(t[0]=t=>e.$emit("close"))},c)):(0,r.createCommentVNode)("",!0)],2)],2)}var d=n(78359),h=n(71898),p=(0,r.defineComponent)({props:{color:{type:String,default:"secondary"},label:{type:[String,Error,Object],default:null},labelKey:{type:String,default:null},icon:{type:String,default:null},closable:{type:Boolean,default:!1},stacked:{type:Boolean,default:!1}},emits:["close"],computed:{messageLabel(){return"string"!==typeof this.label?(0,h.As)(this.label):void 0}},methods:{nlToBr:d.Kn}}),f=(n(52131),n(47433));const m=(0,f.A)(p,[["render",u],["__scopeId","data-v-4f269fb8"]]);var g=m},87732:function(e,t,n){"use strict";n.d(t,{A:function(){return b}});var r=n(9274);const i={class:"checkbox-outer-container","data-checkbox-ctrl":""},o=["for"],a=["checked","value","name"],s=["tabindex","aria-label","aria-checked"],l={key:2,class:"checkbox-info icon icon-info icon-lg"},c={key:3,class:"checkbox-info icon icon-info icon-lg"},u={key:0,class:"checkbox-outer-container-description"};function d(e,t,n,d,h,p){const f=(0,r.resolveComponent)("t"),m=(0,r.resolveDirective)("clean-tooltip");return(0,r.openBlock)(),(0,r.createElementBlock)("div",i,[(0,r.createElementVNode)("label",{class:(0,r.normalizeClass)(["checkbox-container",{disabled:e.isDisabled}]),for:e.id,onKeydown:[t[1]||(t[1]=(0,r.withKeys)((0,r.withModifiers)((t=>e.clicked(t)),["prevent"]),["enter"])),t[2]||(t[2]=(0,r.withKeys)((0,r.withModifiers)((t=>e.clicked(t)),["prevent"]),["space"]))],onClick:t[3]||(t[3]=t=>e.clicked(t))},[(0,r.createElementVNode)("input",{checked:e.isChecked,value:e.valueWhenTrue,type:"checkbox",tabindex:-1,name:e.id,onClick:t[0]||(t[0]=(0,r.withModifiers)((()=>{}),["stop","prevent"]))},null,8,a),(0,r.createElementVNode)("span",{class:(0,r.normalizeClass)(["checkbox-custom",{indeterminate:e.indeterminate}]),tabindex:e.isDisabled?-1:0,"aria-label":e.label,"aria-checked":!!e.value,role:"checkbox"},null,10,s),e.$slots.label||e.label||e.labelKey||e.tooltipKey||e.tooltip?((0,r.openBlock)(),(0,r.createElementBlock)("span",{key:0,class:(0,r.normalizeClass)(["checkbox-label",{"checkbox-primary":e.primary}])},[(0,r.renderSlot)(e.$slots,"label",{},(()=>[e.labelKey?((0,r.openBlock)(),(0,r.createBlock)(f,{key:0,k:e.labelKey,raw:!0},null,8,["k"])):e.label?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:1},[(0,r.createTextVNode)((0,r.toDisplayString)(e.label),1)],64)):(0,r.createCommentVNode)("",!0),e.tooltipKey?(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("i",l,null,512)),[[m,e.t(e.tooltipKey)]]):e.tooltip?(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("i",c,null,512)),[[m,e.tooltip]]):(0,r.createCommentVNode)("",!0)]))],2)):(0,r.createCommentVNode)("",!0)],42,o),e.descriptionKey||e.description?((0,r.openBlock)(),(0,r.createElementBlock)("div",u,[e.descriptionKey?((0,r.openBlock)(),(0,r.createBlock)(f,{key:0,k:e.descriptionKey},null,8,["k"])):e.description?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:1},[(0,r.createTextVNode)((0,r.toDisplayString)(e.description),1)],64)):(0,r.createCommentVNode)("",!0)])):(0,r.createCommentVNode)("",!0)])}var h=n(75040),p=n(24759),f=n(66849),m=n.n(f),g=(0,r.defineComponent)({name:"Checkbox",props:{value:{type:[Boolean,Array,String],default:!1},label:{type:String,default:null},labelKey:{type:String,default:null},id:{type:String,default:String(1e3*Math.random())},disabled:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},mode:{type:String,default:h.G5},tooltip:{type:[String,Object],default:null},tooltipKey:{type:String,default:null},valueWhenTrue:{type:[Boolean,String,Number],default:!0},descriptionKey:{type:String,default:null},description:{type:String,default:null},primary:{type:Boolean,default:!1}},emits:["update:value"],computed:{isDisabled(){return this.disabled||this.mode===h.nW},isChecked(){return this.isMulti(this.value)?this.findTrueValues(this.value):this.value===this.valueWhenTrue}},methods:{clicked(e){if("A"===e.target.tagName&&e.target.href)return!0;if(e.stopPropagation(),e.preventDefault(),this.isDisabled)return;const t={bubbles:!0,cancelable:!1,shiftKey:e.shiftKey,altKey:e.altKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey},n=new CustomEvent("click",t),r=m()(this.value);this.isMulti(r)?(this.isChecked?(0,p.Gj)(r,this.valueWhenTrue):(0,p.PG)(r,this.valueWhenTrue),this.$emit("update:value",r)):this.isString(this.valueWhenTrue)?this.isChecked?this.$emit("update:value",null):this.$emit("update:value",this.valueWhenTrue):(this.$emit("update:value",!r),this.$el.dispatchEvent(n))},isMulti(e){return Array.isArray(e)},isString(e){return"string"===typeof e},findTrueValues(e){return e.find((e=>e===this.valueWhenTrue))||!1}}}),v=(n(61177),n(47433));const y=(0,v.A)(g,[["render",d]]);var b=y},8080:function(e,t,n){"use strict";n.d(t,{A:function(){return A}});var r=n(9274);const i={key:0},o={key:2,class:"required"},a=["maxlength","disabled","type","value","placeholder","data-lpignore"],s={key:2,class:"sub-label"},l={key:0},c={key:1};function u(e,t,n,u,d,h){const p=(0,r.resolveComponent)("t"),f=(0,r.resolveComponent)("TextAreaAutoGrow"),m=(0,r.resolveComponent)("LabeledTooltip"),g=(0,r.resolveDirective)("clean-html");return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)({"labeled-input":!0,focused:e.focused,[e.mode]:!0,disabled:e.isDisabled,[e.status]:e.status,suffix:e.hasSuffix,"v-popper--has-tooltip":e.hasTooltip,"compact-input":e.isCompact,hideArrows:e.hideArrows,[e.className]:!0})},[(0,r.renderSlot)(e.$slots,"label",{},(()=>[e.hasLabel?((0,r.openBlock)(),(0,r.createElementBlock)("label",i,[e.labelKey?((0,r.openBlock)(),(0,r.createBlock)(p,{key:0,k:e.labelKey},null,8,["k"])):e.label?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:1},[(0,r.createTextVNode)((0,r.toDisplayString)(e.label),1)],64)):(0,r.createCommentVNode)("",!0),e.requiredField?((0,r.openBlock)(),(0,r.createElementBlock)("span",o,"*")):(0,r.createCommentVNode)("",!0)])):(0,r.createCommentVNode)("",!0)]),!0),(0,r.renderSlot)(e.$slots,"prefix",{},void 0,!0),(0,r.renderSlot)(e.$slots,"field",{},(()=>["multiline"===e.type||"multiline-password"===e.type?((0,r.openBlock)(),(0,r.createBlock)(f,(0,r.mergeProps)({key:0,ref:"value"},e.$attrs,{maxlength:e._maxlength,disabled:e.isDisabled,value:e.value||"",placeholder:e._placeholder,autocapitalize:"off",class:{conceal:"multiline-password"===e.type},"onUpdate:value":e.onInput,onFocus:e.onFocus,onBlur:e.onBlur}),null,16,["maxlength","disabled","value","placeholder","class","onUpdate:value","onFocus","onBlur"])):((0,r.openBlock)(),(0,r.createElementBlock)("input",(0,r.mergeProps)({key:1,ref:"value",class:{"no-label":!e.hasLabel}},e.$attrs,{maxlength:e._maxlength,disabled:e.isDisabled,type:"cron"===e.type?"text":e.type,value:e.value,placeholder:e._placeholder,autocomplete:"off",autocapitalize:"off","data-lpignore":e.ignorePasswordManagers,onInput:t[0]||(t[0]=(...t)=>e.onInput&&e.onInput(...t)),onFocus:t[1]||(t[1]=(...t)=>e.onFocus&&e.onFocus(...t)),onBlur:t[2]||(t[2]=(...t)=>e.onBlur&&e.onBlur(...t)),onChange:t[3]||(t[3]=(...t)=>e.onChange&&e.onChange(...t))}),null,16,a))]),!0),(0,r.renderSlot)(e.$slots,"suffix",{},void 0,!0),e.hasTooltip&&!e.focused?((0,r.openBlock)(),(0,r.createBlock)(m,{key:0,hover:e.hoverTooltip,value:e.tooltipValue,status:e.status},null,8,["hover","value","status"])):(0,r.createCommentVNode)("",!0),e.validationMessage?((0,r.openBlock)(),(0,r.createBlock)(m,{key:1,hover:e.hoverTooltip,value:e.validationMessage},null,8,["hover","value"])):(0,r.createCommentVNode)("",!0),e.cronHint||e.subLabel?((0,r.openBlock)(),(0,r.createElementBlock)("div",s,[e.cronHint?((0,r.openBlock)(),(0,r.createElementBlock)("div",l,(0,r.toDisplayString)(e.cronHint),1)):(0,r.createCommentVNode)("",!0),e.subLabel?(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("div",c,null,512)),[[g,e.subLabel]]):(0,r.createCommentVNode)("",!0)])):(0,r.createCommentVNode)("",!0)],2)}var d=n(41664),h=n(53921),p=n(78359),f=n(44780),m=n.n(f),g=n(82432),v=n(48945),y=n(75040);const b={tooltipKey:{type:String,default:null},placeholder:{type:[String,Number],default:""},placeholderKey:{type:String,default:null},label:{type:String,default:null},labelKey:{type:String,default:null},value:{type:[String,Number,Object],default:""},mode:{type:String,default:y.G5},rules:{default:()=>[],type:Array,validator:e=>e.every((e=>["function"].includes(typeof e)))},required:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},requireDirty:{default:!0,type:Boolean}},_=((0,r.defineEmits)(["update:validation"]),(e,t)=>{const n=(0,r.ref)(e.mode===y.nW||!!`${e.value}`),i=(0,r.ref)(!1),o=(0,r.ref)(null),a=(0,r.computed)((()=>{var t;return e.required||(null===(t=e.rules)||void 0===t?void 0:t.some((e=>"required"===(null===e||void 0===e?void 0:e.name))))})),s=(0,r.computed)((()=>e.mode===y.nW)),l=(0,r.computed)((()=>e.disabled||s.value)),c=(0,r.computed)((()=>{const n=e.rules.find((e=>"required"===(null===e||void 0===e?void 0:e.name))),r=[],a=e.value;if(n&&o.value&&!i.value){const e=n(a);if(e)return t("update:validation",!1),e}for(const t of e.rules){const e=t(a);e&&"required"!==t.name&&r.push(e)}return r.length>0&&(o.value||i.value||!e.requireDirty)?(t("update:validation",!1),r.join(", ")):void t("update:validation",!0)})),u=()=>{n.value=!0,i.value=!0},d=()=>{i.value=!1,e.value||(n.value=!1),o.value=Date.now()};return{raised:n,focused:i,blurred:o,onFocusLabeled:u,onBlurLabeled:d,isDisabled:l,validationMessage:c,requiredField:a}}),w=e=>{const t=(0,r.computed)((()=>null!==e.compact&&void 0!==e.compact?!!e.compact:!(e.label||e.labelKey)));return{isCompact:t}},E={onInput(){}};var S=(0,r.defineComponent)({components:{LabeledTooltip:h.A,TextAreaAutoGrow:d.A},inheritAttrs:!1,props:{...b,type:{type:String,default:"text"},status:{type:String,default:null},subLabel:{type:String,default:null},tooltip:{default:null,type:[String,Object]},hoverTooltip:{type:Boolean,default:!0},ignorePasswordManagers:{default:!1,type:Boolean},maxlength:{type:Number,default:null},hideArrows:{type:Boolean,default:!1},delay:{type:Number,default:0},class:{type:String,default:""}},emits:["change","update:value","blur","update:validation"],setup(e,{emit:t}){const{focused:n,onFocusLabeled:i,onBlurLabeled:o,isDisabled:a,validationMessage:s,requiredField:l}=_(e,t),{isCompact:c}=w(e),u=(0,r.inject)("onInput",E.onInput);return{focused:n,onFocusLabeled:i,onBlurLabeled:o,onInput:u,isDisabled:a,validationMessage:s,requiredField:l,isCompact:c}},data(){return{updated:!1,validationErrors:""}},computed:{hasLabel(){return!this.isCompact&&(!!this.label||!!this.labelKey||!!this.$slots.label)},hasTooltip(){return!!this.tooltip||!!this.tooltipKey},tooltipValue(){if(this.hasTooltip)return this.tooltipKey?this.t(this.tooltipKey):this.tooltip},hasSuffix(){return!!this.$slots.suffix},cronHint(){if("cron"===this.type&&this.value){if(!(0,g.isValidCron)(this.value,{alias:!0,allowBlankDay:!0,allowSevenAsSunday:!0}))return this.t("generic.invalidCron");try{const e=m().toString(this.value||"",{verbose:!0});return e}catch(e){return this.t("generic.invalidCron")}}},_placeholder(){return this.placeholder?this.placeholder.toString():this.placeholderKey?this.t(this.placeholderKey):""},_maxlength(){if("text"===this.type&&this.maxlength)return this.maxlength},className(){return this.class}},created(){this.onInput=this.delay?(0,v.debounce)(this.delayInput,this.delay):this.delayInput},methods:{focus(){const e=this.$refs.value;e&&e.focus()},select(){const e=this.$refs.value;e&&e.select()},onChange(e){this.$emit("change",e)},delayInput(e){const t="string"===typeof e?e:e?.target?.value;this.$emit("update:value",t)},onFocus(){this.onFocusLabeled()},onBlur(e){this.$emit("blur",e),this.onBlurLabeled()},escapeHtml:p.ZD}}),x=(n(30990),n(3352),n(47433));const k=(0,x.A)(S,[["render",u],["__scopeId","data-v-ccd41ec4"]]);var A=k},9886:function(e,t,n){"use strict";n.d(t,{A:function(){return v}});var r=n(9274);const i=["id","disabled","name","value","checked"],o=["tabindex","aria-label","aria-checked"],a={class:"labeling"},s=["for"],l={key:1},c={key:0,class:"radio-button-outer-container-description"},u={key:1,class:"radio-button-outer-container-description"};function d(e,t,n,d,h,p){const f=(0,r.resolveComponent)("t"),m=(0,r.resolveDirective)("clean-html");return(0,r.openBlock)(),(0,r.createElementBlock)("label",{class:(0,r.normalizeClass)({disabled:e.isDisabled,"radio-container":!0}),onKeydown:[t[1]||(t[1]=(0,r.withKeys)((t=>e.clicked(t)),["enter"])),t[2]||(t[2]=(0,r.withKeys)((t=>e.clicked(t)),["space"]))],onClick:t[3]||(t[3]=(0,r.withModifiers)((t=>e.clicked(t)),["stop"]))},[(0,r.createElementVNode)("input",{id:e.randomString,disabled:e.isDisabled,name:e.name,value:""+e.val,checked:e.isChecked,type:"radio",tabindex:-1,onClick:t[0]||(t[0]=(0,r.withModifiers)((()=>{}),["stop","prevent"]))},null,8,i),(0,r.createElementVNode)("span",{ref:"custom",class:(0,r.normalizeClass)([e.isDisabled?"text-muted":"","radio-custom"]),tabindex:e.isDisabled?-1:0,"aria-label":e.label,"aria-checked":e.isChecked,role:"radio"},null,10,o),(0,r.createElementVNode)("div",a,[(0,r.createElementVNode)("label",{class:(0,r.normalizeClass)([e.muteLabel?"text-muted":"","radio-label","m-0"]),for:e.name},[e.hasLabelSlot?(0,r.renderSlot)(e.$slots,"label",{key:0}):e.label?(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("span",l,null,512)),[[m,e.label]]):(0,r.createCommentVNode)("",!0)],10,s),e.descriptionKey||e.description?((0,r.openBlock)(),(0,r.createElementBlock)("div",c,[e.descriptionKey?((0,r.openBlock)(),(0,r.createBlock)(f,{key:0,k:e.descriptionKey},null,8,["k"])):e.description?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:1},[(0,r.createTextVNode)((0,r.toDisplayString)(e.description),1)],64)):(0,r.createCommentVNode)("",!0)])):e.hasDescriptionSlot?((0,r.openBlock)(),(0,r.createElementBlock)("div",u,[(0,r.renderSlot)(e.$slots,"description")])):(0,r.createCommentVNode)("",!0)])],34)}var h=n(75040),p=n(78359),f=(0,r.defineComponent)({props:{name:{type:String,default:""},val:{required:!0,validator:()=>!0},value:{required:!0,validator:()=>!0},label:{type:String,default:""},disabled:{type:Boolean,default:!1},mode:{type:String,default:"edit"},descriptionKey:{type:String,default:null},description:{type:String,default:null}},emits:["update:value"],data(){return{isChecked:this.value===this.val,randomString:`${(0,p.vx)()}-radio`}},computed:{isDisabled(){return this.mode===h.nW||this.disabled},muteLabel(){return this.disabled&&!(this.mode===h.nW&&this.isChecked)},hasDescriptionSlot(){return!!this.$slots.description},hasLabelSlot(){return!!this.$slots.label}},watch:{value(e){this.isChecked=this.val===e,this.isChecked&&this.$refs.custom.focus()}},methods:{clicked(e){const t=e.target;this.isDisabled||t instanceof HTMLElement&&"A"===t.tagName||this.$emit("update:value",this.val)}}}),m=(n(37316),n(47433));const g=(0,m.A)(f,[["render",d]]);var v=g},77163:function(e,t,n){"use strict";n.d(t,{A:function(){return p}});var r=n(9274);const i={key:0,class:"radio-group label"},o={key:2,class:"icon icon-info icon-lg"},a={key:3,class:"icon icon-info icon-lg"};function s(e,t,n,s,l,c){const u=(0,r.resolveComponent)("t"),d=(0,r.resolveComponent)("RadioButton"),h=(0,r.resolveDirective)("clean-tooltip");return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[e.label||e.labelKey||e.tooltip||e.tooltipKey||e.$slots.label?((0,r.openBlock)(),(0,r.createElementBlock)("div",i,[(0,r.renderSlot)(e.$slots,"label",{},(()=>[(0,r.createElementVNode)("h3",null,[e.labelKey?((0,r.openBlock)(),(0,r.createBlock)(u,{key:0,k:e.labelKey},null,8,["k"])):e.label?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:1},[(0,r.createTextVNode)((0,r.toDisplayString)(e.label),1)],64)):(0,r.createCommentVNode)("",!0),e.tooltipKey?(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("i",o,null,512)),[[h,e.t(e.tooltipKey)]]):e.tooltip?(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("i",a,null,512)),[[h,e.tooltip]]):(0,r.createCommentVNode)("",!0)])]))])):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["radio-group",{row:e.row}]),tabindex:"0",onKeyup:[t[1]||(t[1]=(0,r.withKeys)((0,r.withModifiers)((t=>e.clickNext(1)),["stop"]),["down"])),t[2]||(t[2]=(0,r.withKeys)((0,r.withModifiers)((t=>e.clickNext(-1)),["stop"]),["up"]))]},[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.normalizedOptions,((n,i)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:i},[(0,r.renderSlot)(e.$slots,i,{vBind:e.$attrs,option:n,isDisabled:e.isDisabled},(()=>[(0,r.createVNode)(d,{name:e.name,value:e.value,label:n.label,description:n.description,val:n.value,disabled:e.isDisabled,mode:e.mode,"onUpdate:value":t[0]||(t[0]=t=>e.$emit("update:value",t))},null,8,["name","value","label","description","val","disabled","mode"])]))])))),128))],34)])}var l=n(75040),c=n(9886),u=(0,r.defineComponent)({components:{RadioButton:c.A},props:{name:{type:String,required:!0},options:{type:Array,required:!0},labels:{type:Array,default:null},value:{type:[Boolean,String,Object],default:null},disabled:{type:Boolean,default:!1},mode:{type:String,default:"edit"},label:{type:String,default:null},labelKey:{type:String,default:null},tooltip:{type:[String,Object],default:null},tooltipKey:{type:String,default:null},row:{type:Boolean,default:!1}},emits:["update:value"],computed:{normalizedOptions(){const e=[];for(let t=0;te.value===this.value));let r=(n?t.indexOf(n):-1)+e;r>=t.length?r=t.length-1:r<0&&(r=0),this.$emit("update:value",t[r].value)}}}),d=(n(91784),n(47433));const h=(0,d.A)(u,[["render",s]]);var p=h},41664:function(e,t,n){"use strict";n.d(t,{A:function(){return h}});var r=n(9274);const i=["value","data-testid","disabled","placeholder","spellcheck"];function o(e,t,n,o,a,s){return(0,r.openBlock)(),(0,r.createElementBlock)("textarea",(0,r.mergeProps)({ref:"ta",value:e.value,"data-testid":e.$attrs["data-testid"]?e.$attrs["data-testid"]:"text-area-auto-grow",disabled:e.isDisabled,style:e.style,placeholder:e.placeholder,class:[e.className,"no-resize no-ease"]},e.$attrs,{spellcheck:e.spellcheck,onPaste:t[0]||(t[0]=t=>e.$emit("paste",t)),onInput:t[1]||(t[1]=t=>e.onInput(t)),onFocus:t[2]||(t[2]=t=>e.$emit("focus",t)),onBlur:t[3]||(t[3]=t=>e.$emit("blur",t))}),null,16,i)}var a=n(48945),s=n(75040);const l={queueResize(){}};var c=(0,r.defineComponent)({inheritAttrs:!1,props:{value:{type:String,required:!0},class:{type:[String,Array,Object],default:""},mode:{type:String,default:s.G5},minHeight:{type:Number,default:25},maxHeight:{type:Number,default:200},placeholder:{type:String,default:""},spellcheck:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1}},emits:["update:value","paste","focus","blur"],setup(){const e=(0,r.inject)("queueResize",l.queueResize);return{queueResize:e}},data(){return{curHeight:this.minHeight,overflow:"hidden"}},computed:{isDisabled(){return this.disabled||this.mode===s.nW},style(){return`height: ${this.curHeight}px; overflow: ${this.overflow};`},className(){return this.class}},watch:{$attrs:{deep:!0,handler(){this.queueResize()}}},created(){this.queueResize=(0,a.debounce)(this.autoSize,100)},mounted(){this.$refs.ta.style.height=`${this.curHeight}px`,this.$nextTick((()=>{this.autoSize()}))},methods:{onInput(e){var t;const n=null===(t=null===e||void 0===e?void 0:e.target)||void 0===t?void 0:t.value;this.$emit("update:value",n),this.queueResize()},focus(){var e;(null===(e=this.$refs)||void 0===e?void 0:e.ta).focus()},autoSize(){const e=this.$refs.ta;if(!e)return;e.style.height="1px";const t=parseInt(getComputedStyle(e).getPropertyValue("borderTopWidth"),10)||0+parseInt(getComputedStyle(e).getPropertyValue("borderBottomWidth"),10)||0,n=Math.max(this.minHeight,Math.min(e.scrollHeight+t,this.maxHeight));e.style.overflowY=e.scrollHeight>n?"auto":"hidden",e.style.height=`${n}px`,this.curHeight=n}}}),u=n(47433);const d=(0,u.A)(c,[["render",o]]);var h=d},53921:function(e,t,n){"use strict";n.d(t,{A:function(){return d}});var r=n(9274);const i={key:0,class:"tooltip","x-placement":"bottom"},o=(0,r.createElementVNode)("div",{class:"tooltip-arrow"},null,-1),a={class:"tooltip-inner"};function s(e,t,n,s,l,c){const u=(0,r.resolveDirective)("clean-tooltip");return(0,r.openBlock)(),(0,r.createElementBlock)("div",{ref:"container",class:(0,r.normalizeClass)(["labeled-tooltip",{[e.status]:!0,hoverable:e.hover}])},[e.hover?(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("i",{key:0,class:(0,r.normalizeClass)([{hover:!e.value,[e.iconClass]:!0},"icon status-icon"])},null,2)),[[u,e.isObject(e.value)?{content:e.value.content,popperClass:[`tooltip-${e.status}`],...e.value}:e.value]]):((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:1},[(0,r.createElementVNode)("i",{class:(0,r.normalizeClass)([{hover:!e.value},"icon status-icon"])},null,2),e.value?((0,r.openBlock)(),(0,r.createElementBlock)("div",i,[o,(0,r.createElementVNode)("div",a,(0,r.toDisplayString)(e.value),1)])):(0,r.createCommentVNode)("",!0)],64))],2)}var l=(0,r.defineComponent)({props:{value:{type:[String,Object],default:null},status:{type:String,default:"error"},hover:{type:Boolean,default:!0}},computed:{iconClass(){return"error"===this.status?"icon-warning":"icon-info"}},methods:{isObject(e){return"object"===typeof e&&null!==e&&!!e.content}}}),c=(n(8636),n(47433));const u=(0,c.A)(l,[["render",s]]);var d=u},49826:function(e,t,n){"use strict";n.d(t,{A:function(){return C}});var r=n(9274);const i={key:0},o=["disabled","data-testid","onClick"],a={key:0,class:"no-actions"};function s(e,t,n,s,l,c){const u=(0,r.resolveComponent)("IconOrSvg"),d=(0,r.resolveDirective)("clean-html"),h=(0,r.resolveDirective)("t");return c.showing||n.open?((0,r.openBlock)(),(0,r.createElementBlock)("div",i,[(0,r.createElementVNode)("div",{class:"background",onClick:t[0]||(t[0]=(...e)=>c.hide&&c.hide(...e)),onContextmenu:t[1]||(t[1]=(0,r.withModifiers)((()=>{}),["prevent"]))},null,32),(0,r.createElementVNode)("ul",{class:"list-unstyled menu",style:(0,r.normalizeStyle)(l.style)},[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(c.menuOptions,((e,t)=>((0,r.openBlock)(),(0,r.createElementBlock)("li",{key:t,disabled:!!e.disabled||null,class:(0,r.normalizeClass)({divider:e.divider}),"data-testid":n.componentTestid+"-"+t+"-item",onClick:t=>c.execute(e,t)},[e.icon||e.svg?((0,r.openBlock)(),(0,r.createBlock)(u,{key:0,icon:e.icon,src:e.svg,class:"icon",color:"header"},null,8,["icon","src"])):(0,r.createCommentVNode)("",!0),(0,r.withDirectives)((0,r.createElementVNode)("span",null,null,512),[[d,e.label]])],10,o)))),128)),c.hasOptions(c.menuOptions)?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("li",a,[(0,r.withDirectives)((0,r.createElementVNode)("span",null,null,512),[[h,"sortableTable.noActions"]])]))],4)])):(0,r.createCommentVNode)("",!0)}var l=n(25443),c=n(83381),u=n(82709);const d=["src"],h={key:2,class:"icon icon-extension"};function p(e,t,n,i,o,a){return n.src?((0,r.openBlock)(),(0,r.createElementBlock)("img",{key:0,src:n.src,class:(0,r.normalizeClass)(["svg-icon",o.className])},null,10,d)):n.icon?((0,r.openBlock)(),(0,r.createElementBlock)("i",{key:1,class:(0,r.normalizeClass)(["icon group-icon",n.icon])},null,2)):((0,r.openBlock)(),(0,r.createElementBlock)("i",h))}class f{constructor(e,t,n){this.set(e,t,n)}toString(){return`rgb(${Math.round(this.r)}, ${Math.round(this.g)}, ${Math.round(this.b)})`}set(e,t,n){this.r=this.clamp(e),this.g=this.clamp(t),this.b=this.clamp(n)}hueRotate(e=0){e=e/180*Math.PI;const t=Math.sin(e),n=Math.cos(e);this.multiply([.213+.787*n-.213*t,.715-.715*n-.715*t,.072-.072*n+.928*t,.213-.213*n+.143*t,.715+.285*n+.14*t,.072-.072*n-.283*t,.213-.213*n-.787*t,.715-.715*n+.715*t,.072+.928*n+.072*t])}grayscale(e=1){this.multiply([.2126+.7874*(1-e),.7152-.7152*(1-e),.0722-.0722*(1-e),.2126-.2126*(1-e),.7152+.2848*(1-e),.0722-.0722*(1-e),.2126-.2126*(1-e),.7152-.7152*(1-e),.0722+.9278*(1-e)])}sepia(e=1){this.multiply([.393+.607*(1-e),.769-.769*(1-e),.189-.189*(1-e),.349-.349*(1-e),.686+.314*(1-e),.168-.168*(1-e),.272-.272*(1-e),.534-.534*(1-e),.131+.869*(1-e)])}saturate(e=1){this.multiply([.213+.787*e,.715-.715*e,.072-.072*e,.213-.213*e,.715+.285*e,.072-.072*e,.213-.213*e,.715-.715*e,.072+.928*e])}multiply(e){const t=this.clamp(this.r*e[0]+this.g*e[1]+this.b*e[2]),n=this.clamp(this.r*e[3]+this.g*e[4]+this.b*e[5]),r=this.clamp(this.r*e[6]+this.g*e[7]+this.b*e[8]);this.r=t,this.g=n,this.b=r}brightness(e=1){this.linear(e)}contrast(e=1){this.linear(e,-.5*e+.5)}linear(e=1,t=0){this.r=this.clamp(this.r*e+255*t),this.g=this.clamp(this.g*e+255*t),this.b=this.clamp(this.b*e+255*t)}invert(e=1){this.r=this.clamp(255*(e+this.r/255*(1-2*e))),this.g=this.clamp(255*(e+this.g/255*(1-2*e))),this.b=this.clamp(255*(e+this.b/255*(1-2*e)))}hsl(){const e=this.r/255,t=this.g/255,n=this.b/255,r=Math.max(e,t,n),i=Math.min(e,t,n),o=(r+i)/2;let a=o,s=o;if(r===i)a=s=0;else{const l=r-i;switch(s=o>.5?l/(2-r-i):l/(r+i),r){case e:a=(t-n)/l+(t255?e=255:e<0&&(e=0),e}}class m{constructor(e){this.target=new f(e.r,e.g,e.b),this.targetHSL=this.target.hsl(),this.reusedColor=new f(0,0,0)}solve(){const e=this.solveNarrow(this.solveWide());return{values:e.values,loss:e.loss,filter:this.css(e.values)}}solveWide(){const e=5,t=15,n=[60,180,18e3,600,1.2,1.2];let r={loss:1/0};for(let i=0;r.loss>25&&i<3;i++){const i=[50,20,3750,50,100,100],o=this.spsa(e,n,t,i,1e3);o.loss.5?1:-1,u[e]=r[e]+i*c[e],d[e]=r[e]-i*c[e];const f=this.loss(u)-this.loss(d);for(let n=0;n<6;n++){const a=f/(2*i)*c[n],s=t[n]/Math.pow(e+p+1,o);r[n]=h(r[n]-s*a,n)}const m=this.loss(r);mn?e%=n:e<0&&(e=n+e%n):e<0?e=0:e>n&&(e=n),e}}loss(e){const t=this.reusedColor;t.set(0,0,0),t.invert(e[0]/100),t.sepia(e[1]/100),t.saturate(e[2]/100),t.hueRotate(3.6*e[3]),t.brightness(e[4]/100),t.contrast(e[5]/100);const n=t.hsl();return Math.abs(t.r-this.target.r)+Math.abs(t.g-this.target.g)+Math.abs(t.b-this.target.b)+Math.abs(n.h-this.targetHSL.h)+Math.abs(n.s-this.targetHSL.s)+Math.abs(n.l-this.targetHSL.l)}css(e){function t(t,n=1){return Math.round(e[t]*n)}return`filter: invert(${t(0)}%) sepia(${t(1)}%) saturate(${t(2)}%) hue-rotate(${t(3,3.6)}deg) brightness(${t(4)}%) contrast(${t(5)}%);`}}var g=n(96351);const v={},y={},b={header:{color:"--header-btn-text",hover:"--header-btn-text-hover"},primary:{color:"--link",hover:"--primary-hover-text"}};var _={name:"IconOrSvg",props:{src:{type:String,default:()=>{}},icon:{type:String,default:()=>{}},color:{type:String,default:()=>"primary"}},data(){return{className:""}},created(){this.src&&this.setColor()},methods:{setColor(){const e=this.$store.getters["prefs/theme"];let t,n;for(let l=0;l img.${s} {\n ${e};\n }\n li:hover > img.${s} {\n ${e};\n }\n a.option:hover > img.${s} {\n ${e};\n } `,l=document.createElement("style");l.innerText=a,document.head.appendChild(l),y[s]=!0}this["className"]=s}}},w=(n(44568),n(47433));const E=(0,w.A)(_,[["render",p],["__scopeId","data-v-036e8898"]]);var S=E;const x="hide",k="calculate",A="show";var N={name:"ActionMenu",emits:["close"],components:{IconOrSvg:S},props:{customActions:{type:Array,default:()=>[]},open:{type:Boolean,default:!1},useCustomTargetElement:{type:Boolean,default:!1},customTargetElement:{type:HTMLElement,default:null},customTargetEvent:{type:[PointerEvent,MouseEvent],default:null},componentTestid:{type:String,default:"action-menu"}},data(){return{phase:x,style:{}}},computed:{...(0,l.L8)({targetElem:"action-menu/elem",targetEvent:"action-menu/event",shouldShow:"action-menu/showing",options:"action-menu/options"}),showing(){return this.phase!==x},menuOptions(){return this.customActions.length>0?this.customActions:this.options}},watch:{shouldShow:{handler(e){e?(this.phase=k,this.updateStyle(),this.$nextTick((()=>{this.phase===k&&(this.phase=A,this.updateStyle())}))):this.phase=x}},open(){this.updateStyle()},"$route.path"(e,t){this.hide()}},methods:{hide(){this.useCustomTargetElement?this.$emit("close"):this.$store.commit("action-menu/hide")},updateStyle(){if(this.phase===A&&!this.useCustomTargetElement){const e=this.$el?.querySelector&&this.$el.querySelector(".menu"),t=this.targetEvent,n=this.targetElem;return this.style=(0,c.Tb)(e,n||t,{overlapX:!0,fudgeX:n?-2:0,fudgeY:n?20:0,positionX:n?c.Q8:c.Q7,positionY:c.Q8}),void(this.style.visibility="visible")}if(this.open&&this.useCustomTargetElement){const e=this.$el?.querySelector&&this.$el.querySelector(".menu"),t=this.customTargetElement;return this.style=(0,c.Tb)(e,t,{overlapX:!0,fudgeX:t?4:0,fudgeY:t?4:0,positionX:t?c.Q8:c.Q7,positionY:c.Q8},!0),void(this.style.visibility="visible")}this.style={}},execute(e,t,n){if(!e.disabled){if(e.invoke){const n=e.invoke;if(n&&e.enabled){const r=this.$store.getters["action-menu/resources"],i={event:t,action:e,isAlt:(0,u.nN)(t)};1===r.length&&n.apply(this,[i,r])}}else if(this.useCustomTargetElement)this.$emit(e.action,{action:e,event:t,...n,route:this.$route});else{const r={alt:(0,u.nN)(t)};this.$store.dispatch("action-menu/execute",{action:e,args:n,opts:r})}this.hide()}},hasOptions(e){return void 0!==e.length?e.length:Object.keys(e).length>0}}};n(50512);const T=(0,w.A)(N,[["render",s],["__scopeId","data-v-58ad4c56"]]);var C=T},70876:function(e,t,n){"use strict";n.d(t,{A:function(){return c}});var r=n(9274);const i=["data-modal"];function o(e,t,n,o,a,s){return(0,r.openBlock)(),(0,r.createBlock)(r.Teleport,{to:"#modals"},[(0,r.createVNode)(r.Transition,{name:"modal-fade",appear:""},{default:(0,r.withCtx)((()=>[(0,r.createElementVNode)("div",{class:"modal-overlay","data-modal":e.name,onClick:t[1]||(t[1]=(...t)=>e.handleClickOutside&&e.handleClickOutside(...t))},[(0,r.createElementVNode)("div",(0,r.mergeProps)(e.$attrs,{ref:"modalRef",class:[e.customClass,"modal-container"],style:e.modalStyles,onClick:t[0]||(t[0]=(0,r.withModifiers)((()=>{}),["stop"]))}),[(0,r.renderSlot)(e.$slots,"default")],16)],8,i)])),_:3})])}var a=(0,r.defineComponent)({name:"AppModal",emits:["close"],inheritAttrs:!1,props:{clickToClose:{type:Boolean,default:!0},width:{type:[Number,String],default:600,validator(e){return"number"===typeof e?e>0:"string"===typeof e&&/^(0*(?:[1-9][0-9]*|0)\.?\d*)+(px|%)$/.test(e)}},customClass:{type:String,default:""},styles:{type:String,default:""},name:{type:String,default:""}},computed:{modalWidth(){if(this.isValidWidth(this.width)){const e="number"===typeof this.width?"px":"";return`${this.width}${e}`}return"600px"},stylesPropToObj(){return this.styles.split(";").map((e=>e.trim().split(":"))).reduce(((e,[t,n])=>({...e,[t]:n})),{})},modalStyles(){return{width:this.modalWidth,...this.stylesPropToObj}}},mounted(){document.addEventListener("keydown",this.handleEscapeKey)},beforeUnmount(){document.removeEventListener("keydown",this.handleEscapeKey)},methods:{handleClickOutside(e){this.clickToClose&&this.$refs.modalRef&&!this.$refs.modalRef.contains(e.target)&&this.$emit("close")},handleEscapeKey(e){this.clickToClose&&"Escape"===e.key&&this.$emit("close")},isValidWidth(e){return"number"===typeof e?e>0:"string"===typeof e&&/^(0*(?:[1-9][0-9]*|0)\.?\d*)+(px|%)$/.test(e)}}}),s=(n(36436),n(47433));const l=(0,s.A)(a,[["render",o]]);var c=l},1804:function(e,t,n){"use strict";n.d(t,{R:function(){return c},A:function(){return g}});var r=n(9274);const i=["name","type","disabled","tab-index","data-testid"],o={key:0},a={key:2};function s(e,t,n,s,l,c){const u=(0,r.resolveDirective)("clean-tooltip"),d=(0,r.resolveDirective)("clean-html");return(0,r.openBlock)(),(0,r.createElementBlock)("button",{ref:"btn",class:(0,r.normalizeClass)(e.classes),name:e.name,type:e.type,disabled:e.isDisabled,"tab-index":e.tabIndex,"data-testid":e.componentTestid+"-async-button",onClick:t[0]||(t[0]=(...t)=>e.clicked&&e.clicked(...t))},["manual-refresh"===e.mode?((0,r.openBlock)(),(0,r.createElementBlock)("span",o,(0,r.toDisplayString)(e.t("action.refresh")),1)):(0,r.createCommentVNode)("",!0),e.displayIcon?(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("i",{key:1,class:(0,r.normalizeClass)({icon:!0,"icon-lg":!0,[e.displayIcon]:!0})},null,2)),[[u,e.tooltip]]):(0,r.createCommentVNode)("",!0),"text"===e.labelAs&&e.displayLabel?(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("span",a,null,512)),[[u,e.tooltip],[d,e.displayLabel]]):(0,r.createCommentVNode)("",!0)],10,i)}var l=n(6344);const c={ACTION:"action",WAITING:"waiting",SUCCESS:"success",ERROR:"error"},u="text",d="tooltip",h={timer:void 0};var p=(0,r.defineComponent)({props:{mode:{type:String,default:"edit"},delay:{type:Number,default:5e3},name:{type:String,default:null},disabled:{type:Boolean,default:!1},type:{type:String,default:"button"},tabIndex:{type:Number,default:null},actionColor:{type:String,default:"role-primary"},waitingColor:{type:String,default:"bg-primary"},successColor:{type:String,default:"bg-success"},errorColor:{type:String,default:"bg-error"},actionLabel:{type:String,default:null},waitingLabel:{type:String,default:null},successLabel:{type:String,default:null},errorLabel:{type:String,default:null},icon:{type:String,default:null},labelAs:{type:String,default:u},size:{type:String,default:""},currentPhase:{type:String,default:c.ACTION},componentTestid:{type:String,default:"action-button"},manual:{type:Boolean,default:!1}},setup(){const e=(0,r.inject)("timer",h.timer);return{timer:e}},emits:["click"],data(){return{phase:this.currentPhase}},watch:{currentPhase(e){this.phase=e}},computed:{classes(){const e=`${this.phase}Color`,t=l.A.memberOfComponent(this,e),n={btn:!0,[t]:!0};return this.size&&(n[`btn-${this.size}`]=!0),n},displayIcon(){const e=this.$store.getters["i18n/exists"],t=this.$store.getters["i18n/t"],n=`asyncButton.${this.mode}.${this.phase}Icon`,r=`asyncButton.default.${this.phase}Icon`;let i="";return this.icon?i=this.icon:e(n)?i=`icon-${t(n)}`:e(r)&&(i=`icon-${t(r)}`),this.isSpinning&&(i||(i="icon-spinner"),i+=" icon-spin"),i},displayLabel(){const e=l.A.memberOfComponent(this,`${this.phase}Label`),t=this.$store.getters["i18n/exists"],n=this.$store.getters["i18n/t"],r=`asyncButton.${this.mode}.${this.phase}`,i=`asyncButton.default.${this.phase}`;return e||(t(r)?n(r):t(i)?n(i):"")},isSpinning(){return this.phase===c.WAITING},isDisabled(){return this.disabled||this.phase===c.WAITING},tooltip(){return this.labelAs===d?{content:this.displayLabel,hideOnTargetClick:!1}:null}},beforeUnmount(){this.timer&&clearTimeout(this.timer)},methods:{clicked(){if(this.isDisabled)return;this.timer&&clearTimeout(this.timer),this.manual||(this.phase=c.WAITING);const e=e=>{this.done(e)};this.$emit("click",e)},done(e){"cancelled"===e?this.phase=c.ACTION:(this.phase=e?c.SUCCESS:c.ERROR,this.timer=setTimeout((()=>{this.timerDone()}),this.delay))},timerDone(){this.phase!==c.SUCCESS&&this.phase!==c.ERROR||(this.phase=c.ACTION)},focus(){this.$refs.btn.focus()}}}),f=(n(13059),n(47433));const m=(0,f.A)(p,[["render",s],["__scopeId","data-v-11cbd15e"]]);var g=m},82162:function(e,t,n){"use strict";n.d(t,{A:function(){return ut}});var r=n(9274);const i=["onClick"];function o(e,t,n,o,a,s){const l=(0,r.resolveComponent)("v-select");return(0,r.openBlock)(),(0,r.createBlock)(l,(0,r.mergeProps)({ref:"button-dropdown",class:["button-dropdown btn",{disabled:n.disabled,focused:a.focused}]},e.$attrs,{"append-to-body":!0,"calculate-position":s.withPopper,searchable:!1,clearable:!1,"close-on-select":n.closeOnSelect,filterable:!1,modelValue:n.buttonLabel,options:n.dropdownOptions,"map-keydown":e.mappedKeys,"get-option-key":e=>n.optionKey?s.get(e,n.optionKey):s.getOptionLabel(e),"get-option-label":e=>s.getOptionLabel(e),selectable:n.selectable,"onSearch:blur":s.onBlur,"onSearch:focus":s.onFocus,"onUpdate:modelValue":t[1]||(t[1]=t=>e.$emit("click-action",t))}),(0,r.createSlots)({"no-options":(0,r.withCtx)((()=>[(0,r.renderSlot)(e.$slots,"no-options",{},void 0,!0)])),"selected-option":(0,r.withCtx)((e=>[(0,r.createElementVNode)("button",{tabindex:"-1",type:"button",class:"dropdown-button-two btn","data-testid":"dropdown-button",onClick:t=>s.ddButtonAction(e),onFocus:t[0]||(t[0]=(...e)=>s.focusSearch&&s.focusSearch(...e))},(0,r.toDisplayString)(e.label),41,i)])),_:2},[(0,r.renderList)(e.$slots,((t,n)=>({name:n,fn:(0,r.withCtx)((t=>["selected-option"!==n&&"function"===typeof e.$slots[n]?(0,r.renderSlot)(e.$slots,n,(0,r.normalizeProps)((0,r.mergeProps)({key:0},t)),void 0,!0):(0,r.createCommentVNode)("",!0)]))})))]),1040,["class","calculate-position","close-on-select","modelValue","options","map-keydown","get-option-key","get-option-label","selectable","onSearch:blur","onSearch:focus"])}function a(e){var t=e.getBoundingClientRect();return{width:t.width,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left,x:t.left,y:t.top}}function s(e){if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t?t.defaultView:window}return e}function l(e){var t=s(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function c(e){var t=s(e).Element;return e instanceof t||e instanceof Element}function u(e){var t=s(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function d(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function h(e){return e!==s(e)&&u(e)?d(e):l(e)}function p(e){return e?(e.nodeName||"").toLowerCase():null}function f(e){return(c(e)?e.ownerDocument:e.document).documentElement}function m(e){return a(f(e)).left+l(e).scrollLeft}function g(e){return s(e).getComputedStyle(e)}function v(e){var t=g(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function y(e,t,n){void 0===n&&(n=!1);var r=f(t),i=a(e),o=u(t),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(o||!o&&!n)&&(("body"!==p(t)||v(r))&&(s=h(t)),u(t)?(l=a(t),l.x+=t.clientLeft,l.y+=t.clientTop):r&&(l.x=m(r))),{x:i.left+s.scrollLeft-l.x,y:i.top+s.scrollTop-l.y,width:i.width,height:i.height}}function b(e){return{x:e.offsetLeft,y:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}}function _(e){return"html"===p(e)?e:e.assignedSlot||e.parentNode||e.host||f(e)}function w(e){return["html","body","#document"].indexOf(p(e))>=0?e.ownerDocument.body:u(e)&&v(e)?e:w(_(e))}function E(e,t){void 0===t&&(t=[]);var n=w(e),r="body"===p(n),i=s(n),o=r?[i].concat(i.visualViewport||[],v(n)?n:[]):n,a=t.concat(o);return r?a:a.concat(E(_(o)))}function S(e){return["table","td","th"].indexOf(p(e))>=0}function x(e){if(!u(e)||"fixed"===g(e).position)return null;var t=e.offsetParent;if(t){var n=f(t);if("body"===p(t)&&"static"===g(t).position&&"static"!==g(n).position)return n}return t}function k(e){var t=_(e);while(u(t)&&["html","body"].indexOf(p(t))<0){var n=g(t);if("none"!==n.transform||"none"!==n.perspective||n.willChange&&"auto"!==n.willChange)return t;t=t.parentNode}return null}function A(e){var t=s(e),n=x(e);while(n&&S(n)&&"static"===g(n).position)n=x(n);return n&&"body"===p(n)&&"static"===g(n).position?t:n||k(e)||t}var N="top",T="bottom",C="right",R="left",O="auto",I=[N,T,C,R],D="start",L="end",P="clippingParents",M="viewport",F="popper",B="reference",$=I.reduce((function(e,t){return e.concat([t+"-"+D,t+"-"+L])}),[]),j=[].concat(I,[O]).reduce((function(e,t){return e.concat([t,t+"-"+D,t+"-"+L])}),[]),U="beforeRead",V="read",K="afterRead",H="beforeMain",G="main",z="afterMain",X="beforeWrite",q="write",W="afterWrite",Y=[U,V,K,H,G,z,X,q,W];function Q(e){var t=new Map,n=new Set,r=[];function i(e){n.add(e.name);var o=[].concat(e.requires||[],e.requiresIfExists||[]);o.forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||i(e)})),r}function J(e){var t=Q(e);return Y.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}function Z(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}function ee(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign(Object.assign(Object.assign({},n),t),{},{options:Object.assign(Object.assign({},n.options),t.options),data:Object.assign(Object.assign({},n.data),t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}var te={placement:"bottom",modifiers:[],strategy:"absolute"};function ne(){for(var e=arguments.length,t=new Array(e),n=0;n=0?"x":"y"}function ue(e){var t,n=e.reference,r=e.element,i=e.placement,o=i?se(i):null,a=i?le(i):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(o){case N:t={x:s,y:n.y-r.height};break;case T:t={x:s,y:n.y+n.height};break;case C:t={x:n.x+n.width,y:l};break;case R:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var c=o?ce(o):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case D:t[c]=Math.floor(t[c])-Math.floor(n[u]/2-r[u]/2);break;case L:t[c]=Math.floor(t[c])+Math.ceil(n[u]/2-r[u]/2);break;default:}}return t}function de(e){var t=e.state,n=e.name;t.modifiersData[n]=ue({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var he={name:"popperOffsets",enabled:!0,phase:"read",fn:de,data:{}},pe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function fe(e){var t=e.x,n=e.y,r=window,i=r.devicePixelRatio||1;return{x:Math.round(t*i)/i||0,y:Math.round(n*i)/i||0}}function me(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,u=fe(o),d=u.x,h=u.y,p=o.hasOwnProperty("x"),m=o.hasOwnProperty("y"),g=R,v=N,y=window;if(c){var b=A(n);b===s(n)&&(b=f(n)),i===N&&(v=T,h-=b.clientHeight-r.height,h*=l?1:-1),i===R&&(g=C,d-=b.clientWidth-r.width,d*=l?1:-1)}var _,w=Object.assign({position:a},c&&pe);return l?Object.assign(Object.assign({},w),{},(_={},_[v]=m?"0":"",_[g]=p?"0":"",_.transform=(y.devicePixelRatio||1)<2?"translate("+d+"px, "+h+"px)":"translate3d("+d+"px, "+h+"px, 0)",_)):Object.assign(Object.assign({},w),{},(t={},t[v]=m?h+"px":"",t[g]=p?d+"px":"",t.transform="",t))}function ge(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=void 0===r||r,o=n.adaptive,a=void 0===o||o,s={placement:se(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign(Object.assign({},t.styles.popper),me(Object.assign(Object.assign({},s),{},{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign(Object.assign({},t.styles.arrow),me(Object.assign(Object.assign({},s),{},{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1})))),t.attributes.popper=Object.assign(Object.assign({},t.attributes.popper),{},{"data-popper-placement":t.placement})}var ve={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:ge,data:{}};function ye(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];u(i)&&p(i)&&(Object.assign(i.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})))}))}function be(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],i=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]),a=o.reduce((function(e,t){return e[t]="",e}),{});u(r)&&p(r)&&(Object.assign(r.style,a),Object.keys(i).forEach((function(e){r.removeAttribute(e)})))}))}}var _e={name:"applyStyles",enabled:!0,phase:"write",fn:ye,effect:be,requires:["computeStyles"]};function we(e,t,n){var r=se(e),i=[R,N].indexOf(r)>=0?-1:1,o="function"===typeof n?n(Object.assign(Object.assign({},t),{},{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[R,C].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function Ee(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=void 0===i?[0,0]:i,a=j.reduce((function(e,n){return e[n]=we(n,t.rects,o),e}),{}),s=a[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}var Se={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Ee},xe={left:"right",right:"left",bottom:"top",top:"bottom"};function ke(e){return e.replace(/left|right|bottom|top/g,(function(e){return xe[e]}))}var Ae={start:"end",end:"start"};function Ne(e){return e.replace(/start|end/g,(function(e){return Ae[e]}))}function Te(e){var t=s(e),n=f(e),r=t.visualViewport,i=n.clientWidth,o=n.clientHeight,a=0,l=0;return r&&(i=r.width,o=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,l=r.offsetTop)),{width:i,height:o,x:a+m(e),y:l}}function Ce(e){var t=f(e),n=l(e),r=e.ownerDocument.body,i=Math.max(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),o=Math.max(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-n.scrollLeft+m(e),s=-n.scrollTop;return"rtl"===g(r||t).direction&&(a+=Math.max(t.clientWidth,r?r.clientWidth:0)-i),{width:i,height:o,x:a,y:s}}function Re(e,t){var n=Boolean(t.getRootNode&&t.getRootNode().host);if(e.contains(t))return!0;if(n){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Oe(e){return Object.assign(Object.assign({},e),{},{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ie(e){var t=a(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function De(e,t){return t===M?Oe(Te(e)):u(t)?Ie(t):Oe(Ce(f(e)))}function Le(e){var t=E(_(e)),n=["absolute","fixed"].indexOf(g(e).position)>=0,r=n&&u(e)?A(e):e;return c(r)?t.filter((function(e){return c(e)&&Re(e,r)&&"body"!==p(e)})):[]}function Pe(e,t,n){var r="clippingParents"===t?Le(e):[].concat(t),i=[].concat(r,[n]),o=i[0],a=i.reduce((function(t,n){var r=De(e,n);return t.top=Math.max(r.top,t.top),t.right=Math.min(r.right,t.right),t.bottom=Math.min(r.bottom,t.bottom),t.left=Math.max(r.left,t.left),t}),De(e,o));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Me(){return{top:0,right:0,bottom:0,left:0}}function Fe(e){return Object.assign(Object.assign({},Me()),e)}function Be(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function $e(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=void 0===r?e.placement:r,o=n.boundary,s=void 0===o?P:o,l=n.rootBoundary,u=void 0===l?M:l,d=n.elementContext,h=void 0===d?F:d,p=n.altBoundary,m=void 0!==p&&p,g=n.padding,v=void 0===g?0:g,y=Fe("number"!==typeof v?v:Be(v,I)),b=h===F?B:F,_=e.elements.reference,w=e.rects.popper,E=e.elements[m?b:h],S=Pe(c(E)?E:E.contextElement||f(e.elements.popper),s,u),x=a(_),k=ue({reference:x,element:w,strategy:"absolute",placement:i}),A=Oe(Object.assign(Object.assign({},w),k)),R=h===F?A:x,O={top:S.top-R.top+y.top,bottom:R.bottom-S.bottom+y.bottom,left:S.left-R.left+y.left,right:R.right-S.right+y.right},D=e.modifiersData.offset;if(h===F&&D){var L=D[i];Object.keys(O).forEach((function(e){var t=[C,T].indexOf(e)>=0?1:-1,n=[N,T].indexOf(e)>=0?"y":"x";O[e]+=L[n]*t}))}return O}function je(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?j:l,u=le(r),d=u?s?$:$.filter((function(e){return le(e)===u})):I,h=d.filter((function(e){return c.indexOf(e)>=0}));0===h.length&&(h=d);var p=h.reduce((function(t,n){return t[n]=$e(e,{placement:n,boundary:i,rootBoundary:o,padding:a})[se(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}function Ue(e){if(se(e)===O)return[];var t=ke(e);return[Ne(e),t,Ne(t)]}function Ve(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0===a||a,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,h=n.altBoundary,p=n.flipVariations,f=void 0===p||p,m=n.allowedAutoPlacements,g=t.options.placement,v=se(g),y=v===g,b=l||(y||!f?[ke(g)]:Ue(g)),_=[g].concat(b).reduce((function(e,n){return e.concat(se(n)===O?je(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:f,allowedAutoPlacements:m}):n)}),[]),w=t.rects.reference,E=t.rects.popper,S=new Map,x=!0,k=_[0],A=0;A<_.length;A++){var I=_[A],L=se(I),P=le(I)===D,M=[N,T].indexOf(L)>=0,F=M?"width":"height",B=$e(t,{placement:I,boundary:u,rootBoundary:d,altBoundary:h,padding:c}),$=M?P?C:R:P?T:N;w[F]>E[F]&&($=ke($));var j=ke($),U=[];if(o&&U.push(B[L]<=0),s&&U.push(B[$]<=0,B[j]<=0),U.every((function(e){return e}))){k=I,x=!1;break}S.set(I,U)}if(x)for(var V=f?3:1,K=function(e){var t=_.find((function(t){var n=S.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return k=t,"break"},H=V;H>0;H--){var G=K(H);if("break"===G)break}t.placement!==k&&(t.modifiersData[r]._skip=!0,t.placement=k,t.reset=!0)}}var Ke={name:"flip",enabled:!0,phase:"main",fn:Ve,requiresIfExists:["offset"],data:{_skip:!1}};function He(e){return"x"===e?"y":"x"}function Ge(e,t,n){return Math.max(e,Math.min(t,n))}function ze(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0!==a&&a,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,h=n.tether,p=void 0===h||h,f=n.tetherOffset,m=void 0===f?0:f,g=$e(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),v=se(t.placement),y=le(t.placement),_=!y,w=ce(v),E=He(w),S=t.modifiersData.popperOffsets,x=t.rects.reference,k=t.rects.popper,O="function"===typeof m?m(Object.assign(Object.assign({},t.rects),{},{placement:t.placement})):m,I={x:0,y:0};if(S){if(o){var L="y"===w?N:R,P="y"===w?T:C,M="y"===w?"height":"width",F=S[w],B=S[w]+g[L],$=S[w]-g[P],j=p?-k[M]/2:0,U=y===D?x[M]:k[M],V=y===D?-k[M]:-x[M],K=t.elements.arrow,H=p&&K?b(K):{width:0,height:0},G=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Me(),z=G[L],X=G[P],q=Ge(0,x[M],H[M]),W=_?x[M]/2-j-q-z-O:U-q-z-O,Y=_?-x[M]/2+j+q+X+O:V+q+X+O,Q=t.elements.arrow&&A(t.elements.arrow),J=Q?"y"===w?Q.clientTop||0:Q.clientLeft||0:0,Z=t.modifiersData.offset?t.modifiersData.offset[t.placement][w]:0,ee=S[w]+W-Z-J,te=S[w]+Y-Z,ne=Ge(p?Math.min(B,ee):B,F,p?Math.max($,te):$);S[w]=ne,I[w]=ne-F}if(s){var re="x"===w?N:R,ie="x"===w?T:C,oe=S[E],ae=oe+g[re],ue=oe-g[ie],de=Ge(ae,oe,ue);S[E]=de,I[E]=de-oe}t.modifiersData[r]=I}}var Xe={name:"preventOverflow",enabled:!0,phase:"main",fn:ze,requiresIfExists:["offset"]};function qe(e){var t,n=e.state,r=e.name,i=n.elements.arrow,o=n.modifiersData.popperOffsets,a=se(n.placement),s=ce(a),l=[R,C].indexOf(a)>=0,c=l?"height":"width";if(i&&o){var u=n.modifiersData[r+"#persistent"].padding,d=b(i),h="y"===s?N:R,p="y"===s?T:C,f=n.rects.reference[c]+n.rects.reference[s]-o[s]-n.rects.popper[c],m=o[s]-n.rects.reference[s],g=A(i),v=g?"y"===s?g.clientHeight||0:g.clientWidth||0:0,y=f/2-m/2,_=u[h],w=v-d[c]-u[p],E=v/2-d[c]/2+y,S=Ge(_,E,w),x=s;n.modifiersData[r]=(t={},t[x]=S,t.centerOffset=S-E,t)}}function We(e){var t=e.state,n=e.options,r=e.name,i=n.element,o=void 0===i?"[data-popper-arrow]":i,a=n.padding,s=void 0===a?0:a;null!=o&&("string"!==typeof o||(o=t.elements.popper.querySelector(o),o))&&Re(t.elements.popper,o)&&(t.elements.arrow=o,t.modifiersData[r+"#persistent"]={padding:Fe("number"!==typeof s?s:Be(s,I))})}var Ye={name:"arrow",enabled:!0,phase:"main",fn:qe,effect:We,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Qe(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Je(e){return[N,C,T,R].some((function(t){return e[t]>=0}))}function Ze(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=$e(t,{elementContext:"reference"}),s=$e(t,{altBoundary:!0}),l=Qe(a,r),c=Qe(s,i,o),u=Je(l),d=Je(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign(Object.assign({},t.attributes.popper),{},{"data-popper-reference-hidden":u,"data-popper-escaped":d})}var et={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Ze},tt=[ae,he,ve,_e,Se,Ke,Xe,Ye,et],nt=re({defaultModifiers:tt}),rt=n(65852),it=n(46030),ot=n.n(it),at=n(91086),st={emits:["dd-button-action","click-action"],mixins:[at.A],props:{buttonLabel:{default:"",type:String},closeOnSelect:{default:!0,type:Boolean},disabled:{default:!1,type:Boolean},dropdownOptions:{default:()=>[],type:Array},optionKey:{default:null,type:String},optionLabel:{default:"label",type:String},size:{default:null,type:String},value:{default:null,type:String},placement:{default:"bottom-start",type:String},selectable:{default:e=>!e||!e.disabled&&"group"!==e.kind&&"divider"!==e.kind&&!e.loading,type:Function}},data(){return{focused:!1}},methods:{withPopper(e,t,{width:n}){const r=t.$refs.search.clientWidth,i=e.clientWidth;e.style.width=io.destroy()},ddButtonAction(e){this.focusSearch(),this.$emit("dd-button-action",e)},getOptionLabel(e){return ot()(e)?e:this.$attrs["get-option-label"]?this.$attrs["get-option-label"](e):(0,rt.Jt)(e,this.optionLabel)?this.localizedLabel?this.$store.getters["i18n/t"]((0,rt.Jt)(e,this.optionLabel)):(0,rt.Jt)(e,this.optionLabel):e},onFocus(){return this.onFocusLabeled()},onFocusLabeled(){this.focused=!0},onBlur(){return this.onBlurLabeled()},onBlurLabeled(){this.focused=!1},focusSearch(){this.$nextTick((()=>{const e=this.$refs["button-dropdown"].searchEl;e&&e.focus()}))},get:rt.Jt}},lt=(n(4767),n(47433));const ct=(0,lt.A)(st,[["render",o],["__scopeId","data-v-4be323a9"]]);var ut=ct},70104:function(e,t,n){"use strict";n.d(t,{A:function(){return d}});var r=n(9274);const i={class:"btn-group"},o=["data-testid","disabled","onClick"],a={key:2};function s(e,t,n,s,l,c){const u=(0,r.resolveComponent)("t"),d=(0,r.resolveDirective)("clean-tooltip"),h=(0,r.resolveDirective)("trim-whitespace");return(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("div",i,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(c.optionObjects,((t,i)=>(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("button",{key:i,"data-testid":`button-group-child-${i}`,type:"button",class:(0,r.normalizeClass)(t.class),disabled:n.disabled||t.disabled,onClick:e=>c.change(t.value)},[(0,r.renderSlot)(e.$slots,"option",{label:t.label,value:t.value},(()=>[t.icon?((0,r.openBlock)(),(0,r.createElementBlock)("i",{key:0,class:(0,r.normalizeClass)({icon:!0,[t.icon]:!0,[`icon-${n.iconSize}`]:!!n.iconSize})},null,2)):(0,r.createCommentVNode)("",!0),t.labelKey?((0,r.openBlock)(),(0,r.createBlock)(u,{key:1,k:t.labelKey},null,8,["k"])):t.label?((0,r.openBlock)(),(0,r.createElementBlock)("span",a,(0,r.toDisplayString)(t.label),1)):(0,r.createCommentVNode)("",!0)]))],10,o)),[[d,t.tooltipKey?e.t(t.tooltipKey):t.tooltip]]))),128))])),[[h]])}var l={emits:["update:value"],props:{value:{type:[String,Number,Boolean,Object],required:!0},inactiveClass:{type:String,default:"bg-disabled"},activeClass:{type:String,default:"bg-primary"},options:{type:Array,required:!0},iconSize:{type:String,default:null},disabled:{type:Boolean,default:!1}},computed:{optionObjects(){const e=this.value;return this.options.map((t=>{let n;n=t&&"object"===typeof t&&"undefined"!==typeof t.value?Object.assign({},t):{label:t,value:t};const r=e===n.value;return n.class={btn:!0,[this.inactiveClass]:!r,[this.activeClass]:r},n}))}},methods:{change(e){this.$emit("update:value",e)}}},c=n(47433);const u=(0,c.A)(l,[["render",s]]);var d=u},57415:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});var r=n(9274);const i=e=>((0,r.pushScopeId)("data-v-ffe343e4"),e=e(),(0,r.popScopeId)(),e),o=i((()=>(0,r.createElementVNode)("i",{class:"icon icon-actions"},null,-1))),a=[o];var s=(0,r.defineComponent)({__name:"ButtonMultiAction",props:{borderless:{type:Boolean},invisible:{type:Boolean}},emits:["click"],setup(e){const t=e,n=(0,r.computed)((()=>({borderless:null===t||void 0===t?void 0:t.borderless,invisible:null===t||void 0===t?void 0:t.invisible})));return(e,t)=>((0,r.openBlock)(),(0,r.createElementBlock)("button",{type:"button",class:(0,r.normalizeClass)(["btn btn-sm role-multi-action actions",(0,r.unref)(n)]),onClick:t[0]||(t[0]=t=>e.$emit("click",t))},a,2))}}),l=(n(12286),n(47433));const c=(0,l.A)(s,[["__scopeId","data-v-ffe343e4"]]);var u=c},46734:function(e,t,n){"use strict";n.d(t,{A:function(){return v}});var r=n(9274);const i={key:0},o={key:0,class:"keymap overlay"},a=(0,r.createElementVNode)("i",{class:"icon icon-keyboard keymap-icon"},null,-1),s=(0,r.createElementVNode)("div",{class:"close-indicator"},[(0,r.createElementVNode)("i",{class:"icon icon-close icon-sm"})],-1),l=[a,s],c={key:1};function u(e,t,n,a,s,u){const d=(0,r.resolveComponent)("Codemirror"),h=(0,r.resolveDirective)("clean-tooltip");return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)(["code-mirror",{["as-text-area"]:n.asTextArea}])},[s.loaded?((0,r.openBlock)(),(0,r.createElementBlock)("div",i,[n.showKeyMapBox&&!s.removeKeyMapBox&&u.keyMapTooltip&&u.isNonDefaultKeyMap?((0,r.openBlock)(),(0,r.createElementBlock)("div",o,[(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("div",{class:"keymap-indicator","data-testid":"code-mirror-keymap",onClick:t[0]||(t[0]=(...e)=>u.closeKeyMapInfo&&u.closeKeyMapInfo(...e))},l)),[[h,u.keyMapTooltip]])])):(0,r.createCommentVNode)("",!0),(0,r.createVNode)(d,{ref:"codeMirrorRef",value:n.value,options:u.combinedOptions,disabled:u.isDisabled,"original-style":!0,onReady:u.onReady,onInput:u.onInput,onChanges:u.onChanges,onFocus:u.onFocus,onBlur:u.onBlur},null,8,["value","options","disabled","onReady","onInput","onChanges","onFocus","onBlur"])])):((0,r.openBlock)(),(0,r.createElementBlock)("div",c," Loading... "))],2)}var d=n(97538),h=n(75040),p=n(9776),f={name:"CodeMirror",emits:["onReady","onInput","onChanges","onFocus"],props:{mode:{type:String,default:h.G5},value:{type:String,required:!0},options:{type:Object,default:()=>{}},asTextArea:{type:Boolean,default:!1},showKeyMapBox:{type:Boolean,default:!1}},data(){return{codeMirrorRef:null,loaded:!1,removeKeyMapBox:!1}},computed:{isDisabled(){return this.mode===h.nW},combinedOptions(){const e=this.$store.getters["prefs/theme"],t=this.$store.getters["prefs/get"](d.aP),n={tabSize:2,indentWithTabs:!1,mode:"yaml",keyMap:t,theme:`base16-${e}`,lineNumbers:!0,line:!0,styleActiveLine:!1,lineWrapping:!0,foldGutter:!0,styleSelectedText:!0,showCursorWhenSelecting:!0};return this.asTextArea&&(n.lineNumbers=!1,n.foldGutter=!1,n.tabSize=0,n.extraKeys={Tab:!1}),Object.assign(n,this.options),n},keyMapTooltip(){if(this.combinedOptions?.keyMap){const e=this.t(`prefs.keymap.${this.combinedOptions.keyMap}`);return this.t("codeMirror.keymap.indicatorToolip",{name:e})}return null},isNonDefaultKeyMap(){return"sublime"!==this.combinedOptions?.keyMap}},created(){window.__codeMirrorLoader?window.__codeMirrorLoader().then((()=>{this.loaded=!0})):p.error("Code mirror loader not available")},methods:{focus(){this.$refs.codeMirrorRef&&this.$refs.codeMirrorRef.cminstance.focus()},refresh(){this.$refs.codeMirrorRef&&this.$refs.codeMirrorRef.refresh()},onReady(e){this.$nextTick((()=>{e.refresh(),this.codeMirrorRef=e})),this.$emit("onReady",e)},onInput(e){this.$emit("onInput",e)},onChanges(e,t){this.$emit("onChanges",e,t)},onFocus(){this.$emit("onFocus",!0)},onBlur(){this.$emit("onFocus",!1)},updateValue(e){this.$refs.codeMirrorRef&&this.$refs.codeMirrorRef.cminstance.doc.setValue(e)},closeKeyMapInfo(){this.removeKeyMapBox=!0}}},m=(n(60004),n(47433));const g=(0,m.A)(f,[["render",u]]);var v=g},66210:function(e,t,n){"use strict";n.d(t,{A:function(){return Ge}});var r=n(9274);const i=e=>((0,r.pushScopeId)("data-v-2586478b"),e=e(),(0,r.popScopeId)(),e),o={class:"cru"},a={key:0,class:"description"},s={key:0,id:"cru-errors",class:"cru__errors"},l={key:1,class:"subtypes-container cru__content"},c=["data-testid","onClick"],u={class:"subtype-container"},d={class:"subtype-logo"},h=["src","alt"],p={key:1,class:"round-image"},f={key:0,class:"banner-abbrv"},m={key:0},g={key:1},v={class:"subtype-body"},y={key:0},b={key:1},_=["href"],w=i((()=>(0,r.createElementVNode)("i",{class:"icon icon-external-link"},null,-1))),E={key:0},S={key:1,class:"description"},x={key:0},k={key:1},A={key:0,class:"resource-container cru__content cru__content-wizard"},N={class:"controls-steps"},T=["onClick"],C=["disabled","onClick"],R=["data-testid"],O={key:4,class:"cru-resource-yaml-container resource-container cru__content"},I={class:"controls-middle"},D=["data-testid","onClick"],L=["data-testid","disabled","onClick"],P={key:0,class:"controls-right"},M=["data-testid","onClick"];function F(e,t,n,i,F,B){const $=(0,r.resolveComponent)("Banner"),j=(0,r.resolveComponent)("t"),U=(0,r.resolveComponent)("AsyncButton"),V=(0,r.resolveComponent)("CruResourceFooter"),K=(0,r.resolveComponent)("Wizard"),H=(0,r.resolveComponent)("ResourceYaml"),G=(0,r.resolveDirective)("clean-html");return(0,r.openBlock)(),(0,r.createElementBlock)("section",o,[(0,r.renderSlot)(e.$slots,"noticeBanner",{},void 0,!0),n.description?((0,r.openBlock)(),(0,r.createElementBlock)("p",a,(0,r.toDisplayString)(n.description),1)):(0,r.createCommentVNode)("",!0),((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(B.isView?"div":"form"),{value:n.resource,"data-testid":"cru-form",class:"create-resource-container cru__form",onSubmit:t[6]||(t[6]=(0,r.withModifiers)((()=>{}),["prevent"])),onKeydown:t[7]||(t[7]=(0,r.withKeys)((e=>B.onPressEnter(e)),["enter"]))},{default:(0,r.withCtx)((()=>[B.hasErrors?((0,r.openBlock)(),(0,r.createElementBlock)("div",s,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(n.errors,((e,t)=>((0,r.openBlock)(),(0,r.createBlock)($,{key:t,color:"error","data-testid":`error-banner${t}`,label:B.stringify(B.mappedErrors[e].message),icon:B.mappedErrors[e].icon,closable:!0,onClose:e=>B.closeError(t)},null,8,["data-testid","label","icon","onClose"])))),128))])):(0,r.createCommentVNode)("",!0),B.showSubtypeSelection?((0,r.openBlock)(),(0,r.createElementBlock)("div",l,[(0,r.renderSlot)(e.$slots,"subtypes",{subtypes:n.subtypes},(()=>[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(n.subtypes,((t,i)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:i,class:(0,r.normalizeClass)(["subtype-banner",{selected:t.id===B._selectedSubtype}]),"data-testid":`subtype-banner-item-${t.id}`,onClick:e=>B.selectType(t.id,e)},[(0,r.renderSlot)(e.$slots,"subtype-content",{},(()=>[(0,r.createElementVNode)("div",u,[(0,r.createElementVNode)("div",d,[t.bannerImage?((0,r.openBlock)(),(0,r.createElementBlock)("img",{key:0,src:t.bannerImage,alt:(n.resource.type?n.resource.type+": ":"")+(t.label||"")},null,8,h)):((0,r.openBlock)(),(0,r.createElementBlock)("div",p,[t.bannerAbbrv?((0,r.openBlock)(),(0,r.createElementBlock)("div",f,[e.$store.getters["i18n/exists"](t.bannerAbbrv)?((0,r.openBlock)(),(0,r.createElementBlock)("span",m,(0,r.toDisplayString)(e.t(t.bannerAbbrv)),1)):((0,r.openBlock)(),(0,r.createElementBlock)("span",{key:1,style:(0,r.normalizeStyle)({fontSize:F.abbrSizes[t.bannerAbbrv.length]})},(0,r.toDisplayString)(t.bannerAbbrv),5))])):((0,r.openBlock)(),(0,r.createElementBlock)("div",g,(0,r.toDisplayString)(t.id.slice(0,1).toUpperCase()),1))]))]),(0,r.createElementVNode)("div",v,[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["title",{"with-description":!!t.description}])},[(0,r.createElementVNode)("h5",null,[e.$store.getters["i18n/exists"](t.label)?(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("span",y,null,512)),[[G,e.t(t.label)]]):((0,r.openBlock)(),(0,r.createElementBlock)("span",b,(0,r.toDisplayString)(t.label),1))]),t.docLink?((0,r.openBlock)(),(0,r.createElementBlock)("a",{key:0,href:t.docLink,target:"_blank",rel:"noopener nofollow",class:"flex-right"},[(0,r.createTextVNode)((0,r.toDisplayString)(e.t("generic.moreInfo"))+" ",1),w],8,_)):(0,r.createCommentVNode)("",!0)],2),t.description?((0,r.openBlock)(),(0,r.createElementBlock)("hr",E)):(0,r.createCommentVNode)("",!0),t.description?((0,r.openBlock)(),(0,r.createElementBlock)("div",S,[e.$store.getters["i18n/exists"](t.description)?(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("span",x,null,512)),[[G,e.t(t.description,{},!0)]]):((0,r.openBlock)(),(0,r.createElementBlock)("span",k,(0,r.toDisplayString)(t.description),1))])):(0,r.createCommentVNode)("",!0)])])]),!0)],10,c)))),128))]),!0)])):(0,r.createCommentVNode)("",!0),F.showAsForm&&n.steps.length?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:2},[B._selectedSubtype||!n.subtypes.length?((0,r.openBlock)(),(0,r.createElementBlock)("div",A,[n.resource?((0,r.openBlock)(),(0,r.createBlock)(K,{key:0,ref:"Wizard","header-mode":n.mode,steps:n.steps,errors:n.errors,"finish-mode":n.finishMode,class:"wizard",onError:t[2]||(t[2]=e=>n.errors=e)},{stepContainer:(0,r.withCtx)((({activeStep:t})=>[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(n.steps,((n,i)=>((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:i},[n.name===t.name||n.hidden?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:n.name,class:(0,r.normalizeClass)(["step-container__step",{hide:n.name!==t.name&&n.hidden}])},[(0,r.renderSlot)(e.$slots,n.name,{step:n},void 0,!0)],2)):(0,r.createCommentVNode)("",!0)],64)))),128))])),controlsContainer:(0,r.withCtx)((({showPrevious:i,next:o,back:a,activeStep:s,canNext:l,activeStepIndex:c,visibleSteps:u})=>[(0,r.createVNode)(V,{class:"cru__footer",mode:n.mode,"is-form":F.showAsForm,"show-cancel":n.showCancel,onCancelConfirmed:B.confirmCancel},(0,r.createSlots)({default:(0,r.withCtx)((()=>[(0,r.createElementVNode)("div",N,[B.showYaml?((0,r.openBlock)(),(0,r.createElementBlock)("button",{key:0,type:"button",class:"btn role-secondary",onClick:t[0]||(t[0]=(...e)=>B.showPreviewYaml&&B.showPreviewYaml(...e))},[(0,r.createVNode)(j,{k:"cruResource.previewYaml"})])):(0,r.createCommentVNode)("",!0),i?((0,r.openBlock)(),(0,r.createElementBlock)("button",{key:1,type:"button",class:"btn role-secondary",onClick:e=>a()},[(0,r.createVNode)(j,{k:"wizard.previous"})],8,T)):(0,r.createCommentVNode)("",!0),c===u.length-1?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:2},[B.showSubtypeSelection||B.isView?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createBlock)(U,{key:0,ref:"save",disabled:!s.ready,mode:n.finishButtonMode||n.mode,onClick:t[1]||(t[1]=t=>e.$emit("finish",t))},null,8,["disabled","mode"]))],64)):((0,r.openBlock)(),(0,r.createElementBlock)("button",{key:3,disabled:!l,type:"button",class:"btn role-primary",onClick:e=>o()},[(0,r.createVNode)(j,{k:"wizard.next"})],8,C))])])),_:2},[(0,r.renderList)(e.$slots,((t,n)=>({name:n,fn:(0,r.withCtx)((t=>[B.shouldProvideSlot(n)?(0,r.renderSlot)(e.$slots,n,(0,r.normalizeProps)((0,r.mergeProps)({key:0},t)),void 0,!0):(0,r.createCommentVNode)("",!0)]))})))]),1032,["mode","is-form","show-cancel","onCancelConfirmed"])])),_:3},8,["header-mode","steps","errors","finish-mode"])):(0,r.createCommentVNode)("",!0)])):(0,r.createCommentVNode)("",!0)],64)):F.showAsForm?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:3},[B._selectedSubtype||!n.subtypes.length?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,class:"resource-container cru__content",style:(0,r.normalizeStyle)([n.minHeight?{"min-height":n.minHeight}:{}])},[(0,r.renderSlot)(e.$slots,"default",{},void 0,!0)],4)):(0,r.createCommentVNode)("",!0),(0,r.renderSlot)(e.$slots,"form-footer",{},(()=>[(0,r.createVNode)(V,{class:"cru__footer",mode:n.mode,"is-form":F.showAsForm,"show-cancel":n.showCancel,"component-testid":n.componentTestid,onCancelConfirmed:B.confirmCancel},(0,r.createSlots)({_:2},[(0,r.renderList)(e.$slots,((t,n)=>({name:n,fn:(0,r.withCtx)((t=>[B.shouldProvideSlot(n)?(0,r.renderSlot)(e.$slots,n,(0,r.normalizeProps)((0,r.mergeProps)({key:0},t)),void 0,!0):(0,r.createCommentVNode)("",!0)]))}))),B.isView?void 0:{name:"default",fn:(0,r.withCtx)((()=>[(0,r.createElementVNode)("div",null,[B.showYaml?((0,r.openBlock)(),(0,r.createElementBlock)("button",{key:0,"data-testid":n.componentTestid+"-yaml",type:"button",class:"btn role-secondary",onClick:t[3]||(t[3]=(...e)=>B.showPreviewYaml&&B.showPreviewYaml(...e))},[(0,r.createVNode)(j,{k:"cruResource.previewYaml"})],8,R)):(0,r.createCommentVNode)("",!0),B.showSubtypeSelection?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createBlock)(U,{key:1,ref:"save",disabled:!B.canSave,mode:n.finishButtonMode||n.mode,"data-testid":n.componentTestid+"-save",onClick:t[4]||(t[4]=e=>B.clickSave(e))},null,8,["disabled","mode","data-testid"]))])])),key:"0"}]),1032,["mode","is-form","show-cancel","component-testid","onCancelConfirmed"])]),!0)],64)):B.showYaml&&!F.showAsForm?((0,r.openBlock)(),(0,r.createElementBlock)("section",O,[(0,r.createVNode)(H,{ref:"resourceyaml",value:n.resource,mode:n.mode,"initial-yaml-for-diff":F.initialYaml,yaml:F.resourceYaml,"offer-preview":B.isEdit,"done-route":n.doneRoute,"done-override":n.resource.doneOverride,errors:n.errors,"apply-hooks":n.applyHooks,class:"resource-container cru__content",onError:t[5]||(t[5]=t=>e.$emit("error",t))},{yamlFooter:(0,r.withCtx)((({yamlSave:t,showPreview:i,yamlPreview:o,yamlUnpreview:a,canDiff:s})=>[(0,r.renderSlot)(e.$slots,"cru-yaml-footer",{},(()=>[(0,r.createVNode)(V,{class:"cru__footer","done-route":n.doneRoute,mode:n.mode,"is-form":F.showAsForm,onCancelConfirmed:B.confirmCancel},{default:(0,r.withCtx)((({checkCancel:l})=>[(0,r.createElementVNode)("div",I,[i?((0,r.openBlock)(),(0,r.createElementBlock)("button",{key:0,type:"button",class:"btn role-secondary","data-testid":n.componentTestid+"-yaml-yaml",onClick:a},[(0,r.createVNode)(j,{k:"resourceYaml.buttons.continue"})],8,D)):(0,r.createCommentVNode)("",!0),!i&&B.isEdit?((0,r.openBlock)(),(0,r.createElementBlock)("button",{key:1,"data-testid":n.componentTestid+"-yaml-yaml-preview",disabled:!s,type:"button",class:"btn role-secondary",onClick:o},[(0,r.createVNode)(j,{k:"resourceYaml.buttons.diff"})],8,L)):(0,r.createCommentVNode)("",!0)]),B._selectedSubtype||!n.subtypes.length?((0,r.openBlock)(),(0,r.createElementBlock)("div",P,[(0,r.createElementVNode)("button",{"data-testid":n.componentTestid+"-yaml-cancel",type:"button",class:"btn role-secondary",onClick:e=>l(!1)},[(0,r.createVNode)(j,{k:"cruResource.backToForm"})],8,M),B.showSubtypeSelection?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createBlock)(U,{key:0,"data-testid":n.componentTestid+"-yaml-save",disabled:!B.canSave,"action-label":B.isEdit?e.t("generic.save"):e.t("generic.create"),onClick:e=>t(e)},null,8,["data-testid","disabled","action-label","onClick"]))])):(0,r.createCommentVNode)("",!0)])),_:2},1032,["done-route","mode","is-form","onCancelConfirmed"])]),!0)])),_:3},8,["value","mode","initial-yaml-for-diff","yaml","offer-preview","done-route","done-override","errors","apply-hooks"])])):(0,r.createCommentVNode)("",!0)])),_:3},40,["value"]))])}var B=n(15510),$=n.n(B),j=n(3196),U=n(65852),V=n(4284),K=n(90736),H=n(58832),G=n(1804),z=n(25443),X=n(71898);const q={class:"cru-resource-footer"},W=["data-testid"];function Y(e,t,n,i,o,a){const s=(0,r.resolveComponent)("t"),l=(0,r.resolveComponent)("AsyncButton"),c=(0,r.resolveComponent)("ResourceCancelModal");return(0,r.openBlock)(),(0,r.createElementBlock)("div",q,[(0,r.renderSlot)(e.$slots,"footer-prefix"),(0,r.renderSlot)(e.$slots,"cancel",{},(()=>[!a.isView&&n.showCancel?((0,r.openBlock)(),(0,r.createElementBlock)("button",{key:0,id:"cru-cancel","data-testid":n.componentTestid+"-cancel",type:"button",class:"btn role-secondary",onClick:t[0]||(t[0]=t=>n.confirmCancelRequired?a.checkCancel(!0):e.$emit("cancel-confirmed",!0))},[(0,r.createVNode)(s,{k:"generic.cancel"})],8,W)):(0,r.createCommentVNode)("",!0)])),(0,r.renderSlot)(e.$slots,"default",{checkCancel:a.checkCancel},(()=>[a.isView?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createBlock)(l,{key:0,"data-testid":n.componentTestid+"-create",mode:n.finishButtonMode||n.mode,onClick:t[1]||(t[1]=t=>e.$emit("finish",t))},null,8,["data-testid","mode"]))])),(0,r.createVNode)(c,{ref:"cancelModal","is-cancel-modal":o.isCancelModal,"is-form":n.isForm,onConfirmCancel:t[2]||(t[2]=e=>a.confirmCancel(e))},null,8,["is-cancel-modal","is-form"])])}const Q={class:"header"},J={class:"text-default-text"},Z={key:1},ee={class:"body"},te={key:0},ne={key:1},re={class:"footer"},ie={key:0},oe={key:1};function ae(e,t,n,i,o,a){const s=(0,r.resolveComponent)("t"),l=(0,r.resolveComponent)("app-modal");return o.showModal?((0,r.openBlock)(),(0,r.createBlock)(l,{key:0,customClass:"confirm-modal",name:"cancel-modal",width:440,height:"auto",onClose:a.cancelCancel},{default:(0,r.withCtx)((()=>[(0,r.createElementVNode)("div",Q,[(0,r.createElementVNode)("h4",J,[n.isCancelModal?((0,r.openBlock)(),(0,r.createBlock)(s,{key:0,k:"generic.cancel"})):((0,r.openBlock)(),(0,r.createElementBlock)("span",Z,(0,r.toDisplayString)(e.t("cruResource.backToForm")),1))])]),(0,r.createElementVNode)("div",ee,[n.isCancelModal?((0,r.openBlock)(),(0,r.createElementBlock)("p",te,[(0,r.createVNode)(s,{k:"cruResource.cancelBody"})])):((0,r.openBlock)(),(0,r.createElementBlock)("p",ne,[(0,r.createVNode)(s,{k:"cruResource.backBody"})]))]),(0,r.createElementVNode)("div",re,[(0,r.createElementVNode)("button",{type:"button",class:"btn role-secondary",onClick:t[0]||(t[0]=(...e)=>a.cancelCancel&&a.cancelCancel(...e))},(0,r.toDisplayString)(n.isForm?e.t("cruResource.reviewForm"):e.t("cruResource.reviewYaml")),1),(0,r.createElementVNode)("button",{type:"button",class:"btn role-primary",onClick:t[1]||(t[1]=(...e)=>a.confirmCancel&&a.confirmCancel(...e))},[n.isCancelModal?((0,r.openBlock)(),(0,r.createElementBlock)("span",ie,(0,r.toDisplayString)(e.t("cruResource.confirmCancel")),1)):((0,r.openBlock)(),(0,r.createElementBlock)("span",oe,(0,r.toDisplayString)(e.t("cruResource.confirmBack")),1))])])])),_:1},8,["onClose"])):(0,r.createCommentVNode)("",!0)}var se=n(70876),le={emits:["cancel-cancel","confirm-cancel"],components:{AppModal:se.A},props:{isCancelModal:{type:Boolean,default:!1},isForm:{type:Boolean,default:!1}},data(){return{showModal:!1}},watch:{},methods:{show(){this.showModal=!0},cancelCancel(){this.showModal=!1,this.$emit("cancel-cancel")},confirmCancel(){this.showModal=!1,this.$emit("confirm-cancel",this.isCancelModal)}}},ce=(n(9581),n(47433));const ue=(0,ce.A)(le,[["render",ae],["__scopeId","data-v-4fda46f8"]]);var de=ue,he=n(75040),pe={emits:["cancel-confirmed","finish"],components:{AsyncButton:G.A,ResourceCancelModal:de},props:{mode:{type:String,default:"create"},isForm:{type:Boolean,default:!0},finishButtonMode:{type:String,default:null},confirmCancelRequired:{type:Boolean,default:!1},confirmBackRequired:{type:Boolean,default:!0},showCancel:{type:Boolean,default:!0},componentTestid:{type:String,default:"form-footer"}},data(){return{isCancelModal:!1}},computed:{...(0,z.L8)({t:"i18n/t"}),isView(){return this.mode===he.nW}},methods:{checkCancel(e){this.isCancelModal=!!e,this.$refs.cancelModal.show()},confirmCancel(e){this.$emit("cancel-confirmed",e)}}};n(93087);const fe=(0,ce.A)(pe,[["render",Y]]);var me=fe,ge=n(23443);const ve={ref:"wizard",class:"outer-container"},ye={class:"header"},be={class:"title"},_e={key:0,class:"top choice-banner"},we={class:"title"},Ee={key:0,class:"round-image"},Se={class:"subtitle"},xe={key:0},ke={key:1,class:"subtext"},Ae={key:1,class:"subtitle"},Ne={key:0,class:"subtext"},Te={class:"step-sequence"},Ce=["id"],Re=["aria-controls","aria-selected","onClick"],Oe={id:"wizard-footer-controls",class:"controls-row pt-20"},Ie={class:"controls-steps"},De=["disabled"],Le=["disabled"];function Pe(e,t,n,i,o,a){const s=(0,r.resolveComponent)("Loading"),l=(0,r.resolveComponent)("LazyImage"),c=(0,r.resolveComponent)("Banner"),u=(0,r.resolveComponent)("t"),d=(0,r.resolveComponent)("AsyncButton");return(0,r.openBlock)(),(0,r.createElementBlock)("div",ve,[a.stepsLoaded?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createBlock)(s,{key:0,mode:"relative"})),(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["outer-container",{hide:!a.stepsLoaded}])},[(0,r.createElementVNode)("div",ye,[(0,r.createElementVNode)("div",be,[n.showBanner?((0,r.openBlock)(),(0,r.createElementBlock)("div",_e,[n.bannerImage||n.bannerTitle?(0,r.renderSlot)(e.$slots,"bannerTitle",{key:0},(()=>[(0,r.withDirectives)((0,r.createElementVNode)("div",we,[(0,r.renderSlot)(e.$slots,"bannerTitleImage",{},(()=>[n.bannerImage?((0,r.openBlock)(),(0,r.createElementBlock)("div",Ee,[(0,r.createVNode)(l,{src:n.bannerImage,class:"logo"},null,8,["src"])])):(0,r.createCommentVNode)("",!0)]),!0),(0,r.createElementVNode)("div",Se,[n.bannerTitle?((0,r.openBlock)(),(0,r.createElementBlock)("h2",xe,(0,r.toDisplayString)(n.bannerTitle),1)):(0,r.createCommentVNode)("",!0),n.bannerTitleSubtext?((0,r.openBlock)(),(0,r.createElementBlock)("span",ke,(0,r.toDisplayString)(n.bannerTitleSubtext),1)):(0,r.createCommentVNode)("",!0)])],512),[[r.vShow,n.initialTitle||a.activeStepIndex>0]])]),!0):(0,r.createCommentVNode)("",!0),o.activeStep&&a.showSteps?((0,r.openBlock)(),(0,r.createElementBlock)("div",Ae,[(0,r.createElementVNode)("h2",null,(0,r.toDisplayString)(n.headerMode?e.t(`wizard.${n.headerMode}`):e.t(`asyncButton.${n.finishMode}.action`))+": "+(0,r.toDisplayString)(e.t("wizard.step",{number:a.activeStepIndex+1})),1),(0,r.renderSlot)(e.$slots,"bannerSubtext",{},(()=>[null!==o.activeStep.subtext?((0,r.openBlock)(),(0,r.createElementBlock)("span",Ne,(0,r.toDisplayString)(o.activeStep.subtext||o.activeStep.label),1)):(0,r.createCommentVNode)("",!0)]),!0)])):(0,r.createCommentVNode)("",!0)])):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("div",Te,[a.showSteps?((0,r.openBlock)(),(0,r.createElementBlock)("ul",{key:0,class:"steps",tabindex:"0",onKeyup:[t[0]||(t[0]=(0,r.withKeys)((0,r.withModifiers)((t=>e.selectNext(1)),["stop"]),["right"])),t[1]||(t[1]=(0,r.withKeys)((0,r.withModifiers)((t=>e.selectNext(-1)),["stop"]),["left"]))]},[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(a.visibleSteps,((e,t)=>((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:t},[(0,r.createElementVNode)("li",{id:e.name,class:(0,r.normalizeClass)({step:!0,active:e.name===o.activeStep.name,disabled:!a.isAvailable(e)}),role:"presentation"},[(0,r.createElementVNode)("span",{"aria-controls":"step"+t+1,"aria-selected":e.name===o.activeStep.name,role:"tab",class:"controls",onClick:(0,r.withModifiers)((e=>a.goToStep(t+1,!0)),["prevent"])},[(0,r.createElementVNode)("span",{class:(0,r.normalizeClass)(["icon icon-lg",{"icon-dot":e.name===o.activeStep.name,"icon-dot-open":e.name!==o.activeStep.name}])},null,2),(0,r.createElementVNode)("span",null,(0,r.toDisplayString)(e.label),1)],8,Re)],10,Ce),t!==a.visibleSteps.length-1?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:e.name,class:"divider"})):(0,r.createCommentVNode)("",!0)],64)))),128))],32)):(0,r.createCommentVNode)("",!0)])])]),(0,r.renderSlot)(e.$slots,"stepContainer",{class:"step-container",activeStep:o.activeStep},(()=>[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(n.steps,((t,n)=>((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:n},[t.name===o.activeStep.name||t.hidden?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:t.name,class:(0,r.normalizeClass)(["step-container__step",{hide:t.name!==o.activeStep.name&&t.hidden}])},[(0,r.renderSlot)(e.$slots,t.name,{step:t},void 0,!0)],2)):(0,r.createCommentVNode)("",!0)],64)))),128))]),!0),(0,r.renderSlot)(e.$slots,"controlsContainer",{showPrevious:a.showPrevious,next:a.next,back:a.back,canNext:a.canNext,activeStepIndex:a.activeStepIndex,visibleSteps:a.visibleSteps,errorStrings:a.errorStrings,finish:a.finish,cancel:a.cancel,activeStep:o.activeStep},(()=>[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(a.errorStrings,((e,t)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:t},[(0,r.createVNode)(c,{color:"error",label:e,closable:!0,class:"footer-error",onClose:e=>n.errors.splice(t,1)},null,8,["label","onClose"])])))),128)),(0,r.createElementVNode)("div",Oe,[(0,r.renderSlot)(e.$slots,"cancel",{cancel:a.cancel},(()=>[(0,r.createElementVNode)("button",{type:"button",class:"btn role-secondary",onClick:t[2]||(t[2]=(...e)=>a.cancel&&a.cancel(...e))},[(0,r.createVNode)(u,{k:"generic.cancel"})])]),!0),(0,r.createElementVNode)("div",Ie,[a.showPrevious?(0,r.renderSlot)(e.$slots,"back",{key:0,back:a.back},(()=>[(0,r.createElementVNode)("button",{disabled:!a.canPrevious||!n.editFirstStep&&1===a.activeStepIndex,type:"button",class:"btn role-secondary",onClick:t[3]||(t[3]=e=>a.back())},[(0,r.createVNode)(u,{k:"wizard.previous"})],8,De)]),!0):(0,r.createCommentVNode)("",!0),a.activeStepIndex===a.visibleSteps.length-1?(0,r.renderSlot)(e.$slots,"finish",{key:1,finish:a.finish},(()=>[(0,r.createVNode)(d,{disabled:!o.activeStep.ready,mode:n.finishMode,onClick:a.finish},null,8,["disabled","mode","onClick"])]),!0):(0,r.renderSlot)(e.$slots,"next",{key:2,next:a.next},(()=>[(0,r.createElementVNode)("button",{disabled:!a.canNext,type:"button",class:(0,r.normalizeClass)(a.nextButtonStyle),onClick:t[4]||(t[4]=e=>a.next())},[(0,r.createVNode)(u,{k:a.nextButtonLabel},null,8,["k"])],10,Le)]),!0)])])]),!0)],2)],512)}var Me=n(82888),Fe=n(68821),Be={name:"Wizard",emits:["next","cancel","finish"],components:{AsyncButton:G.A,Banner:H.l,Loading:Me.A,LazyImage:Fe.A},props:{steps:{type:Array,required:!0},initStepIndex:{type:Number,default:0},editFirstStep:{type:Boolean,default:!1},showBanner:{type:Boolean,default:!0},initialTitle:{type:Boolean,default:!0},bannerTitle:{type:String,default:null},bannerImage:{type:String,default:null},bannerTitleSubtext:{type:String,default:null},headerMode:{type:String,default:null},finishMode:{type:String,default:"finish"},errors:{type:Array,default:null}},data(){return{activeStep:null}},computed:{errorStrings(){return(this.errors||[]).map((e=>(0,X.As)(e)))},activeStepIndex(){return this.visibleSteps.findIndex((e=>e.name===this.activeStep.name))},showPrevious(){if(0===this.activeStepIndex)return!1;for(let e=0;e1||this.editFirstStep)},canNext(){return this.activeStepIndexe.ready))},showSteps(){return!1!==this.activeStep.showSteps&&this.visibleSteps.length>1},stepsLoaded(){return!this.steps.some((e=>!0===e.loading))},visibleSteps(){return this.steps.filter((e=>!e.hidden))},nextButtonStyle(){return this.activeStep.nextButton?.style||"btn role-primary"},nextButtonLabel(){return this.activeStep.nextButton?.labelKey||"wizard.next"}},watch:{stepsLoaded(e,t){!t&&e&&(this.activeStep=this.visibleSteps[this.initStepIndex],this.goToStep(this.activeStepIndex+1))},errors(){this.$nextTick((()=>{this.$refs.wizard.scrollTop=this.$refs.wizard.scrollHeight}))}},created(){this.activeStep=this.visibleSteps[this.initStepIndex],this.goToStep(this.activeStepIndex+1)},methods:{goToStep(e,t){if(e<1)return;if(!this.editFirstStep&&1===e&&t)return;const n=this.visibleSteps[e-1];n&&(this.isAvailable(n)||1===e)&&(this.activeStep=n,this.$emit("next",{step:n}))},cancel(){this.$emit("cancel")},finish(e){this.$emit("finish",e)},next(){this.goToStep(this.activeStepIndex+2)},back(){this.goToStep(this.activeStepIndex)},isAvailable(e){if(!e)return!1;const t=this.visibleSteps.findIndex((t=>t.name===e.name));if(0===t&&!this.editFirstStep)return!1;for(let n=0;n[]},selectedSubtype:{type:String,default:null},validationPassed:{type:Boolean,default:!0},errors:{type:Array,default:()=>[]},errorsMap:{type:Object,default:null},canYaml:{type:Boolean,default:!0},generateYaml:{type:Function,default:null},finishButtonMode:{type:String,default:null},preventEnterSubmit:{type:Boolean,default:!1},applyHooks:{type:Function,default:null},steps:{type:Array,default:()=>[]},finishMode:{type:String,default:"finish"},minHeight:{type:String,default:""},namespaceKey:{type:String,default:"metadata.namespace"},componentTestid:{type:String,default:"form"},description:{type:String,default:""},yamlModifiers:{type:Object,default:void 0}},data(e){const t=this.$store.getters["currentStore"](this.resource),n=this.$store.getters[`${t}/schemaFor`](this.resource.type);return{isCancelModal:!1,showAsForm:this.$route.query[he.AS]!==he.zD,resourceYaml:null,initialYaml:null,initialResource:(0,U.o8)(this.resource),abbrSizes:{3:"24px",4:"18px",5:"16px",6:"14px"},schema:n}},computed:{canSave(){const{validationPassed:e,showAsForm:t,steps:n}=this;return t&&n?.length?e&&this.steps.every((e=>e.ready)):!this.showAsForm||this.validationPassed},canEditYaml(){return!this.schema?.resourceMethods?.includes("blocked-PUT")},showYaml(){return this.canYaml&&(this._selectedSubtype||!this.subtypes.length)&&this.canEditYaml&&this.mode!==he.nW},isView(){return this.mode===he.nW},isEdit(){return this.mode===he.G5},_selectedSubtype(){return this.selectedSubtype?this.selectedSubtype:this.$route.query[he.UA]},showSubtypeSelection(){return!$()(this.subtypes)&&!this._selectedSubtype},...(0,z.L8)({t:"i18n/t"}),...(0,z.aH)("cru-resource",["createNamespace"]),...(0,z.i0)("cru-resource",["setCreateNamespace"]),hasErrors(){return this.errors?.length&&Array.isArray(this.errors)},mappedErrors(){return this.errors?this.errorsMap||this.errors.reduce(((e,t)=>({...e,[t]:{message:t,icon:null}})),{}):{}}},created(){this._selectedSubtype&&this.$emit("select-type",this._selectedSubtype)},mounted(){this.$store.dispatch("cru-resource/setCreateNamespace",!1)},beforeUnmount(){this.$store.dispatch("cru-resource/setCreateNamespace",!1)},methods:{stringify:X.As,confirmCancel(e=!0){e?this.emitOrRoute():this.showAsForm||(this.resourceYaml=null,this.showAsForm=!0,this.$router.applyQuery({[he.AS]:he.xz}))},closeError(e){const t=this.errors.filter(((t,n)=>n!==e));this.$emit("error",t,this.errors[e])},emitOrRoute(){if(this.cancelEvent)this.$emit("cancel");else{const{resource:e=this.resource.type}=this.$route.params,t=this.resource.doneOverride,n={name:this.doneRoute,params:{resource:e}};this.$router.replace(t||n)}},async createResourceYaml(e,t=this.resource){if(await(this.schema?.fetchResourceFields()),"function"===typeof this.generateYaml)return this.generateYaml.apply(this,t);{const n=this.$store.getters["currentStore"](t),r=this.$store.getters[`${n}/all`](V.yx),i=(0,U.o8)(t),o=(0,j.Yd)(r,t.type,i,e);return o}},async showPreviewYaml(){if(await(this.schema?.fetchResourceFields()),this.applyHooks)try{await this.applyHooks(ge.Fm,Ve)}catch(t){return void Ue.warn("Unable to show yaml: ",t)}const e=await this.createResourceYaml(this.yamlModifiers);this.resourceYaml=e,this.showAsForm=!1,this.$router.applyQuery({[he.AS]:he.zD})},selectType(e,t){"A"!==t?.srcElement?.tagName&&(this.$router.applyQuery({[he.UA]:e}),this.$emit("select-type",e))},async clickSave(e){try{await this.createNamespaceIfNeeded(),this.$emit("finish",e)}catch(t){this.$emit("error",(0,X.rz)(t.message)),e(!1)}},save(){this.$refs.save.clicked()},async createNamespaceIfNeeded(){const e=this.$store.getters["currentStore"](this.resource),t=(0,U.Jt)(this.resource,this.namespaceKey);let n=!1;if(this.createNamespace){try{n=!!await this.$store.dispatch(`${e}/find`,{type:V.CU,id:t})}catch{}if(this.createNamespace&&!n)try{const n=await this.$store.dispatch(`${e}/createNamespace`,{name:t},{root:!0});n.applyDefaults(),await n.save()}catch(r){throw this.$emit("error",(0,X.rz)(r)),new Error(`Could not create the new namespace. ${r.message}`)}}},onPressEnter(e){this.preventEnterSubmit&&e.preventDefault()},shouldProvideSlot(e){return"default"!==e&&"function"===typeof this.$slots[e]}},watch:{async showAsForm(e){e||this.initialYaml||(this.initialYaml=await this.createResourceYaml(void 0,this.initialResource))}}};n(20769);const He=(0,ce.A)(Ke,[["render",F],["__scopeId","data-v-2586478b"]]);var Ge=He},88474:function(e,t,n){"use strict";n.d(t,{A:function(){return S}});var r=n(9274);const i={key:0},o={key:1},a={key:2,class:"text-italic"},s={key:3,class:"text-italic"};function l(e,t,n,l,c,u){const d=(0,r.resolveComponent)("CodeMirror"),h=(0,r.resolveComponent)("CopyToClipboard"),p=(0,r.resolveDirective)("t"),f=(0,r.resolveDirective)("clean-html");return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)({"force-wrap":!0,"with-copy":n.copy})},[n.labelKey?(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("h5",i,null,512)),[[p,n.labelKey]]):n.label?((0,r.openBlock)(),(0,r.createElementBlock)("h5",o,(0,r.toDisplayString)(n.label),1)):(0,r.createCommentVNode)("",!0),u.isEmpty?(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("span",a,null,512)),[[p,"detailText.empty"]]):u.isBinary?((0,r.openBlock)(),(0,r.createElementBlock)("span",s,(0,r.toDisplayString)(u.body),1)):u.jsonStr?((0,r.openBlock)(),(0,r.createBlock)(d,{key:4,options:{mode:{name:"javascript",json:!0},lineNumbers:!1,foldGutter:!1,readOnly:!0},value:u.jsonStr,class:(0,r.normalizeClass)({conceal:u.concealed})},null,8,["value","class"])):(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("span",{key:5,"data-testid":"detail-top_html",class:(0,r.normalizeClass)({conceal:u.concealed,monospace:n.monospace&&!u.isBinary})},null,2)),[[f,u.bodyHtml]]),u.isBinary||u.jsonStr||!u.isLong||c.expanded?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("a",{key:6,href:"#",onClick:t[0]||(t[0]=(0,r.withModifiers)(((...e)=>u.expand&&u.expand(...e)),["prevent"]))},(0,r.toDisplayString)(u.plusMore),1)),n.copy&&!u.isBinary?((0,r.openBlock)(),(0,r.createBlock)(h,{key:7,text:n.value,class:"role-tertiary","action-color":""},null,8,["text"])):(0,r.createCommentVNode)("",!0)],2)}var c=n(25443),u=n(78359),d=n(97538);function h(e,t,n,i,o,a){const s=(0,r.resolveComponent)("AsyncButton");return(0,r.openBlock)(),(0,r.createBlock)(s,(0,r.mergeProps)({icon:"icon-copy","show-label":n.showLabel,"action-label":"Copy","waiting-label":"Copying...","success-label":"Copied!","error-label":"Error Copying"},e.$attrs,{delay:2e3,onClick:a.clicked}),null,16,["show-label","onClick"])}var p=n(1804),f=n(53864),m={components:{AsyncButton:p.A},props:{text:{type:String,required:!0},showLabel:{type:Boolean,default:!0}},methods:{clicked(e){(0,f.e)(this.text).then((()=>{e(!0)})).catch((()=>{e(!1)}))}}},g=n(47433);const v=(0,g.A)(m,[["render",h]]);var y=v,b=n(46734),_=n(76198),w={components:{CopyToClipboard:y,CodeMirror:b.A},props:{label:{type:String,default:null},labelKey:{type:String,default:null},value:{type:String,default:null},maxLength:{type:Number,default:640},binary:{type:Boolean,default:null},conceal:{type:Boolean,default:!1},monospace:{type:Boolean,default:!0},copy:{type:Boolean,default:!0}},data(){const e=this.value.length<=this.maxLength;return{expanded:e}},computed:{isBinary(){return null===this.binary?"string"===typeof this.value&&!(0,u.XC)(this.value):this.binary},size(){return`${this.value}`.length},isLong(){return this.size>this.maxLength},isEmpty(){return 0===this.size},body(){return this.isBinary?this.t("detailText.binary",{n:this.value.length?(0,_.dQ)(this.value):0},!0):this.expanded?this.value:this.value.slice(0,this.maxLength)},jsonStr(){const e=this.value;if(e&&(e.startsWith("{")||e.startsWith("[")))try{let t=JSON.parse(e);return t=JSON.stringify(t,null,2),t}catch{}return null},bodyHtml(){return(0,u.Kn)(this.body)},plusMore(){if(this.expanded)return this.t("detailText.collapse");const e=Math.max(this.size-this.maxLength,0);return this.t("detailText.plusMore",{n:e}).trim()},hideSensitiveData(){return this.$store.getters["prefs/get"](d.qv)},concealed(){return this.conceal&&this.hideSensitiveData&&!this.isBinary},...(0,c.L8)({t:"i18n/t"})},methods:{expand(){this.expanded=!this.expanded}}};n(2466);const E=(0,g.A)(w,[["render",l],["__scopeId","data-v-7f3abca2"]]);var S=E},65525:function(e,t,n){"use strict";n.d(t,{A:function(){return c}});var r=n(9274);const i={key:0,class:"step-number mb-10"};function o(e,t,n,o,a,s){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)([{stepped:!!n.step},"info-box"])},[n.step?((0,r.openBlock)(),(0,r.createElementBlock)("div",i,[(0,r.createElementVNode)("h2",null,"Step "+(0,r.toDisplayString)(n.step),1)])):(0,r.createCommentVNode)("",!0),(0,r.renderSlot)(e.$slots,"default",{},void 0,!0)],2)}var a={props:{step:{type:Number,default:null}}},s=(n(15656),n(47433));const l=(0,s.A)(a,[["render",o],["__scopeId","data-v-44caeb0e"]]);var c=l},68821:function(e,t,n){"use strict";n.d(t,{A:function(){return c}});var r=n(9274);const i=["src"];function o(e,t,n,o,a,s){return(0,r.openBlock)(),(0,r.createElementBlock)("img",(0,r.mergeProps)({ref:"img",src:n.initialSrc},e.$attrs),null,16,i)}var a={props:{initialSrc:{type:String,default:n(42166)},errorSrc:{type:String,default:n(42166)},src:{type:String,default:null}},watch:{src(e,t){e!==t&&this.loadImage()}},mounted(){this.loadImage()},beforeUnmount(){const e=this.$refs.img;e&&e.removeEventListener("error",this.boundError)},methods:{loadImage(){const e=this.$refs.img;this.src&&(e.setAttribute("src",this.src),this.boundError=this.onError.bind(this),e.addEventListener("error",this.boundError))},onError(){const e=this.$refs.img;e&&e.setAttribute("src",this.errorSrc)}}},s=n(47433);const l=(0,s.A)(a,[["render",o]]);var c=l},82888:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});var r=n(9274);const i={key:0,class:"loading-indicator"},o={key:1};function a(e,t,n,a,s,l){const c=(0,r.resolveComponent)("t");return n.loading?((0,r.openBlock)(),(0,r.createElementBlock)("div",i,[s.showMessage?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,class:(0,r.normalizeClass)(["overlay",{"overlay-content-mode":"content"===n.mode,"overlay-main-mode":"main"===n.mode}])},[(0,r.createVNode)(c,{k:"generic.loading",raw:!0})],2)):(0,r.createCommentVNode)("",!0)])):((0,r.openBlock)(),(0,r.createElementBlock)("div",o,[(0,r.renderSlot)(e.$slots,"default",{},void 0,!0)]))}var s={props:{loading:{type:Boolean,default:!0},mode:{type:String,default:"content"},noDelay:{type:Boolean,default:!1}},data(){return{timer:null,showMessage:this.noDelay}},mounted(){this.timer=setTimeout((()=>{this.showMessage=!0}),250)},beforeUnmount(){clearTimeout(this.timer)}},l=(n(60740),n(47433));const c=(0,l.A)(s,[["render",a],["__scopeId","data-v-94f9d500"]]);var u=c},6624:function(e,t,n){"use strict";n.d(t,{A:function(){return f}});var r=n(9274);const i={class:"text-default-text"},o={class:"footer"};function a(e,t,n,a,s,l){const c=(0,r.resolveComponent)("Banner"),u=(0,r.resolveComponent)("AsyncButton"),d=(0,r.resolveComponent)("Card"),h=(0,r.resolveComponent)("app-modal");return(0,r.openBlock)(),(0,r.createBlock)(h,(0,r.mergeProps)({name:n.name,width:n.width,"click-to-close":!1,height:n.height},e.$attrs,{class:"modal","data-testid":"mvc__card",onClose:t[2]||(t[2]=t=>e.$emit("finish",t))}),{default:(0,r.withCtx)((()=>[(0,r.createVNode)(d,{class:"modal","show-highlight-border":!1},{title:(0,r.withCtx)((()=>[(0,r.createElementVNode)("h4",i,[(0,r.renderSlot)(e.$slots,"title",{},void 0,!0)])])),body:(0,r.withCtx)((()=>[(0,r.renderSlot)(e.$slots,"content",{},void 0,!0),((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(n.errors,((e,t)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:t},[(0,r.createVNode)(c,{class:"banner",color:"error",label:e},null,8,["label"])])))),128))])),actions:(0,r.withCtx)((()=>[(0,r.renderSlot)(e.$slots,"footer",{},(()=>[(0,r.createElementVNode)("div",o,[(0,r.createElementVNode)("button",{class:"btn role-secondary mr-20",onClick:t[0]||(t[0]=(0,r.withModifiers)(((...e)=>l.hide&&l.hide(...e)),["prevent"]))},(0,r.toDisplayString)(n.closeText),1),(0,r.createVNode)(u,{mode:n.saveText,onClick:t[1]||(t[1]=t=>e.$emit("finish",t))},null,8,["mode"])])]),!0)])),_:3})])),_:3},16,["name","width","height"])}var s=n(27666),l=n(58832),c=n(1804),u=n(70876),d={name:"ModalWithCard",emits:["close","finish"],components:{Card:s.Z,Banner:l.l,AsyncButton:c.A,AppModal:u.A},props:{name:{type:String,required:!0},closeText:{type:String,default:"Close"},saveText:{type:String,default:"create"},width:{type:[String,Number],default:"50%"},height:{type:[String,Number],default:"auto"},errors:{type:Array,default:()=>[]}},methods:{hide(){this.$emit("close")}}},h=(n(25594),n(56064),n(47433));const p=(0,h.A)(d,[["render",a],["__scopeId","data-v-566e0752"]]);var f=p},82768:function(e,t,n){"use strict";n.d(t,{A:function(){return k}});var r=n(9274);const i={class:"with-subheader"},o={class:"title"},a={class:"m-0"},s={class:"sub-header"},l={class:"actions-container"},c={class:"actions"};function u(e,t,n,u,d,h){const p=(0,r.resolveComponent)("TypeDescription"),f=(0,r.resolveComponent)("TabTitle"),m=(0,r.resolveComponent)("Favorite"),g=(0,r.resolveComponent)("ResourceLoadingIndicator"),v=(0,r.resolveComponent)("router-link");return(0,r.openBlock)(),(0,r.createElementBlock)("header",i,[(0,r.renderSlot)(e.$slots,"typeDescription",{},(()=>[(0,r.createVNode)(p,{resource:n.resource},null,8,["resource"])]),!0),(0,r.createElementVNode)("div",o,[(0,r.createElementVNode)("h1",a,[(0,r.createVNode)(f,null,{default:(0,r.withCtx)((()=>[(0,r.createTextVNode)((0,r.toDisplayString)(h._typeDisplay),1)])),_:1}),(0,r.createTextVNode)(),e.isExplorer?((0,r.openBlock)(),(0,r.createBlock)(m,{key:0,resource:n.favoriteResource||n.resource},null,8,["resource"])):(0,r.createCommentVNode)("",!0)]),n.showIncrementalLoadingIndicator?((0,r.openBlock)(),(0,r.createBlock)(g,{key:0,resources:n.loadResources,indeterminate:n.loadIndeterminate},null,8,["resources","indeterminate"])):(0,r.createCommentVNode)("",!0)]),(0,r.createElementVNode)("div",s,[(0,r.renderSlot)(e.$slots,"subHeader",{},void 0,!0)]),(0,r.createElementVNode)("div",l,[(0,r.renderSlot)(e.$slots,"actions",{},(()=>[(0,r.createElementVNode)("div",c,[(0,r.renderSlot)(e.$slots,"extraActions",{},void 0,!0),(0,r.renderSlot)(e.$slots,"createButton",{},(()=>[d.hasEditComponent&&h._isCreatable?((0,r.openBlock)(),(0,r.createBlock)(v,{key:0,to:h._createLocation,class:"btn role-primary","data-testid":n.componentTestid+"-create"},{default:(0,r.withCtx)((()=>[(0,r.createTextVNode)((0,r.toDisplayString)(h._createButtonlabel),1)])),_:1},8,["to","data-testid"])):h._isYamlCreatable?((0,r.openBlock)(),(0,r.createBlock)(v,{key:1,to:h._yamlCreateLocation,class:"btn role-primary","data-testid":n.componentTestid+"-create-yaml"},{default:(0,r.withCtx)((()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.t("resourceList.head.createFromYaml")),1)])),_:1},8,["to","data-testid"])):(0,r.createCommentVNode)("",!0)]),!0)])]),!0)])])}var d=n(25443);const h=["aria-checked"];function p(e,t,n,i,o,a){return(0,r.openBlock)(),(0,r.createElementBlock)("i",{tabindex:0,"aria-checked":!!a.isFavorite,class:(0,r.normalizeClass)(["favorite icon",{"icon-star-open":!a.isFavorite,"icon-star":a.isFavorite}]),"aria-role":"button",onClick:t[0]||(t[0]=(0,r.withModifiers)(((...e)=>a.toggle&&a.toggle(...e)),["stop","prevent"])),onKeydown:[t[1]||(t[1]=(0,r.withKeys)((0,r.withModifiers)(((...e)=>a.toggle&&a.toggle(...e)),["prevent"]),["enter"])),t[2]||(t[2]=(0,r.withKeys)((0,r.withModifiers)(((...e)=>a.toggle&&a.toggle(...e)),["prevent"]),["space"]))]},null,42,h)}var f={props:{resource:{type:String,required:!0}},computed:{isFavorite(){return this.$store.getters["type-map/isFavorite"](this.resource)}},methods:{toggle(){this.isFavorite?this.$store.dispatch("type-map/removeFavorite",this.resource):this.$store.dispatch("type-map/addFavorite",this.resource)}}},m=(n(840),n(47433));const g=(0,m.A)(f,[["render",p],["__scopeId","data-v-dd43072c"]]);var v=g,y=n(91073),b=n(65852),_=n(75040),w=n(76781),E=n(60324),S={name:"MastheadResourceList",components:{Favorite:v,TypeDescription:y.A,ResourceLoadingIndicator:w.A,TabTitle:E.A},props:{resource:{type:String,required:!0},favoriteResource:{type:String,default:null},schema:{type:Object,default:null},typeDisplay:{type:String,default:null},isCreatable:{type:Boolean,default:null},isYamlCreatable:{type:Boolean,default:null},createLocation:{type:Object,default:null},yamlCreateLocation:{type:Object,default:null},createButtonLabel:{type:String,default:null},loadResources:{type:Array,default:()=>[]},loadIndeterminate:{type:Boolean,default:!1},showIncrementalLoadingIndicator:{type:Boolean,default:!1},componentTestid:{type:String,default:"masthead"}},data(){const e={...this.$route.params},t={name:`${this.$route.name}-create`,params:e},n=this.$store.getters["type-map/hasCustomEdit"](this.resource),r={name:`${this.$route.name}-create`,params:e,query:{[_.AS]:_.zD}};return{formRoute:t,yamlRoute:r,hasEditComponent:n}},computed:{get:b.Jt,...(0,d.L8)(["isExplorer","currentCluster"]),resourceName(){return this.schema?this.$store.getters["type-map/labelFor"](this.schema):this.resource},_typeDisplay(){return null!==this.typeDisplay?this.typeDisplay:this.schema?this.$store.getters["type-map/labelFor"](this.schema,99):"?"},_isYamlCreatable(){return null!==this.isYamlCreatable?this.isYamlCreatable:this.schema&&this._isCreatable&&this.$store.getters["type-map/optionsFor"](this.resource).canYaml},_isCreatable(){return null!==this.isCreatable?this.isCreatable:!(this.schema&&!this.schema?.collectionMethods.find((e=>["blocked-post","post"].includes(e.toLowerCase()))))&&this.$store.getters["type-map/optionsFor"](this.resource).isCreatable},_createLocation(){return this.createLocation||this.formRoute},_yamlCreateLocation(){return this.yamlCreateLocation||this.yamlRoute},_createButtonlabel(){return this.createButtonLabel||this.t("resourceList.head.create")}}};n(16946);const x=(0,m.A)(S,[["render",u],["__scopeId","data-v-906a451c"]]);var k=x},76781:function(e,t,n){"use strict";n.d(t,{A:function(){return b}});var r=n(9274);const i=e=>((0,r.pushScopeId)("data-v-95d5e994"),e=e(),(0,r.popScopeId)(),e),o={key:0,class:"ml-10 resource-loading-indicator"},a={class:"inner"},s={class:"resource-loader"},l={class:"rl-bg"},c=i((()=>(0,r.createElementVNode)("i",{class:"icon icon-spinner icon-spin"},null,-1))),u={key:0},d={class:"rl-fg"},h=i((()=>(0,r.createElementVNode)("i",{class:"icon icon-spinner icon-spin"},null,-1))),p={key:0};function f(e,t,n,i,f,m){return m.count&&!m.haveAll?((0,r.openBlock)(),(0,r.createElementBlock)("div",o,[(0,r.createElementVNode)("div",a,[(0,r.createElementVNode)("div",s,[(0,r.createElementVNode)("div",l,[c,(0,r.createElementVNode)("span",null,[(0,r.createTextVNode)((0,r.toDisplayString)(e.t("resourceLoadingIndicator.loading"))+" ",1),n.indeterminate?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("span",u,(0,r.toDisplayString)(m.count)+" / "+(0,r.toDisplayString)(m.total),1))])])]),(0,r.createElementVNode)("div",{class:"resource-loader",style:(0,r.normalizeStyle)({width:m.width})},[(0,r.createElementVNode)("div",d,[h,(0,r.createElementVNode)("span",null,[(0,r.createTextVNode)((0,r.toDisplayString)(e.t("resourceLoadingIndicator.loading"))+" ",1),n.indeterminate?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("span",p,(0,r.toDisplayString)(m.count)+" / "+(0,r.toDisplayString)(m.total),1))])])],4)])])):(0,r.createCommentVNode)("",!0)}var m=n(4284),g={name:"ResourceLoadingIndicator",props:{resources:{type:Array,required:!0},indeterminate:{type:Boolean,default:!1}},data(){const e=this.$store.getters["currentStore"](this.resource);return{inStore:e}},computed:{rowsCount(){if(this.resources.length>0){const e=this.$store.getters[`${this.inStore}/all`](this.resources[0])||[];return(e||[]).length}return 0},haveAll(){return this.resources.reduce(((e,t)=>e&&this.$store.getters[`${this.inStore}/haveAll`](t)),!0)},total(){const e=this.$store.getters[`${this.inStore}/all`](m.i2);return this.resources.reduce(((t,n)=>{const r=e?.[0]?.counts?.[n],i=r?.summary?.count,o=i||0;return t+o}),0)},count(){return this.resources.reduce(((e,t)=>e+(this.$store.getters[`${this.inStore}/all`](t)||[]).length),0)},width(){const e=Math.ceil(this.count/this.total*100);return`${e}%`}}},v=(n(94647),n(47433));const y=(0,v.A)(g,[["render",f],["__scopeId","data-v-95d5e994"]]);var b=y},27166:function(e,t,n){"use strict";n.d(t,{A:function(){return _},S:function(){return g}});var r=n(9274);const i={class:"group-tab"};function o(e,t,n,o,a,s){const l=(0,r.resolveComponent)("ButtonGroup"),c=(0,r.resolveComponent)("SortableTable"),u=(0,r.resolveDirective)("clean-html"),d=(0,r.resolveDirective)("shortkey");return(0,r.openBlock)(),(0,r.createBlock)(c,(0,r.mergeProps)({ref:"table"},e.$attrs,{headers:s._headers,rows:s.filteredRows,loading:n.loading,"alt-loading":n.altLoading,"group-by":s.computedGroupBy,group:s.group,"group-options":s.groupOptions,search:n.search,paging:!0,"paging-params":s.parsedPagingParams,"paging-label":n.pagingLabel,"rows-per-page":n.rowsPerPage,"row-actions":n.rowActions,"table-actions":s._showBulkActions,"overflow-x":n.overflowX,"overflow-y":n.overflowY,"get-custom-detail-link":n.getCustomDetailLink,"has-advanced-filtering":n.hasAdvancedFiltering,"adv-filter-hide-labels-as-cols":n.advFilterHideLabelsAsCols,"adv-filter-prevent-filtering-labels":n.advFilterPreventFilteringLabels,"key-field":n.keyField,sortGeneration:a.sortGeneration,"sort-generation-fn":s.safeSortGenerationFn,"use-query-params-for-simple-filtering":n.useQueryParamsForSimpleFiltering,"force-update-live-and-delayed":n.forceUpdateLiveAndDelayed,"external-pagination-enabled":n.externalPaginationEnabled,"external-pagination-result":n.externalPaginationResult,"mandatory-sort":s._mandatorySort,onClickedActionButton:s.handleActionButtonClick,onGroupValueChange:t[5]||(t[5]=e=>s.group=e)}),(0,r.createSlots)({"group-by":(0,r.withCtx)((({group:e})=>[(0,r.withDirectives)((0,r.createElementVNode)("div",i,null,512),[[u,e.ref]])])),shortkeys:(0,r.withCtx)((()=>[(0,r.withDirectives)((0,r.createElementVNode)("button",{class:"hide",onShortkey:t[1]||(t[1]=e=>s.keyAction("edit"))},null,544),[[d,["e"],void 0,{once:!0}]]),(0,r.withDirectives)((0,r.createElementVNode)("button",{class:"hide",onShortkey:t[2]||(t[2]=e=>s.keyAction("yaml"))},null,544),[[d,["y"],void 0,{once:!0}]]),s._showBulkActions?(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("button",{key:0,class:"hide",onShortkey:t[3]||(t[3]=e=>s.keyAction("remove"))},null,544)),[[d,["del"],void 0,{once:!0}]]):(0,r.createCommentVNode)("",!0),s._showBulkActions?(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("button",{key:1,class:"hide",onShortkey:t[4]||(t[4]=e=>s.keyAction("remove"))},null,544)),[[d,["backspace"],void 0,{once:!0}]]):(0,r.createCommentVNode)("",!0)])),_:2},[s.showGrouping?{name:"header-middle",fn:(0,r.withCtx)((()=>[(0,r.renderSlot)(e.$slots,"more-header-middle"),(0,r.createVNode)(l,{value:s.group,"onUpdate:value":t[0]||(t[0]=e=>s.group=e),options:s.groupOptions},null,8,["value","options"])])),key:"0"}:void 0,s.showGrouping?{name:"header-right",fn:(0,r.withCtx)((()=>[(0,r.renderSlot)(e.$slots,"header-right")])),key:"1"}:void 0,(0,r.renderList)(e.$slots,((t,n)=>({name:n,fn:(0,r.withCtx)((t=>[(0,r.renderSlot)(e.$slots,n,(0,r.normalizeProps)((0,r.guardReactiveProps)(t)))]))})))]),1040,["headers","rows","loading","alt-loading","group-by","group","group-options","search","paging-params","paging-label","rows-per-page","row-actions","table-actions","overflow-x","overflow-y","get-custom-detail-link","has-advanced-filtering","adv-filter-hide-labels-as-cols","adv-filter-prevent-filtering-labels","key-field","sortGeneration","sort-generation-fn","use-query-params-for-simple-filtering","force-update-live-and-delayed","external-pagination-enabled","external-pagination-result","mandatory-sort","onClickedActionButton"])}var a=n(25443),s=n(65852),l=n(97538),c=n(70104),u=n(82198),d=n(37386),h=n(24759),p=n(99855),f=n(37255);const m="namespace",g=(e,t)=>{if(!e)return null;const n=e.id;let r=n;const i=t.getters["currentStore"](n),o=t.getters[`${i}/currentGeneration`]?.(n);o&&(r+=`/${o}`);const a=t.getters["activeNamespaceCacheKey"];return a?`${r}/${a}`:r};var v={name:"ResourceTable",emits:["clickedActionButton"],components:{ButtonGroup:c.A,SortableTable:u.A},props:{schema:{type:Object,default:null},rows:{type:Array,required:!0},loading:{type:Boolean,required:!1},altLoading:{type:Boolean,required:!1},keyField:{type:String,default:"_key"},headers:{type:Array,default:null},groupBy:{type:String,default:null},namespaced:{type:Boolean,default:null},search:{type:Boolean,default:!0},tableActions:{type:[Boolean,null],default:null},pagingLabel:{type:String,default:"sortableTable.paging.resource"},pagingParams:{type:Object,default:null},rowActions:{type:Boolean,default:!0},groupable:{type:Boolean,default:null},groupTooltip:{type:String,default:"resourceTable.groupBy.namespace"},overflowX:{type:Boolean,default:!1},overflowY:{type:Boolean,default:!1},sortGenerationFn:{type:Function,default:null},getCustomDetailLink:{type:Function,default:null},ignoreFilter:{type:Boolean,default:!1},hasAdvancedFiltering:{type:Boolean,default:!1},advFilterHideLabelsAsCols:{type:Boolean,default:!1},advFilterPreventFilteringLabels:{type:Boolean,default:!1},useQueryParamsForSimpleFiltering:{type:Boolean,default:!1},forceUpdateLiveAndDelayed:{type:Number,default:0},externalPaginationEnabled:{type:Boolean,default:!1},externalPaginationResult:{type:Object,default:null},rowsPerPage:{type:Number,default:null}},mounted(){window.addEventListener("keyup",this.handleEnterKeyPress)},beforeUnmount(){window.removeEventListener("keyup",this.handleEnterKeyPress)},data(){const e=this.schema?.id?this.$store.getters["currentStore"](this.schema.id):void 0;return{inStore:e,sortGeneration:void 0}},watch:{filteredRows:{handler(){this.currentProduct.showWorkspaceSwitcher&&(this.sortGeneration=this.safeSortGenerationFn(this.schema,this.$store))},immediate:!0}},computed:{options(){return this.$store.getters["type-map/optionsFor"](this.schema,this.externalPaginationEnabled)},_listGroupMapped(){return this.options?.listGroups?.reduce(((e,t)=>(e[t.value]=t,e)),{})},_mandatorySort(){return this.options?.listMandatorySort},...(0,a.L8)(["currentProduct"]),isNamespaced(){return null!==this.namespaced?this.namespaced:!!(0,s.Jt)(this.schema,"attributes.namespaced")},showNamespaceColumn(){const e="namespace"===this.group,t=!this.showGrouping||!e;return t},_showBulkActions(){if(null!==this.tableActions)return this.tableActions;if(this.schema){const e=this.$store.getters["type-map/hideBulkActionsFor"](this.schema);return!e}return!1},_headers(){let e;const t=this.showNamespaceColumn;if(e=this.headers?this.headers.slice():this.$store.getters["type-map/headersFor"](this.schema,this.externalPaginationEnabled),this.$store.$plugin?.getUIConfig){const t=(0,f.A)(this,p.c7.TABLE_COL,p.W3.RESOURCE,this.$route);let n=e.length;if(e.length>0){const t=e.findIndex((e=>e.name===d.K.name));if(t>=0)n=t;else{const t=e.findIndex((e=>(!e.label||!e.label?.trim())&&(!e.labelKey||!e.labelKey?.trim())));t>=0&&(n=t)}}t.forEach((t=>{!t.value&&t.getValue&&(t.value=t.getValue),e.splice(n,0,t)}))}if(!t){const t=e.findIndex((e=>e.name===d.CU.name));t>=0&&e.splice(t,1)}const n=this._listGroupMapped?.[this.group];if(n?.hideColumn){const t=e.findIndex((e=>e.name===n.hideColumn));t>=0&&e.splice(t,1)}return e},filteredRows(){const e=this.$store.getters["isAllNamespaces"];if(!this.isNamespaced||this.ignoreFilter||this.externalPaginationEnabled||e&&!this.currentProduct?.hideSystemResources||this.inStore&&this.$store.getters[`${this.inStore}/haveNamespace`](this.schema.id)?.length)return this.rows||[];const t=this.$store.getters["namespaces"]();if(!this.rows)return[];const n=this.$store.getters["haveAllNamespace"];return this.rows.filter((e=>this.currentProduct?.hideSystemResources&&this.isNamespaced?!!t[e.metadata.namespace]&&!e.isSystemResource:!this.isNamespaced||(!!n||!!t[e.metadata.namespace])))},_group:(0,l.AN)(l.EI),group:{get(){const e=this.groupOptions.find((e=>e.value===this._group));return e?this._group:this.groupOptions.find((e=>e.value===m))?m:this.groupOptions[0]?.value||m},set(e){this._group=e}},showGrouping(){if(null===this.groupable){const e=this.$store.getters["isMultipleNamespaces"]&&this.isNamespaced,t=!!this.options?.listGroups?.length;return e||t}return this.groupable||!1},computedGroupBy(){if(this.groupBy)return this.groupBy;if("namespace"===this.group&&this.showGrouping)return"groupByLabel";const e=this._listGroupMapped?.[this.group];return e?.field?e.field:null},groupOptions(){if(this.options?.listGroupsWillOverride&&this.options?.listGroups?.length)return this.options?.listGroups;const e=[{tooltipKey:"resourceTable.groupBy.none",icon:"icon-list-flat",value:"none"}];return this.options?.hiddenNamespaceGroupButton||e.push({tooltipKey:this.groupTooltip,icon:"icon-folder",value:"namespace"}),this.options?.listGroups?.length?e.concat(this.options.listGroups):e},parsedPagingParams(){return this.pagingParams?this.pagingParams:this.schema?{singularLabel:this.$store.getters["type-map/labelFor"](this.schema),pluralLabel:this.$store.getters["type-map/labelFor"](this.schema,99)}:{singularLabel:"",pluralLabel:""}}},methods:{keyAction(e){const t=this.$refs.table;if(!t)return;const n=t.selectedRows;if("remove"!==e){if(1===n.length)switch(e){case"detail":n[0].goToDetail();break;case"edit":n[0].goToEdit();break;case"yaml":n[0].goToViewYaml();break}}else{const e=(0,h.jq)(t.availableActions,"action","promptRemove");e&&(t.setBulkActionOfInterest(e),t.applyTableAction(e))}},clearSelection(){this.$refs.table.clearSelection()},safeSortGenerationFn(){return this.sortGenerationFn?this.sortGenerationFn(this.schema,this.$store):g(this.schema,this.$store)},handleActionButtonClick(e){this.$emit("clickedActionButton",e)},handleEnterKeyPress(e){"Enter"===e.key&&this.keyAction("detail")}}},y=n(47433);const b=(0,y.A)(v,[["render",o]]);var _=b},90736:function(e,t,n){"use strict";n.d(t,{A:function(){return w}});var r=n(9274);const i={class:"root resource-yaml flex-content"},o=["disabled"];function a(e,t,n,a,s,l){const c=(0,r.resolveComponent)("YamlEditor"),u=(0,r.resolveComponent)("FileSelector"),d=(0,r.resolveComponent)("t"),h=(0,r.resolveComponent)("Footer");return(0,r.openBlock)(),(0,r.createElementBlock)("div",i,[(0,r.createVNode)(c,{ref:"yamleditor",value:s.currentYaml,"onUpdate:value":t[0]||(t[0]=e=>s.currentYaml=e),"initial-yaml-values":s.initialYaml,class:"yaml-editor flex-content","editor-mode":l.editorMode,onOnReady:l.onReady},null,8,["value","initial-yaml-values","editor-mode","onOnReady"]),(0,r.renderSlot)(e.$slots,"yamlFooter",{currentYaml:s.currentYaml,showPreview:s.showPreview,yamlPreview:l.preview,yamlSave:l.save,yamlUnpreview:l.unpreview,canDiff:l.canDiff},(()=>[n.showFooter?((0,r.openBlock)(),(0,r.createBlock)(h,{key:0,class:(0,r.normalizeClass)(["footer",{edit:!l.isView}]),mode:n.mode,errors:s.errors,onSave:l.save,onDone:l.done},(0,r.createSlots)({_:2},[l.isView?void 0:{name:"left",fn:(0,r.withCtx)((()=>[(0,r.createVNode)(u,{class:"btn role-secondary",label:e.t("generic.readFromFile"),onSelected:l.onFileSelected},null,8,["label","onSelected"])])),key:"0"},l.isView?void 0:{name:"middle",fn:(0,r.withCtx)((()=>[s.showPreview?((0,r.openBlock)(),(0,r.createElementBlock)("button",{key:0,type:"button",class:"btn role-secondary",onClick:t[1]||(t[1]=(...e)=>l.unpreview&&l.unpreview(...e))},[(0,r.createVNode)(d,{k:"resourceYaml.buttons.continue"})])):n.offerPreview?((0,r.openBlock)(),(0,r.createElementBlock)("button",{key:1,disabled:!l.canDiff,type:"button",class:"btn role-secondary",onClick:t[2]||(t[2]=(...e)=>l.preview&&l.preview(...e))},[(0,r.createVNode)(d,{k:"resourceYaml.buttons.diff"})],8,o)):(0,r.createCommentVNode)("",!0)])),key:"1"}]),1032,["class","mode","errors","onSave","onDone"])):(0,r.createCommentVNode)("",!0)]),!0)])}var s=n(20246),l=n.n(s),c=n(89893),u=n(58782),d=n(71802),h=n(71445),p=n(78359),f=n(98258),m=n(75040),g=n(23443),v=n(71898),y={emits:["error"],components:{Footer:d.A,FileSelector:u.A,YamlEditor:c.A},props:{mode:{type:String,required:!0},value:{type:Object,required:!0},initialYamlForDiff:{type:String,default:null},yaml:{type:String,required:!0},doneRoute:{type:[String,Object],default:null},offerPreview:{type:Boolean,default:!0},parentParams:{type:Object,default:null},doneOverride:{type:[Function,Object],default:null},showFooter:{type:Boolean,default:!0},applyHooks:{type:Function,default:null}},data(){return this.$router.applyQuery({[m.$y]:m.xz}),{initialYaml:this.initialYamlForDiff||this.yaml,currentYaml:this.yaml,showPreview:!1,errors:null,cm:null,initialReady:!0}},computed:{schema(){const e=this.$store.getters["currentStore"](this.value.type);return this.$store.getters[`${e}/schemaFor`](this.value.type)},isCreate(){return this.mode===m.YQ},isView(){return this.mode===m.nW},isEdit(){return this.mode===m.G5},editorMode(){return this.$route.query.mode===m.nW||this.isView&&(this.$route.query.mode!==m.G5||this.$route.query.mode!==m.nW)?c.j.VIEW_CODE:this.showPreview?c.j.DIFF_CODE:c.j.EDIT_CODE},canDiff(){return this.initialYaml!==this.currentYaml}},watch:{yaml(e){this.mode===m.nW&&(this.currentYaml=e)},mode(e,t){e===m.YQ&&t===m.nW&&(this.currentYaml=this.value.cleanYaml(this.yaml,e))}},methods:{onInput(e){this.currentYaml=e,this.onReady(this.cm)},onReady(e){if(!this.initialReady)return;this.initialReady=!1,this.cm=e,this.isEdit&&e.foldLinesMatching(/^status:\s*$/);try{const t=l().load(this.currentYaml),n=Object.keys(t?.metadata?.annotations||{}),r=h.VT.map((e=>(0,p.OF)(e)));let i=!1;for(const e of n){if(i)break;for(const t of r)if(e.match(t)){i=!0;break}}i&&e.foldLinesMatching(/^\s+annotations:\s*$/)}catch(n){}e.foldLinesMatching(/managedFields/),this.value?.yamlFolding&&this.value.yamlFolding.forEach((t=>e.foldYaml(t)));const t=e.getMode().fold;e.getMode().fold="yamlcomments",e.execCommand("foldAll"),e.getMode().fold=t},updateValue(e){this.$refs.yamleditor.updateValue(e)},preview(){this.updateValue(this.currentYaml),this.showPreview=!0,this.$router.applyQuery({[m.$y]:m.Qp})},unpreview(){this.showPreview=!1,this.$router.applyQuery({[m.$y]:m.xz})},async save(e){const t=this.value.yamlForSave(this.currentYaml)||this.currentYaml;try{this.applyHooks&&await this.applyHooks(g.Fm);try{await this.value.saveYaml(t)}catch(r){return n.call(this,r)}this.applyHooks&&await this.applyHooks(g.Mz),e(!0),this.done()}catch(r){return n.call(this,r)}function n(t){if(t&&t.response&&t.response.data){const e=t.response.data;e&&e.message?this.errors=[e.message]:this.errors=[t]}else this.errors=[t];e(!1),this.$emit("error",(0,v.rz)(t))}},done(){if(this.doneOverride)return"function"===typeof this.doneOverride?this.doneOverride():this.$router.replace(this.doneOverride);this.doneRoute&&("object"!==(0,f.QP)(this.doneRoute)?this.$router.replace({name:this.doneRoute,params:{resource:this.value.type}}):this.$router.replace(this.doneRoute))},onFileSelected(e){const t=this.$refs.yamleditor;t&&t.updateValue(e)}}},b=(n(92229),n(49699),n(47433));const _=(0,b.A)(y,[["render",a],["__scopeId","data-v-19e34c00"]]);var w=_},84036:function(e,t,n){"use strict";n.d(t,{A:function(){return g}});var r=n(9274);const i=e=>((0,r.pushScopeId)("data-v-2213d58b"),e=e(),(0,r.popScopeId)(),e),o={key:0,class:"simple-box","data-testid":"simple-box-container"},a={key:0,class:"top"},s={key:0,"data-testid":"simple-box-title"},l=i((()=>(0,r.createElementVNode)("i",{class:"icon icon-close"},null,-1))),c=[l],u={class:"content"};function d(e,t,n,i,l,d){return e.shown?((0,r.openBlock)(),(0,r.createElementBlock)("div",o,[n.title||n.canClose||e.$slots.title?((0,r.openBlock)(),(0,r.createElementBlock)("div",a,[(0,r.renderSlot)(e.$slots,"title",{},(()=>[n.title?((0,r.openBlock)(),(0,r.createElementBlock)("h2",s,(0,r.toDisplayString)(n.title),1)):(0,r.createCommentVNode)("",!0)]),!0),n.canClose||e.pref?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,class:"close-button","data-testid":"simple-box-close",onClick:t[0]||(t[0]=e=>d.closeBox(e))},c)):(0,r.createCommentVNode)("",!0)])):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("div",u,[(0,r.renderSlot)(e.$slots,"default",{},void 0,!0)])])):(0,r.createCommentVNode)("",!0)}var h=n(46257),p={name:"SimpleBox",emits:["close"],mixins:[h.A],props:{title:{type:String,default:null},canClose:{type:Boolean,default:!1}},methods:{closeBox(e){this.hide(),this.$emit("close",e)}}},f=(n(77393),n(3831),n(47433));const m=(0,f.A)(p,[["render",d],["__scopeId","data-v-2213d58b"]]);var g=m},82198:function(e,t,n){"use strict";n.d(t,{A:function(){return Mt}});var r=n(9274);const i=e=>((0,r.pushScopeId)("data-v-0132c03a"),e=e(),(0,r.popScopeId)(),e),o=["data-testid"],a=["id","disabled","data-testid","onClick","onMouseover"],s=["disabled"],l=i((()=>(0,r.createElementVNode)("i",{class:"icon icon-gear"},null,-1))),c=i((()=>(0,r.createElementVNode)("i",{class:"ml-10 icon icon-chevron-down"},null,-1))),u={class:"list-unstyled menu"},d=["onClick","onMouseover"],h={key:0,class:"middle"},p={key:1,class:"search row","data-testid":"search-box-filter-row"},f={key:0,class:"advanced-filters-applied"},m={class:"label"},g=["onClick"],v=i((()=>(0,r.createElementVNode)("div",{class:"bg"},null,-1))),y={key:2,ref:"advanced-filter-group",class:"advanced-filter-group"},b={class:"advanced-filter-container"},_=["placeholder"],w={class:"middle-block"},E={class:"bottom-block"},S=["disabled"],x=["placeholder"],k={key:1},A={key:2},N=["colspan"],T={class:"data-loading"},C=i((()=>(0,r.createElementVNode)("i",{class:"icon-spin icon icon-spinner"},null,-1))),R={key:3},O={class:"no-rows"},I=["colspan"],D={key:4},L={class:"no-results"},P=["colspan"],M={class:"group-row"},F=["colspan"],B={class:"group-tab"},$=["data-testid","data-node-id","data-cant-run-bulk-action-of-interest"],j={key:0,class:"row-check",align:"middle"},U={key:1,class:"row-expand",align:"middle"},V=["onClick"],K=["data-title","data-testid","align","width"],H={key:4,class:"text-muted"},G={key:2,align:"middle"},z=["data-testid"],X={key:0,class:"row-check",align:"middle"},q=["colspan"],W={key:0,class:"paging"},Y=["disabled"],Q=i((()=>(0,r.createElementVNode)("i",{class:"icon icon-chevron-beginning"},null,-1))),J=[Q],Z=["disabled"],ee=i((()=>(0,r.createElementVNode)("i",{class:"icon icon-chevron-left"},null,-1))),te=[ee],ne=["disabled"],re=i((()=>(0,r.createElementVNode)("i",{class:"icon icon-chevron-right"},null,-1))),ie=[re],oe=["disabled"],ae=i((()=>(0,r.createElementVNode)("i",{class:"icon icon-chevron-end"},null,-1))),se=[ae];function le(e,t,n,i,Q,ee){const re=(0,r.resolveComponent)("ActionDropdown"),ae=(0,r.resolveComponent)("AsyncButton"),le=(0,r.resolveComponent)("LabeledSelect"),ce=(0,r.resolveComponent)("THead"),ue=(0,r.resolveComponent)("t"),de=(0,r.resolveComponent)("Checkbox"),he=(0,r.resolveComponent)("ButtonMultiAction"),pe=(0,r.resolveDirective)("clean-html"),fe=(0,r.resolveDirective)("clean-tooltip"),me=(0,r.resolveDirective)("close-popper"),ge=(0,r.resolveDirective)("trim-whitespace"),ve=(0,r.resolveDirective)("shortkey");return(0,r.openBlock)(),(0,r.createElementBlock)("div",{ref:"container","data-testid":n.componentTestid+"-list-container"},[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)([{titled:e.$slots.title&&e.$slots.title.length},"sortable-table-header"])},[(0,r.renderSlot)(e.$slots,"title",{},void 0,!0),ee.showHeaderRow?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,class:(0,r.normalizeClass)(["fixed-header-actions",{button:!!e.$slots["header-button"],"advanced-filtering":e.hasAdvancedFiltering}])},[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)([e.bulkActionsClass,"bulk"])},[(0,r.renderSlot)(e.$slots,"header-left",{},(()=>[n.tableActions?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:0},[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.availableActions,(i=>(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("button",{id:i.action,key:i.action,type:"button",class:(0,r.normalizeClass)(["btn role-primary",{[e.bulkActionClass]:!0}]),disabled:!i.enabled,"data-testid":n.componentTestid+"-"+i.action,onClick:t=>e.applyTableAction(i,null,t),onMouseover:e=>ee.setBulkActionOfInterest(i),onMouseleave:t[0]||(t[0]=e=>ee.setBulkActionOfInterest(null))},[i.icon?((0,r.openBlock)(),(0,r.createElementBlock)("i",{key:0,class:(0,r.normalizeClass)(i.icon)},null,2)):(0,r.createCommentVNode)("",!0),(0,r.withDirectives)((0,r.createElementVNode)("span",null,null,512),[[pe,i.label]])],42,a)),[[fe,e.actionTooltip]]))),128)),(0,r.createVNode)(re,{class:(0,r.normalizeClass)([e.bulkActionsDropdownClass,"bulk-actions-dropdown"]),"disable-button":!e.selectedRows.length,size:"sm"},{"button-content":(0,r.withCtx)((()=>[(0,r.createElementVNode)("button",{ref:"actionDropDown",class:"btn bg-primary mr-0",disabled:!e.selectedRows.length},[l,(0,r.createElementVNode)("span",null,(0,r.toDisplayString)(e.t("sortableTable.bulkActions.collapsed.label")),1),c],8,s)])),"popover-content":(0,r.withCtx)((()=>[(0,r.createElementVNode)("ul",u,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.hiddenActions,((n,i)=>(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("li",{key:i,class:(0,r.normalizeClass)({disabled:!n.enabled}),onClick:t=>e.applyTableAction(n,null,t),onMouseover:e=>ee.setBulkActionOfInterest(n),onMouseleave:t[1]||(t[1]=e=>ee.setBulkActionOfInterest(null))},[n.icon?((0,r.openBlock)(),(0,r.createElementBlock)("i",{key:0,class:(0,r.normalizeClass)(n.icon)},null,2)):(0,r.createCommentVNode)("",!0),(0,r.withDirectives)((0,r.createElementVNode)("span",null,null,512),[[pe,n.label]])],42,d)),[[me],[fe,{content:e.actionTooltip,placement:"right"}]]))),128))])])),_:1},8,["class","disable-button"]),e.selectedRowsText?((0,r.openBlock)(),(0,r.createElementBlock)("label",{key:0,class:(0,r.normalizeClass)([e.bulkActionAvailabilityClass,"action-availability"])},(0,r.toDisplayString)(e.selectedRowsText),3)):(0,r.createCommentVNode)("",!0)],64)):(0,r.createCommentVNode)("",!0)]),!0)],2),!e.hasAdvancedFiltering&&e.$slots["header-middle"]?((0,r.openBlock)(),(0,r.createElementBlock)("div",h,[(0,r.renderSlot)(e.$slots,"header-middle",{},void 0,!0)])):(0,r.createCommentVNode)("",!0),n.search||e.hasAdvancedFiltering||e.isTooManyItemsToAutoUpdate||e.$slots["header-right"]?((0,r.openBlock)(),(0,r.createElementBlock)("div",p,[e.hasAdvancedFiltering?((0,r.openBlock)(),(0,r.createElementBlock)("ul",f,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.advancedFilteringValues,((t,n)=>((0,r.openBlock)(),(0,r.createElementBlock)("li",{key:n},[(0,r.createElementVNode)("span",m,(0,r.toDisplayString)(`"${t.value}" ${e.t("sortableTable.in")} ${t.label}`),1),(0,r.createElementVNode)("span",{class:"cross",onClick:t=>e.clearAdvancedFilter(n)},"✕",8,g),v])))),128))])):(0,r.createCommentVNode)("",!0),(0,r.renderSlot)(e.$slots,"header-right",{},void 0,!0),e.isTooManyItemsToAutoUpdate?((0,r.openBlock)(),(0,r.createBlock)(ae,{key:1,class:"manual-refresh",mode:"manual-refresh","current-phase":Q.refreshButtonPhase,onClick:e.debouncedRefreshTableData},null,8,["current-phase","onClick"])):(0,r.createCommentVNode)("",!0),e.hasAdvancedFiltering?((0,r.openBlock)(),(0,r.createElementBlock)("div",y,[(0,r.createElementVNode)("button",{class:"btn role-primary",onClick:t[2]||(t[2]=t=>{e.advancedFilteringVisibility=!e.advancedFilteringVisibility})},(0,r.toDisplayString)(e.t("sortableTable.addFilter")),1),(0,r.withDirectives)((0,r.createElementVNode)("div",b,[(0,r.withDirectives)((0,r.createElementVNode)("input",{ref:"advancedSearchQuery","onUpdate:modelValue":t[3]||(t[3]=t=>e.advFilterSearchTerm=t),type:"search",class:"advanced-search-box",placeholder:e.t("sortableTable.filterFor")},null,8,_),[[r.vModelText,e.advFilterSearchTerm]]),(0,r.createElementVNode)("div",w,[(0,r.createElementVNode)("span",null,(0,r.toDisplayString)(e.t("sortableTable.in")),1),(0,r.createVNode)(le,{value:e.advFilterSelectedProp,"onUpdate:value":t[4]||(t[4]=t=>e.advFilterSelectedProp=t),class:"filter-select",clearable:!0,options:e.advFilterSelectOptions,disabled:!1,searchable:!1,mode:"edit",multiple:!1,taggable:!1,placeholder:e.t("sortableTable.selectCol"),onSelecting:t[5]||(t[5]=t=>e.advFilterSelectedLabel=t.label)},null,8,["value","options","placeholder"])]),(0,r.createElementVNode)("div",E,[(0,r.createElementVNode)("button",{class:"btn role-secondary",disabled:!e.advancedFilteringValues.length,onClick:t[6]||(t[6]=(...t)=>e.clearAllAdvancedFilters&&e.clearAllAdvancedFilters(...t))},(0,r.toDisplayString)(e.t("sortableTable.resetFilters")),9,S),(0,r.createElementVNode)("button",{class:"btn role-primary",onClick:t[7]||(t[7]=(...t)=>e.addAdvancedFilter&&e.addAdvancedFilter(...t))},(0,r.toDisplayString)(e.t("sortableTable.add")),1)])],512),[[r.vShow,e.advancedFilteringVisibility]])],512)):n.search?(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("input",{key:3,ref:"searchQuery","onUpdate:modelValue":t[8]||(t[8]=e=>Q.eventualSearchQuery=e),type:"search",class:"input-sm search-box",placeholder:e.t("sortableTable.search")},null,8,x)),[[r.vModelText,Q.eventualSearchQuery]]):(0,r.createCommentVNode)("",!0),(0,r.renderSlot)(e.$slots,"header-button",{},void 0,!0)])):(0,r.createCommentVNode)("",!0)],2)):(0,r.createCommentVNode)("",!0)],2),(0,r.createElementVNode)("table",{class:(0,r.normalizeClass)(["sortable-table",ee.classObject]),width:"100%"},[n.showHeaders?((0,r.openBlock)(),(0,r.createBlock)(ce,{key:0,"label-for":ee.labelFor,columns:ee.columns,group:e.group,"group-options":e.advGroupOptions,"has-advanced-filtering":e.hasAdvancedFiltering,"adv-filter-hide-labels-as-cols":e.advFilterHideLabelsAsCols,"table-actions":n.tableActions,"table-cols-options":e.columnOptions,"row-actions":n.rowActions,"sub-expand-column":n.subExpandColumn,"row-actions-width":n.rowActionsWidth,"how-much-selected":e.howMuchSelected,"sort-by":e.sortBy,"default-sort-by":e._defaultSortBy,descending:e.descending,"no-rows":ee.noRows,loading:Q.isLoading&&!Q.loadingDelay,"no-results":ee.noResults,onOnToggleAll:e.onToggleAll,onOnSortChange:e.changeSort,onColVisibilityChange:e.changeColVisibility,onGroupValueChange:t[9]||(t[9]=t=>e.$emit("group-value-change",t)),onUpdateColsOptions:e.updateColsOptions},null,8,["label-for","columns","group","group-options","has-advanced-filtering","adv-filter-hide-labels-as-cols","table-actions","table-cols-options","row-actions","sub-expand-column","row-actions-width","how-much-selected","sort-by","default-sort-by","descending","no-rows","loading","no-results","onOnToggleAll","onOnSortChange","onColVisibilityChange","onUpdateColsOptions"])):(0,r.createCommentVNode)("",!0),Q.isLoading&&!Q.loadingDelay?((0,r.openBlock)(),(0,r.createElementBlock)("div",k)):Q.isLoading&&!n.altLoading?((0,r.openBlock)(),(0,r.createElementBlock)("tbody",A,[(0,r.renderSlot)(e.$slots,"loading",{},(()=>[(0,r.createElementVNode)("tr",null,[(0,r.createElementVNode)("td",{colspan:ee.fullColspan},[(0,r.createElementVNode)("div",T,[C,(0,r.createVNode)(ue,{k:"generic.loading",raw:!0})])],8,N)])]),!0)])):ee.noRows?((0,r.openBlock)(),(0,r.createElementBlock)("tbody",R,[(0,r.renderSlot)(e.$slots,"no-rows",{},(()=>[(0,r.createElementVNode)("tr",O,[(0,r.createElementVNode)("td",{colspan:ee.fullColspan},[n.showNoRows?((0,r.openBlock)(),(0,r.createBlock)(ue,{key:0,k:n.noRowsKey},null,8,["k"])):(0,r.createCommentVNode)("",!0)],8,I)])]),!0)])):ee.noResults?((0,r.openBlock)(),(0,r.createElementBlock)("tbody",D,[(0,r.renderSlot)(e.$slots,"no-results",{},(()=>[(0,r.createElementVNode)("tr",L,[(0,r.createElementVNode)("td",{colspan:ee.fullColspan,class:"text-center"},[(0,r.createVNode)(ue,{k:n.noDataKey},null,8,["k"])],8,P)])]),!0)])):((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,{key:5},(0,r.renderList)(ee.displayRows,(i=>((0,r.openBlock)(),(0,r.createElementBlock)("tbody",{key:i.key,class:(0,r.normalizeClass)({group:n.groupBy})},[n.groupBy?(0,r.renderSlot)(e.$slots,"group-row",{key:0,group:i,fullColspan:ee.fullColspan},(()=>[(0,r.createElementVNode)("tr",M,[(0,r.createElementVNode)("td",{colspan:ee.fullColspan},[(0,r.renderSlot)(e.$slots,"group-by",{group:i.grp},(()=>[(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("div",B,[(0,r.createTextVNode)((0,r.toDisplayString)(i.ref),1)])),[[ge]])]),!0)],8,F)])]),!0):(0,r.createCommentVNode)("",!0),((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(i.rows,((i,o)=>((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:o},[(0,r.renderSlot)(e.$slots,"main-row",{row:i.row},(()=>[(0,r.renderSlot)(e.$slots,"main-row:"+(i.row.mainRowKey||o),{fullColspan:ee.fullColspan},(()=>[(0,r.createElementVNode)("tr",{class:(0,r.normalizeClass)(["main-row",{"has-sub-row":i.showSubRow}]),"data-testid":n.componentTestid+"-"+o+"-row","data-node-id":i.key,"data-cant-run-bulk-action-of-interest":Q.actionOfInterest&&!i.canRunBulkActionOfInterest},[n.tableActions?((0,r.openBlock)(),(0,r.createElementBlock)("td",j,[(0,r.createTextVNode)((0,r.toDisplayString)(i.mainRowKey),1),(0,r.createVNode)(de,{class:"selection-checkbox","data-node-id":i.key,"data-testid":n.componentTestid+"-"+o+"-checkbox",value:e.selectedRows.includes(i.row)},null,8,["data-node-id","data-testid","value"])])):(0,r.createCommentVNode)("",!0),n.subExpandColumn?((0,r.openBlock)(),(0,r.createElementBlock)("td",U,[(0,r.createElementVNode)("i",{"data-title":"Toggle Expand",class:(0,r.normalizeClass)({icon:!0,"icon-chevron-right":!Q.expanded[i.row[n.keyField]],"icon-chevron-down":!!Q.expanded[i.row[n.keyField]]}),onClick:(0,r.withModifiers)((e=>ee.toggleExpand(i.row)),["stop"])},null,10,V)])):(0,r.createCommentVNode)("",!0),((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(i.columns,((t,a)=>(0,r.renderSlot)(e.$slots,"col:"+t.col.name,{key:a,row:i.row,col:t.col,dt:ee.dt,expanded:Q.expanded,rowKey:i.key},(()=>[(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("td",{key:t.col.name,"data-title":t.col.label,"data-testid":`sortable-cell-${o}-${a}`,align:t.col.align||"left",class:(0,r.normalizeClass)({["col-"+t.dasherize]:!!t.col.formatter,[t.col.breakpoint]:!!t.col.breakpoint,["skip-select"]:t.col.skipSelect}),width:t.col.width},[(0,r.renderSlot)(e.$slots,"cell:"+t.col.name,{row:i.row,col:t.col,value:t.value},(()=>[t.component&&t.needRef?((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(t.component),(0,r.mergeProps)({key:0,ref_for:!0,ref:"column",value:t.value,row:i.row,col:t.col},t.col.formatterOpts,{"row-key":i.key,"get-custom-detail-link":n.getCustomDetailLink}),null,16,["value","row","col","row-key","get-custom-detail-link"])):t.component?((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(t.component),(0,r.mergeProps)({key:1,value:t.value,row:i.row,col:t.col},t.col.formatterOpts,{"row-key":i.key}),null,16,["value","row","col","row-key"])):t.col.formatter?((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(t.col.formatter),(0,r.mergeProps)({key:2,value:t.value,row:i.row,col:t.col},t.col.formatterOpts,{"row-key":i.key}),null,16,["value","row","col","row-key"])):""!==t.value?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:3},[(0,r.createTextVNode)((0,r.toDisplayString)(t.formatted),1)],64)):t.col.dashIfEmpty?((0,r.openBlock)(),(0,r.createElementBlock)("span",H,"—")):(0,r.createCommentVNode)("",!0)]),!0)],10,K)),[[r.vShow,!e.hasAdvancedFiltering||e.hasAdvancedFiltering&&t.col.isColVisible]])]),!0))),128)),n.rowActions?((0,r.openBlock)(),(0,r.createElementBlock)("td",G,[(0,r.renderSlot)(e.$slots,"row-actions",{row:i.row},(()=>[(0,r.createVNode)(he,{id:`actionButton+${o}+${i.row&&i.row.name?i.row.name:""}`,ref_for:!0,ref:`actionButton${o}`,"aria-haspopup":"true","aria-expanded":"false","data-testid":n.componentTestid+"-"+o+"-action-button",borderless:!0,onClick:e=>ee.handleActionButtonClick(o,e)},null,8,["id","data-testid","onClick"])]),!0)])):(0,r.createCommentVNode)("",!0)],10,$)]),!0)]),!0),i.showSubRow?(0,r.renderSlot)(e.$slots,"sub-row",{key:0,fullColspan:ee.fullColspan,row:i.row,subMatches:Q.subMatches,keyField:n.keyField,componentTestid:n.componentTestid,i:o,onRowMouseEnter:e.onRowMouseEnter,onRowMouseLeave:e.onRowMouseLeave},(()=>[i.row.stateDescription?((0,r.openBlock)(),(0,r.createElementBlock)("tr",{key:i.row[n.keyField]+"-description","data-testid":n.componentTestid+"-"+o+"-row-description",class:"state-description sub-row",onMouseenter:t[10]||(t[10]=(...t)=>e.onRowMouseEnter&&e.onRowMouseEnter(...t)),onMouseleave:t[11]||(t[11]=(...t)=>e.onRowMouseLeave&&e.onRowMouseLeave(...t))},[n.tableActions?((0,r.openBlock)(),(0,r.createElementBlock)("td",X)):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("td",{colspan:ee.fullColspan-(n.tableActions?1:0),class:(0,r.normalizeClass)({"text-error":i.row.stateObj.error})},(0,r.toDisplayString)(i.row.stateDescription),11,q)],40,z)):(0,r.createCommentVNode)("",!0)]),!0):(0,r.createCommentVNode)("",!0)],64)))),128))],2)))),128))],2),e.showPaging?((0,r.openBlock)(),(0,r.createElementBlock)("div",W,[(0,r.createElementVNode)("button",{type:"button",class:"btn btn-sm role-multi-action","data-testid":"pagination-first",disabled:1==e.page||n.loading,onClick:t[12]||(t[12]=t=>e.goToPage("first"))},J,8,Y),(0,r.createElementVNode)("button",{type:"button",class:"btn btn-sm role-multi-action","data-testid":"pagination-prev",disabled:1==e.page||n.loading,onClick:t[13]||(t[13]=t=>e.goToPage("prev"))},te,8,Z),(0,r.createElementVNode)("span",null,(0,r.toDisplayString)(e.pagingDisplay),1),(0,r.createElementVNode)("button",{type:"button",class:"btn btn-sm role-multi-action","data-testid":"pagination-next",disabled:e.page==e.totalPages||n.loading,onClick:t[14]||(t[14]=t=>e.goToPage("next"))},ie,8,ne),(0,r.createElementVNode)("button",{type:"button",class:"btn btn-sm role-multi-action","data-testid":"pagination-last",disabled:e.page==e.totalPages||n.loading,onClick:t[15]||(t[15]=t=>e.goToPage("last"))},se,8,oe)])):(0,r.createCommentVNode)("",!0),n.search?(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("button",{key:1,class:"hide",onShortkey:t[16]||(t[16]=e=>ee.focusSearch())},null,544)),[[ve,["/"],void 0,{once:!0}]]):(0,r.createCommentVNode)("",!0),n.tableActions?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:2},[(0,r.withDirectives)((0,r.createElementVNode)("button",{class:"hide",onShortkey:t[17]||(t[17]=e=>ee.focusNext(e))},null,544),[[ve,["j"]]]),(0,r.withDirectives)((0,r.createElementVNode)("button",{class:"hide",onShortkey:t[18]||(t[18]=e=>ee.focusPrevious(e))},null,544),[[ve,["k"]]]),(0,r.withDirectives)((0,r.createElementVNode)("button",{class:"hide",onShortkey:t[19]||(t[19]=e=>ee.focusNext(e,!0))},null,544),[[ve,["shift","j"]]]),(0,r.withDirectives)((0,r.createElementVNode)("button",{class:"hide",onShortkey:t[20]||(t[20]=e=>ee.focusPrevious(e,!0))},null,544),[[ve,["shift","k"]]]),(0,r.renderSlot)(e.$slots,"shortkeys",{},void 0,!0)],64)):(0,r.createCommentVNode)("",!0)],8,o)}var ce=n(25443),ue=n(71972),de=n.n(ue),he=n(15510),pe=n.n(he),fe=n(78359),me=n(65852),ge=n(24759),ve=n(3276),ye=n(1804);const be={class:"dropdown-button-group"},_e=["disabled"],we=(0,r.createElementVNode)("i",{class:"icon icon-chevron-down"},null,-1);function Ee(e,t,n,i,o,a){const s=(0,r.resolveComponent)("v-dropdown");return(0,r.openBlock)(),(0,r.createElementBlock)("div",be,[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["dropdown-button bg-primary",{"one-action":!n.dualAction,[a.buttonSize]:!0,disabled:n.disableButton}])},[(0,r.createVNode)(s,{placement:"bottom",container:!1,disabled:n.disableButton,flip:!1},{popper:(0,r.withCtx)((()=>[(0,r.renderSlot)(e.$slots,"popover-content")])),default:(0,r.withCtx)((()=>[(0,r.renderSlot)(e.$slots,"button-content",{buttonSize:a.buttonSize},(()=>[(0,r.createElementVNode)("button",{ref:"popoverButton",class:(0,r.normalizeClass)(["icon-container bg-primary no-left-border-radius",a.buttonSize]),disabled:n.disableButton,type:"button"},[(0,r.createTextVNode)(" Button "),we],10,_e)]))])),_:3},8,["disabled"])],2)])}var Se={name:"ActionDropdown",props:{size:{type:String,default:""},dualAction:{type:Boolean,default:!0},disableButton:{type:Boolean,default:!1}},computed:{buttonSize(){const{size:e}=this;let t;switch(e){case"":t="btn";break;case"xs":t="btn btn-xs";break;case"sm":t="btn btn-sm";break;case"lg":t="btn btn-lg";break;default:}return t}},methods:{hasSlot(e="default"){return!!this.$slots[e]||!!this.$slots.name()},togglePopover(){}}},xe=(n(67501),n(47433));const ke=(0,xe.A)(Se,[["render",Ee]]);var Ae=ke,Ne=n(32239),Te=n.n(Ne),Ce=n(52156),Re=n.n(Ce);const Oe=e=>((0,r.pushScopeId)("data-v-0e05d9a6"),e=e(),(0,r.popScopeId)(),e),Ie=["width"],De=["width"],Le=["align","width","onClick"],Pe={class:"content"},Me={key:0,class:"text-muted"},Fe={key:0,class:"sort"},Be={class:"icon icon-info not-filter-icon"},$e={class:"icon-stack"},je=Oe((()=>(0,r.createElementVNode)("i",{class:"icon icon-sort icon-stack-1x faded"},null,-1))),Ue={key:0,class:"icon icon-sort-down icon-stack-1x"},Ve={key:1,class:"icon icon-sort-up icon-stack-1x"},Ke=["width"],He={ref:"table-options",class:"table-options-group"},Ge=Oe((()=>(0,r.createElementVNode)("i",{class:"icon icon-actions"},null,-1))),ze=[Ge],Xe={key:0,class:"table-options-grouping"},qe={class:"table-options-col-subtitle"},We={class:"table-options-col-subtitle mb-20"},Ye=["width"];function Qe(e,t,n,i,o,a){const s=(0,r.resolveComponent)("Checkbox"),l=(0,r.resolveComponent)("LabeledSelect"),c=(0,r.resolveDirective)("clean-html"),u=(0,r.resolveDirective)("clean-tooltip");return(0,r.openBlock)(),(0,r.createElementBlock)("thead",null,[(0,r.createElementVNode)("tr",{class:(0,r.normalizeClass)({loading:n.loading,"top-aligned":a.hasColumnWithSubLabel})},[n.tableActions?((0,r.openBlock)(),(0,r.createElementBlock)("th",{key:0,width:n.checkWidth},[(0,r.createVNode)(s,{value:a.isAll,"onUpdate:value":t[0]||(t[0]=e=>a.isAll=e),class:"check","data-testid":"sortable-table_check_select_all",indeterminate:a.isIndeterminate,disabled:n.noRows||n.noResults},null,8,["value","indeterminate","disabled"])],8,Ie)):(0,r.createCommentVNode)("",!0),n.subExpandColumn?((0,r.openBlock)(),(0,r.createElementBlock)("th",{key:1,width:n.expandWidth},null,8,De)):(0,r.createCommentVNode)("",!0),((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(n.columns,(t=>(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("th",{key:t.name,align:t.align||"left",width:t.width,class:(0,r.normalizeClass)({sortable:t.sort,[t.breakpoint]:!!t.breakpoint}),onClick:(0,r.withModifiers)((e=>a.changeSort(e,t)),["prevent"])},[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["table-header-container",{"not-filterable":n.hasAdvancedFiltering&&!t.isFilter}])},[(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("div",Pe,[(0,r.withDirectives)((0,r.createElementVNode)("span",null,null,512),[[c,n.labelFor(t)]]),t.subLabel?((0,r.openBlock)(),(0,r.createElementBlock)("span",Me,(0,r.toDisplayString)(t.subLabel),1)):(0,r.createCommentVNode)("",!0)])),[[u,a.tooltip(t)]]),t.sort?((0,r.openBlock)(),(0,r.createElementBlock)("div",Fe,[(0,r.withDirectives)((0,r.createElementVNode)("i",Be,null,512),[[r.vShow,n.hasAdvancedFiltering&&!t.isFilter],[u,e.t("sortableTable.tableHeader.noFilter")]]),(0,r.createElementVNode)("span",$e,[je,a.isCurrent(t)&&!n.descending?((0,r.openBlock)(),(0,r.createElementBlock)("i",Ue)):(0,r.createCommentVNode)("",!0),a.isCurrent(t)&&n.descending?((0,r.openBlock)(),(0,r.createElementBlock)("i",Ve)):(0,r.createCommentVNode)("",!0)])])):(0,r.createCommentVNode)("",!0)],2)],10,Le)),[[r.vShow,!n.hasAdvancedFiltering||n.hasAdvancedFiltering&&t.isColVisible]]))),128)),n.rowActions&&n.hasAdvancedFiltering&&n.tableColsOptions.length?((0,r.openBlock)(),(0,r.createElementBlock)("th",{key:2,width:n.rowActionsWidth},[(0,r.createElementVNode)("div",He,[(0,r.createElementVNode)("button",{"aria-haspopup":"true","aria-expanded":"false",type:"button",class:"btn btn-sm role-multi-action table-options-btn",onClick:t[1]||(t[1]=(...e)=>a.tableColsOptionsClick&&a.tableColsOptionsClick(...e))},ze),(0,r.withDirectives)((0,r.createElementVNode)("div",{class:"table-options-container",style:(0,r.normalizeStyle)(o.tableColsMenuPosition)},[a.hasAdvGrouping?((0,r.openBlock)(),(0,r.createElementBlock)("div",Xe,[(0,r.createElementVNode)("span",qe,(0,r.toDisplayString)(e.t("sortableTable.tableHeader.groupBy"))+":",1),(0,r.createVNode)(l,{value:a.advGroup,"onUpdate:value":t[2]||(t[2]=e=>a.advGroup=e),class:"table-options-grouping-select",clearable:!0,options:n.groupOptions,disabled:!1,searchable:!1,mode:"edit",multiple:!1,taggable:!1},null,8,["value","options"])])):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("p",We,(0,r.toDisplayString)(e.t("sortableTable.tableHeader.show"))+": ",1),(0,r.createElementVNode)("ul",null,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(n.tableColsOptions,((e,t)=>(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("li",{key:t,class:(0,r.normalizeClass)({visible:!e.preventColToggle})},[(0,r.withDirectives)((0,r.createVNode)(s,{value:e.isColVisible,"onUpdate:value":[t=>e.isColVisible=t,t=>a.tableOptionsCheckbox(t,e.label)],class:"table-options-checkbox",label:e.label},null,8,["value","onUpdate:value","label"]),[[r.vShow,!e.preventColToggle]])],2)),[[r.vShow,e.isTableOption]]))),128))])],4),[[r.vShow,o.tableColsOptionsVisibility]])],512)],8,Ke)):n.rowActions?((0,r.openBlock)(),(0,r.createElementBlock)("th",{key:3,width:n.rowActionsWidth},null,8,Ye)):(0,r.createCommentVNode)("",!0)],2)])}var Je=n(82709);function Ze(e,t){if(e=e?.parentElement,!e)return null;const n=e.matches||e.matchesSelector;return n.call(e,t)?e:Ze(e,t)}const et="all",tt="some",nt="none";var rt={mounted(){const e=this.$el.querySelector("TABLE");this._onRowClickBound=this.onRowClick.bind(this),this._onRowMousedownBound=this.onRowMousedown.bind(this),this._onRowContextBound=this.onRowContext.bind(this),e.addEventListener("click",this._onRowClickBound),e.addEventListener("mousedown",this._onRowMousedownBound),e.addEventListener("contextmenu",this._onRowContextBound)},beforeUnmount(){const e=this.$el.querySelector("TABLE");e.removeEventListener("click",this._onRowClickBound),e.removeEventListener("mousedown",this._onRowMousedownBound),e.removeEventListener("contextmenu",this._onRowContextBound)},computed:{howMuchSelected(){const e=this.pagedRows.length,t=this.selectedRows.length;return t>=e&&e>0?et:t>0?tt:nt},bulkActionsForSelection(){let e=!1;const t=this.pagedRows,n=this.arrangedRows||t;let r=this.selectedRows;if(!this.selectedRows.length){if(!n)return[];const t=n[0];r=t?[t]:[],e=!0}const i={};for(const a of t)if(a.availableActions)for(const e of a.availableActions)e.bulkable&&ot(i,e,!1);for(const a of r)if(a.availableActions)for(const e of a.availableActions)e.bulkable&&e.enabled&&ot(i,e,!1);const o=at(i,e);return o.forEach((e=>{const t=this.selectedRows.some((t=>{const n=t.availableActions||[];return n.some((t=>t.action===e.action&&t.enabled))}));e.enabled=this.selectedRows.length>0&&t})),o.sort(((e,t)=>(t.weight||0)-(e.weight||0)))}},data(){return{selectedRows:[],prevNode:null}},watch:{pagedRows(){const e=this.pagedRows,t=[];for(const n of this.selectedRows)e.includes(n)||t.push(n);this.update([],t)}},methods:{onToggleAll(e){return e?(this.update(this.pagedRows,[]),!0):(this.update([],this.pagedRows),!1)},onRowMousedown(e){((0,Je._Z)(e)||this.isSelectionCheckbox(e.target))&&e.preventDefault()},onRowMouseEnter(e){const t=e.target.closest("TR");if(t.classList.contains("sub-row")){const e=t.previousElementSibling;e.classList.add("sub-row-hovered")}},onRowMouseLeave(e){const t=e.target.closest("TR");if(t.classList.contains("sub-row")){const e=t.previousElementSibling;e.classList.remove("sub-row-hovered")}},nodeForEvent(e){const t=e.target.tagName,n=e.target,r=n.closest(".actions");if(n.classList.contains("select-all-check"))return;if(!r&&("A"===t||"BUTTON"===t||Ze(n,".btn")))return;const i=e.target.closest("TR");return this.nodeForRow(i)},nodeForRow(e){if(e?.classList.contains("separator-row"))return;while(e&&!e.classList.contains("main-row"))e=e.previousElementSibling;if(!e)return;const t=e.dataset.nodeId;if(!t)return;const n=this.pagedRows.find((e=>(0,me.Jt)(e,this.keyField)===t));return n},async onRowClick(e){const t=this.nodeForEvent(e),n=e.target.closest("TD"),r=n?.classList.contains("skip-select");if(r)return;const i=this.selectedRows,o=this.isSelectionCheckbox(e.target)||n?.classList.contains("row-check"),a=n?.classList.contains("row-expand"),s=this.pagedRows;if(this.$emit("rowClick",e),!t)return;if(a)return void this.toggleExpand(t);const l=e.target.closest(".actions");if(l){let n=[t];if(this.mangleActionResources){const e=l.querySelector("i");e.classList.remove("icon-actions"),e.classList.add("icon-spinner"),e.classList.add("icon-spin");try{n=await this.mangleActionResources(n)}finally{e.classList.remove("icon-spinner"),e.classList.remove("icon-spin"),e.classList.add("icon-actions")}}return void this.$store.commit("action-menu/show",{resources:n,event:e,elem:l})}const c=i.includes(t);let u=this.prevNode;if(u&&s.includes(u)||(u=t),(0,Je.yC)(e))this.toggle(t);else if((0,Je._Z)(e)){const e=this.nodesBetween(u,t);c?this.update([],e):this.update(e,[])}else o?this.toggle(t):this.update([t],s);this.prevNode=t},async onRowContext(e){const t=this.nodeForEvent(e);if((0,Je.A0)(e))return;if(!t)return;e.preventDefault(),e.stopPropagation(),this.prevNode=t;const n=this.selectedRows.includes(t);n||this.update([t],this.selectedRows.slice());let r=this.selectedRows;this.mangleActionResources&&(r=await this.mangleActionResources(r)),this.$store.commit("action-menu/show",{resources:r,event:e})},keySelectRow(e,t=!1){const n=this.nodeForRow(e),r=this.pagedRows;n&&(t?this.update([n],[]):this.update([n],r),this.prevNode=n)},isSelectionCheckbox(e){return"INPUT"===e.tagName&&"checkbox"===e.type&&null!==e.closest(".selection-checkbox")},nodesBetween(e,t){let n=[];const r=this.groupBy;if(r){const r=this.groupedRows;let i=this.groupIdx(e),o=this.groupIdx(t);if(!i||!o)return[];(i.group>o.group||i.group===o.group&&i.item>o.item)&&([i,o]=[o,i]);for(let e=i.group;e<=o.group;e++){const t=r[e].rows;let a=i.group===e?i.item:0;while(t[a]&&(e!this.selectedRows.includes(e))),n},groupIdx(e){const t=this.groupedRows;for(let n=0;n{const t=this.selectedRows.findIndex((t=>t===e));-1!==t&&this.selectedRows.splice(t,1)})),e&&this.selectedRows.push(...e),t.length&&this.$nextTick((()=>{for(let e=0;e{for(let t=0;t{this.$emit("selection",this.selectedRows)}))},updateInput(e,t,n){const r=(0,me.Jt)(e,n);if(r){const e=this.$el.querySelector(`div[data-checkbox-ctrl][data-node-id="${r}"]`);if(e&&!e.disabled){const n=e.querySelector("label");n&&(n.value=t);let r=e.closest("tr"),i=!0;while(r&&(i||r.classList.contains("sub-row")))t?r.classList.add("row-selected"):r.classList.remove("row-selected"),r=r.nextElementSibling,i=!1}}},select(e){e.forEach((e=>{const t=(0,me.Jt)(e,this.keyField),n=this.$el.querySelector(`label[data-node-id="${t}"]`);n.dispatchEvent(new Event("click"))}))},applyTableAction(e,t,n){const r={alt:n&&(0,Je.nN)(n),event:n},i=this.selectedRows.filter((t=>{const n=t.availableActions.find((t=>t.action===e.action));return n?.enabled}));st(i,e,t,r,this),this.actionOfInterest=null},clearSelection(){this.update([],this.selectedRows)}}};let it=0;function ot(e,t,n=!0){let r=t.action;r||(r=`anon${it}`,it++);let i=e[r];return i||(i=Object.assign({},t),e[r]=i,i.allEnabled=!1),t.enabled?i.anyEnabled=!0:i.allEnabled=!1,n&&(i.available=(i.available||0)+(t.enabled?1:0),i.total=(i.total||0)+1),i}function at(e,t=!1){const n=(0,ge.WP)(Object.values(e),"anyEnabled",!0);for(const r of n)r.enabled=!t&&r.available>=r.total;return n}function st(e,t,n,r={},i){if(n=n||[],t.invoke){const o={action:t,event:r.event,isAlt:!!r.alt};return t.invoke.apply(i,[o,e||[],n])}if(e.length>1&&t.bulkAction&&!r.alt){const r=e[0][t.bulkAction];if(r)return r.call(e[0],e,...n)}const o=[];for(const a of e){let e;e=r.alt&&t.altAction?a[t.altAction]:a[t.action],e&&o.push(e.apply(a,n))}return Promise.all(o)}var lt=n(83381),ct=n(70052),ut={emits:["update-cols-options","on-toggle-all","group-value-change","on-sort-change","col-visibility-change"],components:{Checkbox:ve.S,LabeledSelect:ct.A},props:{columns:{type:Array,required:!0},sortBy:{type:String,required:!0},defaultSortBy:{type:String,default:""},group:{type:String,default:""},groupOptions:{type:Array,default:()=>[]},descending:{type:Boolean,required:!0},hasAdvancedFiltering:{type:Boolean,required:!1},tableColsOptions:{type:Array,default:()=>[]},tableActions:{type:Boolean,required:!0},rowActions:{type:Boolean,required:!0},howMuchSelected:{type:String,required:!0},checkWidth:{type:Number,default:30},rowActionsWidth:{type:Number,required:!0},subExpandColumn:{type:Boolean,default:!1},expandWidth:{type:Number,default:30},labelFor:{type:Function,required:!0},noRows:{type:Boolean,default:!0},noResults:{type:Boolean,default:!0},loading:{type:Boolean,required:!1}},data(){return{tableColsOptionsVisibility:!1,tableColsMenuPosition:null}},watch:{advancedFilteringValues(){this.watcherUpdateLiveAndDelayed(!0,!1)},tableColsOptionsVisibility(e){e?(window.addEventListener("click",this.onClickOutside),this.$emit("update-cols-options")):window.removeEventListener("click",this.onClickOutside)}},computed:{isAll:{get(){return this.howMuchSelected!==nt},set(e){this.$emit("on-toggle-all",e)}},hasAdvGrouping(){return this.group?.length&&this.groupOptions?.length},advGroup:{get(){return this.group||this.advGroup},set(e){this.$emit("group-value-change",e)}},isIndeterminate(){return this.howMuchSelected===tt},hasColumnWithSubLabel(){return this.columns.some((e=>e.subLabel))}},methods:{changeSort(e,t){if(!t.sort)return;let n=!1;this.sortBy===t.name&&(n=!this.descending),this.$emit("on-sort-change",t.name,n)},isCurrent(e){return e.name===this.sortBy},tableColsOptionsClick(e){const t=document.querySelector(".table-options-container"),n=document.querySelector(".table-options-btn");this.tableColsMenuPosition=(0,lt.Tb)(t,e||n,{overlapX:!0,fudgeX:326,fudgeY:-22,positionX:lt.Q7,positionY:lt.Q8}),this.tableColsOptionsVisibility=!this.tableColsOptionsVisibility},onClickOutside(e){const t=this.$refs["table-options"];t&&!t.contains(e.target)&&(this.tableColsOptionsVisibility=!1)},tableOptionsCheckbox(e,t){this.$emit("col-visibility-change",{label:t,value:e})},tooltip(e){if(!e.tooltip)return null;const t=this.$store.getters["i18n/exists"];return t(e.tooltip)?this.t(e.tooltip):e.tooltip}}};n(49456),n(11757);const dt=(0,xe.A)(ut,[["render",Qe],["__scopeId","data-v-0e05d9a6"]]);var ht=dt;const pt="allcols",ft="All Columns",mt=":::islabel";var gt={data(){return{searchQuery:null,previousFilter:null,previousResult:null}},computed:{searchFields(){const e=vt(this.columns);return this.extraSearchFields&&(0,ge.cn)(e,this.extraSearchFields),e},filteredRows(){if(!this.externalPaginationEnabled)return this.hasAdvancedFiltering?this.handleAdvancedFiltering():this.handleFiltering()}},methods:{handleAdvancedFiltering(){if(this.subMatches=null,this.searchQuery.length){const e=(this.arrangedRows||[]).slice(),t=e.filter((e=>this.searchQuery.every((t=>{if(t.prop===pt){const n=this.advFilterSelectOptions.slice(1);let r=[];return n.forEach((e=>{if(e.value.includes("[")&&e.value.includes("]"))r=r.concat(JSON.parse(e.value));else{const t=e.isLabel?`${e.label}${mt}`:e.value;r.push(t)}})),bt(r,[t.value],e)}{if(t.prop.includes("[")&&t.prop.includes("]"))return bt(JSON.parse(t.prop),[t.value],e);let n=t.prop;return t.prop.includes("metadata.labels")&&(n=`${t.label}${mt}`),bt([n],[t.value],e)}}))));return t}return this.arrangedRows},handleFiltering(){const e=(this.searchQuery||"").trim().toLowerCase();let t;if(e&&this.previousResult&&e.startsWith(this.previousFilter)?t=this.previousResult.slice():(this.previousResult=null,t=(this.arrangedRows||[]).slice()),this.previousFilter=e,!e.length)return this.subMatches=null,this.previousResult=null,t;const n=this.searchFields,r=e.split(/\s*[, ]\s*/),i=this.subSearch,o=this.subFields,a={};for(let s=t.length-1;s>=0;s--){const e=t[s];let l=0,c=!0;if(c=bt(n,r,e),o&&i){const t=e[i]||[];for(let n=t.length-1;n>=0;n--){let t=!0;t=bt(o,r,e),t&&l++}a[(0,me.Jt)(e,this.keyField)]=l}c||0!==l||(0,ge.Wq)(t,s)}return this.subMatches=a,this.previousResult=t,t}},watch:{arrangedRows(e){this.previousResult=null},searchQuery(){this.debouncedPaginationChanged()}}};function vt(e){const t=[];return(e||[]).forEach((e=>{const n=e.search;n?"string"===typeof n?(0,ge.PG)(t,n):(0,ge.cy)(n)&&(0,ge.cn)(t,n):!1===n||(0,ge.PG)(t,e.value||e.name)})),t.filter((e=>!!e))}const yt=/^[0-9a-f\.:]+$/i;function bt(e,t,n){for(let r=0;r0&&(e=r.substr(t+1),r=r.substr(0,t)),i=r.includes(".")?(0,me.Jt)(n,r):n[r]}if(void 0!==i&&(i=`${i}`.toLowerCase(),i))if(e){if("exact"===e){if(i===t)return!0}else if("ip"===e){const e=yt.test(t);if(e){const e=new RegExp(`(?:^|\\.)${t}(?:\\.|$)`);if(e.test(i))return!0}}else if("prefix"===e&&0===i.indexOf(t))return!0}else if(i.includes(`${t}`.toLowerCase()))return!0}return!1}var wt=n(98258);const Et=["nameSort","id"];var St={computed:{sortFields(){let e=(this.groupBy?this.groupSort||this.groupBy:null)||[],t=[];const n=(this.columns||this.headers).find((e=>e&&e.name&&e.name.toLowerCase()===this.sortBy.toLowerCase()));return this.sortBy&&n&&n.sort&&(t=n.sort),Array.isArray(e)||(e=[e]),Array.isArray(t)||(t=[t]),(0,ge.sb)([...e,...t].concat(...this.mandatorySort||Et))},arrangedRows(){if(this.externalPaginationEnabled)return;let e;const t=this.sortGeneration||this.sortGenerationFn?.apply(this);if(t&&(e=`${t}/${this.rows.length}/${this.descending}/${this.sortFields.join(",")}`,this.cacheKey===e))return this.cachedRows;const n=(0,wt.Ul)(this.rows,this.sortFields,this.descending);return e&&(this.cacheKey=e,this.cachedRows=n),n}},data(){let e=null;if(this._defaultSortBy=this.defaultSortBy,!this._defaultSortBy){const e=this.headers.find((e=>!!e.defaultSort)),t=this.headers.find((e=>"name"===e.name));if(e)this._defaultSortBy=e.name;else if(t)this._defaultSortBy=t.name;else{const e=this.headers.filter((e=>"state"!==e.name))[0];this._defaultSortBy=e?e.name:"id"}}return e&&this.headers.find((t=>t.name===e))||(e=this._defaultSortBy),{sortBy:e,descending:!1,cachedRows:null,cacheKey:null}},methods:{changeSort(e,t){this.sortBy=e,this.descending=t,this.setPage(1)}},watch:{sortFields(){this.debouncedPaginationChanged()},descending(){this.debouncedPaginationChanged()}}},xt=n(97538),kt={computed:{totalRows(){return this.externalPaginationEnabled?this.externalPaginationResult?.count||0:this.filteredRows.length},indexFrom(){return Math.max(0,1+this.perPage*(this.page-1))},indexTo(){return Math.min(this.totalRows,this.indexFrom+this.perPage-1)},totalPages(){return Math.ceil(this.totalRows/this.perPage)},showPaging(){if(!this.paging)return!1;const e=this.totalPages>1;return(this.altLoading||!this.loading)&&e},pagingDisplay(){const e={...this.pagingParams||{},count:this.totalRows,pages:this.totalPages,from:this.indexFrom,to:this.indexTo};return this.$store.getters["i18n/t"](this.pagingLabel,e)},pagedRows(){return this.externalPaginationEnabled?this.rows:this.paging?this.filteredRows.slice(this.indexFrom-1,this.indexTo):this.filteredRows}},data(){const e=this.getPerPage();return{page:1,perPage:e}},watch:{pagedRows(){const e=this.indexFrom,t=this.totalRows;this.totalPages>0&&this.page>1&&e>t&&this.setPage(this.totalPages)},page(){this.debouncedPaginationChanged()},perPage(){this.debouncedPaginationChanged()}},methods:{getPerPage(){let e=this.rowsPerPage||0;return e<=0&&(e=parseInt(this.$store.getters["prefs/get"](xt.kc),10)||0),e<=0&&(e=10),e},setPage(e){this.page!==e&&(this.page=e)},goToPage(e){let t;switch(e){case"first":t=1;break;case"prev":t=Math.max(1,this.page-1);break;case"next":t=Math.min(this.totalPages,this.page+1);break;case"last":t=this.totalPages;break}this.setPage(t)},getPageByRow(e,t=e=>e){const n=this.filteredRows.map(t).indexOf(e);return-1===n?null:Math.ceil(n/this.perPage)}}},At={computed:{selectedGroupOption(){return this.groupOptions?.find((e=>e.value===this.group))},groupedRows(){const e=this.groupBy,t=this.groupRef||this.selectedGroupOption?.groupLabelKey||e;if(!e)return[{key:"default",ref:"default",rows:this.pagedRows}];const n=[],r={};for(const i of this.pagedRows){const o=(0,me.Jt)(i,e)||"",a=(0,me.Jt)(i,t);let s=r[o];s?s.rows.push(i):(s={key:o,ref:a,rows:[i]},r[o]=s,n.push(s))}return n}}};const Nt="inline-block";var Tt={data(){return{bulkActionsClass:"bulk",bulkActionClass:"bulk-action",bulkActionsDropdownClass:"bulk-actions-dropdown",bulkActionAvailabilityClass:"action-availability",hiddenActions:[],updateHiddenBulkActions:Re()(this.protectedUpdateHiddenBulkActions,10)}},beforeUnmount(){window.removeEventListener("resize",this.onWindowResize)},mounted(){window.addEventListener("resize",this.onWindowResize),this.updateHiddenBulkActions()},watch:{selectedRows(){this.updateHiddenBulkActions()},keyedAvailableActions(){this.updateHiddenBulkActions()}},computed:{availableActions(){return this.bulkActionsForSelection.filter((e=>!e.external))},keyedAvailableActions(){return this.availableActions.map((e=>e.action))},selectedRowsText(){return this.selectedRows.length?this.t("sortableTable.actionAvailability.selected",{actionable:this.selectedRows.length}):null},actionTooltip(){if(!this.selectedRows.length||!this.actionOfInterest)return null;const e=this.selectedRows.filter(this.canRunBulkActionOfInterest).length;return e===this.selectedRows.length?null:this.t("sortableTable.actionAvailability.some",{actionable:e,total:this.selectedRows.length})}},methods:{onWindowResize(){this.updateHiddenBulkActions(),this.onScroll()},protectedUpdateHiddenBulkActions(){if(!this.$refs.container)return;const e=this.$refs.container.querySelector(`.${this.bulkActionsClass}`),t=this.$refs.container.querySelector(`.${this.bulkActionsDropdownClass}`);if(!e||!t)return;const n=e.offsetWidth,r=this.$refs.container.querySelectorAll(`.${this.bulkActionClass}`),i=Array.from(r||[]),o=this.$refs.container.querySelector(`.${this.bulkActionAvailabilityClass}`);let a=0;this.selectedRowsText&&(o?(o.style.display=Nt,a=o.offsetWidth):o.style.display="none;"),this.hiddenActions=[];let s=0,l=!1,c=n-a;for(let u=0;u=c)if(l){const t=e.attributes.getNamedItem("id").value;this.hiddenActions.push(this.availableActions.find((e=>e.action===t))),e.style.display="none"}else t.style.display=Nt,u=-1,s=0,l=!0,c=n-t.offsetWidth-a}l||(t.style.display="none")}}};const Ct=pt;var Rt={props:{group:{type:String,default:()=>""},groupOptions:{type:Array,default:()=>[]},hasAdvancedFiltering:{type:Boolean,default:!1},advFilterHideLabelsAsCols:{type:Boolean,default:!1},advFilterPreventFilteringLabels:{type:Boolean,default:!1}},data(){return{columnOptions:[],colOptionsWatcher:null,advancedFilteringVisibility:!1,advancedFilteringValues:[],advFilterSearchTerm:null,advFilterSelectedProp:Ct,advFilterSelectedLabel:ft,column:null}},mounted(){this.hasAdvancedFiltering&&this.updateColsOptions()},watch:{advancedFilteringValues(){this.watcherUpdateLiveAndDelayed(!0,!1)},advancedFilteringVisibility(e){e?(window.addEventListener("click",this.onClickOutside),this.updateColsOptions()):window.removeEventListener("click",this.onClickOutside)}},computed:{advFilterSelectOptions(){return this.columnOptions.filter((e=>e.isFilter&&!e.preventFiltering))},advGroupOptions(){return this.groupOptions.map((e=>({label:this.t(e.tooltipKey),value:e.value})))}},methods:{handleColsVisibilyAndFiltering(e){const t=e;return this.columnOptions.forEach((e=>{if(e.isTableOption){const n=t.findIndex((t=>t.name===e.name));-1!==n?(t[n].isColVisible=e.isColVisible,t[n].isFilter=e.isFilter):t.push(e)}})),t},setColsOptions(){let e=[];const t=[],n=[],r=this.headers.slice().filter((e=>!e.maxPageSize||e.maxPageSize&&e.maxPageSize>=this.perPage));return r.forEach((e=>{const t=e.name,r=e.labelKey?this.t(`${e.labelKey}`):e.label,i=!(Object.keys(e).includes("search")&&!e.search);let o=e.sort;const a=e.valueProp||e.value;let s=null,l=!0;if(e.sort&&a?("string"===typeof e.sort&&(o=e.sort.includes(":")?[e.sort.split(":")[0]]:[e.sort]),s=o.includes(a)?JSON.stringify([a]):JSON.stringify(o.concat([a]))):s=a?JSON.stringify([a]):null,this.columnOptions?.length){const e=this.columnOptions.find((e=>e.name===t&&e.label===r));e&&(l=e.isColVisible)}n.push({name:t,label:r,value:s,isFilter:i,isTableOption:!0,isColVisible:l})})),this.rows.length&&this.rows.forEach((e=>{e.metadata?.labels&&Object.keys(e.metadata?.labels).length&&Object.keys(e.metadata?.labels).forEach((e=>{const n={name:e,label:e,value:`metadata.labels.${e}`,isFilter:!0,isTableOption:!0,isColVisible:!1,isLabel:!0,preventFiltering:this.advFilterPreventFilteringLabels,preventColToggle:this.advFilterHideLabelsAsCols};if(this.columnOptions?.length){const t=this.columnOptions.find((t=>t.name===e&&t.label===e));t&&(n.isColVisible=t.isColVisible)}t.filter((t=>t.label===e)).length||t.push(n)}))})),e=n.concat(t),e.length&&e.unshift({name:ft,label:ft,value:pt,isFilter:!0,isTableOption:!1}),e},addAdvancedFilter(){this.advFilterSelectedProp&&this.advFilterSearchTerm&&(this.advancedFilteringValues.push({prop:this.advFilterSelectedProp,value:this.advFilterSearchTerm,label:this.advFilterSelectedLabel}),this.eventualSearchQuery=this.advancedFilteringValues,this.advancedFilteringVisibility=!1,this.advFilterSelectedProp=Ct,this.advFilterSelectedLabel=ft,this.advFilterSearchTerm=null)},clearAllAdvancedFilters(){this.advancedFilteringValues=[],this.eventualSearchQuery=this.advancedFilteringValues,this.advancedFilteringVisibility=!1,this.advFilterSelectedProp=Ct,this.advFilterSelectedLabel=ft,this.advFilterSearchTerm=null},clearAdvancedFilter(e){this.advancedFilteringValues.splice(e,1),this.eventualSearchQuery=this.advancedFilteringValues},onClickOutside(e){const t=this.$refs["advanced-filter-group"];t&&!t.contains(e.target)&&(this.advancedFilteringVisibility=!1)},updateColsOptions(){this.columnOptions=this.setColsOptions()},changeColVisibility(e){const t=this.columnOptions.findIndex((t=>t.label===e.label));-1!==t&&(this.columnOptions[t].isColVisible=e.value)}}};const Ot={};var It=n(57415),Dt=n(9776),Lt={name:"SortableTable",emits:["clickedActionButton","pagination-changed","group-value-change","selection","rowClick"],components:{THead:ht,Checkbox:ve.S,AsyncButton:ye.A,ActionDropdown:Ae,LabeledSelect:ct.A,ButtonMultiAction:It.A},mixins:[gt,St,kt,At,rt,Tt,Rt],props:{headers:{type:Array,required:!0},rows:{type:Array,required:!0},keyField:{type:String,default:"_key"},loading:{type:Boolean,required:!1},altLoading:{type:Boolean,required:!1},groupBy:{type:String,default:null},groupRef:{type:String,default:null},groupSort:{type:Array,default:null},defaultSortBy:{type:String,default:null},tableActions:{type:Boolean,default:!0},rowActions:{type:Boolean,default:!0},mangleActionResources:{type:Function,default:null},rowActionsWidth:{type:Number,default:40},search:{type:Boolean,default:!0},extraSearchFields:{type:Array,default:null},subRows:{type:Boolean,default:!1},subRowsDescription:{type:Boolean,default:!0},subExpandable:{type:Boolean,default:!1},subExpandColumn:{type:Boolean,default:!1},subSearch:{type:String,default:null},subFields:{type:Array,default:null},topDivider:{type:Boolean,default:!0},bodyDividers:{type:Boolean,default:!1},overflowX:{type:Boolean,default:!1},overflowY:{type:Boolean,default:!1},paging:{type:Boolean,default:!1},pagingLabel:{type:String,default:"sortableTable.paging.generic"},pagingParams:{type:Object,default:null},rowsPerPage:{type:Number,default:null},noRowsKey:{type:String,default:"sortableTable.noRows"},showNoRows:{type:Boolean,default:!0},noDataKey:{type:String,default:"sortableTable.noData"},showHeaders:{type:Boolean,default:!0},sortGenerationFn:{type:Function,default:null},sortGeneration:{type:String,default:null},mandatorySort:{type:Array,default:null},getCustomDetailLink:{type:Function,default:null},componentTestid:{type:String,default:"sortable-table"},useQueryParamsForSimpleFiltering:{type:Boolean,default:!1},forceUpdateLiveAndDelayed:{type:Number,default:0},externalPaginationEnabled:{type:Boolean,default:!1},externalPaginationResult:{type:Object,default:null}},data(){let e="",t="";return!this.hasAdvancedFiltering&&this.useQueryParamsForSimpleFiltering&&this.$route.query?.q&&(e=this.$route.query?.q,t=this.$route.query?.q),{refreshButtonPhase:ye.R.WAITING,expanded:{},searchQuery:e,eventualSearchQuery:t,subMatches:null,actionOfInterest:null,loadingDelay:!1,debouncedPaginationChanged:null,isLoading:!1}},mounted(){this._loadingDelayTimer=setTimeout((()=>{this.loadingDelay=!0}),200);const e=document.querySelector("main");this._onScroll=this.onScroll.bind(this),e?.addEventListener("scroll",this._onScroll),this.debouncedPaginationChanged()},beforeUnmount(){clearTimeout(this._scrollTimer),clearTimeout(this._loadingDelayTimer),clearTimeout(this._altLoadingDelayTimer),clearTimeout(this._liveColumnsTimer),clearTimeout(this._delayedColumnsTimer),clearTimeout(this.manualRefreshTimer);const e=document.querySelector("main");e?.removeEventListener("scroll",this._onScroll)},watch:{eventualSearchQuery:Re()((function(e){if(this.searchQuery=e,!this.hasAdvancedFiltering&&this.useQueryParamsForSimpleFiltering){const t={name:this.$route.name,params:{...this.$route.params},query:{...this.$route.query,q:e}};!e&&this.$route.query?.q&&(t.query={}),this.$router.replace(t)}}),200),descending(e,t){this.watcherUpdateLiveAndDelayed(e,t)},searchQuery(e,t){this.watcherUpdateLiveAndDelayed(e,t)},sortFields(e,t){this.watcherUpdateLiveAndDelayed(e,t)},groupBy(e,t){this.watcherUpdateLiveAndDelayed(e,t)},namespaces(e,t){this.watcherUpdateLiveAndDelayed(e,t)},page(e,t){this.watcherUpdateLiveAndDelayed(e,t)},forceUpdateLiveAndDelayed(e,t){this.watcherUpdateLiveAndDelayed(e,t)},initalLoad:{handler(e){e&&(this._didinit=!0,this.$nextTick((()=>this.updateLiveAndDelayed())))},immediate:!0},manualRefreshLoadingFinished:{handler(e,t){this.refreshButtonPhase=e?ye.R.ACTION:ye.R.WAITING,e&&e!==t&&this.$nextTick((()=>this.updateLiveAndDelayed()))},immediate:!0},loading:{handler(e,t){this.refreshButtonPhase=e?ye.R.WAITING:ye.R.ACTION,this.altLoading?e?this._altLoadingDelayTimer=setTimeout((()=>{this.isLoading=!0}),200):(clearTimeout(this._altLoadingDelayTimer),this.isLoading=!1):this.isLoading=e},immediate:!0}},created(){this.debouncedRefreshTableData=Re()(this.refreshTableData,500),this.debouncedPaginationChanged=Re()(this.paginationChanged,50)},computed:{...(0,ce.L8)({isTooManyItemsToAutoUpdate:"resource-fetch/isTooManyItemsToAutoUpdate"}),...(0,ce.L8)({isManualRefreshLoading:"resource-fetch/manualRefreshIsLoading"}),namespaces(){return this.$store.getters["activeNamespaceCache"]},initalLoad(){return!(this.isLoading||this._didinit||!this.rows?.length)},manualRefreshLoadingFinished(){const e=!(this.isLoading||!this._didinit||!this.rows?.length||this.isManualRefreshLoading);return this.refreshButtonPhase=!e||this.loading?ye.R.WAITING:ye.R.ACTION,e},fullColspan(){let e=0;for(let t=0;t!e.maxPageSize||e.maxPageSize&&e.maxPageSize>=this.perPage));if(this.groupBy){const t=e.find((e=>e.name===this.groupBy));t&&(0,ge.Gj)(e,t)}const t=e.find((e=>!e.width));if(!t){const t=e.find((e=>e.canBeVariable));if(t){const n=(0,me.o8)(t);delete n.width,e.splice(e.indexOf(t),1,n)}}if(this.hasAdvancedFiltering){const t=this.handleColsVisibilyAndFiltering(e);return t}return e},dt(){const e={check:"Select: ",actions:"Actions: "};return this.columns.forEach((t=>{e[t.name]=`${t.label||t.name}:`})),e},classObject(){return{"top-divider":this.topDivider,"body-dividers":this.bodyDividers,"overflow-y":this.overflowY,"overflow-x":this.overflowX,"alt-loading":this.altLoading&&this.isLoading}},hasLiveColumns(){const e=this.columns.find((e=>e.formatter?.startsWith("Live")||e.liveUpdates));return!!e},hasDelayedColumns(){const e=this.columns.find((e=>e.delayLoading));return!!e},columnFormmatterIDs(){const e={};return this.columns.forEach((t=>{t.formatter&&(e[t.formatter]=(0,fe._k)(t.formatter))})),e},displayRows(){const e=[],t=this.columnFormmatterIDs;return this.groupedRows.forEach((n=>{const i={grp:n,key:n.key,ref:n.ref,rows:[]};e.push(i),n.rows.forEach((e=>{const n={row:e,key:this.get(e,this.keyField),showSubRow:this.showSubRow(e,this.keyField),canRunBulkActionOfInterest:this.canRunBulkActionOfInterest(e),columns:[]};i.rows.push(n),this.columns.forEach((i=>{const o=i.delayLoading?void 0:this.valueFor(e,i,i.isLabel);let a,s=o,l=!1;if(Array.isArray(o)&&(s=o.join(", ")),i.formatter)if(Ot[i.formatter])a=Ot[i.formatter],l=!0;else{const e=this.$plugin?.getDynamic("formatters",i.formatter);e&&(a=(0,r.defineAsyncComponent)(e),l=!0)}n.columns.push({col:i,value:o,formatted:s,component:a,needRef:l,delayed:i.delayLoading,live:i.formatter?.startsWith("Live")||i.liveUpdates,label:this.labelFor(i),dasherize:t[i.formatter]||""})}))}))})),e}},methods:{refreshTableData(){this.$store.dispatch("resource-fetch/doManualRefresh")},get:me.Jt,dasherize:fe._k,onScroll(){(this.hasLiveColumns||this.hasDelayedColumns)&&(clearTimeout(this._liveColumnsTimer),clearTimeout(this._scrollTimer),clearTimeout(this._delayedColumnsTimer),this._scrollTimer=setTimeout((()=>{this.updateLiveColumns(),this.updateDelayedColumns()}),300))},watcherUpdateLiveAndDelayed(e,t){e!==t&&this.$nextTick((()=>this.updateLiveAndDelayed()))},updateLiveAndDelayed(){this.hasLiveColumns&&this.updateLiveColumns(),this.hasDelayedColumns&&this.updateDelayedColumns()},updateDelayedColumns(){if(clearTimeout(this._delayedColumnsTimer),!this.$refs.column||0===this.pagedRows.length)return;const e=this.$refs.column.filter((e=>e.startDelayedLoading&&!e.__delayedLoading)),t=(window.innerHeight||document.documentElement.clientHeight)+100;let n=0;for(let r=0;r=0&&o<=t&&(i.startDelayedLoading(!0),i.__delayedLoading=!0,n++,4===n))return void(this._delayedColumnsTimer=setTimeout(this.updateDelayedColumns,100))}},updateLiveColumns(){if(clearTimeout(this._liveColumnsTimer),!this.$refs.column||!this.hasLiveColumns||0===this.pagedRows.length)return;const e=window.innerHeight||document.documentElement.clientHeight,t=this.$refs.column.filter((e=>!!e.liveUpdate)),n=de()();let r=Number.MAX_SAFE_INTEGER;for(let i=0;i=0&&a<=e){const e=o.liveUpdate(n);ethis.updateLiveColumns()),1e3*r)},labelFor(e){return e.labelKey?this.t(e.labelKey,void 0,!0):e.label?e.label:(0,fe.TF)(e.name)},valueFor(e,t,n){if("function"===typeof t.value)return t.value(e);if(n)return e.metadata?.labels&&e.metadata?.labels[t.label]?e.metadata?.labels[t.label]:"";const r=t.value||t.name;if(!r)return Dt.error("No path has been defined for this column, unable to get value of cell",t),"";const i=(0,me.Jt)(e,r);return null===i||void 0===i?"":i},isExpanded(e){const t=e[this.keyField];return!!this.expanded[t]},toggleExpand(e){const t=e[this.keyField],n=!this.expanded[t];return this.expanded[t]=n,this.expanded={...this.expanded},n},setBulkActionOfInterest(e){this.actionOfInterest=e},canRunBulkActionOfInterest(e){if(!this.actionOfInterest||pe()(e?.availableActions))return!1;const t=e.availableActions?.find((e=>e.action===this.actionOfInterest.action));return t?.enabled},focusSearch(){this.$refs.searchQuery&&(this.$refs.searchQuery.focus(),this.$refs.searchQuery.select())},nearestCheckbox(){return document.activeElement.closest("tr.main-row")?.querySelector(".checkbox-custom")},focusAdjacent(e=!0){const t=Array.from(this.$el.querySelectorAll(".checkbox-custom")),n=this.nearestCheckbox();let r=-1;return r=n?t.indexOf(n)+(e?1:-1):e?1:t.length-1,r<1?(r=1,null):r>=t.length?(r=t.length-1,null):t[r]?(t[r].focus(),t[r]):void 0},focusNext:Te()((function(e,t=!1){const n=this.focusAdjacent(!0),r=Ze(n,"tr");r?.classList.contains("row-selected")||this.keySelectRow(r,t)}),50),focusPrevious:Te()((function(e,t=!1){const n=this.focusAdjacent(!1),r=Ze(n,"tr");r?.classList.contains("row-selected")||this.keySelectRow(r,t)}),50),showSubRow(e,t){const n=this.subRows&&(!this.subExpandable||this.expanded[(0,me.Jt)(e,t)]),r=this.subRowsDescription&&e.stateDescription;return n||r},handleActionButtonClick(e,t){this.$emit("clickedActionButton",{event:t,targetElement:this.$refs[`actionButton${e}`][0]})},paginationChanged(){this.externalPaginationEnabled&&this.$emit("pagination-changed",{page:this.page,perPage:this.perPage,filter:{searchFields:this.searchFields,searchQuery:this.searchQuery},sort:this.sortFields,descending:this.descending})}}};n(29581),n(88251);const Pt=(0,xe.A)(Lt,[["render",le],["__scopeId","data-v-0132c03a"]]);var Mt=Pt},60324:function(e,t,n){"use strict";n.d(t,{A:function(){return c}});var r=n(25443);function i(...e){document.title=e.filter((e=>e)).join(" - ")}var o=n(25705),a=n(9776),s={props:{breadcrumb:{type:[String,Boolean],default:"full",validator(e){return["full","vendor-only"].includes(e)||!1===e}},includeVendor:{type:Boolean,default:!0},showChild:{type:Boolean,default:!0}},computed:{...(0,r.L8)(["isExplorer","currentCluster","currentProduct"])},methods:{computeTitle(){if(!this.$slots.default||"string"!==typeof this.$slots.default()[0].children)return a.error("The component only supports text as the child."),[];const e=[this.$slots.default()[0].children.trim()];if("full"===this.breadcrumb)if(this.currentCluster&&(this.isExplorer||this.currentCluster.isHarvester))e.unshift(this.currentCluster.nameDisplay);else if(this.currentProduct?.name){const t=this.$store.getters["i18n/withFallback"](`product.${this.currentProduct.name}`,null,null);t&&e.unshift(t)}return this.includeVendor&&["full","vendor-only"].includes(this.breadcrumb)&&e.unshift((0,o.f7)()),e},updatePageTitle(){i(...this.computeTitle())}},created(){this.updatePageTitle()},render(){return this.updatePageTitle(),this.showChild?this.$slots.default():null}};const l=s;var c=l},12327:function(e,t,n){"use strict";n.d(t,{A:function(){return d}});var r=n(9274);const i=["id","aria-hidden"],o={key:0,class:"tab-header"},a={key:0,class:"icon icon-info icon-lg"};function s(e,t,n,s,l,c){const u=(0,r.resolveDirective)("clean-tooltip");return(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("section",{id:n.name,"aria-hidden":!l.active,role:"tabpanel"},[c.shouldShowHeader?((0,r.openBlock)(),(0,r.createElementBlock)("div",o,[(0,r.createElementVNode)("h2",null,[(0,r.createTextVNode)((0,r.toDisplayString)(c.labelDisplay)+" ",1),n.tooltip?(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("i",a,null,512)),[[u,n.tooltip]]):(0,r.createCommentVNode)("",!0)]),(0,r.renderSlot)(e.$slots,"tab-header-right",{},void 0,!0)])):(0,r.createCommentVNode)("",!0),(0,r.renderSlot)(e.$slots,"default",(0,r.normalizeProps)((0,r.guardReactiveProps)({active:l.active})),void 0,!0)],8,i)),[[r.vShow,l.active]])}var l={inject:["addTab","removeTab","sideTabs"],emits:["active"],props:{label:{default:null,type:String},labelKey:{default:null,type:String},name:{required:!0,type:String},tooltip:{default:null,type:[String,Object]},weight:{default:0,required:!1,type:Number},showHeader:{type:Boolean,default:null},displayAlertIcon:{type:Boolean,default:null},error:{type:Boolean,default:!1},badge:{default:0,required:!1,type:Number}},data(){return{active:null}},computed:{labelDisplay(){return this.labelKey?this.$store.getters["i18n/t"](this.labelKey):this.label?this.label:this.name},shouldShowHeader(){return null!==this.showHeader?this.showHeader:this.sideTabs||!1}},watch:{active(e){e&&this.$emit("active")}},mounted(){this.addTab(this)},beforeUnmount(){this.removeTab(this)}},c=(n(37282),n(47433));const u=(0,c.A)(l,[["render",s],["__scopeId","data-v-d7f9a228"]]);var d=u},35244:function(e,t,n){"use strict";n.d(t,{A:function(){return T}});var r=n(9274);const i=e=>((0,r.pushScopeId)("data-v-eb58b8f8"),e=e(),(0,r.popScopeId)(),e),o=["id","data-testid"],a=["data-testid","aria-controls","aria-selected","onClick"],s={key:0,class:"tab-badge"},l={key:1,class:"conditions-alert-icon icon-error"},c={key:0,class:"tab disabled"},u={key:1,class:"tab-list-footer"},d=i((()=>(0,r.createElementVNode)("i",{class:"icon icon-plus"},null,-1))),h=[d],p=["disabled"],f=i((()=>(0,r.createElementVNode)("i",{class:"icon icon-minus"},null,-1))),m=[f];function g(e,t,n,i,d,f){const g=(0,r.resolveDirective)("clean-tooltip");return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)({"side-tabs":!!n.sideTabs,"tabs-only":n.tabsOnly}),"data-testid":"tabbed"},[f.hideTabs?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("ul",{key:0,ref:"tablist",role:"tablist",class:(0,r.normalizeClass)(["tabs",{clearfix:!n.sideTabs,vertical:n.sideTabs,horizontal:!n.sideTabs}]),tabindex:"0","data-testid":"tabbed-block",onKeydown:[t[3]||(t[3]=(0,r.withKeys)((0,r.withModifiers)((e=>f.selectNext(1)),["prevent"]),["right"])),t[4]||(t[4]=(0,r.withKeys)((0,r.withModifiers)((e=>f.selectNext(-1)),["prevent"]),["left"])),t[5]||(t[5]=(0,r.withKeys)((0,r.withModifiers)((e=>f.selectNext(1)),["prevent"]),["down"])),t[6]||(t[6]=(0,r.withKeys)((0,r.withModifiers)((e=>f.selectNext(-1)),["prevent"]),["up"]))]},[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(f.sortedTabs,(t=>((0,r.openBlock)(),(0,r.createElementBlock)("li",{id:t.name,key:t.name,"data-testid":t.name,class:(0,r.normalizeClass)({tab:!0,active:t.active,disabled:t.disabled,error:t.error}),role:"presentation"},[(0,r.createElementVNode)("a",{"data-testid":`btn-${t.name}`,"aria-controls":"#"+t.name,"aria-selected":t.active,role:"tab",onClick:(0,r.withModifiers)((e=>f.select(t.name,e)),["prevent"])},[(0,r.createElementVNode)("span",null,(0,r.toDisplayString)(t.labelDisplay),1),t.badge?((0,r.openBlock)(),(0,r.createElementBlock)("span",s,(0,r.toDisplayString)(t.badge),1)):(0,r.createCommentVNode)("",!0),f.hasIcon(t)?(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("i",l,null,512)),[[g,e.t("validation.tab")]]):(0,r.createCommentVNode)("",!0)],8,a)],10,o)))),128)),n.sideTabs&&!f.sortedTabs.length?((0,r.openBlock)(),(0,r.createElementBlock)("li",c,[(0,r.createElementVNode)("a",{href:"#",onClick:t[0]||(t[0]=(0,r.withModifiers)((()=>{}),["prevent"]))},"(None)")])):(0,r.createCommentVNode)("",!0),n.sideTabs&&n.showTabsAddRemove?((0,r.openBlock)(),(0,r.createElementBlock)("ul",u,[(0,r.createElementVNode)("li",null,[(0,r.createElementVNode)("button",{type:"button",class:"btn bg-transparent","data-testid":"tab-list-add",onClick:t[1]||(t[1]=(...e)=>f.tabAddClicked&&f.tabAddClicked(...e))},h),(0,r.createElementVNode)("button",{type:"button",class:"btn bg-transparent",disabled:!f.sortedTabs.length,"data-testid":"tab-list-remove",onClick:t[2]||(t[2]=(...e)=>f.tabRemoveClicked&&f.tabRemoveClicked(...e))},m,8,p)])])):(0,r.createCommentVNode)("",!0),(0,r.renderSlot)(e.$slots,"tab-row-extras",{},void 0,!0)],34)),(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)({"tab-container":!!d.tabs.length||!!n.sideTabs,"no-content":n.noContent,"tab-container--flat":!!n.flat})},[(0,r.renderSlot)(e.$slots,"default",{},void 0,!0)],2)],2)}var v=n(53737),y=n.n(v),b=n(15510),_=n.n(b),w=n(24759),E=n(98258),S=n(63742),x=n.n(S),k={name:"Tabbed",emits:["changed","addTab","removeTab"],props:{defaultTab:{type:String,default:null},sideTabs:{type:Boolean,default:!1},hideSingleTab:{type:Boolean,default:!1},showTabsAddRemove:{type:Boolean,default:!1},scrollOnChange:{type:Boolean,default:!1},useHash:{type:Boolean,default:!0},noContent:{type:Boolean,default:!1},flat:{type:Boolean,default:!1},tabsOnly:{type:Boolean,default:!1}},provide(){const e=this.tabs;return{sideTabs:this.sideTabs,addTab(t){const n=(0,w.jq)(e,"name",t.name);n&&(0,w.Gj)(e,n),(0,w.PG)(e,t)},removeTab(t){(0,w.Gj)(e,t)}}},data(){return{tabs:[],activeTabName:null}},computed:{sortedTabs(){return(0,E.Ul)(this.tabs,["weight:desc","labelDisplay","name"])},hideTabs(){return this.hideSingleTab&&1===this.sortedTabs.length}},watch:{sortedTabs(e){const{defaultTab:t,useHash:n}=this,r=e.find((e=>e.active)),i=n?this.$route.hash:void 0,o=n?i.slice(1):void 0,a=e.find((e=>e.name===o&&!e.active)),s=y()(e)||null;_()(r)?n&&!_()(a)?this.select(a.name):_()(t)||_()(e.find((e=>e.name===t)))?s?.name&&this.select(s.name):this.select(t):n&&r?.name===o&&this.select(r.name)}},mounted(){this.useHash&&window.addEventListener("hashchange",this.hashChange)},unmounted(){this.useHash&&window.removeEventListener("hashchange",this.hashChange)},methods:{hasIcon(e){return e.displayAlertIcon||e.error&&!e.active},hashChange(){if(!this.scrollOnChange){const e=document.getElementsByTagName("main")[0];e&&(e.scrollTop=0)}this.select(this.$route.hash)},find(e){return this.sortedTabs.find((t=>t.name===e))},select(e){const{sortedTabs:t}=this,n=this.find(e),r=`#${e}`;if(n&&!n.disabled){if(this.useHash){const e=this.$router.currentRoute._value,t=e.hash;if(this.useHash&&t!==r){const t={...e};t.hash=r,this.$router.replace(t)}}for(const e of t)e.active=e.name===n.name;this.$emit("changed",{tab:n,selectedName:n.name}),this.activeTabName=n.name}},selectNext(e){const{sortedTabs:t}=this,n=t.findIndex((e=>e.active)),r=o(n,e,t.length),i=t[r].name;function o(e,t,n){const r=e+t;return r>=n?0:r<=0?n-1:r}this.select(i),this.$nextTick((()=>{this.$refs.tablist.focus()}))},tabAddClicked(){const e=x()(this.tabs,(e=>e.active));this.$emit("addTab",e)},tabRemoveClicked(){const e=x()(this.tabs,(e=>e.active));this.$emit("removeTab",e)}}},A=(n(72688),n(47433));const N=(0,A.A)(k,[["render",g],["__scopeId","data-v-eb58b8f8"]]);var T=N},93410:function(e,t,n){"use strict";n.d(t,{A:function(){return c}});var r=n(9274);const i={class:"tag"};function o(e,t,n,o,a,s){return(0,r.openBlock)(),(0,r.createElementBlock)("span",i,[(0,r.renderSlot)(e.$slots,"default",{},void 0,!0)])}var a={},s=(n(85428),n(47433));const l=(0,s.A)(a,[["render",o],["__scopeId","data-v-17971464"]]);var c=l},91073:function(e,t,n){"use strict";n.d(t,{A:function(){return p}});var r=n(9274);function i(e,t,n,i,o,a){const s=(0,r.resolveComponent)("Banner");return a.typeDescriptionKey?((0,r.openBlock)(),(0,r.createBlock)(s,{key:0,class:"type-banner mb-20 mt-0",color:"info",closable:!0,"label-key":a.typeDescriptionKey,onClose:a.hideTypeDescription},null,8,["label-key","onClose"])):(0,r.createCommentVNode)("",!0)}var o=n(25443),a=n(58832),s=n(97538),l=n(24759),c=n(4284),u={components:{Banner:a.l},props:{resource:{type:String,required:!0}},computed:{...(0,o.L8)(["currentCluster"]),hideDescriptions:(0,s.AN)(s.xL),typeDescriptionKey(){let e;return e=this.resource===c.W8.CLUSTER_REPO?!this.currentCluster||this.currentCluster.isLocal?'typeDescription."catalog.cattle.io.clusterrepo.local"':'typeDescription."catalog.cattle.io.clusterrepo"':`typeDescription."${this.resource}"`,!this.hideDescriptions.includes(this.resource)&&!this.hideDescriptions.includes("ALL")&&(!!this.$store.getters["i18n/exists"](e)&&e)}},methods:{hideTypeDescription(){const e=this.hideDescriptions.slice();(0,l.PG)(e,this.resource),this.hideDescriptions=e}}},d=n(47433);const h=(0,d.A)(u,[["render",i]]);var p=h},89893:function(e,t,n){"use strict";n.d(t,{j:function(){return S},A:function(){return A}});var r=n(9274);const i={class:"yaml-editor"},o={class:"text-right"},a={key:0,class:"btn-group btn-sm diff-mode"};function s(e,t,n,s,l,c){const u=(0,r.resolveComponent)("CodeMirror"),d=(0,r.resolveComponent)("FileDiff"),h=(0,r.resolveDirective)("trim-whitespace");return(0,r.openBlock)(),(0,r.createElementBlock)("div",i,[(0,r.createElementVNode)("div",o,[c.isPreview&&!n.hidePreviewButtons?(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("span",a,[(0,r.createElementVNode)("button",{type:"button",class:(0,r.normalizeClass)(["btn btn-sm bg-default",{active:"split"!==c.diffMode}]),onClick:t[0]||(t[0]=e=>c.diffMode="unified")},"Unified",2),(0,r.createElementVNode)("button",{type:"button",class:(0,r.normalizeClass)(["btn btn-sm bg-default",{active:"split"===c.diffMode}]),onClick:t[1]||(t[1]=e=>c.diffMode="split")},"Split",2)])),[[h]]):(0,r.createCommentVNode)("",!0)]),c.showCodeEditor?((0,r.openBlock)(),(0,r.createBlock)(u,{key:0,ref:"cm",class:(0,r.normalizeClass)({fill:!0,scrolling:n.scrolling}),value:l.curValue,options:c.codeMirrorOptions,showKeyMapBox:!0,"data-testid":n.componentTestid+"-code-mirror",onOnInput:c.onInput,onOnReady:c.onReady,onOnChanges:c.onChanges},null,8,["class","value","options","data-testid","onOnInput","onOnReady","onOnChanges"])):((0,r.openBlock)(),(0,r.createBlock)(d,{key:1,class:(0,r.normalizeClass)({fill:!0,scrolling:n.scrolling}),filename:".yaml","side-by-side":"split"===c.diffMode,orig:l.original,neu:l.curValue,"footer-space":80},null,8,["class","filename","side-by-side","orig","neu"]))])}var l=n(20246),c=n.n(l),u=n(97538),d=n(15510),h=n.n(d),p=n(3196),f=n(46734);const m={id:"diffElement",ref:"root",class:"root"};function g(e,t,n,i,o,a){const s=(0,r.resolveComponent)("resize-observer");return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[(0,r.createVNode)(s,{onNotify:a.fit},null,8,["onNotify"]),(0,r.createElementVNode)("div",m,null,512)])}var v=n(83836),y=n(90759),b={props:{filename:{type:String,default:"file.txt"},sideBySide:{type:Boolean,default:!1},orig:{type:String,required:!0},neu:{type:String,required:!0},autoResize:{type:Boolean,default:!0},footerSpace:{type:Number,default:0},minHeight:{type:Number,default:200}},mounted(){this.draw()},watch:{sideBySide(){this.draw()}},methods:{draw(){const e=document.getElementById("diffElement"),t=(0,y.createPatch)(this.filename,this.orig,this.neu),n={synchronisedScroll:!0,outputFormat:this.sideBySide?"side-by-side":"line-by-line",drawFileList:!1,matching:"words"},r=new v.Diff2HtmlUI(e,t,n);r.draw(),this.fit()},fit(){if(!this.autoResize)return;const e=this.$refs.root;if(!e)return;const t=e.getBoundingClientRect();if(!t)return;const n=window.innerHeight-t.top-this.footerSpace;e.style.height=`${Math.max(0,n)}px`}}},_=(n(62509),n(22380),n(47433));const w=(0,_.A)(b,[["render",g],["__scopeId","data-v-6b4f901a"]]);var E=w;const S={EDIT_CODE:"EDIT_CODE",VIEW_CODE:"VIEW_CODE",DIFF_CODE:"DIFF_CODE"};var x={emits:["update:value","newObject","onInput","onReady","onChanges"],components:{CodeMirror:f.A,FileDiff:E},props:{editorMode:{type:String,default:S.EDIT_CODE,validator(e){return Object.values(S).includes(e)}},asObject:{type:Boolean,default:!1},initialYamlValues:{type:[String,Object],default:""},scrolling:{type:Boolean,default:!0},value:{type:[String,Object],default:""},hidePreviewButtons:{type:Boolean,default:!1},componentTestid:{type:String,default:"yaml-editor"}},data(){const{initialYamlValues:e,value:t}=this;let n,r;return n=this.asObject?(0,p.Kq)(t):t||"",r=this.asObject&&e?(0,p.Kq)(e):e,h()(r)&&(r=t),{original:r,curValue:n}},computed:{codeMirrorOptions(){const e=this.editorMode===S.VIEW_CODE,t=[];return e||t.push("CodeMirror-lint-markers"),t.push("CodeMirror-foldgutter"),{readOnly:e,gutters:t,mode:"yaml",lint:!e,lineNumbers:!e,styleActiveLine:!1,tabSize:2,indentWithTabs:!1,cursorBlinkRate:e?-1:530,extraKeys:{"Ctrl-Space":"autocomplete",Tab:e=>{e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertSoftTab")},"Shift-Tab":e=>{e.indentSelection("subtract")}}}},isPreview(){return this.editorMode===S.DIFF_CODE},diffMode:(0,u.AN)(u.Mu),showCodeEditor(){return[S.EDIT_CODE,S.VIEW_CODE].includes(this.editorMode)}},watch:{showUploadPrompt(e){e&&this.$refs.yamluploader.click()}},methods:{focus(){this.$refs.cm&&this.$refs.cm.focus()},refresh(){this.$refs.cm&&this.$refs.cm.refresh()},onInput(e){this.asObject||this.$emit("update:value",...arguments);try{const t=c().load(e);this.asObject?this.$emit("update:value",t):this.$emit("newObject",t)}catch(t){}this.$emit("onInput",...arguments)},onReady(){this.$emit("onReady",...arguments)},onChanges(){this.$emit("onChanges",...arguments)},updateValue(e){this.curValue=e,this.$refs.cm.updateValue(e)}}};n(21512);const k=(0,_.A)(x,[["render",s]]);var A=k},6961:function(e,t,n){"use strict";n.d(t,{A:function(){return O}});var r=n(9274);const i={key:0,class:"clearfix"},o={key:0,class:"required"},a={key:1,class:"icon icon-info"},s={key:0},l={class:"value text-label mb-10"},c=["data-testid"],u={class:"value"},d=["onUpdate:modelValue","data-testid","placeholder","disabled","onPaste"],h={key:0,class:"remove"},p=["disabled","data-testid","onClick"],f={key:2},m={key:0,class:"text-muted"},g={key:3,class:"footer mt-20"},v=["disabled"],y={key:0,class:"mr-5 icon icon-spinner icon-spin icon-lg"};function b(e,t,n,b,_,w){const E=(0,r.resolveComponent)("TextAreaAutoGrow"),S=(0,r.resolveComponent)("LabeledInput"),x=(0,r.resolveDirective)("clean-tooltip");return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[n.title?((0,r.openBlock)(),(0,r.createElementBlock)("div",i,[(0,r.renderSlot)(e.$slots,"title",{},(()=>[(0,r.createElementVNode)("h3",null,[(0,r.createTextVNode)((0,r.toDisplayString)(n.title)+" ",1),n.required?((0,r.openBlock)(),(0,r.createElementBlock)("span",o,"*")):(0,r.createCommentVNode)("",!0),w.showProtip?(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("i",a,null,512)),[[x,n.protip]]):(0,r.createCommentVNode)("",!0)])]),!0)])):(0,r.createCommentVNode)("",!0),_.rows.length?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:1},[n.showHeader?((0,r.openBlock)(),(0,r.createElementBlock)("div",s,[(0,r.renderSlot)(e.$slots,"column-headers",{},(()=>[(0,r.createElementVNode)("label",l,(0,r.toDisplayString)(n.valueLabel),1)]),!0)])):(0,r.createCommentVNode)("",!0),((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(_.rows,((t,i)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:i,"data-testid":`array-list-box${i}`,class:"box"},[(0,r.renderSlot)(e.$slots,"columns",{queueUpdate:e.queueUpdate,i:i,rows:_.rows,row:t,mode:n.mode,isView:w.isView},(()=>[(0,r.createElementVNode)("div",u,[(0,r.renderSlot)(e.$slots,"value",{row:t,mode:n.mode,isView:w.isView,queueUpdate:e.queueUpdate},(()=>[n.valueMultiline?((0,r.openBlock)(),(0,r.createBlock)(E,{key:0,ref_for:!0,ref:"value",value:t.value,"onUpdate:value":[e=>t.value=e,e.queueUpdate],"data-testid":`textarea-${i}`,placeholder:n.valuePlaceholder,mode:n.mode,disabled:n.disabled,onPaste:e=>w.onPaste(i,e)},null,8,["value","onUpdate:value","data-testid","placeholder","mode","disabled","onPaste"])):n.rules.length>0?((0,r.openBlock)(),(0,r.createBlock)(S,{key:1,ref_for:!0,ref:"value",value:t.value,"onUpdate:value":[e=>t.value=e,e.queueUpdate],"data-testid":`labeled-input-${i}`,placeholder:n.valuePlaceholder,disabled:w.isView||n.disabled,rules:n.rules,compact:!1,onPaste:e=>w.onPaste(i,e)},null,8,["value","onUpdate:value","data-testid","placeholder","disabled","rules","onPaste"])):(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("input",{key:2,ref_for:!0,ref:"value","onUpdate:modelValue":e=>t.value=e,"data-testid":`input-${i}`,placeholder:n.valuePlaceholder,disabled:w.isView||n.disabled,onPaste:e=>w.onPaste(i,e)},null,40,d)),[[r.vModelText,t.value]])]),!0)])]),!0),w.showRemove?((0,r.openBlock)(),(0,r.createElementBlock)("div",h,[(0,r.renderSlot)(e.$slots,"remove-button",{remove:()=>w.remove(t,i),i:i,row:t},(()=>[(0,r.createElementVNode)("button",{type:"button",disabled:w.isView,class:"btn role-link","data-testid":`remove-item-${i}`,onClick:e=>w.remove(t,i)},(0,r.toDisplayString)(w._removeLabel),9,p)]),!0)])):(0,r.createCommentVNode)("",!0)],8,c)))),128))],64)):((0,r.openBlock)(),(0,r.createElementBlock)("div",f,[(0,r.renderSlot)(e.$slots,"empty",{},(()=>["view"===n.mode?((0,r.openBlock)(),(0,r.createElementBlock)("div",m," — ")):(0,r.createCommentVNode)("",!0)]),!0)])),w.showAdd&&!w.isView?((0,r.openBlock)(),(0,r.createElementBlock)("div",g,[w.showAdd?(0,r.renderSlot)(e.$slots,"add",{key:0,add:w.add},(()=>[(0,r.createElementVNode)("button",{type:"button",class:"btn role-tertiary add",disabled:n.loading||w.disableAdd,"data-testid":"array-list-button",onClick:t[0]||(t[0]=e=>w.add())},[n.loading?((0,r.openBlock)(),(0,r.createElementBlock)("i",y)):(0,r.createCommentVNode)("",!0),(0,r.createTextVNode)(" "+(0,r.toDisplayString)(w._addLabel),1)],8,v)]),!0):(0,r.createCommentVNode)("",!0)])):(0,r.createCommentVNode)("",!0)])}var _=n(52156),w=n.n(_),E=n(75040),S=n(24759),x=n(67683),k=n(65852),A=n(53512);const N="Tip: Paste lines into any list field for easy bulk entry";var T={emits:["add","remove","update:value"],components:{TextAreaAutoGrow:x.V,LabeledInput:A.o},props:{value:{type:Array,default:null},mode:{type:String,default:E.G5},initialEmptyRow:{type:Boolean,default:!1},title:{type:String,default:""},protip:{type:[String,Boolean],default:N},showHeader:{type:Boolean,default:!1},valueLabel:{type:String,default:"Value"},valuePlaceholder:{type:String,default:"e.g. bar"},valueMultiline:{type:Boolean,default:!1},addLabel:{type:String,default:""},addAllowed:{type:Boolean,default:!0},addDisabled:{type:Boolean,default:!1},removeLabel:{type:String,default:""},removeAllowed:{type:Boolean,default:!0},defaultAddValue:{type:[String,Number,Object,Array],default:""},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},rules:{default:()=>[],type:Array,validator:e=>e.every((e=>["function"].includes(typeof e)))}},data(){const e=(Array.isArray(this.value)?this.value:[]).slice(),t=[];for(const n of e)t.push({value:n});if(!t.length&&this.initialEmptyRow){const e=this.defaultAddValue?(0,k.o8)(this.defaultAddValue):"";t.push({value:e})}return{rows:t,lastUpdateWasFromValue:!1}},computed:{_addLabel(){return this.addLabel||this.t("generic.add")},_removeLabel(){return this.removeLabel||this.t("generic.remove")},isView(){return this.mode===E.nW},showAdd(){return this.addAllowed},disableAdd(){return this.addDisabled},showRemove(){return this.removeAllowed},isDefaultProtip(){return this.protip===N},showProtip(){return!(!this.protip||this.isDefaultProtip)||!this.valueMultiline&&this.protip}},watch:{value:{deep:!0,handler(){this.lastUpdateWasFromValue=!0,this.rows=(this.value||[]).map((e=>({value:e})))}},rows:{deep:!0,handler(e,t){this.lastUpdateWasFromValue||this.queueUpdate(),this.lastUpdateWasFromValue=!1}}},created(){this.queueUpdate=w()(this.update,50)},methods:{add(){this.rows.push({value:(0,k.o8)(this.defaultAddValue)}),this.defaultAddValue&&this.queueUpdate(),this.$nextTick((()=>{const e=this.$refs.value;e&&e.length>0&&e[e.length-1].focus(),this.$emit("add")}))},remove(e,t){this.$emit("remove",{row:e,index:t}),(0,S.Wq)(this.rows,t),this.queueUpdate()},update(){if(this.isView)return;const e=[];for(const t of this.rows){const n=!this.valueMultiline&&"string"===typeof t.value,r=n?t.value.trim():t.value;"undefined"!==typeof r&&e.push(r)}this.$emit("update:value",e)},onPaste(e,t){t.preventDefault();const n=t.clipboardData.getData("text/plain");if(this.valueMultiline)this.rows[e].value=n;else{const r=n.split("\n").map((e=>({value:e})));t.preventDefault(),this.rows.splice(e,1,...r)}this.update()}}},C=(n(10990),n(47433));const R=(0,C.A)(T,[["render",b],["__scopeId","data-v-606c047c"]]);var O=R},4373:function(e,t,n){"use strict";n.d(t,{A:function(){return m}});var r=n(9274);const i=["data-testid","onClick"],o=(0,r.createElementVNode)("i",{class:"icon icon-x"},null,-1),a=[o],s={key:1};function l(e,t,n,o,l,c){const u=(0,r.resolveComponent)("InfoBox"),d=(0,r.resolveComponent)("ArrayList");return(0,r.openBlock)(),(0,r.createBlock)(d,(0,r.mergeProps)({class:"array-list-grouped",value:n.value},e.$attrs,{"add-allowed":n.canAdd&&!c.isView,mode:n.mode,"initial-empty-row":n.initialEmptyRow,"onUpdate:value":t[0]||(t[0]=t=>e.$emit("update:value",t)),onAdd:t[1]||(t[1]=t=>e.$emit("add")),onRemove:t[2]||(t[2]=t=>e.$emit("remove",t))}),(0,r.createSlots)({columns:(0,r.withCtx)((t=>[(0,r.createVNode)(u,null,{default:(0,r.withCtx)((()=>[(0,r.renderSlot)(e.$slots,"default",(0,r.normalizeProps)((0,r.guardReactiveProps)(t)))])),_:2},1024)])),"remove-button":(0,r.withCtx)((e=>[c.canRemoveRow(e.row,e.i)?((0,r.openBlock)(),(0,r.createElementBlock)("button",{key:0,type:"button",class:"btn role-link close btn-sm","data-testid":`remove-item-${e.i}`,onClick:e.remove},a,8,i)):((0,r.openBlock)(),(0,r.createElementBlock)("span",s))])),_:2},[(0,r.renderList)(e.$slots,((t,n)=>({name:n,fn:(0,r.withCtx)((t=>["function"===typeof e.$slots[n]?(0,r.renderSlot)(e.$slots,n,(0,r.normalizeProps)((0,r.mergeProps)({key:0},t))):(0,r.createCommentVNode)("",!0)]))})))]),1040,["value","add-allowed","mode","initial-empty-row"])}var c=n(6961),u=n(65525),d=n(75040),h={name:"ArrayListGrouped",components:{ArrayList:c.A,InfoBox:u.A},props:{canRemove:{type:[Boolean,Function],default:!0},canAdd:{type:Boolean,default:!0},initialEmptyRow:{type:Boolean,default:!1},mode:{type:String,default:d.G5},value:{type:Object,default:()=>({})}},emits:["update:value","add","remove"],computed:{isView(){return this.mode===d.nW}},methods:{canRemoveRow(e,t){return!this.isView&&("function"===typeof this.canRemove?this.canRemove(e,t):this.canRemove)}}},p=(n(73757),n(47433));const f=(0,p.A)(h,[["render",l]]);var m=f},58782:function(e,t,n){"use strict";n.d(t,{B:function(){return c},A:function(){return p}});var r=n(9274);const i=["disabled"],o=["multiple","webkitdirectory","accept"];function a(e,t,n,a,s,l){return l.isView?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("button",{key:0,disabled:n.disabled,type:"button",class:"file-selector btn","data-testid":"file-selector__uploader-button",onClick:t[1]||(t[1]=(...e)=>l.selectFile&&l.selectFile(...e))},[(0,r.createElementVNode)("span",null,(0,r.toDisplayString)(n.label),1),(0,r.createElementVNode)("input",{ref:"uploader",type:"file",class:"hide",multiple:n.multiple,webkitdirectory:n.directory,accept:n.accept,onChange:t[0]||(t[0]=(...e)=>l.fileChange&&l.fileChange(...e))},null,40,o)],8,i))}var s=n(75040),l=n(65852);function c(e){return function(t){(0,l.hZ)(this,e,t)}}var u={emits:["error","selected"],props:{label:{type:String,required:!0},mode:{type:String,default:s.G5},disabled:{type:Boolean,default:!1},includeFileName:{type:Boolean,default:!1},showGrowlError:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},byteLimit:{type:Number,default:0},readAsDataUrl:{type:Boolean,default:!1},directory:{type:Boolean,default:!1},rawData:{type:Boolean,default:!1},accept:{type:String,default:"*"}},computed:{isView(){return this.mode===s.nW}},methods:{selectFile(){this.$refs.uploader.value=null,this.$refs.uploader.click()},async fileChange(e){const t=e.target,n=Array.from(t.files||[]);if(this.byteLimit)for(const i of n)if(i.size>this.byteLimit)return void this.$emit("error",`${i.name} exceeds the file size limit of ${this.byteLimit} bytes`);if(this.rawData){const e=this.multiple||1!==n.length?n:n[0];this.$emit("selected",e)}else try{const e=n.map(this.getFileContents),t=await Promise.all(e),r=this.multiple||1!==t.length?t:t[0];this.$emit("selected",r)}catch(r){this.$emit("error",r),this.showGrowlError&&this.$store.dispatch("growl/fromError",{title:"Error reading file",error:r},{root:!0})}},getFileContents(e){return new Promise(((t,n)=>{const r=new FileReader;r.onload=n=>{const r=n.target.result,i=e.name,o=this.includeFileName?{value:r,name:i}:r;t(o)},r.onerror=e=>{n(e)},this.readAsDataUrl?r.readAsDataURL(e):r.readAsText(e)}))}}},d=n(47433);const h=(0,d.A)(u,[["render",a]]);var p=h},71802:function(e,t,n){"use strict";n.d(t,{A:function(){return g}});var r=n(9274);const i={key:0},o=(0,r.createElementVNode)("div",{class:"spacer-small"},null,-1),a={class:"buttons"},s={class:"left"},l={class:"right"};function c(e,t,n,c,u,d){const h=(0,r.resolveComponent)("Banner"),p=(0,r.resolveComponent)("t"),f=(0,r.resolveComponent)("AsyncButton");return e.isView?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("div",i,[o,((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.errors,((e,t)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:t},[(0,r.createVNode)(h,{color:"error",label:e},null,8,["label"])])))),128)),(0,r.createElementVNode)("div",a,[(0,r.createElementVNode)("div",s,[(0,r.renderSlot)(e.$slots,"left")]),(0,r.createElementVNode)("div",l,[(0,r.renderSlot)(e.$slots,"cancel",{},(()=>[(0,r.createElementVNode)("button",{type:"button",class:"btn role-secondary",onClick:t[0]||(t[0]=(...t)=>e.done&&e.done(...t))},[(0,r.createVNode)(p,{k:"generic.cancel"})])])),(0,r.renderSlot)(e.$slots,"middle"),(0,r.renderSlot)(e.$slots,"save",{},(()=>[e.isView?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createBlock)(f,{key:0,mode:e.mode,disabled:e.disableSave,onClick:e.save},null,8,["mode","disabled","onClick"]))])),(0,r.renderSlot)(e.$slots,"right")])])]))}var u=n(75040),d=n(1804),h=n(52167),p=(0,r.defineComponent)({emits:["save","done"],components:{AsyncButton:d.A,Banner:h.A},props:{mode:{type:String,required:!0},errors:{type:Array,default:null},disableSave:{type:Boolean,default:!1}},computed:{isView(){return this.mode===u.nW}},methods:{save(e){this.$emit("save",e)},done(){this.$emit("done")}}}),f=(n(87300),n(47433));const m=(0,f.A)(p,[["render",c]]);var g=m},70052:function(e,t,n){"use strict";n.d(t,{A:function(){return $}});var r=n(9274);const i=e=>((0,r.pushScopeId)("data-v-c53d72e2"),e=e(),(0,r.popScopeId)(),e),o={key:0},a={key:2,class:"required"},s={key:0,class:"only-user-opts"},l={key:1,class:"vs__option-kind-group"},c={key:1},u={key:2},d={key:3,class:"option-kind-highlighted"},h=["onMousedown"],p={key:0,class:"icon icon-warning pull-right",style:{"font-size":"20px"}},f={key:0,class:"pagination-slot"},m={class:"load-more"},g={key:0,class:"icon icon-spinner icon-spin"},v={key:1},y={class:"count"},b={class:"no-options-slot"},_={key:0},w={key:1,class:"paginating"},E=i((()=>(0,r.createElementVNode)("i",{class:"icon icon-spinner icon-spin"},null,-1))),S=[E],x={key:0,class:"icon icon-spinner icon-spin icon-lg"};function k(e,t,n,i,E,k){const A=(0,r.resolveComponent)("t"),N=(0,r.resolveComponent)("v-select"),T=(0,r.resolveComponent)("LabeledTooltip");return(0,r.openBlock)(),(0,r.createElementBlock)("div",{ref:"select",class:(0,r.normalizeClass)(["labeled-select",[e.$attrs.class,{disabled:e.isView||n.disabled,focused:e.focused,[e.mode]:!0,[n.status]:n.status,taggable:e.$attrs.taggable,taggable:e.$attrs.multiple,hoverable:n.hoverTooltip,"compact-input":e.isCompact,"no-label":!k.hasLabel}]]),onClick:t[4]||(t[4]=(...e)=>k.focusSearch&&k.focusSearch(...e)),onFocus:t[5]||(t[5]=(...e)=>k.focusSearch&&k.focusSearch(...e))},[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)({"labeled-container":!0,raised:e.raised,empty:e.empty,[e.mode]:!0}),style:{border:"none"}},[k.hasLabel?((0,r.openBlock)(),(0,r.createElementBlock)("label",o,[e.labelKey?((0,r.openBlock)(),(0,r.createBlock)(A,{key:0,k:e.labelKey},null,8,["k"])):e.label?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:1},[(0,r.createTextVNode)((0,r.toDisplayString)(e.label),1)],64)):(0,r.createCommentVNode)("",!0),e.requiredField?((0,r.openBlock)(),(0,r.createElementBlock)("span",a,"*")):(0,r.createCommentVNode)("",!0)])):(0,r.createCommentVNode)("",!0)],2),(0,r.createVNode)(N,(0,r.mergeProps)({ref:"select-input"},k.filteredAttrs,{class:["inline",{"no-label":!(e.label||"").length}],"append-to-body":n.appendToBody,"calculate-position":k.positionDropdown,clearable:n.clearable,disabled:e.isView||n.disabled||n.loading,"get-option-key":k.getOptionKey,"get-option-label":e=>k.getOptionLabel(e),label:n.optionLabel,options:k._options,"map-keydown":e.mappedKeys,placeholder:e.placeholder,reduce:e=>n.reduce(e),filterable:e.isFilterable,searchable:e.isSearchable,selectable:n.selectable,modelValue:null==n.value||n.loading?"":n.value,"dropdown-should-open":k.dropdownShouldOpen,"onUpdate:modelValue":t[1]||(t[1]=t=>{e.$emit("selecting",t),e.$emit("update:value",t)}),"onSearch:blur":k.onBlur,"onSearch:focus":k.onFocus,onSearch:k.onSearch,onOpen:k.onOpen,onClose:k.onClose,"onOption:selecting":t[2]||(t[2]=t=>e.$emit("selecting",t)),"onOption:deselecting":t[3]||(t[3]=t=>e.$emit("deselecting",t))}),(0,r.createSlots)({option:(0,r.withCtx)((t=>[k.showTagPrompts?((0,r.openBlock)(),(0,r.createElementBlock)("div",s,(0,r.toDisplayString)(e.t("labeledSelect.pressEnter",{input:k.getOptionLabel(t.label)})),1)):"group"===t.kind?((0,r.openBlock)(),(0,r.createElementBlock)("div",l,[t.icon?((0,r.openBlock)(),(0,r.createElementBlock)("i",{key:0,class:(0,r.normalizeClass)(["icon",{[t.icon]:!0}])},null,2)):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("b",null,(0,r.toDisplayString)(k.getOptionLabel(t)),1),t.badge?((0,r.openBlock)(),(0,r.createElementBlock)("div",c,(0,r.toDisplayString)(t.badge),1)):(0,r.createCommentVNode)("",!0)])):"divider"===t.kind?((0,r.openBlock)(),(0,r.createElementBlock)("hr",u)):"highlighted"===t.kind?((0,r.openBlock)(),(0,r.createElementBlock)("div",d,(0,r.toDisplayString)(t.label),1)):((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:4,class:(0,r.normalizeClass)(["vs__option-kind",{"has-icon":k.hasGroupIcon}]),onMousedown:e=>k.onClickOption(t,e)},[(0,r.createTextVNode)((0,r.toDisplayString)(k.getOptionLabel(t))+" ",1),t.error?((0,r.openBlock)(),(0,r.createElementBlock)("i",p)):(0,r.createCommentVNode)("",!0)],42,h))])),"list-footer":(0,r.withCtx)((()=>[e.canPaginate&&e.totalResults?((0,r.openBlock)(),(0,r.createElementBlock)("div",f,[(0,r.createElementVNode)("div",m,[e.paginating?((0,r.openBlock)(),(0,r.createElementBlock)("i",g)):((0,r.openBlock)(),(0,r.createElementBlock)("div",v,[e.canLoadMore?((0,r.openBlock)(),(0,r.createElementBlock)("a",{key:0,onClick:t[0]||(t[0]=(...t)=>e.loadMore&&e.loadMore(...t))},(0,r.toDisplayString)(e.t("labelSelect.pagination.more")),1)):(0,r.createCommentVNode)("",!0)]))]),(0,r.createElementVNode)("div",y,(0,r.toDisplayString)(e.optionCounts),1)])):(0,r.createCommentVNode)("",!0)])),"no-options":(0,r.withCtx)((({search:t})=>[(0,r.createElementVNode)("div",b,[k.showTagPrompts?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:0},[e.searching?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("span",_,(0,r.toDisplayString)(e.t("labeledSelect.startTyping")),1))],64)):e.paginating?((0,r.openBlock)(),(0,r.createElementBlock)("div",w,S)):t?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:2},[(0,r.createTextVNode)((0,r.toDisplayString)(e.t("labelSelect.noOptions.noMatch")),1)],64)):((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:3},[(0,r.createTextVNode)((0,r.toDisplayString)(e.t(n.noOptionsLabelKey)),1)],64))])])),_:2},[(0,r.renderList)(e.$slots,((t,n)=>({name:n,fn:(0,r.withCtx)((t=>[(0,r.renderSlot)(e.$slots,n,(0,r.normalizeProps)((0,r.guardReactiveProps)(t)),void 0,!0)]))})))]),1040,["append-to-body","calculate-position","class","clearable","disabled","get-option-key","get-option-label","label","options","map-keydown","placeholder","reduce","filterable","searchable","selectable","modelValue","dropdown-should-open","onSearch:blur","onSearch:focus","onSearch","onOpen","onClose"]),n.loading?((0,r.openBlock)(),(0,r.createElementBlock)("i",x)):(0,r.createCommentVNode)("",!0),n.tooltip&&!e.focused?((0,r.openBlock)(),(0,r.createBlock)(T,{key:1,hover:n.hoverTooltip,value:n.tooltip,status:n.status},null,8,["hover","value","status"])):(0,r.createCommentVNode)("",!0),e.validationMessage?((0,r.openBlock)(),(0,r.createBlock)(T,{key:2,hover:n.hoverTooltip,value:e.validationMessage},null,8,["hover","value"])):(0,r.createCommentVNode)("",!0)],34)}var A={props:{compact:{type:Boolean,default:null},label:{type:String,default:null},labelKey:{type:String,default:null}},computed:{isCompact(){return null!==this.compact?this.compact:!(this.label||this.labelKey)}}},N=n(53318),T=n(65852),C=n(8368),R=n(91086),O=n(75606),I=n(92806),D=n(41452),L=(0,r.defineComponent)({props:{paginate:{default:null,type:Function},inStore:{type:String,default:"cluster"},resourceType:{type:String,default:null}},data(){return{currentPage:1,search:"",pageSize:10,pages:0,debouncedRequestPagination:(0,I.debounce)(this.requestPagination,700),page:[],totalResults:0,paginating:!1}},async mounted(){this.canPaginate&&await this.requestPagination()},computed:{canPaginate(){return!!this.paginate&&!!this.resourceType&&this.$store.getters[`${this.inStore}/paginationEnabled`](this.resourceType)},canLoadMore(){return this.pages>this.currentPage},optionsInPage(){return this.canPaginate?this._options.filter((e=>e.kind!==D.c.NONE&&!D.w.includes(e.kind))).length:0},optionCounts(){return this.canPaginate&&this.optionsInPage!==this.totalResults?this.$store.getters["i18n/t"]("labelSelect.pagination.counts",{count:this.optionsInPage,totalCount:this.totalResults}):""}},methods:{loadMore(){this.currentPage++,this.requestPagination()},setPaginationFilter(e){this.paginating=!0,this.currentPage=1,this.search=e,this.debouncedRequestPagination(!0)},async requestPagination(e=!1){this.paginating=!0;const t=this.paginate,{page:n,pages:r,total:i}=await t({resetPage:e,pageContent:this.page||[],page:this.currentPage,filter:this.search,pageSize:this.pageSize});this.page=n,this.pages=r||0,this.totalResults=i||0,this.paginating=!1}}}),P=n(25443),M={name:"LabeledSelect",inheritAttrs:!1,components:{LabeledTooltip:C.Z},mixins:[A,N.A,R.A,L],emits:["on-open","on-close","selecting","deselecting","update:validation","update:value"],props:{appendToBody:{default:!0,type:Boolean},clearable:{default:!1,type:Boolean},disabled:{default:!1,type:Boolean},required:{default:!1,type:Boolean},hoverTooltip:{default:!0,type:Boolean},loading:{default:!1,type:Boolean},localizedLabel:{default:!1,type:Boolean},optionKey:{default:null,type:String},optionLabel:{default:"label",type:String},placement:{default:null,type:String},reduce:{default:e=>e&&"object"===typeof e&&void 0!==e.value?e.value:e,type:Function},selectable:{default:e=>!e||!(e.disabled||D.w.includes(e.kind)||e.loading),type:Function},status:{default:null,type:String},tooltip:{default:null,type:[String,Object]},value:{default:null,type:[String,Object,Number,Array,Boolean]},options:{type:Array,default:()=>[]},closeOnSelect:{type:Boolean,default:!0},noOptionsLabelKey:{type:String,default:"labelSelect.noOptions.empty"}},data(){return{selectedVisibility:"visible",shouldOpen:!0}},computed:{...(0,P.L8)({t:"i18n/t"}),hasLabel(){return!this.isCompact&&(!!this.label||!!this.labelKey||!!this.$slots.label)},hasGroupIcon(){return!!this.canPaginate&&!!this._options.find((e=>"group"===e.kind&&!!e.icon))},_options(){return this.canPaginate?this.page:this.options},filteredAttrs(){const{class:e,...t}=this.$attrs;return t},showTagPrompts(){return!this.options.length&&this.$attrs.taggable}},methods:{focusSearch(){const e=Date.now()-this.blurred;!this.focused&&e<250||this.$nextTick((()=>{const e=this.$refs["select-input"]?.searchEl;e&&e.focus()}))},onFocus(){this.selectedVisibility="hidden",this.onFocusLabeled()},onBlur(){this.selectedVisibility="visible",this.onBlurLabeled()},onOpen(){this.$emit("on-open"),this.resizeHandler()},onClose(){this.$emit("on-close")},getOptionLabel(e){if(e){if(this.$attrs["get-option-label"])return this.$attrs["get-option-label"](e);if((0,T.Jt)(e,this.optionLabel)){if(this.localizedLabel){const t=(0,T.Jt)(e,this.optionLabel);return this.$store.getters["i18n/t"](t)||t}return(0,T.Jt)(e,this.optionLabel)}return e}},positionDropdown(e,t,{width:n}){(0,O.s)(e,t,n,this.placement)},get:T.Jt,onClickOption(e,t){O.t.call(this,e,t)},dropdownShouldOpen(e,t=!1){const{noDrop:n,mutableLoading:r}=e,{open:i}=e,o=this.shouldOpen;return t?(e.open=!0,!0):(!1===o&&(this.shouldOpen=!0,e.closeSearchOptions()),!n&&(i&&o&&!r))},onSearch(e){this.canPaginate?this.setPaginationFilter(e):e&&this.dropdownShouldOpen(this.$refs["select-input"],!0)},getOptionKey(e){return this.optionKey?(0,T.Jt)(e,this.optionKey):this.getOptionLabel(e)}}},F=(n(86330),n(47433));const B=(0,F.A)(M,[["render",k],["__scopeId","data-v-c53d72e2"]]);var $=B},70455:function(e,t,n){"use strict";n.d(t,{A:function(){return p}});var r=n(9274);function i(e,t,n,i,o,a){const s=(0,r.resolveComponent)("LabeledSelect");return(0,r.openBlock)(),(0,r.createBlock)(s,(0,r.mergeProps)(e.labelSelectAttributes,{loading:e.$fetchState.pending,options:e.allOfType,paginate:e.paginateType}),null,16,["loading","options","paginate"])}var o,a=n(70052),s=n(80989),l=n(9776);async function c({opts:e,type:t,ctx:n,filters:r=[],sort:i=[{asc:!0,field:"metadata.namespace"},{asc:!0,field:"metadata.name"}],store:o="cluster",groupByNamespace:a=!0,classify:c=!1}){const{pageContent:u,page:d,pageSize:h,resetPage:p}=e;try{const e=new s.gR({page:d,pageSize:h,sort:i,filters:r}),l=n.getters[`${o}/urlFor`](t,null,{pagination:e}),f=await n.dispatch(`${o}/request`,{url:l});let m=f.data;c&&(m=await n.dispatch("cluster/createMany",m));const g=p?m:u.concat(m);let v;if(a){const e={};g.forEach((t=>{const n=t.metadata.namespace;"group"!==t.kind&&(e[n]||(e[n]=[]),e[n].push(t))})),v=[],Object.keys(e).sort().forEach((t=>{v.push({kind:"group",icon:"icon-namespace",id:t,metadata:{name:t},disabled:!0}),v=v.concat(e[t])}))}else v=g;return{page:v,pages:f.pages||Math.ceil(f.count/(h||Number.MAX_SAFE_INTEGER)),total:f.count}}catch(f){l.error(f)}return{page:[],pages:0,total:0}}(function(e){e["ALL_RESOURCES"]="ALL",e["DYNAMIC"]="DYNAMIC"})(o||(o={}));var u=(0,r.defineComponent)({name:"ResourceLabeledSelect",components:{LabeledSelect:a.A},props:{resourceType:{type:String,required:!0},inStore:{type:String,default:"cluster"},paginateMode:{type:String,default:o.DYNAMIC},allResourcesSettings:{type:Object,default:null},paginatedResourceSettings:{type:Object,default:null}},data(){return{paginate:!1}},async fetch(){switch(this.paginateMode){case o.ALL_RESOURCES:this.paginate=!1;break;case o.DYNAMIC:this.paginate=this.$store.getters[`${this.inStore}/paginationEnabled`](this.resourceType);break}this.paginate||await this.$store.dispatch(`${this.inStore}/findAll`,{type:this.resourceType})},computed:{labelSelectAttributes(){var e,t;const n={...this.$attrs,...this.$props};return this.paginate?{...n,...(null===(e=this.paginatedResourceSettings)||void 0===e?void 0:e.labelSelectOptions)||{}}:{...n,...(null===(t=this.allResourcesSettings)||void 0===t?void 0:t.labelSelectOptions)||{}}},allOfType(){var e;if(this.$fetchState.pending||this.paginate)return[];const t=this.$store.getters[`${this.inStore}/all`](this.resourceType);return(null===(e=this.allResourcesSettings)||void 0===e?void 0:e.mapResult)?this.allResourcesSettings.mapResult(t):t}},methods:{async paginateType(e){var t,n,r;if(null===(t=this.paginatedResourceSettings)||void 0===t?void 0:t.overrideRequest)return await this.paginatedResourceSettings.overrideRequest(e);const{filter:i}=e,o=i?[s.eY.createSingleField({field:"metadata.name",value:i,exact:!1})]:[],a={opts:e,filters:o,type:this.resourceType,ctx:{getters:this.$store.getters,dispatch:this.$store.dispatch},sort:[{asc:!0,field:"metadata.name"}]},l=(null===(n=this.paginatedResourceSettings)||void 0===n?void 0:n.requestSettings)?this.paginatedResourceSettings.requestSettings(a):a,u=await c(l);return(null===(r=this.paginatedResourceSettings)||void 0===r?void 0:r.mapResult)?{...u,page:this.paginatedResourceSettings.mapResult(u.page)}:u}}}),d=n(47433);const h=(0,d.A)(u,[["render",i]]);var p=h},84818:function(e,t,n){"use strict";n.d(t,{A:function(){return f}});var r=n(9274);const i=["onMousedown"];function o(e,t,n,o,a,s){const l=(0,r.resolveComponent)("v-select"),c=(0,r.resolveComponent)("LabeledTooltip");return(0,r.openBlock)(),(0,r.createElementBlock)("div",{ref:"select",class:(0,r.normalizeClass)(["unlabeled-select",{disabled:n.disabled&&!e.isView,focused:e.focused,[n.mode]:!0,[n.status]:n.status,taggable:e.$attrs.taggable,taggable:e.$attrs.multiple,"compact-input":n.compact,[e.$attrs.class]:e.$attrs.class}]),onFocus:t[2]||(t[2]=(...e)=>s.focusSearch&&s.focusSearch(...e))},[(0,r.createVNode)(l,(0,r.mergeProps)({ref:"select-input"},s.deClassedAttrs,{class:["inline",{"select-input-view":"view"===n.mode}],autoscroll:!0,"append-to-body":n.appendToBody,"calculate-position":s.positionDropdown,disabled:e.isView||n.disabled,"get-option-key":e=>s.getOptionKey(e),"get-option-label":e=>s.getOptionLabel(e),label:n.optionLabel,options:e.options,"close-on-select":n.closeOnSelect,"map-keydown":e.mappedKeys,placeholder:n.placeholder,reduce:e=>n.reduce(e),searchable:e.isSearchable,selectable:s.selectable,modelValue:null!=n.value?n.value:"","onUpdate:modelValue":t[0]||(t[0]=t=>e.$emit("update:value",t)),"onSearch:blur":e.onBlur,"onSearch:focus":e.onFocus,onOpen:e.resizeHandler,"onOption:created":t[1]||(t[1]=t=>e.$emit("createdListItem",t))}),(0,r.createSlots)({option:(0,r.withCtx)((e=>[(0,r.createElementVNode)("div",{onMousedown:t=>s.onClickOption(e,t)},(0,r.toDisplayString)(s.getOptionLabel(e.label)),41,i)])),_:2},[(0,r.renderList)(e.$slots,((t,n)=>({name:n,fn:(0,r.withCtx)((t=>[(0,r.renderSlot)(e.$slots,n,(0,r.normalizeProps)((0,r.guardReactiveProps)(t)),void 0,!0)]))})))]),1040,["class","append-to-body","calculate-position","disabled","get-option-key","get-option-label","label","options","close-on-select","map-keydown","placeholder","reduce","searchable","selectable","modelValue","onSearch:blur","onSearch:focus","onOpen"]),n.tooltip&&!e.focused?((0,r.openBlock)(),(0,r.createBlock)(c,{key:0,hover:n.hoverTooltip,value:n.tooltip,status:n.status},null,8,["hover","value","status"])):(0,r.createCommentVNode)("",!0),s.validationMessage?((0,r.openBlock)(),(0,r.createBlock)(c,{key:1,hover:n.hoverTooltip,value:s.validationMessage},null,8,["hover","value"])):(0,r.createCommentVNode)("",!0)],34)}var a=n(65852),s=n(53318),l=n(91086),c=n(8368),u=n(75606),d={emits:["update:value","createdListItem"],components:{LabeledTooltip:c.Z},mixins:[s.A,l.A],props:{appendToBody:{default:!0,type:Boolean},disabled:{default:!1,type:Boolean},getKeyForOption:{default:null,type:Function},mode:{default:"edit",type:String},optionKey:{default:null,type:String},optionLabel:{default:"label",type:String},placement:{default:null,type:String},placeholder:{type:String,default:""},popperOverride:{type:Function,default:null},reduce:{default:e=>e&&"object"===typeof e&&void 0!==e.value?e.value:e,type:Function},tooltip:{type:String,default:null},hoverTooltip:{type:Boolean,default:!0},status:{type:String,default:null},value:{default:null,type:[String,Object,Number,Array,Boolean]},closeOnSelect:{type:Boolean,default:!0},compact:{type:Boolean,default:null}},methods:{getOptionLabel(e){return this.$attrs["get-option-label"]?this.$attrs["get-option-label"](e):(0,a.Jt)(e,this.optionLabel)?this.localizedLabel?this.$store.getters["i18n/t"]((0,a.Jt)(e,this.optionLabel)):(0,a.Jt)(e,this.optionLabel):e},positionDropdown(e,t,{width:n}){if(this.popperOverride)return this.popperOverride(e,t,{width:n});(0,u.s)(e,t,n,this.placement)},focus(){this.focusSearch()},focusSearch(){this.$nextTick((()=>{const e=this.$refs["select-input"]?.searchEl;e&&e.focus()}))},get:a.Jt,onClickOption(e,t){u.t.call(this,e,t)},selectable(e){return!e||!e.disabled&&"group"!==e.kind&&"divider"!==e.kind&&!e.loading},getOptionKey(e){if(e&&this.optionKey)return(0,a.Jt)(e,this.optionKey);if(e?.optionKey)return(0,a.Jt)(e,e.optionKey);const t=this.getOptionLabel(e);return"string"===typeof t||"number"===typeof t?t:Math.random(1e5)},report(e){alert(e)}},computed:{requiredField(){return this.required||this.rules.some((e=>"required"===e?.name))},validationMessage(){const e=this.rules.find((e=>"required"===e?.name)),t=[],n=this?.value;if(e&&this.blurred&&!this.focused){const t=e(n);if(t)return t}for(const r of this.rules){const e=r(n);e&&"required"!==r.name&&t.push(e)}return t.length>0&&(this.blurred||this.focused)?t.join(", "):void 0},canPaginate(){return!1},deClassedAttrs(){const{class:e,...t}=this.$attrs;return t}}},h=(n(12577),n(47433));const p=(0,h.A)(d,[["render",o],["__scopeId","data-v-51b2fedb"]]);var f=p},43428:function(e,t,n){"use strict";n.d(t,{A:function(){return y}});var r=n(9274);const i={class:"secret-selector show-key-selector"},o={class:"input-container"};function a(e,t,n,a,s,l){const c=(0,r.resolveComponent)("ResourceLabeledSelect"),u=(0,r.resolveComponent)("LabeledSelect");return(0,r.openBlock)(),(0,r.createElementBlock)("div",i,[(0,r.createElementVNode)("div",o,[(0,r.createVNode)(c,{value:s.name,"onUpdate:value":t[0]||(t[0]=e=>s.name=e),class:"col span-6",disabled:!l.isView&&n.disabled,loading:e.$fetchState.pending,label:n.secretNameLabel,mode:n.mode,"resource-type":s.SECRET,"paginated-resource-settings":s.paginateSecretsSetting,"all-resources-settings":s.allSecretsSettings,onSelecting:l.updateSecretName},null,8,["value","disabled","loading","label","mode","resource-type","paginated-resource-settings","all-resources-settings","onSelecting"]),(0,r.createVNode)(u,{value:s.key,"onUpdate:value":t[1]||(t[1]=e=>s.key=e),class:"col span-6",disabled:l.isKeyDisabled,options:l.keys,label:n.keyNameLabel,mode:n.mode,onSelecting:l.updateSecretKey},null,8,["value","disabled","options","label","mode","onSelecting"])])])}var s=n(70052),l=n(70455),c=n(4284),u=n(75040),d=n(62737),h=n(41452),p=n(80989);const f="__[[NONE]]__";var m={emits:["updateSecretName","updateSecretKey"],components:{LabeledSelect:s.A,ResourceLabeledSelect:l.A},props:{test:{type:String,default:""},initialName:{type:String,required:!0},initialKey:{type:String,required:!0},namespace:{type:String,required:!0},types:{type:Array,default:()=>Object.values(d.TYPES)},disabled:{type:Boolean,default:!1},secretNameLabel:{type:String,default:"Secret Name"},keyNameLabel:{type:String,default:"Key"},mode:{type:String,default:u.G5}},data(e){return{secrets:[],name:e.initialName,key:e.initialKey,none:f,SECRET:c.bB,allSecretsSettings:{mapResult:e=>{const t=e.filter((e=>this.types.includes(e._type)&&e.namespace===this.namespace)),n=this.mapSecrets(t.sort(((e,t)=>e.name.localeCompare(t.name))));return this.secrets=t,n}},paginateSecretsSetting:{requestSettings:this.paginatePageOptions,mapResult:e=>{const t=this.mapSecrets(e);return this.secrets=e,t}}}},computed:{keys(){const e=(this.secrets||[]).find((e=>e.name===this.name))||{};return Object.keys(e.data||{}).map((e=>({label:e,value:e})))},isView(){return this.mode===u.nW},isKeyDisabled(){return!this.isView&&(!this.name||this.name===f||this.disabled)}},methods:{mapSecrets(e){const t=e.reduce(((e,t)=>(t.kind===h.c.NONE||(t.id?e.push({label:t.name,value:t.name}):e.push(t)),e)),[]);return[{label:"None",value:f,kind:h.c.NONE},...t]},paginatePageOptions(e){const{opts:{filter:t}}=e,n=t?[p.eY.createSingleField({field:"metadata.name",value:t})]:[];return n.push(p.eY.createSingleField({field:"metadata.namespace",value:this.namespace}),p.eY.createSingleField({field:"metadata.fields.1",value:this.types.join(",")})),{...e,filters:n,groupByNamespace:!1,classify:!0,sort:[{asc:!0,field:"metadata.name"}]}},updateSecretName(e){e.value===this.none&&(this.key=""),e.value&&this.$emit("updateSecretName",e.value)},updateSecretKey(e){e.value&&this.$emit("updateSecretKey",e.value)}}},g=(n(32906),n(47433));const v=(0,g.A)(m,[["render",a]]);var y=v},32638:function(e,t,n){"use strict";n.d(t,{A:function(){return b}});var r=n(9274);const i={class:"row"},o={class:"col span-12"},a={class:"row mb-20"},s={class:"row mb-20"},l={class:"row mb-20"},c={class:"row mb-20"},u={class:"col span-12"};function d(e,t,n,d,h,p){const f=(0,r.resolveComponent)("SimpleSecretSelector"),m=(0,r.resolveComponent)("Banner"),g=(0,r.resolveComponent)("LabeledInput");return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[(0,r.createElementVNode)("div",i,[(0,r.createElementVNode)("div",o,[(0,r.createElementVNode)("h3",null,(0,r.toDisplayString)(e.t("monitoring.receiver.tls.label")),1)])]),(0,r.createElementVNode)("div",a,[n.namespace?((0,r.openBlock)(),(0,r.createBlock)(f,{key:0,"initial-key":h.initialCaSecretKey,"initial-name":h.initialCaSecretName,mode:n.mode,namespace:n.namespace,disabled:n.mode===h.view,"secret-name-label":e.t("monitoringReceiver.tls.ca"),onUpdateSecretName:p.updateCaSecretName,onUpdateSecretKey:p.updateCaSecretKey},null,8,["initial-key","initial-name","mode","namespace","disabled","secret-name-label","onUpdateSecretName","onUpdateSecretKey"])):((0,r.openBlock)(),(0,r.createBlock)(m,{key:1,color:"error"},{default:(0,r.withCtx)((()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.t("alertmanagerConfigReceiver.namespaceWarning")),1)])),_:1}))]),(0,r.createElementVNode)("div",s,[n.namespace?((0,r.openBlock)(),(0,r.createBlock)(f,{key:0,"initial-key":h.initialClientCertSecretKey,"initial-name":h.initialClientCertSecretName,mode:n.mode,namespace:n.namespace,disabled:n.mode===h.view,"secret-name-label":e.t("monitoringReceiver.tls.cert"),onUpdateSecretName:p.updateClientCertSecretName,onUpdateSecretKey:p.updateClientCertSecretKey},null,8,["initial-key","initial-name","mode","namespace","disabled","secret-name-label","onUpdateSecretName","onUpdateSecretKey"])):((0,r.openBlock)(),(0,r.createBlock)(m,{key:1,color:"error"},{default:(0,r.withCtx)((()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.t("alertmanagerConfigReceiver.namespaceWarning")),1)])),_:1}))]),(0,r.createElementVNode)("div",l,[n.namespace?((0,r.openBlock)(),(0,r.createBlock)(f,{key:0,"initial-key":h.initialClientKeySecretKey,"initial-name":h.initialClientKeySecretName,mode:n.mode,namespace:n.namespace,disabled:n.mode===h.view,"secret-name-label":e.t("monitoringReceiver.tls.key"),onUpdateSecretName:p.updateClientKeySecretName,onUpdateSecretKey:p.updateClientKeySecretKey},null,8,["initial-key","initial-name","mode","namespace","disabled","secret-name-label","onUpdateSecretName","onUpdateSecretKey"])):((0,r.openBlock)(),(0,r.createBlock)(m,{key:1,color:"error"},{default:(0,r.withCtx)((()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.t("alertmanagerConfigReceiver.namespaceWarning")),1)])),_:1}))]),(0,r.createElementVNode)("div",c,[(0,r.createElementVNode)("div",u,[(0,r.createVNode)(g,{value:n.value.tlsConfig.serverName,"onUpdate:value":t[0]||(t[0]=e=>n.value.tlsConfig.serverName=e),mode:n.mode,label:e.t("monitoringReceiver.tls.serverName"),tooltip:e.t("monitoringReceiver.tls.serverNameTooltip")},null,8,["value","mode","label","tooltip"])])])])}var h=n(53512),p=n(58832),f=n(43428),m=n(75040),g={components:{Banner:p.l,LabeledInput:h.o,SimpleSecretSelector:f.A},props:{mode:{type:String,required:!0},value:{type:Object,required:!0},namespace:{type:String,required:!0}},data(){return this.value["tlsConfig"]=this.value.tlsConfig||{},{initialCaSecretKey:this.value.tlsConfig.ca?.secret?.key?this.value.tlsConfig.ca.secret.key:"",initialCaSecretName:this.value.tlsConfig.ca?.secret?.name?this.value.tlsConfig.ca.secret.name:"",initialClientCertSecretKey:this.value.tlsConfig.cert?.secret?.key?this.value.tlsConfig.cert.secret.key:"",initialClientCertSecretName:this.value.tlsConfig.cert?.secret?.name?this.value.tlsConfig.cert.secret.name:"",initialClientKeySecretKey:this.value.tlsConfig.keySecret?.key?this.value.tlsConfig.keySecret.key:"",initialClientKeySecretName:this.value.tlsConfig.keySecret?.name?this.value.tlsConfig.keySecret.name:"",view:m.nW,none:"__[[NONE]]__"}},methods:{updateCaSecretName(e){const t=this.value.tlsConfig.ca?.secret?.key||"";this.value.tlsConfig.ca||(this.value.tlsConfig["ca"]={secret:{name:e,key:""}}),this.value.tlsConfig.ca?.secret?e===this.none?this.value.tlsConfig.ca={}:this.value.tlsConfig.ca.secret={key:t,name:e}:this.value.tlsConfig.ca["secret"]={key:t,name:e}},updateCaSecretKey(e){const t=this.value.tlsConfig.ca?.secret?.name||"";this.value.tlsConfig.ca||(this.value.tlsConfig["ca"]={secret:{name:"",key:e}}),this.value.tlsConfig.ca?.secret?this.value.tlsConfig.ca.secret={name:t,key:e}:this.value.tlsConfig.ca["secret"]={key:"",name:t}},updateClientCertSecretName(e){const t=this.value.tlsConfig.cert?.secret?.key||"";this.value.tlsConfig.cert||(this.value.tlsConfig["cert"]={secret:{name:e,key:""}}),this.value.tlsConfig.cert?.secret?e===this.none?this.value.tlsConfig.cert={}:this.value.tlsConfig.cert.secret={key:t,name:e}:this.value.tlsConfig.cert["secret"]={key:"",name:e}},updateClientCertSecretKey(e){const t=this.value.tlsConfig.cert?.secret?.name||"";this.value.tlsConfig.cert||(this.value.tlsConfig["cert"]={secret:{name:"",key:e}}),this.value.tlsConfig.cert?.secret?this.value.tlsConfig.cert.secret={name:t,key:e}:this.value.tlsConfig.cert["secret"]={key:"",name:t}},updateClientKeySecretName(e){const t=this.value.tlsConfig.keySecret?.key||"";this.value.tlsConfig.keySecret?e===this.none?this.value.tlsConfig.keySecret={}:this.value.tlsConfig.keySecret={key:t,name:e}:this.value.tlsConfig["keySecret"]={key:"",name:e}},updateClientKeySecretKey(e){const t=this.value.tlsConfig.keySecret?.name||"";this.value.tlsConfig.keySecret?this.value.tlsConfig.keySecret={name:t,key:e}:this.value.tlsConfig["keySecret"]={key:e,name:""}}}},v=n(47433);const y=(0,v.A)(g,[["render",d]]);var b=y},2411:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return A}});var r=n(9274);const i=(0,r.createElementVNode)("div",{class:"row"},[(0,r.createElementVNode)("div",{class:"col span-12"},[(0,r.createElementVNode)("h3",null,"Target")])],-1),o={class:"row mb-20"},a={class:"col span-6"},s={class:"col span-6"},l=(0,r.createElementVNode)("h2",{class:"mb-10"}," SMTP ",-1),c={class:"row mb-20"},u={class:"col span-12"},d={class:"row mb-20"},h={class:"col span-6"},p={class:"col span-6"},f={key:0,class:"row mb-20"},m={class:"col span-6"},g={class:"row mb-20"};function v(e,t,n,v,y,b){const _=(0,r.resolveComponent)("LabeledInput"),w=(0,r.resolveComponent)("Checkbox"),E=(0,r.resolveComponent)("SimpleSecretSelector"),S=(0,r.resolveComponent)("Banner"),x=(0,r.resolveComponent)("TLS");return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[i,(0,r.createElementVNode)("div",o,[(0,r.createElementVNode)("div",a,[(0,r.createVNode)(_,{value:n.value.to,"onUpdate:value":t[0]||(t[0]=e=>n.value.to=e),mode:n.mode,label:"Default Recipient Address",placeholder:"e.g. admin@example.com"},null,8,["value","mode"])]),(0,r.createElementVNode)("div",s,[(0,r.createVNode)(w,{value:n.value.sendResolved,"onUpdate:value":t[1]||(t[1]=e=>n.value.sendResolved=e),mode:n.mode,class:"mt-20",label:"Enable send resolved alerts"},null,8,["value","mode"])])]),l,(0,r.createElementVNode)("div",c,[(0,r.createElementVNode)("div",u,[(0,r.createVNode)(_,{value:n.value.from,"onUpdate:value":t[2]||(t[2]=e=>n.value.from=e),mode:n.mode,label:"Sender",placeholder:"e.g. admin@example.com"},null,8,["value","mode"])])]),(0,r.createElementVNode)("div",d,[(0,r.createElementVNode)("div",h,[(0,r.createVNode)(_,{value:n.value.smarthost,"onUpdate:value":t[3]||(t[3]=e=>n.value.smarthost=e),mode:n.mode,label:"Host",placeholder:"e.g. 192.168.1.121:587"},null,8,["value","mode"])]),(0,r.createElementVNode)("div",p,[(0,r.createVNode)(w,{value:n.value.requireTLS,"onUpdate:value":t[4]||(t[4]=e=>n.value.requireTLS=e),mode:n.mode,class:"mt-20",label:"Use TLS"},null,8,["value","mode"])])]),n.namespace?((0,r.openBlock)(),(0,r.createElementBlock)("div",f,[(0,r.createElementVNode)("div",m,[(0,r.createVNode)(_,{value:n.value.authUsername,"onUpdate:value":t[5]||(t[5]=e=>n.value.authUsername=e),mode:n.mode,label:e.t("monitoring.alertmanagerConfig.email.username"),placeholder:"e.g. John"},null,8,["value","mode","label"])])])):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("div",g,[n.namespace?((0,r.openBlock)(),(0,r.createBlock)(E,{key:0,"initial-key":y.initialAuthPasswordSecretKey,mode:n.mode,"initial-name":y.initialAuthPasswordSecretName,namespace:n.namespace,disabled:n.mode===y.view,"secret-name-label":e.t("monitoring.alertmanagerConfig.email.password"),onUpdateSecretName:b.updateAuthPasswordSecretName,onUpdateSecretKey:b.updateAuthPasswordSecretKey},null,8,["initial-key","mode","initial-name","namespace","disabled","secret-name-label","onUpdateSecretName","onUpdateSecretKey"])):((0,r.openBlock)(),(0,r.createBlock)(S,{key:1,color:"error"},{default:(0,r.withCtx)((()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.t("alertmanagerConfigReceiver.namespaceWarning")),1)])),_:1}))]),(0,r.createVNode)(x,{value:n.value,class:"mb-20",mode:n.mode,namespace:n.namespace,"onUpdate:value":t[6]||(t[6]=t=>e.$emit("input",t))},null,8,["value","mode","namespace"])])}var y=n(53512),b=n(3276),_=n(32638),w=n(43428),E=n(75040),S={emits:["input"],components:{Checkbox:b.S,LabeledInput:y.o,SimpleSecretSelector:w.A,TLS:_.A},props:{mode:{type:String,required:!0},value:{type:Object,required:!0},namespace:{type:String,default:""}},data(){return this.value["sendResolved"]=this.value.sendResolved||!1,this.value["requireTLS"]=this.value.requireTLS||!1,{view:E.nW,initialAuthPasswordSecretName:this.value?.authPassword?.name?this.value.authPassword.name:"",initialAuthPasswordSecretKey:this.value.authPassword?.key?this.value.authPassword.key:"",none:"__[[NONE]]__"}},methods:{updateAuthPasswordSecretName(e){const t=this.value.authPassword?.key||"";this.value.authPassword?e===this.none?delete this.value.authPassword:this.value.authPassword={key:t,name:e}:this.value["authPassword"]={key:"",name:e}},updateAuthPasswordSecretKey(e){const t=this.value.authPassword?.name||"";this.value.authPassword?this.value.authPassword={name:t,key:e}:this.value["authPassword"]={name:"",key:e}}}},x=n(47433);const k=(0,x.A)(S,[["render",v]]);var A=k},66201:function(e,t,n){"use strict";n.r(t),n.d(t,{TARGETS:function(){return F},TYPES:function(){return B},default:function(){return U}});var r=n(9274);const i=e=>((0,r.pushScopeId)("data-v-59c71095"),e=e(),(0,r.popScopeId)(),e),o=i((()=>(0,r.createElementVNode)("div",{class:"row"},[(0,r.createElementVNode)("div",{class:"col span-12"},[(0,r.createElementVNode)("h3",null,"Target")])],-1))),a={class:"row mb-20"},s={class:"row mb-20"},l={class:"col span-12"},c={class:"row mb-20"},u={class:"row"},d={class:"col span-12"},h=i((()=>(0,r.createElementVNode)("h3",null,"Responders",-1))),p={class:"responders-heading"},f=i((()=>(0,r.createElementVNode)("div",{class:"col span-6"},[(0,r.createElementVNode)("span",{class:"text-label"},"Type")],-1))),m=i((()=>(0,r.createElementVNode)("div",{class:"col span-6 send-to"},[(0,r.createElementVNode)("span",{class:"text-label"},"Send To")],-1))),g=[f,m],v={class:"row responder"},y={class:"col span-6"},b={key:0},_={class:"col-span-6 target-container"},w={key:0};function E(e,t,n,i,f,m){const E=(0,r.resolveComponent)("SimpleSecretSelector"),S=(0,r.resolveComponent)("Banner"),x=(0,r.resolveComponent)("LabeledInput"),k=(0,r.resolveComponent)("Checkbox"),A=(0,r.resolveComponent)("Select"),N=(0,r.resolveComponent)("InputWithSelect"),T=(0,r.resolveComponent)("ArrayList");return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[o,(0,r.createElementVNode)("div",a,[n.namespace?((0,r.openBlock)(),(0,r.createBlock)(E,{key:0,"initial-key":f.initialApiKeySecretKey,mode:n.mode,"initial-name":f.initialApiKeySecretName,namespace:n.namespace,disabled:n.mode===f.view,"secret-name-label":e.t("monitoring.alertmanagerConfig.opsgenie.apiKey"),onUpdateSecretName:m.updateApiKeySecretName,onUpdateSecretKey:m.updateApiKeySecretKey},null,8,["initial-key","mode","initial-name","namespace","disabled","secret-name-label","onUpdateSecretName","onUpdateSecretKey"])):((0,r.openBlock)(),(0,r.createBlock)(S,{key:1,color:"error"},{default:(0,r.withCtx)((()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.t("alertmanagerConfigReceiver.namespaceWarning")),1)])),_:1}))]),(0,r.createElementVNode)("div",s,[(0,r.createElementVNode)("div",l,[(0,r.createVNode)(x,{value:n.value.httpConfig.proxyURL,"onUpdate:value":t[0]||(t[0]=e=>n.value.httpConfig.proxyURL=e),mode:n.mode,label:"Proxy URL",placeholder:"e.g. http://my-proxy/"},null,8,["value","mode"])])]),(0,r.createElementVNode)("div",c,[(0,r.createVNode)(k,{value:n.value.sendResolved,"onUpdate:value":t[1]||(t[1]=e=>n.value.sendResolved=e),mode:n.mode,label:"Enable send resolved alerts"},null,8,["value","mode"])]),(0,r.createElementVNode)("div",u,[(0,r.createElementVNode)("div",d,[h,(0,r.createVNode)(T,{value:f.responders,"onUpdate:value":t[2]||(t[2]=e=>f.responders=e),mode:n.mode,"default-add-value":f.defaultResponder,"show-header":!0},{"column-headers":(0,r.withCtx)((()=>[(0,r.createElementVNode)("div",p,[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["row",{"mb-15":m.isView,"mb-10":!m.isView}])},g,2)])])),columns:(0,r.withCtx)((e=>[(0,r.createElementVNode)("div",v,[(0,r.createElementVNode)("div",y,[m.isView?((0,r.openBlock)(),(0,r.createElementBlock)("span",b,(0,r.toDisplayString)(m.typeLabel(e.row.value.type)),1)):((0,r.openBlock)(),(0,r.createBlock)(A,{key:1,value:e.row.value.type,"onUpdate:value":t=>e.row.value.type=t,mode:n.mode,options:f.TYPES},null,8,["value","onUpdate:value","mode","options"]))]),(0,r.createElementVNode)("div",_,[m.isView?((0,r.openBlock)(),(0,r.createElementBlock)("span",w,(0,r.toDisplayString)(m.targetLabel(e.row.value.target))+": "+(0,r.toDisplayString)(e.row.value.value),1)):((0,r.openBlock)(),(0,r.createBlock)(N,{key:1,class:"target",mode:n.mode,options:f.TARGETS,"select-value":e.row.value.target,"text-value":e.row.value.value,"onUpdate:value":t=>m.updateResponder(t,e.row.value)},null,8,["mode","options","select-value","text-value","onUpdate:value"]))])])])),_:1},8,["value","mode","default-add-value"])])])])}var S=n(6961),x=n(53512),k=n(84818),A=n(3276);const N=["disabled","placeholder"];function T(e,t,n,i,o,a){const s=(0,r.resolveComponent)("LabeledSelect"),l=(0,r.resolveComponent)("Select"),c=(0,r.resolveComponent)("LabeledInput");return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)([{"select-after":!n.selectBeforeText},"input-container row"])},[n.selectLabel?((0,r.openBlock)(),(0,r.createBlock)(s,{key:0,value:o.selected,"onUpdate:value":[t[0]||(t[0]=e=>o.selected=e),a.change],label:n.selectLabel,class:(0,r.normalizeClass)({"in-input":!e.isView}),options:n.options,searchable:!1,clearable:!1,disabled:n.disabled||e.isView,taggable:n.taggable,"create-option":e=>({label:e,value:e}),multiple:!1,mode:e.mode,"option-label":n.optionLabel,placement:e.$attrs.placement?e.$attrs.placement:null,"v-bind":e.$attrs,rules:n.selectRules},null,8,["value","label","class","options","disabled","taggable","create-option","mode","option-label","placement","v-bind","rules","onUpdate:value"])):((0,r.openBlock)(),(0,r.createBlock)(l,{key:1,value:o.selected,"onUpdate:value":[t[1]||(t[1]=e=>o.selected=e),a.change],options:n.options,searchable:n.searchable,disabled:n.disabled||e.isView,clearable:!1,class:"in-input",taggable:n.taggable,"create-option":e=>({label:e,value:e}),multiple:!1,mode:e.mode,"option-label":n.optionLabel,placement:e.$attrs.placement?e.$attrs.placement:null,"v-bind":e.$attrs},null,8,["value","options","searchable","disabled","taggable","create-option","mode","option-label","placement","v-bind","onUpdate:value"])),n.textLabel||n.textRules.length>0?((0,r.openBlock)(),(0,r.createBlock)(c,(0,r.mergeProps)({key:2,ref:"text",value:o.string,"onUpdate:value":t[2]||(t[2]=e=>o.string=e),class:"input-string col span-8",label:n.textLabel,placeholder:n.placeholder,disabled:n.disabled||n.textDisabled,required:n.textRequired,mode:e.mode,rules:n.textRules},e.$attrs,{"onUpdate:value":a.change}),{label:(0,r.withCtx)((()=>[(0,r.renderSlot)(e.$slots,"label",{},void 0,!0)])),suffix:(0,r.withCtx)((()=>[(0,r.renderSlot)(e.$slots,"suffix",{},void 0,!0)])),_:3},16,["value","label","placeholder","disabled","required","mode","rules","onUpdate:value"])):(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("input",{key:3,ref:"text","onUpdate:modelValue":t[3]||(t[3]=e=>o.string=e),class:"input-string",disabled:e.isView,placeholder:n.placeholder,autocomplete:"off",onInput:t[4]||(t[4]=(...e)=>a.change&&a.change(...e))},null,40,N)),[[r.vModelText,o.string]])],2)}var C=n(53318),R=n(70052),O={name:"InputWithSelect",emits:["update:value"],components:{LabeledInput:x.o,LabeledSelect:R.A,Select:k.A},mixins:[C.A],props:{disabled:{type:Boolean,default:!1},searchable:{type:Boolean,default:!0},taggable:{type:Boolean,default:!1},selectLabel:{type:String,default:""},selectValue:{type:String,default:null},optionLabel:{type:String,default:"label"},options:{type:Array,required:!0},selectBeforeText:{type:Boolean,default:!0},textLabel:{type:String,default:""},textRequired:{type:Boolean,default:!1},textDisabled:{type:Boolean,default:!1},textValue:{type:[String,Number],default:""},placeholder:{type:String,default:""},textRules:{default:()=>[],type:Array},selectRules:{default:()=>[],type:Array}},data(){return{selected:this.selectValue||this.options[0].value,string:this.textValue}},computed:{canPaginate(){return!1}},methods:{focus(){const e=this.$refs.text;e&&e.focus()},change(){this.$emit("update:value",{selected:this.selected,text:this.string})}},watch:{textValue(e){this.string=e}}},I=(n(21501),n(47433));const D=(0,I.A)(O,[["render",T],["__scopeId","data-v-58e68b54"]]);var L=D,P=n(43428),M=n(75040);const F=[{label:"Id",value:"id"},{label:"Name",value:"name"},{label:"Username",value:"username"}],B=[{label:"Team",value:"team"},{label:"User",value:"user"},{label:"Escalation",value:"escalation"},{label:"Schedule",value:"schedule"}];var $={components:{ArrayList:S.A,Checkbox:A.S,InputWithSelect:L,LabeledInput:x.o,Select:k.A,SimpleSecretSelector:P.A},props:{mode:{type:String,required:!0},value:{type:Object,required:!0},namespace:{type:String,default:""}},data(){this.value["httpConfig"]=this.value.httpConfig||{},this.value["sendResolved"]="boolean"!==typeof this.value.sendResolved||this.value.send_resolved,this.value["responders"]=this.value.responders||[];const e=this.value.responders.map((e=>{const t=F.find((t=>e[t.value]));return{type:e.type,target:t.value,value:e[t.value]}}));return{defaultResponder:{type:B[0].value,target:F[0].value,value:""},responders:e,TARGETS:F,TYPES:B,view:M.nW,initialApiKeySecretName:this.value?.apiKey?.name?this.value.apiKey.name:"",initialApiKeySecretKey:this.value?.apiKey?.key?this.value.apiKey.key:"",none:"__[[NONE]]__"}},computed:{isView(){return this.mode===M.nW}},watch:{responders:{deep:!0,handler(){const e=this.responders.map((e=>({type:e.type,[e.target]:e.value})));this.value["responders"]=e}}},methods:{updateResponder({selected:e,text:t},n){n.target=e,n.value=t},typeLabel(e){return B.find((t=>t.value===e)).label},targetLabel(e){return F.find((t=>t.value===e)).label},updateApiKeySecretName(e){const t=this.value.apiKey?.key||"";this.value.apiKey?e===this.none?delete this.value.apiKey:this.value.apiKey={key:t,name:e}:this.value["apiKey"]={key:"",name:e}},updateApiKeySecretKey(e){const t=this.value.apiKey?.name||"";this.value.apiKey?this.value.apiKey={name:t,key:e}:this.value["apiKey"]={name:"",key:e}}}};n(71998);const j=(0,I.A)($,[["render",E],["__scopeId","data-v-59c71095"]]);var U=j},72349:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return _}});var r=n(9274);const i=(0,r.createElementVNode)("div",{class:"row"},[(0,r.createElementVNode)("div",{class:"col span-12"},[(0,r.createElementVNode)("h3",null,"Target")])],-1),o={key:0,class:"row mb-20"},a={class:"col span-6"},s={key:1,class:"row mb-20"},l={class:"row mb-20"},c={class:"col span-12"},u={class:"row"};function d(e,t,n,d,h,p){const f=(0,r.resolveComponent)("LabeledSelect"),m=(0,r.resolveComponent)("SimpleSecretSelector"),g=(0,r.resolveComponent)("Banner"),v=(0,r.resolveComponent)("LabeledInput"),y=(0,r.resolveComponent)("Checkbox");return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[i,n.namespace?((0,r.openBlock)(),(0,r.createElementBlock)("div",o,[(0,r.createElementVNode)("div",a,[(0,r.createVNode)(f,{value:h.integrationType,"onUpdate:value":t[0]||(t[0]=e=>h.integrationType=e),options:h.integrationTypeOptions,mode:n.mode,label:"Integration Type"},null,8,["value","options","mode"])])])):(0,r.createCommentVNode)("",!0),n.namespace?((0,r.openBlock)(),(0,r.createElementBlock)("div",s,["Events API v2"===h.integrationType?((0,r.openBlock)(),(0,r.createBlock)(m,{key:0,"initial-key":h.initialRoutingKeySecretKey,mode:n.mode,"initial-name":h.initialRoutingKeySecretName,namespace:n.namespace,disabled:n.mode===h.view,"secret-name-label":e.t("monitoring.alertmanagerConfig.pagerDuty.routingKey"),onUpdateSecretName:p.updateRoutingKeySecretName,onUpdateSecretKey:p.updateRoutingKeySecretKey},null,8,["initial-key","mode","initial-name","namespace","disabled","secret-name-label","onUpdateSecretName","onUpdateSecretKey"])):(0,r.createCommentVNode)("",!0),"Prometheus"===h.integrationType?((0,r.openBlock)(),(0,r.createBlock)(m,{key:1,"initial-key":h.initialServiceKeySecretKey,mode:n.mode,"initial-name":h.initialServiceKeySecretName,namespace:n.namespace,disabled:n.mode===h.view,"secret-name-label":e.t("monitoring.alertmanagerConfig.pagerDuty.serviceKey"),onUpdateSecretName:p.updateServiceKeySecretName,onUpdateSecretKey:p.updateServiceKeySecretKey},null,8,["initial-key","mode","initial-name","namespace","disabled","secret-name-label","onUpdateSecretName","onUpdateSecretKey"])):(0,r.createCommentVNode)("",!0)])):((0,r.openBlock)(),(0,r.createBlock)(g,{key:2,color:"error"},{default:(0,r.withCtx)((()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.t("alertmanagerConfigReceiver.namespaceWarning")),1)])),_:1})),(0,r.createElementVNode)("div",l,[(0,r.createElementVNode)("div",c,[(0,r.createVNode)(v,{value:n.value.httpConfig.proxyURL,"onUpdate:value":t[1]||(t[1]=e=>n.value.httpConfig.proxyURL=e),mode:n.mode,label:"Proxy URL",placeholder:"e.g. http://my-proxy/","data-testid":"v2-monitoring-receiver-pagerduty-proxy-url"},null,8,["value","mode"])])]),(0,r.createElementVNode)("div",u,[(0,r.createVNode)(y,{value:n.value.sendResolved,"onUpdate:value":t[2]||(t[2]=e=>n.value.sendResolved=e),mode:n.mode,label:"Enable send resolved alerts"},null,8,["value","mode"])])])}var h=n(53512),p=n(70052),f=n(3276),m=n(43428),g=n(75040),v={components:{Checkbox:f.S,LabeledInput:h.o,LabeledSelect:p.A,SimpleSecretSelector:m.A},props:{mode:{type:String,required:!0},value:{type:Object,required:!0},namespace:{type:String,default:""}},data(){this.value["httpConfig"]=this.value.httpConfig||{},this.value["sendResolved"]="boolean"!==typeof this.value.send_resolved||this.value.send_resolved;const e={"Events API v2":"routingKey",Prometheus:"serviceKey"},t=Object.keys(e);return{integrationMapping:e,integrationTypeOptions:t,integrationType:this.value.serviceKey?t[1]:t[0],initialRoutingKeySecretKey:this.value.routingKey?.key||"",initialRoutingKeySecretName:this.value.routingKey?.name||"",initialServiceKeySecretKey:this.value.serviceKey?.key||"",initialServiceKeySecretName:this.value.serviceKey?.name||"",view:g.nW,none:"__[[NONE]]__"}},watch:{integrationType(){this.integrationTypeOptions.forEach((e=>{this.value[this.integrationMapping[e]]=null}))}},methods:{updateRoutingKeySecretName(e){const t=this.value.routingKey?.key||"";this.value.routingKey?e===this.none?delete this.value.routingKey:this.value.routingKey={key:t,name:e}:this.value["routingKey"]={key:"",name:e}},updateRoutingKeySecretKey(e){const t=this.value.routingKey?.name||"";this.value.routingKey?this.value.routingKey={name:t,key:e}:this.value["routingKey"]={name:"",key:e}},updateServiceKeySecretName(e){const t=this.value.serviceKey?.key||"";this.value.serviceKey?e===this.none?delete this.value.serviceKey:this.value.serviceKey={key:t,name:e}:this.value["serviceKey"]={key:"",name:e}},updateServiceKeySecretKey(e){const t=this.value.serviceKey?.name||"";this.value.serviceKey?this.value.serviceKey={name:t,key:e}:this.value["serviceKey"]={name:"",key:e}}}},y=n(47433);const b=(0,y.A)(v,[["render",d]]);var _=b},75336:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return _}});var r=n(9274);const i=(0,r.createElementVNode)("div",{class:"row"},[(0,r.createElementVNode)("div",{class:"col span-12"},[(0,r.createElementVNode)("h3",null,"Target")])],-1),o={class:"row mb-20"},a={class:"helper-text text-right mt-10"},s={class:"row mb-20"},l={class:"col span-6"},c={class:"col span-6"},u={class:"row"};function d(e,t,n,d,h,p){const f=(0,r.resolveComponent)("SimpleSecretSelector"),m=(0,r.resolveComponent)("Banner"),g=(0,r.resolveComponent)("t"),v=(0,r.resolveComponent)("LabeledInput"),y=(0,r.resolveComponent)("Checkbox");return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[i,(0,r.createElementVNode)("div",o,[n.namespace?((0,r.openBlock)(),(0,r.createBlock)(f,{key:0,"initial-key":h.initialSecretKey,mode:n.mode,"initial-name":h.initialSecretName,tooltip:e.t("alertmanagerConfigReceiver.slack.apiUrlTooltip"),namespace:n.namespace,disabled:n.mode===h.view,"secret-name-label":e.t("monitoring.alertmanagerConfig.slack.apiUrl"),onUpdateSecretName:p.updateSecretName,onUpdateSecretKey:p.updateSecretKey},null,8,["initial-key","mode","initial-name","tooltip","namespace","disabled","secret-name-label","onUpdateSecretName","onUpdateSecretKey"])):((0,r.openBlock)(),(0,r.createBlock)(m,{key:1,color:"error"},{default:(0,r.withCtx)((()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.t("alertmanagerConfigReceiver.namespaceWarning")),1)])),_:1})),(0,r.createElementVNode)("p",a,[(0,r.createVNode)(g,{k:"monitoringReceiver.slack.info",raw:!0})])]),(0,r.createElementVNode)("div",s,[(0,r.createElementVNode)("div",l,[(0,r.createVNode)(v,{value:n.value.channel,"onUpdate:value":t[0]||(t[0]=e=>n.value.channel=e),mode:n.mode,label:"Default Channel",placeholder:"e.g. #example"},null,8,["value","mode"])]),(0,r.createElementVNode)("div",c,[(0,r.createVNode)(v,{value:n.value.httpConfig.proxyURL,"onUpdate:value":t[1]||(t[1]=e=>n.value.httpConfig.proxyURL=e),mode:n.mode,label:"Proxy URL",placeholder:"e.g. http://my-proxy/"},null,8,["value","mode"])])]),(0,r.createElementVNode)("div",u,[(0,r.createVNode)(y,{value:n.value.sendResolved,"onUpdate:value":t[2]||(t[2]=e=>n.value.sendResolved=e),mode:n.mode,label:"Enable send resolved alerts"},null,8,["value","mode"])])])}var h=n(53512),p=n(3276),f=n(58832),m=n(43428),g=n(75040),v={components:{Banner:f.l,Checkbox:p.S,LabeledInput:h.o,SimpleSecretSelector:m.A},props:{mode:{type:String,required:!0},value:{type:Object,required:!0},namespace:{type:String,default:""}},data(){return this.value["httpConfig"]=this.value.httpConfig||{},this.value["sendResolved"]=this.value.sendResolved||!1,this.mode===g.YQ&&(this.value.text=this.value.text||'{{ template "slack.rancher.text" . }}'),{view:g.nW,initialSecretKey:this.value?.apiURL?.key?this.value.apiURL.key:"",initialSecretName:this.value.apiURL?.name?this.value.apiURL.name:"",none:"__[[NONE]]__"}},methods:{updateSecretName(e){const t=this.value.apiURL?.key||"";this.value.apiURL?e===this.none?delete this.value.apiURL:this.value.apiURL={key:t,name:e}:this.value["apiURL"]={key:"",name:e}},updateSecretKey(e){const t=this.value.apiURL?.name||"";this.value.apiURL?this.value.apiURL={key:e,name:t}:this.value["apiURL"]={key:e,name:""}}}},y=n(47433);const b=(0,y.A)(v,[["render",d]]);var _=b},36860:function(e,t,n){"use strict";n.r(t),n.d(t,{ALIBABA_CLOUD_SMS_URL:function(){return P},MS_TEAMS_URL:function(){return L},WEBHOOK_TYPES:function(){return M},default:function(){return $}});var r=n(9274);const i={class:"row mb-20"},o=(0,r.createElementVNode)("div",{class:"row"},[(0,r.createElementVNode)("div",{class:"col span-12"},[(0,r.createElementVNode)("h3",{class:"mb-0"}," Target ")])],-1),a={class:"row mb-20"},s={class:"col span-12"},l={class:"row mb-20"},c={class:"row mb-20"},u={class:"col span-12"},d={class:"row mb-20"};function h(e,t,n,h,p,f){const m=(0,r.resolveComponent)("Banner"),g=(0,r.resolveComponent)("LabeledSelect"),v=(0,r.resolveComponent)("LabeledInput"),y=(0,r.resolveComponent)("SimpleSecretSelector"),b=(0,r.resolveComponent)("Checkbox"),_=(0,r.resolveComponent)("TLS"),w=(0,r.resolveComponent)("Auth"),E=(0,r.resolveDirective)("clean-html");return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[n.mode!==p.view?(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createBlock)(m,{key:0,color:"info"},null,512)),[[E,e.t("monitoringReceiver.webhook.banner",{},e.raw=!0)]]):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("div",i,[(0,r.createVNode)(g,{value:p.selectedWebhookType,"onUpdate:value":[t[0]||(t[0]=e=>p.selectedWebhookType=e),t[1]||(t[1]=e=>f.updateWebhookType(e))],disabled:n.mode===p.view,label:e.t("monitoringReceiver.webhook.add.selectWebhookType"),placeholder:e.t("monitoringReceiver.webhook.add.generic"),"localized-label":!0,options:p.webhookOptons},null,8,["value","disabled","label","placeholder","options"])]),o,p.showNamespaceBanner?(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createBlock)(m,{key:1,color:"info"},null,512)),[[E,e.t("monitoringReceiver.webhook.modifyNamespace",{},e.raw=!0)]]):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("div",a,[(0,r.createElementVNode)("div",s,[(0,r.createVNode)(v,{value:n.value.url,"onUpdate:value":t[2]||(t[2]=e=>n.value.url=e),mode:n.mode,label:e.t("monitoring.alertmanagerConfig.webhook.url"),tooltip:e.t("monitoring.alertmanagerConfig.webhook.urlSecretTooltip")},null,8,["value","mode","label","tooltip"])])]),(0,r.createElementVNode)("div",l,[n.namespace?((0,r.openBlock)(),(0,r.createBlock)(y,{key:0,"initial-key":p.initialUrlSecretKey,"initial-name":p.initialUrlSecretName,mode:n.mode,namespace:n.namespace,disabled:n.mode===p.view,"secret-name-label":e.t("monitoring.alertmanagerConfig.webhook.urlSecret"),onUpdateSecretName:f.updateUrlSecretName,onUpdateSecretKey:f.updateUrlSecretKey},null,8,["initial-key","initial-name","mode","namespace","disabled","secret-name-label","onUpdateSecretName","onUpdateSecretKey"])):((0,r.openBlock)(),(0,r.createBlock)(m,{key:1,color:"error"},{default:(0,r.withCtx)((()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.t("alertmanagerConfigReceiver.namespaceWarning")),1)])),_:1}))]),(0,r.createElementVNode)("div",c,[(0,r.createElementVNode)("div",u,[(0,r.createVNode)(v,{value:n.value.httpConfig.proxyURL,"onUpdate:value":t[3]||(t[3]=e=>n.value.httpConfig.proxyURL=e),mode:n.mode,label:e.t("monitoringReceiver.shared.proxyUrl.label"),placeholder:e.t("monitoringReceiver.shared.proxyUrl.placeholder")},null,8,["value","mode","label","placeholder"])])]),(0,r.createElementVNode)("div",d,[(0,r.createVNode)(b,{value:n.value.sendResolved,"onUpdate:value":t[4]||(t[4]=e=>n.value.sendResolved=e),mode:n.mode,label:e.t("monitoringReceiver.shared.sendResolved.label")},null,8,["value","mode","label"])]),(0,r.createVNode)(_,{value:n.value.httpConfig,"onUpdate:value":t[5]||(t[5]=e=>n.value.httpConfig=e),class:"mb-20",mode:n.mode,namespace:n.namespace},null,8,["value","mode","namespace"]),(0,r.createVNode)(w,{value:n.value.httpConfig,"onUpdate:value":t[6]||(t[6]=e=>n.value.httpConfig=e),mode:n.mode,namespace:n.namespace},null,8,["value","mode","namespace"])])}var p=n(53512),f=n(70052),m=n(3276),g=n(58832),v=n(43428),y=n(75040),b=n(32638);const _={class:"row"},w={class:"col span-6"},E={class:"row mb-20"},S={class:"col span-12"},x={key:0,class:"row mb-20"},k={key:1,class:"row mb-20"},A={key:2,class:"row mb-20"};function N(e,t,n,i,o,a){const s=(0,r.resolveComponent)("LabeledSelect"),l=(0,r.resolveComponent)("SimpleSecretSelector"),c=(0,r.resolveComponent)("Banner");return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[(0,r.createElementVNode)("div",_,[(0,r.createElementVNode)("div",w,[(0,r.createElementVNode)("h3",null,(0,r.toDisplayString)(e.t("monitoringReceiver.auth.label")),1)])]),(0,r.createElementVNode)("div",E,[(0,r.createElementVNode)("div",S,[(0,r.createVNode)(s,{value:o.authType,"onUpdate:value":[t[0]||(t[0]=e=>o.authType=e),t[1]||(t[1]=e=>a.initializeType(o.authOptions,o.authType))],disabled:n.mode===o.view,options:o.authOptions,label:"Auth Type"},null,8,["value","disabled","options"])])]),"basicAuth"===o.authType?((0,r.openBlock)(),(0,r.createElementBlock)("div",x,[n.namespace?((0,r.openBlock)(),(0,r.createBlock)(l,{key:0,"initial-key":o.initialBasicAuthUsernameSecretKey,"initial-name":o.initialBasicAuthUsernameSecretName,mode:n.mode,namespace:n.namespace,disabled:n.mode===o.view,"secret-name-label":e.t("monitoring.alertmanagerConfig.auth.basicAuthUsername"),onUpdateSecretName:a.updateBasicAuthUsernameSecretName,onUpdateSecretKey:a.updateBasicAuthUsernameSecretKey},null,8,["initial-key","initial-name","mode","namespace","disabled","secret-name-label","onUpdateSecretName","onUpdateSecretKey"])):((0,r.openBlock)(),(0,r.createBlock)(c,{key:1,color:"error"},{default:(0,r.withCtx)((()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.t("alertmanagerConfigReceiver.namespaceWarning")),1)])),_:1}))])):(0,r.createCommentVNode)("",!0),"basicAuth"===o.authType?((0,r.openBlock)(),(0,r.createElementBlock)("div",k,[n.namespace?((0,r.openBlock)(),(0,r.createBlock)(l,{key:0,"initial-key":o.initialBasicAuthPasswordSecretKey,"initial-name":o.initialBasicAuthPasswordSecretName,mode:n.mode,namespace:n.namespace,disabled:n.mode===o.view,"secret-name-label":e.t("monitoring.alertmanagerConfig.auth.basicAuthPassword"),onUpdateSecretName:a.updateBasicAuthPasswordSecretName,onUpdateSecretKey:a.updateBasicAuthPasswordSecretKey},null,8,["initial-key","initial-name","mode","namespace","disabled","secret-name-label","onUpdateSecretName","onUpdateSecretKey"])):((0,r.openBlock)(),(0,r.createBlock)(c,{key:1,color:"error"},{default:(0,r.withCtx)((()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.t("alertmanagerConfigReceiver.namespaceWarning")),1)])),_:1}))])):(0,r.createCommentVNode)("",!0),"bearerTokenSecret"===o.authType?((0,r.openBlock)(),(0,r.createElementBlock)("div",A,[n.namespace?((0,r.openBlock)(),(0,r.createBlock)(l,{key:0,"initial-key":o.initialBearerTokenSecretKey,"initial-name":o.initialBearerTokenSecretName,mode:n.mode,namespace:n.namespace,disabled:n.mode===o.view,"secret-name-label":e.t("monitoring.alertmanagerConfig.auth.bearerTokenSecret"),onUpdateSecretName:a.updateBearerTokenSecretName,onUpdateSecretKey:a.updateBearerTokenSecretKey},null,8,["initial-key","initial-name","mode","namespace","disabled","secret-name-label","onUpdateSecretName","onUpdateSecretKey"])):((0,r.openBlock)(),(0,r.createBlock)(c,{key:1,color:"error"},{default:(0,r.withCtx)((()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.t("alertmanagerConfigReceiver.namespaceWarning")),1)])),_:1}))])):(0,r.createCommentVNode)("",!0)])}var T=n(15510),C=n.n(T),R={components:{LabeledSelect:f.A,SimpleSecretSelector:v.A},props:{mode:{type:String,required:!0},value:{type:Object,required:!0},namespace:{type:String,required:!0}},data(){this.value["basicAuth"]=this.value.basicAuth||{};const e=[{value:"none",label:this.t("monitoringReceiver.auth.none.label")},{value:"basicAuth",label:this.t("monitoringReceiver.auth.basicAuth.label"),default:{}},{value:"bearerTokenSecret",label:this.t("monitoringReceiver.auth.bearerToken.label"),default:{}}],t=e.map((e=>e.value)),n=t.find((e=>!C()(this.value[e])))||t[0];return this.initializeType(e,n),{authOptions:e,authTypes:t,authType:n,view:y.nW,none:"__[[NONE]]__",initialBearerTokenSecretName:this.value?.bearerTokenSecret?.name?this.value.bearerTokenSecret.name:"",initialBearerTokenSecretKey:this.value?.bearerTokenSecret?.key?this.value.bearerTokenSecret.key:"",initialBasicAuthUsernameSecretName:this.value?.basicAuth?.username?.name?this.value.basicAuth.username.name:"",initialBasicAuthUsernameSecretKey:this.value?.basicAuth?.username?.key?this.value.basicAuth.username.key:"",initialBasicAuthPasswordSecretName:this.value?.basicAuth?.password?.name?this.value.basicAuth.password.name:"",initialBasicAuthPasswordSecretKey:this.value?.basicAuth?.password?.key?this.value.basicAuth.password.key:""}},methods:{initializeType(e,t){e.forEach((e=>{e.value===t&&"none"!==t?this.value.authOption.value=this.value[e.value]||e.default:"undefined"!==typeof this.value[e.value]&&delete this.value[e.value]}))},updateBearerTokenSecretName(e){const t=this.value.bearerTokenSecret?.key||"";this.value.bearerTokenSecret?e===this.none?delete this.value.bearerTokenSecret:this.value.bearerTokenSecret={key:t,name:e}:this.value["bearerTokenSecret"]={key:"",name:e}},updateBearerTokenSecretKey(e){const t=this.value.bearerTokenSecret?.name||"";this.value.bearerTokenSecret?this.value.bearerTokenSecret={name:t,key:e}:this.value["bearerTokenSecret"]={name:"",key:e}},updateBasicAuthUsernameSecretName(e){this.value.basicAuth||(this.value["basicAuth"]={username:{key:"",name:e},password:{key:"",name:""}});const t=this.value.basicAuth.username?.key||"";this.value.basicAuth.username?e===this.none?delete this.value.basicAuth.username:this.value.basicAuth.username={key:t,name:e}:this.value.basicAuth["username"]={key:"",name:e}},updateBasicAuthUsernameSecretKey(e){this.value.basicAuth||(this.value["basicAuth"]={username:{key:e,name:""},password:{key:"",name:""}});const t=this.value.basicAuth.username?.name||"";this.value.basicAuth.username?this.value.basicAuth.username={key:e,name:t}:this.value.basicAuth["username"]={key:e,name:""}},updateBasicAuthPasswordSecretName(e){this.value.basicAuth||(this.value["basicAuth"]={username:{key:"",name:""},password:{key:"",name:e}});const t=this.value.basicAuth.password?.key||"";this.value.basicAuth.password?e===this.none?delete this.value.basicAuth.password:this.value.basicAuth.password={key:t,name:e}:this.value.basicAuth["password"]={key:"",name:e}},updateBasicAuthPasswordSecretKey(e){this.value.basicAuth||(this.value["basicAuth"]={username:{key:"",name:""},password:{key:e,name:""}});const t=this.value.basicAuth.password?.name||"";this.value.basicAuth.password?this.value.basicAuth.password={key:e,name:t}:this.value.basicAuth["password"]={key:e,name:""}}}},O=n(47433);const I=(0,O.A)(R,[["render",N]]);var D=I;const L="http://rancher-alerting-drivers-prom2teams.cattle-monitoring-system.svc:8089/v2/connector",P="http://rancher-alerting-drivers-sachet.cattle-monitoring-system.svc:9876/alert",M={ALIBABA_CLOUD_SMS:"alibaba-cloud-sms",GENERIC:"generic",MS_TEAMS:"ms-teams"};var F={components:{Auth:D,Banner:g.l,Checkbox:m.S,LabeledInput:p.o,LabeledSelect:f.A,SimpleSecretSelector:v.A,TLS:b.A},props:{mode:{type:String,required:!0},value:{type:Object,required:!0},namespace:{type:String,default:""}},data(e){this.value["httpConfig"]=this.value.httpConfig||{},this.value["sendResolved"]=this.value.sendResolved||!1;const t=this.value.url===L||this.value.url===P;return{showNamespaceBanner:t&&this.mode!==y.nW,view:y.nW,initialUrlSecretName:this.value?.urlSecret?.name?this.value.urlSecret.name:"",initialUrlSecretKey:this.value?.urlSecret?.key?this.value.urlSecret.key:"",webhookOptons:[{label:this.t("monitoringReceiver.webhook.add.generic"),value:M.GENERIC},{label:this.t("monitoringReceiver.webhook.add.msTeams"),value:M.MS_TEAMS},{label:this.t("monitoringReceiver.webhook.add.alibabaCloudSms"),value:M.ALIBABA_CLOUD_SMS}],msTeamsUrl:L,alibabaCloudSmsUrl:P,selectedWebhookType:this.getTypeFromUrl(this.value.url),none:"__[[NONE]]__"}},methods:{getTypeFromUrl(e){switch(e){case L:return M.MS_TEAMS;case P:return M.ALIBABA_CLOUD_SMS;default:return M.GENERIC}},updateUrlSecretName(e){const t=this.value.urlSecret?.key||"";this.value.urlSecret?e===this.none?delete this.value.urlSecret:this.value.urlSecret={key:t,name:e}:this.value["urlSecret"]={key:"",name:e}},updateUrlSecretKey(e){const t=this.value.urlSecret?.name||"";this.value.urlSecret?this.value.urlSecret={name:t,key:e}:this.value["urlSecret"]={name:"",key:e}},updateWebhookType(e){switch(e){case"ms-teams":this.value.url=this.msTeamsUrl,this.selectedWebhookType=M.MS_TEAMS;break;case"alibaba-cloud-sms":this.value.url=this.alibabaCloudSmsUrl,this.selectedWebhookType=M.ALIBABA_CLOUD_SMS;break;default:this.value.url="",this.selectedWebhookType=M.GENERIC}},updateWebhookUrl(e){this.value.url=e}}};const B=(0,O.A)(F,[["render",h]]);var $=B},81071:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return d}});var r=n(9274);const i={key:0,class:"text info mb-10 mt-20"},o={key:1,class:"text-warning mb-10 mt-20"};function a(e,t,n,a,s,l){const c=(0,r.resolveDirective)("clean-html");return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[(0,r.createTextVNode)((0,r.toDisplayString)(e.t("promptRemove.attemptingToRemove",{type:n.type}))+" ",1),(0,r.withDirectives)((0,r.createElementVNode)("span",null,null,512),[[c,e.resourceNames(e.names,e.plusMore,e.t)]]),e.info?((0,r.openBlock)(),(0,r.createElementBlock)("div",i,[(0,r.withDirectives)((0,r.createElementVNode)("span",null,null,512),[[c,e.info]])])):(0,r.createCommentVNode)("",!0),e.warning?((0,r.openBlock)(),(0,r.createElementBlock)("div",o,(0,r.toDisplayString)(e.warning),1)):(0,r.createCommentVNode)("",!0)])}var s=n(62893),l={name:"GlobalRolePromptRemove",mixins:[s["default"]],props:{value:{type:Array,default:()=>[]},type:{type:String,required:!0}}},c=(n(73249),n(47433));const u=(0,c.A)(l,[["render",a],["__scopeId","data-v-e4b192d4"]]);var d=u},39235:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return w}});var r=n(9274);const i=e=>((0,r.pushScopeId)("data-v-232e419e"),e=e(),(0,r.popScopeId)(),e),o={class:"mb-10"},a={class:"display-name"},s={class:"delete-warning"},l=i((()=>(0,r.createElementVNode)("br",null,null,-1))),c={class:"mt-10"},u={key:0,class:"mt-20 remove-project-dialog"},d={class:"mt-10 ml-20"};function h(e,t,n,i,h,p){const f=(0,r.resolveComponent)("Checkbox"),m=(0,r.resolveDirective)("clean-html");return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[(0,r.createElementVNode)("div",null,[(0,r.createElementVNode)("div",o,[(0,r.createTextVNode)((0,r.toDisplayString)(e.t("promptRemove.attemptingToRemove",{type:n.type}))+" ",1),(0,r.createElementVNode)("span",a,(0,r.toDisplayString)(`${p.displayName}.`),1),p.canSeeProjectlessNamespaces?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:0},[(0,r.createElementVNode)("span",s,(0,r.toDisplayString)(e.t("promptRemove.willDeleteAssociatedNamespaces")),1),(0,r.createTextVNode)(),l,(0,r.withDirectives)((0,r.createElementVNode)("div",c,null,512),[[m,p.resourceNames(p.names,p.plusMore,e.t)]])],64))]),p.filteredNamespaces.length>0&&p.canSeeProjectlessNamespaces?((0,r.openBlock)(),(0,r.createElementBlock)("div",u,[(0,r.createVNode)(f,{value:h.deleteProjectNamespaces,"onUpdate:value":t[0]||(t[0]=e=>h.deleteProjectNamespaces=e),label:e.t("promptRemove.deleteAssociatedNamespaces")},null,8,["value","label"]),(0,r.createElementVNode)("div",d,[(0,r.withDirectives)((0,r.createElementVNode)("span",null,null,512),[[m,p.resourceNames(p.names,p.plusMore,e.t)]])])])):(0,r.createCommentVNode)("",!0)])])}var p=n(25443),f=n(71445),m=n(4284),g=n(3276),v=n(78359),y={name:"ProjectAndNamespacesPromptRemove",components:{Checkbox:g.S},props:{value:{type:Array,default:()=>[]},type:{type:String,required:!0}},async fetch(){this.allNamespaces=await this.$store.dispatch("cluster/findAll",{type:m.CU}),this.allProjects=await this.$store.dispatch("management/findAll",{type:m.Mc.PROJECT})},data(){return{deleteProjectNamespaces:!1,allNamespaces:[],allProjects:[]}},computed:{...(0,p.aH)("action-menu",["toRemove"]),...(0,p.L8)({t:"i18n/t"}),...(0,p.L8)(["currentCluster"]),currentProject(){return this.allProjects?this.value[0]:{}},filteredNamespaces(){return this.currentProject?this.allNamespaces.filter((e=>e.metadata.labels[f.yl]===this.currentProject.metadata?.name)):[]},plusMore(){const e=this.filteredNamespaces.length>5?this.filteredNamespaces.length-5:0;return this.t("promptRemove.andOthers",{count:e})},displayName(){return this.currentProject?.spec?.displayName},names(){return this.filteredNamespaces.map((e=>e.nameDisplay)).slice(0,5)},canSeeProjectlessNamespaces(){return this.currentCluster.canUpdate}},methods:{resourceNames:v.Nr,remove(){return!(!this.deleteProjectNamespaces&&this.canSeeProjectlessNamespaces)&&Promise.all(this.filteredNamespaces.map((e=>e.remove()))).then((()=>!1))}}},b=(n(50537),n(47433));const _=(0,b.A)(y,[["render",h],["__scopeId","data-v-232e419e"]]);var w=_},23240:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return d}});var r=n(9274);const i={key:0,class:"text info mb-10 mt-20"},o={key:1,class:"text-warning mb-10 mt-20"};function a(e,t,n,a,s,l){const c=(0,r.resolveDirective)("clean-html");return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[(0,r.createTextVNode)((0,r.toDisplayString)(e.t("promptRemove.attemptingToRemove",{type:n.type}))+" ",1),(0,r.withDirectives)((0,r.createElementVNode)("span",null,null,512),[[c,e.resourceNames(e.names,e.plusMore,e.t)]]),e.info?((0,r.openBlock)(),(0,r.createElementBlock)("div",i,[(0,r.withDirectives)((0,r.createElementVNode)("span",null,null,512),[[c,e.info]])])):(0,r.createCommentVNode)("",!0),e.warning?((0,r.openBlock)(),(0,r.createElementBlock)("div",o,(0,r.toDisplayString)(e.warning),1)):(0,r.createCommentVNode)("",!0)])}var s=n(62893),l={name:"RoleTemplatePromptRemove",mixins:[s["default"]],props:{value:{type:Array,default:()=>[]},type:{type:String,required:!0}}},c=(n(73775),n(47433));const u=(0,c.A)(l,[["render",a],["__scopeId","data-v-5b85b4f6"]]);var d=u},37969:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return g}});var r=n(9274);const i={class:"mt-10"},o={class:"mb-30"},a={class:"machine-name"},s={class:"mb-30"};function l(e,t,n,l,c,u){const d=(0,r.resolveComponent)("Checkbox"),h=(0,r.resolveComponent)("Banner"),p=(0,r.resolveDirective)("clean-html");return(0,r.openBlock)(),(0,r.createElementBlock)("div",i,[(0,r.createElementVNode)("div",o,[(0,r.createTextVNode)((0,r.toDisplayString)(e.t("promptRemove.attemptingToRemove",{type:n.type}))+" ",1),(0,r.withDirectives)((0,r.createElementVNode)("span",a,null,512),[[p,u.podNames]])]),(0,r.createElementVNode)("div",s,[(0,r.createVNode)(d,{value:c.forceDelete,"onUpdate:value":t[0]||(t[0]=e=>c.forceDelete=e),label:e.t("promptForceRemove.forceDelete")},null,8,["value","label"])]),(0,r.createVNode)(h,{color:"warning","label-key":"promptForceRemove.podRemoveWarning"}),((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(c.errors,((e,t)=>((0,r.openBlock)(),(0,r.createBlock)(h,{key:t,class:"",color:"error",label:e},null,8,["label"])))),128))])}var c=n(58832),u=n(87732),d=n(25443),h=n(92806),p={name:"PromptRemovePodDialog",emits:["errors"],components:{Banner:c.l,Checkbox:u.A},props:{value:{type:Array,default:()=>[]},names:{type:Array,default:()=>[]},type:{type:String,required:!0},close:{type:Function,required:!0},doneLocation:{type:Object,default:()=>{}}},data(){return{errors:[],forceDelete:!1}},computed:{...(0,d.aH)("action-menu",["toRemove"]),...(0,d.L8)({t:"i18n/t"}),plusMore(){const e=this.names.length-this.names.length;return this.t("promptRemove.andOthers",{count:e})},podNames(){return this.names.reduce(((e,t,n)=>(n>=5||(e+=`${t}`,n===this.names.length-1?e+=this.plusMore:e+=n===this.toRemove.length-2?" and ":", "),e)),"")}},methods:{async remove(e){let t;this.doneLocation&&(t={...this.doneLocation});try{await Promise.all(this.value.map((e=>this.removePod(e)))),t&&!(0,h.isEmpty)(t)&&this.value?.[0]?.currentRouter().push(t),this.close()}catch(n){this.$emit("errors",n),e(!1)}},removePod(e){const t=this.forceDelete?{data:{gracePeriod:0,force:!0}}:void 0;return e.remove(t)}}},f=(n(49419),n(47433));const m=(0,f.A)(p,[["render",l],["__scopeId","data-v-9512dae2"]]);var g=m},59246:function(e,t,n){const r=n(76931),i={};for(const s of Object.keys(r))i[r[s]]=s;const o={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};e.exports=o;for(const s of Object.keys(o)){if(!("channels"in o[s]))throw new Error("missing channels property: "+s);if(!("labels"in o[s]))throw new Error("missing channel labels property: "+s);if(o[s].labels.length!==o[s].channels)throw new Error("channel and label counts mismatch: "+s);const{channels:e,labels:t}=o[s];delete o[s].channels,delete o[s].labels,Object.defineProperty(o[s],"channels",{value:e}),Object.defineProperty(o[s],"labels",{value:t})}function a(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}o.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=o-i;let s,l;o===i?s=0:t===o?s=(n-r)/a:n===o?s=2+(r-t)/a:r===o&&(s=4+(t-n)/a),s=Math.min(60*s,360),s<0&&(s+=360);const c=(i+o)/2;return l=o===i?0:c<=.5?a/(o+i):a/(2-o-i),[s,100*l,100*c]},o.rgb.hsv=function(e){let t,n,r,i,o;const a=e[0]/255,s=e[1]/255,l=e[2]/255,c=Math.max(a,s,l),u=c-Math.min(a,s,l),d=function(e){return(c-e)/6/u+.5};return 0===u?(i=0,o=0):(o=u/c,t=d(a),n=d(s),r=d(l),a===c?i=r-n:s===c?i=1/3+t-r:l===c&&(i=2/3+n-t),i<0?i+=1:i>1&&(i-=1)),[360*i,100*o,100*c]},o.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const i=o.rgb.hsl(e)[0],a=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[i,100*a,100*r]},o.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(1-t,1-n,1-r),o=(1-t-i)/(1-i)||0,a=(1-n-i)/(1-i)||0,s=(1-r-i)/(1-i)||0;return[100*o,100*a,100*s,100*i]},o.rgb.keyword=function(e){const t=i[e];if(t)return t;let n,o=1/0;for(const i of Object.keys(r)){const t=r[i],s=a(e,t);s.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;const i=.4124*t+.3576*n+.1805*r,o=.2126*t+.7152*n+.0722*r,a=.0193*t+.1192*n+.9505*r;return[100*i,100*o,100*a]},o.rgb.lab=function(e){const t=o.rgb.xyz(e);let n=t[0],r=t[1],i=t[2];n/=95.047,r/=100,i/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;const a=116*r-16,s=500*(n-r),l=200*(r-i);return[a,s,l]},o.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let i,o,a;if(0===n)return a=255*r,[a,a,a];i=r<.5?r*(1+n):r+n-r*n;const s=2*r-i,l=[0,0,0];for(let c=0;c<3;c++)o=t+1/3*-(c-1),o<0&&o++,o>1&&o--,a=6*o<1?s+6*(i-s)*o:2*o<1?i:3*o<2?s+(i-s)*(2/3-o)*6:s,l[c]=255*a;return l},o.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,i=n;const o=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,i*=o<=1?o:2-o;const a=(r+n)/2,s=0===r?2*i/(o+i):2*n/(r+n);return[t,100*s,100*a]},o.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const i=Math.floor(t)%6,o=t-Math.floor(t),a=255*r*(1-n),s=255*r*(1-n*o),l=255*r*(1-n*(1-o));switch(r*=255,i){case 0:return[r,l,a];case 1:return[s,r,a];case 2:return[a,r,l];case 3:return[a,s,r];case 4:return[l,a,r];case 5:return[r,a,s]}},o.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,i=Math.max(r,.01);let o,a;a=(2-n)*r;const s=(2-n)*i;return o=n*i,o/=s<=1?s:2-s,o=o||0,a/=2,[t,100*o,100*a]},o.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const i=n+r;let o;i>1&&(n/=i,r/=i);const a=Math.floor(6*t),s=1-r;o=6*t-a,0!==(1&a)&&(o=1-o);const l=n+o*(s-n);let c,u,d;switch(a){default:case 6:case 0:c=s,u=l,d=n;break;case 1:c=l,u=s,d=n;break;case 2:c=n,u=s,d=l;break;case 3:c=n,u=l,d=s;break;case 4:c=l,u=n,d=s;break;case 5:c=s,u=n,d=l;break}return[255*c,255*u,255*d]},o.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,i=e[3]/100,o=1-Math.min(1,t*(1-i)+i),a=1-Math.min(1,n*(1-i)+i),s=1-Math.min(1,r*(1-i)+i);return[255*o,255*a,255*s]},o.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let i,o,a;return i=3.2406*t+-1.5372*n+-.4986*r,o=-.9689*t+1.8758*n+.0415*r,a=.0557*t+-.204*n+1.057*r,i=i>.0031308?1.055*i**(1/2.4)-.055:12.92*i,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,a=a>.0031308?1.055*a**(1/2.4)-.055:12.92*a,i=Math.min(Math.max(0,i),1),o=Math.min(Math.max(0,o),1),a=Math.min(Math.max(0,a),1),[255*i,255*o,255*a]},o.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;const i=116*n-16,o=500*(t-n),a=200*(n-r);return[i,o,a]},o.lab.xyz=function(e){const t=e[0],n=e[1],r=e[2];let i,o,a;o=(t+16)/116,i=n/500+o,a=o-r/200;const s=o**3,l=i**3,c=a**3;return o=s>.008856?s:(o-16/116)/7.787,i=l>.008856?l:(i-16/116)/7.787,a=c>.008856?c:(a-16/116)/7.787,i*=95.047,o*=100,a*=108.883,[i,o,a]},o.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let i;const o=Math.atan2(r,n);i=360*o/2/Math.PI,i<0&&(i+=360);const a=Math.sqrt(n*n+r*r);return[t,a,i]},o.lch.lab=function(e){const t=e[0],n=e[1],r=e[2],i=r/360*2*Math.PI,o=n*Math.cos(i),a=n*Math.sin(i);return[t,o,a]},o.rgb.ansi16=function(e,t=null){const[n,r,i]=e;let a=null===t?o.rgb.hsv(e)[2]:t;if(a=Math.round(a/50),0===a)return 30;let s=30+(Math.round(i/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return 2===a&&(s+=60),s},o.hsv.ansi16=function(e){return o.rgb.ansi16(o.hsv.rgb(e),e[2])},o.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];if(t===n&&n===r)return t<8?16:t>248?231:Math.round((t-8)/247*24)+232;const i=16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5);return i},o.ansi16.rgb=function(e){let t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=.5*(1+~~(e>50)),r=(1&t)*n*255,i=(t>>1&1)*n*255,o=(t>>2&1)*n*255;return[r,i,o]},o.ansi256.rgb=function(e){if(e>=232){const t=10*(e-232)+8;return[t,t,t]}let t;e-=16;const n=Math.floor(e/36)/5*255,r=Math.floor((t=e%36)/6)/5*255,i=t%6/5*255;return[n,r,i]},o.rgb.hex=function(e){const t=((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2])),n=t.toString(16).toUpperCase();return"000000".substring(n.length)+n},o.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];3===t[0].length&&(n=n.split("").map((e=>e+e)).join(""));const r=parseInt(n,16),i=r>>16&255,o=r>>8&255,a=255&r;return[i,o,a]},o.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.max(Math.max(t,n),r),o=Math.min(Math.min(t,n),r),a=i-o;let s,l;return s=a<1?o/(1-a):0,l=a<=0?0:i===t?(n-r)/a%6:i===n?2+(r-t)/a:4+(t-n)/a,l/=6,l%=1,[360*l,100*a,100*s]},o.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let i=0;return r<1&&(i=(n-.5*r)/(1-r)),[e[0],100*r,100*i]},o.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},o.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];const i=[0,0,0],o=t%1*6,a=o%1,s=1-a;let l=0;switch(Math.floor(o)){case 0:i[0]=1,i[1]=a,i[2]=0;break;case 1:i[0]=s,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=a;break;case 3:i[0]=0,i[1]=s,i[2]=1;break;case 4:i[0]=a,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=s}return l=(1-n)*r,[255*(n*i[0]+l),255*(n*i[1]+l),255*(n*i[2]+l)]},o.hcg.hsv=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);let i=0;return r>0&&(i=t/r),[e[0],100*i,100*r]},o.hcg.hsl=function(e){const t=e[1]/100,n=e[2]/100,r=n*(1-t)+.5*t;let i=0;return r>0&&r<.5?i=t/(2*r):r>=.5&&r<1&&(i=t/(2*(1-r))),[e[0],100*i,100*r]},o.hcg.hwb=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);return[e[0],100*(r-t),100*(1-r)]},o.hwb.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=1-n,i=r-t;let o=0;return i<1&&(o=(r-i)/(1-i)),[e[0],100*i,100*o]},o.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},o.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},o.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},o.gray.hsl=function(e){return[0,0,e[0]]},o.gray.hsv=o.gray.hsl,o.gray.hwb=function(e){return[0,100,e[0]]},o.gray.cmyk=function(e){return[0,0,0,e[0]]},o.gray.lab=function(e){return[e[0],0,0]},o.gray.hex=function(e){const t=255&Math.round(e[0]/100*255),n=(t<<16)+(t<<8)+t,r=n.toString(16).toUpperCase();return"000000".substring(r.length)+r},o.rgb.gray=function(e){const t=(e[0]+e[1]+e[2])/3;return[t/255*100]}},99047:function(e,t,n){const r=n(59246),i=n(30802),o={},a=Object.keys(r);function s(e){const t=function(...t){const n=t[0];return void 0===n||null===n?n:(n.length>1&&(t=n),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}function l(e){const t=function(...t){const n=t[0];if(void 0===n||null===n)return n;n.length>1&&(t=n);const r=e(t);if("object"===typeof r)for(let e=r.length,i=0;i{o[e]={},Object.defineProperty(o[e],"channels",{value:r[e].channels}),Object.defineProperty(o[e],"labels",{value:r[e].labels});const t=i(e),n=Object.keys(t);n.forEach((n=>{const r=t[n];o[e][n]=l(r),o[e][n].raw=s(r)}))})),e.exports=o},30802:function(e,t,n){const r=n(59246);function i(){const e={},t=Object.keys(r);for(let n=t.length,r=0;r=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},l.to.keyword=function(e){return a[e.slice(0,3)]}},70465:function(e,t,n){const r=n(43269),i=n(99047),o=["keyword","gray","hex"],a={};for(const m of Object.keys(i))a[[...i[m].labels].sort().join("")]=m;const s={};function l(e,t){if(!(this instanceof l))return new l(e,t);if(t&&t in o&&(t=null),t&&!(t in i))throw new Error("Unknown model: "+t);let n,c;if(null==e)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof l)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if("string"===typeof e){const t=r.get(e);if(null===t)throw new Error("Unable to parse color from string: "+e);this.model=t.model,c=i[this.model].channels,this.color=t.value.slice(0,c),this.valpha="number"===typeof t.value[c]?t.value[c]:1}else if(e.length>0){this.model=t||"rgb",c=i[this.model].channels;const n=Array.prototype.slice.call(e,0,c);this.color=f(n,c),this.valpha="number"===typeof e[c]?e[c]:1}else if("number"===typeof e)this.model="rgb",this.color=[e>>16&255,e>>8&255,255&e],this.valpha=1;else{this.valpha=1;const t=Object.keys(e);"alpha"in e&&(t.splice(t.indexOf("alpha"),1),this.valpha="number"===typeof e.alpha?e.alpha:0);const r=t.sort().join("");if(!(r in a))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=a[r];const{labels:o}=i[this.model],s=[];for(n=0;n(e%360+360)%360)),saturationl:d("hsl",1,h(100)),lightness:d("hsl",2,h(100)),saturationv:d("hsv",1,h(100)),value:d("hsv",2,h(100)),chroma:d("hcg",1,h(100)),gray:d("hcg",2,h(100)),white:d("hwb",1,h(100)),wblack:d("hwb",2,h(100)),cyan:d("cmyk",0,h(100)),magenta:d("cmyk",1,h(100)),yellow:d("cmyk",2,h(100)),black:d("cmyk",3,h(100)),x:d("xyz",0,h(95.047)),y:d("xyz",1,h(100)),z:d("xyz",2,h(108.833)),l:d("lab",0,h(100)),a:d("lab",1),b:d("lab",2),keyword(e){return void 0!==e?new l(e):i[this.model].keyword(this.color)},hex(e){return void 0!==e?new l(e):r.to.hex(this.rgb().round().color)},hexa(e){if(void 0!==e)return new l(e);const t=this.rgb().round().color;let n=Math.round(255*this.valpha).toString(16).toUpperCase();return 1===n.length&&(n="0"+n),r.to.hex(t)+n},rgbNumber(){const e=this.rgb().color;return(255&e[0])<<16|(255&e[1])<<8|255&e[2]},luminosity(){const e=this.rgb().color,t=[];for(const[n,r]of e.entries()){const e=r/255;t[n]=e<=.04045?e/12.92:((e+.055)/1.055)**2.4}return.2126*t[0]+.7152*t[1]+.0722*t[2]},contrast(e){const t=this.luminosity(),n=e.luminosity();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)},level(e){const t=this.contrast(e);return t>=7?"AAA":t>=4.5?"AA":""},isDark(){const e=this.rgb().color,t=(2126*e[0]+7152*e[1]+722*e[2])/1e4;return t<128},isLight(){return!this.isDark()},negate(){const e=this.rgb();for(let t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten(e){const t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken(e){const t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate(e){const t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate(e){const t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten(e){const t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken(e){const t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale(){const e=this.rgb().color,t=.3*e[0]+.59*e[1]+.11*e[2];return l.rgb(t,t,t)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){const t=this.hsl();let n=t.color[0];return n=(n+e)%360,n=n<0?360+n:n,t.color[0]=n,t},mix(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);const n=e.rgb(),r=this.rgb(),i=void 0===t?.5:t,o=2*i-1,a=n.alpha()-r.alpha(),s=((o*a===-1?o:(o+a)/(1+o*a))+1)/2,c=1-s;return l.rgb(s*n.red()+c*r.red(),s*n.green()+c*r.green(),s*n.blue()+c*r.blue(),n.alpha()*i+r.alpha()*(1-i))}};for(const m of Object.keys(i)){if(o.includes(m))continue;const{channels:e}=i[m];l.prototype[m]=function(...e){return this.model===m?new l(this):e.length>0?new l(e,m):new l([...p(i[this.model][m].raw(this.color)),this.valpha],m)},l[m]=function(...t){let n=t[0];return"number"===typeof n&&(n=f(t,e)),new l(n,m)}}function c(e,t){return Number(e.toFixed(t))}function u(e){return function(t){return c(t,e)}}function d(e,t,n){e=Array.isArray(e)?e:[e];for(const r of e)(s[r]||(s[r]=[]))[t]=n;return e=e[0],function(r){let i;return void 0!==r?(n&&(r=n(r)),i=this[e](),i.color[t]=r,i):(i=this[e]().color[t],n&&(i=n(i)),i)}}function h(e){return function(t){return Math.max(0,Math.min(e,t))}}function p(e){return Array.isArray(e)?e:[e]}function f(e,t){for(let n=0;nDIV,.vm-console>DIV>DIV,BODY,HTML,MAIN{height:100%}",""]),t["default"]=s},67103:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),o=n(40935),a=n.n(o),s=a()(i());s.push([e.id,".validation-message{padding:5px;position:absolute;bottom:-35px}",""]),t["default"]=s},8199:function(e,t,n){"use strict";var r=n(36758),i=n.n(r),o=n(40935),a=n.n(o),s=a()(i());s.push([e.id,'.d2h-wrapper{text-align:left}.d2h-file-header{background-color:#f7f7f7;border-bottom:1px solid #d8d8d8;display:flex;font-family:Source Sans Pro,Helvetica Neue,Helvetica,Arial,sans-serif;height:35px;padding:5px 10px}.d2h-file-header.d2h-sticky-header{position:sticky;top:0;z-index:1}.d2h-file-stats{display:flex;font-size:14px;margin-left:auto}.d2h-lines-added{border:1px solid #b4e2b4;border-radius:5px 0 0 5px;color:#399839;padding:2px;text-align:right;vertical-align:middle}.d2h-lines-deleted{border:1px solid #e9aeae;border-radius:0 5px 5px 0;color:#c33;margin-left:1px;padding:2px;text-align:left;vertical-align:middle}.d2h-file-name-wrapper{align-items:center;display:flex;font-size:15px;width:100%}.d2h-file-name{overflow-x:hidden;text-overflow:ellipsis;white-space:nowrap}.d2h-file-wrapper{margin-bottom:1em}.d2h-file-collapse,.d2h-file-wrapper{border:1px solid #ddd;border-radius:3px}.d2h-file-collapse{-webkit-box-pack:end;-ms-flex-pack:end;align-items:center;cursor:pointer;display:none;font-size:12px;justify-content:flex-end;padding:4px 8px}.d2h-file-collapse.d2h-selected{background-color:#c8e1ff}.d2h-file-collapse-input{margin:0 4px 0 0}.d2h-diff-table{border-collapse:collapse;font-family:Menlo,Consolas,monospace;font-size:13px;width:100%}.d2h-files-diff{display:flex;width:100%}.d2h-file-diff{overflow-y:hidden}.d2h-file-diff.d2h-d-none,.d2h-files-diff.d2h-d-none{display:none}.d2h-file-side-diff{display:inline-block;overflow-x:scroll;overflow-y:hidden;width:50%}.d2h-code-line{padding:0 8em}.d2h-code-line,.d2h-code-side-line{display:inline-block;-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap;width:100%}.d2h-code-side-line{padding:0 4.5em}.d2h-code-line-ctn{word-wrap:normal;background:none;display:inline-block;padding:0;-webkit-user-select:text;-moz-user-select:text;user-select:text;vertical-align:middle;white-space:pre;width:100%}.d2h-code-line del,.d2h-code-side-line del{background-color:#ffb6ba}.d2h-code-line del,.d2h-code-line ins,.d2h-code-side-line del,.d2h-code-side-line ins{border-radius:.2em;display:inline-block;margin-top:-1px;text-decoration:none;vertical-align:middle}.d2h-code-line ins,.d2h-code-side-line ins{background-color:#97f295;text-align:left}.d2h-code-line-prefix{word-wrap:normal;background:none;display:inline;padding:0;white-space:pre}.line-num1{float:left}.line-num1,.line-num2{box-sizing:border-box;overflow:hidden;padding:0 .5em;text-overflow:ellipsis;width:3.5em}.line-num2{float:right}.d2h-code-linenumber{background-color:#fff;border:solid #eee;border-width:0 1px;box-sizing:border-box;color:rgba(0,0,0,.3);cursor:pointer;display:inline-block;position:absolute;text-align:right;width:7.5em}.d2h-code-linenumber:after{content:"\\200b"}.d2h-code-side-linenumber{background-color:#fff;border:solid #eee;border-width:0 1px;box-sizing:border-box;color:rgba(0,0,0,.3);cursor:pointer;display:inline-block;overflow:hidden;padding:0 .5em;position:absolute;text-align:right;text-overflow:ellipsis;width:4em}.d2h-code-side-linenumber:after{content:"\\200b"}.d2h-code-side-emptyplaceholder,.d2h-emptyplaceholder{background-color:#f1f1f1;border-color:#e1e1e1}.d2h-code-line-prefix,.d2h-code-linenumber,.d2h-code-side-linenumber,.d2h-emptyplaceholder{-webkit-user-select:none;-moz-user-select:none;user-select:none}.d2h-code-linenumber,.d2h-code-side-linenumber{direction:rtl}.d2h-del{background-color:#fee8e9;border-color:#e9aeae}.d2h-ins{background-color:#dfd;border-color:#b4e2b4}.d2h-info{background-color:#f8fafd;border-color:#d5e4f2;color:rgba(0,0,0,.3)}.d2h-file-diff .d2h-del.d2h-change{background-color:#fdf2d0}.d2h-file-diff .d2h-ins.d2h-change{background-color:#ded}.d2h-file-list-wrapper{margin-bottom:10px}.d2h-file-list-wrapper a{color:#3572b0;text-decoration:none}.d2h-file-list-wrapper a:visited{color:#3572b0}.d2h-file-list-header{text-align:left}.d2h-file-list-title{font-weight:700}.d2h-file-list-line{display:flex;text-align:left}.d2h-file-list{display:block;list-style:none;margin:0;padding:0}.d2h-file-list>li{border-bottom:1px solid #ddd;margin:0;padding:5px 10px}.d2h-file-list>li:last-child{border-bottom:none}.d2h-file-switch{cursor:pointer;display:none;font-size:10px}.d2h-icon{fill:currentColor;margin-right:10px;vertical-align:middle}.d2h-deleted{color:#c33}.d2h-added{color:#399839}.d2h-changed{color:#d0b44c}.d2h-moved{color:#3572b0}.d2h-tag{background-color:#fff;display:flex;font-size:10px;margin-left:5px;padding:0 2px}.d2h-deleted-tag{border:1px solid #c33}.d2h-added-tag{border:1px solid #399839}.d2h-changed-tag{border:1px solid #d0b44c}.d2h-moved-tag{border:1px solid #3572b0}',""]),t.A=s},52304:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),o=n(40935),a=n.n(o),s=a()(i());s.push([e.id,".role[data-v-fa2c9f40]{align-items:center;background-color:rgba(0,0,0,.05);border:1px solid var(--header-border);border-radius:5px;color:var(--tag-text);line-height:20px;padding:2px 5px;white-space:nowrap;display:inline-flex;margin-right:3px}.role-value.text-link-enabled[data-v-fa2c9f40]{cursor:pointer}.role-value.text-link-enabled[data-v-fa2c9f40]:hover{color:var(--primary)}.role-value+.icon-close[data-v-fa2c9f40]{margin-left:3px;cursor:pointer}.role-value+.icon-close[data-v-fa2c9f40]:hover{color:var(--primary)}.project-members[data-v-fa2c9f40] .group-bar{display:flex;justify-content:space-between}.cluster-add[data-v-fa2c9f40]{justify-content:flex-end}",""]),t["default"]=s},28988:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),o=n(40935),a=n.n(o),s=n(96599),l=a()(i());l.i(s.A),l.push([e.id,"#__layout,#__nuxt,MAIN,body{height:100%}.harvester-shell-container{height:100%;overflow:hidden}.harvester-shell-container .shell-body,.harvester-shell-container .terminal.xterm{height:100%}",""]),t["default"]=l},65320:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),o=n(40935),a=n.n(o),s=a()(i());s.push([e.id,".error[data-v-56da10be]{overflow:hidden}.error .row[data-v-56da10be]{align-items:center}.error h1[data-v-56da10be]{font-size:5rem}.error .desert-landscape img[data-v-56da10be]{max-width:100%}",""]),t["default"]=s},64065:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),o=n(40935),a=n.n(o),s=a()(i());s.push([e.id,".displayed-keys .banner[data-v-7821dcb9]{margin:0}.displayed-banners[data-v-7821dcb9]{max-height:155px;overflow:auto}.actions[data-v-7821dcb9]{width:100%;display:flex;justify-content:flex-end}",""]),t["default"]=s},38245:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),o=n(40935),a=n.n(o),s=a()(i());s.push([e.id,".combination-keys__container[data-v-11c334cb]{max-width:60px}.combination-keys__container DIV[data-v-11c334cb],.combination-keys__container SPAN[data-v-11c334cb]{display:block;text-align:center}.combination-keys__container SPAN[data-v-11c334cb]{border-radius:3px}.combination-keys__container SPAN.open[data-v-11c334cb],.combination-keys__container SPAN[data-v-11c334cb]:hover{color:var(--primary-hover-text);background:var(--primary-hover-bg)}",""]),t["default"]=s},30116:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),o=n(40935),a=n.n(o),s=a()(i());s.push([e.id,".vm-console[data-v-55ed4d1a]{height:100%;display:grid;grid-template-rows:30px auto}.combination-keys[data-v-55ed4d1a]{background:#282828}",""]),t["default"]=s},13998:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),o=n(40935),a=n.n(o),s=a()(i());s.push([e.id,".bundleModal .support-modal[data-v-4369f8da]{border-radius:var(--border-radius);max-height:100vh}.bundleModal .bundle[data-v-4369f8da]{cursor:pointer;color:var(--primary)}.bundleModal .icon-spinner[data-v-4369f8da]{font-size:100px}.bundleModal .content[data-v-4369f8da]{height:218px}.bundleModal .content .circle[data-v-4369f8da]{padding-top:20px;height:160px}.bundleModal div[data-v-4369f8da]{line-height:normal}.bundleModal .footer[data-v-4369f8da]{display:flex;justify-content:center}",""]),t["default"]=s},33403:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),o=n(40935),a=n.n(o),s=a()(i());s.push([e.id,"#air-gap[data-v-f88eec4a] .image-group .radio-group{display:flex}#air-gap[data-v-f88eec4a] .image-group .radio-group .radio-container{margin-right:30px}#air-gap .chooseFile[data-v-f88eec4a]{display:flex;align-items:center}",""]),t["default"]=s},64970:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),o=n(40935),a=n.n(o),s=a()(i());s.push([e.id,".header[data-v-a0fecebc]{border-bottom:1px solid var(--border);margin-bottom:0;padding-bottom:20px}.header H1[data-v-a0fecebc]{flex:1}",""]),t["default"]=s},74492:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),o=n(40935),a=n.n(o),s=a()(i());s.push([e.id,".link-example[data-v-a1b83c20]{display:flex;align-content:center}.link-example a[data-v-a1b83c20]{margin:auto}.logo-container[data-v-a1b83c20]{display:flex;flex-direction:column}.logo-container[data-v-a1b83c20] .simple-box{position:relative;flex:1;max-height:120px}.logo-container[data-v-a1b83c20] .simple-box .content{height:100%;display:flex}.logo-container[data-v-a1b83c20] .simple-box .logo-preview{max-width:100%}.logo-container LABEL[data-v-a1b83c20]{position:absolute;top:10px;left:10px}",""]),t["default"]=s},75106:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),o=n(40935),a=n.n(o),s=a()(i());s.push([e.id,"#__layout[data-v-2efbfdaf],#__nuxt[data-v-2efbfdaf],body[data-v-2efbfdaf],main[data-v-2efbfdaf]{height:100%}",""]),t["default"]=s},81945:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),o=n(40935),a=n.n(o),s=a()(i());s.push([e.id,".content[data-v-74e3f663]{display:grid;grid-column-gap:20px;grid-row-gap:20px;grid-template-columns:70% 30%}.only-community[data-v-74e3f663]{display:grid;grid-template-columns:100%}.community[data-v-74e3f663]{border-left:1px solid var(--border);padding-left:20px}.community>h2[data-v-74e3f663]{font-size:18px;font-weight:300;margin-bottom:20px}.community .support-link[data-v-74e3f663]{margin:10px 0}.box[data-v-74e3f663]{padding:20px;border:1px solid var(--border)}.box.box-primary[data-v-74e3f663]{border-color:var(--primary)}.box>h2[data-v-74e3f663]{font-size:20px;font-weight:300}.box>div[data-v-74e3f663]{font-weight:300;line-height:18px;opacity:.8}.role-secondary[data-v-74e3f663]:focus{background-color:transparent}.warning[data-v-74e3f663]{margin:0 -5px 0 -5px;padding:5px;background-color:var(--warning-banner-bg)}",""]),t["default"]=s},66208:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),o=n(40935),a=n.n(o),s=a()(i());s.push([e.id,'.dashboard-root[data-v-140c2578]{display:flex;flex-direction:column;height:100vh}.dashboard-content[data-v-140c2578]{display:grid;flex-grow:1;grid-template-areas:"main";grid-template-columns:auto;grid-template-rows:auto}.logo[data-v-140c2578]{margin:200px 0 40px 0}.logo[data-v-140c2578],.tagline[data-v-140c2578]{display:flex;justify-content:center}.tagline[data-v-140c2578]{margin-top:30px}.tagline>div[data-v-140c2578]{font-size:16px;line-height:22px;max-width:80%;text-align:center}.description[data-v-140c2578]{font-size:24px!important;font-weight:400}',""]),t["default"]=s},63982:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),o=n(40935),a=n.n(o),s=a()(i());s.push([e.id,".badge-state[data-v-1a187b86]{align-items:center;display:inline-flex;padding:2px 10px;border:1px solid transparent;border-radius:20px}.badge-state.bg-info[data-v-1a187b86]{border-color:var(--info)}.badge-state.bg-error[data-v-1a187b86]{border-color:var(--error)}.badge-state.bg-warning[data-v-1a187b86]{border-color:var(--warning)}.badge-state.bg-success[data-v-1a187b86]{color:var(--success);background:transparent;border-color:var(--success)}",""]),t["default"]=s},99736:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),o=n(40935),a=n.n(o),s=a()(i());s.push([e.id,".sortable-table TD .badge-state{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;word-wrap:break-word;display:inline-block;max-width:100%;position:relative;max-width:110px;font-size:.85em;vertical-align:middle}",""]),t["default"]=s},45571:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),o=n(40935),a=n.n(o),s=a()(i());s.push([e.id,".banner[data-v-4f269fb8]{display:flex;margin:15px 0;position:relative;width:100%;color:var(--body-text)}.banner__icon[data-v-4f269fb8]{width:48px;flex-grow:1;display:flex;justify-content:center;align-items:center;box-sizing:content-box}.primary .banner__icon[data-v-4f269fb8]{background:var(--primary)}.secondary .banner__icon[data-v-4f269fb8]{background:var(--default)}.success .banner__icon[data-v-4f269fb8]{background:var(--success)}.info .banner__icon[data-v-4f269fb8]{background:var(--info)}.warning .banner__icon[data-v-4f269fb8]{background:var(--warning)}.error .banner__icon[data-v-4f269fb8]{background:var(--error);color:var(--primary-text)}.banner__content[data-v-4f269fb8]{padding:10px;transition:all .2s ease;line-height:20px;width:100%;border-left:4px solid transparent;display:flex;gap:3px}.primary .banner__content[data-v-4f269fb8]{background:var(--primary);border-color:var(--primary)}.secondary .banner__content[data-v-4f269fb8]{background:var(--default-banner-bg);border-color:var(--default)}.success .banner__content[data-v-4f269fb8]{background:var(--success-banner-bg);border-color:var(--success)}.info .banner__content[data-v-4f269fb8]{background:var(--info-banner-bg);border-color:var(--info)}.warning .banner__content[data-v-4f269fb8]{background:var(--warning-banner-bg);border-color:var(--warning)}.error .banner__content[data-v-4f269fb8]{background:var(--error-banner-bg);border-color:var(--error);color:var(--error)}.banner__content.stacked[data-v-4f269fb8]{padding:0 10px;margin:0;transition:none}.banner__content.stacked[data-v-4f269fb8]:first-child{padding-top:10px}.banner__content.stacked[data-v-4f269fb8]:last-child{padding-bottom:10px}.banner__content.closable[data-v-4f269fb8]{padding-right:48px}.banner__content__closer[data-v-4f269fb8]{display:flex;align-items:center;cursor:pointer;position:absolute;top:0;right:0;bottom:0;width:24px;line-height:24px;text-align:center}.banner__content__closer .closer-icon[data-v-4f269fb8]{opacity:.7}.banner__content__closer .closer-icon[data-v-4f269fb8]:hover{opacity:1;color:var(--link)}.banner__content.icon[data-v-4f269fb8]{border-left:none}",""]),t["default"]=s},8243:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),o=n(40935),a=n.n(o),s=a()(i());s.push([e.id,".card-container{border-radius:var(--border-radius);display:flex;flex-basis:40%;margin:10px;min-height:100px;padding:10px;box-shadow:0 0 20px var(--shadow)}.card-container.highlight-border{border-left:5px solid var(--primary)}.card-container:not(.top){align-items:top;flex-direction:row;justify-content:start}.card-container .card-wrap{width:100%}.card-container .card-body{color:var(--input-label);display:flex;flex-direction:column;justify-content:center}.card-container .card-actions{align-self:end;display:flex;padding-top:20px}.card-container .card-title{align-items:center;display:flex;width:100%}.card-container .card-title h5{margin:0}.card-container .card-title .flex-right{margin-left:auto}.card-container.card-sticky{overflow:hidden}.card-container.card-sticky .card-wrap{display:flex;flex-direction:column}.card-container.card-sticky .card-wrap .card-body{justify-content:flex-start;overflow:auto}.card-container.card-sticky .card-wrap>*{flex:0}.card-container.card-sticky .card-wrap .card-body{flex:1}",""]),t["default"]=s},52377:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),o=n(40935),a=n.n(o),s=a()(i());s.push([e.id,'.checkbox-outer-container{display:inline-flex;flex-direction:column}.checkbox-outer-container-description{color:var(--input-label);font-size:14px;margin-left:19px;margin-top:5px;opacity:.8}.checkbox-container{position:relative;display:inline-flex;align-items:center;margin:0;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;border-radius:var(--border-radius)}.checkbox-container .checkbox-label{color:var(--input-label);display:inline-flex;margin:0 10px 0 5px}.checkbox-container .checkbox-label.checkbox-primary{color:inherit;font-weight:600}.checkbox-container .checkbox-info{line-height:normal;margin-left:2px}.checkbox-container .checkbox-custom{height:14px;width:14px;background-color:var(--body-bg);border-radius:var(--border-radius);transition:all .3s ease-out;border:1px solid var(--border);flex-shrink:0}.checkbox-container input{opacity:0;position:absolute;z-index:-1}.checkbox-container input:checked~.checkbox-custom{background-color:var(--primary);transform:rotate(0deg) scale(1);opacity:1;border:1px solid var(--primary)}.checkbox-container .checkbox-custom:after{position:absolute;content:"";left:0;top:0;height:0;width:0;border-radius:var(--border-radius);border:solid;border-color:var(--input-text);border-width:0 3px 3px 0;transform:rotate(0deg) scale(0);opacity:1}.checkbox-container input:checked~.checkbox-custom:after{transform:rotate(45deg) scale(1);opacity:1;left:4px;width:4px;height:10px;border:solid;border-color:var(--checkbox-tick);border-width:0 2px 2px 0;background-color:transparent}.checkbox-container input:checked~.checkbox-custom.indeterminate:after{transform:scale(1);opacity:1;left:3px;top:2px;width:6px;height:5px;border:solid;border-color:var(--checkbox-tick);border-width:0 0 2px 0;background-color:transparent}.checkbox-container.disabled .checkbox-custom,.checkbox-container.disabled input:checked~.checkbox-custom{background-color:var(--checkbox-disabled-bg);border-color:var(--checkbox-disabled-bg)}.checkbox-container.disabled input:checked~.checkbox-custom:after{border-color:var(--checkbox-tick-disabled)}.checkbox-container.disabled{cursor:not-allowed}.checkbox-container .checkbox-view{display:flex;flex-direction:column}.checkbox-container .checkbox-view LABEL{color:var(--input-label)}',""]),t["default"]=s},76462:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),o=n(40935),a=n.n(o),s=a()(i());s.push([e.id,".labeled-input.view input[data-v-ccd41ec4]{text-overflow:ellipsis}.hideArrows input[data-v-ccd41ec4]::-webkit-inner-spin-button,.hideArrows input[data-v-ccd41ec4]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.hideArrows input[type=number][data-v-ccd41ec4]{-moz-appearance:textfield}",""]),t["default"]=s},96740:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),o=n(40935),a=n.n(o),s=a()(i());s.push([e.id,".radio-view{display:flex;flex-direction:column}.radio-view LABEL{color:var(--input-label)}.radio-group .text-label{display:block;padding-bottom:5px}.radio-container{position:relative;display:inline-flex;align-items:flex-start;margin:0;-webkit-user-select:none;-moz-user-select:none;user-select:none;border-radius:var(--border-radius);padding-bottom:5px}.radio-container,.radio-container .radio-button-outer-container-description,.radio-container .radio-label{cursor:pointer}.radio-container.disabled,.radio-container.disabled .radio-button-outer-container-description,.radio-container.disabled .radio-label{cursor:not-allowed}.radio-container .radio-custom{height:14px;width:14px;min-height:14px;min-width:14px;background-color:var(--input-bg);border-radius:50%;transition:all .3s ease-out;border:1.5px solid var(--border);margin-top:5px}.radio-container .radio-custom:focus{outline:none;border-radius:50%}.radio-container input{display:none}.radio-container .radio-custom[aria-checked=true]{background-color:var(--primary);transform:rotate(0deg) scale(1);opacity:1;border:1.5px solid var(--primary)}.radio-container .radio-custom[aria-checked=true].text-muted{opacity:.25}.radio-container input:disabled~.radio-custom:not([aria-checked=true]){background-color:var(--disabled-bg);opacity:.25}.radio-container .radio-button-outer-container-description{color:var(--input-label);font-size:11px;margin-top:5px}.radio-container .labeling{display:inline-flex;flex-direction:column;margin:3px 10px 0 5px}",""]),t["default"]=s},60456:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),o=n(40935),a=n.n(o),s=a()(i());s.push([e.id,".radio-group:focus{border:none;outline:none}.radio-group h3{position:relative}.radio-group.row{display:flex}.radio-group.row .radio-container{margin-right:10px}.radio-group .label{font-size:14px!important}",""]),t["default"]=s},32751:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),o=n(40935),a=n.n(o),s=a()(i());s.push([e.id,".labeled-tooltip{position:absolute;width:100%;height:100%;left:0;top:0}.labeled-tooltip.hoverable{height:0}.labeled-tooltip .status-icon{position:absolute;right:30px;top:18px;z-index:3}.labeled-tooltip.error .status-icon{color:var(--error);top:7px;right:5px}.labeled-tooltip.warning .status-icon{color:var(--warning)}.labeled-tooltip.success .status-icon{color:var(--success)}.v-popper__popper.v-popper--theme-tooltip .v-popper__inner pre{padding:2px;vertical-align:middle}",""]),t["default"]=s},78541:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),o=n(40935),a=n.n(o),s=a()(i());s.push([e.id,".dropdown-button-group .no-left-border-radius{border-top-left-radius:0;border-bottom-left-radius:0}.dropdown-button-group .no-right-border-radius{border-top-right-radius:0;border-bottom-right-radius:0}.dropdown-button-group .btn{line-height:normal;border:0}.dropdown-button-group .btn-group-xs>.btn,.dropdown-button-group .btn-xs,.dropdown-button-group .btn-xs .btn-label{padding:2px 3px;font-size:13px}.dropdown-button-group .v-popper .text-right{margin-top:5px}.dropdown-button-group .v-popper .trigger{height:100%}.dropdown-button-group .v-popper .trigger .icon-container{height:100%;padding:10px 10px 10px 10px}.dropdown-button-group .v-popper .trigger .icon-container i{transform:scale(1)}.dropdown-button-group .v-popper .trigger .icon-container.btn-xs{padding:2px 4px 4px 4px}.dropdown-button-group .v-popper .trigger .icon-container.btn-sm{padding:10px 10px 10px 10px}.dropdown-button-group .v-popper .trigger .icon-container.btn-lg{padding:18px 10px 10px 10px}.dropdown-button-group .v-popper .trigger .icon-container:focus{outline-style:none;box-shadow:none;border-color:transparent}.dropdown-button-group .dropdown-button{background:var(--tooltip-bg);color:var(--link-text);padding:0;display:inline-flex}.dropdown-button-group .dropdown-button .wrapper-content button{border-right:0}.dropdown-button-group .dropdown-button .icon-chevron-down,.dropdown-button-group .dropdown-button>*{color:var(--primary);background-color:transparent}.dropdown-button-group .dropdown-button.bg-primary:hover{background:var(--accent-btn-hover)}.dropdown-button-group .dropdown-button.one-action{position:relative}.dropdown-button-group .dropdown-button.one-action>.btn{padding:15px 35px 15px 15px}.dropdown-button-group .dropdown-button.one-action .v-popper .trigger{position:absolute;top:0;right:0;left:0;bottom:0}.dropdown-button-group .dropdown-button.one-action .v-popper .trigger BUTTON{position:absolute;right:0}.dropdown-button-group .v-popper__popper{border:none;margin-top:0}.dropdown-button-group .v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-container{display:none}.dropdown-button-group .v-popper__popper .v-popper__inner{color:var(--dropdown-text);background-color:var(--dropdown-bg);border:1px solid var(--dropdown-border);padding:0;text-align:left}.dropdown-button-group .v-popper__popper .v-popper__inner LI{padding:10px}.dropdown-button-group .v-popper__popper .v-popper__inner LI.divider{padding-top:0;padding-bottom:0}.dropdown-button-group .v-popper__popper .v-popper__inner LI.divider>.divider-inner{padding:0;border-bottom:1px solid var(--dropdown-divider);width:125%;margin:0 auto}.dropdown-button-group .v-popper__popper .v-popper__inner LI:not(.divider):hover{background-color:var(--dropdown-hover-bg);color:var(--dropdown-hover-text);cursor:pointer}.dropdown-button-group .user-info{border-bottom:1px solid var(--border);display:block}",""]),t["default"]=s},51984:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),o=n(40935),a=n.n(o),s=a()(i());s.push([e.id,".menu[data-v-58ad4c56],.root[data-v-58ad4c56]{position:absolute}.menu[data-v-58ad4c56]{visibility:hidden;top:0;left:0;z-index:41;min-width:145px;color:var(--dropdown-text);background-color:var(--dropdown-bg);border:1px solid var(--dropdown-border);border-radius:5px;box-shadow:0 5px 20px var(--shadow)}.menu LI[data-v-58ad4c56]{align-items:center;display:flex;padding:8px 10px;margin:0}.menu LI[disabled][data-v-58ad4c56]{cursor:not-allowed!important;color:var(--disabled-text)}.menu LI.divider[data-v-58ad4c56]{padding:0;border-bottom:1px solid var(--dropdown-divider)}.menu LI[data-v-58ad4c56]:not(.divider):hover{background-color:var(--dropdown-hover-bg);color:var(--dropdown-hover-text);cursor:pointer}.menu LI .icon[data-v-58ad4c56]{display:unset;width:14px;text-align:center;margin-right:8px}.menu LI.no-actions[data-v-58ad4c56],.menu LI.no-actions[data-v-58ad4c56]:hover{color:var(--disabled-text)}.menu LI.no-actions[data-v-58ad4c56]:hover{background-color:initial;cursor:default}.background[data-v-58ad4c56]{position:fixed;top:0;left:0;right:0;bottom:0;opacity:0;z-index:40}",""]),t["default"]=s},21588:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),o=n(40935),a=n.n(o),s=a()(i());s.push([e.id,".modal-overlay{position:absolute;top:0;left:0;width:100vw;height:100vh;background-color:var(--overlay-bg);display:flex;justify-content:center;align-items:center;z-index:20}.modal-overlay .modal-container{background-color:var(--modal-bg);border-radius:var(--border-radius);max-height:95vh;overflow:auto;border:2px solid var(--modal-border)}.modal-fade-enter-active,.modal-fade-leave-active{transition:opacity .2s}.modal-fade-enter,.modal-fade-leave-to{opacity:0}",""]),t["default"]=s},52579:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),o=n(40935),a=n.n(o),s=a()(i());s.push([e.id,".manual-refresh i[data-v-11cbd15e]{margin:0 0 0 8px!important;font-size:1rem!important}",""]),t["default"]=s},42653:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),o=n(40935),a=n.n(o),s=a()(i());s.push([e.id,".banner-graphic{position:relative}.banner-graphic .close-button{position:absolute;visibility:hidden}.banner-graphic:hover .close-button{visibility:visible;position:absolute;right:4px;top:4px;font-size:16px;padding:4px;display:flex;align-items:center;cursor:pointer;opacity:.4}.banner-graphic:hover .close-button:hover{background-color:var(--accent-btn-hover);color:var(--accent-btn-hover-text);opacity:1}.banner-graphic .graphic{display:flex;flex-direction:column;height:240px;overflow:hidden}.banner-graphic .graphic>img.banner{flex:1;-o-object-fit:cover;object-fit:cover}.banner-graphic .title{display:flex;justify-content:center;align-items:center;position:absolute;text-align:center;top:0;height:100%;width:100%;margin-top:-20px}.banner-graphic.small .graphic{height:200px}.banner-graphic.small .graphic img.banner{margin-top:-20px}",""]),t["default"]=s},98207:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),o=n(40935),a=n.n(o),s=a()(i());s.push([e.id,".button-dropdown.btn-sm[data-v-4be323a9] >.vs__dropdown-toggle .vs__actions:after{font-size:1.6rem}.button-dropdown.btn-lg[data-v-4be323a9] >.vs__dropdown-toggle .vs__actions:after{font-size:2.6rem}.button-dropdown[data-v-4be323a9]{background:var(--accent-btn);border:solid 1px var(--link);color:var(--link);padding:0}.button-dropdown.vs--open[data-v-4be323a9] {outline:none;box-shadow:none}.button-dropdown[data-v-4be323a9]:hover .vs__dropdown-toggle .vs__actions,.button-dropdown[data-v-4be323a9]:hover .vs__selected-options{background:var(--accent-btn-hover)}.button-dropdown[data-v-4be323a9]:hover .vs__selected-options .vs__selected button{background-color:transparent;color:var(--accent-btn-hover-text)}.button-dropdown[data-v-4be323a9]:hover .vs__dropdown-toggle .vs__actions:after{color:var(--accent-btn-hover-text)}.button-dropdown[data-v-4be323a9] >.vs__dropdown-toggle{width:100%;display:grid;grid-template-columns:75% 25%;border:none;background:transparent}.button-dropdown[data-v-4be323a9] >.vs__dropdown-toggle .vs__actions:after{color:var(--link);line-height:1}.button-dropdown[data-v-4be323a9] .vs__selected-options .vs__selected{margin:unset;border:none}.button-dropdown[data-v-4be323a9] .vs__selected-options .vs__selected button{border:none;background:transparent;color:var(--link)}.button-dropdown[data-v-4be323a9] .vs__selected-options .vs__search{position:absolute;opacity:0;padding:0}.button-dropdown[data-v-4be323a9] .vs__dropdown-menu{min-width:unset;width:-moz-fit-content;width:fit-content}",""]),t["default"]=s},92478:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),o=n(40935),a=n.n(o),s=a()(i());s.push([e.id,".borderless[data-v-ffe343e4]{background-color:transparent;border:none}.borderless[data-v-ffe343e4]:focus,.borderless[data-v-ffe343e4]:hover{background-color:var(--accent-btn);box-shadow:none}",""]),t["default"]=s},13988:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),o=n(40935),a=n.n(o),s=a()(i());s.push([e.id,'.code-mirror.as-text-area .codemirror-container{min-height:40px;position:relative;display:block;box-sizing:border-box;width:100%;padding:10px;background-color:var(--input-bg);border-radius:var(--border-radius);border:solid var(--border-width) var(--input-border);color:var(--input-text)}.code-mirror.as-text-area .codemirror-container:hover{border-color:var(--input-hover-border)}.code-mirror.as-text-area .codemirror-container.focus,.code-mirror.as-text-area .codemirror-container:focus{outline:none;border-color:var(--outline)}.code-mirror.as-text-area .codemirror-container .CodeMirror-wrap pre{word-break:break-word}.code-mirror.as-text-area .codemirror-container .CodeMirror-code .CodeMirror-line .cm-markdown-single-trailing-space-even:before,.code-mirror.as-text-area .codemirror-container .CodeMirror-code .CodeMirror-line .cm-markdown-single-trailing-space-odd:before,.code-mirror.as-text-area .codemirror-container .CodeMirror-code .CodeMirror-line:not(:last-child)>span:after{color:var(--muted);position:absolute;line-height:20px;pointer-events:none}.code-mirror.as-text-area .codemirror-container .CodeMirror-code .CodeMirror-line:not(:last-child)>span:after{content:"↵";margin-left:2px}.code-mirror.as-text-area .codemirror-container .CodeMirror-code .CodeMirror-line .cm-markdown-single-trailing-space-even:before,.code-mirror.as-text-area .codemirror-container .CodeMirror-code .CodeMirror-line .cm-markdown-single-trailing-space-odd:before{font-weight:700;content:"·"}.code-mirror.as-text-area .codemirror-container .CodeMirror-lines{color:var(--input-text);padding:0}.code-mirror.as-text-area .codemirror-container .CodeMirror-lines .CodeMirror-line>span>span.cm-overlay{font-family:monospace}.code-mirror.as-text-area .codemirror-container .CodeMirror-lines .CodeMirror-line>span{font-family:Lato,arial,helvetica,sans-serif}.code-mirror.as-text-area .codemirror-container .CodeMirror-sizer{min-height:20px}.code-mirror.as-text-area .codemirror-container .CodeMirror-selected{background-color:var(--primary)!important}.code-mirror.as-text-area .codemirror-container .CodeMirror-selectedtext{color:var(--primary-text)}.code-mirror.as-text-area .codemirror-container .CodeMirror-line::selection,.code-mirror.as-text-area .codemirror-container .CodeMirror-line>span::selection,.code-mirror.as-text-area .codemirror-container .CodeMirror-line>span>span::selection{color:var(--primary-text);background-color:var(--primary)}.code-mirror.as-text-area .codemirror-container .CodeMirror-line::-moz-selection,.code-mirror.as-text-area .codemirror-container .CodeMirror-line>span::-moz-selection,.code-mirror.as-text-area .codemirror-container .CodeMirror-line>span>span::-moz-selection{color:var(--primary-text);background-color:var(--primary)}.code-mirror.as-text-area .codemirror-container .CodeMirror-gutters .CodeMirror-foldgutter:empty{display:none}.code-mirror{position:relative}.code-mirror .codemirror-container{z-index:0;font-size:inherit!important}.code-mirror .codemirror-container .CodeMirror{height:auto;background:none}.code-mirror .codemirror-container .CodeMirror-gutters{background:inherit}.code-mirror .keymap.overlay{position:absolute;display:flex;top:7px;right:7px;z-index:1;cursor:pointer}.code-mirror .keymap.overlay .keymap-indicator{width:48px;height:32px;display:flex;align-items:center;justify-content:center;border:1px solid transparent;color:var(--darker);background-color:var(--overlay-bg);font-size:12px}.code-mirror .keymap.overlay .keymap-indicator .close-indicator{width:0}.code-mirror .keymap.overlay .keymap-indicator .close-indicator .icon-close{color:var(--primary);opacity:0}.code-mirror .keymap.overlay .keymap-indicator .keymap-icon{font-size:24px;opacity:.8;transition:margin-right .1s ease-in-out}.code-mirror .keymap.overlay .keymap-indicator:hover{border:1px solid var(--primary);border-radius:var(--border-radius)}.code-mirror .keymap.overlay .keymap-indicator:hover .close-indicator{margin-left:-6px;width:auto}.code-mirror .keymap.overlay .keymap-indicator:hover .close-indicator .icon-close{opacity:1;transition:opacity .1s ease-in-out .1s}.code-mirror .keymap.overlay .keymap-indicator:hover .keymap-icon{opacity:.6;margin-right:10px}',""]),t["default"]=s},28754:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),o=n(40935),a=n.n(o),s=n(20062),l=n.n(s),c=new URL(n(50129),n.b),u=a()(i()),d=l()(c);u.push([e.id,"h2[data-v-72fd1d89]{display:flex;align-items:center}h2 i[data-v-72fd1d89]{font-size:12px;margin-left:5px}.support-link[data-v-72fd1d89]:not(:last-child){margin-bottom:15px}.wechat-modal[data-v-72fd1d89]{margin:60px;display:flex;flex-direction:column;align-items:center}.link[data-v-72fd1d89]{cursor:pointer}.btn[data-v-72fd1d89]{margin:20px auto 0}.qr-img[data-v-72fd1d89]{background-image:url("+d+");background-repeat:no-repeat;background-size:cover;background-position:50%;height:128px;width:128px;margin:15px auto 10px}",""]),t["default"]=u},11041:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),o=n(40935),a=n.n(o),s=a()(i());s.push([e.id,".cru-resource-yaml-container .resource-yaml .yaml-editor[data-v-2586478b]{min-height:100px}.create-resource-container .resource-container[data-v-2586478b]{display:flex;flex-direction:column}.create-resource-container .subtype-banner .round-image[data-v-2586478b]{background-color:var(--primary)}.title[data-v-2586478b]{margin-top:20px}.title.with-description[data-v-2586478b]{margin-top:0}.subtype-container[data-v-2586478b]{position:relative;display:flex;height:100%}.subtype-body[data-v-2586478b]{flex:1;padding:10px}.subtype-logo[data-v-2586478b]{align-items:center;display:flex;justify-content:center;min-width:100px;min-height:100px;overflow:hidden;background-color:var(--box-bg)}.subtype-logo img[data-v-2586478b]{width:56px;height:56px;-o-object-fit:contain;object-fit:contain;position:relative;top:2px}form.create-resource-container .cru__footer[data-v-2586478b]{border-top:var(--header-border-size) solid var(--header-border)}.cru[data-v-2586478b],.cru__form[data-v-2586478b]{display:flex;flex-direction:column;flex-grow:1}.cru__content[data-v-2586478b]{flex-grow:1}.cru__content-wizard[data-v-2586478b]{display:flex}.cru__footer[data-v-2586478b]{right:0;bottom:0;margin-left:-20px;margin-right:-20px;margin-bottom:-20px;padding:10px 20px}.cru__errors[data-v-2586478b],.cru__footer[data-v-2586478b]{position:sticky;background-color:var(--header-bg)}.cru__errors[data-v-2586478b]{top:0;z-index:1;margin:10px 0}.description[data-v-2586478b]{margin-bottom:15px;margin-top:5px}",""]),t["default"]=s},91391:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),o=n(40935),a=n.n(o),s=a()(i());s.push([e.id,".cru-resource-footer{display:flex;justify-content:flex-end;margin-top:20px;z-index:40}.cru-resource-footer .btn{margin-left:20px}",""]),t["default"]=s},41346:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),o=n(40935),a=n.n(o),s=a()(i());s.push([e.id,".with-copy[data-v-7f3abca2]{border:solid 1px var(--border);padding:10px;position:relative;background-color:var(--input-bg);border-radius:var(--border-radius);border:solid var(--border-width) var(--input-border)}.with-copy>button[data-v-7f3abca2]{position:absolute;top:-1px;right:-1px;border-radius:0 0 0 var(--border-radius)}.monospace[data-v-7f3abca2]{white-space:pre-wrap;word-wrap:break-all}",""]),t["default"]=s},77774:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),o=n(40935),a=n.n(o),s=a()(i());s.push([e.id,'.detail-top:not(.empty){padding-top:10px;border-top:1px solid var(--border);margin-top:10px}.detail-top .namespaceLinkList:not(:first-child):before{content:", "}.detail-top .tags{display:inline-flex;flex-direction:row;flex-wrap:wrap;position:relative;top:-2px}.detail-top .tags .label{position:relative;top:4px}.detail-top .tags .tag{margin:2px 4px 0 2px;font-size:12px}.detail-top .annotation{margin-top:10px}.detail-top .label{color:var(--input-label);margin:0 4px 0 0}.detail-top__label-button{padding:4px}.detail-top .details{display:flex;flex-direction:row;flex-wrap:wrap}.detail-top .details .detail{margin-right:20px;margin-bottom:3px}.detail-top .details:not(:first-of-type){margin-top:3px}.detail-top>div:not(:last-of-type){margin-bottom:4px}.detail-top .icon{vertical-align:top}',""]),t["default"]=s},94606:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),o=n(40935),a=n.n(o),s=a()(i());s.push([e.id,".project-namespaces[data-v-e66e1d56] .project-namespaces-table table{table-layout:fixed}.project-namespaces[data-v-e66e1d56] .project-name{line-height:30px}.project-namespaces[data-v-e66e1d56] .project-bar{display:flex;flex-direction:row;justify-content:space-between}.project-namespaces[data-v-e66e1d56] .project-bar .group-tab{max-width:calc(100% - 230px)}.project-namespaces[data-v-e66e1d56] .project-bar .project-name{display:flex;flex-direction:row;align-items:center}.project-namespaces[data-v-e66e1d56] .project-bar .project-name span:first-child{padding-right:8px}.project-namespaces[data-v-e66e1d56] .project-bar .project-name span:last-child{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.project-namespaces[data-v-e66e1d56] .project-bar.has-description .right{margin-top:5px}.project-namespaces[data-v-e66e1d56] .project-bar.has-description .group-tab,.project-namespaces[data-v-e66e1d56] .project-bar.has-description .group-tab:after{height:50px}.project-namespaces[data-v-e66e1d56] .project-bar.has-description .group-tab:after{right:-20px}.project-namespaces[data-v-e66e1d56] .project-bar.has-description .group-tab .description{margin-top:-20px}.project-namespaces[data-v-e66e1d56] .namespace-name{display:flex;align-items:center}.project-namespaces[data-v-e66e1d56] .namespace-name .icon-istio{color:var(--primary)}",""]),t["default"]=s},6720:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),o=n(40935),a=n.n(o),s=a()(i());s.push([e.id,".psa-tooltip{margin:3px 0;padding:0 8px 0 22px}",""]),t["default"]=s},877:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),o=n(40935),a=n.n(o),s=a()(i());s.push([e.id,".root[data-v-6b4f901a]{max-width:100%;position:relative;overflow:auto}",""]),t["default"]=s},78540:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),o=n(40935),a=n.n(o),s=n(8199),l=a()(i());l.i(s.A),l.push([e.id,"[data-v-6b4f901a] .d2h-wrapper .d2h-file-header{display:none}[data-v-6b4f901a] .d2h-wrapper .d2h-file-wrapper{border-color:var(--diff-border)}[data-v-6b4f901a] .d2h-wrapper .d2h-diff-table{font-family:Menlo,Consolas,monospace;font-size:13px}[data-v-6b4f901a] .d2h-wrapper .d2h-code-side-emptyplaceholder,[data-v-6b4f901a] .d2h-wrapper .d2h-emptyplaceholder{border-color:var(--diff-linenum-border);background-color:var(--diff-empty-placeholder)}[data-v-6b4f901a] .d2h-wrapper .d2h-code-linenumber,[data-v-6b4f901a] .d2h-wrapper .d2h-code-side-linenumber{background-color:var(--diff-linenum-bg);color:var(--diff-linenum);border-color:var(--diff-linenum-border);border-left:0}[data-v-6b4f901a] .d2h-wrapper .d2h-code-line del,[data-v-6b4f901a] .d2h-wrapper .d2h-code-side-line del{background-color:var(--diff-line-del-bg)}[data-v-6b4f901a] .d2h-wrapper .d2h-code-line ins,[data-v-6b4f901a] .d2h-wrapper .d2h-code-side-line ins{background-color:var(--diff-line-ins-bg)}[data-v-6b4f901a] .d2h-wrapper .d2h-del{background-color:var(--diff-del-bg);border-color:var(--diff-del-border);color:var(--body-text)}[data-v-6b4f901a] .d2h-wrapper .d2h-ins{background-color:var(--diff-ins-bg);border-color:var(--diff-ins-border);color:var(--body-text)}[data-v-6b4f901a] .d2h-wrapper .d2h-info{background-color:var(--diff-header-bg);color:var(--diff-header);border-color:var(--diff-header-border)}[data-v-6b4f901a] .d2h-wrapper .d2h-file-diff .d2h-del.d2h-change{background-color:var(--diff-chg-del)}[data-v-6b4f901a] .d2h-wrapper .d2h-file-diff .d2h-ins.d2h-change{background-color:var(--diff-chg-ins)}",""]),t["default"]=l},25295:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),o=n(40935),a=n.n(o),s=a()(i());s.push([e.id,".vertical[data-v-14eacf66]{flex-direction:column;width:100%}.subtle[data-v-14eacf66]{opacity:.7}.message-icon[data-v-14eacf66]{display:flex;align-items:center;justify-content:center;flex:1;flex-direction:column}.message-icon>I[data-v-14eacf66]{font-size:64px;margin-bottom:20px}.message-icon>I.info[data-v-14eacf66]{color:var(--primary)}.message-icon>I.error[data-v-14eacf66]{color:var(--error)}.message-icon>I.warning[data-v-14eacf66]{color:var(--warning)}.message-icon>I.success[data-v-14eacf66]{color:var(--success)}.message-icon>.message[data-v-14eacf66]{font-size:20px;margin-bottom:40px;max-width:60%;text-align:center;line-height:30px}",""]),t["default"]=s},23448:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),o=n(40935),a=n.n(o),s=a()(i());s.push([e.id,".svg-icon[data-v-036e8898]{height:24px;width:24px}",""]),t["default"]=s},59679:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),o=n(40935),a=n.n(o),s=a()(i());s.push([e.id,".indented-panel{height:100%;width:90%;margin-left:5%}@media only screen and (max-width:992px){.indented-panel{margin:0 20px;width:auto}}",""]),t["default"]=s},86728:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),o=n(40935),a=n.n(o),s=a()(i());s.push([e.id,".info-box[data-v-44caeb0e]{border:2px solid var(--tabbed-border);padding:10px;margin-bottom:20px;border-radius:var(--border-radius);flex-grow:1;flex-basis:0;position:relative}.info-box .stepped[data-v-44caeb0e]{padding-left:40px}.info-box .step-number[data-v-44caeb0e]{border-radius:var(--border-radius);background:var(--secondary);color:var(--input-text);display:inline-block;padding:5px 10px}.info-box .step-list[data-v-44caeb0e]{margin:0}.info-box .info-column[data-v-44caeb0e]:not(:last-child){border-right:1px solid var(--tabbed-border)}.info-box .info-row[data-v-44caeb0e]{margin-bottom:10px}.info-box .info-row .info-row-label[data-v-44caeb0e]{padding-top:2px;display:inline-block}.info-box .info-column label[data-v-44caeb0e],.info-box .info-row label[data-v-44caeb0e]{color:var(--input-label)}.info-box .info-column .usage[data-v-44caeb0e]{margin-bottom:10px}.info-box .info-column .usage label[data-v-44caeb0e]{display:inline-block;font-size:12px;padding-top:6px}.info-box .info-column .flex-item-half[data-v-44caeb0e]{align-items:center}",""]),t["default"]=s},52004:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),o=n(40935),a=n.n(o),s=a()(i());s.push([e.id,".overlay[data-v-94f9d500]{align-items:center;background-color:var(--overlay-bg);display:flex;justify-content:center;position:absolute;bottom:0;top:0;left:0;right:0;text-align:center;z-index:12}.overlay-main-mode[data-v-94f9d500]{top:var(--header-height);z-index:51}.overlay-content-mode[data-v-94f9d500]{left:calc(var(--nav-width));top:var(--header-height)}",""]),t["default"]=s},45754:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),o=n(40935),a=n.n(o),s=a()(i());s.push([e.id,".footer[data-v-566e0752]{width:100%;display:flex;justify-content:center}.banner[data-v-566e0752]{margin-bottom:0}",""]),t["default"]=s},18112:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),o=n(40935),a=n.n(o),s=a()(i());s.push([e.id,".modal{border-radius:var(--border-radius);max-height:100vh}.modal.card-container{box-shadow:none}",""]),t["default"]=s},4739:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),o=n(40935),a=n.n(o),s=a()(i());s.push([e.id,".move-modal .namespaces{max-height:200px;overflow-y:scroll}.move-modal .move-modal-card{box-shadow:none;border-radius:var(--border-radius)}.move-modal .actions{text-align:right}.move-modal .card-actions{display:flex;justify-content:center}",""]),t["default"]=s},7821:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),o=n(40935),a=n.n(o),s=a()(i());s.push([e.id,".confirm-modal .btn[data-v-4fda46f8]{margin:0 10px}.confirm-modal .body[data-v-4fda46f8]{min-height:75px;padding:10px 0 0 15px}.confirm-modal .body p[data-v-4fda46f8]{margin-top:10px}.confirm-modal .header[data-v-4fda46f8]{background-color:var(--error);padding:15px 0 0 15px;height:50px}.confirm-modal .header h4[data-v-4fda46f8]{color:#fff}.confirm-modal .footer[data-v-4fda46f8]{border-top:1px solid var(--border);text-align:center;padding:10px 0 0 15px;height:60px}",""]),t["default"]=s},47769:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),o=n(40935),a=n.n(o),s=a()(i());s.push([e.id,".masthead[data-v-0f4333f4]{padding-bottom:10px;border-bottom:1px solid var(--border);margin-bottom:10px}HEADER[data-v-0f4333f4]{margin:0}HEADER .title[data-v-0f4333f4]{overflow:hidden}.primaryheader[data-v-0f4333f4],.primaryheader h1[data-v-0f4333f4]{display:flex;flex-direction:row;align-items:center}.primaryheader h1[data-v-0f4333f4]{margin:0;overflow:hidden}.primaryheader h1 .masthead-resource-title[data-v-0f4333f4]{padding:0 8px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.subheader[data-v-0f4333f4]{display:flex;flex-direction:row;color:var(--input-label)}.subheader>*[data-v-0f4333f4]{margin:5px 20px 5px 0}.subheader .live-data[data-v-0f4333f4]{color:var(--body-text);margin-left:3px}.state-banner[data-v-0f4333f4]{margin:3px 0 0 0}.masthead-state[data-v-0f4333f4]{font-size:medium}.masthead-istio .icon[data-v-0f4333f4]{vertical-align:middle;color:var(--primary)}.left-right-split[data-v-0f4333f4]{display:grid;align-items:center}.left-right-split .left-half[data-v-0f4333f4]{grid-column:1}.left-right-split .right-half[data-v-0f4333f4]{grid-column:2}div.actions-container>div.actions[data-v-0f4333f4]{display:flex;flex-direction:row;justify-content:flex-end}.resource-external[data-v-0f4333f4]{font-size:18px}",""]),t["default"]=s},95408:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),o=n(40935),a=n.n(o),s=a()(i());s.push([e.id,".flex-content[data-v-616baa75]{display:flex;flex-direction:column;flex-grow:1}",""]),t["default"]=s},17298:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),o=n(40935),a=n.n(o),s=a()(i());s.push([e.id,'.title[data-v-906a451c]{align-items:center;display:flex}.title h1[data-v-906a451c]{margin:0}header[data-v-906a451c]{margin-bottom:20px}header.with-subheader[data-v-906a451c]{grid-template-areas:"type-banner type-banner" "title actions" "sub-header sub-header" "state-banner state-banner"}.sub-header[data-v-906a451c]{grid-area:sub-header}.sub-header a[data-v-906a451c]{display:inline-block}',""]),t["default"]=s},19991:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),o=n(40935),a=n.n(o),s=a()(i());s.push([e.id,".resource-loading-indicator[data-v-95d5e994]{border:1px solid var(--link);border-radius:10px;position:relative;width:-moz-min-content;width:min-content;overflow:hidden}.resource-loading-indicator .resource-loader[data-v-95d5e994]:last-child{position:absolute;top:0;background-color:var(--link);color:var(--link-text);overflow:hidden;white-space:nowrap}.resource-loading-indicator .resource-loader[data-v-95d5e994]{padding:1px 10px;width:-moz-max-content;width:max-content}.resource-loading-indicator .resource-loader .rl-bg[data-v-95d5e994],.resource-loading-indicator .resource-loader .rl-fg[data-v-95d5e994]{align-content:center;display:flex}.resource-loading-indicator .resource-loader .rl-bg>i[data-v-95d5e994],.resource-loading-indicator .resource-loader .rl-fg>i[data-v-95d5e994]{font-size:18px;line-height:18px}.resource-loading-indicator .resource-loader .rl-bg>span[data-v-95d5e994],.resource-loading-indicator .resource-loader .rl-fg>span[data-v-95d5e994]{margin-left:5px}",""]),t["default"]=s},67748:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),o=n(40935),a=n.n(o),s=a()(i());s.push([e.id,".header[data-v-1bcb2bdb],H2[data-v-1bcb2bdb]{position:relative}H2[data-v-1bcb2bdb]{margin:0 0 20px 0}.filter[data-v-1bcb2bdb]{line-height:45px}.right-action[data-v-1bcb2bdb]{position:absolute;top:10px;right:10px}",""]),t["default"]=s},94501:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),o=n(40935),a=n.n(o),s=a()(i());s.push([e.id,".flex-content[data-v-19e34c00]{display:flex;flex-direction:column;flex-grow:1}.footer[data-v-19e34c00]{margin-top:20px;right:0;position:sticky;bottom:0;background-color:var(--header-bg);margin-left:-20px;margin-right:-20px;margin-bottom:-20px;padding:10px 20px}.footer.edit[data-v-19e34c00]{border-top:var(--header-border-size) solid var(--header-border)}",""]),t["default"]=s},60099:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),o=n(40935),a=n.n(o),s=a()(i());s.push([e.id,".resource-yaml .yaml-editor{min-height:200px}.resource-yaml footer .actions{text-align:right}.resource-yaml .spacer-small{padding:0}",""]),t["default"]=s},40913:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),o=n(40935),a=n.n(o),s=a()(i());s.push([e.id,".top[data-v-2213d58b]{display:flex;position:relative}.top>h2[data-v-2213d58b]{flex:1}.close-button[data-v-2213d58b]{cursor:pointer;display:flex;align-items:center;justify-content:center;padding:2px}.close-button>i[data-v-2213d58b]{font-size:14px;opacity:.5}.close-button[data-v-2213d58b]:hover{background-color:var(--wm-closer-hover-bg)}",""]),t["default"]=s},25399:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),o=n(40935),a=n.n(o),s=a()(i());s.push([e.id,".simple-box{background:var(--simple-box-bg) 0 0 no-repeat padding-box;box-shadow:0 0 10px var(--simple-box-shadow);border:1px solid var(--simple-box-border);padding:15px}.simple-box .top{line-height:24px;font-size:18px;border-bottom:1px solid var(--simple-box-divider);padding-bottom:15px;margin:0 -15px 10px -15px;padding:0 15px 15px 15px;align-items:center;display:flex .simple-box .top BUTTON;display-padding:0;display-height:fit-content;display-align-self:flex-start}.simple-box .top H2{margin-bottom:0}.simple-box .content{padding:15px}",""]),t["default"]=s},30480:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),o=n(40935),a=n.n(o),s=a()(i());s.push([e.id,".table-options-group .table-options-btn.role-multi-action[data-v-0e05d9a6]{background-color:transparent;border:none;font-size:18px}.table-options-group .table-options-btn.role-multi-action[data-v-0e05d9a6]:focus,.table-options-group .table-options-btn.role-multi-action[data-v-0e05d9a6]:hover{background-color:var(--accent-btn);box-shadow:none}.table-options-group .table-options-container[data-v-0e05d9a6]{width:350px;border:1px solid var(--primary);background-color:var(--body-bg);padding:20px;z-index:1}.table-options-group .table-options-container .table-options-grouping[data-v-0e05d9a6]{display:flex;align-items:center;margin-bottom:20px}.table-options-group .table-options-container .table-options-grouping span[data-v-0e05d9a6]{white-space:nowrap;margin-right:10px}.table-options-group .table-options-container ul[data-v-0e05d9a6]{list-style:none;margin:0;padding:0;max-height:200px;overflow-y:auto}.table-options-group .table-options-container ul li[data-v-0e05d9a6]{margin:0;padding:0}.table-options-group .table-options-container ul li.visible[data-v-0e05d9a6]{margin:0 0 10px 0}.sortable>SPAN[data-v-0e05d9a6]{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap}.sortable>SPAN[data-v-0e05d9a6]:active,.sortable>SPAN[data-v-0e05d9a6]:hover{text-decoration:underline;color:var(--body-text)}.top-aligned th[data-v-0e05d9a6]{vertical-align:top;padding-top:10px}thead tr[data-v-0e05d9a6]{background-color:var(--sortable-table-header-bg);color:var(--body-text);text-align:left}thead tr[data-v-0e05d9a6]:not(.loading){border-bottom:1px solid var(--sortable-table-top-divider)}th[data-v-0e05d9a6]{padding:8px 5px;font-weight:400;border:0;color:var(--body-text)}th .table-header-container[data-v-0e05d9a6]{display:inline-flex}th .table-header-container .content[data-v-0e05d9a6]{display:flex;flex-direction:column}th .table-header-container.not-filterable[data-v-0e05d9a6],th .table-header-container.not-filterable .icon-stack[data-v-0e05d9a6]{margin-top:-2px}th .table-header-container .not-filter-icon[data-v-0e05d9a6]{font-size:16px;color:var(--primary);vertical-align:super}th[data-v-0e05d9a6]:first-child{padding-left:10px}th[data-v-0e05d9a6]:last-child{padding-right:10px}th:not(.sortable)>SPAN[data-v-0e05d9a6]{display:block;margin-bottom:2px}th A[data-v-0e05d9a6]{color:var(--body-text)}@media only screen and (max-width:480px){th.desktop[data-v-0e05d9a6],th.laptop[data-v-0e05d9a6],th.tablet[data-v-0e05d9a6]{display:none}}@media only screen and (max-width:992px){th.desktop[data-v-0e05d9a6],th.laptop[data-v-0e05d9a6]{display:none}}@media only screen and (max-width:1281px){th.desktop[data-v-0e05d9a6]{display:none}}.icon-stack[data-v-0e05d9a6]{width:12px}.icon-sort.faded[data-v-0e05d9a6]{opacity:.3}",""]),t["default"]=s},986:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),o=n(40935),a=n.n(o),s=a()(i());s.push([e.id,".table-options-checkbox .checkbox-custom{min-width:14px}.table-options-checkbox .checkbox-label{color:var(--body-text)}",""]),t["default"]=s},13165:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),o=n(40935),a=n.n(o),s=a()(i());s.push([e.id,".sortable-table.alt-loading[data-v-0132c03a]{opacity:.5;pointer-events:none}.manual-refresh[data-v-0132c03a]{height:40px}.advanced-filter-group[data-v-0132c03a]{position:relative;margin-left:10px}.advanced-filter-group .advanced-filter-container[data-v-0132c03a]{position:absolute;top:38px;right:0;width:300px;border:1px solid var(--primary);background-color:var(--body-bg);padding:20px;z-index:2}.advanced-filter-group .advanced-filter-container .middle-block[data-v-0132c03a]{display:flex;align-items:center;margin-top:20px}.advanced-filter-group .advanced-filter-container .middle-block span[data-v-0132c03a]{margin-right:20px}.advanced-filter-group .advanced-filter-container .middle-block button[data-v-0132c03a]{margin-left:20px}.advanced-filter-group .advanced-filter-container .bottom-block[data-v-0132c03a]{display:flex;align-items:center;margin-top:40px;justify-content:space-between}.advanced-filters-applied[data-v-0132c03a]{display:inline-flex;margin:0;padding:0;list-style:none;max-width:100%;flex-wrap:wrap;justify-content:flex-end}.advanced-filters-applied li[data-v-0132c03a]{margin:0 20px 10px 0;padding:2px 5px;border:1px solid;display:flex;align-items:center;position:relative;height:20px}.advanced-filters-applied li[data-v-0132c03a]:nth-child(4n+1){border-color:var(--success)}.advanced-filters-applied li:nth-child(4n+1) .bg[data-v-0132c03a]{background-color:var(--success)}.advanced-filters-applied li[data-v-0132c03a]:nth-child(4n+2){border-color:var(--warning)}.advanced-filters-applied li:nth-child(4n+2) .bg[data-v-0132c03a]{background-color:var(--warning)}.advanced-filters-applied li[data-v-0132c03a]:nth-child(4n+3){border-color:var(--info)}.advanced-filters-applied li:nth-child(4n+3) .bg[data-v-0132c03a]{background-color:var(--info)}.advanced-filters-applied li[data-v-0132c03a]:nth-child(4n+4){border-color:var(--error)}.advanced-filters-applied li:nth-child(4n+4) .bg[data-v-0132c03a]{background-color:var(--error)}.advanced-filters-applied li .bg[data-v-0132c03a]{position:absolute;top:0;left:0;width:100%;height:100%;opacity:.2;z-index:-1}.advanced-filters-applied li .label[data-v-0132c03a]{margin-right:10px;font-size:11px}.advanced-filters-applied li .cross[data-v-0132c03a]{font-size:12px;font-weight:700;cursor:pointer}@media only screen and (max-width:480px){td.desktop[data-v-0132c03a],td.laptop[data-v-0132c03a],td.tablet[data-v-0132c03a]{display:none}}@media only screen and (max-width:992px){td.desktop[data-v-0132c03a],td.laptop[data-v-0132c03a]{display:none}}@media only screen and (max-width:1281px){td.desktop[data-v-0132c03a]{display:none}}tr td div.data-loading[data-v-0132c03a]{align-items:center;display:flex;justify-content:center;padding:20px 0}tr td div.data-loading>i[data-v-0132c03a]{font-size:20px;height:20px;margin-right:5px;width:20px}.search-box[data-v-0132c03a]{height:40px;margin-left:10px;min-width:180px}",""]),t["default"]=s},96539:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),o=n(40935),a=n.n(o),s=a()(i());s.push([e.id,'.filter-select .vs__selected-options .vs__selected{text-align:left}.sortable-table{border-collapse:collapse;min-width:400px;border-radius:5px 5px 0 0;outline:1px solid var(--border);overflow:hidden;background:var(--sortable-table-bg);border-radius:4px}.sortable-table.overflow-x{overflow-x:visible}.sortable-table.overflow-y{overflow-y:visible}.sortable-table td{padding:8px 5px;border:0}.sortable-table td:first-child{padding-left:10px}.sortable-table td:last-child{padding-right:10px}.sortable-table td.row-check{padding-top:12px}.sortable-table tbody tr{border-bottom:1px solid var(--sortable-table-top-divider);background-color:var(--sortable-table-row-bg)}.sortable-table tbody tr.main-row.has-sub-row{border-bottom:0}.sortable-table tbody tr.main-row:not(.row-selected):hover+.sub-row{background-color:var(--sortable-table-hover-bg)}.sortable-table tbody tr:last-of-type{border-bottom:0}.sortable-table tbody tr.sub-row-hovered,.sortable-table tbody tr:hover{background-color:var(--sortable-table-hover-bg)}.sortable-table tbody tr.state-description>td{font-size:13px;padding-top:0;overflow-wrap:anywhere}.sortable-table tbody tr.active-row{color:var(--sortable-table-header-bg)}.sortable-table tbody tr.row-selected{background:var(--sortable-table-selected-bg)}.sortable-table tbody .no-rows td{padding:30px 0;text-align:center}.sortable-table tbody .no-results:hover,.sortable-table tbody .no-rows:hover{background-color:var(--body-bg)}.sortable-table tbody.group:before{content:"";display:block;height:20px;background-color:transparent}.sortable-table tbody tr.group-row{background-color:initial}.sortable-table tbody tr.group-row:first-child{border-bottom:2px solid var(--sortable-table-row-bg)}.sortable-table tbody tr.group-row:not(:first-child){margin-top:20px}.sortable-table tbody tr.group-row td{padding:0}.sortable-table tbody tr.group-row td:first-of-type{border-left:1px solid var(--sortable-table-accent-bg)}.sortable-table tbody tr.group-row .group-tab{height:40px;line-height:40px;padding:0 10px;border-radius:4px 4px 0 0;background-color:var(--sortable-table-row-bg);position:relative;top:1px;display:inline-block;z-index:10;min-width:72px}.sortable-table tbody tr.group-row .group-tab:after,.sortable-table tbody tr.group-row .group-tab:before{content:" ";display:table}.sortable-table tbody tr.group-row .group-tab:after{clear:both}.sortable-table tbody tr.group-row .group-tab>SPAN{color:var(--sortable-table-group-label)}.sortable-table tbody tr.group-row .group-tab:after{height:40px;width:70px;border-radius:5px 5px 0 0;background-color:var(--sortable-table-row-bg);content:"";position:absolute;right:-15px;top:0;transform:skewX(40deg);z-index:-1}.for-inputs TABLE.sortable-table{width:100%;border-collapse:collapse;margin-bottom:10px}.for-inputs TABLE.sortable-table>TBODY>TR>TD,.for-inputs TABLE.sortable-table>THEAD>TR>TH{padding-right:10px;padding-bottom:10px}.for-inputs TABLE.sortable-table>TBODY>TR>TD:last-of-type,.for-inputs TABLE.sortable-table>THEAD>TR>TH:last-of-type{padding-right:0}.for-inputs TABLE.sortable-table>TBODY>TR:first-of-type>TD{padding-top:10px}.for-inputs TABLE.sortable-table>TBODY>TR:last-of-type>TD{padding-bottom:0}.for-inputs.clone TABLE.sortable-table>THEAD>TR>TH,.for-inputs.create TABLE.sortable-table>THEAD>TR>TH,.for-inputs.edit TABLE.sortable-table>THEAD>TR>TH{border-color:transparent}.sortable-table-header{position:relative;z-index:11}.sortable-table-header.titled{display:flex;align-items:center}.fixed-header-actions.button{grid-template-columns:[bulk] auto [middle] min-content [search] minmax(min-content,350px)}.fixed-header-actions{padding:0 0 20px 0;width:100%;z-index:11;background:transparent;display:grid;grid-template-columns:[bulk] auto [middle] min-content [search] minmax(min-content,200px);grid-column-gap:10px}.fixed-header-actions.advanced-filtering{grid-template-columns:[bulk] auto [middle] minmax(min-content,auto) [search] minmax(min-content,auto)}.fixed-header-actions .bulk{grid-area:bulk}.fixed-header-actions .bulk>BUTTON{display:none}.fixed-header-actions .bulk>BUTTON:not(:last-of-type){margin-right:10px}.fixed-header-actions .bulk .action-availability{display:none;margin-left:10px;vertical-align:middle;margin-top:2px}.fixed-header-actions .bulk .dropdown-button li.disabled{color:var(--disabled-text);cursor:not-allowed}.fixed-header-actions .bulk .dropdown-button li.disabled:hover{color:var(--disabled-text);background-color:unset;cursor:not-allowed}.fixed-header-actions .bulk .bulk-action .icon{vertical-align:-10%}.fixed-header-actions .middle{grid-area:middle;white-space:nowrap}.fixed-header-actions .middle .icon.icon-backup.animate{animation-name:spin;animation-duration:1s;animation-iteration-count:infinite;animation-timing-function:linear}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.fixed-header-actions .search{grid-area:search;text-align:right;justify-content:flex-end}.fixed-header-actions .bulk-actions-dropdown{display:none}.fixed-header-actions .bulk-actions-dropdown .dropdown-button{background-color:var(--primary)}.fixed-header-actions .bulk-actions-dropdown .dropdown-button:hover{background-color:var(--primary-hover-bg);color:var(--primary-hover-text)}.fixed-header-actions .bulk-actions-dropdown .dropdown-button .icon-chevron-down,.fixed-header-actions .bulk-actions-dropdown .dropdown-button>*{color:var(--primary-text)}.fixed-header-actions .bulk-actions-dropdown .dropdown-button .button-divider{border-color:var(--primary-text)}.fixed-header-actions .bulk-actions-dropdown .dropdown-button.disabled{border-color:var(--disabled-bg)}.fixed-header-actions .bulk-actions-dropdown .dropdown-button.disabled .icon-chevron-down{color:var(--disabled-text)!important}.fixed-header-actions .bulk-actions-dropdown .dropdown-button.disabled .button-divider{border-color:var(--disabled-text)}.paging{margin-top:10px;text-align:center}.paging SPAN{display:inline-block;min-width:200px}',""]),t["default"]=s},91266:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),o=n(40935),a=n.n(o),s=a()(i());s.push([e.id,".tab-header[data-v-d7f9a228]{display:flex;justify-content:space-between;margin-bottom:15px;align-items:center}.tab-header h2[data-v-d7f9a228]{margin:0}",""]),t["default"]=s},24464:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),o=n(40935),a=n.n(o),s=a()(i());s.push([e.id,".tabs[data-v-eb58b8f8]{list-style-type:none;margin:0;padding:0}.tabs.horizontal[data-v-eb58b8f8]{border:solid thin var(--border);border-bottom:0;display:flex;flex-direction:row}.tabs.horizontal+.tab-container[data-v-eb58b8f8]{border:solid thin var(--border)}.tabs.horizontal .tab.active[data-v-eb58b8f8]{border-bottom:solid 2px var(--primary)}.tabs[data-v-eb58b8f8]:focus{outline:none}.tabs:focus .tab.active a span[data-v-eb58b8f8]{text-decoration:underline}.tabs .tab[data-v-eb58b8f8]{position:relative;float:left;padding:0 8px 0 0;cursor:pointer}.tabs .tab A[data-v-eb58b8f8]{display:flex;align-items:center;padding:10px 15px}.tabs .tab A[data-v-eb58b8f8]:hover{text-decoration:none}.tabs .tab A:hover span[data-v-eb58b8f8]{text-decoration:underline}.tabs .tab .conditions-alert-icon[data-v-eb58b8f8]{color:var(--error);padding-left:4px}.tabs .tab[data-v-eb58b8f8]:last-child{padding-right:0}.tabs .tab.active>A[data-v-eb58b8f8]{color:var(--primary);text-decoration:none}.tabs .tab.error A>i[data-v-eb58b8f8]{color:var(--error)}.tabs .tab .tab-badge[data-v-eb58b8f8]{margin-left:5px;background-color:var(--link);color:#fff;border-radius:6px;padding:1px 7px;font-size:11px}.tab-container[data-v-eb58b8f8]{padding:20px}.tab-container.no-content[data-v-eb58b8f8]{padding:0 0 3px 0}.tab-container--flat[data-v-eb58b8f8]{padding:0}.tab-container--flat .side-tabs[data-v-eb58b8f8]{box-shadow:unset}.tabs-only[data-v-eb58b8f8]{margin-bottom:20px}.tabs-only .tab-container[data-v-eb58b8f8]{display:none}.tabs-only .tabs[data-v-eb58b8f8]{border:0;border-bottom:2px solid var(--border)}.side-tabs[data-v-eb58b8f8]{display:flex;box-shadow:0 0 20px var(--shadow);border-radius:calc(var(--border-radius)*2);background-color:var(--tabbed-sidebar-bg)}.side-tabs .tab-container[data-v-eb58b8f8]{padding:20px}.side-tabs .tabs[data-v-eb58b8f8]{width:200px;min-width:200px;display:flex;flex:1 0;flex-direction:column}.side-tabs .tabs .tab[data-v-eb58b8f8]{width:100%;border-left:5px solid transparent}.side-tabs .tabs .tab A[data-v-eb58b8f8],.side-tabs .tabs .tab.toggle A[data-v-eb58b8f8]{color:var(--primary)}.side-tabs .tabs .tab.active[data-v-eb58b8f8]{background-color:var(--body-bg);border-left:solid 5px var(--primary)}.side-tabs .tabs .tab.active A[data-v-eb58b8f8]{color:var(--input-label)}.side-tabs .tabs .tab.disabled[data-v-eb58b8f8]{background-color:var(--disabled-bg)}.side-tabs .tabs .tab.disabled A[data-v-eb58b8f8]{color:var(--disabled-text);text-decoration:none}.side-tabs .tabs .tab-list-footer[data-v-eb58b8f8]{list-style:none;padding:0;margin-top:auto}.side-tabs .tabs .tab-list-footer li[data-v-eb58b8f8]{display:flex;flex:1}.side-tabs .tabs .tab-list-footer li .btn[data-v-eb58b8f8]{flex:1 1;display:flex;justify-content:center}.side-tabs .tabs .tab-list-footer li button[data-v-eb58b8f8]:first-of-type{border-top:solid 1px var(--border);border-right:solid 1px var(--border);border-top-right-radius:0}.side-tabs .tabs .tab-list-footer li button[data-v-eb58b8f8]:last-of-type{border-top:solid 1px var(--border);border-top-left-radius:0}.side-tabs .tab-container[data-v-eb58b8f8]{width:calc(100% - 200px);flex-grow:1;background-color:var(--body-bg)}",""]),t["default"]=s},67508:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),o=n(40935),a=n.n(o),s=a()(i());s.push([e.id,".tag[data-v-17971464]{border-radius:var(--border-radius);color:var(--tag-primary);background-color:var(--tag-bg);padding:4px 6px 3px 6px;font-size:12px}",""]),t["default"]=s},39578:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),o=n(40935),a=n.n(o),s=a()(i());s.push([e.id,".outer-container[data-v-5d682fe4]{display:flex;flex-direction:column;flex:1;padding:0;justify-content:flex-start}.header[data-v-5d682fe4]{display:flex;align-content:space-between;align-items:center;margin-bottom:20px;border-bottom:var(--header-border-size) solid var(--header-border)}.header .step-sequence[data-v-5d682fe4],.header>.title[data-v-5d682fe4]{flex:1;min-height:60px;display:flex}.header .step-sequence .steps[data-v-5d682fe4]{flex:1;margin:0 30px;display:flex;justify-content:space-between;list-style-type:none;padding:0}.header .step-sequence .steps[data-v-5d682fe4]:focus{outline:none;box-shadow:none}.header .step-sequence .steps li.step[data-v-5d682fe4]{display:flex;flex-direction:row;flex-grow:1;align-items:center}.header .step-sequence .steps li.step>span>span[data-v-5d682fe4]:last-of-type{padding-bottom:0}.header .step-sequence .steps li.step[data-v-5d682fe4]:last-of-type{flex-grow:0}.header .step-sequence .steps li.step .controls[data-v-5d682fe4]{display:flex;flex-direction:column;align-items:center;width:40px;overflow:visible;padding-top:7px}.header .step-sequence .steps li.step .controls>span[data-v-5d682fe4]{padding-bottom:3px;margin-bottom:5px;white-space:nowrap}.header .step-sequence .steps li.step.active .controls[data-v-5d682fe4]{color:var(--primary)}.header .step-sequence .steps li.step:not(.disabled) .controls:hover>*[data-v-5d682fe4]{color:var(--primary)!important;cursor:pointer}.header .step-sequence .steps li.step:not(.active) .controls>*[data-v-5d682fe4]{color:var(--input-disabled-text);text-decoration:none}.header .step-sequence .steps .divider[data-v-5d682fe4]{flex-basis:100%;border-top:1px solid var(--border);position:relative;top:17px}.cru__content .header .step-sequence .steps .divider[data-v-5d682fe4]{top:13px}.header .choice-banner[data-v-5d682fe4]{flex-basis:40%;display:flex;align-items:center;margin-bottom:10px}.header .choice-banner.selected[data-v-5d682fe4]{background-color:var(--accent-btn)}.header .choice-banner.top H2[data-v-5d682fe4]{margin:0}.header .choice-banner.top .title[data-v-5d682fe4]{display:flex;align-items:center;justify-content:space-evenly;position:relative}.header .choice-banner.top .title>.subtitle[data-v-5d682fe4]{margin-right:20px}.header .choice-banner.top .subtitle[data-v-5d682fe4]{display:flex;flex-direction:column}.header .choice-banner.top .subtitle .subtext[data-v-5d682fe4]{color:var(--input-label)}.header .choice-banner[data-v-5d682fe4]:not(.top){box-shadow:0 0 12px 3px var(--box-bg);flex-direction:row;align-items:center;justify-content:start}.header .choice-banner[data-v-5d682fe4]:not(.top):hover{outline:var(--outline-width) solid var(--outline);cursor:pointer}.header .choice-banner .round-image[data-v-5d682fe4]{min-width:50px;height:50px;margin:10px 10px 10px 0;border-radius:50%;overflow:hidden}.header .choice-banner .round-image .logo[data-v-5d682fe4]{min-width:50px;height:50px}.step-container[data-v-5d682fe4]{position:relative;flex:1 1 auto;height:0;overflow-y:auto;padding:20px 2px 2px 2px;display:flex;flex-direction:column}.step-container__step[data-v-5d682fe4]{overflow:hidden;display:flex;flex-direction:column;flex:1}.footer-error[data-v-5d682fe4]{margin-top:-40px;margin-bottom:70px}.controls-row[data-v-5d682fe4]{margin-left:-20px;margin-right:-20px;padding:10px 20px;display:flex;justify-content:space-between;padding-top:10px;border-top:var(--header-border-size) solid var(--header-border);position:absolute;bottom:0;width:100%;background:var(--body-bg)}.controls-row .controls-steps .btn[data-v-5d682fe4]{margin-left:10px}",""]),t["default"]=s},15976:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),o=n(40935),a=n.n(o),s=a()(i());s.push([e.id,".yaml-editor{display:flex;flex-direction:column}.yaml-editor .fill{flex:1}.yaml-editor .codemirror-container{position:relative}.yaml-editor .codemirror-container .CodeMirror,.yaml-editor .codemirror-container .CodeMirror .CodeMirror-gutters{background-color:var(--yaml-editor-bg)}.yaml-editor .diff-mode{background-color:var(--diff-header-bg);padding:5px 5px;border-bottom-right-radius:0;border-bottom-left-radius:0}.yaml-editor .d2h-file-wrapper{border-top-right-radius:0}",""]),t["default"]=s},12231:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),o=n(40935),a=n.n(o),s=a()(i());s.push([e.id,'.chart-container{position:relative;border:1px solid var(--border);min-height:100px}.chart-container,.chart-container .loading-container{display:flex;background-color:var(--body-bg);border-radius:var(--border-radius)}.chart-container .loading-container{content:"";position:absolute;top:0;left:0;width:100%;height:100%;z-index:2;align-items:center;justify-content:center;flex-direction:column}.chart-container .loading-container i{font-size:24px}.chart-container #tree{width:70%;height:-moz-fit-content;height:fit-content}.chart-container #tree svg{margin-top:3px}.chart-container #tree .link{stroke:var(--darker)}.chart-container #tree .node{cursor:pointer}.chart-container #tree .node.active .node-hover-layer{display:block}.chart-container #tree .node.repo.active>circle{transform:scale(1.2)}.chart-container #tree .node.bundle.active>circle{transform:scale(1.35)}.chart-container #tree .node.bundle-deployment.active>circle{transform:scale(1.6)}.chart-container #tree .node.node-default-fill>circle,.chart-container #tree .node.repo>circle{fill:var(--muted)}.chart-container #tree .node:not(.repo).node-success>circle{fill:var(--success)}.chart-container #tree .node:not(.repo).node-info>circle{fill:var(--info)}.chart-container #tree .node:not(.repo).node-warning>circle{fill:var(--warning)}.chart-container #tree .node:not(.repo).node-error>circle{fill:var(--error)}.chart-container #tree .node .node-hover-layer{stroke:var(--body-bg);stroke-width:2;display:none}.chart-container .more-info-container{width:30%;position:relative;border-left:1px solid var(--border);background-color:var(--body-bg);overflow:hidden}.chart-container .more-info-container,.chart-container .more-info-container .more-info{border-top-right-radius:var(--border-radius);border-bottom-right-radius:var(--border-radius)}.chart-container .more-info-container .more-info{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;padding:20px;overflow-y:auto}.chart-container .more-info-container .more-info table td{vertical-align:top;padding-bottom:10px}.chart-container .more-info-container .more-info table td.align-middle{vertical-align:middle}.chart-container .more-info-container .more-info table .more-info-item-label{color:var(--darker);margin-right:8px}.chart-container .more-info-container .more-info table .single-error{color:var(--error)}.chart-container .more-info-container .more-info table p{line-height:1.5em}',""]),t["default"]=s},44782:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),o=n(40935),a=n.n(o),s=a()(i());s.push([e.id,".box[data-v-606c047c],.title[data-v-606c047c]{margin-bottom:10px}.box[data-v-606c047c]{display:grid;grid-template-columns:auto 75px;align-items:center}.box .value[data-v-606c047c]{flex:1}.box .value INPUT[data-v-606c047c]{height:40px}.remove[data-v-606c047c]{text-align:right}.footer .protip[data-v-606c047c]{float:right;padding:5px 0}.required[data-v-606c047c]{color:var(--error)}",""]),t["default"]=s},9501:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),o=n(40935),a=n.n(o),s=a()(i());s.push([e.id,".array-list-grouped>.box{position:relative;display:block}.array-list-grouped>.box>.remove{position:absolute;top:0;right:0}.array-list-grouped>.box>.info-box{margin-bottom:0;padding-right:25px}",""]),t["default"]=s},16262:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),o=n(40935),a=n.n(o),s=a()(i());s.push([e.id,".color-input[data-v-6e5011f1]{border:1px solid var(--border);border-radius:var(--border-radius);padding:10px}.color-input.disabled[data-v-6e5011f1],.color-input.disabled .selected[data-v-6e5011f1],.color-input[disabled][data-v-6e5011f1],.color-input[disabled][data-v-6e5011f1]:hover{color:var(--input-disabled-text);background-color:var(--input-disabled-bg);outline-width:0;border-color:var(--input-disabled-border);cursor:not-allowed}.color-input.disabled .selected div[data-v-6e5011f1],.color-input.disabled .selected input[data-v-6e5011f1],.color-input.disabled .selected label[data-v-6e5011f1],.color-input.disabled .selected span[data-v-6e5011f1],.color-input.disabled div[data-v-6e5011f1],.color-input.disabled input[data-v-6e5011f1],.color-input.disabled label[data-v-6e5011f1],.color-input.disabled span[data-v-6e5011f1],.color-input[disabled] div[data-v-6e5011f1],.color-input[disabled] input[data-v-6e5011f1],.color-input[disabled] label[data-v-6e5011f1],.color-input[disabled] span[data-v-6e5011f1],.color-input[disabled]:hover div[data-v-6e5011f1],.color-input[disabled]:hover input[data-v-6e5011f1],.color-input[disabled]:hover label[data-v-6e5011f1],.color-input[disabled]:hover span[data-v-6e5011f1]{cursor:not-allowed!important}.color-input.disabled .selected label[data-v-6e5011f1],.color-input.disabled label[data-v-6e5011f1],.color-input[disabled] label[data-v-6e5011f1],.color-input[disabled]:hover label[data-v-6e5011f1]{color:var(--input-disabled-label);display:inline-block;z-index:1}.color-input.disabled .selected[data-v-6e5011f1]::-moz-placeholder,.color-input.disabled[data-v-6e5011f1]::-moz-placeholder,.color-input[disabled][data-v-6e5011f1]::-moz-placeholder,.color-input[disabled][data-v-6e5011f1]:hover::-moz-placeholder{color:var(--input-disabled-placeholder)}.color-input.disabled .selected[data-v-6e5011f1]::placeholder,.color-input.disabled[data-v-6e5011f1]::placeholder,.color-input[disabled][data-v-6e5011f1]::placeholder,.color-input[disabled][data-v-6e5011f1]:hover::placeholder{color:var(--input-disabled-placeholder)}.color-input LABEL[data-v-6e5011f1]{display:block}.color-input .preview-container[data-v-6e5011f1]:hover{cursor:pointer}.color-input .preview-container .color-value[data-v-6e5011f1]{margin-left:4px}.color-input .color-display[data-v-6e5011f1]{border:1px solid var(--border)}.color-input .color-display[data-v-6e5011f1]:focus{outline:none;box-shadow:0 0 0 var(--outline-width) var(--outline);background:var(--input-focus-bg)}.color-input INPUT[data-v-6e5011f1]{border:none;padding:0;width:23px;height:23px;-webkit-appearance:none;opacity:0}.color-input INPUT[data-v-6e5011f1]:hover{cursor:pointer}",""]),t["default"]=s},71012:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),o=n(40935),a=n.n(o),s=a()(i());s.push([e.id,'.buttons{display:grid;grid-template-areas:"left right";grid-template-columns:"min-content auto"}.buttons .left{grid-area:left;text-align:left}.buttons .left .btn,.buttons .left button{margin:0 1.75% 0 0}.buttons .right{grid-area:right;text-align:right}.buttons .right .btn,.buttons .right button{margin:0 0 0 1.75%}',""]),t["default"]=s},5661:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),o=n(40935),a=n.n(o),s=a()(i());s.push([e.id,".input-container[data-v-58e68b54]{display:flex}.input-container.select-after[data-v-58e68b54]{height:100%;flex-direction:row-reverse}.input-container.select-after .input-string[data-v-58e68b54]{border-radius:var(--border-radius) 0 0 var(--border-radius);border-right:0;border-left-width:1px}.input-container.select-after .in-input[data-v-58e68b54]{border-radius:0 var(--border-radius) var(--border-radius) 0}.input-container.select-after .in-input.labeled-select .selected[data-v-58e68b54]{color:var(--input-text);text-align:center;margin-right:1em}.input-container.select-after .in-input.focused[data-v-58e68b54]:not(.vs__dropdown-up){border-bottom-right-radius:0}.input-container.select-after .in-input.focused.vs__dropdown-up[data-v-58e68b54]{border-top-right-radius:0}.input-container.select-after .input-string.focused[data-v-58e68b54],.input-container.select-after .input-string[data-v-58e68b54]:focus,.input-container.select-after .input-string[data-v-58e68b54]:hover:not(.focused):not(.disabled):not(:focus){padding-left:10px!important}.input-container .input-string[data-v-58e68b54]{padding-right:0;width:60%;flex-grow:1;border-radius:0 var(--border-radius) var(--border-radius) 0;border-left-width:0;margin-left:-1px;position:relative;display:table;border-collapse:separate}.input-container .input-string[data-v-58e68b54]:hover:not(.focused):not(.disabled):not(:focus):not(.view){border-left:1px solid var(--input-hover-border);border-right:1px solid var(--input-hover-border);padding-left:9px}.input-container .input-string.focused[data-v-58e68b54],.input-container .input-string[data-v-58e68b54]:focus{border-left:1px solid var(--outline)!important;border-right:1px solid var(--outline)!important;padding-left:9px}.input-container .in-input[data-v-58e68b54]{margin-right:0}.input-container .in-input[data-v-58e68b54]:hover:not(.focused):not(.disabled),.input-container .in-input[data-v-58e68b54]:hover:not(.focused):not(.disabled):not(.view){border:1px solid var(--input-hover-border)!important}.input-container .in-input.focused[data-v-58e68b54]{border:1px solid var(--outline)!important}.input-container .in-input.labeled-select.focused[data-v-58e68b54] ,.input-container .in-input.unlabeled-select.focused[data-v-58e68b54] {outline:none}.input-container .in-input.labeled-select[data-v-58e68b54]:not(.disabled):not(.view) ,.input-container .in-input.unlabeled-select[data-v-58e68b54]:not(.disabled):not(.view) {border:solid 1px var(--input-border)}.input-container .in-input.labeled-select[data-v-58e68b54] ,.input-container .in-input.unlabeled-select[data-v-58e68b54] {box-shadow:none;width:20%;margin-right:1px}.input-container .in-input.labeled-select[data-v-58e68b54] .vs__selected,.input-container .in-input.unlabeled-select[data-v-58e68b54] .vs__selected{color:var(--input-text)}.input-container .in-input.labeled-select[data-v-58e68b54] .vs__dropdown-menu,.input-container .in-input.unlabeled-select[data-v-58e68b54] .vs__dropdown-menu{box-shadow:none}.input-container .in-input.labeled-select[data-v-58e68b54] .vs__dropdown-menu .vs__dropdown-option,.input-container .in-input.unlabeled-select[data-v-58e68b54] .vs__dropdown-menu .vs__dropdown-option{padding:3px 5px}.input-container .in-input.labeled-select[data-v-58e68b54] .v-select:not(.vs--disabled) .vs__dropdown-toggle,.input-container .in-input.unlabeled-select[data-v-58e68b54] .v-select:not(.vs--disabled) .vs__dropdown-toggle{border-radius:var(--border-radius) 0 0 var(--border-radius)}.input-container .in-input.labeled-select[data-v-58e68b54] .v-select:not(.vs--disabled).vs--open .vs__dropdown-toggle,.input-container .in-input.unlabeled-select[data-v-58e68b54] .v-select:not(.vs--disabled).vs--open .vs__dropdown-toggle{color:var(--outline)!important}",""]),t["default"]=s},45338:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),o=n(40935),a=n.n(o),s=a()(i());s.push([e.id,".labeled-select[data-v-c53d72e2]{position:relative;padding-bottom:1px}.labeled-select.no-label.compact-input[data-v-c53d72e2] .vs__actions:after{top:-2px}.labeled-select.no-label.compact-input .labeled-container[data-v-c53d72e2]{padding:5px 0 1px 10px}.labeled-select.no-label[data-v-c53d72e2]:not(.compact-input){height:61px;padding-top:4px}.labeled-select.no-label[data-v-c53d72e2]:not(.compact-input) .vs__actions:after{top:0}.labeled-select .icon-spinner[data-v-c53d72e2]{position:absolute;left:calc(50% - .5em);top:calc(50% - .5em)}.labeled-select .labeled-container[data-v-c53d72e2]{padding:7px 0 0 10px;padding:10px 0 0 10px}.labeled-select .labeled-container label[data-v-c53d72e2]{margin:0}.labeled-select .labeled-container .selected[data-v-c53d72e2]{background-color:transparent}.labeled-select.view.labeled-input .labeled-container[data-v-c53d72e2]{padding:0}.labeled-select.taggable.compact-input[data-v-c53d72e2]{min-height:40px}.labeled-select.taggable.compact-input[data-v-c53d72e2] .vs__selected-options{padding-top:8px!important}.labeled-select.taggable[data-v-c53d72e2]:not(.compact-input){min-height:61px}.labeled-select.taggable[data-v-c53d72e2]:not(.compact-input) .vs__selected-options{margin-top:0}.labeled-select[data-v-c53d72e2]:not(.taggable) .vs__selected-options .vs__selected{width:100%}.labeled-select.taggable[data-v-c53d72e2] .vs__selected-options{padding:3px 0}.labeled-select.taggable[data-v-c53d72e2] .vs__selected-options .vs__selected{border-color:var(--accent-btn);height:20px;min-height:unset!important;padding:0 0 0 7px!important}.labeled-select.taggable[data-v-c53d72e2] .vs__selected-options .vs__selected>button{height:20px;line-height:14px}.labeled-select.taggable[data-v-c53d72e2] .vs__selected-options .vs__selected>button:hover{background-color:var(--primary);border-radius:0}.labeled-select.taggable[data-v-c53d72e2] .vs__selected-options .vs__selected>button:hover:after{color:#fff}.labeled-select[data-v-c53d72e2] .vs__selected-options{margin-top:-5px}.labeled-select[data-v-c53d72e2] .v-select:not(.vs--single) .vs__selected-options{padding:5px 0}.labeled-select[data-v-c53d72e2] .vs__actions:after{position:relative;top:-10px}.labeled-select[data-v-c53d72e2] .v-select.vs--open .vs__dropdown-toggle{color:var(--outline)!important}[data-v-c53d72e2] .labeled-select.disabled .labeled-container,[data-v-c53d72e2] .labeled-select.disabled .vs__dropdown-toggle,[data-v-c53d72e2] .labeled-select.disabled input,[data-v-c53d72e2] .labeled-select.disabled label{cursor:not-allowed}.labeled-select .no-label[data-v-c53d72e2] .v-select:not(.vs--single){min-height:33px}.labeled-select .no-label[data-v-c53d72e2] .selected{padding-top:8px;padding-bottom:9px;position:relative;max-height:2.3em;overflow:hidden}.labeled-select .no-label[data-v-c53d72e2] .vs__selected-options{padding:8px 0 7px 0}.vs__dropdown-menu .vs__dropdown-option .vs__option-kind-group[data-v-c53d72e2]{display:flex;align-items:center}.vs__dropdown-menu .vs__dropdown-option .vs__option-kind-group i[data-v-c53d72e2]{width:18px}.vs__dropdown-menu .vs__dropdown-option .vs__option-kind-group>b[data-v-c53d72e2]{flex:1}.vs__dropdown-menu .vs__dropdown-option .vs__option-kind-group>div[data-v-c53d72e2]{background-color:var(--primary);border-radius:4px;color:var(--primary-text);font-size:12px;height:18px;line-height:18px;margin-top:1px;padding:0 10px}.vs__dropdown-menu .vs__dropdown-option .vs__option-kind.has-icon[data-v-c53d72e2],.vs__dropdown-menu.has-icon .vs__option-kind div[data-v-c53d72e2]{padding-left:18px}.vs__dropdown-menu .pagination-slot[data-v-c53d72e2]{display:flex;align-items:center;justify-content:center;position:relative;margin-top:5px}.vs__dropdown-menu .pagination-slot .load-more[data-v-c53d72e2]{display:flex;align-items:center;height:19px}.vs__dropdown-menu .pagination-slot .load-more a[data-v-c53d72e2]{cursor:pointer}.vs__dropdown-menu .pagination-slot .count[data-v-c53d72e2]{position:absolute;right:10px}.vs__dropdown-menu .no-options-slot .paginating[data-v-c53d72e2]{display:flex;align-items:center;justify-content:center}.vs__dropdown-option>.option-kind-highlighted[data-v-c53d72e2]{color:var(--dropdown-highlight-text)}.vs__dropdown-option.vs__dropdown-option--highlight>.option-kind-highlighted[data-v-c53d72e2],.vs__dropdown-option.vs__dropdown-option--selected>.option-kind-highlighted[data-v-c53d72e2],.vs__dropdown-option>.option-kind-highlighted[data-v-c53d72e2]:hover{color:var(--dropdown-hover-text)}.vs__dropdown-menu .vs__dropdown-option .only-user-opts[data-v-c53d72e2]{color:var(--dropdown-text);background-color:var(--dropdown-bg);margin:0 -5px;padding:3px 20px}",""]),t["default"]=s},56385:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),o=n(40935),a=n.n(o),s=a()(i());s.push([e.id,".unlabeled-select[data-v-51b2fedb]{position:relative}.unlabeled-select[data-v-51b2fedb] .v-select.select-input-view .vs__actions{visibility:hidden}.unlabeled-select .vs--multiple[data-v-51b2fedb] .vs__selected-options .vs__selected{width:auto}.unlabeled-select[data-v-51b2fedb] .labeled-tooltip.error .status-icon{top:7px;right:2px}.unlabeled-select[data-v-51b2fedb] .vs__selected-options{display:flex;margin:3px}.unlabeled-select[data-v-51b2fedb] .vs__selected-options .vs__selected{width:auto}.unlabeled-select[data-v-51b2fedb] .v-select.vs--open .vs__dropdown-toggle{color:var(--outline)!important}.unlabeled-select.focused.success[data-v-51b2fedb],.unlabeled-select.success[data-v-51b2fedb]{border:solid 1px var(--success)}.unlabeled-select.focused.success .selected[data-v-51b2fedb],.unlabeled-select.focused.success .vs__actions[data-v-51b2fedb]:after,.unlabeled-select.focused.success input[data-v-51b2fedb],.unlabeled-select.success .selected[data-v-51b2fedb],.unlabeled-select.success .vs__actions[data-v-51b2fedb]:after,.unlabeled-select.success input[data-v-51b2fedb]{color:var(--success)}.unlabeled-select.focused.warning[data-v-51b2fedb],.unlabeled-select.warning[data-v-51b2fedb]{border:solid 1px var(--warning)}.unlabeled-select.focused.warning .selected[data-v-51b2fedb],.unlabeled-select.focused.warning .vs__actions[data-v-51b2fedb]:after,.unlabeled-select.focused.warning input[data-v-51b2fedb],.unlabeled-select.warning .selected[data-v-51b2fedb],.unlabeled-select.warning .vs__actions[data-v-51b2fedb]:after,.unlabeled-select.warning input[data-v-51b2fedb]{color:var(--warning)}.unlabeled-select.error[data-v-51b2fedb],.unlabeled-select.focused.error[data-v-51b2fedb]{border:solid 1px var(--error)}.unlabeled-select.error .vs__actions[data-v-51b2fedb]:after,.unlabeled-select.error>label[data-v-51b2fedb],.unlabeled-select.focused.error .vs__actions[data-v-51b2fedb]:after,.unlabeled-select.focused.error>label[data-v-51b2fedb]{color:var(--error)}.unlabeled-select.compact-input[data-v-51b2fedb]{min-height:40px;line-height:18px}",""]),t["default"]=s},82538:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),o=n(40935),a=n.n(o),s=a()(i());s.push([e.id,".secret-selector{width:100%}.secret-selector label{display:block}.secret-selector .labeled-select{min-height:61px}.secret-selector .vs__selected-options{padding:8px 0 7px 0}.secret-selector label{display:inline-block}.secret-selector.show-key-selector .input-container>*{display:inline-block;width:50%}.secret-selector.show-key-selector .input-container>.labeled-select.focused{z-index:10}.secret-selector.show-key-selector .input-container>:first-child{border-top-right-radius:0;border-bottom-right-radius:0;margin-right:0}.secret-selector.show-key-selector .input-container>:last-child{border-top-left-radius:0;border-bottom-left-radius:0;border-left:none;float:right}",""]),t["default"]=s},71582:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),o=n(40935),a=n.n(o),s=a()(i());s.push([e.id,"svg.text[data-v-31844031]{fill:red}",""]),t["default"]=s},47848:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),o=n(40935),a=n.n(o),s=a()(i());s.push([e.id,".favorite[data-v-dd43072c]{position:relative;cursor:pointer;font-size:20px;transform:ease-in-out-all 1s}.favorite.icon-star-open[data-v-dd43072c]{color:var(--muted)}.favorite.icon-star-closed[data-v-dd43072c]{color:var(--body-text)}",""]),t["default"]=s},18738:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),o=n(40935),a=n.n(o),s=a()(i());s.push([e.id,".receiver .box-container.create-resource-container{display:flex;justify-content:space-between;flex-wrap:wrap;margin:0 -10px}.receiver .box-container.create-resource-container .subtype-banner{justify-content:space-between;align-items:center;flex-direction:row}.receiver .right{padding:30px;border-left:1px solid var(--border)}.receiver .logo{text-align:center;width:60px;height:60px;border-radius:calc(var(--border-radius)*2);overflow:hidden;background-color:#fff;display:inline-block;vertical-align:middle}.receiver .logo img{width:56px;height:56px;-o-object-fit:contain;object-fit:contain;position:relative;top:2px}.receiver .name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:0;display:inline-block;vertical-align:middle}",""]),t["default"]=s},94558:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),o=n(40935),a=n.n(o),s=a()(i());s.push([e.id,".responders-heading[data-v-59c71095]{display:grid;grid-template-columns:auto 75px}.responder[data-v-59c71095],.responder .target-container[data-v-59c71095]{width:100%}.responder .target-container[data-v-59c71095] .unlabeled-select{min-width:35%;height:100%}.responder .target[data-v-59c71095]{height:100%}",""]),t["default"]=s},37665:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),o=n(40935),a=n.n(o),s=a()(i());s.push([e.id,".text.info[data-v-e4b192d4]{display:flex;align-items:center}.text.info>span[data-v-e4b192d4]{margin-right:5px}",""]),t["default"]=s},32393:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),o=n(40935),a=n.n(o),s=a()(i());s.push([e.id,".delete-warning[data-v-232e419e]{color:var(--error)}.remove-project-dialog[data-v-232e419e]{border:1px solid var(--border);padding:10px;border-radius:5px}.remove-project-dialog .display-name[data-v-232e419e]{font-weight:700}",""]),t["default"]=s},52879:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),o=n(40935),a=n.n(o),s=a()(i());s.push([e.id,".text.info[data-v-5b85b4f6]{display:flex;align-items:center}.text.info>span[data-v-5b85b4f6]{margin-right:5px}",""]),t["default"]=s},35947:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),o=n(40935),a=n.n(o),s=a()(i());s.push([e.id,".actions[data-v-9512dae2]{text-align:right}.machine-name[data-v-9512dae2]{font-weight:600}",""]),t["default"]=s},96599:function(e,t,n){"use strict";var r=n(36758),i=n.n(r),o=n(40935),a=n.n(o),s=a()(i());s.push([e.id,".xterm{cursor:text;position:relative;-moz-user-select:none;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;right:0;left:0;top:0;bottom:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm .xterm-scroll-area{visibility:hidden}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm.enable-mouse-events{cursor:default}.xterm .xterm-cursor-pointer,.xterm.xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility,.xterm .xterm-message{position:absolute;left:0;top:0;bottom:0;right:0;z-index:10;color:transparent;pointer-events:none}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:1!important}.xterm-underline-1{text-decoration:underline}.xterm-underline-2{-webkit-text-decoration:double underline;text-decoration:double underline}.xterm-underline-3{-webkit-text-decoration:wavy underline;text-decoration:wavy underline}.xterm-underline-4{-webkit-text-decoration:dotted underline;text-decoration:dotted underline}.xterm-underline-5{-webkit-text-decoration:dashed underline;text-decoration:dashed underline}.xterm-overline{text-decoration:overline}.xterm-overline.xterm-underline-1{text-decoration:overline underline}.xterm-overline.xterm-underline-2{-webkit-text-decoration:overline double underline;text-decoration:overline double underline}.xterm-overline.xterm-underline-3{-webkit-text-decoration:overline wavy underline;text-decoration:overline wavy underline}.xterm-overline.xterm-underline-4{-webkit-text-decoration:overline dotted underline;text-decoration:overline dotted underline}.xterm-overline.xterm-underline-5{-webkit-text-decoration:overline dashed underline;text-decoration:overline dashed underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer{z-index:7}.xterm-decoration-overview-ruler{z-index:8;position:absolute;top:0;right:0;pointer-events:none}.xterm-decoration-top{z-index:2;position:relative}",""]),t.A=s},40935:function(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r="undefined"!==typeof t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,i,o){"string"===typeof e&&(e=[[null,e,void 0]]);var a={};if(r)for(var s=0;s0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=o),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),t.push(u))}},t}},20062:function(e){"use strict";e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},36758:function(e){"use strict";e.exports=function(e){return e[1]}},33103:function(e,t,n){var r=n(94715),i=n(78942),o=r(i,"DataView");e.exports=o},25098:function(e,t,n){var r=n(23305),i=n(39361),o=n(11112),a=n(25276),s=n(57452);function l(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t0&&n(u)?t>1?o(u,t-1,n,a,s):r(s,u):a||(s[s.length]=u)}return s}e.exports=o},57923:function(e,t,n){var r=n(93526),i=n(66040);function o(e,t){t=r(t,e);var n=0,o=t.length;while(null!=e&&ni?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;var o=Array(i);while(++r=i?e:r(e,t,n)}e.exports=i},41950:function(e,t,n){var r=n(78942),i=r["__core-js_shared__"];e.exports=i},4326:function(e,t,n){var r=n(28931),i=n(83417),o=n(82237),a=n(95243);function s(e){return function(t){t=a(t);var n=i(t)?o(t):void 0,s=n?n[0]:t.charAt(0),l=n?r(n,1).join(""):t.slice(1);return s[e]()+l}}e.exports=s},93640:function(e,t,n){var r=n(44187),i=n(45881),o=n(39850),a="['’]",s=RegExp(a,"g");function l(e){return function(t){return r(o(i(t).replace(s,"")),e,"")}}e.exports=l},77317:function(e,t,n){var r=n(3334),i=n(36529),o=n(81211);function a(e){return function(t,n,a){var s=Object(t);if(!i(t)){var l=r(n,3);t=o(t),n=function(e){return l(s[e],e,s)}}var c=e(t,n,a);return c>-1?s[l?t[c]:c]:void 0}}e.exports=a},69968:function(e,t,n){var r=n(51035),i={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"},o=r(i);e.exports=o},72532:function(e,t,n){var r=n(94715),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();e.exports=i},33934:function(e,t,n){var r=n(23212),i=n(36465),o=n(65568),a=1,s=2;function l(e,t,n,l,c,u){var d=n&a,h=e.length,p=t.length;if(h!=p&&!(d&&p>h))return!1;var f=u.get(e),m=u.get(t);if(f&&m)return f==t&&m==e;var g=-1,v=!0,y=n&s?new r:void 0;u.set(e,t),u.set(t,e);while(++g-1&&e%1==0&&e-1}e.exports=i},13964:function(e,t,n){var r=n(97034);function i(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}e.exports=i},49753:function(e,t,n){var r=n(25098),i=n(1386),o=n(19770);function a(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}e.exports=a},5681:function(e,t,n){var r=n(44700);function i(e){var t=r(this,e)["delete"](e);return this.size-=t?1:0,t}e.exports=i},80088:function(e,t,n){var r=n(44700);function i(e){return r(this,e).get(e)}e.exports=i},54732:function(e,t,n){var r=n(44700);function i(e){return r(this,e).has(e)}e.exports=i},59068:function(e,t,n){var r=n(44700);function i(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}e.exports=i},95894:function(e){function t(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}e.exports=t},23904:function(e){function t(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}e.exports=t},76853:function(e,t,n){var r=n(69011),i=500;function o(e){var t=r(e,(function(e){return n.size===i&&n.clear(),e})),n=t.cache;return t}e.exports=o},94497:function(e,t,n){var r=n(94715),i=r(Object,"create");e.exports=i},98121:function(e,t,n){var r=n(3766),i=r(Object.keys,Object);e.exports=i},38546:function(e){function t(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}e.exports=t},2306:function(e,t,n){e=n.nmd(e);var r=n(74967),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i,s=a&&r.process,l=function(){try{var e=o&&o.require&&o.require("util").types;return e||s&&s.binding&&s.binding("util")}catch(t){}}();e.exports=l},29005:function(e){var t=Object.prototype,n=t.toString;function r(e){return n.call(e)}e.exports=r},3766:function(e){function t(e,t){return function(n){return e(t(n))}}e.exports=t},75234:function(e,t,n){var r=n(86912),i=Math.max;function o(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){var o=arguments,a=-1,s=i(o.length-t,0),l=Array(s);while(++a0){if(++i>=t)return arguments[0]}else i=0;return e.apply(void 0,arguments)}}e.exports=i},64103:function(e,t,n){var r=n(1386);function i(){this.__data__=new r,this.size=0}e.exports=i},21779:function(e){function t(e){var t=this.__data__,n=t["delete"](e);return this.size=t.size,n}e.exports=t},34162:function(e){function t(e){return this.__data__.get(e)}e.exports=t},7462:function(e){function t(e){return this.__data__.has(e)}e.exports=t},96638:function(e,t,n){var r=n(1386),i=n(19770),o=n(68250),a=200;function s(e,t){var n=this.__data__;if(n instanceof r){var s=n.__data__;if(!i||s.length=t||n<0||v&&r>=d}function S(){var e=i();if(E(e))return x(e);p=setTimeout(S,w(e))}function x(e){return p=void 0,y&&c?b(e):(c=u=void 0,h)}function k(){void 0!==p&&clearTimeout(p),m=0,c=f=u=p=void 0}function A(){return void 0===p?h:x(i())}function N(){var e=i(),n=E(e);if(c=arguments,u=this,f=e,n){if(void 0===p)return _(f);if(v)return clearTimeout(p),p=setTimeout(S,t),b(f)}return void 0===p&&(p=setTimeout(S,t)),h}return t=o(t)||0,r(n)&&(g=!!n.leading,v="maxWait"in n,d=v?s(o(n.maxWait)||0,t):d,y="trailing"in n?!!n.trailing:y),N.cancel=k,N.flush=A,N}e.exports=c},45881:function(e,t,n){var r=n(69968),i=n(95243),o=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a="\\u0300-\\u036f",s="\\ufe20-\\ufe2f",l="\\u20d0-\\u20ff",c=a+s+l,u="["+c+"]",d=RegExp(u,"g");function h(e){return e=i(e),e&&e.replace(o,r).replace(d,"")}e.exports=h},46285:function(e){function t(e,t){return e===t||e!==e&&t!==t}e.exports=t},24576:function(e,t,n){var r=n(77317),i=n(40458),o=r(i);e.exports=o},40458:function(e,t,n){var r=n(37250),i=n(3334),o=n(67642),a=Math.max,s=Math.min;function l(e,t,n){var l=null==e?0:e.length;if(!l)return-1;var c=l-1;return void 0!==n&&(c=o(n),c=n<0?a(l+c,0):s(c,l-1)),r(e,i(t,3),c,!0)}e.exports=l},75857:function(e,t,n){var r=n(90313);function i(e){var t=null==e?0:e.length;return t?r(e,1):[]}e.exports=i},46123:function(e,t,n){var r=n(57923);function i(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}e.exports=i},27276:function(e,t,n){var r=n(43636),i=n(85899);function o(e,t){return null!=e&&i(e,t,r)}e.exports=o},22053:function(e){function t(e){return e}e.exports=t},87526:function(e,t,n){var r=n(2478),i=n(36529),o=n(8138),a=n(67642),s=n(39817),l=Math.max;function c(e,t,n,c){e=i(e)?e:s(e),n=n&&!c?a(n):0;var u=e.length;return n<0&&(n=l(u+n,0)),o(e)?n<=u&&e.indexOf(t,n)>-1:!!u&&r(e,t,n)>-1}e.exports=c},3283:function(e,t,n){var r=n(56027),i=n(80547),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},53142:function(e){var t=Array.isArray;e.exports=t},36529:function(e,t,n){var r=n(93655),i=n(65387);function o(e){return null!=e&&i(e.length)&&!r(e)}e.exports=o},75853:function(e,t,n){e=n.nmd(e);var r=n(78942),i=n(34772),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,s=a&&a.exports===o,l=s?r.Buffer:void 0,c=l?l.isBuffer:void 0,u=c||i;e.exports=u},93655:function(e,t,n){var r=n(87379),i=n(41580),o="[object AsyncFunction]",a="[object Function]",s="[object GeneratorFunction]",l="[object Proxy]";function c(e){if(!i(e))return!1;var t=r(e);return t==a||t==s||t==o||t==l}e.exports=c},65387:function(e){var t=9007199254740991;function n(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=t}e.exports=n},41580:function(e){function t(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}e.exports=t},80547:function(e){function t(e){return null!=e&&"object"==typeof e}e.exports=t},8138:function(e,t,n){var r=n(87379),i=n(53142),o=n(80547),a="[object String]";function s(e){return"string"==typeof e||!i(e)&&o(e)&&r(e)==a}e.exports=s},51187:function(e,t,n){var r=n(87379),i=n(80547),o="[object Symbol]";function a(e){return"symbol"==typeof e||i(e)&&r(e)==o}e.exports=a},8666:function(e,t,n){var r=n(70674),i=n(49460),o=n(2306),a=o&&o.isTypedArray,s=a?i(a):r;e.exports=s},81211:function(e,t,n){var r=n(10358),i=n(195),o=n(36529);function a(e){return o(e)?r(e):i(e)}e.exports=a},25288:function(e,t,n){var r=n(10358),i=n(57200),o=n(36529);function a(e){return o(e)?r(e,!0):i(e)}e.exports=a},45250:function(e,t,n){var r; /** * @license * Lodash * Copyright OpenJS Foundation and other contributors * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors */e=n.nmd(e),function(){var i,o="4.17.21",a=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",c="Invalid `variable` option passed into `_.template`",u="__lodash_hash_undefined__",d=500,h="__lodash_placeholder__",p=1,f=2,m=4,g=1,v=2,y=1,b=2,_=4,w=8,E=16,S=32,x=64,k=128,A=256,N=512,T=30,C="...",R=800,O=16,I=1,D=2,L=3,P=1/0,M=9007199254740991,F=17976931348623157e292,B=NaN,$=4294967295,j=$-1,U=$>>>1,V=[["ary",k],["bind",y],["bindKey",b],["curry",w],["curryRight",E],["flip",N],["partial",S],["partialRight",x],["rearg",A]],K="[object Arguments]",H="[object Array]",G="[object AsyncFunction]",z="[object Boolean]",X="[object Date]",q="[object DOMException]",W="[object Error]",Y="[object Function]",Q="[object GeneratorFunction]",J="[object Map]",Z="[object Number]",ee="[object Null]",te="[object Object]",ne="[object Promise]",re="[object Proxy]",ie="[object RegExp]",oe="[object Set]",ae="[object String]",se="[object Symbol]",le="[object Undefined]",ce="[object WeakMap]",ue="[object WeakSet]",de="[object ArrayBuffer]",he="[object DataView]",pe="[object Float32Array]",fe="[object Float64Array]",me="[object Int8Array]",ge="[object Int16Array]",ve="[object Int32Array]",ye="[object Uint8Array]",be="[object Uint8ClampedArray]",_e="[object Uint16Array]",we="[object Uint32Array]",Ee=/\b__p \+= '';/g,Se=/\b(__p \+=) '' \+/g,xe=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ke=/&(?:amp|lt|gt|quot|#39);/g,Ae=/[&<>"']/g,Ne=RegExp(ke.source),Te=RegExp(Ae.source),Ce=/<%-([\s\S]+?)%>/g,Re=/<%([\s\S]+?)%>/g,Oe=/<%=([\s\S]+?)%>/g,Ie=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,De=/^\w*$/,Le=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Pe=/[\\^$.*+?()[\]{}|]/g,Me=RegExp(Pe.source),Fe=/^\s+/,Be=/\s/,$e=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,je=/\{\n\/\* \[wrapped with (.+)\] \*/,Ue=/,? & /,Ve=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ke=/[()=,{}\[\]\/\s]/,He=/\\(\\)?/g,Ge=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ze=/\w*$/,Xe=/^[-+]0x[0-9a-f]+$/i,qe=/^0b[01]+$/i,We=/^\[object .+?Constructor\]$/,Ye=/^0o[0-7]+$/i,Qe=/^(?:0|[1-9]\d*)$/,Je=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ze=/($^)/,et=/['\n\r\u2028\u2029\\]/g,tt="\\ud800-\\udfff",nt="\\u0300-\\u036f",rt="\\ufe20-\\ufe2f",it="\\u20d0-\\u20ff",ot=nt+rt+it,at="\\u2700-\\u27bf",st="a-z\\xdf-\\xf6\\xf8-\\xff",lt="\\xac\\xb1\\xd7\\xf7",ct="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ut="\\u2000-\\u206f",dt=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ht="A-Z\\xc0-\\xd6\\xd8-\\xde",pt="\\ufe0e\\ufe0f",ft=lt+ct+ut+dt,mt="['’]",gt="["+tt+"]",vt="["+ft+"]",yt="["+ot+"]",bt="\\d+",_t="["+at+"]",wt="["+st+"]",Et="[^"+tt+ft+bt+at+st+ht+"]",St="\\ud83c[\\udffb-\\udfff]",xt="(?:"+yt+"|"+St+")",kt="[^"+tt+"]",At="(?:\\ud83c[\\udde6-\\uddff]){2}",Nt="[\\ud800-\\udbff][\\udc00-\\udfff]",Tt="["+ht+"]",Ct="\\u200d",Rt="(?:"+wt+"|"+Et+")",Ot="(?:"+Tt+"|"+Et+")",It="(?:"+mt+"(?:d|ll|m|re|s|t|ve))?",Dt="(?:"+mt+"(?:D|LL|M|RE|S|T|VE))?",Lt=xt+"?",Pt="["+pt+"]?",Mt="(?:"+Ct+"(?:"+[kt,At,Nt].join("|")+")"+Pt+Lt+")*",Ft="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Bt="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",$t=Pt+Lt+Mt,jt="(?:"+[_t,At,Nt].join("|")+")"+$t,Ut="(?:"+[kt+yt+"?",yt,At,Nt,gt].join("|")+")",Vt=RegExp(mt,"g"),Kt=RegExp(yt,"g"),Ht=RegExp(St+"(?="+St+")|"+Ut+$t,"g"),Gt=RegExp([Tt+"?"+wt+"+"+It+"(?="+[vt,Tt,"$"].join("|")+")",Ot+"+"+Dt+"(?="+[vt,Tt+Rt,"$"].join("|")+")",Tt+"?"+Rt+"+"+It,Tt+"+"+Dt,Bt,Ft,bt,jt].join("|"),"g"),zt=RegExp("["+Ct+tt+ot+pt+"]"),Xt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,qt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Wt=-1,Yt={};Yt[pe]=Yt[fe]=Yt[me]=Yt[ge]=Yt[ve]=Yt[ye]=Yt[be]=Yt[_e]=Yt[we]=!0,Yt[K]=Yt[H]=Yt[de]=Yt[z]=Yt[he]=Yt[X]=Yt[W]=Yt[Y]=Yt[J]=Yt[Z]=Yt[te]=Yt[ie]=Yt[oe]=Yt[ae]=Yt[ce]=!1;var Qt={};Qt[K]=Qt[H]=Qt[de]=Qt[he]=Qt[z]=Qt[X]=Qt[pe]=Qt[fe]=Qt[me]=Qt[ge]=Qt[ve]=Qt[J]=Qt[Z]=Qt[te]=Qt[ie]=Qt[oe]=Qt[ae]=Qt[se]=Qt[ye]=Qt[be]=Qt[_e]=Qt[we]=!0,Qt[W]=Qt[Y]=Qt[ce]=!1;var Jt={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"},Zt={"&":"&","<":"<",">":">",'"':""","'":"'"},en={"&":"&","<":"<",">":">",""":'"',"'":"'"},tn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},nn=parseFloat,rn=parseInt,on="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,an="object"==typeof self&&self&&self.Object===Object&&self,sn=on||an||Function("return this")(),ln=t&&!t.nodeType&&t,cn=ln&&e&&!e.nodeType&&e,un=cn&&cn.exports===ln,dn=un&&on.process,hn=function(){try{var e=cn&&cn.require&&cn.require("util").types;return e||dn&&dn.binding&&dn.binding("util")}catch(t){}}(),pn=hn&&hn.isArrayBuffer,fn=hn&&hn.isDate,mn=hn&&hn.isMap,gn=hn&&hn.isRegExp,vn=hn&&hn.isSet,yn=hn&&hn.isTypedArray;function bn(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function _n(e,t,n,r){var i=-1,o=null==e?0:e.length;while(++i-1}function An(e,t,n){var r=-1,i=null==e?0:e.length;while(++r-1);return n}function Zn(e,t){var n=e.length;while(n--&&Fn(t,e[n],0)>-1);return n}function er(e,t){var n=e.length,r=0;while(n--)e[n]===t&&++r;return r}var tr=Vn(Jt),nr=Vn(Zt);function rr(e){return"\\"+tn[e]}function ir(e,t){return null==e?i:e[t]}function or(e){return zt.test(e)}function ar(e){return Xt.test(e)}function sr(e){var t,n=[];while(!(t=e.next()).done)n.push(t.value);return n}function lr(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function cr(e,t){return function(n){return e(t(n))}}function ur(e,t){var n=-1,r=e.length,i=0,o=[];while(++n-1}function Vr(e,t){var n=this.__data__,r=ui(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Kr(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t=t?e:t)),e}function vi(e,t,n,r,o,a){var s,l=t&p,c=t&f,u=t&m;if(n&&(s=o?n(e,r,o,a):n(e)),s!==i)return s;if(!xu(e))return e;var d=lu(e);if(d){if(s=ts(e),!l)return ia(e,s)}else{var h=Qa(e),g=h==Y||h==Q;if(pu(e))return qo(e,l);if(h==te||h==K||g&&!o){if(s=c||g?{}:ns(e),!l)return c?sa(e,pi(s,e)):aa(e,hi(s,e))}else{if(!Qt[h])return o?e:{};s=rs(e,h,l)}}a||(a=new Jr);var v=a.get(e);if(v)return v;a.set(e,s),Fu(e)?e.forEach((function(r){s.add(vi(r,t,n,r,e,a))})):Au(e)&&e.forEach((function(r,i){s.set(i,vi(r,t,n,i,e,a))}));var y=u?c?ja:$a:c?Sd:Ed,b=d?i:y(e);return wn(b||e,(function(r,i){b&&(i=r,r=e[i]),ci(s,i,vi(r,t,n,i,e,a))})),s}function yi(e){var t=Ed(e);return function(n){return bi(n,e,t)}}function bi(e,t,n){var r=n.length;if(null==e)return!r;e=nt(e);while(r--){var o=n[r],a=t[o],s=e[o];if(s===i&&!(o in e)||!a(s))return!1}return!0}function _i(e,t,n){if("function"!=typeof e)throw new ot(l);return ks((function(){e.apply(i,n)}),t)}function wi(e,t,n,r){var i=-1,o=kn,s=!0,l=e.length,c=[],u=t.length;if(!l)return c;n&&(t=Nn(t,Wn(n))),r?(o=An,s=!1):t.length>=a&&(o=Qn,s=!1,t=new Wr(t));e:while(++io?0:o+n),r=r===i||r>o?o:qu(r),r<0&&(r+=o),r=n>r?0:Wu(r);while(n0&&n(s)?t>1?Ti(s,t-1,n,r,i):Tn(i,s):r||(i[i.length]=s)}return i}var Ci=da(),Ri=da(!0);function Oi(e,t){return e&&Ci(e,t,Ed)}function Ii(e,t){return e&&Ri(e,t,Ed)}function Di(e,t){return xn(t,(function(t){return wu(e[t])}))}function Li(e,t){t=Ho(t,e);var n=0,r=t.length;while(null!=e&&nt}function Bi(e,t){return null!=e&&dt.call(e,t)}function $i(e,t){return null!=e&&t in nt(e)}function ji(e,t,n){return e>=Ut(t,n)&&e=120&&h.length>=120)?new Wr(l&&h):i}h=e[0];var p=-1,f=c[0];e:while(++p-1)s!==e&&kt.call(s,l,1),kt.call(e,l,1)}return e}function vo(e,t){var n=e?t.length:0,r=n-1;while(n--){var i=t[n];if(n==r||i!==o){var o=i;as(i)?kt.call(e,i,1):Mo(e,i)}}return e}function yo(e,t){return e+Lt(zt()*(t-e+1))}function bo(e,t,r,i){var o=-1,a=jt(Dt((t-e)/(r||1)),0),s=n(a);while(a--)s[i?a:++o]=e,e+=r;return s}function _o(e,t){var n="";if(!e||t<1||t>M)return n;do{t%2&&(n+=e),t=Lt(t/2),t&&(e+=e)}while(t);return n}function wo(e,t){return As(_s(e,t,Rh),e+"")}function Eo(e){return oi(Ud(e))}function So(e,t){var n=Ud(e);return Cs(n,gi(t,0,n.length))}function xo(e,t,n,r){if(!xu(e))return e;t=Ho(t,e);var o=-1,a=t.length,s=a-1,l=e;while(null!=l&&++oo?0:o+t),r=r>o?o:r,r<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;var a=n(o);while(++i>>1,a=e[o];null!==a&&!$u(a)&&(n?a<=t:a=a){var u=t?null:Ca(e);if(u)return dr(u);s=!1,i=Qn,c=new Wr}else c=t?[]:l;e:while(++r=r?e:To(e,t,n)}var Xo=Rt||function(e){return sn.clearTimeout(e)};function qo(e,t){if(t)return e.slice();var n=e.length,r=wt?wt(n):new e.constructor(n);return e.copy(r),r}function Wo(e){var t=new e.constructor(e.byteLength);return new _t(t).set(new _t(e)),t}function Yo(e,t){var n=t?Wo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function Qo(e){var t=new e.constructor(e.source,ze.exec(e));return t.lastIndex=e.lastIndex,t}function Jo(e){return br?nt(br.call(e)):{}}function Zo(e,t){var n=t?Wo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function ea(e,t){if(e!==t){var n=e!==i,r=null===e,o=e===e,a=$u(e),s=t!==i,l=null===t,c=t===t,u=$u(t);if(!l&&!u&&!a&&e>t||a&&s&&c&&!l&&!u||r&&s&&c||!n&&c||!o)return 1;if(!r&&!a&&!u&&e=s)return l;var c=n[r];return l*("desc"==c?-1:1)}}return e.index-t.index}function na(e,t,r,i){var o=-1,a=e.length,s=r.length,l=-1,c=t.length,u=jt(a-s,0),d=n(c+u),h=!i;while(++l1?n[o-1]:i,s=o>2?n[2]:i;a=e.length>3&&"function"==typeof a?(o--,a):i,s&&ss(n[0],n[1],s)&&(a=o<3?i:a,o=1),t=nt(t);while(++r-1?o[a?t[s]:s]:i}}function ya(e){return Ba((function(t){var n=t.length,r=n,o=Ar.prototype.thru;e&&t.reverse();while(r--){var a=t[r];if("function"!=typeof a)throw new ot(l);if(o&&!s&&"wrapper"==Va(a))var s=new Ar([],!0)}r=s?r:n;while(++r1&&y.reverse(),h&&ul))return!1;var u=a.get(e),d=a.get(t);if(u&&d)return u==t&&d==e;var h=-1,p=!0,f=n&v?new Wr:i;a.set(e,t),a.set(t,e);while(++h1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace($e,"{\n/* [wrapped with "+t+"] */\n")}function os(e){return lu(e)||su(e)||!!(At&&e&&e[At])}function as(e,t){var n=typeof e;return t=null==t?M:t,!!t&&("number"==n||"symbol"!=n&&Qe.test(e))&&e>-1&&e%1==0&&e0){if(++t>=R)return arguments[0]}else t=0;return e.apply(i,arguments)}}function Cs(e,t){var n=-1,r=e.length,o=r-1;t=t===i?r:t;while(++n1?e[t-1]:i;return n="function"==typeof n?(e.pop(),n):i,Ml(e,n)}));function Gl(e){var t=Er(e);return t.__chain__=!0,t}function zl(e,t){return t(e),e}function Xl(e,t){return t(e)}var ql=Ba((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return mi(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Nr&&as(n)?(r=r.slice(n,+n+(t?1:0)),r.__actions__.push({func:Xl,args:[o],thisArg:i}),new Ar(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(i),e}))):this.thru(o)}));function Wl(){return Gl(this)}function Yl(){return new Ar(this.value(),this.__chain__)}function Ql(){this.__values__===i&&(this.__values__=zu(this.value()));var e=this.__index__>=this.__values__.length,t=e?i:this.__values__[this.__index__++];return{done:e,value:t}}function Jl(){return this}function Zl(e){var t,n=this;while(n instanceof kr){var r=Ls(n);r.__index__=0,r.__values__=i,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t}function ec(){var e=this.__wrapped__;if(e instanceof Nr){var t=e;return this.__actions__.length&&(t=new Nr(this)),t=t.reverse(),t.__actions__.push({func:Xl,args:[fl],thisArg:i}),new Ar(t,this.__chain__)}return this.thru(fl)}function tc(){return $o(this.__wrapped__,this.__actions__)}var nc=la((function(e,t,n){dt.call(e,n)?++e[n]:fi(e,n,1)}));function rc(e,t,n){var r=lu(e)?Sn:xi;return n&&ss(e,t,n)&&(t=i),r(e,Ha(t,3))}function ic(e,t){var n=lu(e)?xn:Ni;return n(e,Ha(t,3))}var oc=va(zs),ac=va(Xs);function sc(e,t){return Ti(gc(e,t),1)}function lc(e,t){return Ti(gc(e,t),P)}function cc(e,t,n){return n=n===i?1:qu(n),Ti(gc(e,t),n)}function uc(e,t){var n=lu(e)?wn:Ei;return n(e,Ha(t,3))}function dc(e,t){var n=lu(e)?En:Si;return n(e,Ha(t,3))}var hc=la((function(e,t,n){dt.call(e,n)?e[n].push(t):fi(e,n,[t])}));function pc(e,t,n,r){e=uu(e)?e:Ud(e),n=n&&!r?qu(n):0;var i=e.length;return n<0&&(n=jt(i+n,0)),Bu(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Fn(e,t,n)>-1}var fc=wo((function(e,t,r){var i=-1,o="function"==typeof t,a=uu(e)?n(e.length):[];return Ei(e,(function(e){a[++i]=o?bn(t,e,r):Ki(e,t,r)})),a})),mc=la((function(e,t,n){fi(e,n,t)}));function gc(e,t){var n=lu(e)?Nn:oo;return n(e,Ha(t,3))}function vc(e,t,n,r){return null==e?[]:(lu(t)||(t=null==t?[]:[t]),n=r?i:n,lu(n)||(n=null==n?[]:[n]),ho(e,t,n))}var yc=la((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));function bc(e,t,n){var r=lu(e)?Cn:Kn,i=arguments.length<3;return r(e,Ha(t,4),n,i,Ei)}function _c(e,t,n){var r=lu(e)?Rn:Kn,i=arguments.length<3;return r(e,Ha(t,4),n,i,Si)}function wc(e,t){var n=lu(e)?xn:Ni;return n(e,Uc(Ha(t,3)))}function Ec(e){var t=lu(e)?oi:Eo;return t(e)}function Sc(e,t,n){t=(n?ss(e,t,n):t===i)?1:qu(t);var r=lu(e)?ai:So;return r(e,t)}function xc(e){var t=lu(e)?si:No;return t(e)}function kc(e){if(null==e)return 0;if(uu(e))return Bu(e)?mr(e):e.length;var t=Qa(e);return t==J||t==oe?e.size:no(e).length}function Ac(e,t,n){var r=lu(e)?On:Co;return n&&ss(e,t,n)&&(t=i),r(e,Ha(t,3))}var Nc=wo((function(e,t){if(null==e)return[];var n=t.length;return n>1&&ss(e,t[0],t[1])?t=[]:n>2&&ss(t[0],t[1],t[2])&&(t=[t[0]]),ho(e,Ti(t,1),[])})),Tc=Ot||function(){return sn.Date.now()};function Cc(e,t){if("function"!=typeof t)throw new ot(l);return e=qu(e),function(){if(--e<1)return t.apply(this,arguments)}}function Rc(e,t,n){return t=n?i:t,t=e&&null==t?e.length:t,Oa(e,k,i,i,i,i,t)}function Oc(e,t){var n;if("function"!=typeof t)throw new ot(l);return e=qu(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var Ic=wo((function(e,t,n){var r=y;if(n.length){var i=ur(n,Ka(Ic));r|=S}return Oa(e,r,t,n,i)})),Dc=wo((function(e,t,n){var r=y|b;if(n.length){var i=ur(n,Ka(Dc));r|=S}return Oa(t,r,e,n,i)}));function Lc(e,t,n){t=n?i:t;var r=Oa(e,w,i,i,i,i,i,t);return r.placeholder=Lc.placeholder,r}function Pc(e,t,n){t=n?i:t;var r=Oa(e,E,i,i,i,i,i,t);return r.placeholder=Pc.placeholder,r}function Mc(e,t,n){var r,o,a,s,c,u,d=0,h=!1,p=!1,f=!0;if("function"!=typeof e)throw new ot(l);function m(t){var n=r,a=o;return r=o=i,d=t,s=e.apply(a,n),s}function g(e){return d=e,c=ks(b,t),h?m(e):s}function v(e){var n=e-u,r=e-d,i=t-n;return p?Ut(i,a-r):i}function y(e){var n=e-u,r=e-d;return u===i||n>=t||n<0||p&&r>=a}function b(){var e=Tc();if(y(e))return _(e);c=ks(b,v(e))}function _(e){return c=i,f&&r?m(e):(r=o=i,s)}function w(){c!==i&&Xo(c),d=0,r=u=o=c=i}function E(){return c===i?s:_(Tc())}function S(){var e=Tc(),n=y(e);if(r=arguments,o=this,u=e,n){if(c===i)return g(u);if(p)return Xo(c),c=ks(b,t),m(u)}return c===i&&(c=ks(b,t)),s}return t=Yu(t)||0,xu(n)&&(h=!!n.leading,p="maxWait"in n,a=p?jt(Yu(n.maxWait)||0,t):a,f="trailing"in n?!!n.trailing:f),S.cancel=w,S.flush=E,S}var Fc=wo((function(e,t){return _i(e,1,t)})),Bc=wo((function(e,t,n){return _i(e,Yu(t)||0,n)}));function $c(e){return Oa(e,N)}function jc(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ot(l);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(jc.Cache||Kr),n}function Uc(e){if("function"!=typeof e)throw new ot(l);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Vc(e){return Oc(2,e)}jc.Cache=Kr;var Kc=Go((function(e,t){t=1==t.length&&lu(t[0])?Nn(t[0],Wn(Ha())):Nn(Ti(t,1),Wn(Ha()));var n=t.length;return wo((function(r){var i=-1,o=Ut(r.length,n);while(++i=t})),su=Hi(function(){return arguments}())?Hi:function(e){return ku(e)&&dt.call(e,"callee")&&!xt.call(e,"callee")},lu=n.isArray,cu=pn?Wn(pn):Gi;function uu(e){return null!=e&&Su(e.length)&&!wu(e)}function du(e){return ku(e)&&uu(e)}function hu(e){return!0===e||!1===e||ku(e)&&Mi(e)==z}var pu=Mt||qh,fu=fn?Wn(fn):zi;function mu(e){return ku(e)&&1===e.nodeType&&!Lu(e)}function gu(e){if(null==e)return!0;if(uu(e)&&(lu(e)||"string"==typeof e||"function"==typeof e.splice||pu(e)||ju(e)||su(e)))return!e.length;var t=Qa(e);if(t==J||t==oe)return!e.size;if(ps(e))return!no(e).length;for(var n in e)if(dt.call(e,n))return!1;return!0}function vu(e,t){return Xi(e,t)}function yu(e,t,n){n="function"==typeof n?n:i;var r=n?n(e,t):i;return r===i?Xi(e,t,i,n):!!r}function bu(e){if(!ku(e))return!1;var t=Mi(e);return t==W||t==q||"string"==typeof e.message&&"string"==typeof e.name&&!Lu(e)}function _u(e){return"number"==typeof e&&Ft(e)}function wu(e){if(!xu(e))return!1;var t=Mi(e);return t==Y||t==Q||t==G||t==re}function Eu(e){return"number"==typeof e&&e==qu(e)}function Su(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=M}function xu(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ku(e){return null!=e&&"object"==typeof e}var Au=mn?Wn(mn):Wi;function Nu(e,t){return e===t||Yi(e,t,za(t))}function Tu(e,t,n){return n="function"==typeof n?n:i,Yi(e,t,za(t),n)}function Cu(e){return Du(e)&&e!=+e}function Ru(e){if(hs(e))throw new Be(s);return Qi(e)}function Ou(e){return null===e}function Iu(e){return null==e}function Du(e){return"number"==typeof e||ku(e)&&Mi(e)==Z}function Lu(e){if(!ku(e)||Mi(e)!=te)return!1;var t=Et(e);if(null===t)return!0;var n=dt.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ut.call(n)==mt}var Pu=gn?Wn(gn):Ji;function Mu(e){return Eu(e)&&e>=-M&&e<=M}var Fu=vn?Wn(vn):Zi;function Bu(e){return"string"==typeof e||!lu(e)&&ku(e)&&Mi(e)==ae}function $u(e){return"symbol"==typeof e||ku(e)&&Mi(e)==se}var ju=yn?Wn(yn):eo;function Uu(e){return e===i}function Vu(e){return ku(e)&&Qa(e)==ce}function Ku(e){return ku(e)&&Mi(e)==ue}var Hu=Aa(io),Gu=Aa((function(e,t){return e<=t}));function zu(e){if(!e)return[];if(uu(e))return Bu(e)?gr(e):ia(e);if(Nt&&e[Nt])return sr(e[Nt]());var t=Qa(e),n=t==J?lr:t==oe?dr:Ud;return n(e)}function Xu(e){if(!e)return 0===e?e:0;if(e=Yu(e),e===P||e===-P){var t=e<0?-1:1;return t*F}return e===e?e:0}function qu(e){var t=Xu(e),n=t%1;return t===t?n?t-n:t:0}function Wu(e){return e?gi(qu(e),0,$):0}function Yu(e){if("number"==typeof e)return e;if($u(e))return B;if(xu(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=xu(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=qn(e);var n=qe.test(e);return n||Ye.test(e)?rn(e.slice(2),n?2:8):Xe.test(e)?B:+e}function Qu(e){return oa(e,Sd(e))}function Ju(e){return e?gi(qu(e),-M,M):0===e?e:0}function Zu(e){return null==e?"":Lo(e)}var ed=ca((function(e,t){if(ps(t)||uu(t))oa(t,Ed(t),e);else for(var n in t)dt.call(t,n)&&ci(e,n,t[n])})),td=ca((function(e,t){oa(t,Sd(t),e)})),nd=ca((function(e,t,n,r){oa(t,Sd(t),e,r)})),rd=ca((function(e,t,n,r){oa(t,Ed(t),e,r)})),id=Ba(mi);function od(e,t){var n=xr(e);return null==t?n:hi(n,t)}var ad=wo((function(e,t){e=nt(e);var n=-1,r=t.length,o=r>2?t[2]:i;o&&ss(t[0],t[1],o)&&(r=1);while(++n1),t})),oa(e,ja(e),n),r&&(n=vi(n,p|f|m,La));var i=t.length;while(i--)Mo(n,t[i]);return n}));function Cd(e,t){return Od(e,Uc(Ha(t)))}var Rd=Ba((function(e,t){return null==e?{}:po(e,t)}));function Od(e,t){if(null==e)return{};var n=Nn(ja(e),(function(e){return[e]}));return t=Ha(t),fo(e,n,(function(e,n){return t(e,n[0])}))}function Id(e,t,n){t=Ho(t,e);var r=-1,o=t.length;o||(o=1,e=i);while(++rt){var r=e;e=t,t=r}if(n||e%1||t%1){var o=zt();return Ut(e+o*(t-e+nn("1e-"+((o+"").length-1))),t)}return yo(e,t)}var zd=fa((function(e,t,n){return t=t.toLowerCase(),e+(n?Xd(t):t)}));function Xd(e){return _h(Zu(e).toLowerCase())}function qd(e){return e=Zu(e),e&&e.replace(Je,tr).replace(Kt,"")}function Wd(e,t,n){e=Zu(e),t=Lo(t);var r=e.length;n=n===i?r:gi(qu(n),0,r);var o=n;return n-=t.length,n>=0&&e.slice(n,o)==t}function Yd(e){return e=Zu(e),e&&Te.test(e)?e.replace(Ae,nr):e}function Qd(e){return e=Zu(e),e&&Me.test(e)?e.replace(Pe,"\\$&"):e}var Jd=fa((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Zd=fa((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),eh=pa("toLowerCase");function th(e,t,n){e=Zu(e),t=qu(t);var r=t?mr(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Sa(Lt(i),n)+e+Sa(Dt(i),n)}function nh(e,t,n){e=Zu(e),t=qu(t);var r=t?mr(e):0;return t&&r>>0,n?(e=Zu(e),e&&("string"==typeof t||null!=t&&!Pu(t))&&(t=Lo(t),!t&&or(e))?zo(gr(e),0,n):e.split(t,n)):[]}var ch=fa((function(e,t,n){return e+(n?" ":"")+_h(t)}));function uh(e,t,n){return e=Zu(e),n=null==n?0:gi(qu(n),0,e.length),t=Lo(t),e.slice(n,n+t.length)==t}function dh(e,t,n){var r=Er.templateSettings;n&&ss(e,t,n)&&(t=i),e=Zu(e),t=nd({},t,r,Ia);var o,a,s=nd({},t.imports,r.imports,Ia),l=Ed(s),u=Yn(s,l),d=0,h=t.interpolate||Ze,p="__p += '",f=rt((t.escape||Ze).source+"|"+h.source+"|"+(h===Oe?Ge:Ze).source+"|"+(t.evaluate||Ze).source+"|$","g"),m="//# sourceURL="+(dt.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Wt+"]")+"\n";e.replace(f,(function(t,n,r,i,s,l){return r||(r=i),p+=e.slice(d,l).replace(et,rr),n&&(o=!0,p+="' +\n__e("+n+") +\n'"),s&&(a=!0,p+="';\n"+s+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),d=l+t.length,t})),p+="';\n";var g=dt.call(t,"variable")&&t.variable;if(g){if(Ke.test(g))throw new Be(c)}else p="with (obj) {\n"+p+"\n}\n";p=(a?p.replace(Ee,""):p).replace(Se,"$1").replace(xe,"$1;"),p="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var v=Eh((function(){return Ve(l,m+"return "+p).apply(i,u)}));if(v.source=p,bu(v))throw v;return v}function hh(e){return Zu(e).toLowerCase()}function ph(e){return Zu(e).toUpperCase()}function fh(e,t,n){if(e=Zu(e),e&&(n||t===i))return qn(e);if(!e||!(t=Lo(t)))return e;var r=gr(e),o=gr(t),a=Jn(r,o),s=Zn(r,o)+1;return zo(r,a,s).join("")}function mh(e,t,n){if(e=Zu(e),e&&(n||t===i))return e.slice(0,vr(e)+1);if(!e||!(t=Lo(t)))return e;var r=gr(e),o=Zn(r,gr(t))+1;return zo(r,0,o).join("")}function gh(e,t,n){if(e=Zu(e),e&&(n||t===i))return e.replace(Fe,"");if(!e||!(t=Lo(t)))return e;var r=gr(e),o=Jn(r,gr(t));return zo(r,o).join("")}function vh(e,t){var n=T,r=C;if(xu(t)){var o="separator"in t?t.separator:o;n="length"in t?qu(t.length):n,r="omission"in t?Lo(t.omission):r}e=Zu(e);var a=e.length;if(or(e)){var s=gr(e);a=s.length}if(n>=a)return e;var l=n-mr(r);if(l<1)return r;var c=s?zo(s,0,l).join(""):e.slice(0,l);if(o===i)return c+r;if(s&&(l+=c.length-l),Pu(o)){if(e.slice(l).search(o)){var u,d=c;o.global||(o=rt(o.source,Zu(ze.exec(o))+"g")),o.lastIndex=0;while(u=o.exec(d))var h=u.index;c=c.slice(0,h===i?l:h)}}else if(e.indexOf(Lo(o),l)!=l){var p=c.lastIndexOf(o);p>-1&&(c=c.slice(0,p))}return c+r}function yh(e){return e=Zu(e),e&&Ne.test(e)?e.replace(ke,yr):e}var bh=fa((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),_h=pa("toUpperCase");function wh(e,t,n){return e=Zu(e),t=n?i:t,t===i?ar(e)?wr(e):Ln(e):e.match(t)||[]}var Eh=wo((function(e,t){try{return bn(e,i,t)}catch(n){return bu(n)?n:new Be(n)}})),Sh=Ba((function(e,t){return wn(t,(function(t){t=Os(t),fi(e,t,Ic(e[t],e))})),e}));function xh(e){var t=null==e?0:e.length,n=Ha();return e=t?Nn(e,(function(e){if("function"!=typeof e[1])throw new ot(l);return[n(e[0]),e[1]]})):[],wo((function(n){var r=-1;while(++rM)return[];var n=$,r=Ut(e,$);t=Ha(t),e-=$;var i=zn(r,t);while(++n0||t<0)?new Nr(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(t=qu(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},Nr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Nr.prototype.toArray=function(){return this.take($)},Oi(Nr.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=Er[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);o&&(Er.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,l=t instanceof Nr,c=s[0],u=l||lu(t),d=function(e){var t=o.apply(Er,Tn([e],s));return r&&h?t[0]:t};u&&n&&"function"==typeof c&&1!=c.length&&(l=u=!1);var h=this.__chain__,p=!!this.__actions__.length,f=a&&!h,m=l&&!p;if(!a&&u){t=m?t:new Nr(this);var g=e.apply(t,s);return g.__actions__.push({func:Xl,args:[d],thisArg:i}),new Ar(g,h)}return f&&m?e.apply(this,s):(g=this.thru(d),f?r?g.value()[0]:g.value():g)})})),wn(["pop","push","shift","sort","splice","unshift"],(function(e){var t=at[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Er.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(lu(i)?i:[],e)}return this[n]((function(n){return t.apply(lu(n)?n:[],e)}))}})),Oi(Nr.prototype,(function(e,t){var n=Er[t];if(n){var r=n.name+"";dt.call(cn,r)||(cn[r]=[]),cn[r].push({name:t,func:n})}})),cn[ba(i,b).name]=[{name:"wrapper",func:i}],Nr.prototype.clone=Tr,Nr.prototype.reverse=Cr,Nr.prototype.value=Rr,Er.prototype.at=ql,Er.prototype.chain=Wl,Er.prototype.commit=Yl,Er.prototype.next=Ql,Er.prototype.plant=Zl,Er.prototype.reverse=ec,Er.prototype.toJSON=Er.prototype.valueOf=Er.prototype.value=tc,Er.prototype.first=Er.prototype.head,Nt&&(Er.prototype[Nt]=Jl),Er},Sr=Er();sn._=Sr,r=function(){return Sr}.call(t,n,t,e),r===i||(e.exports=r)}.call(this)},69011:function(e,t,n){var r=n(68250),i="Expected a function";function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(i);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},94495:function(e,t,n){var r=n(78942),i=function(){return r.Date.now()};e.exports=i},74874:function(e,t,n){var r=n(90242),i=n(41439),o=i((function(e,t){return null==e?{}:r(e,t)}));e.exports=o},16735:function(e,t,n){var r=n(65111),i=n(3334),o=n(35031),a=n(93650);function s(e,t){if(null==e)return{};var n=r(a(e),(function(e){return[e]}));return t=i(t),o(e,n,(function(e,n){return t(e,n[0])}))}e.exports=s},43282:function(e,t,n){var r=n(12762),i=n(98880),o=n(65187),a=n(66040);function s(e){return o(e)?r(a(e)):i(e)}e.exports=s},95479:function(e,t,n){var r=n(93640),i=n(5485),o=r((function(e,t,n){return e+(n?" ":"")+i(t)}));e.exports=o},99306:function(e){function t(){return[]}e.exports=t},34772:function(e){function t(){return!1}e.exports=t},43301:function(e,t,n){var r=n(6131),i=1/0,o=17976931348623157e292;function a(e){if(!e)return 0===e?e:0;if(e=r(e),e===i||e===-i){var t=e<0?-1:1;return t*o}return e===e?e:0}e.exports=a},67642:function(e,t,n){var r=n(43301);function i(e){var t=r(e),n=t%1;return t===t?n?t-n:t:0}e.exports=i},6131:function(e,t,n){var r=n(86403),i=n(41580),o=n(51187),a=NaN,s=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;function d(e){if("number"==typeof e)return e;if(o(e))return a;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=l.test(e);return n||c.test(e)?u(e.slice(2),n?2:8):s.test(e)?a:+e}e.exports=d},95243:function(e,t,n){var r=n(52291);function i(e){return null==e?"":r(e)}e.exports=i},5485:function(e,t,n){var r=n(4326),i=r("toUpperCase");e.exports=i},39817:function(e,t,n){var r=n(3905),i=n(81211);function o(e){return null==e?[]:r(e,i(e))}e.exports=o},39850:function(e,t,n){var r=n(39546),i=n(15813),o=n(95243),a=n(10482);function s(e,t,n){return e=o(e),t=n?void 0:t,void 0===t?i(e)?a(e):r(e):e.match(t)||[]}e.exports=s},23624:function(e,t,n){"use strict";const r=n(10222),i=Symbol("max"),o=Symbol("length"),a=Symbol("lengthCalculator"),s=Symbol("allowStale"),l=Symbol("maxAge"),c=Symbol("dispose"),u=Symbol("noDisposeOnSet"),d=Symbol("lruList"),h=Symbol("cache"),p=Symbol("updateAgeOnGet"),f=()=>1;class m{constructor(e){if("number"===typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!==typeof e.max||e.max<0))throw new TypeError("max must be a non-negative number");this[i]=e.max||1/0;const t=e.length||f;if(this[a]="function"!==typeof t?f:t,this[s]=e.stale||!1,e.maxAge&&"number"!==typeof e.maxAge)throw new TypeError("maxAge must be a number");this[l]=e.maxAge||0,this[c]=e.dispose,this[u]=e.noDisposeOnSet||!1,this[p]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!==typeof e||e<0)throw new TypeError("max must be a non-negative number");this[i]=e||1/0,y(this)}get max(){return this[i]}set allowStale(e){this[s]=!!e}get allowStale(){return this[s]}set maxAge(e){if("number"!==typeof e)throw new TypeError("maxAge must be a non-negative number");this[l]=e,y(this)}get maxAge(){return this[l]}set lengthCalculator(e){"function"!==typeof e&&(e=f),e!==this[a]&&(this[a]=e,this[o]=0,this[d].forEach((e=>{e.length=this[a](e.value,e.key),this[o]+=e.length}))),y(this)}get lengthCalculator(){return this[a]}get length(){return this[o]}get itemCount(){return this[d].length}rforEach(e,t){t=t||this;for(let n=this[d].tail;null!==n;){const r=n.prev;w(this,e,n,t),n=r}}forEach(e,t){t=t||this;for(let n=this[d].head;null!==n;){const r=n.next;w(this,e,n,t),n=r}}keys(){return this[d].toArray().map((e=>e.key))}values(){return this[d].toArray().map((e=>e.value))}reset(){this[c]&&this[d]&&this[d].length&&this[d].forEach((e=>this[c](e.key,e.value))),this[h]=new Map,this[d]=new r,this[o]=0}dump(){return this[d].map((e=>!v(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)})).toArray().filter((e=>e))}dumpLru(){return this[d]}set(e,t,n){if(n=n||this[l],n&&"number"!==typeof n)throw new TypeError("maxAge must be a number");const r=n?Date.now():0,s=this[a](t,e);if(this[h].has(e)){if(s>this[i])return b(this,this[h].get(e)),!1;const a=this[h].get(e),l=a.value;return this[c]&&(this[u]||this[c](e,l.value)),l.now=r,l.maxAge=n,l.value=t,this[o]+=s-l.length,l.length=s,this.get(e),y(this),!0}const p=new _(e,t,s,r,n);return p.length>this[i]?(this[c]&&this[c](e,t),!1):(this[o]+=p.length,this[d].unshift(p),this[h].set(e,this[d].head),y(this),!0)}has(e){if(!this[h].has(e))return!1;const t=this[h].get(e).value;return!v(this,t)}get(e){return g(this,e,!0)}peek(e){return g(this,e,!1)}pop(){const e=this[d].tail;return e?(b(this,e),e.value):null}del(e){b(this,this[h].get(e))}load(e){this.reset();const t=Date.now();for(let n=e.length-1;n>=0;n--){const r=e[n],i=r.e||0;if(0===i)this.set(r.k,r.v);else{const e=i-t;e>0&&this.set(r.k,r.v,e)}}}prune(){this[h].forEach(((e,t)=>g(this,t,!1)))}}const g=(e,t,n)=>{const r=e[h].get(t);if(r){const t=r.value;if(v(e,t)){if(b(e,r),!e[s])return}else n&&(e[p]&&(r.value.now=Date.now()),e[d].unshiftNode(r));return t.value}},v=(e,t)=>{if(!t||!t.maxAge&&!e[l])return!1;const n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[l]&&n>e[l]},y=e=>{if(e[o]>e[i])for(let t=e[d].tail;e[o]>e[i]&&null!==t;){const n=t.prev;b(e,t),t=n}},b=(e,t)=>{if(t){const n=t.value;e[c]&&e[c](n.key,n.value),e[o]-=n.length,e[h].delete(n.key),e[d].removeNode(t)}};class _{constructor(e,t,n,r,i){this.key=e,this.value=t,this.length=n,this.now=r,this.maxAge=i||0}}const w=(e,t,n,r)=>{let i=n.value;v(e,i)&&(b(e,n),e[s]||(i=void 0)),i&&t.call(r,i.value,i.key,e)};e.exports=m},1359:function(e,t){"use strict";var n,r=Object.prototype.hasOwnProperty;function i(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(t){return null}}function o(e){try{return encodeURIComponent(e)}catch(t){return null}}function a(e){var t,n=/([^=?#&]+)=?([^&]*)/g,r={};while(t=n.exec(e)){var o=i(t[1]),a=i(t[2]);null===o||null===a||o in r||(r[o]=a)}return r}function s(e,t){t=t||"";var i,a,s=[];for(a in"string"!==typeof t&&(t="?"),e)if(r.call(e,a)){if(i=e[a],i||null!==i&&i!==n&&!isNaN(i)||(i=""),a=o(a),i=o(i),null===a||null===i)continue;s.push(a+"="+i)}return s.length?t+s.join("&"):""}t.stringify=s,t.parse=a},33062:function(e){"use strict";e.exports=function(e,t){if(t=t.split(":")[0],e=+e,!e)return!1;switch(t){case"http":case"ws":return 80!==e;case"https":case"wss":return 443!==e;case"ftp":return 21!==e;case"gopher":return 70!==e;case"file":return!1}return 0!==e}},51565:function(e,t,n){const r=Symbol("SemVer ANY");class i{static get ANY(){return r}constructor(e,t){if(t=o(t),e instanceof i){if(e.loose===!!t.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),c("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===r?this.value="":this.value=this.operator+this.semver.version,c("comp",this)}parse(e){const t=this.options.loose?a[s.COMPARATORLOOSE]:a[s.COMPARATOR],n=e.match(t);if(!n)throw new TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new u(n[2],this.options.loose):this.semver=r}toString(){return this.value}test(e){if(c("Comparator.test",e,this.options.loose),this.semver===r||e===r)return!0;if("string"===typeof e)try{e=new u(e,this.options)}catch(t){return!1}return l(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof i))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new d(e.value,t).test(this.value):""===e.operator?""===e.value||new d(this.value,t).test(e.semver):(t=o(t),(!t.includePrerelease||"<0.0.0-0"!==this.value&&"<0.0.0-0"!==e.value)&&(!(!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0")))&&(!(!this.operator.startsWith(">")||!e.operator.startsWith(">"))||(!(!this.operator.startsWith("<")||!e.operator.startsWith("<"))||(!(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))||(!!(l(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))||!!(l(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">"))))))))}}e.exports=i;const o=n(13990),{safeRe:a,t:s}=n(72841),l=n(9242),c=n(41361),u=n(24517),d=n(37476)},37476:function(e,t,n){class r{constructor(e,t){if(t=a(t),e instanceof r)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new r(e.raw,t);if(e instanceof s)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!v(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const t of this.set)if(1===t.length&&y(t[0])){this.set=[t];break}}this.format()}format(){return this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(e){const t=(this.options.includePrerelease&&m)|(this.options.loose&&g),n=t+":"+e,r=o.get(n);if(r)return r;const i=this.options.loose,a=i?u[d.HYPHENRANGELOOSE]:u[d.HYPHENRANGE];e=e.replace(a,R(this.options.includePrerelease)),l("hyphen replace",e),e=e.replace(u[d.COMPARATORTRIM],h),l("comparator trim",e),e=e.replace(u[d.TILDETRIM],p),l("tilde trim",e),e=e.replace(u[d.CARETTRIM],f),l("caret trim",e);let c=e.split(" ").map((e=>_(e,this.options))).join(" ").split(/\s+/).map((e=>C(e,this.options)));i&&(c=c.filter((e=>(l("loose invalid filter",e,this.options),!!e.match(u[d.COMPARATORLOOSE]))))),l("range list",c);const y=new Map,b=c.map((e=>new s(e,this.options)));for(const o of b){if(v(o))return[o];y.set(o.value,o)}y.size>1&&y.has("")&&y.delete("");const w=[...y.values()];return o.set(n,w),w}intersects(e,t){if(!(e instanceof r))throw new TypeError("a Range is required");return this.set.some((n=>b(n,t)&&e.set.some((e=>b(e,t)&&n.every((n=>e.every((e=>n.intersects(e,t)))))))))}test(e){if(!e)return!1;if("string"===typeof e)try{e=new c(e,this.options)}catch(t){return!1}for(let n=0;n"<0.0.0-0"===e.value,y=e=>""===e.value,b=(e,t)=>{let n=!0;const r=e.slice();let i=r.pop();while(n&&r.length)n=r.every((e=>i.intersects(e,t))),i=r.pop();return n},_=(e,t)=>(l("comp",e,t),e=x(e,t),l("caret",e),e=E(e,t),l("tildes",e),e=A(e,t),l("xrange",e),e=T(e,t),l("stars",e),e),w=e=>!e||"x"===e.toLowerCase()||"*"===e,E=(e,t)=>e.trim().split(/\s+/).map((e=>S(e,t))).join(" "),S=(e,t)=>{const n=t.loose?u[d.TILDELOOSE]:u[d.TILDE];return e.replace(n,((t,n,r,i,o)=>{let a;return l("tilde",e,t,n,r,i,o),w(n)?a="":w(r)?a=`>=${n}.0.0 <${+n+1}.0.0-0`:w(i)?a=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:o?(l("replaceTilde pr",o),a=`>=${n}.${r}.${i}-${o} <${n}.${+r+1}.0-0`):a=`>=${n}.${r}.${i} <${n}.${+r+1}.0-0`,l("tilde return",a),a}))},x=(e,t)=>e.trim().split(/\s+/).map((e=>k(e,t))).join(" "),k=(e,t)=>{l("caret",e,t);const n=t.loose?u[d.CARETLOOSE]:u[d.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,((t,n,i,o,a)=>{let s;return l("caret",e,t,n,i,o,a),w(n)?s="":w(i)?s=`>=${n}.0.0${r} <${+n+1}.0.0-0`:w(o)?s="0"===n?`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.0${r} <${+n+1}.0.0-0`:a?(l("replaceCaret pr",a),s="0"===n?"0"===i?`>=${n}.${i}.${o}-${a} <${n}.${i}.${+o+1}-0`:`>=${n}.${i}.${o}-${a} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${o}-${a} <${+n+1}.0.0-0`):(l("no pr"),s="0"===n?"0"===i?`>=${n}.${i}.${o}${r} <${n}.${i}.${+o+1}-0`:`>=${n}.${i}.${o}${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${o} <${+n+1}.0.0-0`),l("caret return",s),s}))},A=(e,t)=>(l("replaceXRanges",e,t),e.split(/\s+/).map((e=>N(e,t))).join(" ")),N=(e,t)=>{e=e.trim();const n=t.loose?u[d.XRANGELOOSE]:u[d.XRANGE];return e.replace(n,((n,r,i,o,a,s)=>{l("xRange",e,n,r,i,o,a,s);const c=w(i),u=c||w(o),d=u||w(a),h=d;return"="===r&&h&&(r=""),s=t.includePrerelease?"-0":"",c?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&h?(u&&(o=0),a=0,">"===r?(r=">=",u?(i=+i+1,o=0,a=0):(o=+o+1,a=0)):"<="===r&&(r="<",u?i=+i+1:o=+o+1),"<"===r&&(s="-0"),n=`${r+i}.${o}.${a}${s}`):u?n=`>=${i}.0.0${s} <${+i+1}.0.0-0`:d&&(n=`>=${i}.${o}.0${s} <${i}.${+o+1}.0-0`),l("xRange return",n),n}))},T=(e,t)=>(l("replaceStars",e,t),e.trim().replace(u[d.STAR],"")),C=(e,t)=>(l("replaceGTE0",e,t),e.trim().replace(u[t.includePrerelease?d.GTE0PRE:d.GTE0],"")),R=e=>(t,n,r,i,o,a,s,l,c,u,d,h,p)=>(n=w(r)?"":w(i)?`>=${r}.0.0${e?"-0":""}`:w(o)?`>=${r}.${i}.0${e?"-0":""}`:a?`>=${n}`:`>=${n}${e?"-0":""}`,l=w(c)?"":w(u)?`<${+c+1}.0.0-0`:w(d)?`<${c}.${+u+1}.0-0`:h?`<=${c}.${u}.${d}-${h}`:e?`<${c}.${u}.${+d+1}-0`:`<=${l}`,`${n} ${l}`.trim()),O=(e,t,n)=>{for(let r=0;r0){const r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0}},24517:function(e,t,n){const r=n(41361),{MAX_LENGTH:i,MAX_SAFE_INTEGER:o}=n(79543),{safeRe:a,t:s}=n(72841),l=n(13990),{compareIdentifiers:c}=n(93806);class u{constructor(e,t){if(t=l(t),e instanceof u){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!==typeof e)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>i)throw new TypeError(`version is longer than ${i} characters`);r("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const n=e.trim().match(t.loose?a[s.LOOSE]:a[s.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>o||this.major<0)throw new TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t=0)"number"===typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);if(-1===r){if(t===this.prerelease.join(".")&&!1===n)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let r=[t,e];!1===n&&(r=[t]),0===c(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}e.exports=u},92281:function(e,t,n){const r=n(93955),i=(e,t)=>{const n=r(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null};e.exports=i},9242:function(e,t,n){const r=n(28848),i=n(28220),o=n(89761),a=n(72386),s=n(51262),l=n(89639),c=(e,t,n,c)=>{switch(t){case"===":return"object"===typeof e&&(e=e.version),"object"===typeof n&&(n=n.version),e===n;case"!==":return"object"===typeof e&&(e=e.version),"object"===typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return r(e,n,c);case"!=":return i(e,n,c);case">":return o(e,n,c);case">=":return a(e,n,c);case"<":return s(e,n,c);case"<=":return l(e,n,c);default:throw new TypeError(`Invalid operator: ${t}`)}};e.exports=c},56783:function(e,t,n){const r=n(24517),i=n(93955),{safeRe:o,t:a}=n(72841),s=(e,t)=>{if(e instanceof r)return e;if("number"===typeof e&&(e=String(e)),"string"!==typeof e)return null;t=t||{};let n=null;if(t.rtl){let t;while((t=o[a.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length))n&&t.index+t[0].length===n.index+n[0].length||(n=t),o[a.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;o[a.COERCERTL].lastIndex=-1}else n=e.match(o[a.COERCE]);return null===n?null:i(`${n[2]}.${n[3]||"0"}.${n[4]||"0"}`,t)};e.exports=s},6106:function(e,t,n){const r=n(24517),i=(e,t,n)=>{const i=new r(e,n),o=new r(t,n);return i.compare(o)||i.compareBuild(o)};e.exports=i},52132:function(e,t,n){const r=n(87851),i=(e,t)=>r(e,t,!0);e.exports=i},87851:function(e,t,n){const r=n(24517),i=(e,t,n)=>new r(e,n).compare(new r(t,n));e.exports=i},73269:function(e,t,n){const r=n(93955),i=(e,t)=>{const n=r(e,null,!0),i=r(t,null,!0),o=n.compare(i);if(0===o)return null;const a=o>0,s=a?n:i,l=a?i:n,c=!!s.prerelease.length,u=!!l.prerelease.length;if(u&&!c)return l.patch||l.minor?s.patch?"patch":s.minor?"minor":"major":"major";const d=c?"pre":"";return n.major!==i.major?d+"major":n.minor!==i.minor?d+"minor":n.patch!==i.patch?d+"patch":"prerelease"};e.exports=i},28848:function(e,t,n){const r=n(87851),i=(e,t,n)=>0===r(e,t,n);e.exports=i},89761:function(e,t,n){const r=n(87851),i=(e,t,n)=>r(e,t,n)>0;e.exports=i},72386:function(e,t,n){const r=n(87851),i=(e,t,n)=>r(e,t,n)>=0;e.exports=i},38868:function(e,t,n){const r=n(24517),i=(e,t,n,i,o)=>{"string"===typeof n&&(o=i,i=n,n=void 0);try{return new r(e instanceof r?e.version:e,n).inc(t,i,o).version}catch(a){return null}};e.exports=i},51262:function(e,t,n){const r=n(87851),i=(e,t,n)=>r(e,t,n)<0;e.exports=i},89639:function(e,t,n){const r=n(87851),i=(e,t,n)=>r(e,t,n)<=0;e.exports=i},26381:function(e,t,n){const r=n(24517),i=(e,t)=>new r(e,t).major;e.exports=i},31353:function(e,t,n){const r=n(24517),i=(e,t)=>new r(e,t).minor;e.exports=i},28220:function(e,t,n){const r=n(87851),i=(e,t,n)=>0!==r(e,t,n);e.exports=i},93955:function(e,t,n){const r=n(24517),i=(e,t,n=!1)=>{if(e instanceof r)return e;try{return new r(e,t)}catch(i){if(!n)return null;throw i}};e.exports=i},96082:function(e,t,n){const r=n(24517),i=(e,t)=>new r(e,t).patch;e.exports=i},69428:function(e,t,n){const r=n(93955),i=(e,t)=>{const n=r(e,t);return n&&n.prerelease.length?n.prerelease:null};e.exports=i},87555:function(e,t,n){const r=n(87851),i=(e,t,n)=>r(t,e,n);e.exports=i},93810:function(e,t,n){const r=n(6106),i=(e,t)=>e.sort(((e,n)=>r(n,e,t)));e.exports=i},27229:function(e,t,n){const r=n(37476),i=(e,t,n)=>{try{t=new r(t,n)}catch(i){return!1}return t.test(e)};e.exports=i},34042:function(e,t,n){const r=n(6106),i=(e,t)=>e.sort(((e,n)=>r(e,n,t)));e.exports=i},28474:function(e,t,n){const r=n(93955),i=(e,t)=>{const n=r(e,t);return n?n.version:null};e.exports=i},2722:function(e,t,n){const r=n(72841),i=n(79543),o=n(24517),a=n(93806),s=n(93955),l=n(28474),c=n(92281),u=n(38868),d=n(73269),h=n(26381),p=n(31353),f=n(96082),m=n(69428),g=n(87851),v=n(87555),y=n(52132),b=n(6106),_=n(34042),w=n(93810),E=n(89761),S=n(51262),x=n(28848),k=n(28220),A=n(72386),N=n(89639),T=n(9242),C=n(56783),R=n(51565),O=n(37476),I=n(27229),D=n(26364),L=n(55039),P=n(55357),M=n(71280),F=n(37403),B=n(58854),$=n(27226),j=n(37183),U=n(18623),V=n(76486),K=n(40583);e.exports={parse:s,valid:l,clean:c,inc:u,diff:d,major:h,minor:p,patch:f,prerelease:m,compare:g,rcompare:v,compareLoose:y,compareBuild:b,sort:_,rsort:w,gt:E,lt:S,eq:x,neq:k,gte:A,lte:N,cmp:T,coerce:C,Comparator:R,Range:O,satisfies:I,toComparators:D,maxSatisfying:L,minSatisfying:P,minVersion:M,validRange:F,outside:B,gtr:$,ltr:j,intersects:U,simplifyRange:V,subset:K,SemVer:o,re:r.re,src:r.src,tokens:r.t,SEMVER_SPEC_VERSION:i.SEMVER_SPEC_VERSION,RELEASE_TYPES:i.RELEASE_TYPES,compareIdentifiers:a.compareIdentifiers,rcompareIdentifiers:a.rcompareIdentifiers}},79543:function(e){const t="2.0.0",n=256,r=Number.MAX_SAFE_INTEGER||9007199254740991,i=16,o=n-6,a=["major","premajor","minor","preminor","patch","prepatch","prerelease"];e.exports={MAX_LENGTH:n,MAX_SAFE_COMPONENT_LENGTH:i,MAX_SAFE_BUILD_LENGTH:o,MAX_SAFE_INTEGER:r,RELEASE_TYPES:a,SEMVER_SPEC_VERSION:t,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},41361:function(e,t,n){var r=n(49663),i=n(9776);const o="object"===typeof r&&{NODE_ENV:"production",BASE_URL:"/"}.NODE_DEBUG&&/\bsemver\b/i.test({NODE_ENV:"production",BASE_URL:"/"}.NODE_DEBUG)?(...e)=>i.error("SEMVER",...e):()=>{};e.exports=o},93806:function(e){const t=/^[0-9]+$/,n=(e,n)=>{const r=t.test(e),i=t.test(n);return r&&i&&(e=+e,n=+n),e===n?0:r&&!i?-1:i&&!r?1:en(t,e);e.exports={compareIdentifiers:n,rcompareIdentifiers:r}},13990:function(e){const t=Object.freeze({loose:!0}),n=Object.freeze({}),r=e=>e?"object"!==typeof e?t:e:n;e.exports=r},72841:function(e,t,n){const{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:i,MAX_LENGTH:o}=n(79543),a=n(41361);t=e.exports={};const s=t.re=[],l=t.safeRe=[],c=t.src=[],u=t.t={};let d=0;const h="[a-zA-Z0-9-]",p=[["\\s",1],["\\d",o],[h,i]],f=e=>{for(const[t,n]of p)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e},m=(e,t,n)=>{const r=f(t),i=d++;a(e,i,t),u[e]=i,c[i]=t,s[i]=new RegExp(t,n?"g":void 0),l[i]=new RegExp(r,n?"g":void 0)};m("NUMERICIDENTIFIER","0|[1-9]\\d*"),m("NUMERICIDENTIFIERLOOSE","\\d+"),m("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${h}*`),m("MAINVERSION",`(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})`),m("MAINVERSIONLOOSE",`(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})`),m("PRERELEASEIDENTIFIER",`(?:${c[u.NUMERICIDENTIFIER]}|${c[u.NONNUMERICIDENTIFIER]})`),m("PRERELEASEIDENTIFIERLOOSE",`(?:${c[u.NUMERICIDENTIFIERLOOSE]}|${c[u.NONNUMERICIDENTIFIER]})`),m("PRERELEASE",`(?:-(${c[u.PRERELEASEIDENTIFIER]}(?:\\.${c[u.PRERELEASEIDENTIFIER]})*))`),m("PRERELEASELOOSE",`(?:-?(${c[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[u.PRERELEASEIDENTIFIERLOOSE]})*))`),m("BUILDIDENTIFIER",`${h}+`),m("BUILD",`(?:\\+(${c[u.BUILDIDENTIFIER]}(?:\\.${c[u.BUILDIDENTIFIER]})*))`),m("FULLPLAIN",`v?${c[u.MAINVERSION]}${c[u.PRERELEASE]}?${c[u.BUILD]}?`),m("FULL",`^${c[u.FULLPLAIN]}$`),m("LOOSEPLAIN",`[v=\\s]*${c[u.MAINVERSIONLOOSE]}${c[u.PRERELEASELOOSE]}?${c[u.BUILD]}?`),m("LOOSE",`^${c[u.LOOSEPLAIN]}$`),m("GTLT","((?:<|>)?=?)"),m("XRANGEIDENTIFIERLOOSE",`${c[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),m("XRANGEIDENTIFIER",`${c[u.NUMERICIDENTIFIER]}|x|X|\\*`),m("XRANGEPLAIN",`[v=\\s]*(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:${c[u.PRERELEASE]})?${c[u.BUILD]}?)?)?`),m("XRANGEPLAINLOOSE",`[v=\\s]*(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:${c[u.PRERELEASELOOSE]})?${c[u.BUILD]}?)?)?`),m("XRANGE",`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAIN]}$`),m("XRANGELOOSE",`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAINLOOSE]}$`),m("COERCE",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?(?:$|[^\\d])`),m("COERCERTL",c[u.COERCE],!0),m("LONETILDE","(?:~>?)"),m("TILDETRIM",`(\\s*)${c[u.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",m("TILDE",`^${c[u.LONETILDE]}${c[u.XRANGEPLAIN]}$`),m("TILDELOOSE",`^${c[u.LONETILDE]}${c[u.XRANGEPLAINLOOSE]}$`),m("LONECARET","(?:\\^)"),m("CARETTRIM",`(\\s*)${c[u.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",m("CARET",`^${c[u.LONECARET]}${c[u.XRANGEPLAIN]}$`),m("CARETLOOSE",`^${c[u.LONECARET]}${c[u.XRANGEPLAINLOOSE]}$`),m("COMPARATORLOOSE",`^${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]})$|^$`),m("COMPARATOR",`^${c[u.GTLT]}\\s*(${c[u.FULLPLAIN]})$|^$`),m("COMPARATORTRIM",`(\\s*)${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]}|${c[u.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",m("HYPHENRANGE",`^\\s*(${c[u.XRANGEPLAIN]})\\s+-\\s+(${c[u.XRANGEPLAIN]})\\s*$`),m("HYPHENRANGELOOSE",`^\\s*(${c[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[u.XRANGEPLAINLOOSE]})\\s*$`),m("STAR","(<|>)?=?\\s*\\*"),m("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),m("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},27226:function(e,t,n){const r=n(58854),i=(e,t,n)=>r(e,t,">",n);e.exports=i},18623:function(e,t,n){const r=n(37476),i=(e,t,n)=>(e=new r(e,n),t=new r(t,n),e.intersects(t,n));e.exports=i},37183:function(e,t,n){const r=n(58854),i=(e,t,n)=>r(e,t,"<",n);e.exports=i},55039:function(e,t,n){const r=n(24517),i=n(37476),o=(e,t,n)=>{let o=null,a=null,s=null;try{s=new i(t,n)}catch(l){return null}return e.forEach((e=>{s.test(e)&&(o&&-1!==a.compare(e)||(o=e,a=new r(o,n)))})),o};e.exports=o},55357:function(e,t,n){const r=n(24517),i=n(37476),o=(e,t,n)=>{let o=null,a=null,s=null;try{s=new i(t,n)}catch(l){return null}return e.forEach((e=>{s.test(e)&&(o&&1!==a.compare(e)||(o=e,a=new r(o,n)))})),o};e.exports=o},71280:function(e,t,n){const r=n(24517),i=n(37476),o=n(89761),a=(e,t)=>{e=new i(e,t);let n=new r("0.0.0");if(e.test(n))return n;if(n=new r("0.0.0-0"),e.test(n))return n;n=null;for(let i=0;i{const t=new r(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":a&&!o(t,a)||(a=t);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}})),!a||n&&!o(n,a)||(n=a)}return n&&e.test(n)?n:null};e.exports=a},58854:function(e,t,n){const r=n(24517),i=n(51565),{ANY:o}=i,a=n(37476),s=n(27229),l=n(89761),c=n(51262),u=n(89639),d=n(72386),h=(e,t,n,h)=>{let p,f,m,g,v;switch(e=new r(e,h),t=new a(t,h),n){case">":p=l,f=u,m=c,g=">",v=">=";break;case"<":p=c,f=d,m=l,g="<",v="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(s(e,t,h))return!1;for(let r=0;r{e.semver===o&&(e=new i(">=0.0.0")),a=a||e,s=s||e,p(e.semver,a.semver,h)?a=e:m(e.semver,s.semver,h)&&(s=e)})),a.operator===g||a.operator===v)return!1;if((!s.operator||s.operator===g)&&f(e,s.semver))return!1;if(s.operator===v&&m(e,s.semver))return!1}return!0};e.exports=h},76486:function(e,t,n){const r=n(27229),i=n(87851);e.exports=(e,t,n)=>{const o=[];let a=null,s=null;const l=e.sort(((e,t)=>i(e,t,n)));for(const i of l){const e=r(i,t,n);e?(s=i,a||(a=i)):(s&&o.push([a,s]),s=null,a=null)}a&&o.push([a,null]);const c=[];for(const[r,i]of o)r===i?c.push(r):i||r!==l[0]?i?r===l[0]?c.push(`<=${i}`):c.push(`${r} - ${i}`):c.push(`>=${r}`):c.push("*");const u=c.join(" || "),d="string"===typeof t.raw?t.raw:String(t);return u.length{if(e===t)return!0;e=new r(e,n),t=new r(t,n);let i=!1;e:for(const r of e.set){for(const e of t.set){const t=d(r,e,n);if(i=i||null!==t,t)continue e}if(i)return!1}return!0},c=[new i(">=0.0.0-0")],u=[new i(">=0.0.0")],d=(e,t,n)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===o){if(1===t.length&&t[0].semver===o)return!0;e=n.includePrerelease?c:u}if(1===t.length&&t[0].semver===o){if(n.includePrerelease)return!0;t=u}const r=new Set;let i,l,d,f,m,g,v;for(const o of e)">"===o.operator||">="===o.operator?i=h(i,o,n):"<"===o.operator||"<="===o.operator?l=p(l,o,n):r.add(o.semver);if(r.size>1)return null;if(i&&l){if(d=s(i.semver,l.semver,n),d>0)return null;if(0===d&&(">="!==i.operator||"<="!==l.operator))return null}for(const o of r){if(i&&!a(o,String(i),n))return null;if(l&&!a(o,String(l),n))return null;for(const e of t)if(!a(o,String(e),n))return!1;return!0}let y=!(!l||n.includePrerelease||!l.semver.prerelease.length)&&l.semver,b=!(!i||n.includePrerelease||!i.semver.prerelease.length)&&i.semver;y&&1===y.prerelease.length&&"<"===l.operator&&0===y.prerelease[0]&&(y=!1);for(const o of t){if(v=v||">"===o.operator||">="===o.operator,g=g||"<"===o.operator||"<="===o.operator,i)if(b&&o.semver.prerelease&&o.semver.prerelease.length&&o.semver.major===b.major&&o.semver.minor===b.minor&&o.semver.patch===b.patch&&(b=!1),">"===o.operator||">="===o.operator){if(f=h(i,o,n),f===o&&f!==i)return!1}else if(">="===i.operator&&!a(i.semver,String(o),n))return!1;if(l)if(y&&o.semver.prerelease&&o.semver.prerelease.length&&o.semver.major===y.major&&o.semver.minor===y.minor&&o.semver.patch===y.patch&&(y=!1),"<"===o.operator||"<="===o.operator){if(m=p(l,o,n),m===o&&m!==l)return!1}else if("<="===l.operator&&!a(l.semver,String(o),n))return!1;if(!o.operator&&(l||i)&&0!==d)return!1}return!(i&&g&&!l&&0!==d)&&(!(l&&v&&!i&&0!==d)&&(!b&&!y))},h=(e,t,n)=>{if(!e)return t;const r=s(e.semver,t.semver,n);return r>0?e:r<0||">"===t.operator&&">="===e.operator?t:e},p=(e,t,n)=>{if(!e)return t;const r=s(e.semver,t.semver,n);return r<0?e:r>0||"<"===t.operator&&"<="===e.operator?t:e};e.exports=l},26364:function(e,t,n){const r=n(37476),i=(e,t)=>new r(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")));e.exports=i},37403:function(e,t,n){const r=n(37476),i=(e,t)=>{try{return new r(e,t).range||"*"}catch(n){return null}};e.exports=i},59975:function(e,t,n){"use strict";var r=n(37101),i=Array.prototype.concat,o=Array.prototype.slice,a=e.exports=function(e){for(var t=[],n=0,a=e.length;n=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&"String"!==e.constructor.name))}},66242:function(e,t,n){"use strict";n.d(t,{d:function(){return r}});const r={CONSOLE_URL:"/host/#remote-console",RANCHER_INTEGRATION_URL:"/rancher/rancher-integration",STORAGE_NETWORK_EXAMPLE:"/advanced/storagenetwork#configuration-example",KSMTUNED_MODE:"/host/#ksmtuned-mode",UPGRADE_URL:"/upgrade/index"}},62261:function(e,t,n){"use strict";n.r(t),n.d(t,{IP_POOL_HEADERS:function(){return h},PRODUCT_NAME:function(){return d},init:function(){return p}});var r=n(4284),i=n(32766),o=n(37386),a=n(90626),s=n(1371);const l=i.rk.VM_VERSION,c="Monitoring & Logging::Monitoring",u="Monitoring & Logging::Logging",d="harvester",h=[o.c4,o.o_,{name:"subnet",labelKey:"harvester.ipPool.subnet.label",value:"subnetDisplay"},{name:"availableIP",labelKey:"harvester.ipPool.availableIP.label",value:"status.available"},o.K];function p(e,t){const{product:p,basicType:f,headers:m,configureType:g,virtualType:v,weightGroup:y,weightType:b}=e.DSL(t,d),_={NODE_ENV:"production",BASE_URL:"/"}.rancherEnv===d;if(_){const e={name:`${d}-c-cluster-resource`,params:{product:d,resource:i.rk.DASHBOARD}};t.dispatch("setIsSingleProduct",{productName:d,logo:n(59870),productNameKey:"harvester.productLabel",getVersionInfo:e=>e.getters[`${d}/byId`]?.(i.rk.SETTING,"server-version")?.value||"unknown",afterLoginRoute:e,logoRoute:e,supportCustomLogo:!0})}p({inStore:"harvester",removable:!1,showNamespaceFilter:!0,hideKubeShell:!0,hideKubeConfig:!0,showClusterSwitcher:!0,hideCopyConfig:!0,hideSystemResources:!0,customNamespaceFilter:!0,typeStoreMap:{[r.Mc.PROJECT]:"management",[r.Mc.CLUSTER_ROLE_TEMPLATE_BINDING]:"management",[r.Mc.PROJECT_ROLE_TEMPLATE_BINDING]:"management"},supportRoute:{name:`${d}-c-cluster-support`},to:{name:`${d}-c-cluster-resource`,params:{product:d,resource:i.rk.DASHBOARD}},hideNamespaceLocation:!0}),f([i.rk.DASHBOARD]),v({labelKey:"harvester.dashboard.label",group:"Root",name:i.rk.DASHBOARD,weight:500,route:{name:`${d}-c-cluster-resource`,params:{product:d,resource:i.rk.DASHBOARD}}}),g(i.rk.DASHBOARD,{showListMasthead:!1}),g(i.rk.HOST,{location:{name:`${d}-c-cluster-resource`,params:{resource:i.rk.HOST}},resource:r.NW,resourceDetail:i.rk.HOST,resourceEdit:i.rk.HOST,canYaml:!1}),g(i.rk.HOST,{isCreatable:!1,isEditable:!0}),f([i.rk.HOST]),v({ifHaveType:r.NW,labelKey:"harvester.host.label",group:"Root",name:i.rk.HOST,namespaced:!0,weight:399,route:{name:`${d}-c-cluster-resource`,params:{resource:i.rk.HOST}},exact:!1}),f(["cluster-members"],"rbac"),v({ifHave:a.f7.MULTI_CLUSTER,labelKey:"members.clusterMembers",group:"root",namespaced:!1,name:r.cG.CLUSTER_MEMBERS,weight:100,route:{name:`${d}-c-cluster-members`},exact:!0,ifHaveType:{type:r.Mc.CLUSTER_ROLE_TEMPLATE_BINDING,store:"management"}}),f([i.rk.VM]),g(i.rk.VM,{canYaml:!1}),v({labelKey:"harvester.virtualMachine.label",group:"root",name:i.rk.VM,namespaced:!0,weight:299,route:{name:`${d}-c-cluster-resource`,params:{resource:i.rk.VM}},exact:!1}),f([i.rk.VOLUME]),g(i.rk.VOLUME,{location:{name:`${d}-c-cluster-resource`,params:{resource:i.rk.VOLUME}},resource:r.YH,resourceDetail:i.rk.VOLUME,resourceEdit:i.rk.VOLUME,canYaml:!1}),v({labelKey:"harvester.volume.label",group:"root",ifHaveType:r.YH,name:i.rk.VOLUME,namespaced:!0,weight:199,route:{name:`${d}-c-cluster-resource`,params:{resource:i.rk.VOLUME}},exact:!1}),f([i.rk.IMAGE]),m(i.rk.IMAGE,[o.c4,o.o_,o.CU,s.IL,s.tI,s.WR,o.K]),g(i.rk.IMAGE,{canYaml:!1}),v({labelKey:"harvester.image.label",group:"root",name:i.rk.IMAGE,namespaced:!0,weight:198,route:{name:`${d}-c-cluster-resource`,params:{resource:i.rk.IMAGE}},exact:!1}),f(["projects-namespaces"]),v({ifHave:a.f7.MULTI_CLUSTER,labelKey:"harvester.projectNamespace.label",group:"root",namespaced:!0,name:"projects-namespaces",weight:98,route:{name:`${d}-c-cluster-projectsnamespaces`},exact:!0}),_&&(m(r.CU,[o.c4,o.ZU,o.K]),f([r.CU]),v({labelKey:"harvester.namespace.label",name:r.CU,namespaced:!0,weight:89,route:{name:`${d}-c-cluster-resource`,params:{resource:r.CU}},exact:!1})),f([i.rk.ALERTMANAGERCONFIG],c),f([i.rk.CLUSTER_FLOW,i.rk.CLUSTER_OUTPUT,i.rk.FLOW,i.rk.OUTPUT],u),y("Monitoring",2,!0),y("Logging",1,!0),m(i.rk.ALERTMANAGERCONFIG,[o.c4,o.o_,o.CU,{name:"receivers",labelKey:"tableHeaders.receivers",formatter:"ReceiverIcons",value:"name"}]),g(i.rk.ALERTMANAGERCONFIG,{location:{name:`${d}-c-cluster-resource`,params:{resource:i.rk.ALERTMANAGERCONFIG}},resource:r.Rp.ALERTMANAGERCONFIG,resourceDetail:i.rk.ALERTMANAGERCONFIG,resourceEdit:i.rk.ALERTMANAGERCONFIG,canYaml:!1}),v({ifHaveType:r.Rp.ALERTMANAGERCONFIG,labelKey:"harvester.monitoring.alertmanagerConfig.label",name:i.rk.ALERTMANAGERCONFIG,namespaced:!0,weight:87,route:{name:`${d}-c-cluster-resource`,params:{resource:i.rk.ALERTMANAGERCONFIG}},exact:!1}),g(i.rk.CLUSTER_FLOW,{location:{name:`${d}-c-cluster-resource`,params:{resource:i.rk.CLUSTER_FLOW}},resource:r.cm.CLUSTER_FLOW,resourceDetail:i.rk.CLUSTER_FLOW,resourceEdit:i.rk.CLUSTER_FLOW,canYaml:!1}),v({labelKey:"harvester.logging.clusterFlow.label",name:i.rk.CLUSTER_FLOW,namespaced:!0,weight:79,route:{name:`${d}-c-cluster-resource`,params:{resource:i.rk.CLUSTER_FLOW}},exact:!1}),g(i.rk.CLUSTER_OUTPUT,{location:{name:`${d}-c-cluster-resource`,params:{resource:i.rk.CLUSTER_OUTPUT}},resource:r.cm.CLUSTER_OUTPUT,resourceDetail:i.rk.CLUSTER_OUTPUT,resourceEdit:i.rk.CLUSTER_OUTPUT,canYaml:!1}),v({labelKey:"harvester.logging.clusterOutput.label",name:i.rk.CLUSTER_OUTPUT,namespaced:!0,weight:78,route:{name:`${d}-c-cluster-resource`,params:{resource:i.rk.CLUSTER_OUTPUT}},exact:!1}),g(i.rk.FLOW,{location:{name:`${d}-c-cluster-resource`,params:{resource:i.rk.FLOW}},resource:r.cm.FLOW,resourceDetail:i.rk.FLOW,resourceEdit:i.rk.FLOW,canYaml:!1}),v({labelKey:"harvester.logging.flow.label",name:i.rk.FLOW,namespaced:!0,weight:77,route:{name:`${d}-c-cluster-resource`,params:{resource:i.rk.FLOW}},exact:!1}),g(i.rk.OUTPUT,{location:{name:`${d}-c-cluster-resource`,params:{resource:i.rk.OUTPUT}},resource:r.cm.OUTPUT,resourceDetail:i.rk.OUTPUT,resourceEdit:i.rk.OUTPUT,canYaml:!1}),v({labelKey:"harvester.logging.output.label",name:i.rk.OUTPUT,namespaced:!0,weight:76,route:{name:`${d}-c-cluster-resource`,params:{resource:i.rk.OUTPUT}},exact:!1}),m(i.rk.FLOW,[o.c4,o.o_,o.CU,o.aQ,o.hX,o.Yf,o.K]),m(i.rk.OUTPUT,[o.c4,o.o_,o.CU,o.P4,o.K]),m(i.rk.CLUSTER_FLOW,[o.c4,o.o_,o.CU,o.hX,o.Yf,o.K]),m(i.rk.CLUSTER_OUTPUT,[o.c4,o.o_,o.CU,o.P4,o.K]),f([i.rk.CLUSTER_NETWORK,i.rk.NETWORK_ATTACHMENT,i.rk.LB,i.rk.IP_POOL],"networks"),f([i.rk.SCHEDULE_VM_BACKUP,i.rk.BACKUP,i.rk.SNAPSHOT,i.rk.VM_SNAPSHOT],"backupAndSnapshot"),y("networks",300,!0),b(r.CU,299,!0),y("backupAndSnapshot",289,!0),f([l,i.rk.SSH,i.rk.CLOUD_TEMPLATE,i.rk.STORAGE,i.rk.SR_IOV,i.rk.PCI_DEVICE,i.rk.SR_IOVGPU_DEVICE,i.rk.VGPU_DEVICE,i.rk.USB_DEVICE,i.rk.ADD_ONS,i.rk.SECRET,i.rk.SETTING],"advanced"),g(i.rk.CLUSTER_NETWORK,{realResource:i.rk.SETTING,showState:!1}),v({labelKey:"harvester.vmTemplate.label",group:"root",name:l,namespaced:!0,weight:289,route:{name:`${d}-c-cluster-resource`,params:{resource:l}},exact:!1}),g(l,{canYaml:!1}),g(i.rk.SCHEDULE_VM_BACKUP,{showListMasthead:!1,showConfigView:!1,canYaml:!1}),v({labelKey:"harvester.schedule.label",name:i.rk.SCHEDULE_VM_BACKUP,namespaced:!0,weight:201,route:{name:`${d}-c-cluster-resource`,params:{resource:i.rk.SCHEDULE_VM_BACKUP}},exact:!1,ifHaveType:i.rk.SCHEDULE_VM_BACKUP}),g(i.rk.BACKUP,{showListMasthead:!1,showConfigView:!1,canYaml:!1}),v({labelKey:"harvester.backup.label",name:i.rk.BACKUP,namespaced:!0,weight:200,route:{name:`${d}-c-cluster-resource`,params:{resource:i.rk.BACKUP}},exact:!1}),g(i.rk.VLAN_CONFIG,{hiddenNamespaceGroupButton:!0,canYaml:!1}),g(i.rk.CLUSTER_NETWORK,{showListMasthead:!1,canYaml:!1}),v({labelKey:"harvester.clusterNetwork.title",name:i.rk.CLUSTER_NETWORK,ifHaveType:i.rk.CLUSTER_NETWORK,namespaced:!1,weight:189,route:{name:`${d}-c-cluster-resource`,params:{resource:i.rk.CLUSTER_NETWORK}},exact:!1}),g(i.rk.NETWORK_ATTACHMENT,{location:{name:`${d}-c-cluster-resource`,params:{resource:i.rk.NETWORK_ATTACHMENT}},resource:r.XG,resourceDetail:i.rk.NETWORK_ATTACHMENT,resourceEdit:i.rk.NETWORK_ATTACHMENT}),v({labelKey:"harvester.network.label",name:i.rk.NETWORK_ATTACHMENT,namespaced:!0,weight:188,route:{name:`${d}-c-cluster-resource`,params:{resource:i.rk.NETWORK_ATTACHMENT}},exact:!1}),g(i.rk.SNAPSHOT,{isCreatable:!1,location:{name:`${d}-c-cluster-resource`,params:{resource:i.rk.SNAPSHOT}},resource:i.qY,resourceDetail:i.rk.SNAPSHOT,resourceEdit:i.rk.SNAPSHOT,canYaml:!1}),m(i.rk.SNAPSHOT,[o.c4,o.o_,o.CU,s.mt,o.K]),v({labelKey:"harvester.snapshot.label",name:i.rk.SNAPSHOT,namespaced:!0,weight:190,route:{name:`${d}-c-cluster-resource`,params:{resource:i.rk.SNAPSHOT}},exact:!1}),g(i.rk.VM_SNAPSHOT,{showListMasthead:!1,location:{name:`${d}-c-cluster-resource`,params:{resource:i.rk.VM_SNAPSHOT}},resource:i.rk.BACKUP,resourceDetail:i.rk.VM_SNAPSHOT,resourceEdit:i.rk.VM_SNAPSHOT,canYaml:!1}),v({labelKey:"harvester.vmSnapshot.label",name:i.rk.VM_SNAPSHOT,namespaced:!0,weight:191,route:{name:`${d}-c-cluster-resource`,params:{resource:i.rk.VM_SNAPSHOT}},exact:!1}),m(i.rk.SSH,[o.c4,o.o_,o.CU,s.lj,o.K]),v({labelKey:"harvester.sshKey.label",name:i.rk.SSH,namespaced:!0,weight:170,route:{name:`${d}-c-cluster-resource`,params:{resource:i.rk.SSH}},exact:!1}),g(i.rk.CLOUD_TEMPLATE,{location:{name:`${d}-c-cluster-resource`,params:{resource:i.rk.CLOUD_TEMPLATE}},resource:r.K5,resourceDetail:i.rk.CLOUD_TEMPLATE,resourceEdit:i.rk.CLOUD_TEMPLATE,canYaml:!1}),v({labelKey:"harvester.cloudTemplate.label",name:i.rk.CLOUD_TEMPLATE,namespaced:!0,weight:87,route:{name:`${d}-c-cluster-resource`,params:{resource:i.rk.CLOUD_TEMPLATE}},exact:!1}),m(i.rk.SECRET,[o.c4,o.o_,o.CU,o.UA,{name:"data",labelKey:"tableHeaders.data",value:"dataPreview",formatter:"SecretData"},o.K]),g(i.rk.SECRET,{location:{name:`${d}-c-cluster-resource`,params:{resource:i.rk.SECRET}},resource:r.bB,resourceDetail:i.rk.SECRET,resourceEdit:i.rk.SECRET,canYaml:!1,notFilterNamespace:["cattle-monitoring-system","cattle-logging-system"]}),v({labelKey:"harvester.secret.label",name:i.rk.SECRET,namespaced:!0,weight:-999,route:{name:`${d}-c-cluster-resource`,params:{resource:i.rk.SECRET}},exact:!1}),g(i.rk.SETTING,{isCreatable:!1}),v({ifHaveType:i.rk.SETTING,ifHaveVerb:"POST",labelKey:"harvester.setting.label",name:i.rk.SETTING,namespaced:!0,weight:-1e3,route:{name:`${d}-c-cluster-resource`,params:{resource:i.rk.SETTING}},exact:!1}),g(i.rk.STORAGE,{location:{name:`${d}-c-cluster-resource`,params:{resource:i.rk.STORAGE}},resource:r.fJ,resourceDetail:i.rk.STORAGE,resourceEdit:i.rk.STORAGE,isCreatable:!0,canYaml:!1}),v({labelKey:"harvester.storage.title",group:"root",ifHaveType:r.fJ,name:i.rk.STORAGE,namespaced:!1,weight:79,route:{name:`${d}-c-cluster-resource`,params:{resource:i.rk.STORAGE}},exact:!1}),v({label:"PCI Devices",group:"advanced",weight:14,name:i.rk.PCI_DEVICE,namespaced:!1,route:{name:`${d}-c-cluster-resource`,params:{resource:i.rk.PCI_DEVICE}},exact:!1}),g(i.rk.PCI_DEVICE,{isCreatable:!1,hiddenNamespaceGroupButton:!0,canYaml:!0,listGroups:[{icon:"icon-list-grouped",value:"description",field:"groupByDevice",hideColumn:"description",tooltipKey:"resourceTable.groupBy.device"},{icon:"icon-cluster",value:"node",field:"groupByNode",hideColumn:"node",tooltipKey:"resourceTable.groupBy.node"}]}),v({ifHaveType:i.rk.SR_IOV,labelKey:"harvester.sriov.label",group:"advanced",weight:15,name:i.rk.SR_IOV,namespaced:!1,route:{name:`${d}-c-cluster-resource`,params:{resource:i.rk.SR_IOV}},exact:!1}),g(i.rk.SR_IOV,{isCreatable:!1,hiddenNamespaceGroupButton:!0,canYaml:!1}),v({ifHaveType:i.rk.SR_IOVGPU_DEVICE,labelKey:"harvester.sriovgpu.label",group:"advanced",weight:13,name:i.rk.SR_IOVGPU_DEVICE,namespaced:!1,route:{name:`${d}-c-cluster-resource`,params:{resource:i.rk.SR_IOVGPU_DEVICE}},exact:!1}),g(i.rk.SR_IOVGPU_DEVICE,{isCreatable:!1,hiddenNamespaceGroupButton:!0,canYaml:!1}),v({labelKey:"harvester.vgpu.label",group:"advanced",weight:12,name:i.rk.VGPU_DEVICE,namespaced:!1,route:{name:`${d}-c-cluster-resource`,params:{resource:i.rk.VGPU_DEVICE}},exact:!1}),g(i.rk.VGPU_DEVICE,{isCreatable:!1,hiddenNamespaceGroupButton:!0,canYaml:!1,listGroups:[{icon:"icon-cluster",value:"node",field:"groupByNode",hideColumn:"node",tooltipKey:"resourceTable.groupBy.node"}]}),v({labelKey:"harvester.usb.label",group:"advanced",weight:11,name:i.rk.USB_DEVICE,namespaced:!1,route:{name:`${d}-c-cluster-resource`,params:{resource:i.rk.USB_DEVICE}},exact:!1,ifHaveType:i.rk.USB_DEVICE}),g(i.rk.USB_DEVICE,{isCreatable:!1,hiddenNamespaceGroupButton:!0,canYaml:!1,listGroups:[{icon:"icon-list-grouped",value:"description",field:"groupByDevice",hideColumn:"description",tooltipKey:"resourceTable.groupBy.device"},{icon:"icon-cluster",value:"node",field:"groupByNode",hideColumn:"node",tooltipKey:"resourceTable.groupBy.node"}]}),g(i.rk.ADD_ONS,{isCreatable:!1,isRemovable:!1,showState:!1,canYaml:!1}),v({label:"Add-ons",group:"advanced",name:i.rk.ADD_ONS,ifHaveType:i.rk.ADD_ONS,weight:-900,namespaced:!1,route:{name:`${d}-c-cluster-resource`,params:{resource:i.rk.ADD_ONS}},exact:!1}),g(i.rk.LB,{location:{name:`${d}-c-cluster-resource`,params:{resource:i.rk.LB}},canYaml:!1}),v({labelKey:"harvester.loadBalancer.label",name:i.rk.LB,namespaced:!0,weight:185,route:{name:`${d}-c-cluster-resource`,params:{resource:i.rk.LB}},exact:!1,ifHaveType:i.rk.LB}),m(i.rk.LB,[o.c4,o.o_,{...o.BD,formatter:"HarvesterListener"},{name:"workloadType",labelKey:"harvester.loadBalancer.workloadType.label",value:"workloadTypeDisplay"},{name:"ipam",labelKey:"harvester.loadBalancer.ipam.label",value:"ipamDisplay"},o.K]),g(i.rk.IP_POOL,{location:{name:`${d}-c-cluster-resource`,params:{resource:i.rk.IP_POOL}},canYaml:!1}),v({labelKey:"harvester.ipPool.label",name:i.rk.IP_POOL,namespaced:!1,weight:184,route:{name:`${d}-c-cluster-resource`,params:{resource:i.rk.IP_POOL}},exact:!1,ifHaveType:i.rk.IP_POOL}),m(i.rk.IP_POOL,h)}},66905:function(e,t,n){"use strict";n.d(t,{$E:function(){return c},$z:function(){return r},Et:function(){return h},Jo:function(){return d},UQ:function(){return u},_w:function(){return o},cI:function(){return a},hg:function(){return l},vo:function(){return s},xO:function(){return i}});const r=[{label:"VirtIO",value:"virtio"},{label:"SATA",value:"sata"},{label:"SCSI",value:"scsi"}],i={NEW:"New",IMAGE:"Virtual Machine Image",ATTACH_VOLUME:"Existing Volume",CONTAINER:"Container"},o=[{label:"disk",value:"disk"},{label:"cd-rom",value:"cd-rom"}],a={RESET_PWD:"userPassword",INJECT_SSH:"sshPublicKey"},s=["Always","RerunOnFailure","Manual","Halted"],l=["Migrate","ShutdownAndRestartAfterEnable","ShutdownAndRestartAfterDisable","Shutdown"],c={VolumeSnapshot:"VolumeSnapshot",PersistentVolumeClaim:"Volume"},u={LOGGING:"Logging",AUDIT:"Audit",EVENT:"Event"},d={HARVESTER_SEEDER:"harvester-seeder",PCI_DEVICE_CONTROLLER:"pcidevices-controller",NVIDIA_DRIVER_TOOLKIT_CONTROLLER:"nvidia-driver-toolkit",RANCHER_LOGGING:"rancher-logging",RANCHER_MONITORING:"rancher-monitoring",VM_IMPORT_CONTROLLER:"vm-import-controller",LVM_DRIVER:"lvm.driver.harvesterhci.io"},h={CSI_PROVISIONER_SECRET_NAME:"csi.storage.k8s.io/provisioner-secret-name",CSI_PROVISIONER_SECRET_NAMESPACE:"csi.storage.k8s.io/provisioner-secret-namespace",CSI_NODE_PUBLISH_SECRET_NAME:"csi.storage.k8s.io/node-publish-secret-name",CSI_NODE_PUBLISH_SECRET_NAMESPACE:"csi.storage.k8s.io/node-publish-secret-namespace",CSI_NODE_STAGE_SECRET_NAME:"csi.storage.k8s.io/node-stage-secret-name",CSI_NODE_STAGE_SECRET_NAMESPACE:"csi.storage.k8s.io/node-stage-secret-namespace"}},2602:function(e,t,n){"use strict";n.d(t,{l:function(){return o},r:function(){return a}});const r=/cattle\.io\//,i=/harvesterhci\.io\/maintain-mode-strategy/,o=[r,i],a={CLOUD_INIT:"harvesterhci.io/cloud-init-template",CURRENT_IP:"rke2.io/internal-ip",IMAGE_ID:"harvesterhci.io/imageId",SSH_NAMES:"harvesterhci.io/sshNames",NETWORK_IPS:"network.harvesterhci.io/ips",TEMPLATE_VERSION_CUSTOM_NAME:"template-version.harvesterhci.io/customName",CREATOR:"harvesterhci.io/creator",OS:"harvesterhci.io/os",NETWORK_TYPE:"network.harvesterhci.io/type",VM_NAME:"harvesterhci.io/vmName",VM_NAME_PREFIX:"harvesterhci.io/vmNamePrefix",VM_RESERVED_MEMORY:"harvesterhci.io/reservedMemory",MAINTENANCE_STATUS:"harvesterhci.io/maintain-status",HOST_CUSTOM_NAME:"harvesterhci.io/host-custom-name",HOST_CONSOLE_URL:"harvesterhci.io/host-console-url",RESTORE_NAME:"restore.harvesterhci.io/name",NODE_ROLE_MASTER:"node-role.kubernetes.io/master",NODE_ROLE_CONTROL_PLANE:"node-role.kubernetes.io/control-plane",NODE_ROLE_ETCD:"node-role.harvesterhci.io/witness",PROMOTE_STATUS:"harvesterhci.io/promote-status",MIGRATION_STATE:"harvesterhci.io/migrationState",VOLUME_CLAIM_TEMPLATE:"harvesterhci.io/volumeClaimTemplates",IMAGE_NAME:"harvesterhci.io/image-name",INIT_IP:"etcd.rke2.cattle.io/node-address",NODE_SCHEDULABLE:"kubevirt.io/schedulable",NETWORK_ROUTE:"network.harvesterhci.io/route",MATCHED_NODES:"network.harvesterhci.io/matched-nodes",OS_UPGRADE_IMAGE:"harvesterhci.io/os-upgrade-image",LATEST_UPGRADE:"harvesterhci.io/latestUpgrade",UPGRADE_STATE:"harvesterhci.io/upgradeState",REAY_MESSAGE:"harvesterhci.io/read-message",DYNAMIC_SSHKEYS_NAMES:"harvesterhci.io/dynamic-ssh-key-names",DYNAMIC_SSHKEYS_USERS:"harvesterhci.io/dynamic-ssh-key-users",IMAGE_SUFFIX:"harvesterhci.io/image-type",OS_TYPE:"harvesterhci.io/os-type",STORAGE_PROVISIONER:"harvesterhci.io/storageProvisioner",HOST_REQUEST:"management.cattle.io/pod-requests",STORAGE_CLASS:"harvesterhci.io/storageClassName",STORAGE_NETWORK:"storage-network.settings.harvesterhci.io",ADDON_EXPERIMENTAL:"addon.harvesterhci.io/experimental",VOLUME_ERROR:"longhorn.io/volume-scheduling-error",KVM_AMD_CPU:"cpu-feature.node.kubevirt.io/svm",KVM_INTEL_CPU:"cpu-feature.node.kubevirt.io/vmx",NODE_MANUFACTURER:"manufacturer",NODE_MODEL:"model",NODE_SERIAL_NUMBER:"serialNumber",VM_INSUFFICIENT:"harvesterhci.io/insufficient-resource-quota",NODE_NTP_SYNC_STATUS:"node.harvesterhci.io/ntp-service",PARENT_SRIOV:"harvesterhci.io/parent-sriov-network-device",PARENT_SRIOV_GPU:"harvesterhci.io/parentSRIOVGPUDevice",VM_MAINTENANCE_MODE_STRATEGY:"harvesterhci.io/maintain-mode-strategy",NODE_CPU_MANAGER_UPDATE_STATUS:"harvesterhci.io/cpu-manager-update-status",CPU_MANAGER:"cpumanager",VM_DEVICE_ALLOCATION_DETAILS:"harvesterhci.io/deviceAllocationDetails",SVM_BACKUP_ID:"harvesterhci.io/svmbackupId",DISABLE_LONGHORN_V2_ENGINE:"node.longhorn.io/disable-v2-data-engine"}},1371:function(e,t,n){"use strict";n.d(t,{IL:function(){return o},KG:function(){return c},WR:function(){return i},iu:function(){return u},lA:function(){return d},lj:function(){return a},mt:function(){return s},tC:function(){return l},tI:function(){return r}});const r={name:"downloadedBytes",labelKey:"tableHeaders.size",value:"downSize",sort:"status.size"},i={name:"virtualSize",labelKey:"harvester.tableHeaders.virtualSize",value:"virtualSize",sort:"status.virtualSize"},o={name:"Uploaded",labelKey:"tableHeaders.progress",value:"status.progress",sort:"status.progress",formatter:"ImagePercentageBar"},a={name:"Fingerprint",labelKey:"tableHeaders.fingerprint",value:"status.fingerPrint"},s={name:"TargetVolume",labelKey:"harvester.tableHeaders.snapshotTargetVolume",value:"spec.source.persistentVolumeClaimName",sort:"spec.source.persistentVolumeClaimName",formatter:"SnapshotTargetVolume"},l={name:"CronExpression",labelKey:"harvester.tableHeaders.cronExpression",value:"spec.cron",align:"center",sort:"spec.cron",formatter:"HarvesterCronExpression"},c={name:"Retain",labelKey:"harvester.tableHeaders.retain",value:"spec.retain",sort:"spec.retain",align:"center"},u={name:"MaxFailure",labelKey:"harvester.tableHeaders.maxFailure",value:"spec.maxFailure",sort:"spec.maxFailure",align:"center"},d={name:"Type",labelKey:"harvester.tableHeaders.scheduleType",value:"spec.vmbackup.type",sort:"spec.vmbackup.type",align:"center"}},41837:function(e,t,n){"use strict";n.d(t,{a:function(){return r}});const r={BACKUP:"backup",SNAPSHOT:"snapshot"}},83727:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(4284),i=n(79325);class o extends i.A{get clusterroletemplatebinding(){return this.$rootGetters["management/byId"](r.Mc.CLUSTER_ROLE_TEMPLATE_BINDING,this.id?.replace(":","/"))}get principalId(){return this.userPrincipalId||this.groupPrincipalId}get roleDisplay(){return this.roleTemplate.nameDisplay}get roleDescription(){return this.roleTemplate.description}get roleTemplate(){return this.$rootGetters["management/byId"](r.Mc.ROLE_TEMPLATE,this.roleTemplateId)}}},66529:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n(38991),i=n(78359),o=n(32766);const a={enabled:{displayKey:"generic.enabled",color:"bg-success"},pending:{displayKey:"generic.inProgress",color:"bg-info"},disabled:{displayKey:"generic.disabled",color:"bg-warning"},error:{displayKey:"generic.disabled",color:"bg-warning"}};class s extends r.A{get _availableActions(){const e=super._availableActions;return e.push({action:"enablePassthroughBulk",enabled:!this.isEnabling,icon:"icon icon-fw icon-dot",label:"Enable Passthrough",bulkable:!0,bulkAction:"enablePassthroughBulk",weight:1},{action:"disablePassthrough",enabled:this.isEnabling&&this.claimedByMe,icon:"icon icon-fw icon-dot-open",label:"Disable Passthrough",bulkable:!0,weight:0}),e}get canYaml(){return!1}get canDelete(){return!1}goToDetail(){return!1}goToEdit(){return!1}get passthroughClaim(){const e=this.$getters["all"](o.rk.PCI_CLAIM)||[];return!!this.status&&e.find((e=>e?.spec?.nodeName===this.status?.nodeName&&e?.spec?.address===this.status?.address))}get uniqueId(){return`${this.status?.vendorId}:${this.status?.deviceId}`}get claimedBy(){return this.passthroughClaim?.spec?.userName}get claimedByMe(){if(!this.passthroughClaim)return!1;const e=this.$rootGetters["isSingleProduct"];let t="admin";if(!e){const e=this.$rootGetters["auth/v3User"];t=e?.username||e?.id}return this.claimedBy===t}get isEnabled(){return!!this.passthroughClaim?.status?.passthroughEnabled}get isEnabling(){return!!this.passthroughClaim}get claimStatusDisplay(){return this.passthroughClaim?this.isEnabled?a.enabled:a.pending:a.disabled}get stateDisplay(){const e=this.$rootGetters["i18n/t"];return e(this.claimStatusDisplay.displayKey)}get stateBackground(){return this.claimStatusDisplay.color}enablePassthroughBulk(e=this){this.$dispatch("promptModal",{resources:e,component:"EnablePciPassthrough"})}async disablePassthrough(){try{if(!this.claimedByMe)throw new Error(this.$rootGetters["i18n/t"]("harvester.pci.cantUnclaim",{name:(0,i.ZD)(this.metadata.name)}));await this.passthroughClaim.remove()}catch(e){this.$dispatch("growl/fromError",{title:this.$rootGetters["i18n/t"]("harvester.pci.unclaimError",{name:(0,i.ZD)(this.metadata.name)}),err:e},{root:!0})}}get groupByNode(){const e=this.status?.nodeName||this.$rootGetters["i18n/t"]("generic.none");return this.$rootGetters["i18n/t"]("resourceTable.groupLabel.node",{name:(0,i.ZD)(e)})}get groupByDevice(){return this.status?.description}}},13520:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return c}});var r=n(38991),i=n(78359),o=n(79260),a=n(4284),s=n(2602),l=n(32766);class c extends r.A{get _availableActions(){const e=super._availableActions;return e.push({action:"enableDevice",enabled:!this.isEnabled,icon:"icon icon-fw icon-dot",label:"Enable"},{action:"disableDevice",enabled:this.isEnabled,icon:"icon icon-fw icon-dot-open",label:"Disable"}),e}get canYaml(){return!1}get canDelete(){return!1}goToDetail(){return!1}goToEdit(){return!1}get actualState(){return this.isEnabled?"Enabled":"Disabled"}get stateDisplay(){return this.actualState}get stateColor(){const e=this.actualState;return(0,o.uU)(e)}get isEnabled(){return this.spec.enabled&&this.status?.vfAddresses?.length>0&&this.status?.vGPUDevices?.length>0}async enableDevice(){try{this.spec.enabled=!0,await this.save()}catch(e){this.$dispatch("growl/fromError",{title:this.t("generic.notification.title.error",{name:(0,i.ZD)(this.metadata.name)}),err:e},{root:!0})}}async disableDevice(){const e=this.$rootGetters["currentProduct"].inStore,t=this.$rootGetters[`${e}/schemaFor`](l.rk.VGPU_DEVICE);if(t){const t=this.$rootGetters[`${e}/all`](l.rk.VGPU_DEVICE)||[],n=t.filter((e=>e.labels[s.r.PARENT_SRIOV_GPU]===this.id&&e.spec?.enabled)).map((e=>e.id));if(n.length>0)return void this.$dispatch("growl/error",{title:this.t("generic.notification.title.error",{name:(0,i.ZD)(this.metadata.name)}),message:`\n Cannot disable ${this.metadata.name}, following vGPU devices are enabled:\n [${n.join(", ")}]\n `},{root:!0})}try{this.spec.enabled=!1,await this.save()}catch(n){this.$dispatch("growl/fromError",{title:this.t("generic.notification.title.error",{name:(0,i.ZD)(this.metadata.name)}),err:n},{root:!0})}}get realNodeName(){const e=this.$rootGetters["currentProduct"].inStore,t=this.spec?.nodeName,n=this.$rootGetters[`${e}/all`](a.NW),r=n.find((e=>e.id===t));return r?.nameDisplay||""}get numVFs(){return this.status?.vfAddresses?.length||0}get childDevice(){return l.rk.VGPU_DEVICE}}},75128:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l}});var r=n(38991),i=n(78359),o=n(79260),a=n(4284),s=n(32766);class l extends r.A{get _availableActions(){const e=super._availableActions;return e.push({action:"enableDevice",enabled:!this.isEnabled,icon:"icon icon-fw icon-dot",label:"Enable"},{action:"disableDevice",enabled:this.isEnabled,icon:"icon icon-fw icon-dot-open",label:"Disable"}),e}get canYaml(){return!1}get canDelete(){return!1}goToDetail(){return!1}goToEdit(){return!1}get actualState(){return this.isEnabled?"Enabled":"Disabled"}get stateDisplay(){return this.actualState}get stateColor(){const e=this.actualState;return(0,o.uU)(e)}get isEnabled(){return"sriovNetworkDeviceEnabled"===this.status?.status&&this.spec?.numVFs>0}enableDevice(e=this){this.$dispatch("promptModal",{resources:e,component:"EnableSriovDevice"})}async disableDevice(){const e=this.spec.numVFs;try{this.spec.numVFs=0,await this.save()}catch(t){this.spec.numVFs=e,this.$dispatch("growl/fromError",{title:this.t("generic.notification.title.error",{name:(0,i.ZD)(this.metadata.name)}),err:t},{root:!0})}}get realNodeName(){const e=this.$rootGetters["currentProduct"].inStore,t=this.spec?.nodeName,n=this.$rootGetters[`${e}/all`](a.NW),r=n.find((e=>e.id===t));return r?.nameDisplay||""}get numVFs(){return this.spec?.numVFs}get childDevice(){return s.rk.PCI_DEVICE}}},95311:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n(38991),i=n(78359),o=n(32766);const a={enabled:{displayKey:"generic.enabled",color:"bg-success"},pending:{displayKey:"generic.inProgress",color:"bg-info"},disabled:{displayKey:"generic.disabled",color:"bg-warning"},error:{displayKey:"generic.disabled",color:"bg-warning"}};class s extends r.A{get _availableActions(){const e=super._availableActions;return e.push({action:"enablePassthroughBulk",enabled:!this.passthroughClaim&&!this.status.enabled,icon:"icon icon-fw icon-dot",label:"Enable Passthrough",bulkable:!0,bulkAction:"enablePassthroughBulk",weight:1},{action:"disablePassthrough",enabled:this.status.enabled,icon:"icon icon-fw icon-dot-open",label:"Disable Passthrough",bulkable:!0,weight:0}),e}get canYaml(){return!1}get canDelete(){return!1}goToDetail(){return!1}goToEdit(){return!1}get passthroughClaim(){const e=this.$getters["all"](o.rk.USB_CLAIM)||[];return!!this.status&&e.find((e=>e?.status?.nodeName===this.status?.nodeName&&e?.metadata?.name===this.metadata?.name))}get uniqueId(){return`${this.status?.vendorId}:${this.status?.deviceId}`}get claimedBy(){return this.passthroughClaim?.spec?.userName}get claimedByMe(){if(!this.passthroughClaim)return!1;const e=this.$rootGetters["isSingleProduct"];let t="admin";if(!e){const e=this.$rootGetters["auth/v3User"];t=e?.username||e?.id}return this.claimedBy===t}get claimStatusDisplay(){return this.passthroughClaim?this.status.enabled?a.enabled:a.pending:a.disabled}get stateDisplay(){const e=this.$rootGetters["i18n/t"];return e(this.claimStatusDisplay.displayKey)}get stateBackground(){return this.claimStatusDisplay.color}enablePassthroughBulk(e=this){this.$dispatch("promptModal",{resources:e,component:"EnableUSBPassthrough"})}async disablePassthrough(){try{if(!this.claimedByMe)throw new Error(this.$rootGetters["i18n/t"]("harvester.usb.cantUnclaim",{name:(0,i.ZD)(this.metadata.name)}));await this.passthroughClaim.remove()}catch(e){this.$dispatch("growl/fromError",{title:this.$rootGetters["i18n/t"]("harvester.usb.unclaimError",{name:(0,i.ZD)(this.metadata.name)}),err:e},{root:!0})}}get groupByNode(){const e=this.status?.nodeName||this.$rootGetters["i18n/t"]("generic.none");return this.$rootGetters["i18n/t"]("resourceTable.groupLabel.node",{name:(0,i.ZD)(e)})}get groupByDevice(){return this.status?.description}}},46505:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(38991),i=n(78359);const o={enabled:{displayKey:"generic.enabled",color:"bg-success"},pending:{displayKey:"generic.inProgress",color:"bg-info"},disabled:{displayKey:"generic.disabled",color:"bg-warning"},error:{displayKey:"generic.disabled",color:"bg-warning"}};class a extends r.A{get _availableActions(){const e=super._availableActions;return e.push({action:"enableVGpu",enabled:!this.isEnabled,icon:"icon icon-fw icon-dot",label:"Enable"},{action:"disableVGpu",enabled:this.isEnabled,icon:"icon icon-fw icon-dot-open",label:"Disable",bulkable:!0}),e}get canYaml(){return!1}get canDelete(){return!1}goToDetail(){return!1}goToEdit(){return!1}get isEnabled(){return!0===this?.spec?.enabled}get isEnabling(){return this.status?.vGPUStatus&&"vGPUConfigured"!==this.status?.vGPUStatus}get statusDisplay(){return this.isEnabling?o.pending:this.isEnabled?o.enabled:o.disabled}get stateDisplay(){const e=this.$rootGetters["i18n/t"];return e(this.statusDisplay.displayKey)}get stateBackground(){return this.statusDisplay.color}enableVGpu(e=this){this.$dispatch("promptModal",{resources:e,component:"EnableVGpuDevice"})}async disableVGpu(){const{vGPUTypeName:e,enabled:t}=this.spec;try{this.spec.vGPUTypeName=void 0,this.spec.enabled=!1,await this.save()}catch(n){this.spec.vGPUTypeName=e,this.spec.enabled=t,this.$dispatch("growl/fromError",{title:this.t("generic.notification.title.error",{name:(0,i.ZD)(this.metadata.name)}),err:n},{root:!0})}}get groupByNode(){const e=this.spec?.nodeName||this.$rootGetters["i18n/t"]("generic.none");return this.$rootGetters["i18n/t"]("resourceTable.groupLabel.node",{name:(0,i.ZD)(e)})}get vGpuAvailableTypes(){return this.status?.availableTypes?Object.keys(this.status.availableTypes):[]}}},24222:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(38991),i=n(97538),o=n(20652);class a extends r.A{get listLocation(){const e=this.harvesterResourcesInExplorer?"c-cluster-product-resource":`${o.KR}-c-cluster-resource`;return this.$rootGetters["type-map/optionsFor"](this.type).customRoute||{name:e,params:{product:this.$rootGetters["productId"],cluster:this.$rootGetters["clusterId"],resource:this.type}}}get parentLocationOverride(){return this.listLocation}get doneRoute(){return this.listLocation.name}get doneOverride(){return this.listLocation}get harvesterResourcesInExplorer(){return this.$rootGetters["productId"]!==o.KR}get _detailLocation(){const e=this.$getters["schemaFor"](this.type),t=this.id?.replace(/.*\//,""),n=this.harvesterResourcesInExplorer?`c-cluster-product-resource${e?.attributes?.namespaced?"-namespace":""}-id`:`${o.KR}-c-cluster-resource${e?.attributes?.namespaced?"-namespace":""}-id`,r={name:n,params:{product:this.$rootGetters["productId"],cluster:this.$rootGetters["clusterId"],resource:this.type,namespace:this.metadata?.namespace,id:t}};return this.harvesterResourcesInExplorer&&(r.query={as:"yaml"}),r}get forceYaml(){return this.harvesterResourcesInExplorer}get canViewInApi(){try{return this.hasLink("self")&&this.$rootGetters["prefs/get"](i.HZ)}catch{return this.hasLink("self")&&this.$rootGetters["prefs/get"](i.IJ)}}}},24481:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n(65852),i=n(32766),o=n(24222),a=n(20652);class s extends o["default"]{get detailLocation(){const e=(0,r.o8)(this._detailLocation);return e.params.resource=i.rk.CLOUD_TEMPLATE,e}get doneOverride(){const e=(0,r.o8)(this._detailLocation);return delete e.params.namespace,delete e.params.id,e.params.resource=i.rk.CLOUD_TEMPLATE,e.name=`${a.KR}-c-cluster-resource`,e}get parentNameOverride(){return this.$rootGetters["i18n/t"](`typeLabel."${i.rk.CLOUD_TEMPLATE}"`,{count:1})?.trim()}get parentLocationOverride(){return this.doneOverride}}},4987:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l}});var r=n(65852),i=n(43842),o=n(32766),a=n(20652);const s="Not Ready";class l extends i["default"]{get listLocation(){return this.$rootGetters["type-map/optionsFor"](this.type).customRoute||{name:`${a.KR}-c-cluster-resource`,params:{product:a.KR,cluster:this.$rootGetters["clusterId"],resource:this.type}}}get doneRoute(){return this.listLocation.name}get detailLocation(){const e=(0,r.o8)(this._detailLocation);return e.params.resource=o.rk.NETWORK_ATTACHMENT,e.name=`${a.KR}-c-cluster-resource-namespace-id`,e}get doneOverride(){const e=(0,r.o8)(this._detailLocation);return delete e.params.namespace,delete e.params.id,e.params.resource=o.rk.NETWORK_ATTACHMENT,e.name=`${a.KR}-c-cluster-resource`,e}get parentNameOverride(){return this.$rootGetters["i18n/t"](`typeLabel."${o.rk.NETWORK_ATTACHMENT}"`,{count:1})?.trim()}get parentLocationOverride(){return this.doneOverride}get inStore(){return this.$rootGetters["currentProduct"].inStore}get clusterNetworkResource(){const e=this.$rootGetters[`${this.inStore}/all`](o.rk.CLUSTER_NETWORK);return e.find((e=>e.id===this.clusterNetwork))}get clusterNetworkErrorMessage(){return this.clusterNetworkResource?this.clusterNetworkResource.isReady?"":this.t("harvester.clusterNetwork.notReady",{clusterNetwork:this.clusterNetwork}):this.t("harvester.clusterNetwork.notExist",{clusterNetwork:this.clusterNetwork})}get stateDisplay(){return this.clusterNetworkErrorMessage?s:super.stateDisplay}get stateBackground(){return this.stateDisplay===s?"bg-warning":super.stateBackground}get isNotReady(){return this.clusterNetworkErrorMessage}}},50826:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l}});var r=n(65852),i=n(4284),o=n(32766),a=n(20652),s=n(40322);class l extends s["default"]{get allOutputs(){return this.$rootGetters["harvester/all"](i.cm.CLUSTER_OUTPUT)||[]}get _detailLocation(){const e=this.$getters["schemaFor"](this.type),t=this.id?.replace(/.*\//,"");return{name:`${a.KR}-c-cluster-resource${e?.attributes?.namespaced?"-namespace":""}-id`,params:{product:a.KR,cluster:this.$rootGetters["clusterId"],resource:this.type,id:t,namespace:this.metadata.namespace}}}get detailLocation(){const e=(0,r.o8)(this._detailLocation);return e.params.resource=o.rk.CLUSTER_FLOW,e}get doneOverride(){const e=(0,r.o8)(this._detailLocation);return delete e.params.namespace,delete e.params.id,e.params.resource=o.rk.CLUSTER_FLOW,e.name=`${a.KR}-c-cluster-resource`,e}get parentNameOverride(){return this.$rootGetters["i18n/t"](`typeLabel."${o.rk.CLUSTER_FLOW}"`,{count:1})?.trim()}get parentLocationOverride(){return this.doneOverride}}},49039:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n(65852),i=n(32766),o=n(20652),a=n(15895);class s extends a["default"]{get _detailLocation(){const e=this.$getters["schemaFor"](this.type),t=this.id?.replace(/.*\//,"");return{name:`${o.KR}-c-cluster-resource${e?.attributes?.namespaced?"-namespace":""}-id`,params:{product:o.KR,cluster:this.$rootGetters["clusterId"],resource:this.type,id:t,namespace:this.metadata.namespace}}}get detailLocation(){const e=(0,r.o8)(this._detailLocation);return e.params.resource=i.rk.CLUSTER_OUTPUT,e}get doneOverride(){const e=(0,r.o8)(this._detailLocation);return delete e.params.namespace,delete e.params.id,e.params.resource=i.rk.CLUSTER_OUTPUT,e.name=`${o.KR}-c-cluster-resource`,e}get parentNameOverride(){return this.$rootGetters["i18n/t"](`typeLabel."${i.rk.CLUSTER_OUTPUT}"`,{count:1})?.trim()}get parentLocationOverride(){return this.doneOverride}}},40322:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return c}});var r=n(4284),i=n(65852),o=n(70546),a=n(32766),s=n(20652),l=n(66905);class c extends o["default"]{get allOutputs(){return this.$rootGetters["harvester/all"](r.cm.OUTPUT)||[]}get allClusterOutputs(){return this.$rootGetters["harvester/all"](r.cm.CLUSTER_OUTPUT)||[]}get _detailLocation(){const e=this.$getters["schemaFor"](this.type),t=this.id?.replace(/.*\//,"");return{name:`${s.KR}-c-cluster-resource${e?.attributes?.namespaced?"-namespace":""}-id`,params:{product:s.KR,cluster:this.$rootGetters["clusterId"],resource:this.type,id:t,namespace:this.metadata.namespace}}}get detailLocation(){const e=(0,i.o8)(this._detailLocation);return e.params.resource=a.rk.FLOW,e}get doneOverride(){const e=(0,i.o8)(this._detailLocation);return delete e.params.namespace,delete e.params.id,e.params.resource=a.rk.FLOW,e.name=`${s.KR}-c-cluster-resource`,e}get parentNameOverride(){return this.$rootGetters["i18n/t"](`typeLabel."${a.rk.FLOW}"`,{count:1})?.trim()}get parentLocationOverride(){return this.doneOverride}get loggingType(){return"harvester-kube-audit-log-ref"===this.spec.loggingRef?l.UQ.AUDIT:(this.spec.match||[]).find((e=>!!e?.select?.labels?.["app.kubernetes.io/name"]))?l.UQ.EVENT:l.UQ.LOGGING}}},15895:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l}});var r=n(65852),i=n(66247),o=n(32766),a=n(20652),s=n(66905);class l extends i["default"]{get _detailLocation(){const e=this.$getters["schemaFor"](this.type),t=this.id?.replace(/.*\//,"");return{name:`${a.KR}-c-cluster-resource${e?.attributes?.namespaced?"-namespace":""}-id`,params:{product:a.KR,cluster:this.$rootGetters["clusterId"],resource:this.type,id:t,namespace:this.metadata.namespace}}}get detailLocation(){const e=(0,r.o8)(this._detailLocation);return e.params.resource=o.rk.OUTPUT,e}get doneOverride(){const e=(0,r.o8)(this._detailLocation);return delete e.params.namespace,delete e.params.id,e.params.resource=o.rk.OUTPUT,e.name=`${a.KR}-c-cluster-resource`,e}get parentNameOverride(){return this.$rootGetters["i18n/t"](`typeLabel."${o.rk.OUTPUT}"`,{count:1})?.trim()}get parentLocationOverride(){return this.doneOverride}get url(){return this.detailLocation}get loggingType(){return"harvester-kube-audit-log-ref"===this.spec.loggingRef?s.UQ.AUDIT:s.UQ.LOGGING}}},65073:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n(65852),i=n(47201),o=n(32766),a=n(20652);class s extends i["default"]{get detailLocation(){const e=(0,r.o8)(this._detailLocation);return e.params.resource=o.rk.SETTING,e}get doneOverride(){const e=(0,r.o8)(this._detailLocation);return delete e.params.namespace,delete e.params.id,e.params.resource=o.rk.SETTING,e.name=`${a.KR}-c-cluster-resource`,e}get doneRoute(){return null}get parentNameOverride(){return this.$rootGetters["i18n/t"](`typeLabel."${o.rk.SETTING}"`,{count:1})?.trim()}get parentLocationOverride(){return this.doneOverride}get doneParams(){return{product:this.$rootGetters["productId"],cluster:this.$rootGetters["clusterId"],resource:o.rk.SETTING}}}},53942:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l}});var r=n(65852),i=n(75040),o=n(38991),a=n(32766),s=n(20652);class l extends o.A{get _detailLocation(){return{name:this.alertmanagerConfigDoneRouteName,params:{cluster:this.$rootGetters["clusterId"],resource:a.rk.ALERTMANAGERCONFIG,namespace:this.metadata?.namespace,id:this.name},hash:"#receivers",query:{as:"config"}}}get doneOverride(){const e=(0,r.o8)(this._detailLocation);return delete e.params.namespace,delete e.params.id,e.params.resource=a.rk.ALERTMANAGERCONFIG,e.name=`${s.KR}-c-cluster-resource`,e}get parentNameOverride(){return this.$rootGetters["i18n/t"](`typeLabel."${a.rk.ALERTMANAGERCONFIG}"`,{count:1})?.trim()}get parentLocationOverride(){return this.doneOverride}applyDefaults(){if(this.spec)return this.spec;const e=this.spec?.route?.receivers||[],t={receivers:[...e],route:{receivers:this.spec?.route?.receivers||[],groupBy:this.spec?.route?.groupBy||[],groupWait:this.spec?.route?.groupWait||"30s",groupInterval:this.spec?.route?.groupInterval||"5m",repeatInterval:this.spec?.route?.repeatInterval||"4h",match:this.spec?.route?.match||{},matchRe:this.spec?.route?.matchRe||{}}};(0,r.hZ)(this,"spec",t)}get _availableActions(){const e=super._availableActions;return e}getReceiverActions(e){return e.filter((e=>{if(e.divider)return!0;switch(e.action){case"goToEdit":return!0;case"goToEditYaml":return!0;case"promptRemove":return!0;default:return!1}}))}get alertmanagerConfigDoneRouteName(){return`${s.KR}-c-cluster-resource-namespace-id`}getCreateReceiverRoute(){return{name:`${s.KR}-c-cluster-alertmanagerconfig-alertmanagerconfigid-receiver`,params:{cluster:this.$rootGetters["clusterId"],alertmanagerconfigid:this.id},query:{mode:i.YQ,currentView:i.au}}}getReceiverDetailLink(e){return{name:`${s.KR}-c-cluster-alertmanagerconfig-alertmanagerconfigid-receiver`,params:{cluster:this.$rootGetters["clusterId"],alertmanagerconfigid:this.id,receiverName:e},query:{mode:i.nW,receiverName:e,currentView:i.au}}}getEditReceiverYamlRoute(e,t){return{name:`${s.KR}-c-cluster-alertmanagerconfig-alertmanagerconfigid-receiver`,params:{cluster:this.$rootGetters["clusterId"],alertmanagerconfigid:this.id},query:{mode:t||i.nW,receiverName:e,currentView:i.zD}}}getEditReceiverConfigRoute(e,t){return{name:`${s.KR}-c-cluster-alertmanagerconfig-alertmanagerconfigid-receiver`,params:{cluster:this.$rootGetters["clusterId"],alertmanagerconfigid:this.id},query:{mode:t||i.nW,receiverName:e,currentView:i.au}}}}},62878:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return h}});var r=n(24759),i=n(83929),o=n(71445),a=n(45901),s=n(65852),l=n(4284),c=n(20652),u=n(32766);const d=["c-","p-","user-","local"];class h extends i["default"]{get _availableActions(){const e=super._availableActions,t=e.findIndex((e=>"promptRemove"===e.action)),n={action:"promptRemove",altAction:"remove",label:this.t("action.remove"),icon:"icon icon-trash",bulkable:!0,enabled:this.canDelete,bulkAction:"promptRemove",weight:-10},i={action:"editNSQuota",label:this.t("harvester.modal.quota.editQuota"),icon:"icon icon-storage",enabled:!!this?.actions?.updateResourceQuota&&!!this?.actions?.deleteResourceQuota,weight:-11};return t>-1&&e.splice(t,1),(0,r.PT)(e,e.length-1,n),(0,r.PT)(e,e.length-5,i),e}editNSQuota(e=this){this.$dispatch("promptModal",{resources:e,snapshotSizeQuota:this.snapshotSizeQuota,component:"HarvesterQuotaDialog"})}promptRemove(e=this){this.$dispatch("promptModal",{resources:e,warningMessageKey:"promptRemove.confirmRelatedResource",component:"ConfirmRelatedToRemoveDialog"})}get nsResourceQuota(){const e=this.$rootGetters["currentProduct"].inStore,t=this.$rootGetters[`${e}/all`](u.rk.RESOURCE_QUOTA);return t.find((e=>e.metadata.namespace===this.id))}get snapshotSizeQuota(){return this.nsResourceQuota?.spec?.snapshotLimit?.namespaceTotalSnapshotSizeQuota}get isSystem(){const e=["fleet-default"];if(e.includes(this.metadata.name))return!0;if("true"===this.metadata?.annotations?.[o.eG])return!0;if(a.A.includes(this.metadata.name))return!0;if(this.metadata.name.endsWith("-system"))return!0;if(this.project)return this.project.isSystem;if("true"===(0,s.Jt)(this,`metadata.labels."${o.Hs.MANAGED}"`))return!0;const t=this.$rootGetters["systemNamespaces"].includes(this.metadata.name),n=!!d.some((e=>this.metadata.name.startsWith(e)));return t||n}get detailLocation(){const e=this.id?.replace(/.*\//,""),t={name:`${c.KR}-c-cluster-resource-id`,params:{product:this.$rootGetters["productId"],cluster:this.$rootGetters["clusterId"],resource:l.CU,namespace:this.metadata?.namespace,id:e}};return t}get hideDetailLocation(){return!!this.$rootGetters["currentProduct"].hideNamespaceLocation}}},55285:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return w}});var r=n(16735),i=n.n(r),o=n(4284),a=n(71445),s=n(2602),l=n(65852),c=n(24576),u=n.n(c),d=n(79260),h=n(62155),p=n(24759),f=n(78359),m=n(24222),g=n(20652),v=n(32766);const y=["topology.kubernetes.io/zone","topology.kubernetes.io/region"],b="healthy",_="warning";class w extends m["default"]{get _availableActions(){const e={action:"cordon",enabled:this.hasAction("cordon")&&!this.isCordoned,icon:"icon icon-fw icon-pause",label:this.t("harvester.action.cordon"),total:1},t={action:"uncordon",enabled:this.hasAction("uncordon"),icon:"icon icon-fw icon-play",label:this.t("harvester.action.uncordon"),total:1},n={action:"enableMaintenanceMode",enabled:this.hasAction("enableMaintenanceMode"),icon:"icon icon-fw icon-unlock",label:this.t("harvester.action.enableMaintenance"),total:1},r={action:"disableMaintenanceMode",enabled:this.hasAction("disableMaintenanceMode"),icon:"icon icon-fw icon-lock",label:this.t("harvester.action.disableMaintenance"),total:1},i={action:"enableCPUManager",enabled:this.cpuPinningFeatureEnabled&&this.hasAction("enableCPUManager")&&!this.isCPUManagerEnableInProgress&&!this.isCPUManagerEnabled&&!this.isEtcd,icon:"icon icon-fw icon-os-management",label:this.t("harvester.action.enableCPUManager"),total:1},o={action:"disableCPUManager",enabled:this.cpuPinningFeatureEnabled&&this.hasAction("disableCPUManager")&&!this.isCPUManagerEnableInProgress&&this.isCPUManagerEnabled&&!this.isEtcd,icon:"icon icon-fw icon-os-management",label:this.t("harvester.action.disableCPUManager"),total:1},a={action:"shutDown",enabled:this.hasAction("powerActionPossible")&&this.hasAction("powerAction")&&!this.isStopped&&!!this.inventory,icon:"icon icon-fw icon-dot",label:this.t("harvester.action.shutdown"),total:1},s={action:"powerOn",enabled:this.hasAction("powerActionPossible")&&this.hasAction("powerAction")&&this.isStopped&&!!this.inventory,icon:"icon icon-fw icon-play",label:this.t("harvester.action.powerOn"),total:1},l={action:"reboot",enabled:this.hasAction("powerActionPossible")&&this.hasAction("powerAction")&&!this.isStopped&&!!this.inventory,icon:"icon icon-fw icon-refresh",label:this.t("harvester.action.reboot"),total:1};return[e,t,n,r,i,o,a,s,l,...super._availableActions]}promptRemove(e=this){this.$dispatch("promptModal",{resources:e,warningMessageKey:"promptRemove.confirmRelatedResource",component:"ConfirmRelatedToRemoveDialog"})}remove(e=this){const t=Array.isArray(e)?e:[e];t.forEach((e=>{e.capiMachine?e.capiMachine.remove():e.remove()}))}get capiMachine(){const e=this.annotations?.[a.qt.CLUSTER_NAMESPACE],t=this.annotations?.[a.qt.MACHINE_NAME];if(e&&t){const n=this.$rootGetters["currentProduct"].inStore;return this.$rootGetters[`${n}/byId`](o.qt.MACHINE,`${e}/${t}`)}return null}get confirmRemove(){return!0}get consoleUrl(){const e=this.metadata?.annotations?.[s.r.HOST_CONSOLE_URL],t=/^[a-z]+:\/\//;return!!e?.match(t)&&e}get filteredSystemLabels(){const e=/(k3s|kubernetes|kubevirt|harvesterhci|k3os)+\.io/,t=i()(this.labels,((t,n)=>!e.test(n)));return y.map((e=>{const n=this?.metadata?.labels?.[e];n&&(t[e]=n)})),t}get nameDisplay(){return this.metadata?.annotations?.[s.r.HOST_CUSTOM_NAME]||this.name}get isKVMDisable(){const e=!this.metadata?.labels?.[s.r.KVM_AMD_CPU]&&!this.metadata?.labels?.[s.r.KVM_INTEL_CPU];return"false"===this.metadata?.labels?.[s.r.KVM_AMD_CPU]||"false"===this.metadata?.labels?.[s.r.KVM_INTEL_CPU]||e}get stateDisplay(){return this.isEnteringMaintenance?"Entering maintenance mode":this.isStopping?(0,f.TF)(d.jv.STOPPING):this.isStarting?(0,f.TF)(d.jv.STARTING):this.isStopped?(0,f.TF)(d.jv.OFF):this.isRebooting?"Rebooting":this.isMaintenance?"Maintenance":this.isCordoned?"Cordoned":(0,d.ch)(this.state)}get stateBackground(){return this.isStopped||this.isStopping||this.isStarting||this.isRebooting?(0,d.uU)(this.stateDisplay,!1,this.stateObj?.transitioning).replace("text-","bg-"):(0,d.uU)(this.stateDisplay,this.stateObj?.error,this.stateObj?.transitioning).replace("text-","bg-")}get stateDescription(){const e=this.metadata?.annotations?.[s.r.CURRENT_IP],t=this.metadata?.annotations?.[s.r.INIT_IP];return t&&e&&e!==t?this.t("harvester.host.inconsistentIP",{currentIP:e,initIP:t}):super.stateDescription}get stateObj(){const e=this.metadata?.annotations?.[s.r.CURRENT_IP],t=this.metadata?.annotations?.[s.r.INIT_IP];return t&&e&&e!==t&&(this.metadata.state.error=!0),this.metadata?.state}get detailLocation(){const e=(0,l.o8)(this._detailLocation);return e.params.resource=v.rk.HOST,e}get doneOverride(){const e=(0,l.o8)(this._detailLocation);return delete e.params.namespace,delete e.params.id,e.params.resource=v.rk.HOST,e.name=`${g.KR}-c-cluster-resource`,e}get parentNameOverride(){return this.$rootGetters["i18n/t"](`typeLabel."${v.rk.HOST}"`,{count:1})?.trim()}get parentLocationOverride(){return this.doneOverride}get internalIp(){const e=this.status?.addresses||[];return u()(e,(e=>"InternalIP"===e.type))?.address}get isMaster(){return void 0!==this.metadata?.labels?.[s.r.NODE_ROLE_MASTER]||void 0!==this.metadata?.labels?.[s.r.NODE_ROLE_CONTROL_PLANE]}cordon(){this.doActionGrowl("cordon",{})}uncordon(){this.doAction("uncordon",{})}enableMaintenanceMode(e=this){this.$dispatch("promptModal",{resources:e,component:"HarvesterMaintenanceDialog"})}disableMaintenanceMode(){this.doAction("disableMaintenanceMode",{})}enableCPUManager(){this.doActionGrowl("enableCPUManager",{})}disableCPUManager(){this.doActionGrowl("disableCPUManager",{})}get isUnSchedulable(){return"false"===this.metadata?.labels?.[s.r.NODE_SCHEDULABLE]||this.spec.unschedulable}get isMigratable(){const e=["in-progress","unavailable"];return!this.metadata?.annotations?.[s.r.MAINTENANCE_STATUS]&&!this.isUnSchedulable&&!e.includes(this.state)}get isCordoned(){return this.isUnSchedulable&&!this.isEtcd||this.hasAction("uncordon")}get isEtcd(){return this.metadata?.labels?.[s.r.NODE_ROLE_ETCD]}get isEnteringMaintenance(){return"running"===this.metadata?.annotations?.[s.r.MAINTENANCE_STATUS]}get isMaintenance(){return"completed"===this.metadata?.annotations?.[s.r.MAINTENANCE_STATUS]}get cpuPinningFeatureEnabled(){return this.$rootGetters["harvester-common/getFeatureEnabled"]("cpuPinning")}get isCPUManagerEnabled(){return"true"===this.metadata?.labels?.[s.r.CPU_MANAGER]}get isCPUManagerEnableInProgress(){return"requested"===this.cpuManagerUpdateStatus||"running"===this.cpuManagerUpdateStatus}get isCPUManagerEnableFailed(){return"failed"===this.cpuManagerUpdateStatus}get cpuManagerUpdateStatus(){try{const e=JSON.parse(this.metadata.annotations[s.r.NODE_CPU_MANAGER_UPDATE_STATUS]||"{}");return e.status||""}catch{return""}}get longhornDisks(){const e=this.$rootGetters["currentProduct"].inStore,t=this.$rootGetters[`${e}/byId`](o.oe.NODES,`longhorn-system/${this.id}`),n=t?.status?.diskStatus||{},r=t?.spec?.disks||{},i=Object.keys(n).map((e=>{const t=n[e]?.conditions||[];let i,o={},a={};return(0,p.cy)(t)?(o=(0,p.jq)(t,"type","Ready")||{},a=(0,p.jq)(t,"type","Schedulable")||{}):(o=t.Ready,a=t.Schedulable),i="True"!==o?.status||"True"!==a?.status?_:b,{...r[e],...n[e],name:e,storageReserved:r[e]?.storageReserved,storageAvailable:n[e]?.storageAvailable,storageMaximum:n[e]?.storageMaximum,storageScheduled:n[e]?.storageScheduled,readyCondition:o,schedulableCondition:a,state:i}}));return i}get pods(){const e=this.$rootGetters["currentProduct"].inStore,t=this.$rootGetters[`${e}/all`](o.Sm)||[];return t.filter((e=>e?.spec?.nodeName===this.id&&"removing"!==e?.metadata?.name))}get reserved(){try{return JSON.parse(this.metadata.annotations[s.r.HOST_REQUEST]||"{}")}catch{return{}}}get cpuReserved(){return(0,h.ao)(this.reserved.cpu||"0")}get memoryReserved(){return(0,h.ao)(this.reserved.memory||"0")}get canDelete(){const e=this.$rootGetters["harvester/all"](o.NW)||[];return e.length>1}get vlanStatuses(){const e=this.$rootGetters["currentProduct"].inStore,t=this.id,n=this.$rootGetters[`${e}/all`](v.rk.VLAN_STATUS);return n.filter((e=>e?.status?.node===t))||[]}get blockDevices(){const e=this.$rootGetters["currentProduct"].inStore,t=this.id,n=this.$rootGetters[`${e}/all`](v.rk.BLOCK_DEVICE);return n.filter((e=>e?.spec?.nodeName===t))||[]}get unProvisionedDisks(){const e=this.blockDevices||[];return e.filter((e=>e?.isProvisioned&&"Provisioned"!==e?.status?.provisionPhase))}get diskStatusCount(){const e=this.unProvisionedDisks.filter((e=>e.metadata.state.error))||[];let t=0;this.longhornDisks.map((e=>{"warning"===e.state&&t++}));const n=this.longhornDisks.length+e.length;return{total:n,errorCount:t+e.length,useful:n-t}}get manufacturer(){return this.metadata?.labels?.[s.r.NODE_MANUFACTURER]}get serialNumber(){return this.metadata?.labels?.[s.r.NODE_SERIAL_NUMBER]}get model(){return this.metadata?.labels?.[s.r.NODE_MODEL]}get isStopped(){const e=this.inventory||{};return"shutdown"===e.spec?.powerActionRequested&&"complete"===e.status?.powerAction?.actionStatus}get isStopping(){const e=this.inventory||{};return!Object.prototype.hasOwnProperty.call(e?.status?.powerAction||{},"actionStatus")&&"shutdown"===e.spec?.powerActionRequested}get isStarted(){const e=this.inventory||{};return"poweron"===e.spec?.powerActionRequested&&"complete"===e.status?.powerAction?.actionStatus}get isStarting(){const e=this.inventory||{};return!Object.prototype.hasOwnProperty.call(e?.status?.powerAction||{},"actionStatus")&&"poweron"===e.spec?.powerActionRequested}get isRebooting(){const e=this.inventory||{};return!Object.prototype.hasOwnProperty.call(e?.status?.powerAction||{},"actionStatus")&&"reboot"===e.spec?.powerActionRequested}async shutDown(e=this){try{await this.doAction("powerActionPossible",{}),await this.doAction("powerAction",{operation:"shutdown"}),await this.$dispatch("growl/success",{title:this.t("generic.notification.title.succeed"),message:this.t("harvester.host.powerAction.message.success",{name:this.name,operation:"shut down"})},{root:!0})}catch(t){await this.$dispatch("growl/error",{title:this.t("generic.notification.title.error"),message:t},{root:!0})}}async powerOn(e=this){const t="poweron";try{await this.doAction("powerActionPossible",{}),await this.doAction("powerAction",{operation:t}),await this.$dispatch("growl/success",{title:this.t("generic.notification.title.succeed"),message:this.t("harvester.host.powerAction.message.success",{name:this.name,operation:t})},{root:!0})}catch(n){await this.$dispatch("growl/error",{title:this.t("generic.notification.title.error"),message:n},{root:!0})}}async reboot(e=this){const t="reboot";try{await this.doAction("powerActionPossible",{}),await this.doAction("powerAction",{operation:t}),await this.$dispatch("growl/success",{title:this.t("generic.notification.title.succeed"),message:this.t("harvester.host.powerAction.message.success",{name:this.name,operation:t})},{root:!0})}catch(n){await this.$dispatch("growl/error",{title:this.t("generic.notification.title.error"),message:n},{root:!0})}}get inventory(){const e=this.$rootGetters["currentProduct"].inStore,t=this.$rootGetters[`${e}/all`](v.rk.INVENTORY)||[];return t.find((e=>e.id===`harvester-system/${this.id}`))}get warningMessages(){let e=[];return e=e.concat(this.inventory?.warningMessages||[]),e}}},15908:function(e,t,n){"use strict";n.r(t),n.d(t,{DATA_ENGINE_V1:function(){return v},DATA_ENGINE_V2:function(){return y},default:function(){return b}});var r=n(75040),i=n(74874),o=n.n(i),a=n(4284),s=n(71445),l=n(2602),c=n(24759),u=n(65852),d=n(79260),h=n(32766),p=n(24222),f=n(20652),m=n(82877);const g=["replica scheduling failed","precheck new replica failed"],v="v1",y="v2";class b extends p["default"]{applyDefaults(e,t){const n=t===r.dT?this.spec.accessModes:[],i=t===r.dT?this.spec.resources.requests.storage:null,o=t===r.dT?this.spec.storageClassName:"";this["spec"]={accessModes:n,storageClassName:o,volumeName:"",resources:{requests:{storage:i}}}}get availableActions(){let e=super._availableActions;if(this.isLonghornV2)e=e.filter((e=>"goToClone"!==e.action));else{const t=e.find((e=>"goToClone"===e.action));t&&(t.action="goToCloneVolume")}return this.isLonghorn&&this.isLonghornV2||(e=[{action:"exportImage",enabled:this.hasAction("export")&&!this.isEncrypted,icon:"icon icon-copy",label:this.t("harvester.action.exportImage")},{action:"snapshot",enabled:this.hasAction("snapshot"),icon:"icon icon-backup",label:this.t("harvester.action.snapshot")},...e]),[{action:"cancelExpand",enabled:this.hasAction("cancelExpand"),icon:"icon icon-backup",label:this.t("harvester.action.cancelExpand")},...e]}exportImage(e=this){this.$dispatch("promptModal",{resources:e,component:"HarvesterExportImageDialog"})}cancelExpand(e=this){this.doActionGrowl("cancelExpand",{})}snapshot(e=this){this.$dispatch("promptModal",{resources:e,component:"SnapshotDialog"})}goToCloneVolume(e=this){this.$dispatch("promptModal",{resources:e,component:"VolumeCloneDialog"})}cleanForNew(){this.$dispatch("cleanForNew",this),delete this.metadata.finalizers;const e=[l.r.IMAGE_ID,s.tC];this.metadata.annotations=o()(this.metadata.annotations,e)}get storageClass(){const e=this.$rootGetters["currentProduct"].inStore;return this.$rootGetters[`${e}/all`](a.fJ).find((e=>e.name===this.spec.storageClassName))}get canUpdate(){return this.hasLink("update")}get stateDisplay(){const e=this.relatedPV?.metadata?.annotations?.[l.r.VOLUME_ERROR],t=g.includes(e),n="Bound"===this?.status?.phase&&!e&&this.isLonghornVolumeReady?"Ready":"Not Ready",r=this?.status?.conditions||[];return"True"===(0,c.jq)(r,"type","Resizing")?.status?"Resizing":this.attachVM&&!e?"In-use":t?"Degraded":n}get state(){const e=this.relatedPV?.metadata?.annotations?.[l.r.VOLUME_ERROR],t=g.includes(e);let n="Bound"!==this?.status?.phase||e?"Not Ready":"Ready";const r=this?.status?.conditions||[];return t&&(n="Degraded"),"True"===(0,c.jq)(r,"type","Resizing")?.status&&(n="Resizing"),n}get stateColor(){const e=this.stateDisplay;return(0,d.uU)(e)}get stateDescription(){return super.stateDescription}get detailLocation(){const e=(0,u.o8)(this._detailLocation);return e.params.resource=h.rk.VOLUME,e}get doneOverride(){const e=(0,u.o8)(this._detailLocation);return delete e.params.namespace,delete e.params.id,e.params.resource=h.rk.VOLUME,e.name=`${f.KR}-c-cluster-resource`,e}get parentNameOverride(){return this.$rootGetters["i18n/t"](`typeLabel."${h.rk.VOLUME}"`,{count:1}).trim()}get parentLocationOverride(){return this.doneOverride}get phaseState(){return this.status?.phase||"N/A"}get attachVM(){const e=this.$rootGetters["harvester/all"](h.rk.VM)||[],t=e=>{const t=e.spec.template?.spec?.volumes||[];return e.namespace===this.namespace&&t.length>0?t.find((e=>e.persistentVolumeClaim?.claimName===this.name)):null};return e.find(t)}get isAvailable(){const e=["Resizing","Not Ready"];return!e.includes(this.stateDisplay)}get volumeSort(){const e=this.spec?.resources?.requests?.storage||0;return parseInt(e)}get isSystemResource(){const e=this.$rootGetters["systemNamespaces"];return!!e.includes(this.metadata?.namespace)}get isEncrypted(){return"true"===this.relatedPV?.spec.csi.volumeAttributes.encrypted}get longhornVolume(){const e=this.$rootGetters["currentProduct"].inStore;return this.$rootGetters[`${e}/all`](a.oe.VOLUMES).find((e=>e.metadata?.name===this.spec?.volumeName))}get longhornEngine(){const e=this.$rootGetters["currentProduct"].inStore;return this.$rootGetters[`${e}/all`](a.oe.ENGINES).find((e=>e.spec?.volumeName===this.spec?.volumeName))}get isLonghornVolumeReady(){let e=!0;const t=this.longhornVolume||{},n=(t?.status?.conditions||[]).find((e=>"Scheduled"===e.type||"scheduled"===e.type))||{};return(""===t?.spec?.nodeID&&"detached"!==t?.status?.state||"detached"===t?.status?.state&&"True"!==n.status||"faulted"===t?.status?.robustness||t?.status?.restoreRequired||"failed"===t?.status?.cloneStatus?.state)&&(e=!1),e}get relatedVolumeSnapshotCounts(){const e=this.$rootGetters["harvester/all"](h.qY);return e.filter((e=>{const t=`${e.metadata?.namespace}/${e.spec?.source?.persistentVolumeClaimName}`,n=e.metadata?.ownerReferences?.[0]?.kind;return t===this.id&&"PersistentVolumeClaim"===n}))}get originalSnapshot(){return this.spec?.dataSource?this.$rootGetters["harvester/all"](h.qY).find((e=>e.metadata?.name===this.spec.dataSource.name)):null}get source(){const e=(0,u.Jt)(this,`metadata.annotations."${l.r.IMAGE_ID}"`);return e?"image":"data"}get warnDeletionMessage(){return this.t("harvester.volume.promptRemove.tips")}get relatedPV(){return this.$rootGetters["harvester/all"](a.PV).find((e=>e.metadata?.name===this.spec?.volumeName))}get volumeProvider(){return this.relatedPV?.spec.csi?.driver}get dataEngine(){return this.relatedPV?.spec.csi?.volumeAttributes?.dataEngine}get isLvm(){return this.volumeProvider===m.LVM_DRIVER}get isLonghorn(){return this.volumeProvider===a.lI}get isLonghornV2(){return this.dataEngine===y}get resourceExternalLink(){const e=window.location.host,{params:t}=this.currentRoute(),n=this.spec?.volumeName;return n?{tipsKey:"harvester.volume.externalLink.tips",url:`https://${e}/k8s/clusters/${t.cluster}/api/v1/namespaces/longhorn-system/services/http:longhorn-frontend:80/proxy/#/volume/${n}`}:null}get customValidationRules(){return[{nullable:!1,path:"spec.resources.requests.storage",required:!0,validators:["volumeSize"]}]}}},14426:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return x}});var r=n(87526),i=n.n(r),o=n(24759),a=n(65852),s=n(4284),l=n(24222);const c="POD_NOT_SCHEDULABLE",u="POD_FAILED",d="POD_CRASHLOOP_BACKOFF",h="POD_STATUS_UNKNOWN",p="POD_CONTAINER_FAILING",f="POD_NOT_READY",m="POD_STATUS_PENDING",g="POD_STATUS_COMPLETED",v="POD_STATUS_SUCCEEDED",y="POD_STATUS_RUNNING",b=["ImagePullBackOff","ErrImagePull","CrashLoopBackOff"],_=["Error"],w={Failed:u,CrashLoopBackOff:d,Unknown:h},E={Pending:m,Running:y,Completed:g,Succeeded:v},S={terminated:({reason:e,exitCode:t})=>`Terminated with ${e}${t?` (exit code ${t}).`:"."}`,waiting:({reason:e})=>`Waiting (${e}).`};class x extends l["default"]{get inStore(){return this.$rootGetters["currentProduct"].inStore}get nodes(){return this.$rootGetters[`${this.inStore}/all`](s.NW)}get node(){const{nodeName:e}=this.spec;return this.nodes.filter((t=>t?.metadata?.name===e))[0]}get getPodStatus(){return this.isNotSchedulable||this.hasErrorStatus||this.isContainerFailing||this.isNotReady||this.hasOkStatus||{status:h}}get isNotSchedulable(){if(!this.isPodSchedulable){const e=(0,a.Jt)(this,"status.conditions"),t=(0,o.jq)(e,"type","PodScheduled");return{status:c,message:t.message||"Pod scheduling failed."}}return null}get hasErrorStatus(){const e=w[this?.status?.phase];return e?{status:e,message:this.getContainerStatusReason(this.findFailingContainerStatus)}:null}get isPodSchedulable(){const e=(0,a.Jt)(this,"status.conditions"),t=(0,o.jq)(e,"type","PodScheduled");return!(t&&"True"!==t.status&&"Unschedulable"===t.reason)}get findFailingContainerStatus(){return((0,a.Jt)(this,"status.containerStatuses"),[]).find((e=>!e.ready&&(i()(b,(0,a.Jt)(e,"state.waiting.reason"))||i()(_,(0,a.Jt)(e,"state.terminated.reason")))))}get getContainerStatusReason(){return e=>{if(e){const t=Object.getOwnPropertyNames(e.state).find((t=>!!e.state[t].reason));if(t){const n=e.state[t];return n.message||S[t]&&S[t](n)||t}}}}get isContainerFailing(){const e=this.findFailingContainerStatus;return e?{status:p,message:this.getContainerStatusReason(e)}:null}get isNotReady(){const e=this.findPodFalseStatusConditionMessage;return e?{status:f,message:e}:null}get hasOkStatus(){const e=E[this?.status?.phase];return e?{status:e}:null}get findPodFalseStatusConditionMessage(){const e=this.getPodFalseStatusConditions;if(e.length>0)return e[0].message||`Step: ${e[0].type}`}get getPodFalseStatusConditions(){const e=(0,a.Jt)(this,"status.conditions")||[];return e.filter((e=>"True"!==e.status))}}},36577:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l}});var r=n(65852),i=n(32766),o=n(20652),a=n(62737),s=n(4284);class l extends a["default"]{get _detailLocation(){const e=this.$getters["schemaFor"](this.type),t=this.id?.replace(/.*\//,"");return{name:`${o.KR}-c-cluster-resource${e?.attributes?.namespaced?"-namespace":""}-id`,params:{product:o.KR,cluster:this.$rootGetters["clusterId"],resource:this.type,id:t,namespace:this.metadata.namespace}}}get detailLocation(){const e=(0,r.o8)(this._detailLocation);return e.params.resource=i.rk.SECRET,e}get doneOverride(){const e=(0,r.o8)(this._detailLocation);return delete e.params.namespace,delete e.params.id,e.params.resource=i.rk.SECRET,e.name=`${o.KR}-c-cluster-resource`,e}get doneRoute(){return this.doneOverride.name}get parentNameOverride(){return this.$rootGetters["i18n/t"](`typeLabel."${i.rk.SECRET}"`,{count:1})?.trim()}get parentLocationOverride(){return this.doneOverride}get isSystem(){const e=this.$rootGetters["currentProduct"].inStore,t=this.$rootGetters[`${e}/all`](s.CU).filter((e=>!0===e.isSystem)).map((e=>e.metadata.name));return t.includes(this.metadata.namespace)}get details(){const e=[{label:this.t("secret.type"),content:this.typeDisplay}];return this.cn&&e.push({label:this.t("secret.certificate.cn"),content:this.plusMoreNames?`${this.cn} ${this.t("secret.certificate.plusMore",{n:this.plusMoreNames})}`:this.cn}),this.issuer&&e.push({label:this.t("secret.certificate.issuer"),content:this.issuer}),this.notAfter&&e.push({label:"Expires",formatter:"Date",formatterOpts:{class:this.dateClass},content:this.notAfter}),e}}},87214:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l}});var r=n(65852),i=n(4284),o=n(32766),a=n(24222),s=n(20652);class l extends a["default"]{get availableActions(){return[{action:"restoreSnapshot",enabled:this.hasAction("restore"),icon:"icon icon-refresh",label:this.t("harvester.action.restore")},...super._availableActions]}get canClone(){return!1}restoreSnapshot(e=this){this.$dispatch("promptModal",{resources:e,component:"RestoreSnapshotDialog"})}get detailLocation(){const e=(0,r.o8)(this._detailLocation);return e.params.resource=o.rk.SNAPSHOT,e}get doneOverride(){const e=(0,r.o8)(this._detailLocation);return delete e.params.namespace,delete e.params.id,e.params.resource=o.rk.SNAPSHOT,e.name=`${s.KR}-c-cluster-resource`,e}get parentNameOverride(){return this.$rootGetters["i18n/t"](`typeLabel."${o.rk.SNAPSHOT}"`,{count:1})?.trim()}get parentLocationOverride(){return this.doneOverride}get volume(){const e=this.$rootGetters["currentProduct"].inStore,t=this?.metadata?.namespace,n=this?.spec?.source?.persistentVolumeClaimName,r=this.$rootGetters[`${e}/byId`](i.YH,`${t}/${n}`);return r}}},82877:function(e,t,n){"use strict";n.r(t),n.d(t,{LVM_DRIVER:function(){return c},default:function(){return u}});var r=n(65852),i=n(11341),o=n(32766),a=n(20652),s=n(4284),l=n(15908);const c="lvm.driver.harvesterhci.io";class u extends i["default"]{get detailLocation(){const e=(0,r.o8)(this._detailLocation);return e.params.resource=o.rk.STORAGE,e.name=`${a.KR}-c-cluster-resource-id`,e}get doneOverride(){const e=(0,r.o8)(this._detailLocation);return delete e.params.namespace,delete e.params.id,e.params.resource=o.rk.STORAGE,e.name=`${a.KR}-c-cluster-resource`,e}get parentLocationOverride(){return this.doneOverride}get parentNameOverride(){return this.$rootGetters["i18n/t"](`typeLabel."${o.rk.STORAGE}"`,{count:1})?.trim()}get longhornVersion(){return this.provisioner===s.lI?(this.parameters||{}).dataEngine||l.DATA_ENGINE_V1:null}get provisionerDisplay(){let e="";return this.provisioner===s.lI&&(e=`harvester.storage.storageClass.longhorn.${this.longhornVersion}.label`),this.provisioner===c&&(e="harvester.storage.storageClass.lvm.label"),e?this.$rootGetters["i18n/t"](e):this.provisioner}get isLonghornV2(){return this.provisioner===s.lI&&this.longhornVersion===l.DATA_ENGINE_V2}get longhornV2LVMSupport(){return this.$rootGetters["harvester-common/getFeatureEnabled"]("longhornV2LVMSupport")}get volumeEncryptionFeatureEnabled(){return this.$rootGetters["harvester-common/getFeatureEnabled"]("volumeEncryption")}}},52528:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var r=n(20246),i=n.n(r),o=n(95479),a=n.n(o),s=n(2602),l=n(24222),c=n(32766);class u extends l["default"]{get availableActions(){const e=super._availableActions;if("harvester-system/rancher-vcluster"===this.id){const t={action:"goToRancher",enabled:this.spec.enabled,icon:"icon icon-external-link",label:this.t("harvester.addons.rancherVcluster.accessRancher")};e.push(t)}const t={action:"toggleAddon",enabled:!0,icon:this.spec.enabled?"icon icon-pause":"icon icon-play",label:this.spec.enabled?this.t("generic.disable"):this.t("generic.enable")};return e.unshift(t),e}async toggleAddon(){const e=this.spec.enabled;try{if(!this.spec.enabled&&"rancher-vcluster/rancher-vcluster"===this.id){const e=i().load(this.spec.valuesContent);if(!e.hostname||!e.bootstrapPassword)return void this.goToEdit()}this.spec.enabled=!this.spec.enabled,await this.save()}catch(t){this.spec.enabled=e,this.$dispatch("growl/fromError",{title:this.t("harvester.addons.switchFailed",{action:e?this.t("generic.disable"):this.t("generic.enable"),name:this.metadata.name}),err:t},{root:!0})}}goToRancher(){const e=i().load(this.spec.valuesContent);window.open(`https://${e.hostname}`,"_blank")}get rancherHostname(){const e=i().load(this.spec.valuesContent);return`https://${e.hostname}`}get stateColor(){const e=this.stateDisplay;return e?.toLowerCase().includes("enabled")||e?.toLowerCase().includes("success")?"text-success":"Disabled"===e?"text-darker":e?.toLowerCase().includes("ing")?"text-info":e?.toLowerCase().includes("failed")||e?.toLowerCase().includes("error")?"text-error":"text-info"}get stateDisplay(){const e=this?.status?.status;return e?e.startsWith("Addon")?a()(e.replace("Addon","")):e:"Disabled"}get stateDescription(){const e=(this.status?.conditions||[]).find((e=>"OperationFailed"===e.type));return e?.message||super.stateDescription}get parentNameOverride(){return this.$rootGetters["i18n/t"](`typeLabel."${c.rk.ADD_ONS}"`,{count:1})?.trim()}get displayName(){const e="true"===this.metadata?.labels?.[s.r.ADDON_EXPERIMENTAL];return e?`${this.metadata.name} (${this.t("generic.experimental")})`:this.metadata.name}get customValidationRules(){let e=[];return"rancher-monitoring"===this.metadata.name&&(e=[{nullable:!1,path:"spec.valuesContent",validators:["rancherMonitoring"]}]),"rancher-logging"===this.metadata.name&&(e=[{nullable:!1,path:"spec.valuesContent",validators:["rancherLogging"]}]),e}}},46933:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(32766),i=n(24222);class o extends i["default"]{get childParts(){const e=this.$rootGetters["currentProduct"].inStore,t=this.$rootGetters[`${e}/all`](r.rk.BLOCK_DEVICE),n=t.filter((e=>e.status?.deviceStatus?.parentDevice===this.spec?.devPath&&e.spec.nodeName===this.spec.nodeName));return n}get isChildPartProvisioned(){const e=this.childParts.filter((e=>e.isProvisioned))||[];return e.length>0}get provisionPhase(){const e=this?.status?.provisionPhase;let t="",n="";switch(e){case"Provisioned":t="bg-success",n="icon-checkmark";break;case"Unprovisioning":t="bg-warning",n="icon-warning";break;case"NotProvisioned":t="bg-error",n="icon-warning";break;default:break}return{label:e,color:t,icon:n}}get displayName(){return this.status?.deviceStatus?.devPath||this?.metadata?.name}get isFormatting(){const e=this?.status?.conditions||[],t=e.find((e=>"Formatting"===e.type))||{};return"True"===t.status}get isProvisioned(){return this.spec?.fileSystem?.provisioned||this.spec?.provision}}},72193:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(65852),i=n(24759),o=n(24222);class a extends o["default"]{get stateDisplay(){const e=(0,r.Jt)(this,"status.conditions"),t=((0,i.jq)(e,"type","validated")||{}).status;return"True"===t?"Validated":"Not Validated"}}},26422:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return c}});var r=n(24222),i=n(65852),o=n(24759),a=n(79260),s=n(75040),l=n(78359);class c extends r["default"]{detailPageHeaderActionOverride(e){if(e===s.YQ)return this.t("harvester.schedule.createTitle")}get _availableActions(){const e=["goToClone"],t=super._availableActions.filter((t=>{if(!e.includes(t.action))return t}));return[{action:"resumeSchedule",enabled:(0,l.TF)(this.state)===a.xj.suspended.label,icon:"icons icon-play",label:this.t("harvester.action.resumeSchedule")},{action:"suspendSchedule",enabled:(0,l.TF)(this.state)===a.xj.active.label,icon:"icons icon-pause",label:this.t("harvester.action.suspendSchedule")},...t]}async suspendSchedule(){try{this.spec.suspend=!0,await this.save()}catch(e){this.spec.suspend=!1,this.$dispatch("growl/fromError",{title:this.t("generic.notification.title.error",{name:(0,l.ZD)(this.metadata.name)}),err:e},{root:!0})}}async resumeSchedule(){try{this.spec.suspend=!1,await this.save()}catch(e){this.spec.suspend=!0,this.$dispatch("growl/fromError",{title:this.t("generic.notification.title.error",{name:(0,l.ZD)(this.metadata.name)}),err:e},{root:!0})}}get state(){const e=(0,i.Jt)(this,"status.conditions"),t="True"===(0,o.jq)(e,"type","BackupSuspend")?.status;return t?a.xj.suspended.label:this.metadata.state.name}get stateDescription(){const e=(this.status?.conditions||[]).find((e=>"BackupSuspend"===e.type));return(0,l.TF)(e?.message)||super.stateDescription}get stateBackground(){return(0,a.uU)(this.stateDisplay).replace("text-","bg-")}get stateColor(){return(0,a.uU)(this.state)}get stateDisplay(){return(0,a.ch)(this.state)}}},96214:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l}});var r=n(24759),i=n(32766),o=n(50889),a=n(20652),s=n(24222);class l extends s["default"]{get _availableActions(){const e=["cloneYaml","download","goToEditYaml","goToViewYaml","goToViewConfig","promptRemove"],t=o.gh[this.id];let n=super._availableActions;(t?.readOnly||this.fromEnv)&&e.push("goToEdit"),n=n.filter((t=>!e.includes(t.action)));const r=n.find((e=>"goToEdit"===e.action));r&&(r.label=this.t("advancedSettings.edit.label"));const a=this.$getters["schemaFor"](i.rk.UPGRADE),s=!!a?.collectionMethods.find((e=>["post"].includes(e.toLowerCase())));if(this.id===o.EP.SERVER_VERSION&&s){const e=this.$getters["all"](i.rk.UPGRADE).find((e=>e.isLatestUpgrade));n.unshift({action:"goToAirgapUpgrade",enabled:!0,icon:"icon icon-refresh",label:this.t("harvester.upgradePage.upgrade"),disabled:!!e&&!e?.isUpgradeSucceeded})}return n}goToAirgapUpgrade(){const e=this.currentRouter();e.push({name:`${a.KR}-c-cluster-airgapupgrade`,params:{cluster:this.$rootGetters["currentCluster"].id,product:"harvester"}})}get customValue(){if(this.metadata.name===o.EP.STORAGE_NETWORK)try{return JSON.stringify(JSON.parse(this.value),null,2)}catch(e){}return!1}get customFormatter(){if(this.metadata.name===o.EP.STORAGE_NETWORK)try{return JSON.stringify(JSON.parse(this.value),null,2),"json"}catch(e){}return!1}get backupTargetIsEmpty(){return!this.value}get errMessage(){const e=(0,r.jq)(this?.status?.conditions||[],"type","configured")||{};return!0===this.metadata?.state?.error?this.metadata.state.message:"False"===e?.status&&e.message}get valueOrDefaultValue(){return this.value||this.default}get currentVersion(){return this.value||""}get displayValue(){return"backup-target"===this.id?this.parseValue?.endpoint||" ":null}get parseValue(){let e={};try{e=JSON.parse(this.value)}catch(t){e=JSON.parse(this.default)}return e}get isS3(){return"s3"===this.parseValue.type}get isNFS(){return"nfs"===this.parseValue.type}get customValidationRules(){const e=this.id,t=[];switch(e){case"backup-target":t.push({nullable:!1,path:"value",type:"string",validators:["backupTarget"]});break;case"ntp-servers":t.push({nullable:!0,path:"value",validators:["ntpServers"]});break}return t}}},25661:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(24222);class i extends r["default"]{get bundleState(){const e=this?.status?.state;return e}get bundleMessage(){const e=this?.metadata?.state;return!!e.error&&e?.message}get precent(){return this?.status?.progress/100||0}get customValidationRules(){return[{nullable:!1,path:"spec.description",required:!0,translationKey:"harvester.modal.bundle.description"}]}}},39334:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return c}});var r=n(20246),i=n.n(r),o=n(4284),a=n(79260),s=n(2602),l=n(24222);class c extends l["default"]{get isLatestUpgrade(){return"true"===this?.metadata?.labels?.[s.r.LATEST_UPGRADE]}get isUpgradeFailed(){return"Failed"===this?.metadata?.labels?.[s.r.UPGRADE_STATE]}get isUpgradeSucceeded(){return"Succeeded"===this?.metadata?.labels?.[s.r.UPGRADE_STATE]}get hasReadMessage(){return"true"===this?.metadata?.labels?.[s.r.REAY_MESSAGE]}get repoInfo(){const e=this?.status?.repoInfo;if(e)try{return i().load(e)}catch(t){return!1}return!1}get stateDisplay(){const e=this?.status?.conditions||[],t=e.find((e=>"Completed"===e.type)),n=t?.status;return"True"===n?"Success":"False"===n?"Fail":"on-going"}get stateColor(){return(0,a.uU)(this.stateDisplay)}get nodes(){return this.$rootGetters["harvester/all"](o.NW)}get upgradeImage(){return this?.status?.imageID}get upgradeMessage(){const e=[],t=this?.status?.nodeStatuses||{},n=this?.status?.conditions||[];for(const r in t){const n=t[r]?.state;t[r]&&"Succeeded"!==n&&"succeeded"!==n&&e.push({id:r,message:`The node ${r} is ${t[r]?.state}`})}for(let r=0;r"RepoReady"===e.type)),n="True"===t?.status;return{isReady:n,message:t?.message||t?.reason}}get overallMessage(){const e=this?.status?.conditions||[],t=e.find((e=>"Completed"===e.type)),n="False"===t?.status,r=t?.message||t?.reason;return n?r:""}get upgradeImageMessage(){const e=this?.status?.conditions||[],t=e.find((e=>"ImageReady"===e.type)),n="True"===t?.status,r=t?.message||t?.reason;return n?"":r}get nodeUpgradeMessage(){const e=[],t=this?.status?.nodeStatuses||{};for(const n in t){const r=t[n]?.state,i=t[n]?.message;let o=0;"Upgrading"===r?o=50:"Succeeded"!==r&&"succeeded"!==r||(o=100),e.push({name:n,state:r,percent:o,message:i})}for(const n of this.nodes){const t=e.find((e=>e.name===n.id));t||e.push({name:n.id,state:"Pending",percent:0})}return e}get nodeTotalPercent(){let e=0;for(let r=0;r"NodesUpgraded"===e.type));return 100!==e||n||(e=99),e}get sysServiceUpgradeMessage(){let e=0,t="Pending";const n=[],r=this?.status?.conditions||[];for(let i=0;ie.replace(t,""))),r=n.sort(((e,t)=>{const n=e.replace(/(\d{2})-(\d{2})-(\d{2})T(\d{2})-(\d{2})-(\d{2})Z/,"$1-$2-$3T$4:$5:$6Z"),r=t.replace(/(\d{2})-(\d{2})-(\d{2})T(\d{2})-(\d{2})-(\d{2})Z/,"$1-$2-$3T$4:$5:$6Z");return Date.parse(r)-Date.parse(n)})).map((e=>`${t}${e}`));return r[0]}}},64778:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return h}});var r=n(65852),i=n(24759),o=n(79260),a=n(2602),s=n(75040),l=n(32766),c=n(20652),u=n(41837),d=n(24222);class h extends d["default"]{detailPageHeaderActionOverride(e){const t=this.currentRoute();if(e===s.YQ)return t.params.resource===l.rk.BACKUP?this.t("harvester.backup.title"):this.t("harvester.vmSnapshot.title")}get detailLocation(){const e=(0,r.o8)(this._detailLocation);return e.params.resource=l.rk.BACKUP,e}get doneOverride(){const e=this.currentRoute(),t=(0,r.o8)(this._detailLocation);return delete t.params.namespace,delete t.params.id,t.params.resource=e.params.resource,t.name=`${c.KR}-c-cluster-resource`,t}get parentNameOverride(){const e=this.currentRoute();return this.$rootGetters["i18n/t"](`typeLabel."${e.params.resource}"`,{count:1})?.trim()}get parentLocationOverride(){return this.doneOverride}get _availableActions(){const e=["goToEdit","cloneYaml","goToClone","download"],t=super._availableActions.filter((t=>{if(!e.includes(t.action))return t})),n=this.$getters["schemaFor"](l.rk.VM);let r=!0;return n&&!n?.collectionMethods.find((e=>["post"].includes(e.toLowerCase())))&&(r=!1),[{action:"restoreExistingVM",enabled:r&&this.attachVmExisting&&this?.status?.readyToUse,icon:"icons icon-refresh",label:this.t("harvester.action.restoreExistingVM")},{action:"restoreNewVM",enabled:r&&this?.status?.readyToUse,icon:"icons icon-backup",label:this.t("harvester.action.restoreNewVM")},...t]}restoreExistingVM(e=this){const t=this.currentRouter(),n=e.spec.type===u.a.BACKUP?l.rk.BACKUP:l.rk.VM_SNAPSHOT;t.push({name:`${c.KR}-c-cluster-resource-create`,params:{resource:n},query:{restoreMode:"existing",resourceName:e.name}})}restoreNewVM(e=this){const t=this.currentRouter(),n=e.spec.type===u.a.BACKUP?l.rk.BACKUP:l.rk.VM_SNAPSHOT;t.push({name:`${c.KR}-c-cluster-resource-create`,params:{resource:n},query:{restoreMode:"new",resourceName:e.name}})}get state(){let e="Pending";const t=(0,r.Jt)(this,"status.conditions"),n="True"===(0,i.jq)(t,"type","InProgress")?.status,o="True"===(0,i.jq)(t,"type","Ready")?.status;return this?.status?.readyToUse?e="Ready":n?e="Progressing":o||(e="error"),e}get stateColor(){const e=this.state;return(0,o.uU)(e)}get sourceSchedule(){return this.metadata?.annotations[a.r.SVM_BACKUP_ID]}get attachVM(){return this.spec.source.name}get backupContentName(){return this?.status?.virtualMachineBackupContentName||""}get backupProgress(){return{type:u.a.BACKUP,percentage:void 0!==this.status?.progress||this.status?.readyToUse?this.status?.progress:0,details:{volumes:this.status?.volumeBackups}}}get backupTarget(){return this?.status?.backupTarget?.endpoint||""}get attachVmExisting(){const e=this.$rootGetters["harvester/all"](l.rk.VM);return!!e.find((e=>e.metadata.name===this.attachVM))}remove(){const e={...arguments};return e.params={propagationPolicy:"Foreground"},this._remove(e)}}},38287:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return v}});var r=n(71445),i=n(2602),o=n(65852),a=n(62155),s=n(78359),l=n(79260),c=n(75040),u=n(32766),d=n(20652),h=n(24222),p=n(66905);const{CSI_PROVISIONER_SECRET_NAME:f,CSI_PROVISIONER_SECRET_NAMESPACE:m}=p.Et;function g(){function e(e,t=[]){const n=Array.isArray((0,o.Jt)(this,"status.conditions"))?this.status.conditions:t;return n.find((t=>t.type===e))}const t=e.call(this,"Initialized"),n=e.call(this,"Imported"),r=100===this.status?.progress;return![t?.status,n?.status].includes("False")&&(r&&!0)}class v extends h["default"]{get availableActions(){let e=super._availableActions;const t=["goToEditYaml"];e=e.filter((e=>!t.includes(e.action)));const n=this.$getters["schemaFor"](u.rk.VM);let r=!0;return n&&!n?.collectionMethods.find((e=>["post"].includes(e.toLowerCase())))&&(r=!1),[{action:"createFromImage",enabled:r,icon:"icon icon-circle-plus",label:this.t("harvester.action.createVM"),disabled:!this.isReady},{action:"encryptImage",enabled:this.volumeEncryptionFeatureEnabled&&!this.isEncrypted,icon:"icon icon-lock",label:this.t("harvester.action.encryptImage"),disabled:!this.isReady},{action:"decryptImage",enabled:this.volumeEncryptionFeatureEnabled&&this.isEncrypted,icon:"icon icon-unlock",label:this.t("harvester.action.decryptImage"),disabled:!this.isReady},{action:"download",enabled:this.links?.download,icon:"icon icon-download",label:this.t("asyncButton.download.action")},...e]}encryptImage(){const e=this.currentRouter();e.push({name:`${d.KR}-c-cluster-resource-create`,params:{resource:u.rk.IMAGE},query:{image:JSON.stringify({metadata:{name:this.metadata.name,namespace:this.metadata.namespace}}),fromPage:u.rk.IMAGE,sourceType:"clone",cryptoOperation:"encrypt"}})}decryptImage(){const e=this.currentRouter();e.push({name:`${d.KR}-c-cluster-resource-create`,params:{resource:u.rk.IMAGE},query:{image:JSON.stringify({metadata:{name:this.metadata.name,namespace:this.metadata.namespace}}),fromPage:u.rk.IMAGE,sourceType:"clone",cryptoOperation:"decrypt"}})}applyDefaults(e=this,t){t!==c.dT&&(this.metadata["labels"]={[i.r.OS_TYPE]:"",[i.r.IMAGE_SUFFIX]:""},this.metadata["annotations"]={[i.r.STORAGE_CLASS]:""})}createFromImage(){const e=this.currentRouter();e.push({name:`${d.KR}-c-cluster-resource-create`,params:{resource:u.rk.VM},query:{image:this.id,fromPage:u.rk.IMAGE}})}cleanForNew(){this.$dispatch("cleanForNew",this),delete this.spec.displayName}get nameDisplay(){return this.spec?.displayName}get isOSImage(){return"True"===this?.metadata?.annotations?.[i.r.OS_UPGRADE_IMAGE]}get isReady(){return g.call(this)}get stateDisplay(){const e=this.getStatusConditionOfType("Initialized"),t=this.getStatusConditionOfType("Imported");return"Unknown"===t?.status?"restore"===this.spec.sourceType?"Restoring":"download"===this.spec.sourceType?"Downloading":"upload"===this.spec.sourceType?this.uploadError?"Failed":"Uploading":"Exporting":e?.message||t?.message?"Failed":(0,l.ch)(this.metadata.state.name)}get encryptionSecret(){const e=this.spec.storageClassParameters[m],t=this.spec.storageClassParameters[f];return e&&t?`${e}/${t}`:""}get isEncrypted(){return"clone"===this.spec.sourceType&&"encrypt"===this.spec.securityParameters?.cryptoOperation&&!!this.spec.securityParameters?.sourceImageName&&!!this.spec.securityParameters?.sourceImageNamespace}get displayNameWithNamespace(){return`${this.metadata.namespace}/${this.spec.displayName}`}get imageMessage(){if(this.uploadError)return(0,s.TF)(this.uploadError);const e=this?.status?.conditions||[],t=e.find((e=>"Initialized"===e.type)),n=e.find((e=>"Imported"===e.type)),r=e.find((e=>"RetryLimitExceeded"===e.type)),i=t?.message||n?.message||r?.message;return(0,s.TF)(i)}get stateBackground(){return(0,l.uU)(this.stateDisplay).replace("text-","bg-")}get imageSource(){return(0,o.Jt)(this,"spec.sourceType")||"download"}get progress(){return this?.status?.progress||0}get annotationsToIgnoreRegexes(){return[r.tC].concat(r.S5)}get downSize(){const e=this.status?.size;return e?(0,a.Mo)(e,{increment:1024,maxPrecision:2,suffix:"B",firstSuffix:"B"}):"-"}get virtualSize(){const e=this.status?.virtualSize;return e?(0,a.Mo)(e,{increment:1024,maxPrecision:2,suffix:"B",firstSuffix:"B"}):"-"}getStatusConditionOfType(e,t=[]){const n=Array.isArray((0,o.Jt)(this,"status.conditions"))?this.status.conditions:t;return n.find((t=>t.type===e))}get stateObj(){const e=(0,o.o8)(this.metadata?.state),t=this.getStatusConditionOfType("Initialized"),n=this.getStatusConditionOfType("Imported");return([t?.status,n?.status].includes("False")||this.uploadError)&&(e.error=!0),e}get stateDescription(){return this.imageMessage}get displayName(){return this.spec?.displayName}get storageClassName(){return this.status?.storageClassName||""}get uploadImage(){return async e=>{const t=new FormData;t.append("chunk",e);try{this.$ctx.commit("harvester-common/uploadStart",this.metadata.name,{root:!0}),await this.doAction("upload",t,{headers:{"Content-Type":"multipart/form-data","File-Size":e.size},params:{size:e.size}})}catch(n){return this.$ctx.commit("harvester-common/uploadError",{name:this.name,message:n.message},{root:!0}),this.$ctx.commit("harvester-common/uploadEnd",this.metadata.name,{root:!0}),Promise.reject(n)}this.$ctx.commit("harvester-common/uploadEnd",this.metadata.name,{root:!0})}}get uploadError(){return this.$rootGetters["harvester-common/uploadingImageError"](this.name)}get imageSuffix(){return this.metadata?.labels?.[i.r.IMAGE_SUFFIX]}get imageOSType(){return this.metadata?.labels?.[i.r.OS_TYPE]}get customValidationRules(){const e=[];if("download"===this.imageSource){const t={nullable:!1,path:"spec.url",validators:["imageUrl"]},n={nullable:!1,path:"spec.url",required:!0,translationKey:"harvester.image.url"};e.push(t,n)}if("upload"===this.imageSource){const t={nullable:!1,path:"metadata.annotations",validators:["fileRequired"]};e.push(t)}if(this.spec?.checksum?.length){const t={path:"spec.checksum",validators:["hashSHA512"]};e.push(t)}return[{nullable:!1,path:"spec.displayName",required:!0,minLength:1,maxLength:63,translationKey:"generic.name"},...e]}get volumeEncryptionFeatureEnabled(){return this.$rootGetters["harvester-common/getFeatureEnabled"]("volumeEncryption")}download(){window.location.href=this.links.download}}},82680:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(24222);class i extends r["default"]{get isComplete(){return this?.status?.complete||!1}get pvcNames(){const e=this?.status?.restores||[],t=e.map((e=>e?.persistentVolumeClaimSpec?.name));return t}get customValidationRules(){const e=this.spec?.newVM,t=[{nullable:!1,path:"spec.target.name",required:!0,minLength:1,maxLength:63,translationKey:"harvester.fields.virtualName"},{nullable:!1,path:"spec.virtualMachineBackupName",required:!0,translationKey:"harvester.backup.restore.backup"}];return e||t.push({path:"spec.deletionPolicy",required:!0,type:"string",translationKey:"harvester.backup.restore.deletePreviousVolumes"}),t}}},61746:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n(75040),i=n(32766),o=n(20652),a=n(24222);class s extends a["default"]{get availableActions(){const e=["goToEdit","cloneYaml","goToClone","goToEditYaml","download"],t=super._availableActions.filter((t=>{if("remove"===t.altAction&&(t.bulkable=!1),!e.includes(t.action))return t})),n=this.$getters["schemaFor"](i.rk.VM);let r=!0;return n&&!n?.collectionMethods.find((e=>["post"].includes(e.toLowerCase())))&&(r=!1),[{action:"createFromTemplate",enabled:r,icon:"icon icon-spinner",label:this.t("harvester.action.createVM")},{action:"addVersion",enabled:this.canCreate,icon:"icon icon-fw icon-circle-plus",label:this.t("harvester.action.addTemplateVersion")},...t]}createFromTemplate(){const e=this.currentRouter();e.push({name:`${o.KR}-c-cluster-resource-create`,params:{resource:i.rk.VM},query:{templateId:this.id,versionId:this.spec.defaultVersionId}})}get cpuPinningFeatureEnabled(){return this.$rootGetters["harvester-common/getFeatureEnabled"]("cpuPinning")}addVersion(e={}){const t=this.currentRouter();t.push({name:`${o.KR}-c-cluster-resource-create`,params:{resource:i.rk.VM_VERSION},query:{[r.g]:r.YQ,templateId:this.id}})}get defaultVersion(){return this.status?.defaultVersion}}},96608:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return p}});var r=n(45250),i=n(75040),o=n(2602),a=n(24759),s=n(65852),l=n(79260),c=n(78359),u=n(20652),d=n(32766),h=n(24222);class p extends h["default"]{get availableActions(){let e=super._availableActions;const t=["goToClone","cloneYaml","goToViewConfig","goToEditYaml","goToViewYaml"];e=e.filter((e=>{if(!t.includes(e.action))return e}));const n=this.$getters["schemaFor"](d.rk.VM);let r=!0;return n&&!n?.collectionMethods.find((e=>["post"].includes(e.toLowerCase())))&&(r=!1),[{action:"launchFromTemplate",icon:"icon icon-spinner",disabled:!r||!this.isReady,label:this.t("harvester.action.launchFormTemplate")},{action:"cloneTemplate",enabled:this.currentTemplate?.canCreate,icon:"icon icon-fw icon-edit",label:this.t("harvester.action.modifyTemplate")},{action:"setDefaultVersion",enabled:this.currentTemplate?.canCreate,icon:"icon icon-fw icon-checkmark",label:this.t("harvester.action.setDefaultVersion")},{action:"goToViewConfig",label:this.t("action.view"),icon:"icon icon-edit"},...e]}applyDefaults(){const e={vm:{metadata:{annotations:{[o.r.VOLUME_CLAIM_TEMPLATE]:"[]"}},spec:{runStrategy:"RerunOnFailure",template:{metadata:{annotations:{}},spec:{domain:{machine:{type:""},cpu:{cores:null,sockets:1,threads:1},devices:{inputs:[{bus:"usb",name:"tablet",type:"tablet"}],interfaces:[{masquerade:{},model:"virtio",name:"default"}],disks:[]},resources:{limits:{memory:null,cpu:""}},features:{acpi:{enabled:!0}}},evictionStrategy:"LiveMigrateIfPossible",hostname:"",networks:[{name:"default",pod:{}}],volumes:[],affinity:{}}}}}};this["spec"]=e}get canDelete(){return this.hasLink("remove")&&this.$rootGetters["type-map/optionsFor"](this.type).isRemovable&&!this.isDefaultVersion}get template(){return this.$rootGetters["harvester/all"](d.rk.VM_TEMPLATE).find((e=>e.id===this.spec.templateId))}get isReady(){const e=(0,s.Jt)(this,"status.conditions"),t=(0,a.jq)(e,"type","ready");return!t||"True"===t?.status}get stateDisplay(){return this.isReady?"Active":"Not Ready"}get stateColor(){const e=this.stateDisplay;return(0,l.uU)(e)}get version(){return this?.status?.version}get templates(){return this.$rootGetters["harvester/all"](d.rk.VM_TEMPLATE)}get machineType(){return this.vm?.spec?.template?.spec?.domain?.machine?.type||""}get templateId(){return this.spec.templateId}launchFromTemplate(){const e=this.currentTemplate,t=e.id,n=this.id,r=this.currentRouter();r.push({name:`${u.KR}-c-cluster-resource-create`,params:{resource:d.rk.VM},query:{templateId:t,versionId:n}})}cloneTemplate(e={}){const t=this.detailLocation;t.query={...t.query,[i.g]:i.G5,[i.AS]:i.xz,...e},this.currentRouter().push(t)}goToViewConfig(e={}){const t=this.detailLocation;t.query={...t.query,[i.g]:i.nW,[i.AS]:i.au,templateId:this.templateId,...e},this.currentRouter().push(t)}get currentTemplate(){return(0,r.find)(this.templates,(e=>e.id===this.templateId))}async setDefaultVersion(e={}){const t=this.currentTemplate;t.spec.defaultVersionId=this.id,await t.save()}get defaultVersion(){const e=this.$rootGetters["harvester/all"](d.rk.VM_TEMPLATE),t=e.find((e=>this.templateId===e.id));return t?.status?.defaultVersion}get isDefaultVersion(){return this.defaultVersion===this?.status?.version}get customValidationRules(){const e=[];return e}get instanceLabels(){const e=this.spec?.vm?.spec?.template?.metadata?.labels||{};return(0,r.omitBy)(e,((e,t)=>(0,c.HV)(t,o.l)))}setInstanceLabels(e){this.spec?.vm?.spec?.template?.metadata?.labels||(0,s.hZ)(this,"spec.vm.spec.template.metadata.labels",{});const t=this.spec.vm.spec.template.metadata.labels||{},n=(0,r.pickBy)(t,((e,t)=>(0,c.HV)(t,o.l)));this.spec.vm.spec.template.metadata["labels"]={...n,...e}}}},43842:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(38991),i=n(71445);class o extends r.A{applyDefaults(){const e=this.spec||{config:JSON.stringify({cniVersion:"0.3.1",name:"",type:"bridge",bridge:"",promiscMode:!0,vlan:"",ipam:{}})};this.spec=e}get parseConfig(){try{return JSON.parse(this.spec.config)||{}}catch(e){return{}}}get isIpamStatic(){return"static"===this.parseConfig.ipam?.type}get clusterNetwork(){return this?.metadata?.labels?.[i.rk.CLUSTER_NETWORK]}get vlanType(){const e=this.metadata?.labels||{},t=e[i.rk.NETWORK_TYPE];return t}get vlanId(){return"UntaggedNetwork"===this.vlanType?"N/A":this.parseConfig.vlan}get customValidationRules(){const e=[{nullable:!1,path:"metadata.name",required:!0,minLength:1,maxLength:63,translationKey:"harvester.fields.name"}];return e}get connectivity(){const e=this.metadata?.annotations||{},t=e[i.rk.NETWORK_ROUTE];let n={};if("UntaggedNetwork"===this.vlanType)return"N/A";try{n=JSON.parse(t||"{}")}catch{return"invalid"}const r=n.connectivity;return"false"===r?"inactive":"true"===r?"active":r}}},50784:function(e,t,n){"use strict";n.r(t),n.d(t,{OFF:function(){return y},default:function(){return H}});var r=n(20246),i=n(45250),o=n(20652),a=n(79260),s=n(4284),l=n(24759),c=n(62155),u=n(65852),d=n(2602),h=n(75040),p=n(78359),f=n(66490),m=n(41837),g=n(32766),v=n(24222);const y="Off",b="The virtual machine is waiting for resources to become available.",_="VM error",w="Stopping",E="Unschedulable",S="Waiting",x="Not Ready",k="AgentConnected",A="Paused",N="This VM has been paused. If you wish to unpause it, please click the Unpause button below. For further details, please check with your system administrator.",T="POD_NOT_SCHEDULABLE",C="POD_CONTAINER_FAILING",R="POD_FAILED",O="POD_CRASHLOOP_BACKOFF",I="POD_STATUS_UNKNOWN",D=[T,C,R,O,I],L="POD_STATUS_COMPLETED",P="POD_STATUS_SUCCEEDED",M="POD_STATUS_RUNNING",F=[M,L,P],B={Always:"Always",RerunOnFailure:"RerunOnFailure",Halted:"Halted",Manual:"Manual"},$={Start:"Start",Stop:"Stop"},j="This virtual machine will start shortly. Preparing storage, networking, and compute resources.",U={Pending:"Pending",Scheduling:"Scheduling",Scheduled:"Scheduled",Running:"Running",Succeeded:"Succeeded",Failed:"Failed",Unknown:"Unknown"};let V;const K=["pod has unbound immediate PersistentVolumeClaims"];class H extends v["default"]{get availableActions(){let e=super._availableActions;if(this.longhornV2Volumes.length>0)e=e.filter((e=>"goToClone"!==e.action));else{const t=e.find((e=>"goToClone"===e.action));t&&(t.action="goToCloneVM")}return[{action:"stopVM",enabled:!!this.actions?.stop,icon:"icon icon-close",label:this.t("harvester.action.stop"),bulkable:!0},{action:"forceStop",enabled:!!this.actions?.forceStop,icon:"icon icon-close",label:this.t("harvester.action.forceStop"),bulkable:!0},{action:"pauseVM",enabled:!!this.actions?.pause,icon:"icon icon-pause",label:this.t("harvester.action.pause")},{action:"unpauseVM",enabled:!!this.actions?.unpause,icon:"icon icon-spinner",label:this.t("harvester.action.unpause")},{action:"restartVM",enabled:!!this.actions?.restart,icon:"icon icon-refresh",label:this.t("harvester.action.restart"),bulkable:!0},{action:"softrebootVM",enabled:!!this.actions?.softreboot,icon:"icon icon-pipeline",label:this.t("harvester.action.softreboot")},{action:"startVM",enabled:!!this.actions?.start,icon:"icon icon-play",label:this.t("harvester.action.start"),bulkable:!0},{action:"backupVM",enabled:!!this.actions?.backup,icon:"icon icon-backup",label:this.t("harvester.action.backup")},{action:"takeVMSnapshot",enabled:!!this.actions?.backup&&!this.longhornV2Volumes.length,icon:"icon icon-snapshot",label:this.t("harvester.action.vmSnapshot")},{action:"editVMQuota",enabled:!!this.actions?.updateResourceQuota&&!!this.actions.deleteResourceQuota,icon:"icon icon-storage",label:this.t("harvester.action.editVMQuota")},{action:"createSchedule",enabled:this.schedulingVMBackupFeatureEnabled,icon:"icon icon-history",label:this.t("harvester.action.createSchedule")},{action:"restoreVM",enabled:!!this.actions?.restore,icon:"icon icon-backup-restore",label:this.t("harvester.action.restore")},{action:"ejectCDROM",enabled:!!this.actions?.ejectCdRom,icon:"icon icon-delete",label:this.t("harvester.action.ejectCDROM")},{action:"migrateVM",enabled:!!this.actions?.migrate,icon:"icon icon-copy",label:this.t("harvester.action.migrate")},{action:"abortMigrationVM",enabled:!!this.actions?.abortMigration,icon:"icon icon-close",label:this.t("harvester.action.abortMigration")},{action:"addHotplug",enabled:!!this.actions?.addVolume,icon:"icon icon-plus",label:this.t("harvester.action.addHotplug")},{action:"createTemplate",enabled:!!this.actions?.createTemplate,icon:"icon icon-copy",label:this.t("harvester.action.createTemplate")},{action:"openLogs",enabled:!!this.podResource,icon:"icon icon-fw icon-chevron-right",label:this.t("harvester.action.viewlogs"),total:1},...e]}get productInStore(){return V||(V=this.$rootGetters["currentProduct"].inStore),V}applyDefaults(e=this,t){const n={runStrategy:"RerunOnFailure",template:{metadata:{annotations:{}},spec:{domain:{machine:{type:""},cpu:{cores:null,sockets:1,threads:1},devices:{inputs:[{bus:"usb",name:"tablet",type:"tablet"}],interfaces:[{masquerade:{},model:"virtio",name:"default"}],disks:[]},resources:{limits:{memory:null,cpu:""}},features:{acpi:{enabled:!0}}},evictionStrategy:"LiveMigrateIfPossible",hostname:"",networks:[{name:"default",pod:{}}],volumes:[],affinity:{}}}};t!==h.dT&&(this.metadata["annotations"]={[d.r.VOLUME_CLAIM_TEMPLATE]:"[]"},this["spec"]=n)}cleanForNew(){this.$dispatch("cleanForNew",this),this.spec.template.spec.hostname="";const e=this.spec.template.spec.domain.devices?.interfaces||[];for(let n=0;n(e?.spec?.dataSource&&delete e.spec.dataSource,e)));this.metadata.annotations[d.r.VOLUME_CLAIM_TEMPLATE]=JSON.stringify(t)}restartVM(){this.doActionGrowl("restart",{})}softrebootVM(){this.doActionGrowl("softreboot",{})}openLogs(){this.$dispatch("wm/open",{id:`${this.id}-logs`,label:this.nameDisplay,icon:"file",component:"ContainerLogs",attrs:{pod:this.podResource,initialContainer:this.podResource.metadata.annotations["kubectl.kubernetes.io/default-container"]}},{root:!0})}createSchedule(e=this){const t=this.currentRouter();t.push({name:`${o.KR}-c-cluster-resource-create`,params:{resource:g.rk.SCHEDULE_VM_BACKUP},query:{vmNamespace:this.metadata.namespace,vmName:this.metadata.name}})}backupVM(e=this){this.$dispatch("promptModal",{resources:e,component:"HarvesterBackupModal"})}takeVMSnapshot(e=this){this.$dispatch("promptModal",{resources:e,component:"HarvesterVMSnapshotDialog"})}editVMQuota(e=this){this.$dispatch("promptModal",{resources:e,snapshotSizeQuota:this.snapshotSizeQuota,component:"HarvesterQuotaDialog"})}unplugVolume(e){const t=this;this.$dispatch("promptModal",{resources:t,diskName:e,component:"HarvesterUnplugVolume"})}restoreVM(e=this){this.$dispatch("promptModal",{resources:e,component:"HarvesterRestoreDialog"})}get machineType(){return this.spec?.template?.spec?.domain?.machine?.type||""}get realAttachNodeName(){const e=this.$getters["byId"](g.rk.VMI,this.id),t=e?.status?.nodeName,n=this.$getters["byId"](s.NW,t);return n?.nameDisplay||""}get nodeName(){const e=this.$getters["byId"](g.rk.VMI,this.id),t=e?.status?.nodeName,n=this.$getters["byId"](s.NW,t);return n?.id}pauseVM(){this.doActionGrowl("pause",{})}goToCloneVM(e=this){this.$dispatch("promptModal",{resources:e,component:"CloneVmDialog"})}unpauseVM(){this.doActionGrowl("unpause",{})}stopVM(){this.doActionGrowl("stop",{})}forceStop(){this.doActionGrowl("forceStop",{})}startVM(){this.doActionGrowl("start",{})}migrateVM(e=this){this.$dispatch("promptModal",{resources:e,component:"HarvesterMigrationDialog"})}ejectCDROM(e=this){this.$dispatch("promptModal",{resources:e,component:"HarvesterEjectCDROMDialog"})}abortMigrationVM(){this.doActionGrowl("abortMigration",{})}createTemplate(e=this){this.$dispatch("promptModal",{resources:e,component:"HarvesterCloneTemplate"})}addHotplug(e=this){this.$dispatch("promptModal",{resources:e,component:"HarvesterAddHotplugModal"})}get networksName(){const e=this.spec.template.spec.domain.devices?.interfaces||[];return e.map((e=>e.name))}get isOff(){return this.isVMExpectedRunning?null:{status:y}}get isWaitingForVMI(){return this&&this.isVMExpectedRunning&&!this.isVMCreated?{status:S,message:b}:null}get cpuPinningFeatureEnabled(){return this.$rootGetters["harvester-common/getFeatureEnabled"]("cpuPinning")}get isCpuPinning(){return!0===this.spec?.template?.spec?.domain?.cpu?.dedicatedCpuPlacement}get isVMExpectedRunning(){if(!this?.spec)return!1;const{running:e=null,runStrategy:t=null}=this.spec,n=this?.status?.conditions||[];if(e)return!0;if(null!==t){let e;switch(t){case B.Halted:return!1;case B.Always:return!0;case B.RerunOnFailure:return!("ErrorUnschedulable"!==this.status?.printableStatus||!n.find((e=>e.message&&e.message.includes(K))))||["Starting","Running"].includes(this.status?.printableStatus);case B.Manual:default:return e=new Set((this.status?.stateChangeRequests||[]).map((e=>e?.action))),!e.has($.Stop)&&(!!e.has($.Start)||(0===e.size?["Starting","Running"].includes(this.status?.printableStatus):this.isVMCreated))}}return!1}get podResource(){const e=this.productInStore,t=this.$rootGetters[`${e}/byId`](g.rk.VMI,this.id),n=this.$rootGetters[`${e}/all`](s.Sm);return n.find((e=>t?.metadata?.name&&t?.metadata?.name===e.metadata?.ownerReferences?.[0].name))}get isPaused(){const e=this.vmi?.status?.conditions||[],t=e.filter((e=>e.type===A)).length>0;return t?{status:A,message:N}:null}get isVMError(){const e=(0,u.Jt)(this,"status.conditions"),t=(0,l.jq)(e,"type","Failure");return t?{status:_,detailedMessage:t.message}:null}get nsResourceQuota(){const e=this.productInStore,t=this.$rootGetters[`${e}/all`](g.rk.RESOURCE_QUOTA);return t.find((e=>e.namespace===this.metadata.namespace))}get snapshotSizeQuota(){return this.nsResourceQuota?.spec?.snapshotLimit?.vmTotalSnapshotSizeQuota?.[this.metadata.name]}get vmi(){const e=this.productInStore,t=this.$rootGetters[`${e}/all`](g.rk.VMI);return t.find((e=>e.id===this.id))}get volumes(){const e=this.$rootGetters[`${this.productInStore}/all`](s.YH),t=this.spec.template.spec.volumes?.map((e=>e.persistentVolumeClaim?.claimName)).filter((e=>!!e))||[];return e.filter((e=>t.includes(e.metadata.name)))}get lvmVolumes(){return this.volumes.filter((e=>e?.isLvm))}get longhornV2Volumes(){return this.volumes.filter((e=>e?.isLonghornV2))}get encryptedVolumeType(){return this.volumes.every((e=>e.isEncrypted))?"all":this.volumes.some((e=>e.isEncrypted))?"partial":"none"}get isError(){const e=(0,u.Jt)(this.vmi,"status.conditions"),t=(0,l.jq)(e,"type","Failure");return t?{status:"VMI error",detailedMessage:t.message}:((this.vmi||this.isVMCreated)&&this.podResource,this?.vmi?.status?.phase)}get isRunning(){const e=(0,u.Jt)(this.vmi,"status.conditions"),t="True"===(0,l.jq)(e,"type","Ready")?.status;return this.vmi?.status?.phase===U.Running&&t?{status:U.Running}:null}get isNotReady(){const e=(0,u.Jt)(this.vmi,"status.conditions"),t=(0,l.jq)(e,"type","Ready");return"False"===t?.status&&this.vmi?.status?.phase===U.Running?{status:x}:null}get isBeingStopped(){return this&&!this.isVMExpectedRunning&&this.isVMCreated&&this.vmi?.status?.phase!==U.Succeeded?{status:w}:null}get isStarting(){if(this.isVMExpectedRunning&&this.isVMCreated){if(this.podResource){const e=this.podResource.getPodStatus;if(!F.includes(e?.status))return{...e,status:"Starting",message:j,detailedMessage:e?.message,pod:this.podResource}}return{status:"Starting",message:j,pod:this.podResource}}return null}get isUnschedulable(){if(this.isBeingStopped||this.isStarting){const e=this.status?.conditions?.find((e=>e.reason===E));if(e)return{status:E,message:e.message||"VM is unschedulable"}}return null}get isTerminating(){return!!this?.metadata?.deletionTimestamp}get otherState(){const e=this.vmi&&[U.Scheduling,U.Scheduled].includes(this.vmi?.status?.phase)&&{status:"Starting",message:j}||this.vmi&&this.vmi.status?.phase===U.Pending&&{status:"VMI_WAITING",message:b}||this.vmi&&this.vmi?.status?.phase===U.Failed&&{status:"VMI_ERROR"}||this.isVMExpectedRunning&&!this.isVMCreated&&{status:"Pending"}||{status:"UNKNOWN"};return e}get isVMCreated(){return!!this?.status?.created}get getDataVolumeTemplates(){return null===(0,u.Jt)(this,"spec.volumeClaimTemplates")?[]:this.spec.volumeClaimTemplates}get restoreResource(){const e=`${this.metadata.namespace}/${(0,u.Jt)(this,`metadata.annotations."${d.r.RESTORE_NAME}"`)}`,t=this.productInStore,n=this.$rootGetters[`${t}/all`](g.rk.RESTORE),r=n.find((t=>t.id===e));if(r){const e=this.$rootGetters[`${t}/all`](g.rk.BACKUP);r.fromSnapshot=!!e.filter((e=>e.spec?.type!==m.a.BACKUP)).find((e=>e.id===`${r.spec?.virtualMachineBackupNamespace}/${r.spec?.virtualMachineBackupName}`))}return r}get restoreProgress(){if(this.isVMError||this.isTerminating)return{};const e=this.restoreResource?.status;return void 0!==e?{type:"restore",percentage:e?.progress||0,details:{volumes:e?.restores||[]}}:{}}get restoreState(){return!this.restoreResource||this.restoreResource?.isComplete}get actualState(){if(!this.restoreState)return"Restoring";if(this.isTerminating)return"Terminating";if(this?.vmi?.migrationState&&"Failed"!==this.vmi.migrationState.status)return this.vmi.migrationState.status;const e=this.isUnschedulable?.status||this.isPaused?.status||this.isVMError?.status||this.isBeingStopped?.status||this.isOff?.status||this.isError?.status||this.isRunning?.status||this.isNotReady?.status||this.isStarting?.status||this.isWaitingForVMI?.state||this.otherState?.status;return e}get warningMessage(){if(this.metadata?.annotations[d.r.VM_INSUFFICIENT])return{message:this.metadata?.annotations[d.r.VM_INSUFFICIENT],canDismiss:!0};const e=(0,u.Jt)(this,"status.conditions"),t=(0,l.jq)(e,"type","Failure");if(t)return{status:_,message:t.message};const n=(0,u.Jt)(this.vmi,"status.conditions"),r=(0,l.jq)(n,"type","Failure");if(r)return{status:"VMI error",detailedMessage:r.message};if((this.vmi||this.isVMCreated)&&this.podResource){const e=this.podResource.getPodStatus;if(D.includes(e?.status))return{...e,status:"LAUNCHER_POD_ERROR",pod:this.podResource}}return null}get migrationMessage(){return this?.vmi?.migrationState&&"Failed"===this.vmi.migrationState.status?{...this.actualState,message:this.t("harvester.modal.migration.failedMessage")}:null}get stateDisplay(){return this.actualState}get stateColor(){const e=this.actualState;return(0,a.uU)(e)}get networkIps(){let e="";const t=[],n=this.spec.template?.spec?.volumes||[];n.forEach((t=>{t.cloudInitNoCloud&&(e=t.cloudInitNoCloud.networkData)}));try{const n=(0,r.load)(e);if(n?.config&&Array.isArray(n.config)){const e=n.config;e.forEach((e=>{if(e?.subnets&&Array.isArray(e.subnets)){const n=e.subnets;n.forEach((e=>{e.address&&t.push(e.address)}))}}))}}catch(i){}return t}get warningCount(){return this.resourcesStatus.warningCount}get errorCount(){return this.resourcesStatus.errorCount}get resourcesStatus(){const e=this.productInStore,t=this.$rootGetters[`${e}/all`](g.rk.VM);let n=0,r=0;return t.forEach((e=>{const t=e.actualState;t===_?r+=1:"Stopping"!==t&&"Waiting"!==t&&"Pending"!==t&&"Starting"!==t&&"Terminating"!==t||(n+=1)})),{warningCount:n,errorCount:r}}get volumeClaimTemplates(){return(0,f.v)(this)}get persistentVolumeClaimName(){const e=this.spec.template.spec.volumes||[];return e.map((e=>e?.persistentVolumeClaim?.claimName)).filter((e=>!!e))}get rootImageId(){let e="";const t=this.productInStore,n=this.$rootGetters[`${t}/all`](s.YH)||[],r=this.spec.template.spec.volumes||[],i=r[0]?.persistentVolumeClaim?.claimName,o=this.volumeClaimTemplates.find((e=>i===e?.metadata?.name));if(!o){const e=n.find((e=>e.id===`${this.metadata.namespace}/${i}`));if(e)return e?.metadata?.annotations?.["harvesterhci.io/imageId"]}return this.volumeClaimTemplates.find((t=>(e=t?.metadata?.annotations?.["harvesterhci.io/imageId"],!!e))),e}get restoreName(){return(0,u.Jt)(this,`metadata.annotations."${d.r.RESTORE_NAME}"`)||""}get customValidationRules(){const e=[{nullable:!1,path:"metadata.name",required:!0,minLength:1,maxLength:63,translationKey:"harvester.fields.name"},{nullable:!1,path:"spec.template.spec.domain.cpu.cores",min:1,required:!0,translationKey:"harvester.fields.cpu"},{nullable:!1,path:"spec.template.spec.domain.resources.limits.memory",required:!0,translationKey:"harvester.fields.memory"},{nullable:!1,path:"spec.template.spec",validators:["vmNetworks"]},{nullable:!1,path:"spec",validators:["vmDisks"]}];return e}get attachNetwork(){const e=this.spec?.template?.spec?.networks||[],t=e.find((e=>e.multus));return!!t}get memorySort(){const e=this?.spec?.template?.spec?.domain?.resources?.requests?.memory||0,t=(0,c.ao)(e);return parseInt(t)}get ingoreVMMessage(){const e=[{name:"unavailable",error:!1,vmState:this.actualState===A}],t=this.metadata?.state;return e.find((e=>e.name===t?.name&&e.error===t?.error&&e.vmState))||K.find((e=>super.stateDescription?.includes(e)))||this.isOff}get stateDescription(){return this.ingoreVMMessage?"":super.stateDescription}get displayMemory(){return this.spec.template.spec.domain.resources?.limits?.memory||this.spec.template.spec.domain.resources?.requests?.memory}get isQemuInstalled(){const e=this.vmi?.status?.conditions||[],t=e.find((e=>e.type===k));return"True"===t?.status}get warnDeletionMessage(){return this.t("harvester.virtualMachine.promptRemove.tips")}get instanceLabels(){const e=this.spec?.template?.metadata?.labels||{};return(0,i.omitBy)(e,((e,t)=>(0,p.HV)(t,d.l)))}get hostDevices(){return this.spec?.template?.spec?.domain?.devices?.hostDevices||[]}get provisionedVGpus(){try{const e=JSON.parse(this.metadata?.annotations[d.r.VM_DEVICE_ALLOCATION_DETAILS]||"{}");return e?.gpus||{}}catch(e){return{}}}get schedulingVMBackupFeatureEnabled(){return this.$rootGetters["harvester-common/getFeatureEnabled"]("schedulingVMBackup")}get volumeEncryptionFeatureEnabled(){return this.$rootGetters["harvester-common/getFeatureEnabled"]("volumeEncryption")}setInstanceLabels(e){this.spec?.template?.metadata?.labels||(0,u.hZ)(this,"spec.template.metadata.labels",{});const t=this.spec.template.metadata.labels||{},n=(0,i.pickBy)(t,((e,t)=>(0,p.HV)(t,d.l)));this.spec.template.metadata["labels"]={...n,...e}}}},79095:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return d}});var r=n(79260),i=n(4284),o=n(2602),a=n(32766),s=n(24222);const l="Paused",c="This VM has been paused. If you wish to unpause it, please click the Unpause button below. For further details, please check with your system administrator.",u={Pending:"Pending",Scheduling:"Scheduling",Scheduled:"Scheduled",Running:"Running",Succeeded:"Succeeded",Failed:"Failed",Unknown:"Unknown"};class d extends s["default"]{get _availableActions(){const e=super._availableActions,t=e.find((e=>"promptRemove"===e.action));return[t]}get stateDisplay(){return this?.metadata?.deletionTimestamp?"Terminating":this?.status?.phase}get stateBackground(){return(0,r.uU)(this.stateDisplay).replace("text-","bg-")}get stateColor(){const e=this.stateDisplay;return(0,r.uU)(e)}get vmimResource(){const e=this.$rootGetters["harvester/all"](a.rk.VMIM)||[],t=e.filter((e=>e.spec?.vmiName===this.metadata?.name));return 0===t.length?[]:(t.sort(((e,t)=>e?.metadata?.creationTimestamp>t?.metadata?.creationTimestamp?-1:1)),t[0])}get migrationState(){const e=this.metadata?.annotations?.[o.r.MIGRATION_STATE];return this.vmimResource?.status?.phase===u.Failed?{type:"migration",status:u.Failed}:this.vmimResource?.status?.phase&&e?{type:"migration",status:e}:null}get migrationStateBackground(){const e=this.migrationState.status;return(0,r.uU)(e).replace("text-","bg-")}get isPaused(){const e=this?.status?.conditions||[],t=e.filter((e=>e.type===l)).length>0;return t?{status:l,message:c}:null}get isRunning(){return this?.status?.phase===u.Running?{status:u.Running}:null}get isTerminated(){const e=this?.status?.conditions||[];return"False"===e.find((e=>"Ready"===e.type))?.status}get getVMIApiPath(){const e=this.$rootGetters["clusterId"];if(this.$rootGetters["isMultiCluster"]){const t=`/k8s/clusters/${e}`;return`${t}/apis/subresources.kubevirt.io/v1/namespaces/${this.metadata.namespace}/virtualmachineinstances/${this.name}/vnc`}return`/apis/subresources.kubevirt.io/v1/namespaces/${this.metadata.namespace}/virtualmachineinstances/${this.name}/vnc`}get realAttachNodeName(){const e=this?.status?.nodeName,t=this.$getters["byId"](i.NW,e);return t?.nameDisplay||""}get getSerialConsolePath(){const e=this.$rootGetters["clusterId"];if(this.$rootGetters["isMultiCluster"]){const t=`/k8s/clusters/${e}`;return`${t}/apis/subresources.kubevirt.io/v1/namespaces/${this.metadata.namespace}/virtualmachineinstances/${this.name}/console`}return`/apis/subresources.kubevirt.io/v1/namespaces/${this.metadata.namespace}/virtualmachineinstances/${this.name}/console`}}},68917:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n(65852),i=n(24222),o=n(32766);const a="Not Ready";class s extends i["default"]{applyDefaults(){const e=this.spec||{},t=this.metadata||{};e.ranges=e.ranges||[],e.selector=e.selector||{},e.selector.network=e.selector.network||"",this["spec"]=e,this["metadata"]=t}get customValidationRules(){return[{nullable:!1,path:"metadata.name",required:!0,translationKey:"generic.name",type:"dnsLabel"},{nullable:!1,path:"spec.ranges",type:"array",validators:["ranges"]}]}get subnetDisplay(){const e=this.spec?.ranges||[];return e.map((e=>e.subnet)).join(", ")}get startIPDisplay(){const e=this.spec?.ranges||[];return e.filter((e=>e.startIP)).map((e=>e.startIP)).join(", ")}get endIPDisplay(){const e=this.spec?.ranges||[];return e.filter((e=>e.endIP)).map((e=>e.endIP)).join(", ")}get details(){const e=[{label:this.t("harvester.ipPool.availableIP.label"),content:this.status?.available}];return e}get doneOverride(){const e=(0,r.o8)(this.listLocation);return e.params.resource=o.rk.IP_POOL,e}get parentLocationOverride(){return{...this.listLocation,params:{...this.listLocation.params,resource:o.rk.IP_POOL}}}get isReady(){const e=(this?.status?.conditions||[]).find((e=>"Ready"===e.type))||{};return"True"===e?.status}get stateDisplay(){return this.isReady?super.stateDisplay:a}get stateBackground(){return this.isReady?super.stateBackground:"bg-warning"}}},61772:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l}});var r=n(65852),i=n(24222),o=n(32766);const a="vm",s="Not Ready";class l extends i["default"]{applyDefaults(){const e=this.spec||{},t=this.metadata||{};e.workloadType=e.workloadType||a,e.ipam=e.ipam||"dhcp",e.healthCheck=e.healthCheck||{},e.backendServerSelector=e.backendServerSelector||{},(0,r.hZ)(this,"spec",e),(0,r.hZ)(this,"metadata",t)}get workloadTypeDisplay(){const e=this.spec?.workloadType||"cluster";return this.$rootGetters["i18n/t"](`harvester.loadBalancer.workloadType.options.${e}`)}get ipamDisplay(){const e=this.spec?.ipam;return this.$rootGetters["i18n/t"](`harvester.loadBalancer.ipam.options.${e}`)}get customValidationRules(){return[{nullable:!1,path:"metadata.name",required:!0,translationKey:"generic.name",type:"dnsLabel"}]}get canCustomEdit(){return this.$rootGetters["type-map/hasCustomEdit"](this.type,this.id)&&this.spec.workloadType===a}get canUpdate(){return this.hasLink("update")&&this.$rootGetters["type-map/optionsFor"](this.type).isEditable&&this.spec.workloadType===a}get canClone(){return this.spec.workloadType===a}get details(){const e=[{label:this.t("harvester.loadBalancer.ipam.label"),content:this.ipamDisplay},{label:this.t("harvester.loadBalancer.workloadType.label"),content:this.workloadTypeDisplay},{label:this.t("tableHeaders.address"),content:this.status.address}];return e}get doneOverride(){const e=(0,r.o8)(this.listLocation);return e.params.resource=o.rk.LB,e}get parentLocationOverride(){return{...this.listLocation,params:{...this.listLocation.params,resource:o.rk.LB}}}get isReady(){const e=(this?.status?.conditions||[]).find((e=>"Ready"===e.type))||{};return"True"===e?.status}get stateDisplay(){return this.isReady?super.stateDisplay:s}get stateBackground(){return this.isReady?super.stateBackground:"bg-warning"}}},28433:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(38991);const i="healthy",o="warning";class a extends r.A{get used(){let e=0;return this.disks.filter((e=>e.allowScheduling)).map((t=>{t?.storageAvailable&&t?.storageMaximum&&(e+=t.storageMaximum-t.storageAvailable)})),e}get disks(){const e=this?.status?.diskStatus||{},t=this?.spec?.disks||{};return Object.keys(t).map((n=>{const r=e[n]?.conditions||[],a=r.find((e=>"Ready"===e.type))||{},s=r.find((e=>"Schedulable"===e.type))||{};let l;return l="True"!==a?.status||"True"!==s?.status?o:i,{...e[n],...t[n],id:n,state:l}}))||[]}}},11971:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(65852),i=n(24222);class o extends i["default"]{applyDefaults(){const e={baseboardSpec:{connection:{authSecretRef:{},insecureTLS:!1}},events:{enabled:!0,pollingInterval:"1h"},primaryDisk:"",managementInterfaceMacAddress:""};(0,r.hZ)(this,"metadata.annotations",{}),(0,r.hZ)(this,"spec",this.spec||e),(0,r.hZ)(this,"spec.baseboardSpec",this.spec?.baseboardSpec||e.baseboardSpec),(0,r.hZ)(this,"spec.baseboardSpec.connection",this.spec?.baseboardSpec?.connection||e.baseboardSpec.connection),(0,r.hZ)(this,"spec.baseboardSpec.connection.authSecretRef",this.spec?.baseboardSpec?.connection?.authSecretRef||{})}get warningMessages(){const e=[];return this.metadata?.state?.error&&e.push({text:this.metadata?.state.message}),e}get customValidationRules(){return[{path:"spec.events.pollingInterval",translationKey:"harvester.seeder.inventory.pollingInterval.label",validators:["interval"]}]}}},85696:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n(65852),i=n(4284),o=n(32766),a=n(24222);class s extends a["default"]{get doneOverride(){const e=(0,r.o8)(this.listLocation);return e.params.resource=o.rk.CLUSTER_NETWORK,e}get parentLocationOverride(){return{...this.listLocation,params:{...this.listLocation.params,resource:o.rk.CLUSTER_NETWORK}}}get canDelete(){return this._canDelete&&"mgmt"!==this.id}get canUpdate(){return this.hasLink("update")&&this.$rootGetters["type-map/optionsFor"](this.type).isEditable&&"mgmt"!==this.id}get isReady(){const e=(this?.status?.conditions||[]).find((e=>"ready"===e.type))||{};return"True"===e?.status}get inStore(){return this.$rootGetters["currentProduct"].inStore}get nodes(){const e=this.$rootGetters[`${this.inStore}/all`](i.NW);return e.filter((e=>!e.isUnSchedulable&&"true"!==e.isEtcd))}get vlanStatuses(){const e=this.$rootGetters[`${this.inStore}/all`](o.rk.VLAN_STATUS),t=this.nodes.map((e=>e.id));return e.filter((e=>t.includes(e?.status?.node)&&this.id===e?.status?.clusterNetwork))||[]}get isReadyForStorageNetwork(){if("mgmt"===this.id)return!0;{const e=this.vlanStatuses.filter((e=>e.isReady))||[];return e.length===this.nodes.length&&this.isReady}}}},88272:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n(24759),i=n(65852),o=n(32766),a=n(24222);class s extends a["default"]{get message(){const e=(0,i.Jt)(this,"status.conditions");return((0,r.jq)(e,"type","Ready")||{}).message}get isReady(){const e=(0,i.Jt)(this,"status.conditions");return"True"===((0,r.jq)(e,"type","Ready")||{})?.status}get nics(){return this?.status?.nics||[]}get attachNodeName(){return(0,i.Jt)(this,'metadata.labels."network.harvesterhci.io/nodename"')||""}get linkMessage(){return{name:this.attachNodeName,message:this.message,to:`${o.rk.HOST}/${this.attachNodeName}?mode=edit`}}}},70443:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return h}});var r=n(45250),i=n(65852),o=n(24759),a=n(71445),s=n(58899),l=n(4284),c=n(32766),u=n(24222);const d="Not Ready";class h extends u["default"]{applyDefaults(){const e={uplink:{nics:[],linkAttributes:{},bondOptions:{mode:"active-backup"}}};(0,i.hZ)(this,"spec",this.spec||e),(0,i.hZ)(this,"spec.uplink.linkAttributes",this.spec?.uplink?.linkAttributes||{}),(0,i.hZ)(this,"spec.uplink.bondOptions",this.spec?.uplink?.bondOptions||{})}get groupByClusterNetwork(){return this.spec?.clusterNetwork}get doneOverride(){const e=(0,i.o8)(this.listLocation);return e.params.resource=c.rk.CLUSTER_NETWORK,e}get parentLocationOverride(){return{...this.listLocation,params:{...this.listLocation.params,resource:c.rk.CLUSTER_NETWORK}}}get typeDisplay(){return"VLAN"}get _availableActions(){const e=super._availableActions;return(0,o.PT)(e,0,this.migrateAction),e}get migrateAction(){return{action:"migrate",icon:"icon icon-copy",label:this.t("harvester.vlanConfig.action.migrate")}}migrate(e=this){this.$dispatch("promptModal",{resources:e,component:"HarvesterVlanConfigMigrateDialog"})}get inStore(){return this.$rootGetters["currentProduct"].inStore}get vlanStatuses(){const e=this.nodes.map((e=>e.id))||[],t=this.$rootGetters[`${this.inStore}/all`](c.rk.VLAN_STATUS);return t.filter((t=>e.includes(t?.status?.node)&&this.id===t?.status?.vlanConfig))||[]}get isReady(){if(0===this.nodes.length||this.vlanStatuses.length!==this.nodes.length)return!1;{const e=this.vlanStatuses.filter((e=>e.isReady));return e.length===this.vlanStatuses.length}}get selectedNodes(){const e=this.spec?.nodeSelector||{},t=this.$rootGetters[`${this.inStore}/all`](l.NW);if((0,r.isEmpty)(e))return t;if(e[a.yA]&&1===Object.keys(e).length)return t.filter((t=>t.id===e[a.yA]))||[];{const n=(0,s.wC)(t||[],e).map((e=>e.id));return t.filter((e=>n.includes(e.id)))}}get nodes(){return this.selectedNodes.filter((e=>!e.isUnSchedulable&&"true"!==e.isEtcd))}get stateDisplay(){return this.isReady?super.stateDisplay:d}get stateBackground(){return this.isReady?super.stateBackground:"bg-warning"}}},61715:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(24759),i=n(24222);class o extends i["default"]{get isReady(){const e=this.status?.conditions||[],t=(0,r.jq)(e,"type","ready")||{};return"True"===t.status}}},30865:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(9950);class i extends r["default"]{}},3791:function(e,t,n){"use strict";n.d(t,{nn:function(){return u},at:function(){return h},HF:function(){return d}});var r=n(2722),i=n.n(r);const o=["supportHarvesterClusterVersion"],a=[...o,"autoRotateRke2CertsSetting","supportBundleNodeCollectionTimeoutSetting"],s=[...a,"kubeconfigDefaultTokenTTLMinutesSetting","improveMaintenanceMode"],l=[...s,"cpuPinning","usbPassthrough","volumeEncryption","schedulingVMBackup","vmSnapshotQuota","longhornV2LVMSupport","improveMaintenanceMode"],c={"v1.3.0":o,"v1.3.1":a,"v1.3.2":s,"v1.4.0":l},u=(e,t)=>{const n=`v${i().major(t)}.${i().minor(t)}`;return`https://docs.harvesterhci.io/${n}${e}`};function d(e){if({NODE_ENV:"production",BASE_URL:"/"}.VUE_APP_SERVER_VERSION)return{NODE_ENV:"production",BASE_URL:"/"}.VUE_APP_SERVER_VERSION;try{return`v${i().major(e)}.${i().minor(e)}.${i().patch(e)}`}catch(t){return Object.keys(c).sort(((e,t)=>i().compare(e,t))).pop()}}const h=(e,t)=>{const n=d(t),r=c[n]||[];return r.includes(e)}},66490:function(e,t,n){"use strict";n.d(t,{v:function(){return i}});var r=n(2602);function i(e){let t=[];try{t=JSON.parse(e?.metadata?.annotations?.[r.r.VOLUME_CLAIM_TEMPLATE])||[]}catch(n){}return t}},52880:function(e,t,n){"use strict";n.d(t,{Vi:function(){return i},_X:function(){return a},b8:function(){return o}});var r=n(2602);const i=["qcow","qcow2","raw","img","iso"];function o(e,t,n,r,o){const a=t["i18n/t"];if(!e||""===e)return n;const s=e.split("/").pop(),l=s.split(".").pop().toLowerCase();if(!i.includes(l)){const e="file"===o?"harvester.validation.image.ruleFileTip":"harvester.validation.image.ruleTip";n.push(a(e))}return n}function a(e={},t,n,i,o){const a=t["i18n/t"];return e[r.r.IMAGE_NAME]||n.push(a("validation.required",{key:a("harvester.image.fileName")})),n}},76250:function(e,t,n){"use strict";n.d(t,{T:function(){return i},r:function(){return r}});const r=["token-hashing","multi-cluster-management"],i="harvester"},71445:function(e,t,n){"use strict";n.d(t,{$E:function(){return d},B9:function(){return C},Do:function(){return w},G5:function(){return b},Hs:function(){return A},MW:function(){return u},O3:function(){return _},Pl:function(){return v},Rw:function(){return m},S5:function(){return I},Ub:function(){return S},VT:function(){return D},W8:function(){return k},XH:function(){return P},Z_:function(){return N},_n:function(){return g},bs:function(){return h},d6:function(){return f},eG:function(){return s},ht:function(){return a},ks:function(){return r},lq:function(){return O},nN:function(){return p},ol:function(){return c},pS:function(){return y},qt:function(){return x},rW:function(){return F},rk:function(){return L},tC:function(){return i},uf:function(){return M},vi:function(){return E},xO:function(){return T},yA:function(){return o},yl:function(){return l}});const r="field.cattle.io/name",i="field.cattle.io/description",o="kubernetes.io/hostname",a="cattle.io/timestamp",s="management.cattle.io/system-namespace",l="field.cattle.io/projectId",c="authz.management.cattle.io/default-project",u="authz.management.cattle.io/system-project",d="field.cattle.io/containerDefaultResourceLimit",h="field.cattle.io/publicEndpoints",p="field.cattle.io/targetWorkloadIds",f="management.cattle.io/ui-managed",m="field.cattle.io/creatorId",g="field.cattle.io/resourceQuota",v="kubernetes.io/arch",y={SERVICE_ACCOUNT_UID:"kubernetes.io/service-account.uid",SERVICE_ACCOUNT_NAME:"kubernetes.io/service-account.name",MANAGED_BY:"app.kubernetes.io/managed-by",MANAGED_NAME:"app.kubernetes.io/name",INSTANCE:"app.kubernetes.io/instance"},b={ISSUER:"cert-manager.io/issuer-name"},_={DEFAULT_STORAGE_CLASS:"storageclass.kubernetes.io/is-default-class",BETA_DEFAULT_STORAGE_CLASS:"storageclass.beta.kubernetes.io/is-default-class"},w={NODE_NAME:"management.cattle.io/nodename"},E={CONTROL_PLANE_OLD:"node-role.kubernetes.io/controlplane",CONTROL_PLANE:"node-role.kubernetes.io/control-plane",WORKER:"node-role.kubernetes.io/worker",ETCD:"node-role.kubernetes.io/etcd"},S={CONTROL_PLANE:"rke.cattle.io/control-plane-role",WORKER:"rke.cattle.io/worker-role",ETCD:"rke.cattle.io/etcd-role"},x={DEPLOYMENT_NAME:"cluster.x-k8s.io/deployment-name",CREDENTIAL_DRIVER:"provisioning.cattle.io/driver",CLUSTER_NAMESPACE:"cluster.x-k8s.io/cluster-namespace",FORCE_MACHINE_REMOVE:"provisioning.cattle.io/force-machine-remove",MACHINE_NAME:"cluster.x-k8s.io/machine",DELETE_MACHINE:"cluster.x-k8s.io/delete-machine",PROVIDER:"provider.cattle.io",SECRET_AUTH:"v2prov-secret-authorized-for-cluster",SECRET_WILL_DELETE:"v2prov-authorized-secret-deletes-on-cluster-removal",UI_CUSTOM_PROVIDER:"ui.rancher/provider"},k={CERTIFIED:"catalog.cattle.io/certified",_RANCHER:"rancher",_PARTNER:"partner",_OTHER:"other",EXPERIMENTAL:"catalog.cattle.io/experimental",NAMESPACE:"catalog.cattle.io/namespace",RELEASE_NAME:"catalog.cattle.io/release-name",FEATURED:"catalog.cattle.io/featured",REQUIRES_GVK:"catalog.cattle.io/requires-gvr",PROVIDES:"catalog.cattle.io/provides-gvr",AUTO_INSTALL_GVK:"catalog.cattle.io/auto-install-gvr",AUTO_INSTALL:"catalog.cattle.io/auto-install",HIDDEN:"catalog.cattle.io/hidden",REQUESTS_CPU:"catalog.cattle.io/requests-cpu",REQUESTS_MEMORY:"catalog.cattle.io/requests-memory",SCOPE:"catalog.cattle.io/scope",_MANAGEMENT:"management",_DOWNSTREAM:"downstream",TYPE:"catalog.cattle.io/type",_APP:"app",_CLUSTER_TPL:"cluster-template",_CLUSTER_TOOL:"cluster-tool",COMPONENT:"catalog.cattle.io/ui-component",SOURCE_REPO_TYPE:"catalog.cattle.io/ui-source-repo-type",SOURCE_REPO_NAME:"catalog.cattle.io/ui-source-repo",COLOR:"catalog.cattle.io/ui-color",DISPLAY_NAME:"catalog.cattle.io/display-name",CLUSTER_REPO_NAME:"catalog.cattle.io/cluster-repo-name",SUPPORTED_OS:"catalog.cattle.io/os",PERMITTED_OS:"catalog.cattle.io/permits-os",DEPLOYED_OS:"catalog.cattle.io/deploys-on-os",MIGRATED:"apps.cattle.io/migrated",MANAGED:"catalog.cattle.io/managed",HIDDEN_REPO:"clusterrepo.cattle.io/hidden"},A={CLUSTER_DISPLAY_NAME:"management.cattle.io/cluster-display-name",CLUSTER_NAME:"management.cattle.io/cluster-name",BUNDLE_ID:"fleet.cattle.io/bundle-id",MANAGED:"fleet.cattle.io/managed",CLUSTER_NAMESPACE:"fleet.cattle.io/cluster-namespace",CLUSTER:"fleet.cattle.io/cluster"},N={EXTERNAL_IP:"rke.cattle.io/external-ip"},T={CLUSTER_NAME:"rke.cattle.io/cluster-name"},C={AUTO_INJECTION:"istio-injection"},R=/cattle\.io\//,O=[R],I=[R],D=[/^kubectl\.kubernetes\.io\/.*$/,/^objectset\.rio\.cattle\.io\/.*$/],L={CLOUD_INIT:"harvesterhci.io/cloud-init-template",CLOUD_PROVIDER_IPAM:"cloudprovider.harvesterhci.io/ipam",NETWORK_ROUTE:"network.harvesterhci.io/route",IMAGE_NAME:"harvesterhci.io/image-name",NETWORK_TYPE:"network.harvesterhci.io/type",CLUSTER_NETWORK:"network.harvesterhci.io/clusternetwork",PRIMARY_SERVICE:"cloudprovider.harvesterhci.io/primary-service"},P={TEXT:"ui.rancher/badge-text",COLOR:"ui.rancher/badge-color",ICON_TEXT:"ui.rancher/badge-icon-text"},M=["io.cattle.lifecycle.","beta.kubernetes.io","failure-domain.beta.kubernetes.io","node-role.kubernetes.io","kubernetes.io","cattle.io","authz.management.cattle.io","rke.cattle.io","field.cattle.io","workload.user.cattle.io","k3s.io","node.kubernetes.io","egress.rke2.io"],F={EXPIRATION:"rancher.io/expiration-timestamp"}},1775:function(e,t,n){"use strict";n.d(t,{Xc:function(){return o},ce:function(){return l},nl:function(){return i},r1:function(){return s},tm:function(){return a}});var r=n(37386);r.o_;const i={name:"steve-id",labelKey:"tableHeaders.id",value:"id",sort:!1,search:!1},o={...r.c4,sort:!1,search:!1},a={...r.K,value:"metadata.creationTimestamp",sort:"metadata.creationTimestamp",search:!1},s={...r.CU,value:"metadata.namespace",sort:"metadata.namespace",search:"metadata.namespace"},l=[{tooltipKey:"resourceTable.groupBy.none",icon:"icon-list-flat",value:"none"},{icon:"icon-folder",value:"metadata.namespace",field:"metadata.namespace",hideColumn:r.CU.name,tooltipKey:"resourceTable.groupBy.namespace",groupLabelKey:"groupByLabel"}]},25705:function(e,t,n){"use strict";n.d(t,{M0:function(){return o},f7:function(){return d},xc:function(){return u}});var r=n(41890),i=n(97389);const o=`https://ranchermanager.docs.rancher.com/v${i.ji}`,a="Rancher",s={suse:"Rancher Prime",csp:"SUSE Rancher"};let l=a,c=null;function u(e){l=e,h()}function d(){return l===r.HG.PL_RANCHER_VALUE?c&&s[c]?s[c]:a:l}function h(){const e=d();if("Harvester"===e){const e=n(75190);document.title="Harvester";const t=document.createElement("link");t.hid="icon",t.rel="icon",t.type="image/x-icon",t.hrefv=e;const r=document.getElementsByTagName("head")[0];r.appendChild(t)}}},11040:function(e,t,n){"use strict";n.d(t,{o_:function(){return r}});n(90626),n(4284),n(37386);const r="cis"},93786:function(e,t,n){"use strict";n.d(t,{o:function(){return r}});n(4284),n(37386),n(90626),n(1775),n(72073),n(31165),n(61972);const r="explorer"},66382:function(e,t,n){"use strict";n.d(t,{o:function(){return r}});n(37386),n(4284),n(31165),n(90626),n(65505);const r="manager"},75040:function(e,t,n){"use strict";n.d(t,{$y:function(){return _},AS:function(){return f},CU:function(){return N},Eo:function(){return E},G5:function(){return c},G8:function(){return r},HC:function(){return p},L_:function(){return b},NO:function(){return S},Qp:function(){return i},RX:function(){return x},Rm:function(){return T},Sd:function(){return R},UA:function(){return w},YQ:function(){return s},Yq:function(){return y},_N:function(){return I},au:function(){return g},dT:function(){return d},dV:function(){return C},fS:function(){return m},g:function(){return a},iJ:function(){return O},nW:function(){return l},o_:function(){return A},wC:function(){return u},wZ:function(){return h},xv:function(){return k},xz:function(){return o},zD:function(){return v}});const r="local",i=null,o=void 0,a="mode",s="create",l="view",c="edit",u="list",d="clone",h="stage",p="import",f="as",m="detail",g="config",v="yaml",y="graph",b="focus",_="preview",w="type",E="repo-type",S="repo",x="chart",k="version",A="name",N="namespace",T="tools",C="hide-side-nav",R="cloud",O="projectId",I="flatView"},45901:function(e,t){"use strict";t.A=["cattle-dashboards","cattle-global-data","cattle-system","gatekeeper-system","ingress-nginx","kube-node-lease","kube-public","kube-system","linkerd","security-scan","tekton-pipelines","cis-operator-system","istio-system","longhorn-system"]},37386:function(e,t,n){"use strict";n.d(t,{BD:function(){return w},CU:function(){return g},K:function(){return y},P4:function(){return l},Qg:function(){return A},Si:function(){return b},UA:function(){return S},X:function(){return d},X0:function(){return c},Yf:function(){return p},ZE:function(){return E},ZU:function(){return m},_:function(){return k},aQ:function(){return h},c4:function(){return a},hX:function(){return f},nv:function(){return v},o_:function(){return s},rh:function(){return x},wS:function(){return u},z7:function(){return T}});var r=n(71445),i=n(4284),o=n(72073);const a={name:"state",labelKey:"tableHeaders.state",sort:["stateSort","nameSort"],value:"stateDisplay",getValue:e=>e.stateDisplay,width:100,default:"unknown",formatter:"BadgeStateFormatter"},s={name:"name",labelKey:"tableHeaders.name",value:"nameDisplay",getValue:e=>e.nameDisplay,sort:["nameSort"],formatter:"LinkDetail",canBeVariable:!0},l={name:"logging-output-providers",labelKey:"tableHeaders.loggingOutputProviders",value:"providersDisplay",sort:["providersSortable"],formatter:"List"},c={name:"name",labelKey:"tableHeaders.simpleName",value:"name",sort:["name"],width:200,canBeVariable:!0},u={name:"storage_class_provisioner",labelKey:"tableHeaders.storage_class_provisioner",value:"provisionerDisplay",sort:["provisioner"]},d={name:"storage_class_default",labelKey:"tableHeaders.default",value:"isDefault",sort:["isDefault"],formatter:"Checked"},h={name:"localOutputRefs",labelKey:"tableHeaders.output",value:"outputs",sort:["outputsSortable"],formatter:"ListLink",formatterOpts:{options:{internal:!0}}},p={name:"providers",labelKey:"tableHeaders.providers",value:"providersDisplay",sort:"providersSortable",formatter:"List"},f={...h,name:"globalOutputRefs",value:"clusterOutputs",sort:["clusterOutputsSortable"],labelKey:"tableHeaders.clusterOutput"},m={name:"name",labelKey:"tableHeaders.nameUnlinked",value:"nameDisplay",sort:["nameSort"],canBeVariable:!0},g={name:"namespace",labelKey:"tableHeaders.namespace",value:"namespace",getValue:e=>e.namespace,sort:"namespace",dashIfEmpty:!0},v=(i.NW,{name:"principal",labelKey:"tableHeaders.name",sort:"principal.loginName",value:"principalId",formatter:"Principal"}),y={name:"age",labelKey:"tableHeaders.age",value:"creationTimestamp",getValue:e=>e.creationTimestamp,sort:"creationTimestamp:desc",search:!1,formatter:"LiveDate",width:100,align:"left"},b={name:"NamespaceSnapshotQuota",labelKey:"harvester.tableHeaders.totalSnapshotQuota",value:"snapshotSizeQuota",sort:"snapshotSizeQuota",align:"center",formatter:"Si",formatterOpts:{opts:{increment:1024,addSuffix:!0,suffix:"i"},needParseSi:!1}},_={name:"pod_images",labelKey:"tableHeaders.podImages",value:"imageNames",getValue:e=>e.imageNames,sort:"imageNames",formatter:"PodImages"},w={name:"address",labelKey:"tableHeaders.address",value:"address",sort:["address"]},E={name:"type",labelKey:"tableHeaders.type",value:"typeDisplay",getValue:e=>e.typeDisplay,sort:["typeDisplay"],width:100},S={name:"subType",labelKey:"tableHeaders.subType",value:"subTypeDisplay",sort:["subTypeDisplay"],width:120},x={name:"reason",labelKey:"tableHeaders.reason",value:"reason",sort:["reason"]},k={name:"key",labelKey:"tableHeaders.key",value:"key",sort:["key"]},A={name:"value",labelKey:"tableHeaders.value",value:"value",sort:["value"]},N=(o.c.LAPTOP,r.bs,o.c.DESKTOP,{name:"scope",value:"clusterName",labelKey:"tableHeaders.scope",dashIfEmpty:!0,align:"left",sort:["scope"],width:100}),T={name:"role",value:"roleDisplay",labelKey:"tableHeaders.role"}},4284:function(e,t,n){"use strict";n.d(t,{$v:function(){return R},B9:function(){return V},BN:function(){return q},CU:function(){return c},FV:function(){return W},GQ:function(){return J},Hr:function(){return l},Hs:function(){return U},K5:function(){return o},Mc:function(){return $},NW:function(){return u},PV:function(){return h},Rp:function(){return D},SB:function(){return F},Sg:function(){return v},Sm:function(){return d},UI:function(){return G},UP:function(){return E},W8:function(){return O},XG:function(){return _},YH:function(){return p},YV:function(){return m},ZV:function(){return Z},Zd:function(){return M},Zq:function(){return b},_n:function(){return H},bB:function(){return g},cG:function(){return z},cm:function(){return K},d_:function(){return Q},eo:function(){return Y},fJ:function(){return y},fj:function(){return I},i2:function(){return a},k$:function(){return i},lI:function(){return P},lk:function(){return S},ll:function(){return s},m3:function(){return w},m4:function(){return r},oU:function(){return x},oe:function(){return L},qt:function(){return j},rW:function(){return k},rk:function(){return X},xO:function(){return B},yx:function(){return f}});const r={PREFERENCE:"userpreference",SCHEMA_DEFINITION:"schemaDefinition"},i={APP:"app",AUTH_CONFIG:"authconfig",ETCD_BACKUP:"etcdbackup",CLUSTER:"cluster",CLUSTER_TOKEN:"clusterregistrationtoken",CLUSTER_ROLE_TEMPLATE_BINDING:"clusterroletemplatebinding",CLOUD_CREDENTIAL:"cloudcredential",FLEET_WORKSPACES:"fleetworkspace",GLOBAL_ROLE:"globalRole",GLOBAL_ROLE_BINDING:"globalRoleBinding",NODE_POOL:"nodePool",NODE:"node",PRINCIPAL:"principal",PROJECT:"project",PROJECT_ROLE_TEMPLATE_BINDING:"projectroletemplatebinding",SETTING:"setting",SPOOFED:{GROUP_PRINCIPAL:"group.principal"},ROLE_TEMPLATE:"roleTemplate",TOKEN:"token",USER:"user",KONTAINER_DRIVER:"kontainerDriver",NODE_DRIVER:"nodeDriver"},o="configmap",a="count",s="event",l="endpoints",c="namespace",u="node",d="pod",h="persistentvolume",p="persistentvolumeclaim",f="schema",m="service",g="secret",v="serviceaccount",y="storage.k8s.io.storageclass",b="storage.k8s.io.csidriver",_="k8s.cni.cncf.io.networkattachmentdefinition",w="user",E="group",S={ROLE:"rbac.authorization.k8s.io.role",CLUSTER_ROLE:"rbac.authorization.k8s.io.clusterrole",ROLE_BINDING:"rbac.authorization.k8s.io.rolebinding",CLUSTER_ROLE_BINDING:"rbac.authorization.k8s.io.clusterrolebinding"},x={DEPLOYMENT:"apps.deployment",CRON_JOB:"batch.cronjob",DAEMON_SET:"apps.daemonset",JOB:"batch.job",STATEFUL_SET:"apps.statefulset",REPLICA_SET:"apps.replicaset",REPLICATION_CONTROLLER:"replicationcontroller"},k={[x.DEPLOYMENT]:"ReplicaSet",[x.CRON_JOB]:"CronJob",[x.DAEMON_SET]:"DaemonSet",[x.JOB]:"Job",[x.STATEFUL_SET]:"StatefulSet",[x.REPLICA_SET]:"ReplicaSet",[x.REPLICATION_CONTROLLER]:"ReplicationController"},{DAEMON_SET:A,CRON_JOB:N,JOB:T,...C}=(x.DAEMON_SET,x.REPLICA_SET,x.STATEFUL_SET,x.DEPLOYMENT,x),R={NODE:"metrics.k8s.io.nodemetrics",POD:"metrics.k8s.io.podmetrics"},O={CLUSTER_REPO:"catalog.cattle.io.clusterrepo",OPERATION:"catalog.cattle.io.operation",APP:"catalog.cattle.io.app",REPO:"catalog.cattle.io.repo"},I={PROJECTHELMCHART:"helm.cattle.io.projecthelmchart"},D={ALERTMANAGER:"monitoring.coreos.com.alertmanager",ALERTMANAGERCONFIG:"monitoring.coreos.com.alertmanagerconfig",PODMONITOR:"monitoring.coreos.com.podmonitor",PROMETHEUS:"monitoring.coreos.com.prometheus",PROMETHEUSRULE:"monitoring.coreos.com.prometheusrule",SERVICEMONITOR:"monitoring.coreos.com.servicemonitor",THANOSRULER:"monitoring.coreos.com.thanosruler",SPOOFED:{RECEIVER:"monitoring.coreos.com.receiver",RECEIVER_SPEC:"monitoring.coreos.com.receiver.spec",RECEIVER_EMAIL:"monitoring.coreos.com.receiver.email",RECEIVER_SLACK:"monitoring.coreos.com.receiver.slack",RECEIVER_WEBHOOK:"monitoring.coreos.com.receiver.webhook",RECEIVER_PAGERDUTY:"monitoring.coreos.com.receiver.pagerduty",RECEIVER_OPSGENIE:"monitoring.coreos.com.receiver.opsgenie",RECEIVER_HTTP_CONFIG:"monitoring.coreos.com.receiver.httpconfig",RESPONDER:"monitoring.coreos.com.receiver.responder",ROUTE:"monitoring.coreos.com.route",ROUTE_SPEC:"monitoring.coreos.com.route.spec"}},L={ENGINES:"longhorn.io.engine",ENGINE_IMAGES:"longhorn.io.engineimage",NODES:"longhorn.io.node",REPLICAS:"longhorn.io.replica",SETTINGS:"longhorn.io.setting",VOLUMES:"longhorn.io.volume"},P="driver.longhorn.io",M="LonghornV1",F="LonghornV2",B="rke.cattle.io.etcdsnapshot",$={AUTH_CONFIG:"management.cattle.io.authconfig",CATALOG_TEMPLATE:"management.cattle.io.catalogtemplate",CLUSTER:"management.cattle.io.cluster",CLUSTER_ROLE_TEMPLATE_BINDING:"management.cattle.io.clusterroletemplatebinding",FEATURE:"management.cattle.io.feature",KONTAINER_DRIVER:"management.cattle.io.kontainerdriver",MULTI_CLUSTER_APP:"management.cattle.io.multiclusterapp",NODE:"management.cattle.io.node",NODE_DRIVER:"management.cattle.io.nodedriver",NODE_POOL:"management.cattle.io.nodepool",NODE_TEMPLATE:"management.cattle.io.nodetemplate",PROJECT:"management.cattle.io.project",PROJECT_ROLE_TEMPLATE_BINDING:"management.cattle.io.projectroletemplatebinding",ROLE_TEMPLATE:"management.cattle.io.roletemplate",SETTING:"management.cattle.io.setting",USER:"management.cattle.io.user",TOKEN:"management.cattle.io.token",GLOBAL_ROLE:"management.cattle.io.globalrole",GLOBAL_ROLE_BINDING:"management.cattle.io.globalrolebinding",PSA:"management.cattle.io.podsecurityadmissionconfigurationtemplate",MANAGED_CHART:"management.cattle.io.managedchart",USER_NOTIFICATION:"management.cattle.io.rancherusernotification",GLOBAL_DNS_PROVIDER:"management.cattle.io.globaldnsprovider",RKE_TEMPLATE:"management.cattle.io.clustertemplate",RKE_TEMPLATE_REVISION:"management.cattle.io.clustertemplaterevision",CLUSTER_PROXY_CONFIG:"management.cattle.io.clusterproxyconfig"},j={CAPI_CLUSTER:"cluster.x-k8s.io.cluster",MACHINE_DEPLOYMENT:"cluster.x-k8s.io.machinedeployment",MACHINE_SET:"cluster.x-k8s.io.machineset",MACHINE:"cluster.x-k8s.io.machine",RANCHER_CLUSTER:"provisioning.cattle.io.cluster",MACHINE_CONFIG_GROUP:"rke-machine-config.cattle.io"},U={BUNDLE:"fleet.cattle.io.bundle",BUNDLE_DEPLOYMENT:"fleet.cattle.io.bundledeployment",CLUSTER:"fleet.cattle.io.cluster",CLUSTER_GROUP:"fleet.cattle.io.clustergroup",DASHBOARD:"fleet.cattle.io.dashboard",GIT_REPO:"fleet.cattle.io.gitrepo",WORKSPACE:"management.cattle.io.fleetworkspace",TOKEN:"fleet.cattle.io.clusterregistrationtoken",BUNDLE_NAMESPACE_MAPPING:"fleet.cattle.io.bundlenamespacemapping",GIT_REPO_RESTRICTION:"fleet.cattle.io.gitreporestriction"},V={VIRTUAL_SERVICE:"networking.istio.io.virtualservice",DESTINATION_RULE:"networking.istio.io.destinationrule",GATEWAY:"networking.istio.io.gateway"},K={CLUSTER_FLOW:"logging.banzaicloud.io.clusterflow",CLUSTER_OUTPUT:"logging.banzaicloud.io.clusteroutput",FLOW:"logging.banzaicloud.io.flow",OUTPUT:"logging.banzaicloud.io.output",SPOOFED:{FILTERS:"logging.banzaicloud.io.output.filters",FILTER:"logging.banzaicloud.io.output.filter",CONCAT:"logging.banzaicloud.io.output.filters.concat",DEDOT:"logging.banzaicloud.io.output.filters.dedot",DETECTEXCEPTIONS:"logging.banzaicloud.io.output.filters.detectExceptions",GEOIP:"logging.banzaicloud.io.output.filters.geoip",GREP:"logging.banzaicloud.io.output.filters.grep",PARSER:"logging.banzaicloud.io.output.filters.parser",PROMETHEUS:"logging.banzaicloud.io.output.filters.prometheus",RECORD_MODIFIER:"logging.banzaicloud.io.output.filters.record_modifier",RECORD_TRANSFORMER:"logging.banzaicloud.io.output.filters.record_transformer",STDOUT:"logging.banzaicloud.io.output.filters.stdout",SUMOLOGIC:"logging.banzaicloud.io.output.filters.sumologic",TAG_NORMALISER:"logging.banzaicloud.io.output.filters.tag_normaliser",THROTTLE:"logging.banzaicloud.io.output.filters.throttle",RECORD:"logging.banzaicloud.io.output.filters.record",REGEXPSECTION:"logging.banzaicloud.io.output.filters.regexpsection",EXCLUDESECTION:"logging.banzaicloud.io.output.filters.excludesection",ORSECTION:"logging.banzaicloud.io.output.filters.orsection",ANDSECTION:"logging.banzaicloud.io.output.filters.andsection",PARSESECTION:"logging.banzaicloud.io.output.filters.parsesection",METRICSECTION:"logging.banzaicloud.io.output.filters.metricsection",REPLACE:"logging.banzaicloud.io.output.filters.replace",SINGLEPARSESECTION:"logging.banzaicloud.io.output.filters.replace.singleparsesection"}},H={CLUSTER_SCAN:"cis.cattle.io.clusterscan",CLUSTER_SCAN_PROFILE:"cis.cattle.io.clusterscanprofile",BENCHMARK:"cis.cattle.io.clusterscanbenchmark",REPORT:"cis.cattle.io.clusterscanreport"},G={NAV_LINK:"ui.cattle.io.navlink"},z={CLUSTER_MEMBERS:"cluster-members",PROJECT_NAMESPACES:"projects-namespaces",NAMESPACES:"namespaces",JWT_AUTHENTICATION:"jwt.authentication"},X={CLUSTER:"harvesterhci.io.management.cluster",DASHBOARD:"harvesterhci.io.dashboard",IMAGE:"harvesterhci.io.virtualmachineimage",VGPU_DEVICE:"devices.harvesterhci.io.vgpudevice",SETTING:"harvesterhci.io.setting",RESOURCE_QUOTA:"harvesterhci.io.resourcequota",HARVESTER_CONFIG:"rke-machine-config.cattle.io.harvesterconfig"},q="harvester",W={HOSTNAME:"Hostname",INTERNAL_IP:"InternalIP",EXTERNAL_IP:"ExternalIP"},Y="fleet-default",Q="local",J="Deprecated",Z="Experimental"},97389:function(e,t,n){"use strict";n.d(t,{f$:function(){return i},ji:function(){return o}});let r={RancherPrime:"false"};function i(){return"true"===r.RancherPrime?.toLowerCase()}const o="2.10"},23443:function(e,t,n){"use strict";n.d(t,{Fm:function(){return s},Mz:function(){return l}});var r=n(24759),i=n(98258),o=n(9776);let a=1;const s="_beforeSaveHooks",l="_afterSaveHooks";t.Ay={methods:{registerBeforeHook(e,t,n=99,r){this._registerHook(s,e,t,n,r)},unregisterBeforeSaveHook(e){this[s]=this[s].filter((t=>t.name!==e))},registerAfterHook(e,t,n=99,r){this._registerHook(l,e,t,n,r)},async applyHooks(e,...t){if(!e)throw new Error("Must specify key");const n=(0,i.Ul)(this[e]||[],["priority","name"]),r={};for(const i of n)o.debug("Applying hook",i.name),r[i.name]=await i.fn.apply(i.fnContext||this,t);return r},_registerHook(e,t,n,i,o){if(!e)throw new Error("Must specify key");n||(n=`hook_${a}`,a++),i||(i=99);let s=this[e];s||(s=[],this[e]=s);let l=(0,r.jq)(s,"name",n);l?(l.priority=i,l.fn=t,l.fnContext=o):(l={name:n,priority:i,fn:t,fnContext:o},s.push(l))}}}},46257:function(e,t){"use strict";t.A={props:{pref:{type:String,default:null},prefKey:{type:String,default:null}},computed:{shown(){let e=!0;if(this.pref){const t=this.$store.getters["prefs/get"](this.pref);e=this.prefKey?!t[this.prefKey]:!t}return e}},methods:{async hide(){if(this.pref){let e=this.$store.getters["prefs/get"](this.pref);this.prefKey&&((!0===e||!1===e||e.length>0)&&(e={}),e[this.prefKey]=!0),await this.$store.dispatch("prefs/set",{key:this.pref,value:e})}}}}},58331:function(e,t,n){"use strict";var r=n(75040),i=n(97538),o=n(71898),a=n(23443),s=n(24759),l=n(4284),c=n(33781),u=n(9776);t.A={name:"CreateEditView",mixins:[a.Ay],emits:["done"],data(){return{errors:[]}},computed:{isCreate(){return this.mode===r.YQ},isEdit(){return this.mode===r.G5},isView(){return this.mode===r.nW},schema(){const e=this.storeOverride||this.$store.getters["currentStore"](this.value.type);return this.$store.getters[`${e}/schemaFor`](this.value.type)},isNamespaced(){return this.schema?.attributes?.namespaced||!1},labels:{get(){return this.value?.labels},set(e){this.value.setLabels(e)}},annotations:{get(){return this.value?.annotations},set(e){this.value.setAnnotations(e)}},doneRoute(){if(this.value?.doneRoute)return this.value.doneRoute;let e=this.$route.name;return e?.endsWith("-id")?e=e.replace(/(-namespace)?-id$/,""):e?.endsWith("-create")&&(e=e.replace(/-create$/,"")),e},doneParams(){if(this.value?.doneParams)return this.value.doneParams;const e={...this.$route.params};return delete e.namespace,delete e.id,e}},methods:{done(){if(!this.doneEvent)return this.doneLocationOverride?this.$router.replace(this.doneLocationOverride):void(this.doneRoute&&this.$router.replace({name:this.doneRoute,params:this.doneParams||{resource:this.value.type}}));this.$emit("done")},async conflict(){return await(0,c.Rq)(this.initialValue.toJSON(),this.value,this.liveValue,this.$store.getters,this.$store,this.storeOverride||this.$store.getters["currentStore"](this.value.type))},async save(e,t,n=0){this.errors&&(0,s.IU)(this.errors);try{if(await this.applyHooks(a.Fm,this.value),this.value?.metadata?.labels&&0===Object.keys(this.value.metadata.labels||{}).length&&delete this.value.metadata.labels,this.value?.metadata?.annotations&&0===Object.keys(this.value.metadata.annotations||{}).length&&delete this.value.metadata.annotations,this.isCreate){const e=this.value?.metadata?.namespace;e&&e!==l.eo&&this.value.$dispatch("prefs/set",{key:i.Ri,value:e},{root:!0})}await this.actuallySave(t),this.$store.getters["type-map/isSpoofed"](this.value.type)&&await this.$store.dispatch("cluster/findAll",{type:this.value.type,opt:{force:!0}},{root:!0}),await this.applyHooks(a.Mz,this.value),e&&e(!0),this.done()}catch(r){if(409===r.status&&0===n&&this.isEdit){const r=await this.conflict();if(!1===r)return this.save(e,t,n+1);this.errors=r}else this.errors=(0,o.rz)(r);u.error("CreateEditView mixin failed to save: ",r),e&&e(!1)}},async actuallySave(e){if(this.isCreate){e=e||this.schema.linkFor("collection");const t=await this.value.save({url:e});t&&Object.assign(this.value,t)}else await this.value.save()},setErrors(e){this.errors=e}}}},81357:function(e,t,n){"use strict";var r=n(75040),i=n(9274),o=n(58331);t.A=(0,i.defineComponent)({...o.A,props:{mode:{type:String,default:r.G5},realMode:{type:String,default:r.G5},as:{type:String,default:r.zD},value:{type:Object,required:!0},initialValue:{type:Object,default:null},liveValue:{type:Object,default:null},doneEvent:{type:Boolean,default:!1}}})},53551:function(e,t,n){"use strict";var r=n(65852),i=n(6246);t.A={data(){return{fvFormRuleSets:[],fvReportedValidationPaths:[]}},methods:{fvGetPathRules(e){return this.fvRulesets.find((t=>t.path===e))?.rules||[]},fvGetAndReportPathRules(e){const t=this.fvGetPathRules(e);return t.length>0&&!this.fvReportedValidationPaths.includes(e)&&(this.fvReportedValidationPaths=[...this.fvReportedValidationPaths,e]),t},fvGetPathValues(e){const t=this.fvRulesets.find((t=>t.path===e));return t?(0,r.Ib)(t?.rootObject||this.value,t?.path):[]},fvGetValues(e,t,n){return n.length>1&&"object"===typeof e&&!Array.isArray(e)&&null!==e?{...e,idx:t}:e},fvGetPathErrors(e=[]){const t=e.reduce(((e,t)=>{const n=[],r=this.fvGetPathRules(t),i=this.fvGetPathValues(t).map(this.fvGetValues);return r.forEach((e=>{i.forEach((t=>{n.push(e(t))}))})),[...e,...n].filter(Boolean)}),[]);return t}},computed:{fvExtraRules(){return{}},fvRulesets(){const e=()=>{};return[...this.fvFormRuleSets.map((t=>{const n={...(0,i.A)(this.$store.getters["i18n/t"],{displayKey:t?.translationKey?this.$store.getters["i18n/t"](t.translationKey):"Value"}),...this.fvExtraRules};return{...t,rules:t.rules.map((t=>n[t]||e)),formValidationRule:!0}})),...(this?.value?.modelValidationRules||[]).map((e=>({...e,formValidationRule:!1})))]},fvUnreportedValidationErrors(){const e=this.fvRulesets.filter((e=>!!e.formValidationRule&&!this.fvReportedValidationPaths.includes(e.path))).map((e=>e.path)),t=this.fvGetPathErrors(e),n=this.value.customValidationErrors?this.value.customValidationErrors(this.value,this.fvReportedValidationPaths):[];return[...t,...n,...this.errors||[]]},fvValidationErrors(){const e=this.fvRulesets.filter((e=>!!e.formValidationRule)).map((e=>e.path)),t=this.fvGetPathErrors(e),n=this.value.customValidationErrors?this.value.customValidationErrors(this.value):[];return[...t,...n]},fvFormIsValid(){return 0===this.fvValidationErrors.length}}}},91086:function(e,t){"use strict";t.A={methods:{mappedKeys(e,t){const n={...e};return n[9]=e=>{if(!t.open)return;e.preventDefault();const n=t.filteredOptions.length,r=t.typeAheadPointer;return e.shiftKey?0===r?t.onEscape():t.typeAheadUp():r+1===n?t.onEscape():t.typeAheadDown()},n[27]=e=>(t.open=!1,t.search="",!1),n[13]=(e,n)=>{if(!t.open)return void(t.open=!0);let r=t.filteredOptions[t.typeAheadPointer];t.$emit("option:selecting",r),t.isOptionSelected(r)||(t.taggable&&!t.optionExists(r)&&t.$emit("option:created",r),t.multiple&&(r=t.selectedValue.concat(r)),t.updateValue(r),t.$emit("option:selected",r),t.closeOnSelect&&(t.open=!1,t.typeAheadPointer=-1),t.clearSearchOnSelect&&(t.search=""))},n[38]=e=>(e.preventDefault(),t.open||(t.open=!0),t.typeAheadUp()),n[40]=e=>(e.preventDefault(),t.open||(t.open=!0),t.typeAheadDown()),n}}}},82643:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n(75040),i=n(79325);const o={KIND_SEPARATOR:"://",GROUP_SEPARATOR:":",BASE_SEPARATOR:"*",ID_SEPARATOR:":",KIND_ALL:"containers",SYSTEM_CATEGORIES:["Rancher services"],CATALOG_DEFAULT_GROUP:"library"};function a(e){const t={kind:null,group:null,base:null,id:null,name:null,version:null};if(!e)return t;const n=e.indexOf(o.KIND_SEPARATOR);if(n>=0){t.kind=e.substr(0,n);let r=e.substr(n+o.KIND_SEPARATOR.length+1);t.id=e,r=r.split("&"),r.forEach((e=>{const[n,r]=e.split("=");t[n]=r}))}let r=t.catalog;return r=r.includes("/")?r.replace("/",":"):`cattle-global-data:${r}`,t.templateId=`${r}-${t.template}`,t.templateVersionId=`${r}-${t.template}-${t.version}`,t}class s extends i.A{get appEditUrl(){return this.detailLocation}goToEdit(e={}){const t=this.appEditUrl;t.query={...t.query,[r.g]:r.G5,...e},this.currentRouter().push(t)}get currentVersion(){return a(this.externalId).version}}},78930:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(38991);class i extends r.A{get revisionNumber(){return this.revision}}},52751:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(97737);class i extends r["default"]{async rollBack(e,t,n){const r=[{op:"replace",path:"/spec/template",value:{metadata:n.data.spec.template.metadata,spec:n.data.spec.template.spec}},{op:"replace",path:"/metadata/generation",value:n.revision}];await this.rollBackWorkload(e,t,"daemonsets",r)}}},75672:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n(4284),i=n(97737);const o=["kubectl.kubernetes.io/last-applied-configuration","deployment.kubernetes.io/revision","deployment.kubernetes.io/revision-history","deployment.kubernetes.io/desired-replicas","deployment.kubernetes.io/max-replicas","deprecated.deployment.rollback.to"],a=/Replicas: (\d+)/;class s extends i["default"]{get replicaSetId(){const e=this.metadata?.relationships||[],t=e.filter((e=>"owner"===e.rel&&e.toType===r.oU.REPLICA_SET)),n=t.find((e=>{const t=e.message?.match(a),n=t?parseInt(t[1],10):0;return n>0})),i=n||t[0];return i?.toId?.replace(`${this.namespace}/`,"")}async rollBack(e,t,n){const r=[{op:"replace",path:"/spec/template",value:{metadata:{creationTimestamp:null,labels:Object.keys(n.spec.template.metadata?.labels||{}).reduce(((e,t)=>("pod-template-hash"!==t&&(e[t]=n.spec.template.metadata.labels[t]),e)),{}),annotations:Object.keys(n.spec.template.metadata?.annotations||{}).reduce(((e,t)=>(o.includes(t)||(e[t]=n.spec.template.metadata.annotations[t]),e)),{})},spec:n.spec.template.spec}},{op:"replace",path:"/metadata/annotations",value:{"deployment.kubernetes.io/revision":n.metadata.annotations["deployment.kubernetes.io/revision"]}}];await this.rollBackWorkload(e,t,"deployments",r)}}},13887:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(97737);class i extends r["default"]{get revisionNumber(){if(this.ownedByWorkload)return this.metadata.annotations["deployment.kubernetes.io/revision"]}}},17691:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(97737),i=n(4284);class o extends r["default"]{async rollBack(e,t,n){const r=[{op:"replace",path:"/spec/template",value:{metadata:n.data.spec.template.metadata,spec:n.data.spec.template.spec}},{op:"replace",path:"/metadata/generation",value:n.revision}];await this.rollBackWorkload(e,t,"statefulsets",r)}get pods(){const e=this.metadata?.relationships||[],t=e.filter((e=>e.toType===i.Sm))[0];if(t){const e=this.$getters["podsByNamespace"](this.metadata.namespace);return e.filter((e=>{if(e.metadata?.ownerReferences?.length){const t=e.metadata?.ownerReferences?.find((e=>e.kind===i.rW[i.oU.STATEFUL_SET]));if(t)return`${e.metadata.namespace}/${t.name}`===this.id}return!1}))}return[]}}},36311:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(38991);class i extends r.A{get customValidationRules(){return[{nullable:!1,path:"metadata.name",required:!0,translationKey:"generic.name",type:"dnsLabel"}]}get details(){const{spec:e={},status:t}=this,n=[{label:e?.scaleTargetRef?.kind??this.t("hpa.tabs.workload"),content:e?.scaleTargetRef?.name},{label:this.t("hpa.workloadTab.min"),content:e?.minReplicas},{label:this.t("hpa.workloadTab.max"),content:e?.maxReplicas},{label:this.t("hpa.workloadTab.current"),content:t?.currentReplicas??0},{label:this.t("hpa.workloadTab.last"),content:t?.lastScaleTime,formatter:"LiveDate"}];return n}}},29800:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n(24759),i=n(65852),o=n(4284),a=n(97737);class s extends a["default"]{get state(){return this.spec?.suspend?"suspended":super.state}get _availableActions(){const e=super._availableActions,t=this.spec?.suspend||!1,n=this.$getters["schemaFor"](o.oU.JOB),i=!!n?.collectionMethods.find((e=>["blocked-post","post"].includes(e.toLowerCase())));return(0,r.PT)(e,0,{action:"runNow",label:this.t("action.runNow"),icon:"icon icon-spinner",enabled:i,bulkable:!0}),(0,r.PT)(e,1,{action:"suspend",label:this.t("action.suspend"),icon:"icon icon-pause",enabled:!t&&this.canUpdate,bulkable:!0}),(0,r.PT)(e,2,{action:"resume",label:this.t("action.resume"),icon:"icon icon-play",enabled:t&&this.canUpdate,bulkable:!0}),e}async runNow(){const e={apiVersion:this.apiVersion,controller:!0,kind:this.kind,name:this.metadata.name,uid:this.metadata.uid},t=await this.$dispatch("create",{type:o.oU.JOB,kind:o.rW[o.oU.JOB],...(0,i.o8)(this.spec.jobTemplate)});t.metadata=t.metadata||{},t.metadata.namespace=this.metadata.namespace,t.metadata.name=`${this.metadata.name}-${Date.now()}`,t.metadata.ownerReferences=[e],await t.save(),t.goToDetail()}suspend(){this.spec.suspend=!0,this.save()}resume(){this.spec.suspend=!1,this.save()}}},57444:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(97737),i=n(96155);class o extends r["default"]{get duration(){const e=this.$getters["schemaFor"](this.type),t=this.$rootGetters["type-map/rowValueGetter"],{completionTime:n,startTime:r}=this.status,o=e&&t?t(e,"Duration")(this):null,a=o&&r?(0,i.Fp)(r,n||new Date):0;return{value:n?{staticValue:o}:{startTime:r},seconds:a}}}},67570:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return p}});var r=n(75040),i=n(71445),o=n(45044),a=n(24759),s=n(4284),l=n(97538),c=n(65852),u=n(38991),d=n(631),h=n(9776);class p extends u.A{showMasthead(e){return e===r.nW}applyDefaults(){(0,c.hZ)(this,"disableOpenApiValidation",!1),(0,c.hZ)(this,"noHooks",!1),(0,c.hZ)(this,"skipCRDs",!1),(0,c.hZ)(this,"timeout",300),(0,c.hZ)(this,"wait",!0)}get _availableActions(){const e=super._availableActions,t={action:"goToUpgrade",enabled:!0,icon:"icon icon-fw icon-edit",label:this.t("catalog.install.action.goToUpgrade")};return e.unshift(t),e}get warnDeletionMessage(){return!1===this.upgradeAvailable?this.t("catalog.delete.warning.managed",{name:this.name}):null}matchingChart(e){const t=this.spec?.chart;if(!t)return;const n=t.metadata?.name,r=t.metadata?.annotations?.[i.W8.SOURCE_REPO_NAME]||this.metadata?.labels?.[i.W8.CLUSTER_REPO_NAME],o=t.metadata?.annotations?.[i.W8.SOURCE_REPO_TYPE]||"cluster",a=this.$rootGetters["catalog/chart"]({chartName:n,repoName:r,preferRepoType:o,includeHidden:e});return a}get currentVersion(){return this.spec?.chart?.metadata?.version}get upgradeAvailable(){if(this.spec?.chart?.metadata?.annotations?.[i.W8.MANAGED]||this.spec?.chart?.metadata?.annotations?.[i.Hs.BUNDLE_ID])return!1;const e=this.matchingChart(!1);if(!e)return null;const t=this.$rootGetters["currentCluster"].workerOSs,n=this.$rootGetters["prefs/get"](l.kJ),r=this.spec?.chart?.metadata?.version;let a=e.versions;n||(a=e.versions.filter((e=>!(0,o.V1)(e.version)))),a=(0,d.bh)(e,t,n);const s=a?.[0],c=s?.version;return r&&c&&(0,o.UD)(r,c)<0?f(c):null}get upgradeAvailableSort(){const e=this.upgradeAvailable;return e?(0,o.Xt)(e):"~"}get currentVersionCompatible(){const e=this.$rootGetters["currentCluster"].workerOSs,t=this.matchingChart(!1),n=this.spec?.chart?.metadata?.version;if(!t)return!0;const r=t.versions.find((e=>e.version===n));if(!r)return!0;const i=(0,d.bh)(t,e,!0)||[],o=!!i.find((e=>e.version===n));return o}get stateDescription(){return this.currentVersionCompatible?null:this.upgradeAvailable?this.t("catalog.os.versionIncompatible"):this.t("catalog.os.chartIncompatible")}goToUpgrade(e,t){const n=this.matchingChart(!0),i=this.spec?.chart?.metadata?.version,o={[r.CU]:this.metadata.namespace,[r.o_]:this.metadata.name,[r.xv]:e||i};n&&(o[r.NO]=n.repoName,o[r.Eo]=n.repoType,o[r.RX]=n.chartName),t&&(o[r.Rm]=r.Qp),this.currentRouter().push({name:"c-cluster-apps-charts-install",params:{product:this.$rootGetters["productId"],cluster:this.$rootGetters["clusterId"]},query:o})}get details(){const e=this.$rootGetters["i18n/t"],t=this.spec?.info?.firstDeployed,n=this.spec?.info?.lastDeployed;return t&&n&&t!==n?[{label:e('model."catalog.cattle.io.app".lastDeployed'),formatter:"LiveDate",content:n}]:[]}get nameDisplay(){const e=this.spec?.name||this.metadata?.name||this.id||"";return e}get chartDisplay(){const e=this.spec?.chart?.metadata?.name||"?";return`${e}:${this.versionDisplay}`}get versionDisplay(){return f(this.spec?.chart?.metadata?.version)}get versionSort(){return(0,o.Xt)(this.versionDisplay)}async remove(e={}){const t=await this.doAction("uninstall",e),n=await this.$dispatch("find",{type:s.W8.OPERATION,id:`${t.operationNamespace}/${t.operationName}`});try{await n.waitForLink("logs"),n.openLogs()}catch(r){}}get relatedResourcesToRemove(){return async()=>{const e=this.spec.chart.metadata.annotations[i.W8.AUTO_INSTALL].replace("=match","");return await this.$dispatch("find",{type:s.W8.APP,id:`${this.metadata.namespace}/${e}`})}}get canDelete(){return this.hasAction("uninstall")}get deployedResources(){return(0,a.WP)(this.metadata?.relationships||[],"rel","helmresource")}get deployedAsMultiCluster(){return async()=>{try{const e=await this.$dispatch("management/findAll",{type:s.Mc.MULTI_CLUSTER_APP},{root:!0}).catch((()=>{throw new Error("You don't have permission to list multi-cluster apps")}));if(e)return e.find((e=>e.spec?.targets?.find((e=>e.appName===this.metadata?.name))))}catch(e){}return!1}}async deployedAsLegacy(){if(await this.fetchValues(),this.values?.global){const{clusterName:t,projectName:n}=this.values.global;if(t&&n)try{const e=await this.$dispatch("rancher/find",{type:s.k$.APP,id:`${n}:${this.metadata?.name}`,opt:{url:`/v3/project/${t}:${n}/apps/${n}:${this.metadata?.name}`}},{root:!0});if(e)return e}catch(e){}}return!1}async fetchValues(e=!1){if(!this.secretId)return;const t=!!this._values&&!!this._chartValues;if(!t||e)try{await this.$dispatch("find",{type:s.bB,id:this.secretId,opt:{force:e||!!this._secret&&!t,watch:!1,params:{includeHelmData:!0}}})}catch(n){h.error(`Cannot find values for ${this.id} (unable to fetch)`,n)}}get secretId(){const e=this.metadata,t=e.ownerReferences?.find((e=>e.kind.toLowerCase()===s.bB)),n=t?.name,r=e.namespace;return r&&n?`${r}/${n}`:(h.warn(`Cannot find values for ${this.id} (cannot find related secret namespace or id)`),null)}get _secret(){return this.secretId?this.$getters["byId"](s.bB,this.secretId):null}_validateSecret(e){if(void 0===this._secret)throw new Error(`Cannot find ${e} for ${this.id} (chart secret has not been fetched via app \`fetchValues\`)`);if(null===this._secret)throw new Error(`Cannot find ${e} for ${this.id} (chart secret cannot or has failed to fetch) `)}get values(){return this._validateSecret("values"),this._values}get _values(){return this._secret?.data?.release?.config}get chartValues(){return this._validateSecret("chartValues"),this._chartValues}get _chartValues(){return this._secret?.data?.release?.chart?.values}}function f(e){if(!e)return"?";e.match(/^v/i)&&(e=e.substr(1));const t=e.match(/[0-9a-f]{32,}/);return t&&(e=e.replace(t[0],t[0].substr(0,7))),e}},55271:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l}});var r=n(23967),i=n(71445),o=n(24759),a=n(4284),s=n(38991);class l extends s.A{applyDefaults(){this.spec||(this["spec"]={url:""})}get _availableActions(){const e=super._availableActions;return(0,o.PT)(e,0,{divider:!0}),(0,o.PT)(e,0,{action:"refresh",label:this.t("action.refresh"),icon:"icon icon-refresh",enabled:!!this.links.update,bulkable:!0}),e}async refresh(){const e=(new Date).toISOString().replace(/\.\d+Z$/,"Z");this.spec.forceUpdate=e,await this.save(),await this.waitForState("active",1e4,1e3),this.$dispatch("catalog/load",{force:!0,reset:!0},{root:!0})}get isGit(){return!!this.spec?.gitRepo}get isOciType(){const e="oci"===this.spec.url?.split(":")[0],t=Object.prototype.hasOwnProperty.call(this.spec,"insecurePlainHttp");return e||t}get isRancherSource(){let e;return(!this.spec?.url||!this.spec?.gitRepo)&&(!!(this.spec?.url&&(e=(0,r.qg)(this.spec.url),e&&t(e.host)))||!!(this.spec?.gitRepo&&(e=(0,r.qg)(this.spec.gitRepo),e&&t(e.host))));function t(e){return e=(e||"").toLowerCase(),"rancher.io"===e||e.endsWith(".rancher.io")}}get isRancher(){return this.isRancherSource&&"rancher-charts"===this.metadata.name}get isPartner(){return this.isRancherSource&&"rancher-partner-charts"===this.metadata.name}get color(){if(this.isRancher)return"rancher";if(this.isPartner)return"partner";{const e=parseInt(this.metadata?.annotations?.[i.W8.COLOR],10);return isNaN(e)||e<=0||e>8?null:`color${e}`}}get canLoad(){return"active"===this.metadata?.state?.name}get typeDisplay(){return this.spec.gitRepo?"git":this.spec.url?this.isOciType?"oci":"http":"?"}get nameDisplay(){const e=this.metadata?.name,t=`catalog.repo.name."${e}"`;return this.$rootGetters["i18n/withFallback"](t,null,e)}get urlDisplay(){return this.status?.url||this.spec.gitRepo||this.spec.url}get branchDisplay(){return this.spec?.gitBranch||"(default)"}get details(){return[{label:"Type",content:this.typeDisplay},{label:"Downloaded",content:this.status.downloadTime,formatter:"LiveDate",formatterOpts:{addSuffix:!0}}]}get stateObj(){return this.metadata?.state?{...this.metadata.state,transitioning:!(this.metadata.generation>this.status?.observedGeneration)&&this.metadata.state.transitioning}:void 0}waitForOperation(e,t,n=2e3){return this.waitForTestFn((()=>!!this.$getters["schemaFor"](a.W8.OPERATION)&&(!!this.$getters["byId"](a.W8.OPERATION,e)||void this.$dispatch("find",{type:a.W8.OPERATION,id:e}))),"catalog operation fetch",t,n)}}},69924:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(24759),i=n(78359),o=n(38991);class a extends o.A{get _availableActions(){const e=super._availableActions,t=(0,r.jq)(e,"altAction"," remove");let n=e.length-1;t&&(n=e.indexOf(t));const i={action:"openLogs",enabled:!0,icon:"icon icon-fw icon-chevron-right",label:this.t("action.openLogs"),total:1};return(0,r.PT)(e,n+1,i),(0,r.PT)(e,n+2,{divider:!0}),e}openLogs(){this.$dispatch("wm/open",{id:`${this.id}-logs`,label:`${(0,i.TF)(this.status.action)} ${this.status.namespace}:${this.status?.releaseName||"chart"}`,icon:"file",component:"ContainerLogs",attrs:{pod:this,url:this.links.logs}},{root:!0})}}},23905:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(55271);class i extends r["default"]{}},17212:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(38991);const i=Object.freeze({CACHED:"cached",DISABLED:"disabled",PENDING:"pending"});class o extends r.A{get name(){return this.spec?.plugin?.name}get description(){return this.spec?.plugin?.description}get version(){return this.spec?.plugin?.version}get isInitialized(){return this.status?.cacheState!==i.PENDING}get pluginMetadata(){return this.spec?.plugin?.metadata||{}}get isDeveloper(){return"true"===this.pluginMetadata?.developer}get plugin(){return this.spec?.plugin||{}}}},96653:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n(631),i=n(75040),o=n(65505),a=n(38991);class s extends a.A{queryParams(e,t){let n;const o=this.versions,a=this.$rootGetters["currentCluster"],s=a?.workerOSs,l=(0,r.bh)(this,s);n=l.length?l[0].version:o[0].version;const c={[i.Eo]:this.repoType,[i.NO]:this.repoName,[i.RX]:this.chartName,[i.xv]:n};return e&&(c[e]=i.Qp),t&&(c[i.dV]=i.Qp),c}goToInstall(e,t,n){const r=this.queryParams(e,n),i=this.$rootGetters["currentCluster"];this.currentRouter().push({name:"c-cluster-apps-charts-install",params:{cluster:t||i?.id||o.w},query:r})}}},28320:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(75040),i=n(65852),o=n(38991);class a extends o.A{showMasthead(e){return e===r.nW}applyDefaults(){this.charts||(0,i.hZ)(this,"charts",[{}])}}},97695:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(65852),i=n(38991);class o extends i.A{applyDefaults(){this.charts||(0,r.hZ)(this,"charts",[{}])}}},55164:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return f},fetchSpecsScheduledScanConfig:function(){return h},hasSpecsScheduledScanConfig:function(){return p}});var r=n(11040),i=n(4284),o=n(24759),a=n(1122),s=n(65852),l=n(98258),c=n(71972),u=n.n(c),d=n(38991);const h=async e=>(await e.fetchResourceFields(),p(e)),p=e=>{const t=(0,s.Jt)(e,"resourceFields.spec.type"),n=e.schemaDefinitions?.[t];return!!n&&!!(0,s.Jt)(n,"resourceFields.scheduledScanConfig")};class f extends d.A{get _availableActions(){let e=super._availableActions;const t=["cloneYaml","goToEditYaml","download"];e=e.filter((e=>{if(!t.includes(e.action))return e}));const n=this.$rootGetters["i18n/t"],r={action:"downloadLatestReport",enabled:this.hasReport,icon:"icon icon-fw icon-download",label:n("cis.downloadReport"),total:1},i={action:"downloadAllReports",enabled:this.hasReport,icon:"icon icon-fw icon-download",label:n("cis.downloadAllReports"),total:1};return this.hasReports&&(e.unshift({divider:!0}),this.spec?.scheduledScanConfig?.cronSchedule&&(e.unshift(i),r.label=n("cis.downloadLatestReport")),e.unshift(r)),e}canBeScheduled(){return p(this.$getters["schemaFor"](this.type))}get isScheduled(){return!!(0,s.Jt)(this,"spec.scheduledScanConfig.cronSchedule")}get canUpdate(){return this.hasLink("update")&&this.isScheduled}get hasReports(){const{relationships:e=[]}=this.metadata,t=(0,o.jq)(e,"toType",i._n.REPORT);return!!t}async getReports(){const e=await this.findOwned(),t=e.filter((e=>e.type===i._n.REPORT))||[];return(0,l.Ul)(t,"metadata.creationTimestamp",!0)}async downloadLatestReport(){const e=await this.getReports()||[],t=(0,l.Ul)(e,"metadata.creationTimestamp",!0)[0],r=await n.e(829).then(n.t.bind(n,28404,23));try{const e=(t.aggregatedTests||[]).map((e=>(delete e.actual_value_per_node,e))),n=r.unparse(e);(0,a.PE)(`${m(t)}.csv`,n,"application/csv")}catch(i){this.$dispatch("growl/fromError",{title:"Error downloading file",err:i},{root:!0})}}async downloadAllReports(){const e={},t=await this.getReports()||[],r=await n.e(829).then(n.t.bind(n,28404,23));t.forEach((t=>{try{const n=(t.aggregatedTests||[]).map((e=>(delete e.actual_value_per_node,e))),i=r.unparse(n);e[`${m(t)}.csv`]=i}catch(n){this.$dispatch("growl/fromError",{title:"Error downloading file",err:n},{root:!0})}})),(0,s.Im)(e)||(0,a.jl)(e).then((e=>{(0,a.PE)(`${this.id}-reports`,e,"application/zip")}))}get scanProfileLink(){return this.status?.lastRunScanProfileName?{name:"c-cluster-product-resource-id",params:{resource:i._n.CLUSTER_SCAN_PROFILE,product:r.o_,id:this.status?.lastRunScanProfileName}}:{}}}const m=e=>{const{creationTimestamp:t}=e.metadata,n=u()(t).format("YYYY-MM-DD-HHmmss"),r=e.id.replace(/^scan-report-/,"");return`${r}--${n}`}},8153:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(4284),i=n(38991);class o extends i.A{warnDeletionMessage(e=[]){return this.$rootGetters["i18n/t"]("cis.deleteBenchmarkWarning",{count:e.length})}get isDefault(){const{relationships:e=[]}=this.metadata;return!!e&&e.filter((e=>e.fromType===r.W8.APP)).length>0}}},37559:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(38991),i=n(11040),o=n(4284);class a extends r.A{warnDeletionMessage(e=[]){return this.$rootGetters["i18n/t"]("cis.deleteProfileWarning",{count:e.length})}get numberTestsSkipped(){const{skipTests:e=[]}=this.spec;return e.length}get benchmarkVersionLink(){return this.spec?.benchmarkVersion?{name:"c-cluster-product-resource-id",params:{resource:o._n.BENCHMARK,product:i.o_,id:this.spec?.benchmarkVersion}}:{}}}},1138:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(98258),i=n(38991);class o extends i.A{get aggregatedTests(){const e=this.parsedReport,t=e?.results,n=t?t.reduce(((e,t)=>(t.checks&&e.push(...t.checks),e)),[]):null,i=e=>(e||"").split(".").map((e=>+e+1e3)).join("."),o=e=>{const t={other:7,notApplicable:6,skip:5,pass:4,warn:3,mixed:2,fail:1};return`${t[e]||t["other"]} ${e}`},a=n.slice().sort(((e,t)=>{const n=(0,r.UD)(o(e.state),o(t.state)),a=(0,r.UD)(i(e.id),i(t.id));return n||a}));return a}get nodes(){return this.parsedReport?this.parsedReport.nodes:{}}get parsedReport(){try{const e=this.spec?.reportJSON,t=JSON.parse(e);return t}catch(e){}return null}}},93027:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return y}});var r=n(71445);n(24759),n(9776);function i(e){return e.toLowerCase().replace(/[^a-z0-9]/gi,"")}["username","password","accesskey","secretkey","accesskeyid","secretkeyid","accesskeysecret","token","apikey","secret","clientid","clientsecret","subscriptionid","tenantid"].map((e=>i(e))),["location","region"].map((e=>i(e)));const o=["username","accesskey","accesskeyid","clientid"].map((e=>i(e))),a=["token","apikey","secret"].map((e=>i(e))),s=[].map((e=>i(e)));var l=n(65852),c=n(4284),u=n(78359),d=n(79325),h=n(97538),p=n(71972),f=n.n(p),m=n(9776);const g="harvester",v={[g]:{renew:({cloudCredential:e,$ctx:t})=>v[g].renewBulk({cloudCredentials:[e],$ctx:t}),renewBulk:async({cloudCredentials:e,$ctx:t})=>{await Promise.all(e.map((async e=>{try{if(!e.harvestercredentialConfig?.clusterId)throw new Error("credential has no matching harvester cluster");const n=t.rootGetters["management/byId"](c.Mc.CLUSTER,e.harvestercredentialConfig.clusterId);if(!n)throw new Error("cannot find harvester cluster");const r=await n.generateKubeConfig();e.setData("kubeconfigContent",r),await e.save()}catch(n){m.error(`Unable to refresh harvester cloud credential '${e.id}'`,n)}})))}}};class y extends d.A{get _availableActions(){const e=super._availableActions;return e.splice(0,0,{divider:!0}),e.splice(0,0,{action:"renew",enabled:this.canRenew,bulkable:this.canBulkRenew,bulkAction:"renewBulk",icon:"icon icon-fw icon-refresh",label:this.t("manager.cloudCredentials.renew")}),e}get hasSensitiveData(){return!0}get canCustomEdit(){return!0}get _detailLocation(){return{name:"c-cluster-manager-cloudCredential-id",params:{product:this.$rootGetters["productId"],cluster:this.$rootGetters["clusterId"],id:this.id}}}get parentLocationOverride(){return{name:"c-cluster-manager-cloudCredential",params:{cluster:this.$rootGetters["clusterId"]}}}get secretName(){return this.id.replace(":","/")}get secret(){return this.$rootGetters["management/byId"](c.bB,this.secretName)}async getSecret(){await this.$dispatch("management/find",{type:c.bB,id:this.secretName},{root:!0})}get configKey(){return Object.keys(this).find((e=>e.endsWith("credentialConfig")))}get provider(){const e=this.annotations?.[r.qt.CREDENTIAL_DRIVER];if(e)return e;const t=this.configKey;if(t){const e=this.$rootGetters["plugins/credentialDriverFor"](t.replace(/credentialConfig$/,""));return e}return null}setProvider(e){this.setAnnotation(r.qt.CREDENTIAL_DRIVER,e),Object.keys(this).forEach((t=>{t=t.toLowerCase(),t.endsWith("config")&&t!==`${e}config`&&(0,l.hZ)(this,t,null)})),this[`${e}credentialConfig`]||(0,l.hZ)(this,`${e}credentialConfig`,{})}get decodedData(){const e=this.configKey;return e?this[e]:{}}setData(e,t){const n=e&&"object"===typeof e;let r;this[this.configKey]&&!n||(0,l.hZ)(this,this.configKey,{}),r=n?e:{[e]:t};for(const i in r)(0,l.hZ)(this,`"${this.configKey}"."${i}"`,r[i])}get providerDisplay(){const e=(this.provider||"").toLowerCase();return this.$rootGetters["i18n/withFallback"](`cluster.provider."${e}"`,null,e)}get publicData(){let{publicKey:e,publicMode:t}=this.$rootGetters["plugins/credentialOptions"](this.provider);const n={full:o,prefix:a,suffix:s};if(!e)for(const o in this.decodedData||{}){if(e)break;if(!(0,l.Im)(this.decodedData[o]))for(const r in n)if(n[r].includes(i(o))){e=o,t=r;break}}if(!e)return null;let r=this.decodedData[e];if(r||(r=this.secret?.decodedData?.[`${this.provider}credentialConfig-${e}`]),!r)return null;const c=Math.min(8,Math.floor(r.length/2));return"prefix"===t?`${(0,u.ZD)(r.substr(0,c))}…`:"suffix"===t?`…${(0,u.ZD)(r.substr(-1*c))}`:(0,u.ZD)(r)}get doneRoute(){return"c-cluster-manager-secret"}get canRenew(){return!!v[this.provider]?.renew&&void 0!==this.expires&&this.canUpdate}get canBulkRenew(){return!!v[this.provider]?.renewBulk}get expiresForSort(){return void 0!==this.expires?this.expires:Number.MAX_SAFE_INTEGER}get expires(){const e=this.annotations[r.rW.EXPIRATION];return"string"===typeof e?parseInt(e):"number"===typeof e?e:void 0}get expireData(){if("number"!==typeof this.expiresIn)return null;const e=6048e5;return 0===this.expiresIn?{expired:!0,expiring:!1}:this.expiresIni.find((t=>e.includes(t)))))}get systemAnnotations(){return Object.keys(this.annotations||{}).filter((e=>o.find((t=>e.includes(t)))))}get hasSystemLabels(){return!!(this.systemLabels||[]).length}get hasSystemAnnotations(){return!!(this.systemAnnotations||[]).length}}},16511:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return p},notOnlyOfRole:function(){return h}});var r=n(4284),i=n(71445),o=n(93786),a=n(74958),s=n(78359),l=n(24759),c=n(65852),u=n(1122),d=n(38991);function h(e,t){const n={};if(e.isControlPlane&&(n.isControlPlane=!1),e.isEtcd&&(n.isEtcd=!1),0===Object.keys(n).length)return!0;for(const r of t)if(Object.keys(n).forEach((e=>{r[e]&&(n[e]?delete n[e]:n[e]=!0)})),0===Object.keys(n).length)return!0;return!1}class p extends d.A{get _availableActions(){const e=super._availableActions,t={action:"openSsh",enabled:!!this.links.shell&&this.isRunning,icon:"icon icon-fw icon-chevron-right",label:"SSH Shell"},n={action:"downloadKeys",enabled:!!this.links.sshkeys,icon:"icon icon-fw icon-download",label:this.t("node.actions.downloadSSHKey")},r={action:"toggleForceRemoveModal",altAction:"forceMachineRemove",enabled:!!this.isRemoveForceable,label:this.t("node.actions.forceDelete"),icon:"icon icon-trash"},i={action:"toggleScaleDownModal",bulkAction:"toggleScaleDownModal",enabled:!!this.canScaleDown,icon:"icon icon-minus icon-fw",label:this.t("node.actions.scaleDown"),bulkable:!0};return(0,l.PT)(e,0,{divider:!0}),(0,l.PT)(e,0,n),(0,l.PT)(e,0,t),(0,l.PT)(e,0,i),(0,l.PT)(e,0,r),e}get canClone(){return!1}openSsh(e){const t=e||this.nameDisplay;this.$dispatch("wm/open",{id:`${this.id}-ssh`,label:t,icon:"terminal",component:"MachineSsh",attrs:{machine:this,pod:{}}},{root:!0})}downloadKeys(){(0,u.Is)(this.links.sshkeys)}toggleForceRemoveModal(e=this){this.$dispatch("promptModal",{componentProps:{machine:e},component:"ForceMachineRemoveDialog"})}async forceMachineRemove(){const e=await this.machineRef();e.setAnnotation(i.qt.FORCE_MACHINE_REMOVE,"true"),await e.save()}toggleScaleDownModal(e=this){this.$dispatch("promptModal",{resources:e,component:"ScaleMachineDownDialog",modalWidth:"450px"})}async machineRef(){const e=this.spec.infrastructureRef,t=`${e.namespace}/${e.name}`,n=`rke-machine.cattle.io.${e.kind.toLowerCase()}`;return await this.$dispatch("find",{type:n,id:t})}get cluster(){if(!this.spec.clusterName)return null;const e=`${this.metadata.namespace}/${this.spec.clusterName}`,t=this.$rootGetters["management/byId"](r.qt.RANCHER_CLUSTER,e);return t}get poolName(){return this.metadata?.labels?.[i.qt.DEPLOYMENT_NAME]||""}get poolId(){const e=`${this.metadata.namespace}/${this.poolName}`;return e}get pool(){return this.$rootGetters["management/byId"](r.qt.MACHINE_DEPLOYMENT,this.poolId)}get operatingSystem(){return this.metadata?.labels["cattle.io/os"]||"linux"}get kubeNodeDetailLocation(){const e=this.status?.nodeRef?.name,t=this.cluster?.status?.clusterName;return e&&t?{name:"c-cluster-product-resource-id",params:{cluster:this.cluster.status.clusterName,product:o.o,resource:r.NW,id:e}}:e}get groupByLabel(){const e=this.cluster?.nameDisplay||this.spec.clusterName;return this.$rootGetters["i18n/t"]("resourceTable.groupLabel.cluster",{name:(0,s.ZD)(e)})}get labels(){return this.metadata?.labels||{}}get isWorker(){return"true"===`${this.labels[i.Ub.WORKER]}`}get isControlPlane(){return"true"===`${this.labels[i.Ub.CONTROL_PLANE]}`}get isEtcd(){return"true"===`${this.labels[i.Ub.ETCD]}`}get isRemoveForceable(){const e=(0,c.Jt)(this,"status.conditions"),t=((0,l.jq)(e,"type","InfrastructureReady")||{}).reason;return"DeleteError"===t||null}get canScaleDown(){return!(!this.canUpdate||!this.pool?.canUpdate)&&h(this,this.cluster?.machines)}get roles(){const{isControlPlane:e,isWorker:t,isEtcd:n}=this;return(0,a.listNodeRoles)(e,t,n,this.t("generic.all"))}get isRunning(){return"Running"===this.status?.phase}get internalIp(){const e=this.status?.addresses?.find((({type:e})=>e===r.FV.INTERNAL_IP))?.address;return e||this.t("generic.none")}get externalIp(){const e=this.status?.addresses?.find((({type:e})=>e===r.FV.EXTERNAL_IP))?.address;return e||this.t("generic.none")}}},13048:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return p}});var r=n(4284),i=n(78359),o=n(98258),a=n(38991),s=n(71898),l=n(33781),c=n(71445),u=n(16511);const d={MACHINE_INV_SELECTOR_TEMPLATES:"MachineInventorySelectorTemplate"},h={MACHINE_TEMPLATE:"HarvesterMachineTemplate"};class p extends a.A{get cluster(){if(!this.spec.clusterName)return null;const e=`${this.metadata.namespace}/${this.spec.clusterName}`,t=this.$rootGetters["management/byId"](r.qt.RANCHER_CLUSTER,e);return t}get groupByLabel(){const e=this.cluster?.nameDisplay||this.spec.clusterName;return this.$rootGetters["i18n/t"]("resourceTable.groupLabel.cluster",{name:(0,i.ZD)(e)})}get groupByPoolLabel(){return`${this.$rootGetters["i18n/t"]("resourceTable.groupLabel.machinePool",{name:(0,i.ZD)(this.nameDisplay)})}`}get groupByPoolShortLabel(){return`${this.$rootGetters["i18n/t"]("resourceTable.groupLabel.machinePool",{name:(0,i.ZD)(this.nameDisplay)})}`}get infrastructureRefKind(){return this.spec?.template?.spec?.infrastructureRef?.kind}get templateType(){return this.spec.template.spec.infrastructureRef.kind?`rke-machine.cattle.io.${this.spec.template.spec.infrastructureRef.kind.toLowerCase()}`:null}get template(){const e=this.spec.template.spec.infrastructureRef,t=`${e.namespace}/${e.name}`,n=this.$rootGetters["management/byId"](this.templateType,t);return n}get providerName(){return this.template?.nameDisplay}get providerDisplay(){const e=(this.template?.provider||"").toLowerCase();return this.$rootGetters["i18n/withFallback"](`cluster.provider."${e}"`,null,"generic.unknown",!0)}get providerLocation(){return this.template?.providerLocation||this.t("node.list.poolDescription.noLocation")}get providerSize(){return this.template?.providerSize||this.t("node.list.poolDescription.noSize")}get providerSummary(){if(this.template)switch(this.infrastructureRefKind){case h.MACHINE_TEMPLATE:return null;default:return`${this.providerDisplay} – ${this.providerLocation} / ${this.providerSize} (${this.providerName})`}return null}get desired(){return this.spec?.replicas||0}get pending(){return Math.max(0,this.desired-(this.status?.replicas||0))}get outdated(){return Math.max(0,(this.status?.replicas||0)-(this.status?.updatedReplicas||0))}get ready(){return Math.max(0,(this.status?.replicas||0)-(this.status?.unavailableReplicas||0))}get unavailable(){return this.status?.unavailableReplicas||0}get isControlPlane(){return"true"===`${this.spec?.template?.metadata?.labels?.[c.Ub.CONTROL_PLANE]}`}get isEtcd(){return"true"===`${this.spec?.template?.metadata?.labels?.[c.Ub.ETCD]}`}get inClusterSpec(){const e=this.template?.metadata?.annotations["rke.cattle.io/cloned-from-name"],t=this.cluster.spec.rkeConfig.machinePools;return t.find((t=>t.machineConfigRef.name===e))}scalePool(e,t=!0,n=0){if(!this.inClusterSpec)return;const i=this.cluster.toJSON();if(this.inClusterSpec.quantity+=e,!t)return;const o=this.cluster,a=this.$rootGetters["management/byId"](r.qt.RANCHER_CLUSTER,this.cluster.id);this.scaleTimer&&clearTimeout(this.scaleTimer),this.scaleTimer=setTimeout((()=>{this.cluster.save().catch((async t=>{let r=(0,s.rz)(t);if(409===t.status&&n<2){const t=await(0,l.Rq)(i,o,a,this.$rootGetters,{dispatch:this.$dispatch},"management");if(!1===t)return this.scalePool(e,!0,n+1);r=t}this.$dispatch("growl/fromError",{title:"Error scaling pool",err:r},{root:!0})}))}),1e3)}canScaleDownPool(){return!(!this.canUpdate||0===this.inClusterSpec?.quantity||this.infrastructureRefKind===d.MACHINE_INV_SELECTOR_TEMPLATES)&&(!this.isEtcd&&!this.isControlPlane||(0,u.notOnlyOfRole)(this,this.cluster.machines))}canScaleUpPool(){return this.infrastructureRefKind!==d.MACHINE_INV_SELECTOR_TEMPLATES}get showScalePool(){return this.canScaleDownPool()||this.canScaleUpPool()}get stateParts(){const e=[{label:"Pending",color:"bg-info",textColor:"text-info",value:this.pending,sort:1},{label:"Outdated",color:"bg-warning",textColor:"text-warning",value:this.outdated,sort:2},{label:"Unavailable",color:"bg-error",textColor:"text-error",value:this.unavailable,sort:3},{label:"Ready",color:"bg-success",textColor:"text-success",value:this.ready,sort:4}].filter((e=>e.value>0));return(0,o.Ul)(e,"sort:desc")}}},26967:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(4284),i=n(78359),o=n(38991);class a extends o.A{get cluster(){if(!this.spec.clusterName)return null;const e=`${this.metadata.namespace}/${this.spec.clusterName}`,t=this.$rootGetters["management/byId"](r.qt.RANCHER_CLUSTER,e);return t}get groupByLabel(){const e=this.cluster?.nameDisplay||this.spec.clusterName;return this.$rootGetters["i18n/t"]("resourceTable.groupLabel.cluster",{name:(0,i.ZD)(e)})}}},74958:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return d},listNodeRoles:function(){return p}});var r=n(78359),i=n(71445),o=n(4284),a=n(62155),s=n(67556),l=n.n(s),c=n(38991),u=n(75040);class d extends c.A{get _availableActions(){const e=this.norman?.actions||{},t={action:"cordon",enabled:!!e.cordon,icon:"icon icon-fw icon-pause",label:"Cordon",total:1,bulkable:!0},n={action:"uncordon",enabled:!!e.uncordon,icon:"icon icon-fw icon-play",label:"Uncordon",total:1,bulkable:!0},r={action:"drain",enabled:!!e.drain,icon:"icon icon-fw icon-dot-open",label:this.t("drainNode.action"),bulkable:!0,bulkAction:"drain"},i={action:"stopDrain",enabled:!!e.stopDrain,icon:"icon icon-fw icon-x",label:this.t("drainNode.actionStop"),bulkable:!0},o={action:"openSsh",enabled:!!this.provisionedMachine?.links?.shell,icon:"icon icon-fw icon-chevron-right",label:"SSH Shell"},a={action:"downloadKeys",enabled:!!this.provisionedMachine?.links?.sshkeys,icon:"icon icon-fw icon-download",label:this.t("node.actions.downloadSSHKey")};return[o,a,{divider:!0},t,n,r,i,{divider:!0},...super._availableActions]}openSsh(){this.provisionedMachine.openSsh(this.nameDisplay)}downloadKeys(){this.provisionedMachine.downloadKeys()}get showDetailStateBadge(){return!0}get name(){return this.metadata.name}get addresses(){return this.status?.addresses||[]}get internalIp(){return l()(this.addresses,(e=>"InternalIP"===e.type))?.address}get externalIp(){const e=this.metadata.annotations[i.Z_.EXTERNAL_IP],t=l()(this.addresses,(e=>"ExternalIP"===e.type))?.address;return t||e}get labels(){return this.metadata?.labels||{}}get customLabelCount(){return this.customLabels.length}get customLabels(){const e=[];if(this.labels)for(const t in this.labels){const[n]=t.split("/");i.uf.includes(n)||e.push(`${t}=${this.labels[t]}`)}return e}get isWorker(){return this.managementNode?this.managementNode.isWorker:"true"===`${this.labels[i.vi.WORKER]}`}get isControlPlane(){return this.managementNode?this.managementNode.isControlPlane:"true"===`${this.labels[i.vi.CONTROL_PLANE]}`||"true"===`${this.labels[i.vi.CONTROL_PLANE_OLD]}`}get isEtcd(){return this.managementNode?this.managementNode.isEtcd:"true"===`${this.labels[i.vi.ETCD]}`}get hasARole(){const e=Object.values(i.vi);return Object.keys(this.labels).some((t=>{const n=e.includes(t),r="true"===`${this.labels[t]}`;return n&&r}))}get roles(){const{isControlPlane:e,isWorker:t,isEtcd:n}=this;return p(e,t,n,this.t("generic.all"))}get version(){return this.status.nodeInfo.kubeletVersion}get cpuUsage(){return this.isFromNorman&&"eks"===this.provider?(0,a.ao)(this.podRequests.cpu||"0"):(0,a.ao)(this.$rootGetters["cluster/byId"](o.$v.NODE,this.id)?.usage?.cpu||"0")}get cpuCapacity(){return(0,a.ao)(this.status.allocatable?.cpu)}get cpuUsagePercentage(){return(100*this.cpuUsage/this.cpuCapacity).toString()}get ramUsage(){return this.isFromNorman&&"eks"===this.provider?(0,a.ao)(this.podRequests.memory||"0"):(0,a.ao)(this.$rootGetters["cluster/byId"](o.$v.NODE,this.id)?.usage?.memory||"0")}get ramCapacity(){return(0,a.ao)(this.status.capacity?.memory)}get ramUsagePercentage(){return(100*this.ramUsage/this.ramCapacity).toString()}get ramReserved(){return(0,a.ao)(this.status?.allocatable?.memory)}get ramReservedPercentage(){return(100*this.ramUsage/this.ramReserved).toString()}get podUsage(){return h(this.status.allocatable?.pods,this.status.capacity?.pods)}get podConsumedUsage(){return(this.podConsumed/this.podCapacity*100).toString()}get podCapacity(){return Number.parseInt(this.status.capacity?.pods)}get podConsumed(){const e=this.pods.filter((e=>"running"===e.state));return e.length||0}get podRequests(){return JSON.parse(this.metadata.annotations["management.cattle.io/pod-requests"]||"{}")}get isPidPressureOk(){return this.isCondition("PIDPressure","False")}get isDiskPressureOk(){return this.isCondition("DiskPressure","False")}get isMemoryPressureOk(){return this.isCondition("MemoryPressure","False")}get isKubeletOk(){return this.isCondition("Ready")}get isCordoned(){return!!this.spec.unschedulable}get drainedState(){const e=this.managementNode?.status.conditions.find((e=>"Drained"===e.type));if(e){if("True"===e.status)return"drained";if(e.transitioning)return"draining"}return null}get containerRuntimeVersion(){return this.status.nodeInfo.containerRuntimeVersion.replace("docker://","")}get containerRuntimeIcon(){return this.status.nodeInfo.containerRuntimeVersion.includes("docker")?"icon-docker":""}async cordon(e){const t=Array.isArray(e)?e:[this];await Promise.all(t.map((e=>e.norman?.doAction("cordon"))))}async uncordon(e){const t=Array.isArray(e)?e:[this];await Promise.all(t.map((e=>e.norman?.doAction("uncordon"))))}get clusterId(){const e=this.links.self.split("/");return e.length>6&&"k8s"===e[e.length-6]&&"clusters"===e[e.length-5]?e[e.length-4]:u.G8}get normanNodeId(){const e=(this.$rootGetters["management/all"](o.Mc.NODE)||[]).find((e=>e.id.startsWith(this.clusterId)&&e.status.nodeName===this.name));return e?e.id.replace("/",":"):null}get norman(){return this.$rootGetters["rancher/byId"](o.k$.NODE,this.normanNodeId)}get managementNode(){return this.$rootGetters["management/all"](o.Mc.NODE).find((e=>e.id.startsWith(this.clusterId)&&e.status.nodeName===this.id))}drain(e){this.$dispatch("promptModal",{component:"DrainNode",componentProps:{kubeNodes:e||[this],normanNodeId:this.normanNodeId}})}async stopDrain(e){const t=Array.isArray(e)?e:[this];await Promise.all(t.map((e=>e.norman?.doAction("stopDrain"))))}get state(){return this.drainedState?this.drainedState:this.isCordoned?"cordoned":this.metadata?.state?.name||"unknown"}get details(){const e=[{label:this.t("node.detail.detailTop.version"),content:this.version},{label:this.t("node.detail.detailTop.os"),content:this.status.nodeInfo.osImage},{label:this.t("node.detail.detailTop.containerRuntime"),formatter:"IconText",formatterOpts:{iconClass:this.containerRuntimeIcon},content:this.containerRuntimeVersion}];return this.internalIp&&e.unshift({label:this.t("node.detail.detailTop.internalIP"),formatter:"CopyToClipboard",content:this.internalIp}),this.externalIp&&e.unshift({label:this.t("node.detail.detailTop.externalIP"),formatter:"CopyToClipboard",content:this.externalIp}),e}get pods(){const e=this.$rootGetters["cluster/all"](o.Sm);return e.filter((e=>e.spec.nodeName===this.name))}get confirmRemove(){return!0}get canClone(){return!1}get canDelete(){const e=["aks","azureaks","azurekubernetesservice","eks","amazoneks","gke","googlegke"];return!e.includes(this.provider)}get provisionedMachine(){const e=this.metadata?.annotations?.[i.qt.CLUSTER_NAMESPACE],t=this.metadata?.annotations?.[i.qt.MACHINE_NAME];return e&&t?this.$rootGetters["management/byId"](o.qt.MACHINE,`${e}/${t}`):null}get isFromNorman(){return"norman"===(this.$rootGetters["currentCluster"].metadata.labels||{})["cattle.io/creator"]}get provider(){return this.$rootGetters["currentCluster"].provisioner.toLowerCase()}get displayTaintsAndLabels(){return!!this.spec.taints?.length||!!this.customLabelCount}}function h(e,t){const n=Number.parseFloat(t),i=Number.parseFloat(e),o=(n-i)/n*100;return(0,r.l9)(o)}function p(e,t,n,r){const i=[];return e&&i.push("Control Plane"),t&&i.push("Worker"),n&&i.push("Etcd"),3===i.length||0===i.length?r:i.join(", ")}},4625:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(9950);class i extends r["default"]{}},55996:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(4284),i=n(79325);class o extends i.A{get principalId(){return this.userPrincipalId||this.groupPrincipalId}get roleDisplay(){return this.roleTemplate.nameDisplay}get roleDescription(){return this.roleTemplate.description}get roleTemplate(){return this.$rootGetters["management/byId"](r.Mc.ROLE_TEMPLATE,this.roleTemplateId)}get clusterroletemplatebinding(){return this.$rootGetters["management/byId"](r.Mc.CLUSTER_ROLE_TEMPLATE_BINDING,this.id?.replace(":","/"))}get steve(){return this.$dispatch("management/find",{type:r.Mc.CLUSTER_ROLE_TEMPLATE_BINDING,id:this.id?.replace(":","/")},{root:!0})}}},46481:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(38991);class i extends r.A{get keysDisplay(){const e=[...Object.keys(this.data||[]),...Object.keys(this.binaryData||[])];return e.length?e.join(", "):"(none)"}}},5648:function(e,t,n){"use strict";n.r(t),n.d(t,{ENFORCEMENT_ACTION_VALUES:function(){return s},default:function(){return l}});var r=n(20246),i=n.n(r),o=n(38991),a=n(1122);const s={DENY:"deny",DRYRUN:"dryrun"};class l extends o.A{get _availableActions(){const e=super._availableActions,t=this.$rootGetters["i18n/t"],n={action:"downloadViolations",icon:"icon icon-fw icon-download",label:t("gatekeeperConstraint.downloadViolations"),total:1};return e.unshift(n),e}async save(){let e,t;this.constraint?(e=await this.findLatestConstraint(),t=e?.metadata?.resourceVersion):e=await this.$dispatch("cluster/create",{type:`constraints.gatekeeper.sh.${this.kind.toLowerCase()}`},{root:!0}),e.spec=this.spec,e.metadata=this.metadata,t&&(e.metadata.resourceVersion=t),await e.save()}async downloadViolations(){const e=await n.e(829).then(n.t.bind(n,28404,23));try{const t=(this.violations||[]).map((e=>(delete e.resourceLink,delete e.constraintLink,e))),n=e.unparse(t);(0,a.PE)(`violations-${this.name}.csv`,n,"application/csv")}catch(t){this.$dispatch("growl/fromError",{title:"Error downloading file",err:t},{root:!0})}}cleanForNew(){this.$dispatch("cleanForNew",this),this.constraint&&delete this.constraint}saveYaml(e){const t=i().load(e);return Object.assign(this,t),this.save()}async remove(){const e=await this.findLatestConstraint();return e.remove()}findLatestConstraint(){return this.$dispatch("cluster/find",{type:this.constraint.type,id:this.constraint.id,opt:{force:!0}},{root:!0})}get totalViolations(){return this.status?.totalViolations||this.violations.length}get violations(){const e=this.status?.violations||[];return e.map((e=>({...e,resourceLink:{text:e.name,to:{name:"c-cluster-product-resource-id",params:{resource:e.kind.toLowerCase(),id:e.name,product:"explorer"}}},constraintLink:{text:this.nameDisplay,to:this.detailLocation}})))}}},23455:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l}});var r=n(71445),i=n(79325),o=n(17328),a=n(92809),s=n.n(a);class l extends i.A{get canViewYaml(){return!1}get driverName(){if(!this.builtIn){const e=this.status?.displayName?.toLowerCase();if(e)return o.KONTAINER_TO_DRIVER[e]||e}return o.KONTAINER_TO_DRIVER[this.id]||this.name||this.id}get nameDisplay(){const e=`cluster.provider.${this.driverName}`,t=s()(this.driverName);return this.$rootGetters["i18n/withFallback"](e,t)}get description(){return this.builtIn||this.builtin?this.$rootGetters["i18n/withFallback"]("tableHeaders.builtIn"):this.url}set description(e){this.annotations&&(this.annotations[r.tC]=e),this._description=e}cleanForSave(e,t){const n=super.cleanForSave(e,t);return t&&(n.active=!0),delete n.metadata,n}}},21297:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(79325),i=n(79260);class o extends r.A{get _availableActions(){const e={action:"promptRestore",enabled:this.state===i.jv.ACTIVE,icon:"icon icon-fw icon-backup-restore",label:"Restore"},t=super._availableActions,n=[e];return t.length&&(n.push({divider:!0}),n.push(...t)),n}promptRestore(){this.$dispatch("promptRestore",[this])}get createdAt(){return this.created}get rke2(){return!1}get nameDisplay(){return this.name}get backupLocation(){return this.backupConfig.s3BackupConfig?this.t("cluster.snapshot.rke1.s3"):this.t("cluster.snapshot.rke1.local")}}},47237:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n(15510),i=n.n(r),o=n(78359),a=n(38991);class s extends a.A{get displayInvolvedObject(){const e=this.involvedObject;return i()(e)?"N/A":`${e.kind} ${e.name}`}get displayMessage(){return(0,o.TF)(this.message)}get timestamp(){return this.lastTimestamp||this.metadata?.creationTimestamp}get eventType(){return this._type}get lastSeen(){const e=this.$getters["schemaFor"](this.type),t=this.$rootGetters["type-map/rowValueGetter"];return e&&t?t(e,"Last Seen")(this):null}}},63124:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return c}});var r=n(78359),i=n(38991),o=n(6344),a=n(24759),s=n(4284),l=n(58899);class c extends i.A{get deploymentInfo(){const e=this.status?.summary?.ready||0,t=this.status?.summary?.desiredReady||0;return{ready:e,unready:t-e,total:t}}get lastUpdateTime(){return this.status?.conditions?.[0].lastUpdateTime}get bundleType(){return o.A.memberOfObject(this.spec,"helm")?"helm":""}get repoName(){const e=this.metadata?.labels||{};return e["fleet.cattle.io/repo-name"]}get targetClusters(){const e=this.$getters["byId"](s.Hs.WORKSPACE,this.metadata.namespace),t=e?.clusters||[],n=e?.clusterGroups||[],r=[];if("fleet-local"===e.id){const e=(0,a.jq)(n,"id","fleet-local/default");return e?e.targetClusters:[]}for(const i of this.spec.targets)if(i.clusterName){const e=(0,a.jq)(t,"metadata.name",i.clusterName);e&&(0,a.PG)(r,e)}else if(i.clusterGroup){const e=(0,a.jq)(n,{"metadata.namespace":this.metadata.namespace,"metadata.name":i.clusterGroup});e&&(0,a.cn)(r,e.targetClusters)}else if(i.clusterGroupSelector){const e=(0,l._R)(i.clusterGroupSelector),t=(0,l.wC)(n,e);for(const n of t)(0,a.cn)(r,n.targetClusters)}else if(i.clusterSelector){const e=(0,l._R)(i.clusterSelector),n=(0,l.wC)(t,e);(0,a.cn)(r,n)}return r}get stateDescription(){const e=this.stateObj?.error||!1,t=this.stateObj?.message;return e?(0,r.TF)(t):""}get stateObj(){const e=this.status?.conditions?.find((e=>{const{error:t,message:n}=e,r=!!t,i=n?.toLowerCase().includes("errapplied")||n?.toLowerCase().includes("error");return r&&i}));return e?(e.name=e.message?.toLowerCase().includes("errapplied")?"errapplied":"error",e):{...this.metadata.state}}get groupByLabel(){const e=this.metadata.namespace;return e?this.$rootGetters["i18n/t"]("resourceTable.groupLabel.workspace",{name:(0,r.ZD)(e)}):this.$rootGetters["i18n/t"]("resourceTable.groupLabel.notInAWorkspace")}}},7532:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return h}});var r=n(4284),i=n(71445),o=n(97538),a=n(38991),s=n(78359),l=n(24759),c=n(20246),u=n.n(c),d=n(31165);class h extends a.A{get _availableActions(){const e=super._availableActions;return(0,l.PT)(e,0,{action:"pause",label:"Pause",icon:"icon icon-pause",bulkable:!0,enabled:!!this.links.update&&!this.spec?.paused}),(0,l.PT)(e,1,{action:"unpause",label:"Unpause",icon:"icon icon-play",bulkable:!0,enabled:!!this.links.update&&!0===this.spec?.paused}),(0,l.PT)(e,2,{action:"forceUpdate",label:"Force Update",icon:"icon icon-refresh",bulkable:!0,enabled:!!this.links.update}),this.canChangeWorkspace&&(0,l.PT)(e,3,{action:"assignTo",label:"Change workspace",icon:"icon icon-copy",bulkable:!0,bulkAction:"assignToBulk",enabled:!!this.links.update&&!!this.mgmt}),(0,l.PT)(e,4,{divider:!0}),e}pause(){this.spec.paused=!0,this.save()}unpause(){this.spec.paused=!1,this.save()}forceUpdate(){const e=this.spec.redeployAgentGeneration||1;this.spec.redeployAgentGeneration=e+1,this.save()}assignTo(){this.$dispatch("assignTo",[this])}assignToBulk(e){this.$dispatch("assignTo",e)}get canDelete(){return!1}get canChangeWorkspace(){return!this.isLocal&&(!this.isRke2||this.$rootGetters["features/get"](d.N8))}get isLocal(){return this.metadata.name===r.d_||this.metadata?.labels?.[i.Hs.CLUSTER_NAME]===r.d_}get isRke2(){const e=this?.metadata?.labels?.[i.qt.PROVIDER]||this?.status?.provider;return e===o.gM}get nameDisplay(){return this.metadata?.labels?.[i.Hs.CLUSTER_DISPLAY_NAME]||this.metadata?.name||this.id}get name(){return this.metadata?.name||this.metadata?.labels?.[i.Hs.CLUSTER_NAME]}get state(){return!0===this.spec?.paused?"paused":this.metadata?.state?.name||"unknown"}get repoInfo(){const e=this.status?.readyGitRepos||0,t=this.status?.desiredReadyGitRepos||0;return{ready:e,unready:t-e,total:t}}get bundleInfo(){const e={ready:0,total:0},t=this.status?.display?.readyBundles;if(t&&t.includes("/")){const n=t.split("/");if(2===n.length&&parseInt(n[0])>=0&&parseInt(n[1])>=0)return e.ready=parseInt(n[0]),e.total=parseInt(n[1]),e}return e.noValidData=!0,e}get mgmt(){const e=this.$getters["byId"](r.Mc.CLUSTER,this.metadata?.labels?.[i.Hs.CLUSTER_NAME]);return e}get basicNorman(){const e=this.$rootGetters["rancher/byId"](r.k$.CLUSTER,this.metadata?.labels?.[i.Hs.CLUSTER_NAME]);return e}get norman(){return this.basicNorman?this.basicNorman:this.$dispatch("rancher/find",{type:r.k$.CLUSTER,id:this.metadata.labels[i.Hs.CLUSTER_NAME]},{root:!0})}async normanClone(){const e=await this.norman;return this.$dispatch("rancher/clone",{resource:e},{root:!0})}get groupByLabel(){const e=this.metadata.namespace;return e?this.$rootGetters["i18n/t"]("resourceTable.groupLabel.workspace",{name:(0,s.ZD)(e)}):this.$rootGetters["i18n/t"]("resourceTable.groupLabel.notInAWorkspace")}async saveYaml(e){await this._saveYaml(e);const t=u().load(e),n=await this.normanClone();n.setLabels(t.metadata.labels),n.setAnnotations(t.metadata.annotations),await n.save()}}},73585:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l}});var r=n(78359),i=n(58899),o=n(4284),a=n(65852),s=n(38991);class l extends s.A{applyDefaults(){const e=this.spec||{};e.selector=e.selector||{},e.selector.matchExpressions=e.selector.matchExpressions||[],(0,a.hZ)(this,"spec",e)}get targetClusters(){const e=this.$getters["byId"](o.Hs.WORKSPACE,this.metadata.namespace),t=(0,i.C6)(this.spec?.selector?.matchLabels||{},this.spec?.selector?.matchExpressions||[]);if(!t.length)return e.clusters;const n=(0,i.wC)(e.clusters,t);return n}get groupByLabel(){const e=this.metadata.namespace;return e?this.$rootGetters["i18n/t"]("resourceTable.groupLabel.workspace",{name:(0,r.ZD)(e)}):this.$rootGetters["i18n/t"]("resourceTable.groupLabel.notInAWorkspace")}get clusterInfo(){const e=this.status?.clusterCount||0,t=this.status?.nonReadyClusterCount||0,n=e-t;return{ready:n,unready:t,total:e}}get details(){const e=[{label:"Clusters Ready",content:`${this.clusterInfo.ready} of ${this.clusterInfo.total}`}];return e}}},72852:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(78359),i=n(38991);class o extends i.A{get groupByLabel(){const e=this.metadata.namespace;return e?this.$rootGetters["i18n/t"]("resourceTable.groupLabel.workspace",{name:(0,r.ZD)(e)}):this.$rootGetters["i18n/t"]("resourceTable.groupLabel.notInAWorkspace")}}},67088:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return _}});var r=n(58899),i=n(20246),o=n.n(i),a=n(78359),s=n(4284),l=n(71445),c=n(24759),u=n(65852),d=n(38991),h=n(79260),p=n(93786);function f(e,t){e[t]||(e[t]=0),e[t]++}function m(e){return`${e.kind}/${e.namespace}/${e.name}`}class g{resourceId(e){return e.namespace?`${e.namespace}/${e.name}`:e.name}resourceType(e){const t=e.kind.toLowerCase();return e.apiVersion&&"v1"!==e.apiVersion?`${e.apiVersion.split("/",2)[0]}.${t}`:t}resourcesFromBundleDeploymentStatus(e){const t=(e?.resources||[]).reduce(((e,t)=>(e[m(t)]=Object.assign({state:h.jv.READY},t),e)),{}),n=[];for(const r of e?.modifiedStatus||[]){const e=r.missing?h.jv.MISSING:r.delete?h.jv.ORPHANED:h.jv.MODIFIED,i=t[m(r)];i?i.state=e:n.push(Object.assign({state:e},r))}for(const r of e?.nonReadyStatus||[]){const e=r.summary?.state||h.jv.UNKNOWN,n=t[m(r)];n&&(n.state=e)}return n.concat(Object.values(t))}resourcesFromBundleStatus(e){const t=(e.resourceKey||[]).reduce(((e,t)=>{const n=m(t);return e[n]||(e[n]={r:t,count:{}}),f(e[n].count,h.jv.READY),e}),{});for(const n of e.summary?.nonReadyResources||[]){for(const e of n.modifiedStatus||[]){const n=m(e);t[n]||(t[n]={r:e,count:{}}),e.missing?f(t[n].count,h.jv.MISSING):e.delete?(t[n].count[h.jv.READY]--,f(t[n].count,h.jv.ORPHANED)):(t[n].count[h.jv.READY]--,f(t[n].count,h.jv.MODIFIED))}for(const e of n.nonReadyStatus||[]){const n=m(e),r=e.summary?.state||h.jv.UNKNOWN;t[n].count[h.jv.READY]--,f(t[n].count,r)}}return Object.values(t).reduce(((e,t)=>{const{r:n,count:r}=t;for(const i in r)for(let t=0;t1)e="advanced";else if(i.clusterGroup)n=i.clusterGroup,e||(e="clusterGroup");else if(i.clusterName)e="cluster",t=i.clusterName;else if(i.clusterSelector)if(0===Object.keys(i.clusterSelector).length)e="all";else{const n=(0,r.C6)(i.clusterSelector.matchLabels,i.clusterSelector.matchExpressions);1===n.length&&n[0].key===l.Hs.CLUSTER_NAME&&"In"===n[0].operator&&1===n[0].values.length&&(t=n[0].values[0],e||(e="cluster"))}}}else e="none";return e||(e="advanced"),{mode:e,modeDisplay:this.t(`fleet.gitRepo.targetDisplay."${e}"`),cluster:t,clusterGroup:n,advanced:i}}get groupByLabel(){const e=this.metadata.namespace;return e?this.$rootGetters["i18n/t"]("resourceTable.groupLabel.workspace",{name:(0,a.ZD)(e)}):this.$rootGetters["i18n/t"]("resourceTable.groupLabel.notInAWorkspace")}get bundles(){const e=this.$getters["all"](s.Hs.BUNDLE);return e.filter((e=>e.repoName===this.name&&e.namespace===this.namespace&&e.namespacedName.startsWith(`${this.namespace}:${this.name}`)))}get bundlesReady(){return this.bundles?.filter((e=>"active"===e.state))}get bundleDeployments(){const e=this.$getters["all"](s.Hs.BUNDLE_DEPLOYMENT);return e.filter((e=>e.metadata?.labels?.["fleet.cattle.io/repo-name"]===this.name))}get resourcesStatuses(){const e=this.bundleDeployments||[],t=(this.targetClusters||[]).reduce(((e,t)=>(e[t.id]=t,e)),{}),n=[];for(const r of e){const e=y.clusterIdFromBundleDeploymentLabels(r.metadata?.labels),i=t[e];if(!i)continue;const o=y.resourcesFromBundleDeploymentStatus(r.status);o.forEach((e=>{const t=y.resourceId(e),r=y.resourceType(e),o=e.state,a=(0,h.uU)(o).replace("text-","bg-"),s=(0,h.ch)(o),c={name:`c-cluster-product-resource${e.namespace?"-namespace":""}-id`,params:{product:p.o,cluster:i.metadata.labels[l.Hs.CLUSTER_NAME],resource:r,namespace:e.namespace,id:e.name}},u=`${i.id}-${r}-${e.namespace}-${e.name}`;n.push({key:u,tableKey:u,id:t,type:r,clusterId:i.id,state:(0,h.hb)(o),clusterName:i.nameDisplay,apiVersion:e.apiVersion,kind:e.kind,name:e.name,namespace:e.namespace,creationTimestamp:e.createdAt,clusterLabel:i.metadata.labels[l.Hs.CLUSTER_NAME],stateBackground:a,stateDisplay:s,stateSort:(0,h.gs)(a,s),detailLocation:c})}))}return n}get clusterInfo(){const e=this.status?.readyClusters||0,t=this.status?.desiredReadyClusters||0;return{ready:e,unready:t-e,total:t}}get clusterResourceStatus(){const e=this.resourcesStatuses.reduce(((e,t)=>{const{clusterId:n,clusterLabel:r,state:i}=t;return e[n]||(e[n]={clusterLabel:r,resourceCounts:{[i]:0,desiredReady:0}}),e[n].resourceCounts[i]||(e[n].resourceCounts[i]=0),e[n].resourceCounts[i]+=1,e[n].resourceCounts.desiredReady+=1,e}),{}),t=Object.keys(e).map((t=>{const{clusterLabel:n,resourceCounts:r}=e[t];return{clusterId:t,clusterLabel:n,status:{displayStatus:(0,h.aB)(r),resourceCounts:{...r}}}}));return t}get clustersList(){return this.$getters["all"](s.Hs.CLUSTER)}}},40666:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(4284),i=n(65852),o=n(93543);class a extends o["default"]{get canViewInApi(){return!1}get nameDisplay(){return this.principalNameDisplay}get principalNameDisplay(){const e=this.$rootGetters["rancher/byId"](r.k$.PRINCIPAL,this.id);return`${e.name} (${e.displayType})`}get detailLocation(){const e=(0,i.o8)(this._detailLocation);return e.params.id=this.id,e}get globalRoleBindings(){return this.$rootGetters["management/all"](r.Mc.GLOBAL_ROLE_BINDING).filter((e=>this.id===e.groupPrincipalName))}get _availableActions(){return[{action:"goToEdit",label:this.t("action.edit"),icon:"icon icon-edit",enabled:!0},{action:"promptUnassignGroupRoles",altAction:"unassignGroupRoles",label:this.t("action.unassign"),icon:"icon icon-trash",bulkable:!0,enabled:!!this.globalRoleBindings.length,bulkAction:"unassignGroupRoles"}]}promptUnassignGroupRoles(e=this){const t=Array.isArray(e)?e:[e],n=this.$rootGetters["management/all"](r.Mc.GLOBAL_ROLE_BINDING).filter((e=>t.find((t=>t.id===e.groupPrincipalName))));this.$dispatch("promptRemove",n)}async unassignGroupRoles(e=this){const t=Array.isArray(e)?e:[e],n=this.$rootGetters["management/all"](r.Mc.GLOBAL_ROLE_BINDING).filter((e=>t.find((t=>t.id===e.groupPrincipalName))));await Promise.all(n.map((e=>e.remove()))),this.$dispatch("promptRemove",null)}}},63935:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(38991),i=n(4284);class o extends r.A{applyDefaults(){this.spec||(this["spec"]={helmApiVersion:"monitoring.cattle.io/v1alpha1"},this["metadata"]={name:"project-monitoring"})}get projectId(){const e=this.$rootGetters["currentProduct"].inStore,t=this.$rootGetters[`${e}/all`](i.CU),{projectId:n}=t.find((e=>e.id===this.metadata.namespace));return n}get projectDisplayName(){const e=this.$rootGetters["currentCluster"]?.id,t=this.$rootGetters["management/byId"](i.Mc.PROJECT,`${e}/${this.projectId}`);return t?.spec.displayName}get namespaces(){const e=this.$rootGetters["currentProduct"].inStore,t=this.$rootGetters[`${e}/all`](i.CU),n=t.filter((e=>e.projectId===this.projectId));return[...n]}get parentNameOverride(){return this.$rootGetters["i18n/t"](`typeLabel."${i.fj.PROJECTHELMCHART}"`,{count:1})?.trim()}}},17099:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(38991),i=n(71445);class o extends r.A{applyDefaults(){const e=this.spec||{config:JSON.stringify({cniVersion:"0.3.1",name:"",type:"bridge",bridge:"",promiscMode:!0,vlan:"",ipam:{}})};this["spec"]=e}get parseConfig(){try{return JSON.parse(this.spec.config)||{}}catch(e){return{}}}get isIpamStatic(){return"static"===this.parseConfig.ipam?.type}get clusterNetwork(){return this?.metadata?.labels?.[i.rk.CLUSTER_NETWORK]}get vlanType(){const e=this.metadata?.labels||{},t=e[i.rk.NETWORK_TYPE];return t}get vlanId(){return"UntaggedNetwork"===this.vlanType?"N/A":this.parseConfig.vlan}get customValidationRules(){const e=[{nullable:!1,path:"metadata.name",required:!0,minLength:1,maxLength:63,translationKey:"harvester.fields.name"}];return e}get connectivity(){const e=this.metadata?.annotations||{},t=e[i.rk.NETWORK_ROUTE];let n={};if("UntaggedNetwork"===this.vlanType)return"N/A";try{n=JSON.parse(t||"{}")}catch{return"invalid"}const r=n.connectivity;return"false"===r?"inactive":"true"===r?"active":r}}},41932:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(23455);class i extends r["default"]{get doneRoute(){return"c-cluster-manager-driver-kontainerdriver"}get _availableActions(){const e=[{action:"activate",label:this.t("action.activate"),icon:"icon icon-play",bulkable:!0,bulkAction:"activateBulk",enabled:!!this.links.update&&!this.active},{action:"deactivate",label:this.t("action.deactivate"),icon:"icon icon-pause",bulkable:!0,bulkAction:"deactivateBulk",enabled:!!this.links.update&&!!this.active,weight:-1},{divider:!0},{action:"viewInApi",enabled:!0,icon:"icon icon-external-link",label:this.t("action.viewInApi")},{divider:!0},{action:"goToEdit",label:this.t("action.edit"),icon:"icon icon-edit",bulkable:!1,enabled:!!this.links.update&&!this.builtin},{action:"promptRemove",altAction:"remove",bulkAction:"promptRemove",label:this.t("action.remove"),bulkable:!0,icon:"icon icon-delete",enabled:!!this.links.remove,weight:-10}];return e}deactivate(e=[this]){this.$dispatch("promptModal",{componentProps:{drivers:e,driverType:"kontainerDrivers"},component:"DeactivateDriverDialog"})}deactivateBulk(e){this.$dispatch("promptModal",{componentProps:{drivers:e,driverType:"kontainerDrivers"},component:"DeactivateDriverDialog"})}activate(){return this.$dispatch("rancher/request",{url:`v3/kontainerDrivers/${escape(this.id)}?action=activate`,method:"post"},{root:!0})}async activateBulk(e){await Promise.all(e.map((e=>this.$dispatch("rancher/request",{url:`v3/kontainerDrivers/${escape(e.id)}?action=activate`,method:"post"},{root:!0}))))}}},87834:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n(4284),i=n(17410),o=n.n(i),a=n(70546);class s extends a["default"]{get allOutputs(){return this.$rootGetters["cluster/all"](r.cm.CLUSTER_OUTPUT)||[]}get outputs(){if(!this.allOutputs)return[];const e=this?.spec?.globalOutputRefs||this?.spec?.outputRefs||[];return this.allOutputs.filter((t=>e.includes(t.name)))}get outputProviders(){const e=this.outputs.flatMap((e=>e.providers));return o()(e)||[]}get customValidationRules(){return[{path:"spec",validators:["flowOutput"]}]}}},23775:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(66247);class i extends r["default"]{}},70546:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return c},matchRuleIsPopulated:function(){return l}});var r=n(4284),i=n(65852),o=n(17410),a=n.n(o),s=n(38991);function l(e){return!!e&&(!(!e.labels||!Object.keys(e.labels).length)||(!!e.hosts?.length||(!!e.container_names?.length||!!e.namespaces?.length)))}class c extends s.A{applyDefaults(){(0,i.hZ)(this,"spec",this.spec||{}),(0,i.hZ)(this.spec,"match",this.spec.match||[]),(0,i.hZ)(this.spec,"filters",this.spec.filters||[]),(0,i.hZ)(this.spec,"localOutputRefs",this.spec.localOutputRefs||[]),(0,i.hZ)(this.spec,"globalOutputRefs",this.spec.globalOutputRefs||[])}get canCustomEdit(){if(!this.spec?.match?.length)return!0;let e=!0;for(const t of this.spec.match)if(l(t.select)&&l(t.exclude)){e=!1;break}return e}get allOutputs(){return this.$rootGetters["cluster/all"](r.cm.OUTPUT)||[]}get allClusterOutputs(){return this.$rootGetters["cluster/all"](r.cm.CLUSTER_OUTPUT)||[]}get outputs(){const e=this.spec?.localOutputRefs||[];return this.allOutputs.filter((t=>e.includes(t.name)))}get outputsSortable(){const e=this.outputs.map((e=>e.nameDisplay));return e.sort(),e.join("")}get clusterOutputs(){const e=this.spec?.globalOutputRefs||[];return this.allClusterOutputs?this.allClusterOutputs.filter((t=>e.includes(t.name))):[]}get clusterOutputsSortable(){const e=this.clusterOutputs.map((e=>e.nameDisplay));return e.sort(),e.join("")}get providersDisplay(){const e=[...this.outputs,...this.clusterOutputs],t=e.flatMap((e=>e.providersDisplay));return a()(t)||[]}get customValidationRules(){return[{path:"spec",validators:["flowOutput:verifyLocal"]}]}}},66247:function(e,t,n){"use strict";n.r(t),n.d(t,{PROVIDERS:function(){return i},default:function(){return o}});var r=n(38991);const i=[{name:"awsElasticsearch",labelKey:"logging.outputProviders.awsElasticsearch",default:{endpoint:{}}},{name:"azurestorage",labelKey:"logging.outputProviders.azurestorage",default:{}},{name:"cloudwatch",labelKey:"logging.outputProviders.cloudwatch",default:{}},{name:"datadog",labelKey:"logging.outputProviders.datadog",default:{}},{name:"elasticsearch",labelKey:"logging.outputProviders.elasticsearch",default:{}},{name:"file",labelKey:"logging.outputProviders.file",default:{}},{name:"forward",labelKey:"logging.outputProviders.forward",default:{servers:[{}]}},{name:"gelf",labelKey:"logging.outputProviders.gelf",default:{}},{name:"gcs",labelKey:"logging.outputProviders.gcs",default:{}},{name:"kafka",labelKey:"logging.outputProviders.kafka",default:{format:{type:"json"}}},{name:"kinesisStream",labelKey:"logging.outputProviders.kinesisStream",default:{}},{name:"logdna",labelKey:"logging.outputProviders.logdna",default:{}},{name:"logz",labelKey:"logging.outputProviders.logz",default:{endpoint:{}}},{name:"loki",labelKey:"logging.outputProviders.loki",default:{configure_kubernetes_labels:!0}},{name:"newrelic",labelKey:"logging.outputProviders.newrelic",default:{}},{name:"opensearch",labelKey:"logging.outputProviders.opensearch",default:{}},{name:"redis",labelKey:"logging.outputProviders.redis",default:{port:6379,db_number:0,ttl:0}},{name:"splunkHec",labelKey:"logging.outputProviders.splunkHec",default:{}},{name:"sumologic",labelKey:"logging.outputProviders.sumologic",default:{}},{name:"syslog",labelKey:"logging.outputProviders.syslog",default:{}},{name:"s3",labelKey:"logging.outputProviders.s3",default:{}}];class o extends r.A{get canCustomEdit(){return this.allProvidersSupported}get providers(){const e=this.spec||{};return Object.keys(e).filter((e=>"loggingRef"!==e))}get providersDisplay(){return this.providers.map((e=>{const t=this.t(`logging.outputProviders.${e}`);return t||this.t("logging.outputProviders.unknown")}))}isSupportedProvider(e){return!!i.find((t=>t.name===e))}get allProvidersSupported(){return this.providers.every(this.isSupportedProvider)}get providersSortable(){const e=[...this.providersDisplay];return e.sort(),e.join("")}get text(){return this.nameDisplay}get url(){return{name:"c-cluster-product-resource-namespace-id",params:{resource:this.type,id:this.name,namespace:this.namespace}}}get customValidationRules(){return[{path:"spec.logdna",validators:["logdna"]}]}}},51401:function(e,t,n){"use strict";n.r(t),n.d(t,{configType:function(){return o},default:function(){return s}});var r=n(24759),i=n(38991);const o={activedirectory:"ldap",azuread:"oauth",openldap:"ldap",freeipa:"ldap",ping:"saml",adfs:"saml",keycloak:"saml",okta:"saml",shibboleth:"saml",googleoauth:"oauth",local:"",github:"oauth",keycloakoidc:"oidc",genericoidc:"oidc"},a={keycloakoidc:"keycloak",genericoidc:"openid"};class s extends i.A{get _availableActions(){const e=super._availableActions;return(0,r.PT)(e,0,{action:"disable",label:"Disable",icon:"icon icon-spinner",enabled:!0===this.enabled}),(0,r.PT)(e,1,{divider:!0}),e}get nameDisplay(){return this.$rootGetters["i18n/withFallback"](`model.authConfig.name."${this.id}"`,null,this.provider)}get provider(){return this.$rootGetters["i18n/withFallback"](`model.authConfig.provider."${this.id}"`,null,this.id)}get configType(){return o[this.id]}get sideLabel(){return this.$rootGetters["i18n/withFallback"](`model.authConfig.description."${this.configType}"`,null,this.configType)}get icon(){try{return n(82360)(`./${a[this.id]||this.id}.svg`)}catch(e){return""}}get state(){return this.enabled?"active":"inactive"}}},11042:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return k}});var r=n(71445),i=n(4284),o=n(24759),a=n(1122),s=n(62155),l=n(96351),c=n(20246),u=n.n(c),d=n(68844),h=n(23967),p=n(65852),f=n(76250);n(8374),n(78359),n(41890);function m(e){const t=e?.metadata?.labels?.[r.qt.PROVIDER]||e?.status?.provider;return t===i.BN}var g=n(38991),v=n(631),y=n(17328),b=n(97538),_=n(53864),w=n(9776);const E="#707070",S={};function x(e,t,n=[]){const r=`${e}Type`,i=`${e}Id`;return n.find((e=>e[r]===t))?.[i]}class k extends g.A{get details(){const e=[{label:"Provisioner",content:this.provisionerDisplay},{label:"Machine Provider",content:this.machineProviderDisplay},{label:"Kubernetes Version",content:this.kubernetesVersion}];return e}get _availableActions(){const e=super._availableActions;return(0,o.PT)(e,0,{action:"openShell",label:this.t("nav.shell"),icon:"icon icon-terminal",enabled:!!this.links.shell}),(0,o.PT)(e,1,{action:"downloadKubeConfig",bulkAction:"downloadKubeConfigBulk",label:this.t("nav.kubeconfig.download"),icon:"icon icon-download",bulkable:!0,enabled:this.$rootGetters["isRancher"]&&this.hasAction("generateKubeconfig")}),(0,o.PT)(e,2,{action:"copyKubeConfig",label:this.t("cluster.copyConfig"),bulkable:!1,enabled:this.$rootGetters["isRancher"]&&this.hasAction("generateKubeconfig"),icon:"icon icon-copy"}),e}get canDelete(){return this.hasLink("remove")&&!this?.spec?.internal}get machinePools(){const e=this.$getters["all"](i.Mc.NODE_POOL);return e.filter((e=>e.spec?.clusterName===this.id))}get provisioner(){return this.status?.driver?this.status.driver:"imported"}get machineProvider(){const e=this.machinePools?.[0]?.provider;return e?e.replace(/config$/i,"").toLowerCase():this.spec?.internal?"local":null}get rkeTemplateVersion(){return this.spec?.clusterTemplateRevisionName}get providerForEmberParam(){let e;const t=y.KONTAINER_TO_DRIVER[(this.provisioner||"").toLowerCase()]||this.provisioner;return e="rancherKubernetesEngine"===t?this.machinePools?.[0]?this.machinePools[0]?.nodeTemplate?.spec?.driver||null:"custom":this.driver?this.driver:t&&t.endsWith("v2")?t:"import",e}get emberEditPath(){let e;this.rkeTemplateVersion&&(e=this.rkeTemplateVersion);const t=this.providerForEmberParam,n={};t&&(n["provider"]=t),e&&(n["clusterTemplateRevision"]=e),"import"===t&&(0,p.Im)(this.eksConfig)&&(0,p.Im)(this.gkeConfig)?n.importProvider="other":("amazoneks"===t&&!(0,p.Im)(this.eksConfig)||"gke"===t&&!(0,p.Im)(this.gkeConfig))&&(n.importProvider=y.KONTAINER_TO_DRIVER[t]),this.clusterTemplateRevisionId&&(n.clusterTemplateRevision=this.clusterTemplateRevisionId);const r=(0,h.g)(`/c/${escape(this.id)}/edit`,n);return r}get groupByLabel(){return this.$rootGetters["i18n/t"]("resourceTable.groupLabel.notInAWorkspace")}get isReady(){return this.hasCondition("Connected")?this.isCondition("Connected"):this.isCondition("Ready")}get kubernetesVersionRaw(){const e=this.status?.version?.gitVersion,t=this.spec?.[`${this.provisioner}Config`]?.kubernetesVersion;return e||t}get kubernetesVersion(){return this.kubernetesVersionRaw||this.$rootGetters["i18n/t"]("generic.provisioning")}get kubernetesVersionBase(){return this.kubernetesVersion.replace(/[+-].*$/,"")}get kubernetesVersionExtension(){return this.kubernetesVersion.match(/[+-]/)?this.kubernetesVersion.replace(/^.*([+-])/,"$1"):""}get providerOs(){return this.status?.provider.endsWith(".windows")?"windows":"linux"}get providerOsLogo(){return n(82360)(`./${this.providerOs}.svg`)}get workerOSs(){const e=this.status?.windowsWorkerCount,t=this.status?.linuxWorkerCount;if(e||t){const n=[];return e&&n.push(v.CB),t&&n.push(v["do"]),n}return this.providerOs===v.CB?[v.CB]:[v["do"]]}get isLocal(){return!0===this.spec?.internal}get isHarvester(){return m(this)}get isHostedKubernetesProvider(){const e=["AKS","EKS","GKE"];return e.includes(this.provisioner)}get providerLogo(){let e=this.status?.provider||"kubernetes";this.isHarvester&&(e=f.T);const t=e.split(".")[0],r=S[t]||t;let i;try{i=n(53588)(`./${t}.svg`)}catch(o){w.warn(`Can not find provider logo for provider ${r}`),i=n(82044)}return i}get providerMenuLogo(){return this.providerLogo}get providerNavLogo(){return this.providerLogo}get badge(){const e=this.metadata?.annotations?.[r.XH.ICON_TEXT],t=this.metadata?.annotations?.[r.XH.TEXT];if(!e&&!t)return;let n=this.metadata?.annotations[r.XH.COLOR]||E;const i=this.metadata?.annotations[r.XH.ICON_TEXT]||"";let o;try{o=(0,l.hk)((0,l.H0)(n.trim()))}catch(a){n=E,o=(0,l.hk)((0,l.H0)(n))}return{text:t||void 0,color:n,textColor:o,iconText:i.substr(0,3)}}get scope(){return this.isLocal?r.W8._MANAGEMENT:r.W8._DOWNSTREAM}setClusterNameLabel(e){if(!this.ownerReferences?.length&&this.metadata?.labels?.[i.Hs.CLUSTER_NAME]!==this.id)return this.metadata=this.metadata||{},this.metadata.labels=this.metadata.labels||{},this.metadata.labels[i.Hs.CLUSTER_NAME]=this.id,e?this.save():void 0}get availableCpu(){const e=(0,s.ao)(this.status.requested?.cpu),t=(0,s.ao)(this.status.allocatable?.cpu);return t>0&&e>=0?Math.max(0,t-e):null}get availableMemory(){const e=(0,s.ao)(this.status.requested?.memory),t=(0,s.ao)(this.status.allocatable?.memory);return t>0&&e>=0?Math.max(0,t-e):null}openShell(){this.$dispatch("wm/open",{id:`kubectl-${this.id}`,label:this.$rootGetters["i18n/t"]("wm.kubectlShell.title",{name:this.nameDisplay}),icon:"terminal",component:"KubectlShell",attrs:{cluster:this,pod:{}}},{root:!0})}async generateKubeConfig(){const e=await this.doAction("generateKubeconfig");return e.config}async downloadKubeConfig(){const e=await this.generateKubeConfig();(0,a.PE)(`${this.nameDisplay}.yaml`,e,"application/yaml")}async downloadKubeConfigBulk(e){let t={},n=!0;await(0,d.hF)(e,10,((e,r)=>e.generateKubeConfig().then((e=>{const r=u().load(e);n?(t=r,n=!1):(t.clusters.push(...r.clusters),t.users.push(...r.users),t.contexts.push(...r.contexts))})))),delete t["current-context"];const r=u().dump(t);(0,a.PE)("kubeconfig.yaml",r,"application/yaml")}async copyKubeConfig(){try{const e=await this.generateKubeConfig();e&&await(0,_.e)(e)}catch{}}async fetchNodeMetrics(){const e=await this.$dispatch("cluster/findAll",{type:i.NW},{root:!0}),t=await this.$dispatch("cluster/findAll",{type:i.NW},{root:!0}),n=e.some((e=>e.hasARole&&!e.isWorker)),r=t.filter((t=>{const r=e.find((e=>e.id===t.id));return r&&(!n||r.isWorker)})),o={cpu:0,memory:0};return(0,p.Im)(r)?null:r.reduce(((e,t)=>(e.cpu+=(0,s.ao)(t?.usage?.cpu),e.memory+=(0,s.ao)(t?.usage?.memory),e)),o)}get nodes(){return this.$getters["all"](i.Mc.NODE).filter((e=>e.id.startsWith(this.id)))}get provClusterId(){const e=!!this.spec?.rancherKubernetesEngineConfig,t=this.isLocal||e||this.isHostedKubernetesProvider?"to":"from",n=x(t,i.qt.RANCHER_CLUSTER,this.metadata?.relationships);return n||x("to"===t?"from":"to",i.qt.RANCHER_CLUSTER,this.metadata?.relationships)}get pinned(){return this.$rootGetters["prefs/get"](b.Hu).includes(this.id)}pin(){const e=this.$rootGetters["prefs/get"](b.Hu)||[];(0,o.PG)(e,this.id),this.$dispatch("prefs/set",{key:b.Hu,value:e},{root:!0})}unpin(){const e=this.$rootGetters["prefs/get"](b.Hu)||[];(0,o.Gj)(e,this.id),this.$dispatch("prefs/set",{key:b.Hu,value:e},{root:!0})}}},17264:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l}});var r=n(71445),i=n(75040),o=n(4284),a=n(73474),s=n(76250);class l extends a.A{detailPageHeaderActionOverride(e){if(e===i.YQ)return this.t("members.createActionLabel")}get canCustomEdit(){return!1}get canYaml(){return!1}get canClone(){return!1}get user(){return this.$rootGetters["management/byId"](o.Mc.USER,this.userName)}get principal(){const e=this.principalId.replace(/\//g,"%2F");return this.$dispatch("rancher/find",{type:o.k$.PRINCIPAL,id:this.principalId,opt:{url:`/v3/principals/${e}`}},{root:!0})}get syncPrincipal(){return this.$rootGetters["rancher/byId"](o.k$.PRINCIPAL,this.principalId)}get principalId(){return this.principalName||this.userPrincipalName||this.groupPrincipalName||""}get nameDisplay(){return this.user?.nameDisplay||this.userName||this.syncPrincipal?.nameDisplay||this.principalId}get roleDisplay(){return this.roleTemplate?.nameDisplay}get roleDescription(){return this.roleTemplate?.description}get roleTemplate(){return this.$rootGetters["management/byId"](o.Mc.ROLE_TEMPLATE,this.roleTemplateName)}get cluster(){return this.$rootGetters["management/byId"](o.Mc.CLUSTER,this.clusterName)}get clusterDisplayName(){return this.cluster?this.cluster.nameDisplay:this.clusterName}get clusterDetailLocation(){if(this.cluster)return this.cluster.detailLocation;const e="c-cluster-product-resource-id",t={resource:o.Mc.CLUSTER_ROLE_TEMPLATE_BINDING,id:this.clusterName,product:"explorer"};return{name:e,params:t}}get listLocation(){return this.$rootGetters["currentProduct"].inStore===s.T?{name:`${s.T}-c-cluster-members`}:{name:"c-cluster-product-members"}}get doneOverride(){return this.listLocation}get parentLocationOverride(){return this.listLocation}get subSearch(){return[{nameDisplay:this.nameDisplay}]}get isSystem(){return!this.metadata.annotations[r.Rw]}get norman(){return(async()=>{const e=await this.principal,t="group"===e?.principalType?"groupPrincipalId":"userPrincipalId";return this.$dispatch("rancher/create",{type:o.k$.CLUSTER_ROLE_TEMPLATE_BINDING,roleTemplateId:this.roleTemplateName,[t]:e?.id,clusterId:this.clusterName,id:this.id?.replace("/",":")},{root:!0})})()}async save(){const e=await this.norman;return e.save()}async remove(){const e=await this.norman;await e.remove({url:`/v3/clusterRoleTemplateBindings/${e.id}`})}}},34899:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(76250),i=n(73474);class o extends i.A{get state(){return this.enabled?"active":"off"}get enabled(){return null!==this.status.lockedValue?this.status.lockedValue:null!==this.spec.value?this.spec.value:this.status.default}get restartRequired(){return!this.status.dynamic}get canYaml(){return!1}get canDisable(){return this.canUpdate&&!r.r.includes(this.id)}get _availableActions(){const e=super._availableActions,t=this.enabled,n={action:"toggleFeatureFlag",label:t?this.t("action.deactivate"):this.t("action.activate"),icon:"icon icon-edit",enabled:t?this.canDisable:this.canUpdate};return n.enabled=n.enabled&&null===this.status.lockedValue,e.unshift(n),e}toggleFeatureFlag(e=this){this.$dispatch("promptUpdate",e)}}},17700:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(4284),i=n(24759),o=n(73474);class a extends o.A{get isLocal(){return"fleet-local"===this.metadata.name}get counts(){const e=this.$rootGetters["management/all"](r.i2)[0].counts||{},t=this.metadata.name,n={clusterGroups:e[r.Hs.CLUSTER_GROUP]?.namespaces?.[t]?.count||0,clusters:e[r.Hs.CLUSTER]?.namespaces?.[t]?.count||0,gitRepos:e[r.Hs.GIT_REPO]?.namespaces?.[t]?.count||0};return n}get clusters(){const e=this.$getters["all"](r.Hs.CLUSTER),t=(0,i.WP)(e,"metadata.namespace",this.metadata.name);return t}get clusterGroups(){const e=this.$getters["all"](r.Hs.CLUSTER_GROUP),t=(0,i.WP)(e,"metadata.namespace",this.metadata.name);return t}get repos(){const e=this.$getters["all"](r.Hs.GIT_REPO),t=(0,i.WP)(e,"namespace",this.id);return t}get basicNorman(){return this.id?this.$dispatch("rancher/find",{id:this.id,type:r.k$.FLEET_WORKSPACES},{root:!0}):this.$dispatch("rancher/create",{type:r.k$.FLEET_WORKSPACES,name:this.metadata.name},{root:!0})}get norman(){return(async()=>{const e=await this.basicNorman;return e.annotations=this.metadata.annotations,e.labels=this.metadata.labels,e})()}async save(){const e=await this.norman;await e.save()}waitForWorkspaceSchema(e=2e4,t){return this.waitForTestFn((()=>{const e=this.$rootGetters["management/schemaFor"](r.Hs.WORKSPACE);return t?t(e):e}),this.$rootGetters["i18n/t"]("fleet.workspaces.timeout"),e)}async remove(){const e=await this.norman;await e.remove()}}},76951:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(38991);class i extends r.A{}},64218:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return m}});var r=n(71445),i=n(4284),o=n(34779),a=n(24759),s=n(65852),l=n(23348),c=n(75040);const u="user-base",d="user",h="admin",p=[u,h,d],f=o.SUBTYPE_MAPPING.GLOBAL.key;class m extends l.A{get customValidationRules(){return[{path:"rules",validators:[`roleTemplateRules:${this.type}`],nullable:!1,type:"array"}]}get details(){const e=this._details;return e.unshift({label:this.t("resourceDetail.detailTop.name"),content:(0,s.Jt)(this,"name")}),e}get nameDisplay(){const e=`rbac.globalRoles.role.${this.id}.label`,t=this.displayName||this.metadata?.name||this.id;return this.$rootGetters["i18n/withFallback"](e,t)}get descriptionDisplay(){return this.description||this.metadata?.annotations?.[r.tC]||this.$rootGetters["i18n/withFallback"](`rbac.globalRoles.role.${this.id}.description`,this.t("rbac.globalRoles.unknownRole.description"))}get isSpecial(){return p.includes(this.id)}get subtype(){return f}get default(){return!!this.newUserDefault}get allResources(){return this.$getters["all"](i.yx).filter((e=>e.attributes?.kind))}get globalResources(){return this.allResources.filter((e=>e.attributes.group.includes(o.CATTLE_API_GROUP)))}get resources(){return(0,a.sb)(this.globalResources.map((e=>e.attributes?.resource))).sort()}get listLocation(){return{name:"c-cluster-auth-roles",hash:`#${f}`}}get detailLocation(){return{...this._detailLocation,name:"c-cluster-auth-roles-resource-id"}}get doneOverride(){return this.listLocation}get parentLocationOverride(){return this.listLocation}get basicNorman(){return this.id?this.$dispatch("rancher/find",{id:this.id,type:i.k$.GLOBAL_ROLE},{root:!0}):this.$dispatch("rancher/create",{type:i.k$.GLOBAL_ROLE,name:this.displayName},{root:!0})}get norman(){return(async()=>{const e=await this.basicNorman;return e.rules=this.rules,e.newUserDefault=this.newUserDefault,e.id=this.id,e.name=this.displayName,e.description=this.description,e.inheritedClusterRoles=this.inheritedClusterRoles,e})()}get canCreate(){const e=this.$getters["schemaFor"](this.type);return e?.resourceMethods.find((e=>o.CREATE_VERBS.has(e)))}goToClone(e={}){const t=this.detailLocation;t.query={...t.query,[c.g]:c.dT,[c.AS]:c.xz,roleContext:f,...e},this.currentRouter().push(t)}async save(){const e=await this.norman;for(const t of e.rules)t.nonResourceURLs&&t.nonResourceURLs.length?(delete t.resources,delete t.apiGroups):delete t.nonResourceURLs;return e.save()}async remove(){const e=await this.norman;await e.remove()}}},64297:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(4284),i=n(73474);class o extends i.A{get nameDisplay(){const e=this.$getters["byId"](r.Mc.GLOBAL_ROLE,this.globalRoleName);if(!e)return this.globalRoleName;const t=this.groupPrincipalName?this._displayPrincipal:this._displayUser;return t?`${e.displayName} (${t})`:e.displayName}get _displayPrincipal(){const e=this.$rootGetters["rancher/byId"](r.k$.PRINCIPAL,this.groupPrincipalName);return e?`${e.name} - ${e.displayType}`:null}get _displayUser(){return this.user}get basicNorman(){return this.id?this.$dispatch("rancher/find",{id:this.id,type:r.k$.GLOBAL_ROLE_BINDING},{root:!0}):this.$dispatch("rancher/create",{type:r.k$.GLOBAL_ROLE_BINDING,name:this.displayName},{root:!0})}get norman(){return(async()=>{const e=await this.basicNorman;return e.globalRoleId=this.globalRoleName,e.userId=this.userName,e.newUserDefault=this.newUserDefault,e.groupPrincipalId=this.groupPrincipalName,e})()}async save(){const e=await this.norman;return e.save()}async remove(){const e=await this.norman;await e.remove()}}},17328:function(e,t,n){"use strict";n.r(t),n.d(t,{DRIVER_TO_IMPORT:function(){return l},KONTAINER_TO_DRIVER:function(){return s},default:function(){return c}});var r=n(73474);const i=["rke","rancherkubernetesengine"],o=["amazoneks","googlegke","azureaks"],a=["amazoneks","googlegke","azureaks"],s={amazonelasticcontainerservice:"amazoneks",azurekubernetesservice:"azureaks",aks:"azureaksv2",eks:"amazoneksv2",gke:"googlegkev2",googlekubernetesengine:"googlegke",huaweicontainercloudengine:"huaweicce",huaweiengine:"huaweicce",linodekubernetesengine:"linodelke",lke:"linodelke",lkeengine:"linodelke",okeengine:"oracleoke",oke:"oracleoke",oraclecontainerengine:"oracleoke",rke2:"rke2",tencentengine:"tencenttke",tencentkubernetesengine:"tencenttke",aliyunkubernetescontainerservice:"aliyun",baiducloudcontainerengine:"baidu",opentelekomcloudcontainerengine:"otccce"},l={googlegke:"gke",amazoneks:"eks",azureaks:"aks"};class c extends r.A{get showCreate(){return!i.includes(this.driverName)&&!!this.spec.active}get showImport(){return this.showCreate&&a.includes(this.driverName)}get emberCreatePath(){let e=this.driverName;return o.includes(e)&&!e.endsWith("v2")&&(e+="v2"),`/g/clusters/add/launch/${e}`}get emberImportPath(){const e=l[this.driverName]||this.driverName;return`/g/clusters/add/launch/import?importProvider=${e}`}get driverName(){if(!this.spec.builtIn){const e=this.status?.displayName?.toLowerCase();if(e)return s[e]||e}return s[this.id]||this.id}}},34049:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return p}});var r=n(71445),i=n(4284),o=n(93786),a=n(74958),s=n(24759),l=n(1122),c=n(67556),u=n.n(c),d=n(73474),h=n(16511);class p extends d.A{get _availableActions(){const e=super._availableActions,t={action:"downloadKeys",enabled:!!this.norman?.links?.nodeConfig,icon:"icon icon-fw icon-download",label:this.t("node.actions.downloadNodeConfig")},n={action:"scaleDown",bulkAction:"scaleDown",enabled:!!this.canScaleDown,icon:"icon icon-minus icon-fw",label:this.t("node.actions.scaleDown"),bulkable:!0};return(0,s.PT)(e,0,{divider:!0}),(0,s.PT)(e,0,t),(0,s.PT)(e,0,n),e}get kubeNodeName(){return this.metadata.labels[r.Do.NODE_NAME]}get mgmtClusterId(){return this.id.substring(0,this.id.indexOf("/"))}get kubeNodeDetailLocation(){return this.kubeNodeName?{name:"c-cluster-product-resource-id",params:{cluster:this.mgmtClusterId,product:o.o,resource:i.NW,id:this.kubeNodeName}}:null}get isWorker(){return this.spec.worker}get isControlPlane(){return this.spec.controlPlane}get isEtcd(){return this.spec.etcd}get roles(){const{isControlPlane:e,isWorker:t,isEtcd:n}=this;return(0,a.listNodeRoles)(e,t,n,this.t("generic.all"))}get pool(){const e=this.spec.nodePoolName.replace(":","/");return this.$rootGetters["management/byId"](i.Mc.NODE_POOL,e)}get norman(){const e=this.id.replace("/",":");return this.$rootGetters["rancher/byId"](i.k$.NODE,e)}get canDelete(){return this.norman?.hasLink("remove")}get canUpdate(){return this.hasLink("update")&&this.norman?.hasLink("update")}remove(){return this.norman?.remove()}downloadKeys(){const e=this.norman?.links?.nodeConfig;e&&(0,l.Is)(e)}async scaleDown(e=this){this.$dispatch("promptModal",{resources:e,component:"ScaleMachineDownDialog",modalWidth:"450px"})}get provisioningCluster(){return this.$getters["all"](i.qt.RANCHER_CLUSTER).find((e=>e.mgmtClusterId===this.mgmtClusterId))}get doneOverride(){return this.provisioningCluster?.detailLocation}get canClone(){return!1}get addresses(){return this.status?.addresses||this.status?.internalNodeStatus?.addresses||[]}get internalIp(){const e=this.addresses.find((({type:e})=>e===i.FV.INTERNAL_IP));return e?e.address:!e&&this.status.rkeNode?this.status.rkeNode.internalAddress:this.t("generic.none")}get externalIp(){const e=u()(this.addresses,(e=>"ExternalIP"===e.type))?.address;return e||(!e&&this.status.rkeNode?this.status.rkeNode.address:this.t("generic.none"))}get canScaleDown(){if(!this.isEtcd&&!this.isControlPlane)return!0;const e=this.norman?.actions?.scaledown;return e&&(0,h.notOnlyOfRole)(this,this.provisioningCluster?.nodes)}}},51995:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n(4284),i=n(98258),o=n(73474),a=n(16511);class s extends o.A{get nodeTemplate(){const e=(this.spec?.nodeTemplateName||"").replace(/:/,"/"),t=this.$getters["byId"](r.Mc.NODE_TEMPLATE,e);return t}get provider(){return this.nodeTemplate?.provider}get providerName(){return this.nodeTemplate?.nameDisplay}get providerDisplay(){return this.nodeTemplate?.providerDisplay}get providerLocation(){return this.nodeTemplate?.providerLocation}get providerSize(){return this.nodeTemplate?.providerSize}get provisioningCluster(){return this.$getters["all"](r.qt.RANCHER_CLUSTER).find((e=>e.name===this.spec.clusterName))}get doneOverride(){return{name:"c-cluster-product-resource-namespace-id",params:{resource:r.qt.RANCHER_CLUSTER,namespace:this.provisioningCluster?.namespace,id:this.spec.clusterName}}}get scale(){return this.norman.quantity}scalePool(e){this.norman.quantity+=e,this.scaleTimer&&clearTimeout(this.scaleTimer),this.scaleTimer=setTimeout((()=>{try{this.norman.save()}catch(e){this.$dispatch("growl/fromError",{title:"Error scaling pool",error:e},{root:!0})}}),1e3)}get nodes(){const e=this.id.replace("/",":");return this.$getters["all"](r.Mc.NODE).filter((t=>t.spec.nodePoolName===e))}get nodeSummary(){const e={pending:0,unavailable:0,ready:0};return this.nodes?this.nodes.reduce(((e,t)=>(t.metadata.state.error?e.unavailable++:t.metadata.state.transitioning?e.pending++:"active"!==t.state?e.unavailable++:e.ready++,e)),{...e}):e}get desired(){return this.spec?.quantity||0}get pending(){return this.nodeSummary.pending}get ready(){return this.nodeSummary.ready}get unavailable(){return this.nodeSummary.unavailable}get stateParts(){const e=[{label:"Pending",color:"bg-info",textColor:"text-info",value:this.pending,sort:1},{label:"Unavailable",color:"bg-error",textColor:"text-error",value:this.unavailable,sort:3},{label:"Ready",color:"bg-success",textColor:"text-success",value:this.ready,sort:4}].filter((e=>e.value>0));return(0,i.Ul)(e,"sort:desc")}get norman(){const e=this.id.replace("/",":");return this.$rootGetters["rancher/byId"](r.k$.NODE_POOL,e)}get canDelete(){return this.norman?.hasLink("remove")}get canUpdate(){return this.norman?.hasLink("update")}get isControlPlane(){return!0===this.spec?.controlPlane}get isEtcd(){return!0===this.spec?.etcd}canScaleDownPool(){return!this.isEtcd&&!this.isControlPlane||(0,a.notOnlyOfRole)(this,this?.provisioningCluster?.nodes)}remove(){return this.norman?.remove()}}},1223:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(62155),i=n(73474);const o=[{driver:"aliyunecs",size:{key:"instanceType"},location:{getDisplayProperty(e){return`${e.providerConfig?.region}${e.providerConfig?.zone}`}}},{driver:"amazonec2",size:{key:"instanceType"},location:{getDisplayProperty(e){return`${e.providerConfig?.region}${e.providerConfig?.zone}`}}},{driver:"azure",size:{key:"size"},location:{key:"location"}},{driver:"digitalocean",size:{key:"size"},location:{key:"region"}},{driver:"exoscale",size:{key:"instanceProfile"},location:{key:"availabilityZone"}},{driver:"linode",size:{key:"instanceType"},location:{key:"region"}},{driver:"oci",size:{key:"nodeShape"},location:{}},{driver:"packet",size:{key:"plan"},location:{key:"facilityCode"}},{driver:"pnap",size:{key:"serverType"},location:{key:"serverLocation"}},{driver:"rackspace",size:{key:"flavorId"},location:{key:"region"}},{driver:"vmwarevsphere",size:{getDisplayProperty(e){const t=(0,r.Mo)(1048576*e.providerConfig?.memorySize,1024,"iB");return`${t}, ${e.providerConfig?.cpuCount} Core`}},location:{key:null}}];class a extends i.A{get provider(){const e=Object.keys(this),t=e.filter((e=>null!==this[e])).find((e=>e.endsWith("Config")));return t?t.replace(/config$/i,""):null}get providerConfig(){return this[`${this.provider}Config`]}get providerDisplay(){const e=(this.provider||"").toLowerCase();return this.$rootGetters["i18n/withFallback"](`cluster.provider."${e}"`,null,"generic.unknown",!0)}get providerLocation(){if(this.provider){const e=o.find((e=>e.driver===this.provider));if(e?.location){if(e.location.getDisplayProperty)return e.location.getDisplayProperty(this);const t=this.providerConfig?.[e.location.key];if(t)return t}}return this.providerConfig?.region||this.t("node.list.poolDescription.noLocation")}get providerSize(){if(this.provider){const e=o.find((e=>e.driver===this.provider));if(e?.size){if(e.size.getDisplayProperty)return e.size.getDisplayProperty(this);const t=this.providerConfig?.[e.size.key];if(t)return t}}return this.providerConfig?.size||this.t("node.list.poolDescription.noSize")}}},57675:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(23348);class i extends r.A{}},81952:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var r=n(71445),i=n(4284),o=n(73474),a=n(15510),s=n.n(a),l=n(76250);function c(e,t){return t.forEach((t=>{e[t]?.limit&&!s()(e[t].limit)&&Object.keys(e[t].limit).forEach((n=>{e[t].limit[n]||delete e[t].limit[n]})),e[t]?.usedLimit&&!s()(e[t].usedLimit)&&Object.keys(e[t].usedLimit).forEach((n=>{e[t].usedLimit[n]||delete e[t].usedLimit[n]})),e[t]?.limit&&s()(e[t].limit)&&(e[t].limit=null),e[t]?.usedLimit&&s()(e[t].usedLimit)&&(e[t].usedLimit=null),e[t]&&!s()(e[t])&&Object.keys(e[t]).every((n=>null===e[t][n]))&&(e[t]=null)})),e}class u extends o.A{get isSystem(){return"true"===this.metadata?.labels?.[r.MW]}get isDefault(){return"true"===this.metadata?.labels?.[r.ol]}get namespaces(){if(!this.$rootGetters["isRancher"])return[];const e=this.$rootGetters["currentProduct"].inStore,t=this.$rootGetters[`${e}/all`](i.CU);return t.filter((e=>e.projectId===this.metadata.name))}get description(){return this.spec?.description}get doneOverride(){return this.listLocation}get listLocation(){return this.$rootGetters["currentProduct"].inStore===l.T?{name:`${l.T}-c-cluster-projectsnamespaces`}:{name:"c-cluster-product-projectsnamespaces"}}get _detailLocation(){const e=super._detailLocation;return this.$rootGetters["currentProduct"].inStore===l.T&&(e.name=`${l.T}-${e.name}`.replace("-product","")),e}get parentLocationOverride(){return this.listLocation}async save(e){const t=await this.norman,n=await t.save({replace:e});return n}async remove(){const e=await this.norman;await e.remove(...arguments),await this.$dispatch("management/findAll",{type:i.Mc.PROJECT,opt:{force:!0}},{root:!0})}get norman(){return this.id?this.normanEditProject:this.normanNewProject}get normanNewProject(){return(async()=>{const e=c(this.spec,["resourceQuota","namespaceDefaultResourceQuota"]),t=await this.$dispatch("rancher/create",{type:i.k$.PROJECT,name:this.spec.displayName,description:this.spec.description,annotations:this.metadata.annotations,labels:this.metadata.labels,clusterId:this.$rootGetters["currentCluster"].id,creatorId:this.$rootGetters["auth/principalId"],containerDefaultResourceLimit:this.spec.containerDefaultResourceLimit},{root:!0});return t.setAnnotations(this.metadata.annotations),t.setLabels(this.metadata.labels),t.setResourceQuotas(e),t})()}get normanEditProject(){return(async()=>{const e=await this.$dispatch("rancher/find",{type:i.k$.PROJECT,id:this.id.replace("/",":")},{root:!0}),t=c(this.spec,["resourceQuota","namespaceDefaultResourceQuota"]);return e.setAnnotations(this.metadata.annotations),e.setLabels(this.metadata.labels),e.setResourceQuotas(t),e.description=this.spec.description,e.name=this.spec.displayName,e.containerDefaultResourceLimit=this.spec.containerDefaultResourceLimit,e})()}get canUpdate(){return super.canUpdate||this.canUpdateProjectBindings}get canUpdateProjectBindings(){const e=this.$rootGetters["rancher/schemaFor"](i.k$.PROJECT_ROLE_TEMPLATE_BINDING);return e?.collectionMethods.includes("POST")}get canEditYaml(){return!this.schema?.resourceMethods?.find((e=>"blocked-PUT"===e))&&super.canUpdate}get confirmRemove(){return!0}}},4493:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(71445),i=n(4284),o=n(73474);class a extends o.A{get canCustomEdit(){return!1}get canYaml(){return!1}get canClone(){return!1}get user(){return this.$rootGetters["management/byId"](i.Mc.USER,this.userName)}get principal(){const e=this.principalId.replace(/\//g,"%2F");return this.$dispatch("rancher/find",{type:i.k$.PRINCIPAL,id:this.principalId,opt:{url:`/v3/principals/${e}`}},{root:!0})}get principalId(){return this.principalName||this.userPrincipalName||this.groupPrincipalName||""}get nameDisplay(){return this.user?.nameDisplay}get projectId(){return this.projectName?.replace(":","/")}get clusterId(){return this.projectName.substring(0,this.projectName.lastIndexOf(":"))}get project(){return this.$rootGetters["management/byId"](i.Mc.PROJECT,this.projectId)}get cluster(){return this.$rootGetters["management/byId"](i.Mc.CLUSTER,this.clusterId)}get projectDisplayName(){return this.project?this.project.nameDisplay:this.projectName}get clusterDisplayName(){return this.cluster?this.cluster.nameDisplay:this.clusterId}get userAvatar(){return{nameDisplay:this.nameDisplay,userName:this.user.username,avatarSrc:this.user.avatarSrc}}get projectDetailLocation(){if(this.project)return this.project.detailLocation;const e="c-cluster-product-resource-id",t={resource:i.Mc.PROJECT,id:this.projectId,product:"explorer"};return{name:e,params:t}}get clusterDetailLocation(){if(this.cluster)return this.cluster.detailLocation;const e="c-cluster-product-resource-id",t={resource:i.Mc.CLUSTER_ROLE_TEMPLATE_BINDING,id:this.clusterName,product:"explorer"};return{name:e,params:t}}get roleTemplate(){return this.$rootGetters["management/byId"](i.Mc.ROLE_TEMPLATE,this.roleTemplateName)}get roleDisplay(){return this.roleTemplate.nameDisplay}get listLocation(){return{name:"c-cluster-explorer-project-members"}}get isSystem(){return!this.metadata.annotations[r.Rw]}get norman(){return(async()=>{const e=await this.principal,t="group"===e?.principalType?"groupPrincipalId":"userPrincipalId";return this.$dispatch("rancher/create",{type:i.k$.PROJECT_ROLE_TEMPLATE_BINDING,roleTemplateId:this.roleTemplateName,[t]:e?.id,projectId:this.projectName,projectRoleTemplateId:"",id:this.id?.replace("/",":")},{root:!0})})()}async save(){const e=await this.norman;return e.save()}async remove(){const e=await this.norman;await e.remove({url:`/v3/projectRoleTemplateBindings/${e.id}`})}}},34779:function(e,t,n){"use strict";n.r(t),n.d(t,{CATTLE_API_GROUP:function(){return l},CREATE_VERBS:function(){return d},SUBTYPE_MAPPING:function(){return c},VERBS:function(){return u},default:function(){return h}});var r=n(65852),i=n(71445),o=n(4284),a=n(23348),s=n(75040);const l=".cattle.io",c={GLOBAL:{key:"GLOBAL",type:"management.cattle.io.globalrole",defaultKey:"newUserDefault",id:"GLOBAL",labelKey:"rbac.roletemplate.subtypes.GLOBAL.label"},CLUSTER:{key:"CLUSTER",type:"management.cattle.io.roletemplate",context:"cluster",defaultKey:"clusterCreatorDefault",id:"CLUSTER",labelKey:"rbac.roletemplate.subtypes.CLUSTER.label"},NAMESPACE:{key:"NAMESPACE",type:"management.cattle.io.roletemplate",context:"project",defaultKey:"projectCreatorDefault",id:"NAMESPACE",labelKey:"rbac.roletemplate.subtypes.NAMESPACE.label"},RBAC_ROLE:{key:"RBAC_ROLE",type:"rbac.authorization.k8s.io.role",id:"RBAC_ROLE",labelKey:"rbac.roletemplate.subtypes.RBAC_ROLE.label"},RBAC_CLUSTER_ROLE:{key:"RBAC_CLUSTER_ROLE",type:"rbac.authorization.k8s.io.clusterrole",id:"RBAC_CLUSTER_ROLE",labelKey:"rbac.roletemplate.subtypes.RBAC_CLUSTER_ROLE.label"}},u=["create","delete","get","list","patch","update","watch"],d=new Set(["PUT","blocked-PUT"]);class h extends a.A{get customValidationRules(){return[{path:"rules",validators:[`roleTemplateRules:${this.type}`],nullable:!1,type:"array"}]}get details(){const e=this._details;return e.unshift({label:this.t("resourceDetail.detailTop.name"),content:(0,r.Jt)(this,"name")},{label:this.t("resourceDetail.detailTop.description"),content:this.metadata?.annotations?.[i.tC]}),e}get state(){return this.locked?"locked":this.metadata?.state?.name||"unknown"}get subtype(){return this._subtype?this._subtype:this.type===c.CLUSTER.type&&this.context===c.CLUSTER.context?c.CLUSTER.key:this.type===c.NAMESPACE.type&&this.context===c.NAMESPACE.context?c.NAMESPACE.key:null}updateSubtype(e){this["_subtype"]=e,this.context=c[e].context}get default(){const e=c[this.subtype]?.defaultKey;return!!this[e]}updateDefault(e){const t=c[this.subtype].defaultKey;this[t]=e}get listLocation(){return{name:"c-cluster-auth-roles",hash:`#${this.subtype}`}}get detailLocation(){return{...this._detailLocation,name:"c-cluster-auth-roles-resource-id"}}get doneOverride(){return this.listLocation}get parentLocationOverride(){return this.listLocation}get basicNorman(){return this.id?this.$dispatch("rancher/find",{id:this.id,type:o.k$.ROLE_TEMPLATE},{root:!0}):this.$dispatch("rancher/create",{type:o.k$.ROLE_TEMPLATE,name:this.displayName},{root:!0})}get norman(){return(async()=>{const e=await this.basicNorman;return e.rules=this.rules,e.locked=this.locked,e.clusterCreatorDefault=this.clusterCreatorDefault||!1,e.projectCreatorDefault=this.projectCreatorDefault||!1,e.context=this.context,e.description=this.description,e.roleTemplateIds=this.roleTemplateNames,e})()}get canCreate(){const e=this.$getters["schemaFor"](this.type);return e?.resourceMethods.find((e=>d.has(e)))}goToClone(e={}){const t=this.detailLocation;t.query={...t.query,[s.g]:s.dT,[s.AS]:s.xz,roleContext:this.subtype,...e},this.currentRouter().push(t)}async save(){const e=await this.norman;for(const t of e.rules)t.nonResourceURLs&&t.nonResourceURLs.length?(delete t.resources,delete t.apiGroups):delete t.nonResourceURLs;return e.save()}async remove(){const e=await this.norman;await e.remove()}}},47201:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l}});var r=n(41890),i=n(73474),o=n(64314),a=n(76250),s=n(75040);class l extends i.A{get fromEnv(){return"env"===(this.source||"").toLowerCase()}get _availableActions(){const e=["cloneYaml","download","goToEditYaml","goToViewYaml","goToViewConfig"],t=r.Df[this.id];let n=super._availableActions;t?.readOnly&&e.push("goToEdit"),n=n.filter((t=>!e.includes(t.action)));const i=n.find((e=>"goToEdit"===e.action));return i&&(i.label=this.t("advancedSettings.edit.label")),n}get customValidationRules(){const e=[];return(0,o.L6)(this.metadata.name)&&e.push({path:"value",validators:["required","https","url","trailingForwardSlash"]}),e}goToEdit(e={}){this.$rootGetters["currentProduct"].inStore===a.T?(location.name=`${a.T}-c-cluster-brand`,location.params={cluster:this.$rootGetters["currentCluster"].id,product:a.T},location.query={...location.query,[s.g]:s.G5,[s.AS]:s.xz,...e},this.currentRouter().push(location)):super.goToEdit()}}},41886:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n(4284),i=n(73474),o=n(71972),a=n.n(o);class s extends i.A{constructor(e,t,n=null,r=!1){const i=e.description;super(e,t,n,r),this.description=i}cleanResource(e){const t=e.description,n=(0,i.T)(e);return n._description=t,n}get isSystem(){for(const e of this.principalIds||[])if(e.startsWith("system://"))return!0;return!1}get isCurrentUser(){const e=this.$rootGetters["auth/principalId"];return!!(this.principalIds||[]).find((t=>t===e))}get principals(){return this.principalIds.map((e=>this.$rootGetters["rancher/byId"](r.k$.PRINCIPAL,e))).filter((e=>e))}get nameDisplay(){return this.displayName||this.username||this.id}get labelForSelect(){const e=this.nameDisplay,t=this.id;return e===t?t:`${e} (${t})`}get provider(){const e=this.principalIds||[];let t,n=!1,r=!0,i="";for(const o of e){const e=o.indexOf(":"),t=o.substr(0,e).toLowerCase().split("_")[0];"system"===t?n=!0:"local"===t||(r=!1,i=i?"multiple":t)}return t=n?"system":r?"local":i,t}get providerDisplay(){return this.$rootGetters["i18n/withFallback"](`model.authConfig.provider."${this.provider}"`,null,this.provider)}get userLastLogin(){return 1e3*this.metadata?.labels?.["cattle.io/last-login"]||0}get userDisabledIn(){return 1e3*this.metadata?.labels?.["cattle.io/disable-after"]||0}get userDisabledInDisplay(){return"inactive"===this.state?null:this.userDisabledIn}get userDeletedIn(){return 1e3*this.metadata?.labels?.["cattle.io/delete-after"]||0}get state(){return!1===this.enabled?"inactive":this.metadata?.state?.name||"unknown"}get stateDisplay(){switch(this.state){case"inactive":return this.t("user.state.inactive");case"active":return this.t("user.state.active");case"unknown":return this.t("user.state.unknown");default:return this.state}}get description(){return this._description}set description(e){this._description=e}toJSON(){const e=super.toJSON();return e.description=this._description,delete e._description,e}async save(e){const t=await this.$dispatch("clone",{resource:this});return delete t.canRefreshAccess,t._save(e)}async setEnabled(e){const t=await this.$dispatch("rancher/clone",{resource:this.norman},{root:!0});t.enabled=e,await t.save()}async activate(){await this.setEnabled(!0)}async activateBulk(e){await Promise.all(e.map((e=>e.setEnabled(!0))))}async deactivate(){await this.setEnabled(!1)}async deactivateBulk(e){await Promise.all(e.map((e=>e.setEnabled(!1))))}async refreshGroupMembership(){const e=await this.$dispatch("rancher/find",{type:r.k$.USER,id:this.id},{root:!0});await e.doAction("refreshauthprovideraccess")}canActivate(e){const t=e?"inactive"===this.state:"active"===this.state,n=this.hasLink("update");return t&&n&&!this.isCurrentUser}get _availableActions(){return[{action:"activate",label:this.t("action.enable"),icon:"icon icon-play",bulkable:!0,bulkAction:"activateBulk",enabled:this.canActivate(!0),weight:2},{action:"deactivate",label:this.t("action.disable"),icon:"icon icon-pause",bulkable:!0,bulkAction:"deactivateBulk",enabled:this.canActivate(!1),weight:1},{action:"refreshGroupMembership",label:this.t("authGroups.actions.refresh"),icon:"icon icon-refresh",enabled:this.canRefreshAccess},{divider:!0},...super._availableActions]}get details(){return[{label:this.t("user.detail.username"),formatter:"CopyToClipboard",content:this.username},{separator:!0},{label:this.t("tableHeaders.userLastLogin"),formatter:"LiveDate",formatterOpts:{addSuffix:!0,suffix:`${this.t("suffix.ago")} (${a()(this.userLastLogin)})`},content:this.userLastLogin},{label:this.t("tableHeaders.userDisabledIn"),formatter:"LiveDate",formatterOpts:{isCountdown:!0},content:this.userDisabledInDisplay},{label:this.t("tableHeaders.userDeletedIn"),formatter:"LiveDate",formatterOpts:{isCountdown:!0},content:this.userDeletedIn},...this._details]}get confirmRemove(){return!0}get norman(){return this.$rootGetters["rancher/byId"](r.k$.USER,this.id)}get canDelete(){return this.norman?.hasLink("remove")&&!this.isCurrentUser}get canUpdate(){return this.norman?.hasLink("update")}remove(){return this.norman?.remove()}}},84874:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(9950);class i extends r["default"]{}},42749:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(4284),i=n(62155),o=n(38991);class a extends o.A{get cpuUsage(){return(0,i.ao)(this?.usage?.cpu||"0")}get cpuCapacity(){return(0,i.ao)(this.$rootGetters[`${this.inStore}/byId`](r.NW,this.id)?.status?.allocatable?.cpu||"0")}get cpuUsagePercentage(){return(1e4*this.cpuUsage/this.cpuCapacity).toString()}get memoryUsage(){return(0,i.ao)(this?.usage?.memory||"0")}get memoryCapacity(){return(0,i.ao)(this.$rootGetters[`${this.inStore}/byId`](r.NW,this.id)?.status?.capacity?.memory||"0")}get memoryUsagePercentage(){return(1e4*this.ramUsage/this.ramCapacity).toString()}get storageUsage(){return(0,i.ao)(this.$rootGetters[`${this.inStore}/byId`](r.NW,this.id)?.status?.capacity?.["ephemeral-storage"])-(0,i.ao)(this.$rootGetters[`${this.inStore}/byId`](r.NW,this.id)?.status?.allocatable?.["ephemeral-storage"])}get storageTotal(){return(0,i.ao)(this.$rootGetters[`${this.inStore}/byId`](r.NW,this.id)?.status?.capacity?.["ephemeral-storage"])}get inStore(){return this.$rootGetters["currentProduct"].inStore}}},77414:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n(38991),i=n(4284),o=n(75040),a=n(65852);class s extends r.A{applyDefaults(){if(this.spec)return this.spec;const e=this.spec?.route?.receivers||[],t={receivers:[...e],route:{receivers:this.spec?.route?.receivers||[],groupBy:this.spec?.route?.groupBy||[],groupWait:this.spec?.route?.groupWait||"30s",groupInterval:this.spec?.route?.groupInterval||"5m",repeatInterval:this.spec?.route?.repeatInterval||"4h",match:this.spec?.route?.match||{},matchRe:this.spec?.route?.matchRe||{}}};(0,a.hZ)(this,"spec",t)}get _availableActions(){const e=super._availableActions;return e}getReceiverActions(e){return e.filter((e=>{if(e.divider)return!0;switch(e.action){case"goToEdit":return!0;case"goToEditYaml":return!0;case"promptRemove":return!0;default:return!1}}))}get alertmanagerConfigDoneRouteName(){return"c-cluster-product-resource-namespace-id"}get _detailLocation(){return{name:this.alertmanagerConfigDoneRouteName,params:{cluster:this.$rootGetters["clusterId"],product:"monitoring",resource:i.Rp.ALERTMANAGERCONFIG,namespace:this.metadata?.namespace,id:this.name},hash:"#receivers",query:{as:"config"}}}getCreateReceiverRoute(){return{name:"c-cluster-monitoring-alertmanagerconfig-alertmanagerconfigid-receiver",params:{cluster:this.$rootGetters["clusterId"],alertmanagerconfigid:this.id},query:{mode:o.YQ,currentView:o.au}}}getReceiverDetailLink(e){return{name:"c-cluster-monitoring-alertmanagerconfig-alertmanagerconfigid-receiver",params:{cluster:this.$rootGetters["clusterId"],alertmanagerconfigid:this.id,receiverName:e},query:{mode:o.nW,receiverName:e,currentView:o.au}}}getEditReceiverYamlRoute(e,t){return{name:"c-cluster-monitoring-alertmanagerconfig-alertmanagerconfigid-receiver",params:{cluster:this.$rootGetters["clusterId"],alertmanagerconfigid:this.id},query:{mode:t||o.nW,receiverName:e,currentView:o.zD}}}getEditReceiverConfigRoute(e,t){return{name:"c-cluster-monitoring-alertmanagerconfig-alertmanagerconfigid-receiver",params:{cluster:this.$rootGetters["clusterId"],alertmanagerconfigid:this.id},query:{mode:t||o.nW,receiverName:e,currentView:o.au}}}}},38930:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(38991);class i extends r.A{get _detailLocation(){const e=this.id?.replace(/.*\//,"");return{name:"c-cluster-monitoring-monitor-namespace-id",params:{cluster:this.$rootGetters["clusterId"],id:e,namespace:this.metadata.namespace},query:{resource:this.type}}}get doneOverride(){return{name:"c-cluster-monitoring-monitor",params:{cluster:this.$rootGetters["clusterId"]},query:{resource:this.type}}}}},15191:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(38991);class i extends r.A{get _availableActions(){const e=super._availableActions.filter((e=>!this.metadata.name.includes(".")||!["goToEdit","goToEditYaml","goToClone"].includes(e.action)));return e}get customValidationRules(){return[{nullable:!1,path:"metadata.name",required:!0,translationKey:"generic.name",type:"dnsLabel"},{nullable:!1,path:"spec",required:!0,type:"array",validators:["ruleGroups"]},{nullable:!1,path:"spec.groups",required:!0,type:"array",validators:["groupsAreValid"]}]}}},50828:function(e,t,n){"use strict";n.r(t),n.d(t,{RECEIVERS_TYPES:function(){return c},default:function(){return u}});var r=n(75889),i=n(65852),o=n(4284),a=n(20246),s=n.n(a),l=n(38991);const c=[{name:"slack",label:"monitoringReceiver.slack.label",title:"monitoringReceiver.slack.title",info:"monitoringReceiver.slack.info",key:"slack_configs",logo:n(78978)},{name:"email",label:"monitoringReceiver.email.label",title:"monitoringReceiver.email.title",key:"email_configs",logo:n(88150)},{name:"pagerduty",label:"monitoringReceiver.pagerduty.label",title:"monitoringReceiver.pagerduty.title",info:"monitoringReceiver.pagerduty.info",key:"pagerduty_configs",logo:n(84779)},{name:"opsgenie",label:"monitoringReceiver.opsgenie.label",title:"monitoringReceiver.opsgenie.title",key:"opsgenie_configs",logo:n(88150)},{name:"webhook",label:"monitoringReceiver.webhook.label",title:"monitoringReceiver.webhook.title",key:"webhook_configs",logo:n(38997),banner:"webhook.banner",addButton:"webhook.add"},{name:"custom",label:"monitoringReceiver.custom.label",title:"monitoringReceiver.custom.title",info:"monitoringReceiver.custom.info",key:"webhook_configs",logo:n(73311)}];class u extends l.A{get removeSerially(){return!0}remove(){return this.updateReceivers((e=>e.filter((e=>e.name!==this.spec?.name))))}async save(){const e=this.validationErrors(this);return(0,i.Im)(e)?(await this.updateReceivers((e=>{const t=e.find((e=>e.name===this.spec?.name));return t?Object.assign(t,this.spec):e.push(this.spec),e})),{}):Promise.reject(e)}get canUpdate(){return this.secret.canUpdate}get canCustomEdit(){return!0}get canCreate(){return(0,r.BA)(this.$rootGetters)}get canDelete(){return"null"!==this.id&&"null"!==!this.spec.name&&this.secret.canDelete}get canViewInApi(){return!1}get canYaml(){return!0}get _detailLocation(){return{name:"c-cluster-monitoring-route-receiver-id",params:{cluster:this.$rootGetters["clusterId"],id:this.id},query:{resource:this.type}}}get doneOverride(){return{name:"c-cluster-monitoring-route-receiver",params:{cluster:this.$rootGetters["clusterId"]},query:{resource:this.type}}}get receiverTypes(){const e=c.filter((e=>"custom"!==e.name&&this.spec[e.key]?.length>0)).map((e=>this.t(e.label))),t=c.map((e=>e.key)).filter((e=>"custom"!==e));t.push("name");const n=Object.keys(this.spec).filter((e=>!t.includes(e)));if(n.length>0){const t=this.t(c.find((e=>"custom"===e.name)).label);e.push(t)}return e}get updateReceivers(){return e=>(0,r._R)(this.$dispatch,"receivers",this.type,e)}saveYaml(e){const t=s().load(e);return Object.assign(this,t),this.save()}get customValidationRules(){const e=[{nullable:!1,path:"spec.name",required:!0,translationKey:"monitoring.receiver.fields.name"}];return e}get routes(){if(!this.$rootGetters["cluster/haveAll"](o.Rp.SPOOFED.ROUTE))throw new Error("The routes have not been loaded");return this.$rootGetters["cluster/all"](o.Rp.SPOOFED.ROUTE)}get hasDependentRoutes(){return!!this.routes.find((e=>e.spec.receiver===this.id))}get preventDeletionMessage(){return this.hasDependentRoutes?"There are still routes using this receiver. You cannot delete this receiver while it's in use.":null}}},53629:function(e,t,n){"use strict";n.r(t),n.d(t,{ROOT_NAME:function(){return u},default:function(){return d}});var r=n(65852),i=n(75889),o=n(4284);n(90626),n(37386);const a="monitoring";var s=n(20246),l=n.n(s),c=n(38991);const u="root";class d extends c.A{applyDefaults(){const e=this.spec||{};e.group_by=e.group_by||[],e.group_wait=e.group_wait||"30s",e.group_interval=e.group_interval||"5m",e.repeat_interval=e.repeat_interval||"4h",e.match=e.match||{},e.match_re=e.match||{},(0,r.hZ)(this,"spec",e)}get removeSerially(){return!0}remove(){return this.updateRoutes((e=>e.filter(((e,t)=>(0,i.Eb)(t)!==this.id))))}async save(){const e=this.validationErrors(this);return(0,r.Im)(e)?(await this.updateRoutes((e=>{const t=e.find(((e,t)=>(0,i.Eb)(t)===this.id));return t?Object.assign(t,this.spec):e.push(this.spec),e})),{}):Promise.reject(e)}get canUpdate(){return this.secret.canUpdate}get canCustomEdit(){return!0}get canCreate(){return(0,i.BA)(this.$rootGetters)&&(0,i.gb)(this.secret)}get canDelete(){return!this.isRoot&&this.secret.canDelete}get canViewInApi(){return!1}get canYaml(){return(0,i.gb)(this.secret)}get _detailLocation(){return{name:"c-cluster-monitoring-route-receiver-id",params:{cluster:this.$rootGetters["clusterId"],id:this.id},query:{resource:this.type}}}get doneOverride(){return{name:"c-cluster-monitoring-route-receiver",params:{cluster:this.$rootGetters["clusterId"]},query:{resource:this.type}}}get customValidationRules(){const e=[{nullable:!1,path:"spec.receiver",required:!0,translationKey:"monitoring.route.fields.receiver"},{path:"spec.group_wait",validators:["interval"],translationKey:"monitoring.route.fields.groupWait"},{path:"spec.group_interval",validators:["interval"],translationKey:"monitoring.route.fields.groupInterval"},{path:"spec.repeat_interval",validators:["interval"],translationKey:"monitoring.route.fields.repeatInterval"}];return this.isRoot||e.push({path:"spec",validators:["matching"]}),e}updateRoutes(e){return(0,i._R)(this.$dispatch,"route.routes",this.type,e)}get isRoot(){return this.id===u}saveYaml(e){const t=l().load(e);return Object.assign(this,t),this.save()}get receiverLink(){return{text:this.spec.receiver,to:{name:"c-cluster-product-resource-id",params:{resource:o.Rp.SPOOFED.RECEIVER,product:a,id:this.spec.receiver}}}}}},73694:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(38991);class i extends r.A{get _detailLocation(){const e=this.id?.replace(/.*\//,"");return{name:"c-cluster-monitoring-monitor-namespace-id",params:{cluster:this.$rootGetters["clusterId"],id:e,namespace:this.metadata.namespace},query:{resource:this.type}}}get doneOverride(){return{name:"c-cluster-monitoring-monitor",params:{cluster:this.$rootGetters["clusterId"]},query:{resource:this.type}}}}},83929:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return S}});var r=n(45901),i=n(71445),o=n(4284),a=n(65852),s=n(78359),l=n(24759),c=n(38991),u=n(76250),d=n(92806);const h="pod-security.kubernetes.io/",p=["enforce","audit","warn"],f=["privileged","baseline","restricted"],m=(f[0],p.reduce(((e,t)=>[...e,`${h}${t}`]),[])),g=p.reduce(((e,t)=>[...e,`${h}${t}-version`]),[]),v=[...m,...g],y=Object.assign({},...v.map((e=>({[e]:"icon-pod_security"})))),b=e=>{var t;return(0,d.filter)((0,d.keys)(null===(t=null===e||void 0===e?void 0:e.metadata)||void 0===t?void 0:t.labels),(e=>v.includes(e)))},_=e=>b(e).length>0,w=e=>{var t;return(0,d.reduce)(null===(t=null===e||void 0===e?void 0:e.metadata)||void 0===t?void 0:t.labels,((t,n,r)=>{var i;const o=v.includes(r),a="-version",l=r.includes(a),c=null===(i=null===e||void 0===e?void 0:e.metadata)||void 0===i?void 0:i.labels[`${r}${a}`],u=c||"latest";return o&&!l?{...t,[r]:`${(0,s._R)(r.replace(h,""))} ${(0,s._R)(n)} (${u})`}:t}),{})},E=["c-","p-","user-","local"];class S extends c.A{applyDefaults(){(0,a.hZ)(this,"disableOpenApiValidation",!1)}get _availableActions(){const e=super._availableActions;return(0,l.PT)(e,0,{divider:!0}),this.istioInstalled&&((0,l.PT)(e,0,{action:"enableAutoInjection",label:this.t("namespace.enableAutoInjection"),bulkable:!0,bulkAction:"enableAutoInjection",enabled:!this.injectionEnabled,icon:"icon icon-plus",weight:2}),(0,l.PT)(e,0,{action:"disableAutoInjection",label:this.t("namespace.disableAutoInjection"),bulkable:!0,bulkAction:"disableAutoInjection",enabled:this.injectionEnabled,icon:"icon icon-minus",weight:1})),this.$rootGetters["isRancher"]&&!this.$rootGetters["isSingleProduct"]&&(0,l.PT)(e,0,{action:"move",label:this.t("namespace.move"),bulkable:!0,bulkAction:"move",enabled:!0,icon:"icon icon-fork",weight:3}),e}move(e=this){this.$dispatch("promptMove",e)}get isSystem(){return"true"===this.metadata?.annotations?.[i.eG]||(!!r.A.includes(this.metadata.name)||(!(!this.metadata.name.startsWith("cattle-")||!this.metadata.name.endsWith("-system"))||!!this.project&&this.project.isSystem))}get isFleetManaged(){return"true"===(0,a.Jt)(this,`metadata.labels."${i.Hs.MANAGED}"`)}get isObscure(){return E.some((e=>this.metadata.name.startsWith(e)))&&this.isSystem}get projectId(){const e=this.metadata?.annotations?.[i.yl]||"";return e.split(":")[1]||null}get project(){if(!this.projectId||!this.$rootGetters["isRancher"])return null;const e=this.$rootGetters["currentCluster"]?.id,t=this.$rootGetters["management/byId"](o.Mc.PROJECT,`${e}/${this.projectId}`);return t}get groupByLabel(){const e=this.project?.nameDisplay;return e?this.$rootGetters["i18n/t"]("resourceTable.groupLabel.project",{name:(0,s.ZD)(e)}):this.$rootGetters["i18n/t"]("resourceTable.groupLabel.notInAProject")}get projectNameSort(){return this.project?.nameSort||""}get istioInstalled(){const e=this.$rootGetters["cluster/schemaFor"](o.B9.GATEWAY);return!!e}get injectionEnabled(){return"enabled"===this.labels[i.B9.AUTO_INJECTION]}enableAutoInjection(e=this,t=!0){(0,l.cy)(e)||(e=[e]),e.forEach((e=>{!t&&e?.metadata?.labels?delete e.metadata.labels[i.B9.AUTO_INJECTION]:(e.metadata.labels||(e.metadata.labels={}),e.metadata.labels[i.B9.AUTO_INJECTION]="enabled"),e.save()}))}disableAutoInjection(e=this){this.enableAutoInjection(e,!1)}get confirmRemove(){return!0}get listLocation(){const e={name:this.$rootGetters["isRancher"]?"c-cluster-product-projectsnamespaces":"c-cluster-product-resource"};return this.$rootGetters["currentProduct"].inStore===u.T&&(e.name=`${u.T}-${e.name}`.replace("-product",""),e.params={resource:"namespace"}),e}get _detailLocation(){const e=super._detailLocation;return e}get parentLocationOverride(){return this.listLocation}get doneOverride(){return this.listLocation}get resourceQuota(){return JSON.parse(this.metadata.annotations[i._n]||'{"limit":{}}')}set resourceQuota(e){this.metadata.annotations[i._n]=JSON.stringify(e)}get detailTopTooltips(){return this.psaTooltipsDescription}get detailTopIcons(){return y}get hasSystemLabels(){return _(this)}get filteredSystemLabels(){return Object.entries(this.labels).reduce(((e,[t,n])=>(g.includes(t)||(e[t]=n),e)),{})}get systemLabels(){return b(this)}get psaTooltipsDescription(){return w(this)}cleanForNew(){const e=this.metadata?.labels?.[i.yl];super.cleanForNew(),e&&(this.metadata=this.metadata||{},this.metadata.labels=this.metadata.labels||{},this.metadata.labels[i.yl]=e)}get hideDetailLocation(){return!!this.$rootGetters["currentProduct"].hideNamespaceLocation}}},24215:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(38991);class i extends r.A{applyDefaults(){this["spec"]={host:"",subsets:[],trafficPolicy:{loadBalancer:{simple:"ROUND_ROBIN"},connectionPool:{tcp:{},http:{}},outlierDetection:{},tls:{}}}}}},52442:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return p},ingressFullPath:function(){return h}});var r=n(4284),i=n(91990),o=n.n(i),a=n(65852),s=n(15510),l=n.n(s),c=n(38991);function u(e){const t=e.tls||[];return t.flatMap((e=>e.hosts||[]))}function d(e,t){return u(e).includes(t)}function h(e,t,n={}){const r=e.spec,i=t.host||"",o=n.path||"";let a="";return i&&(a=d(r,i)?"https://":"http://"),`${a}${i}${o}`}class p extends c.A{get tlsHosts(){return u(this.spec)}get isTlsHost(){return e=>d(this.spec,e)}targetTo(e,t){if(!t)return null;const n=t.startsWith("ingress-"),i=`${this.namespace}/${t}`;if(n){const t=e.find((e=>e.id===i));return t?.detailLocation||""}return{name:"c-cluster-product-resource-namespace-id",params:{resource:r.YV,id:t,namespace:this.namespace}}}createRulesForListPage(e,t){const n=this.spec.rules||[];return n.flatMap((n=>{const r=n?.http?.paths||[];return r.map((r=>this.createPathForListPage(e,n,r,t)))}))}createPathForListPage(e,t,n,r){const i=(0,a.Jt)(n?.backend,this.serviceNamePath),s=this.fullPath(t,n);return{isUrl:o()(s)&&!s.includes("*"),pathType:n.pathType,fullPath:s,serviceName:i,serviceTargetTo:this.targetTo(e,i),certs:this.certLinks(t,r),targetLink:this.targetLink(e,i),port:(0,a.Jt)(n?.backend,this.servicePortPath)}}fullPath(e,t){return h(this,e,t)}certLink(e,t=[]){const n=e.secretName||this.t("ingress.rulesAndCertificates.defaultCertificate");let i;return e.secretName&&t.includes(n)&&(i={name:"c-cluster-product-resource-namespace-id",params:{resource:r.bB,id:n}}),{to:i,text:n,options:{internal:!0}}}certLinks(e,t){const n=this.spec.tls||[],r=n.filter((t=>{const n=t.hosts||[];return n.includes(e.host)}));return r.map((e=>this.certLink(e,t)))}targetLink(e,t){return{to:this.targetTo(e,t),text:t,options:{internal:!0}}}createDefaultService(e){const t=(0,a.Jt)(this.spec,this.defaultBackendPath),n=(0,a.Jt)(t,this.serviceNamePath);return n?{name:n,targetTo:this.targetTo(e,n)}:null}get cache(){return this.cacheObject||(this.cacheObject={}),this.cacheObject}get showPathType(){return this.cache.showPathType||(this.cache.showPathType=this.$rootGetters["cluster/pathExistsInSchema"](this.type,"spec.rules.http.paths.pathType")),this.cache.showPathType}get useNestedBackendField(){return this.cache.useNestedBackendField||(this.cache.useNestedBackendField=this.$rootGetters["cluster/pathExistsInSchema"](this.type,"spec.rules.http.paths.backend.service.name")),this.cache.useNestedBackendField}get serviceNamePath(){const e="service.name",t="serviceName";return this.useNestedBackendField?e:t}get servicePortPath(){const e="service.port.number",t="servicePort";return this.useNestedBackendField?e:t}get defaultBackendPath(){const e=this.$rootGetters["cluster/pathExistsInSchema"](this.type,"spec.defaultBackend");return e?"defaultBackend":"backend"}get hasDefaultBackend(){return!l()(this.spec[this.defaultBackendPath])}get details(){const e=this._details;return this.spec?.ingressClassName&&e.push({label:this.t("ingress.ingressClass.label"),content:this.spec.ingressClassName}),e}}},84651:function(e,t,n){"use strict";n.r(t),n.d(t,{CLOUD_CREDENTIAL_OVERRIDE:function(){return i},default:function(){return o}});var r=n(23455);const i={nutanix:!0};class o extends r["default"]{get doneRoute(){return"c-cluster-manager-driver-nodedriver"}get _availableActions(){const e=[{action:"activate",label:this.t("action.activate"),icon:"icon icon-play",bulkable:!0,bulkAction:"activateBulk",enabled:!!this.actions?.activate&&"inactive"===this.state},{action:"deactivate",label:this.t("action.deactivate"),icon:"icon icon-pause",bulkable:!0,bulkAction:"deactivateBulk",enabled:!!this.actions?.deactivate&&"active"===this.state,weight:-1},{divider:!0},{action:"viewInApi",enabled:!0,icon:"icon icon-external-link",label:this.t("action.viewInApi")},{divider:!0},{action:"goToEdit",label:this.t("action.edit"),icon:"icon icon-edit",bulkable:!1,enabled:!!this.links.update&&!this.builtin},{action:"promptRemove",altAction:"remove",bulkAction:"promptRemove",label:this.t("action.remove"),bulkable:!0,icon:"icon icon-delete",enabled:!!this.links.update&&!this.active,weight:-10}];return e}deactivate(e=[this]){this.$dispatch("promptModal",{componentProps:{drivers:e,driverType:"nodeDrivers"},component:"DeactivateDriverDialog"})}deactivateBulk(e){this.$dispatch("promptModal",{componentProps:{drivers:e,driverType:"nodeDrivers"},component:"DeactivateDriverDialog"})}activate(){return this.$dispatch("rancher/request",{url:`v3/nodeDrivers/${escape(this.id)}?action=activate`,method:"post"},{root:!0})}async activateBulk(e){await Promise.all(e.map((e=>this.$dispatch("rancher/request",{url:`v3/nodeDrivers/${escape(e.id)}?action=activate`,method:"post"},{root:!0}))))}}},11075:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(4284);const i=[{labelKey:"persistentVolume.awsElasticBlockStore.label",value:"awsElasticBlockStore",supported:!0},{labelKey:"persistentVolume.azureDisk.label",value:"azureDisk",supported:!0},{labelKey:"persistentVolume.azureFile.label",value:"azureFile",supported:!0},{labelKey:"persistentVolume.cephfs.label",value:"cephfs"},{labelKey:"persistentVolume.rbd.label",value:"rbd"},{labelKey:"persistentVolume.csi.label",value:"csi",supported:!0},{labelKey:"persistentVolume.fc.label",value:"fc"},{labelKey:"persistentVolume.flexVolume.label",value:"flexVolume"},{labelKey:"persistentVolume.flocker.label",value:"flocker"},{labelKey:"persistentVolume.glusterfs.label",value:"glusterfs"},{labelKey:"persistentVolume.gcePersistentDisk.label",value:"gcePersistentDisk",supported:!0},{labelKey:"persistentVolume.hostPath.label",value:"hostPath",supported:!0},{labelKey:"persistentVolume.iscsi.label",value:"iscsi"},{labelKey:"persistentVolume.local.label",value:"local",supported:!0},{labelKey:"persistentVolume.longhorn.label",value:"longhorn",supported:!0},{labelKey:"persistentVolume.nfs.label",value:"nfs",supported:!0},{labelKey:"persistentVolume.cinder.label",value:"cinder"},{labelKey:"persistentVolume.photonPersistentDisk.label",value:"photonPersistentDisk"},{labelKey:"persistentVolume.portworxVolume.label",value:"portworxVolume"},{labelKey:"persistentVolume.quobyte.label",value:"quobyte"},{labelKey:"persistentVolume.scaleIO.label",value:"scaleIO"},{labelKey:"persistentVolume.storageos.label",value:"storageos"},{labelKey:"persistentVolume.vsphereVolume.label",value:"vsphereVolume",supported:!0}];i.find((e=>"longhorn"===e.value));var o=n(38991);class a extends o.A{get source(){const e=this.spec?.csi?.driver,t=`${e} ${this.t("persistentVolume.csi.suffix")}`;if(e)return this.$rootGetters["i18n/withFallback"](`persistentVolume.csi.drivers.${e.replaceAll(".","-")}`,null,t);const n=i.find((e=>this.spec[e.value]));return n?this.t(n.labelKey):this.t("generic.unknown")}get isLonghorn(){return this.spec.csi&&this.spec.csi.driver===r.lI}get claim(){if(!this.name)return null;const e=this.$rootGetters["cluster/all"](r.YH);return e.find((e=>e.spec.volumeName===this.name))}get claimName(){return this.claim?.nameDisplay||this.t("generic.na")}get canDelete(){return"bound"!==this.state}}},39591:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l}});var r=n(24759),i=n(75040),o=n(38991),a=n(79260),s=n(4284);class l extends o.A{applyDefaults(e,t){const n=t===i.dT?this.spec.accessModes:[],r=t===i.dT?this.spec.resources.requests.storage:null;this["spec"]={accessModes:n,storageClassName:"",volumeName:"",resources:{requests:{storage:r}}}}get bound(){return this.state===a.jv.BOUND}get expandable(){return!!this.$getters["byId"](s.fJ,this.spec?.storageClassName)?.allowVolumeExpansion}get _availableActions(){const e=super._availableActions;return(0,r.PT)(e,0,{divider:!0}),(0,r.PT)(e,0,{action:"goToEditVolumeSize",enabled:this.expandable&&this.bound,icon:"icon icon-fw icon-plus",label:this.t("persistentVolumeClaim.expand.label")}),e}goToEditVolumeSize(){const e=this.detailLocation;e.query={...e.query,[i.g]:i.G5,[i.AS]:i.xz,[i.L_]:"volumeclaim"},this.currentRouter().push(e)}}},41962:function(e,t,n){"use strict";n.r(t),n.d(t,{WORKLOAD_PRIORITY:function(){return h},default:function(){return p}});var r=n(24759),i=n(79260),o=n(4284),a=n(78359),s=n(56461),l=n(65852);function c(e,t,n){return(t=u(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e){var t=d(e,"string");return"symbol"==typeof t?t:t+""}function d(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}const h={[o.oU.DEPLOYMENT]:1,[o.oU.CRON_JOB]:2,[o.oU.DAEMON_SET]:3,[o.oU.STATEFUL_SET]:4,[o.oU.JOB]:5,[o.oU.REPLICA_SET]:6,[o.oU.REPLICATION_CONTROLLER]:7};class p extends s["default"]{constructor(...e){super(...e),c(this,"_os",void 0)}get inStore(){return this.$rootGetters["currentProduct"].inStore}set os(e){this._os=e}get os(){return this._os?this._os:this?.node?.status?.nodeInfo?.operatingSystem}get node(){try{const e=this.$store.getters["cluster/schemaFor"](o.NW);e&&this.$dispatch("find",{type:o.NW,id:this.spec.nodeName})}catch{}return this.$getters["byId"](o.NW,this.spec.nodeName)}get _availableActions(){const e=super._availableActions;return(0,r.PT)(e,0,{divider:!0}),(0,r.PT)(e,0,this.openLogsMenuItem),(0,r.PT)(e,0,this.openShellMenuItem),e}get openShellMenuItem(){return{action:"openShell",enabled:!!this.links.view&&this.isRunning,icon:"icon icon-fw icon-chevron-right",label:"Execute Shell",total:1}}get openLogsMenuItem(){return{action:"openLogs",enabled:!!this.links.view,icon:"icon icon-fw icon-chevron-right",label:"View Logs",total:1}}get containerActions(){const e=[];return(0,r.PT)(e,0,this.openLogsMenuItem),(0,r.PT)(e,0,this.openShellMenuItem),e}get defaultContainerName(){const e=this.spec.containers,t=e.filter((e=>"istio-proxy"!==e.name));return t.length?t[0].name:e[0]?.name}openShell(e=this.defaultContainerName){this.$dispatch("wm/open",{id:`${this.id}-shell`,label:this.nameDisplay,icon:"terminal",component:"ContainerShell",attrs:{pod:this,initialContainer:e}},{root:!0})}openLogs(e=this.defaultContainerName){this.$dispatch("wm/open",{id:`${this.id}-logs`,label:this.nameDisplay,icon:"file",component:"ContainerLogs",attrs:{pod:this,initialContainer:e}},{root:!0})}containerStateDisplay(e){const t=Object.keys(e.state||{})[0];return(0,i.ch)(t)}containerStateColor(e){const t=Object.keys(e.state||{})[0];return(0,i.uU)(t)}containerIsInit(e){const{initContainers:t=[]}=this.spec;return t.includes(e)}get imageNames(){return this.spec.containers.map((e=>(0,a.qO)(e.image)))}get workloadRef(){const e=this.getOwners()||[],t=e.filter((e=>Object.values(o.oU).includes(e.type))).sort(((e,t)=>{const n=h[e.type],r=h[t.type];return n-r}));return t[0]}get ownedByWorkload(){return!!this.workloadRef}get details(){const e=[{label:this.t("workload.detailTop.podIP"),content:this.status.podIP}];return this.workloadRef&&e.push({label:"Workload",formatter:"LinkName",formatterOpts:{value:this.workloadRef.name,type:this.workloadRef.type,namespace:this.workloadRef.namespace},content:this.workloadRef.name}),this.spec.nodeName&&e.push({label:"Node",formatter:"LinkName",formatterOpts:{type:o.NW,value:this.spec.nodeName},content:this.spec.nodeName}),e}get isRunning(){return"Running"===this.status.phase}get groupByNode(){const e=this.spec?.nodeName||this.$rootGetters["i18n/t"]("generic.none");return this.$rootGetters["i18n/t"]("resourceTable.groupLabel.node",{name:(0,a.ZD)(e)})}get restartCount(){return this.status.containerStatuses&&this.status?.containerStatuses[0].restartCount||0}processSaveResponse(e){if(e._headers&&e._headers.warning){const t=e._headers.warning.split("299")||[],n=t.filter((e=>e.includes("violate PodSecurity"))).length;n&&this.$dispatch("growl/warning",{title:this.$rootGetters["i18n/t"]("growl.podSecurity.title"),message:this.$rootGetters["i18n/t"]("growl.podSecurity.message"),timeout:5e3},{root:!0})}}save(){const e={...this},{metadata:t,spec:n}=this.spec.template;return this.spec={...this.spec,...n},this.metadata={...this.metadata,...t},delete this.spec.template,this._save(...arguments).catch((t=>(this.spec=e.spec,this.metadata=e.metadata,Promise.reject(t))))}cleanForSave(e){const t=super.cleanForSave(e);return t.spec?.containers?.forEach((e=>{this.cleanContainerForSave(e)})),t.spec?.initContainers?.forEach((e=>{this.cleanContainerForSave(e)})),(0,l.BJ)(t,"spec.selector"),t}}},93543:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return c}});var r=n(67181),i=n.n(r),o=n(76198),a=n(23967),s=n(78359),l=n(79325);class c extends l.A{get avatarSrc(){if("github"===this.provider)return(0,a.R_)(this.profilePicture,"s",80);{let e=this.id||"Unknown";e=e.replace(/[^:]+:\/\//,"");const t=(0,o.Fx)(e,"hex"),n=`data:image/png;base64,${new(i())(t,80,.01).toString()}`;return n}}get roundAvatar(){return"github"===this.provider}get providerSpecificType(){const e=this.id.replace(/:.*$/,"").split("_",2);return 2===e.length?e[1]:null}get displayType(){const e=this.$rootGetters["i18n/withFallback"](`model.authConfig.provider."${this.provider}"`,null,this.provider);return`${e} ${(0,s.TF)(this.providerSpecificType)}`}}},72833:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(4284),i=n(79325);class o extends i.A{get principalId(){return this.userPrincipalId||this.groupPrincipalId}get roleDisplay(){return this.roleTemplate?.nameDisplay}get roleDescription(){return this.roleTemplate?.description}get roleTemplate(){return this.$rootGetters["management/byId"](r.Mc.ROLE_TEMPLATE,this.roleTemplateId)}get steve(){return this.$dispatch("management/find",{type:r.Mc.PROJECT_ROLE_TEMPLATE_BINDING,id:this.id?.replace(":","/")},{root:!0})}get syncPrincipal(){return this.$rootGetters["rancher/byId"](r.k$.PRINCIPAL,this.principalId)}get nameDisplay(){return this.syncPrincipal?.nameDisplay||super.nameDisplay}}},16257:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return f}});var r=n(4284),i=n(38991),o=n(24759),a=n(65852),s=n(98258),l=n(78359),c=n(45044),u=n(75040),d=n(76250),h=n(71445),p=n(9776);class f extends i.A{get details(){const e=[{label:this.t("cluster.detail.provisioner"),content:this.provisionerDisplay||this.t("generic.none")},{label:this.t("cluster.detail.machineProvider"),content:this.machineProvider?this.machineProviderDisplay:null},{label:this.t("cluster.detail.kubernetesVersion"),content:this.kubernetesVersion},{label:this.t("cluster.detail.machinePools"),content:this.pools.length},{label:this.t("cluster.detail.machines"),content:this.desired}].filter((e=>!!e.content)),t=this.rkeTemplate;return t&&e.push({label:this.t("cluster.detail.rkeTemplate"),formatter:"RKETemplateName",content:t}),this.machineProvider||e.splice(1,1),e}get creationTimestamp(){const e=Date.parse(this.metadata?.creationTimestamp),t=Date.parse(this.mgmt?.metadata?.creationTimestamp);return t&&t"promptRemove"===e.action));t>-1&&e.splice(t,1)}const n=this.mgmt?.isReady,r=this.isRke2&&n&&this.canUpdate,i=n&&(this.isRke2&&this.canUpdate||this.isRke1&&this.mgmt?.hasAction("backupEtcd")),o=this.$getters["schemaFor"]("management.cattle.io.clustertemplate");let a=!1;o&&(o.resourceMethods?.includes("blocked-PUT")||o.resourceMethods?.includes("PUT"))&&(a=!0);const s=!!this.normanCluster?.actions?.saveAsTemplate,l=this.isRke1&&"rancherKubernetesEngine"===this.mgmt?.status?.driver&&!this.mgmt?.spec?.clusterTemplateName&&this.hasLink("update")&&a&&s,c=[{action:"openShell",label:this.$rootGetters["i18n/t"]("nav.shell"),icon:"icon icon-terminal",enabled:!!this.mgmt?.links.shell&&n},{action:"downloadKubeConfig",bulkAction:"downloadKubeConfigBulk",label:this.$rootGetters["i18n/t"]("nav.kubeconfig.download"),icon:"icon icon-download",bulkable:!0,enabled:this.mgmt?.hasAction("generateKubeconfig")},{action:"copyKubeConfig",label:this.t("cluster.copyConfig"),bulkable:!1,enabled:this.mgmt?.hasAction("generateKubeconfig"),icon:"icon icon-copy"},{action:"snapshotAction",label:this.$rootGetters["i18n/t"]("nav.takeSnapshot"),icon:"icon icon-snapshot",bulkAction:"snapshotBulk",bulkable:!0,enabled:i},{action:"restoreSnapshotAction",label:this.$rootGetters["i18n/t"]("nav.restoreSnapshot"),icon:"icon icon-fw icon-backup-restore",enabled:i},{action:"rotateCertificates",label:this.$rootGetters["i18n/t"]("nav.rotateCertificates"),icon:"icon icon-backup",enabled:r||this.mgmt?.hasAction("rotateCertificates")&&n},{action:"rotateEncryptionKey",label:this.$rootGetters["i18n/t"]("nav.rotateEncryptionKeys"),icon:"icon icon-refresh",enabled:r||this.isRke1&&this.mgmt?.hasAction("rotateEncryptionKey")&&n},{action:"saveAsRKETemplate",label:this.$rootGetters["i18n/t"]("nav.saveAsRKETemplate"),icon:"icon icon-folder",enabled:l},{divider:!0}];return(this.cloudCredential?.canRenew||this.cloudCredential?.canBulkRenew)&&(e.splice(0,0,{divider:!0}),e.splice(0,0,{action:"renew",enabled:this.cloudCredential?.canRenew,bulkable:this.cloudCredential?.canBulkRenew,bulkAction:"renewBulk",icon:"icon icon-fw icon-refresh",label:this.$rootGetters["i18n/t"]("cluster.cloudCredentials.renew")})),c.concat(e)}get normanCluster(){const e=this.status?.clusterName;if(!e)return null;const t=this.$rootGetters["rancher/byId"](r.k$.CLUSTER,e);return t}async findNormanCluster(){const e=this.status?.clusterName;return e?await this.$dispatch("rancher/find",{type:r.k$.CLUSTER,id:e},{root:!0}):null}explore(){const e={name:"c-cluster",params:{cluster:this.mgmt.id}};this.currentRouter().push(e)}async goToHarvesterCluster(){const e=await this.$dispatch("create",{...this,type:r.rk.CLUSTER});try{await e.goToCluster()}catch{}}goToViewYaml(){let e;this.isRke2||(e=this.mgmt?.detailLocation),e||(e=this.detailLocation),e.query={...e.query,[u.g]:u.nW,[u.AS]:u.zD},this.currentRouter().push(e)}get canDelete(){return super.canDelete&&"removing"!==this.stateObj?.name}get canEditYaml(){return!!this.isRke2&&super.canEditYaml}get isHostedKubernetesProvider(){const e=["AKS","EKS","GKE"];return e.includes(this.provisioner)}get isPrivateHostedProvider(){if(this.isHostedKubernetesProvider&&this.mgmt&&this.provisioner)switch(this.provisioner.toLowerCase()){case"gke":return this.mgmt.spec?.gkeConfig?.privateClusterConfig?.enablePrivateEndpoint;case"eks":return this.mgmt.spec?.eksConfig?.privateAccess;case"aks":return this.mgmt.spec?.aksConfig?.privateCluster}return!1}get isLocal(){return this.mgmt?.isLocal}get isImported(){if(this.isLocal)return!1;if("k3s"===this.mgmt?.status?.provider||"rke2"===this.mgmt?.status?.provider)return this.mgmt?.status?.driver===this.mgmt?.status?.provider;const e=["aksConfig","eksConfig","gkeConfig"],t=e.filter((e=>!0===this.mgmt?.spec?.[e]?.imported)).length;return!!t||"imported"===this.provisioner}get isCustom(){return this.isRke2?!this.spec?.rkeConfig?.machinePools?.length:!!this.isRke1&&!this.pools?.length}get confirmRemove(){return!0}get isImportedK3s(){return this.isImported&&this.isK3s}get isImportedRke2(){return this.isImported&&this.mgmt?.status?.provider?.startsWith("rke2")}get isK3s(){return this.mgmt?.status?"k3s"===this.mgmt?.status.provider:(this.spec?.kubernetesVersion||"").includes("k3s")}get isRke2(){return!!this.spec?.rkeConfig}get isRke1(){return!!this.mgmt?.spec?.rancherKubernetesEngineConfig||"rke"===this.mgmt?.labels["provider.cattle.io"]}get isHarvester(){return!!this.mgmt?.isHarvester}get mgmtClusterId(){return this.mgmt?.id||this.id?.replace(`${this.metadata.namespace}/`,"")}get mgmt(){const e=this.status?.clusterName;if(!e)return null;const t=this.$rootGetters["management/byId"](r.Mc.CLUSTER,e);return t}get isReady(){return!!this.mgmt?.isReady}get eksNodeGroups(){return this.mgmt?.spec?.eksConfig?.nodeGroups||[]}waitForProvisioner(e,t){return this.waitForTestFn((()=>!!this.provisioner),"set provisioner",e,t)}waitForMgmt(e=6e4,t){return this.waitForTestFn((()=>{const e=this.$rootGetters["management/byId"](r.qt.RANCHER_CLUSTER,this.id),t=this.status?.clusterName||e?.status?.clusterName;return t&&!!this.$rootGetters["management/byId"](r.Mc.CLUSTER,t)}),this.$rootGetters["i18n/t"]("cluster.managementTimeout"),e,t)}get provisioner(){if(this.isRke2){const e=Object.keys(this.spec),t=e.find((e=>e.endsWith("Config")));if("rkeConfig"===t)return"rke2";if(t)return t.replace(/config$/i,"")}else if(this.mgmt)return this.mgmt.provisioner;return null}get provisionerDisplay(){let e=(this.provisioner||"").toLowerCase();return"rke2"===e&&this.spec?.kubernetesVersion?.includes("k3s")||this.isImportedK3s?e="k3s":this.isImportedRke2?e="rke2":(this.isImported||this.isLocal)&&this.isRke1&&(e="rke"),this.$rootGetters["i18n/withFallback"](`cluster.provider."${e}"`,null,(0,l.TF)(e))}get providerLogo(){return this.mgmt?.providerLogo}get nodesArchitecture(){const e={};return this.nodes?.forEach((t=>{if(!t.metadata?.state?.transitioning){const n=t.status?.nodeLabels?.[h.Pl],r=n||this.t("cluster.architecture.label.unknown");e[r]=(e[r]||0)+1}})),e}get architecture(){const e=Object.keys(this.nodesArchitecture);switch(e.length){case 0:return{label:this.t("generic.provisioning")};case 1:return{label:e[0]};default:return{label:this.t("cluster.architecture.label.mixed"),tooltip:e.reduce(((e,t)=>`${e}${t}: ${this.nodesArchitecture[t]}
`),"")}}}get kubernetesVersion(){const e=this.$rootGetters["i18n/t"]("generic.unknown");if(this.isRke2){const t=this.status?.version?.gitVersion,n=this.spec?.kubernetesVersion;return t||n||e}return this.mgmt&&this.mgmt.kubernetesVersion||e}get machineProvider(){const e=this.annotations?.[h.qt.UI_CUSTOM_PROVIDER];if(e)return e;if(this.isHarvester)return d.T;if(this.isImported)return null;if(this.isRke2){const e=this.spec?.rkeConfig?.machinePools?.[0]?.machineConfigRef?.kind?.toLowerCase();return e?e.replace(/config$/i,"").toLowerCase():null}return this.mgmt?.machineProvider?this.mgmt.machineProvider.toLowerCase():null}get machineProviderDisplay(){if(this.isImported)return null;const e=(this.machineProvider||"").toLowerCase();return e?this.$rootGetters["i18n/withFallback"](`cluster.provider."${e}"`,null,e):this.$rootGetters["i18n/t"]("generic.unknown")}get machinePoolDefaults(){return this.spec.rkeConfig?.machinePoolDefaults}set defaultHostnameLengthLimit(e){this.spec.rkeConfig=this.spec.rkeConfig||{},this.spec.rkeConfig.machinePoolDefaults=this.spec.rkeConfig.machinePoolDefaults||{},this.spec.rkeConfig.machinePoolDefaults.hostnameLengthLimit=e}get defaultHostnameLengthLimit(){return this.spec.rkeConfig?.machinePoolDefaults?.hostnameLengthLimit}removeDefaultHostnameLengthLimit(){this.machinePoolDefaults?.hostnameLengthLimit&&(delete this.spec.rkeConfig.machinePoolDefaults.hostnameLengthLimit,0===Object.keys(this.spec?.rkeConfig?.machinePoolDefaults).length&&delete this.spec.rkeConfig.machinePoolDefaults)}get nodes(){return this.$rootGetters["management/all"](r.Mc.NODE).filter((e=>e.id.startsWith(this.mgmtClusterId)))}get machines(){return this.$rootGetters["management/all"](r.qt.MACHINE).filter((e=>e.metadata?.namespace===this.metadata.namespace&&e.spec?.clusterName===this.metadata.name))}get displayName(){return this.mgmt&&!this.isRke2?this.mgmt.spec.displayName:null}get pools(){const e=this.$rootGetters["management/all"](r.qt.MACHINE_DEPLOYMENT).filter((e=>e.spec?.clusterName===this.metadata.name));return e.length?e:this.$rootGetters["management/all"](r.Mc.NODE_POOL).filter((e=>e.spec.clusterName===this.status?.clusterName))}get desired(){return this.pools.reduce(((e,t)=>e+(t.desired||0)),0)}get pending(){return this.pools.reduce(((e,t)=>e+(t.pending||0)),0)}get outdated(){return this.pools.reduce(((e,t)=>e+(t.outdated||0)),0)}get ready(){return this.pools.reduce(((e,t)=>e+(t.ready||0)),0)}get unavailable(){return this.pools.reduce(((e,t)=>e+(t.unavailable||0)),0)}get unavailableMachines(){if(this.isReady){if(this.isRke1){const e=this.nodes.filter((e=>e.status.conditions.find((e=>e.error&&"Ready"===e.type)))).map((e=>{const t=e.status.nodeName||e.metadata.name;return this.t("cluster.availabilityWarnings.node",{name:t})}));return e.join("
")}{const e=this.machines.filter((e=>e.status?.conditions?.find((e=>e.error&&"NodeHealthy"===e.type)))).map((e=>e.status?.nodeRef?.name?this.t("cluster.availabilityWarnings.node",{name:e.status.nodeRef.name}):this.t("cluster.availabilityWarnings.machine",{name:e.metadata.name})));return e.join("
")}}return""}get stateParts(){const e=[{label:"Pending",color:"bg-info",textColor:"text-info",value:this.pending,sort:1},{label:"Outdated",color:"bg-warning",textColor:"text-warning",value:this.outdated,sort:2},{label:"Unavailable",color:"bg-error",textColor:"text-error",value:this.unavailable,sort:3},{label:"Ready",color:"bg-success",textColor:"text-success",value:this.ready,sort:4}].filter((e=>e.value>0));return(0,s.Ul)(e,"sort:desc")}async getOrCreateToken(){if(await this.waitForMgmt(),!this.mgmt)return;const e=await this.$dispatch("rancher/findAll",{type:r.k$.CLUSTER_TOKEN,force:!0},{root:!0});let t=(0,o.jq)(e,"clusterId",this.mgmt.id);return t||(this.links.update?(t=await this.$dispatch("rancher/create",{type:r.k$.CLUSTER_TOKEN,clusterId:this.mgmt.id},{root:!0}),t.save()):void 0)}openShell(){return this.mgmt?.openShell()}generateKubeConfig(){return this.mgmt?.generateKubeConfig()}async copyKubeConfig(){await(this.mgmt?.copyKubeConfig()),this.$dispatch("growl/success",{title:this.t("cluster.copiedConfig"),timeout:3e3},{root:!0})}downloadKubeConfig(){return this.mgmt?.downloadKubeConfig()}downloadKubeConfigBulk(e){return this.mgmt?.downloadKubeConfigBulk(e)}async snapshotAction(){try{await this.takeSnapshot(),this.$dispatch("growl/success",{title:this.$rootGetters["i18n/t"]("cluster.snapshot.successTitle",{name:this.nameDisplay}),message:this.$rootGetters["i18n/t"]("cluster.snapshot.successMessage",{name:this.nameDisplay})},{root:!0})}catch(e){this.$dispatch("growl/fromError",{title:this.$rootGetters["i18n/t"]("cluster.snapshot.errorTitle",{name:this.nameDisplay}),err:e},{root:!0})}}async snapshotBulk(e){const t=await Promise.allSettled(e.map((e=>e.takeSnapshot()))),n=t.filter((e=>"fulfilled"===e.status)).length;n&&this.$dispatch("growl/success",{title:this.$rootGetters["i18n/t"]("cluster.snapshot.bulkSuccessTitle"),message:this.$rootGetters["i18n/t"]("cluster.snapshot.bulkSuccessMessage",{count:n})},{root:!0});for(let r=0;re.metadata.namespace===this.namespace&&e.clusterName===this.name))}restoreSnapshotAction(e=this){this.$dispatch("promptRestore",[e])}saveAsRKETemplate(e=this){this.$dispatch("promptModal",{componentProps:{cluster:e},component:"SaveAsRKETemplateDialog"})}rotateCertificates(e=this){this.$dispatch("promptModal",{componentProps:{cluster:e},component:"RotateCertificatesDialog"})}rotateEncryptionKey(e=this){this.$dispatch("promptModal",{componentProps:{cluster:e},component:"RotateEncryptionKeyDialog"})}get stateObj(){return this._stateObj}get rkeTemplate(){if(!this.isRke1||!this.mgmt)return!1;if(!this.mgmt.spec?.clusterTemplateRevisionName)return!1;const e=this.mgmt.spec.clusterTemplateName.replace(":","/"),t=this.mgmt.spec.clusterTemplateRevisionName.replace(":","/"),n=this.$rootGetters["management/all"](r.Mc.RKE_TEMPLATE).find((t=>t.id===e)),i=this.$rootGetters["management/all"](r.Mc.RKE_TEMPLATE_REVISION).find((e=>e.spec.enabled&&e.id===t));return!(!n||!i)&&{displayName:`${n.spec?.displayName}/${i.spec?.displayName}`,upgrade:this.rkeTemplateUpgrade,template:n,revision:i}}get rkeTemplateUpgrade(){if(!this.isRke1||!this.mgmt)return!1;if(!this.mgmt.spec?.clusterTemplateRevisionName)return!1;const e=this.mgmt.spec.clusterTemplateRevisionName.replace(":","/"),t=this.$rootGetters["management/all"](r.Mc.RKE_TEMPLATE_REVISION).filter((e=>e.spec.enabled&&e.spec.clusterTemplateName===this.mgmt.spec.clusterTemplateName));return!(t.length<=1)&&(t.sort(((e,t)=>parseInt(e.metadata.resourceVersion,10)-parseInt(t.metadata.resourceVersion,10))).reverse(),t[0].id!==e&&t[0].spec?.displayName)}get _stateObj(){return this.isRke2?this.metadata?.state:this.mgmt?.stateObj||this.metadata?.state}get supportsWindows(){if(this.isK3s||this.isImportedK3s)return!1;if(this.isRke1)return this.mgmt?.spec?.windowsPreferedCluster||!1;if(!this.isRke2)return!1;if(!this.kubernetesVersion||(0,c.UD)(this.kubernetesVersion,"v1.21.0")<0)return!1;const e=this.spec?.rkeConfig?.machineGlobalConfig?.cni;return!e||"calico"===e}get customValidationRules(){return[{path:"metadata.name",translationKey:"cluster.name.label",validators:[`clusterName:${this.isRke2}`],maxLength:63}]}get agentConfig(){return this.spec.rkeConfig?.machineSelectorConfig?.find((e=>!e.machineLabelSelector))?.config||{}}get cloudProvider(){return this.agentConfig?.["cloud-provider-name"]}get canClone(){return!1}async remove(e={}){e.url||(e.url=(this.links||{})["self"]),e.method="delete";const t=await this.$dispatch("request",e),n=(this.spec?.rkeConfig?.machinePools||[])[0];if("HarvesterConfig"===n?.machineConfigRef?.kind){const e=this.spec.cloudCredentialSecretName;await this.$dispatch("rancher/findAll",{type:r.k$.CLOUD_CREDENTIAL},{root:!0});const t=this.$rootGetters["rancher/byId"](r.k$.CLOUD_CREDENTIAL,e);if(t){const e=(0,a.Jt)(t,"decodedData.clusterId");try{const t=await this.$dispatch("management/find",{type:`${r.qt.MACHINE_CONFIG_GROUP}.${(n?.machineConfigRef?.kind||"").toLowerCase()}`,id:`${this.metadata.namespace}/${n?.machineConfigRef?.name}`},{root:!0});await this.$dispatch("management/request",{url:`/k8s/clusters/${e}/v1/harvester/serviceaccounts/${t.vmNamespace}/${this.metadata.name}`,method:"DELETE"},{root:!0})}catch(i){p.error(i)}}}204===t?._status&&await this.$dispatch("ws.resource.remove",{data:this})}get hasError(){if(this.status?.conditions&&this.status?.conditions.length&&this.status?.conditions.some((e=>!0===e.error))){if(!this.status?.conditions.some((e=>"Ready"===e.type)))return!0;const e=this.status?.conditions.filter((e=>!0===e.error||"Ready"===e.type)),t=e.reduce(((e,t)=>e.lastUpdateTime>t.lastUpdateTime?e:t));return t.error}return!1}get namespaceLocation(){const e=this.$rootGetters["management/byId"](r.Mc.CLUSTER,r.d_);return e?{name:"c-cluster-product-resource-id",params:{cluster:e.id,product:this.$rootGetters["productId"],resource:r.CU,id:this.namespace}}:null}get yamlFolding(){return["spec.rkeConfig.machinePools.dynamicSchemaSpec"]}get description(){return super.description||this.mgmt?.description}renew(){return this.cloudCredential?.renew()}renewBulk(e=[]){const t=e.filter((e=>e.cloudCredential)).map((e=>e.cloudCredential));return this.cloudCredential?.renewBulk(t)}get cloudCredential(){return this.$rootGetters["rancher/all"](r.k$.CLOUD_CREDENTIAL).find((e=>e.id===this.spec.cloudCredentialSecretName))}get cloudCredentialWarning(){const e=this.cloudCredential?.expireData;return e?.expired||e?.expiring}}},94456:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(34779),i=n(24759),o=n(42752);class a extends o["default"]{get subtype(){return r.SUBTYPE_MAPPING.RBAC_CLUSTER_ROLE.key}get namespaceResources(){return this.allResources.filter((e=>e.attributes.namespaced&&!e.attributes.group.includes(r.CATTLE_API_GROUP)))}get resources(){return(0,i.sb)(this.namespaceResources.map((e=>e.attributes?.kind))).sort()}}},20187:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(73474),i=n(4284);class o extends r.A{get users(){return this.subjects?.filter((({kind:e})=>e?.toLowerCase()===i.m3))}get serviceAccounts(){return this.subjects?.filter((({kind:e})=>e?.toLowerCase()===i.Sg))}get groups(){return this.subjects?.filter((({kind:e})=>e?.toLowerCase()===i.UP))}}},42752:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n(4284),i=n(34779),o=n(24759),a=n(38991);class s extends a.A{get customValidationRules(){return[{path:"name",translationKey:"nameNsDescription.name.label",required:!0,nullable:!1,type:"string"},{path:"rules",validators:[`roleTemplateRules:${this.type}`],nullable:!1,type:"array"}]}get nameWithinProduct(){return this.$rootGetters["i18n/withFallback"](`rbac.displayRole.${this.name}`,this.name)}get subtype(){return i.SUBTYPE_MAPPING.RBAC_ROLE.key}get allResources(){return this.$getters["all"](r.yx).filter((e=>e.attributes?.kind))}get clusterResources(){return this.allResources.filter((e=>!e.attributes.namespaced&&!e.attributes.group.includes(i.CATTLE_API_GROUP)))}get resources(){return(0,o.sb)(this.clusterResources.map((e=>e.attributes?.kind))).sort()}set displayName(e){this.metadata.name=e}get displayName(){return this.metadata?.name}}},58227:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(73474),i=n(4284);class o extends r.A{get users(){return this.subjects.filter((({kind:e})=>e?.toLowerCase()===i.m3))}get serviceAccounts(){return this.subjects.filter((({kind:e})=>e?.toLowerCase()===i.Sg))}get groups(){return this.subjects.filter((({kind:e})=>e?.toLowerCase()===i.UP))}}},1167:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(97737);class i extends r["default"]{}},58293:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n(79260),i=n(24759),o=n(65852),a=n(38991);class s extends a.A{get readyMessage(){const e=(0,o.Jt)(this,"status.conditions"),t=((0,i.jq)(e,"type","Ready")||{}).message;return t}get colorForState(){return this.readyMessage?(0,r.uU)(this.readyMessage):(0,r.uU)()}get stateDisplay(){return this.readyMessage?(0,r.ch)(this.readyMessage):(0,r.ch)()}}},36097:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n(79260),i=n(24759),o=n(65852),a=n(38991);class s extends a.A{get canUpdate(){return this?.metadata?.state?.error}get readyMessage(){const e=(0,o.Jt)(this,"status.conditions"),t=((0,i.jq)(e,"type","Ready")||{}).message;return t}get colorForState(){return this.readyMessage?(0,r.uU)(this.readyMessage):(0,r.uU)()}get stateDisplay(){return this.readyMessage?(0,r.ch)(this.readyMessage):(0,r.ch)()}}},11205:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l}});var r=n(1272),i=n.n(r),o=n(89687),a=n.n(o),s=n(38991);class l extends s.A{applyDefaults(e,t){const n=i()(t);if(n[e]){const t=n[e]?.config;delete t.id,delete t.links,delete t.metadata,delete t.apiVersion,a()(this,t)}}}},70783:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(87059);class i extends r["default"]{get provider(){return"amazonec2"}get providerLocation(){return`${this.spec.template.spec.region}${this.spec.template.spec.zone}`}get providerSize(){return this.spec.template.spec.instanceType}}},85988:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(87059);class i extends r["default"]{get provider(){return"azure"}get providerLocation(){return this.spec.template.spec.location}get providerSize(){return this.spec.template.spec.size}}},5989:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(87059);class i extends r["default"]{get provider(){return"digitalocean"}get providerLocation(){return this.spec.template.spec.region}get providerSize(){return this.spec.template.spec.size}}},47622:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(87059);class i extends r["default"]{get provider(){return"linode"}get providerLocation(){return this.spec.template.spec.region}get providerSize(){return this.spec.template.spec.instanceType}}},87059:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(38991);class i extends r.A{get nameDisplay(){return this.name.replace(`${this.metadata.annotations["objectset.rio.cattle.io/owner-name"]}-`,"")}get provider(){return null}get providerLocation(){return null}get providerSize(){return null}}},75094:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(87059);class i extends r["default"]{get provider(){return"pnap"}get providerLocation(){return this.spec.template.spec.serverLocation}get providerSize(){return this.spec.template.spec.serverType}}},78180:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(62155),i=n(87059);class o extends i["default"]{get provider(){return"vmwarevsphere"}get providerSize(){const e=(0,r.Mo)(1048576*this.spec.template.spec.memorySize,1024,"iB");return`${e}, ${this.spec.template.spec.cpuCount} Core`}}},84480:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return d}});var r=n(79325),i=n(71445),o=n(4284),a=n(24759),s=n(65852),l=n(76198),c=n(78359),u=n(79260);class d extends r.A{get _availableActions(){const e=this.snapshotFile?.status===u.jv.SUCCESSFUL;return[{action:"promptRestore",enabled:e,icon:"icon icon-fw icon-backup-restore",label:"Restore"}]}promptRestore(){this.$dispatch("promptRestore",[this])}get clusterName(){return this.metadata.labels[i.xO.CLUSTER_NAME]}get clusterId(){return this.cluster.id}get name(){return this.metadata.name}get cluster(){return(0,a.jq)(this.$rootGetters["management/all"](o.qt.RANCHER_CLUSTER),"metadata.name",this.clusterName)}get rke2(){return this.cluster?.isRke2}get nameDisplay(){return this.snapshotFile?.name||this.name}get errorMessage(){const e=(0,s.Jt)(this,"snapshotFile.status")===u.jv.FAILED;return e?(0,l.u)(this.snapshotFile?.message):null}get stateDescription(){const e=this.stateObj?.transitioning||!1,t=this.stateObj?.error||this.snapshotFile?.status===u.jv.FAILED||!1,n=this.stateObj?.message,r=this.snapshotFile?.status===u.jv.FAILED?(0,l.u)(this.snapshotFile?.message):null;return e||t?r||(0,c.TF)(n):""}get backupLocation(){return this.metadata?.annotations?.["etcdsnapshot.rke.io/storage"]}}},93738:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i},parseType:function(){return a}});var r=n(79260);class i extends r.Ay{get groupName(){return this.attributes.namespaced?"ns":"cluster"}}const o=/([^[\s]*)(\[(.*)\])?/;function a(e,t){const n=o.exec(e),r=n[3]||t?.subtype,i=[n[1]];return r&&i.push(r),i}},62737:function(e,t,n){"use strict";n.r(t),n.d(t,{TYPES:function(){return b},default:function(){return w}});var r=n(36818),i=n(71445),o=n(76198),a=n(24759),s=n(4284),l=n(65852),c=n(66382),u=n(38991),d=n(79260),h=n(96155),p=n(71972),f=n.n(p),m=n(57871);function g(e,t,n){return(t=v(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e){var t=y(e,"string");return"symbol"==typeof t?t:t+""}function y(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}const b={OPAQUE:"Opaque",SERVICE_ACCT:"kubernetes.io/service-account-token",DOCKER:"kubernetes.io/dockercfg",DOCKER_JSON:"kubernetes.io/dockerconfigjson",BASIC:"kubernetes.io/basic-auth",SSH:"kubernetes.io/ssh-auth",TLS:"kubernetes.io/tls",BOOTSTRAP:"bootstrap.kubernetes.io/token",ISTIO_TLS:"istio.io/key-and-cert",HELM_RELEASE:"helm.sh/release.v1",FLEET_CLUSTER:"fleet.cattle.io/cluster-registration-values",CLOUD_CREDENTIAL:"provisioning.cattle.io/cloud-credential",RKE_AUTH_CONFIG:"rke.cattle.io/auth-config"},_=6912e5;class w extends u.A{constructor(...e){super(...e),g(this,"_cachedCertInfo",void 0)}get hasSensitiveData(){return!0}get isCertificate(){return this._type===b.TLS}get isRegistry(){return this._type===b.DOCKER_JSON}get isCloudCredential(){return this._type===b.CLOUD_CREDENTIAL||"cattle-global-data"===this.metadata.namespace&&"cc-"===this.metadata.generateName}get issuer(){const{metadata:{annotations:e={}}}=this;return e[i.G5.ISSUER]?e[i.G5.ISSUER]:this.isCertificate?this.cachedCertInfo?.issuer:null}get notAfter(){return this.isCertificate?this.cachedCertInfo?.notAfter:null}get cn(){return this.isCertificate?this.cachedCertInfo?.cn:null}get plusMoreNames(){return this.isCertificate?this.unrepeatedSans.length:null}get dateClass(){if(this.isCertificate)switch(this.certState){case d.jv.EXPIRING:return"text-warning";case d.jv.EXPIRED:return"text-error";default:return""}return null}get details(){const e=[{label:this.t("secret.type"),content:this.typeDisplay}];if(this._type===b.SERVICE_ACCT){const t=this.metadata?.annotations?.[i.pS.SERVICE_ACCOUNT_NAME];t&&e.push({label:"Service Account",formatter:"LinkName",formatterOpts:{value:t,type:s.Sg,namespace:this.namespace},content:t})}return this.cn&&e.push({label:this.t("secret.certificate.cn"),content:this.plusMoreNames?`${this.cn} ${this.t("secret.certificate.plusMore",{n:this.plusMoreNames})}`:this.cn}),this.issuer&&e.push({label:this.t("secret.certificate.issuer"),content:this.issuer}),this.notAfter&&e.push({label:"Expires",formatter:"Date",formatterOpts:{class:this.dateClass},content:this.notAfter}),e}get canUpdate(){return!!this.hasLink("update")&&(this._type!==b.SERVICE_ACCT&&this.$rootGetters["type-map/optionsFor"](this.type).isEditable)}get keysDisplay(){const e=[...Object.keys(this.data||[]),...Object.keys(this.binaryData||[])];return e.length?e.join(", "):"(none)"}get dataPreview(){if(this._type===b.DOCKER_JSON){const t=this.data[".dockerconfigjson"];if(t){const n=(0,o.u)(t);try{const e=JSON.parse(n).auths,t=[];for(const n in e)t.push(n);return t.join(", ")}catch(e){return n}}}else{if(this._type===b.TLS)return this.certInfo||this.keysDisplay;if(this._type===b.BASIC)return(0,o.u)(this.data.username);if(this._type===b.SSH)return this.sshUser;if(this._type===b.SERVICE_ACCT)return this.metadata?.annotations?.["kubernetes.io/service-account.name"]}return this.keysDisplay}get sshUser(){if(this._type!==b.SSH)return null;const e=(0,o.u)(this.data["ssh-publickey"]);if(!e)return null;if(e.startsWith("----")){const t=e.match(/from OpenSSH by ([^"]+)"/);if(t)return t[1]}else if(e.startsWith("ssh-")){const t=e.replace(/\n/g,"").split(/\s+/);if(t&&3===t.length)return t[2]}return null}get subTypeDisplay(){const e=this._type||"",t=e.replace(/^kubernetes.io\//,"");return this.$rootGetters["i18n/withFallback"](`secret.types."${e}"`,null,t)}get certInfo(){const e=(0,o.u)(this.data["tls.crt"]);let t,n,i,a,s,l;const c="-----END CERTIFICATE-----";if(e){const o=e.split(c);let d=e;o.length>1&&(d=`${o[0]}${c}`);try{l=new r.X509,l.readCertPEM(d);const e=l.getIssuerString();t=e.slice(e.indexOf("CN=")+3),n=r.zulutodate(l.getNotBefore()),i=r.zulutodate(l.getNotAfter());const o=l.getSubjectString();a=o.slice(o.indexOf("CN=")+3)}catch{return null}try{s=l.getExtSubjectAltName()}catch(u){s=[]}const h={issuer:t,notBefore:n,notAfter:i,cn:a,sans:s};return h}return null}get cachedCertInfo(){return this._cachedCertInfo||(this._cachedCertInfo=this.certInfo),this._cachedCertInfo}get unrepeatedSans(){if(this._type===b.TLS){const e=this.cachedCertInfo;if(e?.sans?.filter){const t=e?.sans.filter((e=>0===e.indexOf("*.")||0===e.indexOf("www."))).map((e=>e.substr(e.indexOf(".")))),n=(0,a.$M)(e?.sans,t);return n}return e?.sans?.array||e?.sans||[]}return null}get timeTilExpiration(){if(this._type===b.TLS){const e=this.cachedCertInfo;if(!e?.notAfter)return null;const t=e.notAfter,n=t.valueOf(),r=Date.now(),i=n-r;return i<0?0:i}return null}get timeTilExpirationDate(){return this.timeTilExpiration>0?this.cachedCertInfo?.notAfter?.valueOf():null}get decodedData(){const e={};for(const t in this.data||{})e[t]=(0,o.u)(this.data[t]);return e}get setData(){return(e,t)=>{const n=e&&"object"===typeof e;let r;this.data&&!n||(0,l.hZ)(this,"data",{}),r=n?e:{[e]:t};for(const i in r)(0,l.hZ)(this.data,`"${i}"`,(0,o.KA)(r[i]))}}get doneRoute(){return this.$rootGetters["currentProduct"].name===c.o?"c-cluster-manager-secret":"c-cluster-product-resource"}get certLifetime(){if(this._type===b.TLS){const e=this.cachedCertInfo;if(e)return(0,h.qx)(f()(e.notBefore),f()(e.notAfter),((e,t)=>this.t(e,t))).string}return null}get certState(){if(this._type===b.TLS)return"number"!==typeof this.timeTilExpiration||this.timeTilExpiration>_?"":this.timeTilExpiration>0?d.jv.EXPIRING:d.jv.EXPIRED}get certStateDisplay(){if(this._type===b.TLS)return(0,d.ch)(this.certState)}get certStateBackground(){if(this._type!==b.TLS)return;const e=(0,d.uU)(this.certState);return e.replace("text-","bg-")}cleanForSave(e,t){const n=super.cleanForSave(e,t);return t&&delete n._type,n}async cleanForDownload(e){return(0,m.C)(e,{rootKeys:["id","links","actions"]})}}},51102:function(e,t,n){"use strict";n.r(t),n.d(t,{CLUSTERIP:function(){return c},DEFAULT_SERVICE_TYPES:function(){return s},HEADLESS:function(){return l},proxyUrlFromBase:function(){return d},proxyUrlFromParts:function(){return u}});var r=n(95300),i=n.n(r),o=n(4284),a=n(38991);const s=[{id:"ClusterIP",label:"servicesPage.serviceTypes.clusterIp.label",description:"servicesPage.serviceTypes.clusterIp.description",bannerAbbrv:"servicesPage.serviceTypes.clusterIp.abbrv"},{id:"ExternalName",label:"servicesPage.serviceTypes.externalName.label",description:"servicesPage.serviceTypes.externalName.description",bannerAbbrv:"servicesPage.serviceTypes.externalName.abbrv"},{id:"Headless",label:"servicesPage.serviceTypes.headless.label",description:"servicesPage.serviceTypes.headless.description",bannerAbbrv:"servicesPage.serviceTypes.headless.abbrv"},{id:"LoadBalancer",label:"servicesPage.serviceTypes.loadBalancer.label",description:"servicesPage.serviceTypes.loadBalancer.description",bannerAbbrv:"servicesPage.serviceTypes.loadBalancer.abbrv"},{id:"NodePort",label:"servicesPage.serviceTypes.nodePort.label",description:"servicesPage.serviceTypes.nodePort.description",bannerAbbrv:"servicesPage.serviceTypes.nodePort.abbrv"}],l=(()=>{const e=i()(s,["id","Headless"]);return e.id})(),c=(()=>{const e=i()(s,["id","ClusterIP"]);return e.id})();function u(e,t,n,r,i,o){const a=`/k8s/clusters/${escape(e)}/api/v1/namespaces/${escape(t)}/services`;return d(a,r,n,i,o)}function d(e,t,n,r,i){const o=(t?`${escape(t)}:`:"")+escape(n)+(r?`:${escape(r)}`:""),a=`/${(i||"").replace(/^\/+/g,"")}`,s=e.replace(/\/+$/g,""),l=`${s}/${o}/proxy${a}`;return l}t["default"]=class extends a.A{get customValidationRules(){return[{nullable:!1,path:"metadata.name",required:!0,translationKey:"generic.name",type:"dnsLabel"},{nullable:!1,path:"spec",required:!0,type:"array",validators:["servicePort"]},{nullable:!0,path:"spec",required:!0,type:"string",validators:["clusterIp"]},{nullable:!0,path:"spec",required:!0,type:"array",validators:["externalName"]}]}get details(){const e=[{label:this.t("generic.type"),content:this.serviceType?.id||this.serviceType}],{clusterIP:t,externalName:n,sessionAffinity:r,loadBalancerIP:i}=this.spec;if(t&&e.push({label:this.t("servicesPage.serviceTypes.clusterIp.label"),content:t}),"LoadBalancer"===this.serviceType){const t=this.status.loadBalancer?.ingress?.map((e=>e.hostname||e.ip)).join(", "),n=i||t||"";n&&e.push({label:this.t("servicesPage.ips.loadBalancer.label"),content:n})}return n&&e.push({label:this.t("servicesPage.serviceTypes.externalName.label"),content:n}),r&&e.push({label:this.t("servicesPage.affinity.label"),content:r}),e}get podRelationship(){const{metadata:{relationships:e=[]}}=this;return(e||[]).filter((e=>e.toType===o.Sm))[0]}async fetchPods(){this.podRelationship&&await this.$dispatch("cluster/findMatching",{type:o.Sm,selector:this.podRelationship.selector,namespace:this.namespace},{root:!0})}get pods(){return this.podRelationship?this.$getters.matching(o.Sm,this.podRelationship.selector,this.namespace):[]}get serviceType(){const e=this.spec?.type,t=this.spec?.clusterIP,n=i()(s,["id",c]);return e?e===c&&"None"===t?l:e:n}proxyUrl(e,t){const n=this.linkFor("view"),r=n.lastIndexOf("/");return d(n.slice(0,r),e,this.metadata.name,t)}}},11341:function(e,t,n){"use strict";n.r(t),n.d(t,{PROVISIONER_OPTIONS:function(){return a}});var r=n(71445),i=n(4284),o=n(38991);const a=[{labelKey:"storageClass.aws-ebs.title",value:"kubernetes.io/aws-ebs",supported:!0,deprecated:!0},{labelKey:"storageClass.azure-disk.title",value:"kubernetes.io/azure-disk",supported:!0,deprecated:!0},{labelKey:"storageClass.azure-file.title",value:"kubernetes.io/azure-file",supported:!0,deprecated:!0},{labelKey:"storageClass.rbd.title",value:"kubernetes.io/rbd"},{labelKey:"storageClass.glusterfs.title",value:"kubernetes.io/glusterfs"},{labelKey:"storageClass.gce-pd.title",value:"kubernetes.io/gce-pd",supported:!0,deprecated:!0},{labelKey:"storageClass.no-provisioner.title",value:"kubernetes.io/no-provisioner"},{labelKey:"storageClass.longhorn.title",value:"driver.longhorn.io",supported:!0},{labelKey:"storageClass.cinder.title",value:"kubernetes.io/cinder",deprecated:!0},{labelKey:"storageClass.portworx-volume.title",value:"kubernetes.io/portworx-volume"},{labelKey:"storageClass.quobyte.title",value:"kubernetes.io/quobyte"},{labelKey:"storageClass.scaleio.title",value:"kubernetes.io/scaleio"},{labelKey:"storageClass.storageos.title",value:"kubernetes.io/storageos"},{labelKey:"storageClass.vsphere-volume.title",value:"kubernetes.io/vsphere-volume",supported:!0,deprecated:!0},{labelKey:"storageClass.harvesterhci.title",value:"driver.harvesterhci.io",supported:!0,hideCustomize:!0}];t["default"]=class extends o.A{get provisionerDisplay(){const e=a.find((e=>e.value===this.provisioner)),t=`${this.provisioner} ${this.t("persistentVolume.csi.suffix")}`;return e?this.t(e.labelKey):this.$rootGetters["i18n/withFallback"](`persistentVolume.csi.drivers.${this.provisioner.replaceAll(".","-")}`,null,t)}get isDefault(){return"true"===this.annotations[r.O3.DEFAULT_STORAGE_CLASS]}updateDefault(e){this.setAnnotation(r.O3.DEFAULT_STORAGE_CLASS,e.toString()),this.setAnnotation(r.O3.BETA_DEFAULT_STORAGE_CLASS,e.toString());const t={metadata:{annotations:{[r.O3.DEFAULT_STORAGE_CLASS]:e.toString(),[r.O3.BETA_DEFAULT_STORAGE_CLASS]:e.toString()}}};return this.patch(t,{},!0,!0)}async setDefault(){const e=this.$rootGetters["currentProduct"].inStore,t=this.$rootGetters[`${e}/all`](i.fJ)||[];for(const n of t)await n.resetDefault();t.forEach((e=>e.resetDefault())),this.updateDefault(!0)}async resetDefault(){this.isDefault&&await this.updateDefault(!1)}get _availableActions(){const e=super._availableActions;return this.isDefault?e.unshift({action:"resetDefault",enabled:!0,icon:"icon icon-fw icon-checkmark",label:this.t("storageClass.actions.resetDefault")}):e.unshift({action:"setDefault",enabled:!0,icon:"icon icon-fw icon-checkmark",label:this.t("storageClass.actions.setAsDefault")}),e}cleanForNew(){this.$dispatch("cleanForNew",this),delete this?.metadata?.annotations?.[r.O3.DEFAULT_STORAGE_CLASS]}}},58535:function(e,t,n){"use strict";n.r(t);var r=n(38991);t["default"]=class extends r.A{get constraints(){const e=`constraints.gatekeeper.sh.${this.id}`;if(!this.$rootGetters["cluster/haveAll"](e))throw new Error("The constraints have not been loaded");return this.$rootGetters["cluster/all"](e)}get preventDeletionMessage(){const e=this.constraints;return e.length>0?"There are still constraints using this template. You cannot delete this template while it's in use.":null}}},14704:function(e,t,n){"use strict";n.r(t);var r=n(71972),i=n.n(r),o=n(79325);t["default"]=class extends o.A{get _availableActions(){return super._availableActions.filter((e=>["viewInApi","promptRemove"].includes(e.action)))}get state(){return this.isExpired?"expired":"active"}get isExpired(){const e=i()(this.expiresAt);return e.isBefore(i()())}}},8653:function(e,t,n){"use strict";n.r(t);var r=n(51102),i=n(38991);t["default"]=class extends i.A{get labelDisplay(){return this.spec?.label||this.metadata.name||"?"}get link(){if(this.spec?.toURL)return this.spec.toURL;if(this.spec?.toService){const e=this.spec.toService;return(0,r.proxyUrlFromParts)(this.$rootGetters["clusterId"],e.namespace,e.name,e.scheme,e.port,e.path)}return null}get normalizedGroup(){return this.spec.group?this.spec.group.toLowerCase().trim().replace(/[^a-z0-9]/g,"-").replace(/-+/g,"-").replace(/^-+/,"").replace(/-+$/,""):null}get actualTarget(){return(this.spec.target||"").trim()||"_blank"}}},97737:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return p},defaultContainer:function(){return h}});var r=n(24759),i=n(71445),o=n(4284),a=n(65852),s=n(71972),l=n.n(s),c=n(58899);const u={separator:!0};var d=n(56461);const h={imagePullPolicy:"Always",name:"container-0",securityContext:{runAsNonRoot:!1,readOnlyRootFilesystem:!1,privileged:!1,allowPrivilegeEscalation:!1},volumeMounts:[]};class p extends d["default"]{get _availableActions(){let e=super._availableActions;const t=this._type?this._type:this.type,n=(0,r.jq)(e,"action","goToEditYaml"),i=n?e.indexOf(n):0;(0,r.PT)(e,i,{action:"addSidecar",label:this.t("action.addSidecar"),icon:"icon icon-plus",enabled:!!this.links.update}),t!==o.oU.JOB&&t!==o.oU.CRON_JOB&&((0,r.PT)(e,0,{action:"toggleRollbackModal",label:this.t("action.rollback"),icon:"icon icon-history",enabled:!!this.links.update}),(0,r.PT)(e,0,{action:"redeploy",label:this.t("action.redeploy"),icon:"icon icon-refresh",enabled:!!this.links.update,bulkable:!0}),(0,r.PT)(e,0,{action:"pause",label:this.t("asyncButton.pause.action"),icon:"icon icon-pause",enabled:!!this.links.update&&!this.spec?.paused}),(0,r.PT)(e,0,{action:"resume",label:this.t("asyncButton.resume.action"),icon:"icon icon-play",enabled:!!this.links.update&&!0===this.spec?.paused})),(0,r.PT)(e,0,{divider:!0}),(0,r.PT)(e,0,{action:"openShell",enabled:!!this.links.view,icon:"icon icon-fw icon-chevron-right",label:this.t("action.openShell"),total:1});const a=["cloneYaml"];return e=e.filter((e=>{if(!a.includes(e.action))return e})),e}applyDefaults(){const{spec:e={}}=this;this.type===o.oU.CRON_JOB?e.jobTemplate||(e.jobTemplate={spec:{template:{spec:{restartPolicy:"Never",containers:[{imagePullPolicy:"Always",name:"container-0"}],initContainers:[]}}}}):(e.replicas||0===e.replicas||(e.replicas=1),e.template||(e.template={spec:{restartPolicy:this.type===o.oU.JOB?"Never":"Always",containers:[{...structuredClone(h)}],initContainers:[]}}),e.selector||(e.selector={})),this.spec=e}toggleRollbackModal(e=this){this.$dispatch("promptModal",{componentProps:{workload:e},component:"RollbackWorkloadDialog"})}async rollBackWorkload(e,t,n,r){const i=JSON.stringify(r);if(Array.isArray(t))throw new TypeError(this.t("promptRollback.multipleWorkloadError"));const o=t.metadata.namespace,a=t.metadata.name;await this.patch(i,{url:`/k8s/clusters/${e.id}/apis/apps/v1/namespaces/${o}/${n}/${a}`})}pause(){(0,a.hZ)(this.spec,"paused",!0),this.save()}resume(){(0,a.hZ)(this.spec,"paused",!1),this.save()}async scaleDown(){const e=this.spec.replicas-1;e>=0&&((0,a.hZ)(this.spec,"replicas",e),await this.save())}async scaleUp(){(0,a.hZ)(this.spec,"replicas",this.spec.replicas+1),await this.save()}get state(){return!0===this.spec?.paused?"paused":super.state}async openShell(){const e=await this.matchingPods();for(const t of e)if(t.isRunning)return void t.openShell();this.$dispatch("growl/error",{title:"Unavailable",message:"There are no running pods to execute a shell in."},{root:!0})}addSidecar(){return this.goToEdit({sidecar:!0})}get showPodRestarts(){return!0}get restartCount(){const e=this.pods;let t=0;return e.forEach((e=>{e.status.containerStatuses&&(t+=e.status?.containerStatuses[0].restartCount||0)})),t}get hasSidecars(){const e=this.type===o.oU.CRON_JOB?this?.spec?.jobTemplate?.spec?.template?.spec:this.spec?.template?.spec,{containers:t=[],initContainers:n=[]}=e;return t.length>1||n.length}get customValidationRules(){const e=this._type?this._type:this.type,t=e===o.oU.CRON_JOB?"spec.jobTemplate.spec.template.spec":"spec.template.spec",n=[{nullable:!1,path:"metadata.name",required:!0,translationKey:"generic.name",type:"subDomain"},{nullable:!1,path:"spec",required:!0,type:"object",validators:["containerImages"]},{nullable:!0,path:`${t}.affinity`,type:"object",validators:["podAffinity"]}];switch(e){case o.oU.DEPLOYMENT:case o.oU.REPLICA_SET:n.push({nullable:!1,path:"spec.replicas",required:!0,type:"number",translationKey:"workload.replicas"});break;case o.oU.STATEFUL_SET:n.push({nullable:!1,path:"spec.replicas",required:!0,type:"number",translationKey:"workload.replicas"}),n.push({nullable:!1,path:"spec.serviceName",required:!0,type:"string",translationKey:"workload.serviceName"});break;case o.oU.CRON_JOB:n.push({nullable:!1,path:"spec.schedule",required:!0,type:"string",validators:["cronSchedule"],translationKey:"workload.cronSchedule"})}return n}get endpoint(){return this?.metadata?.annotations?.[i.bs]}get desired(){return this.spec?.replicas||0}get available(){return this.status?.readyReplicas||0}get ready(){const e=Math.max(0,(this.status?.replicas||0)-(this.status?.unavailableReplicas||0));return this.type===o.oU.DAEMON_SET?e:`${e}/${this.desired}`}get unavailable(){return this.status?.unavailableReplicas||0}get upToDate(){return this.status?.updatedReplicas}get details(){const e=[],t=this._type?this._type:this.type,n={endpoint:{label:"Endpoints",content:this.endpoint,formatter:"WorkloadDetailEndpoints"},ready:{label:"Ready",content:this.ready},upToDate:{label:"Up-to-date",content:this.upToDate},available:{label:"Available",content:this.available}};if(t===o.oU.JOB){const{completionTime:t,startTime:n}=this.status,r=[60,60,24],i=["sec","min","hour","day"];if(n&&e.push({label:"Started",content:n,formatter:"LiveDate",formatterOpts:{addSuffix:!0}}),t&&n){const o=l()(t),a=l()(n);let s,c=o.diff(a)/1e3,u=0;while(c>=r[u]&&ue.push(...t.ports||[]))),(this.initContainers||[]).forEach((t=>e.push(...t.ports||[])));const t=this.$getters["schemaFor"](o.YV),n=t?await this.getServicesOwned():[],i=[],a=[],s=[];return n.length&&n.forEach((e=>{switch(e.spec.type){case"ClusterIP":i.push(...e?.spec?.ports||[]);break;case"LoadBalancer":a.push(...e?.spec?.ports||[]);break;case"NodePort":s.push(...e?.spec?.ports||[]);break;default:break}})),e.forEach((e=>{const t=e.name?e.name:`${e.containerPort}${e.protocol.toLowerCase()}${e.hostPort||e._listeningPort||""}`;if(e.name=t,!e._serviceType||""===e._serviceType){if(a.length){const n=(0,r.jq)(a,"name",t);if(n)return e._listeningPort=n.port,void(e._serviceType="LoadBalancer")}if(s.length){const n=(0,r.jq)(s,"name",t);if(n)return e._listeningPort=n.nodePort,void(e._serviceType="NodePort")}i.length&&(0,r.jq)(i,"name",t)&&(e._serviceType="ClusterIP")}})),e}get ownedByWorkload(){const e=Object.values(o.oU);if(this.metadata?.ownerReferences)for(const t of this.metadata.ownerReferences){const n=`${t.apiVersion.replace(/\/.*/,"")}.${t.kind}`.toLowerCase();if(e.includes(n))return!0}return!1}get isFromNorman(){return"norman"===(this.metadata.labels||{})["cattle.io/creator"]}get warnDeletionMessage(){return this.isFromNorman?this.t("workload.normanWarning"):null}get pods(){const e=this.metadata?.relationships||[],t=e.filter((e=>e.toType===o.Sm))[0];if(t){const e=this.$getters["podsByNamespace"](this.metadata.namespace);return e.filter((e=>(0,c.cK)(e,t.selector)))}return[]}get podGauges(){const e={};return this.pods?(this.pods.map((t=>{const{stateColor:n,stateDisplay:r}=t;e[r]?e[r].count++:e[r]={color:n.replace("text-",""),count:1}})),e):e}get jobRelationships(){if(this.type===o.oU.CRON_JOB)return((0,a.Jt)(this,"metadata.relationships")||[]).filter((e=>e.toType===o.oU.JOB))}get jobs(){if(this.type===o.oU.CRON_JOB)return this.jobRelationships.map((e=>this.$getters["byId"](o.oU.JOB,e.toId))).filter((e=>!!e))}get jobGauges(){const e={succeeded:{color:"success",count:0},running:{color:"info",count:0},failed:{color:"error",count:0}};if(this.type===o.oU.CRON_JOB)this.jobs.forEach((t=>{const{status:n={}}=t;e.running.count+=n.active||0,e.succeeded.count+=n.succeeded||0,e.failed.count+=n.failed||0}));else{if(this.type!==o.oU.JOB)return null;{const{status:t={}}=this;e.running.count=t.active||0,e.succeeded.count=t.succeeded||0,e.failed.count=t.failed||0}}return e}get currentRevisionNumber(){if(!this.ownedByWorkload&&"Job"!==this.kind&&"CronJob"!==this.kind)return"Deployment"===this.kind?this.metadata.annotations["deployment.kubernetes.io/revision"]:this.metadata.generation}async matchingPods(){const e=await this.$dispatch("findAll",{type:o.Sm}),t=e.filter((e=>e.metadata.namespace===this.metadata.namespace)),n=(0,c._R)(this.spec.selector);return(0,c.wC)(t,n)}cleanForSave(e){const t=super.cleanForSave(e);return t.spec?.template?.spec?.containers?.forEach((e=>{this.cleanContainerForSave(e)})),t.spec?.template?.spec?.initContainers?.forEach((e=>{this.cleanContainerForSave(e)})),t}}},56461:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return c}});var r=n(24759),i=n(71445),o=n(4284),a=n(65852),s=n(38991),l=n(78359);class c extends s.A{async getPortsWithServiceType(){const e=[];this.containers.forEach((t=>e.push(...t.ports||[]))),(this.initContainers||[]).forEach((t=>e.push(...t.ports||[])));const t=this.$getters["schemaFor"](o.YV),n=t?await this.getServicesOwned():[],i=[],a=[],s=[];return n.length&&n.forEach((e=>{switch(e.spec.type){case"ClusterIP":i.push(...e?.spec?.ports||[]);break;case"LoadBalancer":a.push(...e?.spec?.ports||[]);break;case"NodePort":s.push(...e?.spec?.ports||[]);break;default:break}})),e.forEach((e=>{const t=e.name?e.name:`${e.containerPort}${e.protocol.toLowerCase()}${e.hostPort||e._listeningPort||""}`;if(e.name=t,!e._serviceType||""===e._serviceType){if(a.length){const n=(0,r.jq)(a,"name",t);if(n)return e._listeningPort=n.port,void(e._serviceType="LoadBalancer")}if(s.length){const n=(0,r.jq)(s,"name",t);if(n)return e._listeningPort=n.nodePort,void(e._serviceType="NodePort")}i.length&&(0,r.jq)(i,"name",t)&&(e._serviceType="ClusterIP")}})),e}async getServicesOwned(e=!1){const t={[o.oU.REPLICA_SET]:"replicaSet",[o.oU.DEPLOYMENT]:"deployment",[o.oU.STATEFUL_SET]:"statefulSet",[o.oU.DAEMON_SET]:"daemonSet"},n=Object.keys(this.workloadSelector)[0],r=`${t[this._type?this._type:this.type]}-${this.metadata.namespace}-${this.metadata.name}`,i=this.workloadSelector[n],a=await this.$dispatch("cluster/findAll",{type:o.YV,opt:{force:e}},{root:!0});return(a||[]).filter((e=>(e.spec?.selector||{})[n]===i||(e.spec?.selector||{})[n]===r))}get imageNames(){let e;const t=[];return e=this.type===o.oU.CRON_JOB?(0,a.Jt)(this,"spec.jobTemplate.spec.template.spec.containers"):(0,a.Jt)(this,"spec.template.spec.containers"),e&&e.forEach((e=>{t.includes(e.image)||t.push(e.image)})),t.map(l.qO)}get containers(){if(this.type===o.oU.CRON_JOB){const{spec:{jobTemplate:{spec:{template:{spec:{containers:e}}}}}}=this;return e}if(this.spec.containers)return this.spec.containers;const{spec:{template:{spec:{containers:e}}}}=this;return e}get initContainers(){if(this.type===o.oU.CRON_JOB){const{spec:{jobTemplate:{spec:{template:{spec:{initContainers:e}}}}}}=this;return e}if(this.spec.initContainers)return this.spec.initContainers;const{spec:{template:{spec:{initContainers:e}}}}=this;return e}get workloadSelector(){return{"workload.user.cattle.io/workloadselector":`${this._type?this._type:this.type}-${this.metadata.namespace}-${this.metadata.name}`}}async servicesFromContainerPorts(e,t){const n={apiVersion:this.apiVersion,controller:!0,kind:this.kind,name:this.metadata.name,uid:this.metadata.uid},r={[i.nN]:JSON.stringify([`${this.metadata.namespace}/${this.metadata.name}`]),[i.d6]:"true"};let s={type:o.YV,spec:{ports:[],selector:this.workloadSelector,type:"ClusterIP"},metadata:{name:this.metadata.name,namespace:this.metadata.namespace,annotations:r,ownerReferences:[n]}},l={type:o.YV,spec:{ports:[],selector:this.workloadSelector,type:"NodePort"},metadata:{name:`${this.metadata.name}-nodeport`,namespace:this.metadata.namespace,annotations:r,ownerReferences:[n]}},c={type:o.YV,spec:{ports:[],selector:this.workloadSelector,type:"LoadBalancer",externalTrafficPolicy:"Cluster"},metadata:{name:`${this.metadata.name}-loadbalancer`,namespace:this.metadata.namespace,annotations:r,ownerReferences:[n]}};const u=await this.getServicesOwned(this.isFromNorman);u&&u.length&&u.forEach((e=>{switch(e.spec.type){case"ClusterIP":s=e,s.spec.ports=[];break;case"NodePort":l=e,l.spec.ports=[];break;case"LoadBalancer":c=e,c.spec.ports=[];break;default:break}})),t.forEach((e=>{const t={name:e.name,protocol:e.protocol,port:e.containerPort,targetPort:e.containerPort};if(""!==e._serviceType)switch(s.spec.ports.push(t),e._serviceType){case"NodePort":{const n=(0,a.o8)(t);e._listeningPort&&(n.nodePort=e._listeningPort),l.spec.ports.push(n);break}case"LoadBalancer":{const n=(0,a.o8)(t);e._listeningPort&&(n.port=e._listeningPort),c.spec.ports.push(n);break}default:break}}));const d=[],h=[];let p;if(s.spec.ports.length>0?(p=s.id?s:await this.$dispatch("cluster/create",s,{root:!0}),d.push(p)):s.id&&h.push(s),l.spec.ports.length>0){let e;e=l.id?l:await this.$dispatch("cluster/create",l,{root:!0}),d.push(e)}else l.id&&h.push(l);if(c.spec.ports.length>0){let e;e=c.id?c:await this.$dispatch("cluster/create",c,{root:!0});const n=t.filter((e=>e._ipam))||[];n.length>0&&(e.metadata.annotations[i.rk.CLOUD_PROVIDER_IPAM]=n[0]._ipam),d.push(e)}else c.id&&h.push(c);return{toSave:d,toRemove:h}}cleanForSave(e){const t=super.cleanForSave(e);return delete t.__active,delete t.type,t}cleanContainerForSave(e){return delete e.__active,delete e.active,delete e._init,delete e.error,e}}},8864:function(e,t,n){"use strict";function r(e){return()=>{}}function i(e){return()=>{}}function o(e){return()=>{}}function a(e){return()=>{}}function s(e){return()=>{}}function l(e){return()=>{}}function c(e){return()=>{}}function u(e){return()=>{}}function d(e){return()=>{}}function h(e){}function p(e){}function f(e){}function m(e){}function g(e){return()=>{}}function v(e){}function y(e){}function b(e){}n.d(t,{Gw:function(){return s},L7:function(){return d},Lk:function(){return i},Nh:function(){return h},PP:function(){return l},dM:function(){return p},eG:function(){return a},gc:function(){return v},hi:function(){return y},ho:function(){return o},iE:function(){return u},lB:function(){return f},oe:function(){return m},qq:function(){return r},ro:function(){return g},uc:function(){return c},yo:function(){return b}})},96122:function(e,t,n){"use strict";n.d(t,{L8:function(){return o},vX:function(){return i}});var r=n(79260);const i="byType";function o(e,t,n=!1){if(t instanceof r.Ay)return t;const i=e.getters["classify"](t),o=new i(t,e,null,n);return o}},67354:function(e,t,n){"use strict";n.d(t,{$:function(){return l}});var r=n(33781);function i(e){return n(93197)(`./${e}`)}var o=n(9776);const a={};function s(e,t,n){const r=e[t];if(r)return r;if("undefined"!==typeof r)return null;try{const r=n.$plugin.getDynamic("models",t);let o;if(o=r?"function"===typeof r?r():r:i(t),o?.default?.prototype)return e[t]=o.default,o.default}catch(a){"MODULE_NOT_FOUND"!==a?.code&&o.error("Find error",t,a)}return e[t]=null,null}function l(e,t,n,i){let o;t=(0,r.AZ)(t).replace(/\//g,"");const l=[`${e}/${t}`,t];for(const r of l)if(o=s(a,r,i),o)return o;return null}},89422:function(e,t,n){"use strict";n.d(t,{AJ:function(){return b},HC:function(){return h},Hh:function(){return m},TF:function(){return y},WI:function(){return g},aW:function(){return w},gh:function(){return _},zp:function(){return v}});var r=n(9274),i=n(24759),o=n(4284),a=n(33781),s=n(18573),l=n(96122),c=n(76291),u=n(9776);function d(e,t){let n=e.types[t];return n||(n={list:[],haveAll:!1,haveSelector:{},haveNamespace:void 0,havePage:void 0,revision:0,generation:0,loadCounter:0,map:(0,r.markRaw)(new Map)},e.types[t]=n),n}function h(e,t){const n={};for(const r of Object.keys(e))delete e[r],n[r]=!0;let i=!1;for(const r of Object.keys(t))i||n[r]||(i=!0),e[r]=t[r];return i?(0,r.reactive)(e):e}function p(e,t,n){return t=n.cleanResource(e,t),h(e,t)}function f(e,t){const{getters:n}=e,r=(0,a.AZ)(t),i=n.keyFieldForType(r),o=e.rootGetters["type-map/optionsFor"](r);return{type:r,keyField:i,opts:o}}function m(e,{data:t,ctx:n,existing:c,cachedArgs:u}){const{getters:h}=n,{type:m,keyField:g,opts:v}=u||f(n,t.type);let y=m;const b=v?.limit;y===o.yx&&(0,s.w)(t);const _=t[g];let w=d(e,y);w.generation++;let E=w.map.get(_);const S=!!E;if(c&&!c.id){const e=p(c,t,h);E=S?p(E,e,h):e}else E=S?p(E,t,h):(0,r.reactive)((0,l.L8)(n,t));if(S||(w.list.push(E),w.map.set(_,E)),b&&w.list.length>b){const e=w.list.shift();w.map.delete(e.id)}return t.baseType&&(y=(0,a.AZ)(t.baseType),w=e.types[y],w&&((0,i.PG)(w.list,E),w.map.set(_,E))),E}function g(e,t){const n=e.types[t];if(n)return n.haveAll=!1,n.haveSelector={},n.haveNamespace=void 0,n.havePage=void 0,n.revision=0,n.generation=0,(0,i.IU)(n.list),n.map.clear(),delete e.types[t],c.A.gcResetType(e,t),!0}function v(e,t){u.log("Reset store: ",e.config.namespace);for(const n of Object.keys(e.types))t(`${e.config.namespace}/forgetType`,n);c.A.gcResetStore(e)}function y(e,t,n){if(t){let r=(0,a.AZ)(t.type);const o=n[`${e.config.namespace}/keyFieldForType`](r),s=t[o];let l=e.types[r];l&&((0,i.Gj)(l.list,t),l.map.delete(s)),t.baseType&&(r=(0,a.AZ)(t.baseType),l=e.types[r],l&&((0,i.Gj)(l.list,t),l.map.delete(s)))}}function b(e,{ctx:t,batch:n}){const i=Object.keys(n),c={};i.forEach((e=>{c[e]=n[e];const r=t.rootGetters["type-map/optionsFor"](e);if(r?.alias?.length>0){const t=r?.alias||[];t.forEach((t=>{c[t]={};for(const[r,i]of Object.entries(n[e]))c[t][r]={...i,type:t}}))}}));const u=Object.keys(c);u.forEach((n=>{const i=(0,a.AZ)("counts"===n?o.i2:n),u=(0,a.BZ)(i),h=d(e,i),f={};h.list.forEach(((e,t)=>{f[e[u]]=t}));const m=[];Object.keys(c[i]).forEach((e=>{const n=f[e],a=c[i][e];if(0===Object.keys(a).length&&void 0!==n)h.map.delete(e),m.push(n);else if(0===Object.keys(a).length);else{i===o.yx&&(0,s.w)(a);const c=(0,r.reactive)((0,l.L8)(t,a));void 0===n?(h.list.push(c),h.map.set(e,c),f[c[u]]=h.list.length-1):p(h.list[n],a,t.getters)}})),m.sort().forEach(((e,t)=>{h.list.splice(e-t,1)}));const g=t.rootGetters["type-map/optionsFor"](n),v=g?.limit;if(v&&h.list.length>v){const e=h.list.shift();h.map.delete(e.id)}h.generation++}))}function _(e,{type:t,data:n,ctx:o,skipHaveAll:a,namespace:s,revision:c}){const{getters:u}=o;if(!n)return;const h=o.rootGetters["type-map/optionsFor"](t),p=h?.limit;p&&(n=n.slice(-p));const f=u.keyFieldForType(t),m=(0,r.reactive)(n.map((e=>(0,l.L8)(o,e)))),g=d(e,t);(0,i.IU)(g.list),g.map.clear(),g.revision=c||0,g.generation++,(0,i.cn)(g.list,m);for(let r=0;r{const i=e.types[t].map.get(n[o]);m(e,{data:n,ctx:r,existing:i,cachedArgs:a})}))}t.Ay={registerType:d,load:m,applyConfig(e,t){e.config||(e.config={}),Object.assign(e.config,t)},loadMulti(e,{data:t,ctx:n}){for(const r of t)m(e,{data:r,ctx:n})},loadSelector(e,{type:t,entries:n,ctx:r,selector:i,revision:o}){const a=d(e,t),s=f(r,n?.[0]?.type);for(const l of n)m(e,{data:l,ctx:r,cachedArgs:s});a.haveSelector[i]=!0,a.revision=o||0},loadAll:_,batchChanges:b,loadMerge(e,{type:t,data:n,ctx:r}){const{commit:i,getters:o}=r,a=o.keyFieldForType(t),s=e.types[t],l=f(r,n?.[0].type);n.forEach((n=>{const i=e.types[t].map.get(n[a]);m(e,{data:n,ctx:r,existing:i,cachedArgs:l})})),s.list.forEach((e=>{n.find((t=>t.id===e.id))||i("remove",e)}))},loadAdd:w,loadPage(e,{type:t,data:n,ctx:o,pagination:a}){if(!n)return;const s=o.getters.keyFieldForType(t),c=(0,r.reactive)(n.map((e=>(0,l.L8)(o,e)))),u=d(e,t);(0,i.IU)(u.list),u.map.clear(),u.generation++,(0,i.cn)(u.list,c);for(let r=0;r{const{name:o,nodePort:a,port:s,targetPort:c}=e,u=r+1;if(i.length>1&&l()(o)&&n.push(t["i18n/t"]("validation.service.ports.name.required",{position:u})),!l()(o)){const e=(0,d.um)(o,"name",t,void 0,n);l()(e)||(n=n.length&&n.length>0?[...n,...e]:e)}if(a){const e=parseInt(a,10);isNaN(e)&&n.push(t["i18n/t"]("validation.service.ports.nodePort.requiredInt",{position:u}))}if(s){const e=parseInt(s,10);isNaN(e)&&n.push(t["i18n/t"]("validation.service.ports.port.requiredInt",{position:u}))}else n.push(t["i18n/t"]("validation.service.ports.port.required",{position:u}));if(c){const e=t["i18n/t"]("validation.service.ports.targetPort.ianaAt",{position:u}),r=parseInt(c,10),i=new RegExp("^\\d+$"),o=i.test(c);if(o)(r<1||r>65535)&&n.push(t["i18n/t"]("validation.service.ports.targetPort.between",{position:u}));else{const r={ianaServiceName:!0,maxLength:15,validChars:"A-Za-z0-9-"},i=(0,d.um)(c,e,t,r,n);l()(i)||n.push(...i)}}else n.push(t["i18n/t"]("validation.service.ports.targetPort.required",{position:u}))})),n)}function p(e,t,n,r){const i=["ClusterIP","NodePort","LoadBalancer"],o=e?.type;return i.includes(o),n}function f(e,t,n,r){if("ExternalName"===e?.type)if(l()(e?.externalName))n.push(t["i18n/t"]("validation.service.externalName.none"));else{const r=(0,d.cO)(e.externalName,"ExternalName",t,void 0,n);l()(r)||(n=n.length&&n.length>0?[...n,...r]:r)}return n}var m=n(10427),g=n.n(m);function v(e,t,n,r){return l()(e?.groups)&&n.push(t["i18n/t"]("validation.prometheusRule.groups.required")),n}function y(e=[],t,n,r){return e.forEach(((e,r)=>{const i=r+1;l()(e?.name)&&n.push(t["i18n/t"]("validation.prometheusRule.groups.valid.name",{index:i})),l()(e?.rules)?n.push(t["i18n/t"]("validation.prometheusRule.groups.valid.singleEntry",{index:i})):e.rules.forEach(((e,r)=>{const o=r+1;g()(e,"alert")&&l()(e?.alert)?n.push(t["i18n/t"]("validation.prometheusRule.groups.valid.rule.alertName",{groupIndex:i,ruleIndex:o})):g()(e,"record")&&l()(e?.record)&&n.push(t["i18n/t"]("validation.prometheusRule.groups.valid.rule.recordName",{groupIndex:i,ruleIndex:o})),(g()(e,"expr")&&l()(e.expr)||!g()(e,"expr"))&&n.push(t["i18n/t"]("validation.prometheusRule.groups.valid.rule.expr",{groupIndex:i,ruleIndex:o})),g()(e,"alert")&&(g()(e,"labels")&&l()(e.labels)||!g()(e,"labels"))&&n.push(t["i18n/t"]("validation.prometheusRule.groups.valid.rule.labels",{groupIndex:i,ruleIndex:o}))}))})),n}function b(e,t,n,r){l()(e?.match)&&l()(e?.["match_re"])&&n.push(t["i18n/t"]("validation.monitoring.route.match"))}function _(e,t,n,r,i){/^\d+[hms]$/.test(e)||n.push(t["i18n/t"]("validation.monitoring.route.interval",{key:i}))}var w=n(65852);function E(e,t,n){let r;r=e.jobTemplate?(0,w.Jt)(e,"jobTemplate.spec.template.spec"):(0,w.Jt)(e,"template.spec"),r.containers&&r.containers.length?r.containers.forEach((e=>{e&&!e.image&&n.push(t["i18n/t"]("workload.validation.containerImage",{name:e.name}))})):n.push(t["i18n/t"]("validation.required",{key:t["i18n/t"]("workload.container.titles.containers")}))}var S=n(77905),x=n.n(S);function k(e="",t,n){try{x().toString(e,{verbose:!0})}catch(r){n.push(t["i18n/t"]("validation.invalidCron"))}}function A(e,t,n){if(!e)return;const{podAffinity:r,podAntiAffinity:i}=e;if(r&&!(0,w.Im)(r)){const{preferredDuringSchedulingIgnoredDuringExecution:e=[],requiredDuringSchedulingIgnoredDuringExecution:i=[]}=r;e.forEach(((e,r)=>{const i={index:r,group:t["i18n/t"]("validation.podAffinity.affinityTitle"),rules:t["i18n/t"]("validation.podAffinity.preferredDuringSchedulingIgnoredDuringExecution")};N(e,i,t,n);const{podAffinityTerm:o={}}=e;T(o,i,t,n),C(o,i,t,n)})),i.forEach(((e,r)=>{const i={index:r,group:t["i18n/t"]("validation.podAffinity.affinityTitle"),rules:t["i18n/t"]("validation.podAffinity.requiredDuringSchedulingIgnoredDuringExecution")};T(e,i,t,n),C(e,i,t,n)}))}if(i&&!(0,w.Im)(i)){const{preferredDuringSchedulingIgnoredDuringExecution:e=[],requiredDuringSchedulingIgnoredDuringExecution:r=[]}=i;e.forEach(((e,r)=>{const i={index:r,group:t["i18n/t"]("validation.podAffinity.antiAffinityTitle"),rules:t["i18n/t"]("validation.podAffinity.preferredDuringSchedulingIgnoredDuringExecution")};N(e,i,t,n);const{podAffinityTerm:o={}}=e;T(o,i,t,n),C(o,i,t,n)})),r.forEach(((e,r)=>{const i={index:r,group:t["i18n/t"]("validation.podAffinity.antiAffinityTitle"),rules:t["i18n/t"]("validation.podAffinity.requiredDuringSchedulingIgnoredDuringExecution")};T(e,i,t,n),C(e,i,t,n)}))}}function N(e,t,n,r){const{weight:i=1}=e;("number"!==typeof i||i>100||i<1)&&r.push(n["i18n/t"]("validation.number.between",{key:n["i18n/t"]("workload.scheduling.matchExpressions.weight"),min:1,max:100,...t}))}function T(e,t,n,r){const{topologyKey:i}=e,o=RegExp("([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]");i&&o.test(i)||r.push(n["i18n/t"]("validation.podAffinity.topologyKey",t))}function C(e,t,n,r){const i=["In","NotIn","Exists","DoesNotExist"],{labelSelector:o}=e;if(o&&!(0,w.Im)(o)){const{matchExpressions:e=[]}=o;e.forEach(((e,o)=>{const{operator:a,values:s}=e;i.includes(a)||r.push(n["i18n/t"]("validation.podAffinity.matchExpressions.operator",t)),"In"===a||"NotIn"===a?s&&s.length||r.push(n["i18n/t"]("validation.podAffinity.matchExpressions.valuesMustBeDefined",t)):s&&s.length&&r.push(n["i18n/t"]("validation.podAffinity.matchExpressions.valueMustBeEmpty",t))}))}}var R=n(4284);function O(e=[],t,n,r=[]){e.some((e=>l()(e.verbs)))&&n.push(t["i18n/t"]("validation.roleTemplate.roleTemplateRules.missingVerb")),e.some((e=>e.resources?.length&&e.nonResourceURLs?.length))&&n.push(t["i18n/t"]("validation.roleTemplate.roleTemplateRules.noResourceAndNonResource")),r[0]===R.lk.ROLE?(e.some((e=>l()(e.resources)))&&n.push(t["i18n/t"]("validation.roleTemplate.roleTemplateRules.missingResource")),e.some((e=>l()(e.apiGroups)))&&n.push(t["i18n/t"]("validation.roleTemplate.roleTemplateRules.missingApiGroup"))):e.some((e=>e.resources?.length&&e.nonResourceUrls?.length))&&n.push(t["i18n/t"]("validation.roleTemplate.roleTemplateRules.noResourceAndNonResource")),e.some((e=>l()(e.resources)&&l()(e.nonResourceURLs)))&&n.push(t["i18n/t"]("validation.roleTemplate.roleTemplateRules.missingOneResource"))}function I(e,t,n,r,i){const o="true"===r[0];return o&&(e||"").match(/^(c-.{5}|local)$/i)&&n.push(t["i18n/t"]("validation.cluster.name")),n}var D={clusterName:I,clusterIp:p,externalName:f,flowOutput:c,groupsAreValid:y,logdna:u,ruleGroups:v,interval:_,servicePort:h,matching:b,containerImages:E,cronSchedule:k,podAffinity:A,roleTemplateRules:O},L=n(1122),P=n(68844),M=n(98258),F=n(78359),B=n(6246),$=n(35038),j=n(20246),U=n.n(j),V=n(65386),K=n.n(V),H=(n(37327),n(17283)),G=n.n(H),z=n(46030),X=n.n(z),q=n(9274),W=n(99855),Y=n(37255),Q=n(9776);const J=["dnsLabel","dnsLabelRestricted","hostname"],Z={disabled:"inactive",notapplied:"Not Applied",notready:"Not Ready",waitapplied:"Wait Applied",outofsync:"Out of Sync","in-progress":"In Progress",gitupdating:"Git Updating",errapplied:"Err Applied",waitcheckin:"Wait Check-In",off:"Disabled",waitingforinfrastructure:"Waiting for Infra",waitingfornoderef:"Waiting for Node Ref"},ee="warning",te="x",ne=1e3,re=3e4,ie={IN_USE:"in-use",IN_PROGRESS:"in-progress",PENDING_ROLLBACK:"pending-rollback",PENDING_UPGRADE:"pending-upgrade",ABORTED:"aborted",ACTIVATING:"activating",ACTIVE:"active",AVAILABLE:"available",BACKED_UP:"backedup",BOUND:"bound",BUILDING:"building",COMPLETED:"completed",CORDONED:"cordoned",COUNT:"count",CREATED:"created",CREATING:"creating",DEACTIVATING:"deactivating",DEGRADED:"degraded",DENIED:"denied",DEPLOYED:"deployed",DEPLOYING:"deploying",DISABLED:"disabled",DISCONNECTED:"disconnected",DRAINED:"drained",DRAINING:"draining",ENABLED:"enabled",ERR_APPLIED:"errapplied",ERROR:"error",ERRORING:"erroring",ERRORS:"errors",EXPIRED:"expired",EXPIRING:"expiring",FAIL:"fail",FAILED:"failed",HEALTHY:"healthy",INACTIVE:"inactive",INFO:"info",INITIALIZING:"initializing",INPROGRESS:"inprogress",LOCKED:"locked",MIGRATING:"migrating",MISSING:"missing",MODIFIED:"modified",NOT_APPLICABLE:"notApplicable",NOT_APLLIED:"notapplied",NOT_READY:"notready",OFF:"off",ORPHANED:"orphaned",OTHER:"other",OUT_OF_SYNC:"outofsync",ON_GOING:"on-going",PASS:"pass",PASSED:"passed",PAUSED:"paused",PENDING:"pending",PROVISIONING:"provisioning",PROVISIONED:"provisioned",PURGED:"purged",PURGING:"purging",READY:"ready",RECONNECTING:"reconnecting",REGISTERING:"registering",REINITIALIZING:"reinitializing",RELEASED:"released",REMOVED:"removed",REMOVING:"removing",REQUESTED:"requested",RESTARTING:"restarting",RESTORING:"restoring",RESIZING:"resizing",RUNNING:"running",SKIP:"skip",SKIPPED:"skipped",STARTING:"starting",STOPPED:"stopped",STOPPING:"stopping",SUCCEEDED:"succeeded",SUCCESS:"success",SUCCESSFUL:"successful",SUPERSEDED:"superseded",SUSPENDED:"suspended",UNAVAILABLE:"unavailable",UNHEALTHY:"unhealthy",UNINSTALLED:"uninstalled",UNINSTALLING:"uninstalling",UNKNOWN:"unknown",UNTRIGGERED:"untriggered",UPDATING:"updating",WAIT_APPLIED:"waitapplied",WAIT_CHECKIN:"waitcheckin",WAITING:"waiting",WARNING:"warning"};function oe(e){return Object.values(ie).find((t=>t.toLowerCase()===e.toLocaleLowerCase()))}const ae={[ie.IN_USE]:{color:"success",icon:"dot-open",label:"In Use",compoundIcon:"checkmark"},[ie.IN_PROGRESS]:{color:"info",icon:"tag",label:"In Progress",compoundIcon:"info"},[ie.PENDING_ROLLBACK]:{color:"info",icon:"dot-half",label:"Pending Rollback",compoundIcon:"info"},[ie.PENDING_UPGRADE]:{color:"info",icon:"dot-half",label:"Pending Update",compoundIcon:"info"},[ie.ABORTED]:{color:"warning",icon:"error",label:"Aborted",compoundIcon:"warning"},[ie.ACTIVATING]:{color:"info",icon:"tag",label:"Activating",compoundIcon:"info"},[ie.ACTIVE]:{color:"success",icon:"dot-open",label:"Active",compoundIcon:"checkmark"},[ie.AVAILABLE]:{color:"success",icon:"dot-open",label:"Available",compoundIcon:"checkmark"},[ie.BACKED_UP]:{color:"success",icon:"backup",label:"Backed Up",compoundIcon:"checkmark"},[ie.BOUND]:{color:"success",icon:"dot",label:"Bound",compoundIcon:"checkmark"},[ie.BUILDING]:{color:"success",icon:"dot-open",label:"Building",compoundIcon:"checkmark"},[ie.COMPLETED]:{color:"success",icon:"dot",label:"Completed",compoundIcon:"checkmark"},[ie.CORDONED]:{color:"info",icon:"tag",label:"Cordoned",compoundIcon:"info"},[ie.COUNT]:{color:"success",icon:"dot-open",label:"Count",compoundIcon:"checkmark"},[ie.CREATED]:{color:"info",icon:"tag",label:"Created",compoundIcon:"info"},[ie.CREATING]:{color:"info",icon:"tag",label:"Creating",compoundIcon:"info"},[ie.DEACTIVATING]:{color:"info",icon:"adjust",label:"Deactivating",compoundIcon:"info"},[ie.DEGRADED]:{color:"warning",icon:"error",label:"Degraded",compoundIcon:"warning"},[ie.DENIED]:{color:"error",icon:"adjust",label:"Denied",compoundIcon:"error"},[ie.DEPLOYED]:{color:"success",icon:"dot-open",label:"Deployed",compoundIcon:"checkmark"},[ie.DISABLED]:{color:"warning",icon:"error",label:"Disabled",compoundIcon:"warning"},[ie.DISCONNECTED]:{color:"warning",icon:"error",label:"Disconnected",compoundIcon:"warning"},[ie.DRAINED]:{color:"info",icon:"tag",label:"Drained",compoundIcon:"info"},[ie.DRAINING]:{color:"warning",icon:"tag",label:"Draining",compoundIcon:"warning"},[ie.ENABLED]:{color:"success",icon:"dot-open",label:"Enabled",compoundIcon:"checkmark"},[ie.ERR_APPLIED]:{color:"error",icon:"error",label:"Error Applied",compoundIcon:"error"},[ie.ERROR]:{color:"error",icon:"error",label:"Error",compoundIcon:"error"},[ie.ERRORING]:{color:"error",icon:"error",label:"Erroring",compoundIcon:"error"},[ie.ERRORS]:{color:"error",icon:"error",label:"Errors",compoundIcon:"error"},[ie.EXPIRED]:{color:"error",icon:"error",label:"Expired",compoundIcon:"warning"},[ie.EXPIRING]:{color:"warning",icon:"error",label:"Expiring",compoundIcon:"error"},[ie.FAIL]:{color:"error",icon:"error",label:"Fail",compoundIcon:"error"},[ie.FAILED]:{color:"error",icon:"error",label:"Failed",compoundIcon:"error"},[ie.HEALTHY]:{color:"success",icon:"dot-open",label:"Healthy",compoundIcon:"checkmark"},[ie.INACTIVE]:{color:"error",icon:"dot",label:"Inactive",compoundIcon:"error"},[ie.INITIALIZING]:{color:"warning",icon:"error",label:"Initializing",compoundIcon:"warning"},[ie.INPROGRESS]:{color:"info",icon:"spinner",label:"In Progress",compoundIcon:"info"},[ie.INFO]:{color:"info",icon:"info",label:"Info",compoundIcon:"info"},[ie.LOCKED]:{color:"warning",icon:"adjust",label:"Locked",compoundIcon:"warning"},[ie.MIGRATING]:{color:"info",icon:"info",label:"Migrated",compoundIcon:"info"},[ie.MISSING]:{color:"warning",icon:"adjust",label:"Missing",compoundIcon:"warning"},[ie.MODIFIED]:{color:"warning",icon:"edit",label:"Modified",compoundIcon:"warning"},[ie.NOT_APPLICABLE]:{color:"warning",icon:"tag",label:"Not Applicable",compoundIcon:"warning"},[ie.NOT_APLLIED]:{color:"warning",icon:"tag",label:"Not Applied",compoundIcon:"warning"},[ie.NOT_READY]:{color:"warning",icon:"tag",label:"Not Ready",compoundIcon:"warning"},[ie.OFF]:{color:"darker",icon:"error",label:"Off"},[ie.ON_GOING]:{color:"info",icon:"info",label:"Info",compoundIcon:"info"},[ie.ORPHANED]:{color:"warning",icon:"tag",label:"Orphaned",compoundIcon:"warning"},[ie.OTHER]:{color:"info",icon:"info",label:"Other",compoundIcon:"info"},[ie.OUT_OF_SYNC]:{color:"warning",icon:"tag",label:"Out Of Sync",compoundIcon:"warning"},[ie.PASS]:{color:"success",icon:"dot-dotfill",label:"Pass",compoundIcon:"checkmark"},[ie.PASSED]:{color:"success",icon:"dot-dotfill",label:"Passed",compoundIcon:"checkmark"},[ie.PAUSED]:{color:"info",icon:"info",label:"Paused",compoundIcon:"info"},[ie.PENDING]:{color:"info",icon:"tag",label:"Pending",compoundIcon:"info"},[ie.PROVISIONING]:{color:"info",icon:"dot",label:"Provisioning",compoundIcon:"info"},[ie.PROVISIONED]:{color:"success",icon:"dot",label:"Provisioned",compoundIcon:"checkmark"},[ie.PURGED]:{color:"error",icon:"purged",label:"Purged",compoundIcon:"error"},[ie.PURGING]:{color:"info",icon:"purged",label:"Purging",compoundIcon:"info"},[ie.READY]:{color:"success",icon:"dot-open",label:"Ready",compoundIcon:"checkmark"},[ie.RECONNECTING]:{color:"error",icon:"error",label:"Reconnecting",compoundIcon:"error"},[ie.REGISTERING]:{color:"info",icon:"tag",label:"Registering",compoundIcon:"info"},[ie.REINITIALIZING]:{color:"warning",icon:"error",label:"Reinitializing",compoundIcon:"warning"},[ie.RELEASED]:{color:"warning",icon:"error",label:"Released",compoundIcon:"warning"},[ie.REMOVED]:{color:"error",icon:"trash",label:"Removed",compoundIcon:"error"},[ie.REMOVING]:{color:"info",icon:"trash",label:"Removing",compoundIcon:"info"},[ie.REQUESTED]:{color:"info",icon:"tag",label:"Requested",compoundIcon:"info"},[ie.RESTARTING]:{color:"info",icon:"adjust",label:"Restarting",compoundIcon:"info"},[ie.RESTORING]:{color:"info",icon:"medicalcross",label:"Restoring",compoundIcon:"info"},[ie.RESIZING]:{color:"warning",icon:"dot",label:"Resizing",compoundIcon:"warning"},[ie.RUNNING]:{color:"success",icon:"dot-open",label:"Running",compoundIcon:"checkmark"},[ie.SKIP]:{color:"info",icon:"dot-open",label:"Skip",compoundIcon:"info"},[ie.SKIPPED]:{color:"info",icon:"dot-open",label:"Skipped",compoundIcon:"info"},[ie.STARTING]:{color:"info",icon:"adjust",label:"Starting",compoundIcon:"info"},[ie.STOPPED]:{color:"error",icon:"dot",label:"Stopped",compoundIcon:"error"},[ie.STOPPING]:{color:"info",icon:"adjust",label:"Stopping",compoundIcon:"info"},[ie.SUCCEEDED]:{color:"success",icon:"dot-dotfill",label:"Succeeded",compoundIcon:"checkmark"},[ie.SUCCESS]:{color:"success",icon:"dot-open",label:"Success",compoundIcon:"checkmark"},[ie.SUCCESSFUL]:{color:"success",icon:"dot-open",label:"Successful"},[ie.SUPERSEDED]:{color:"info",icon:"dot-open",label:"Superseded",compoundIcon:"info"},[ie.SUSPENDED]:{color:"info",icon:"pause",label:"Suspended",compoundIcon:"info"},[ie.UNAVAILABLE]:{color:"error",icon:"error",label:"Unavailable",compoundIcon:"error"},[ie.UNHEALTHY]:{color:"error",icon:"error",label:"Unhealthy",compoundIcon:"error"},[ie.UNINSTALLED]:{color:"info",icon:"trash",label:"Uninstalled",compoundIcon:"info"},[ie.UNINSTALLING]:{color:"info",icon:"trash",label:"Uninstalling",compoundIcon:"info"},[ie.UNKNOWN]:{color:"warning",icon:"x",label:"Unknown",compoundIcon:"warning"},[ie.UNTRIGGERED]:{color:"success",icon:"tag",label:"Untriggered",compoundIcon:"checkmark"},[ie.UPDATING]:{color:"warning",icon:"tag",label:"Updating",compoundIcon:"warning"},[ie.WAIT_APPLIED]:{color:"info",icon:"tag",label:"Wait Applied",compoundIcon:"info"},[ie.WAIT_CHECKIN]:{color:"warning",icon:"tag",label:"Wait Checkin",compoundIcon:"warning"},[ie.WAITING]:{color:"info",icon:"tag",label:"Waiting",compoundIcon:"info"},[ie.WARNING]:{color:"warning",icon:"error",label:"Warning",compoundIcon:"warning"},[ie.DEPLOYING]:{color:"info",icon:"info",label:"Deploying",compoundIcon:"info"}};const se={error:1,warning:2,info:3,success:4,ready:5,notready:6,other:7};function le(e,t,n){if(t)return"text-error";if(n)return"text-info";const r=(e||"active").toLowerCase();let i;return ae[r]&&ae[r].color&&(i=pe.call(this,ae[r].color)),i||(i=ee),`text-${i}`}function ce(e){const t=(e||"active").toLowerCase();return Z[t]?Z[t]:t.split(/-/).map(F.TF).join("-")}function ue(e){const t=[ie.ERROR,ie.FAILED,ie.WARNING,ie.MODIFIED,ie.WAIT_APPLIED,ie.ORPHANED,ie.MISSING,ie.UNKNOWN,ie.NOT_READY,ie.READY],n=Object.keys(e).filter((n=>e[n]>0&&t.includes(n.toLowerCase()))).sort(((e,n)=>t.indexOf(e.toLowerCase())-t.indexOf(n.toLowerCase())));return n[0]?n[0]:ie.UNKNOWN}function de(e,t){return e=e.replace(/^(text|bg)-/,""),`${se[e]||se["other"]} ${t}`}function he(e){return!!e&&("ready"===e?.type?.toLowerCase()&&"waiting"===e?.reason?.toLowerCase())}function pe(e){return G()(e)?e(this):e}class fe{constructor(e,t={},n=null,r=!1){for(const i in e)this[i]=e[i];Object.defineProperty(this,"$ctx",{value:(0,q.markRaw)(t),enumerable:!1}),n&&Object.defineProperty(this,"__rehydrate",{value:n,enumerable:!0,configurable:!0}),r&&Object.defineProperty(this,"__clone",{value:!0,enumerable:!0,configurable:!0,writable:!0})}get $getters(){return this.$ctx.getters}get $rootGetters(){return this.$ctx.rootGetters}get $dispatch(){return this.$ctx.dispatch}get $state(){return this.$ctx.state}get $rootState(){return this.$ctx.rootState}get customValidationRules(){return[]}get _key(){const e=this.metadata;if(e){if(e.uid)return e.uid;if(e.namespace)return`${this.type}/${e.namespace}/${e.name}`}return this.id?`${this.type}/${this.id}`:`${this.type}/${Math.random()}`}get schema(){return this.$getters["schemaFor"](this.type)}toString(){return`[${this.type}: ${this.id}]`}get typeDisplay(){const e=this.schema;return e?this.$rootGetters["type-map/labelFor"](e):"?"}get nameDisplay(){return this.displayName||this.spec?.displayName||this.metadata?.annotations?.[r.ks]||this.name||this.metadata?.name||this.id}get nameSort(){return(0,M.RY)(this.nameDisplay).toLowerCase()}get namespacedName(){const e=this.metadata?.namespace,t=this.nameDisplay;return e?`${e}:${t}`:t}get namespacedNameSort(){return(0,M.RY)(this.namespacedName).toLowerCase()}get groupByLabel(){const e=this.metadata?.namespace;let t;return t=e?this.t("resourceTable.groupLabel.namespace",{name:(0,F.ZD)(e)}):this.t("resourceTable.groupLabel.notInANamespace"),t}setLabels(){throw new Error("Implement setLabels in subclass")}setLabel(){throw new Error("Implement setLabel in subclass")}setAnnotations(e){throw new Error("Implement setAnnotations in subclass")}setAnnotation(e,t){throw new Error("Implement setAnnotation in subclass")}get stateDisplay(){return ce(this.state)}get stateColor(){return le.call(this,this.state,this.stateObj?.error,this.stateObj?.transitioning)}get stateBackground(){return this.stateColor.replace("text-","bg-")}get stateIcon(){let e=!1,t=!1;if(this.metadata&&this.metadata.state&&(e=this.metadata.state.transitioning,t=this.metadata.state.error),e)return"icon icon-spinner icon-spin";if(t)return"icon icon-error";const n=(this.state||"").toLowerCase();let r;return ae[n]&&ae[n].icon&&(r=pe.call(this,ae[n].icon)),r||(r=te),`icon icon-${r}`}get stateSort(){return de(this.stateColor,this.stateDisplay)}get stateDescription(){const e=this.stateObj?.transitioning||!1,t=this.stateObj?.error||!1,n=this.stateObj?.message;return e||t?(0,F.TF)(n):""}get stateObj(){return this.metadata?.state}waitForTestFn(e,t,n,r){return(0,$.f)((()=>e.apply(this)),t,n||re,r||ne,!0)}waitForState(e,t,n){return this.waitForTestFn((()=>(this.state||"").toLowerCase()===e.toLowerCase()),`state=${e}`,t,n)}waitForTransition(){return this.waitForTestFn((()=>!this.transitioning),"transition completion",void 0,void 0)}waitForAction(e){return this.waitForTestFn((()=>this.hasAction(e)),`action=${e}`,void 0,void 0)}waitForLink(e){return this.waitForTestFn((()=>this.hasLink(e)),`link=${e}`,void 0,void 0)}hasCondition(e){return this.isCondition(e,null)}isCondition(e,t="True"){if(!this.status||!this.status.conditions)return!1;const n=(0,a.jq)(this.status.conditions||[],"type",e);return!!n&&(!t||(n.status||"").toLowerCase()===`${t}`.toLowerCase())}waitForCondition(e,t="True",n=re,r=ne){return this.waitForTestFn((()=>this.isCondition(e,t)),`condition ${e}=${t}`,n,r)}get availableActions(){const e=this._availableActions;let t=null;const n=e.filter((e=>{if(!1===e.enabled)return!1;const n=e.divider,r=!n||n&&!t;return t=n,r}));while(n.length&&n[0].divider)n.shift();while(n.length&&n[n.length-1].divider)n.pop();for(let r=1;r{const t={...e},r=t.enabled,i=typeof r;switch(i){case"undefined":t.enabled=!0;break;case"function":Object.defineProperty(t,"enabled",{get:()=>r(this)});break;case"boolean":break;default:Q.warn(`Unsupported 'enabled' property type for action: ${e.label||e.labelKey}`),delete t.enabled;break}n.push(t)}))),n}get canDelete(){return this._canDelete}get _canDelete(){return this.hasLink("remove")&&this.$rootGetters["type-map/optionsFor"](this.type).isRemovable}get canClone(){return!0}get canUpdate(){return this.hasLink("update")&&this.$rootGetters["type-map/optionsFor"](this.type).isEditable}get canCustomEdit(){return this.$rootGetters["type-map/hasCustomEdit"](this.type,this.id)}get canCreate(){return!(this.schema&&!this.schema?.collectionMethods.find((e=>"post"===e.toLowerCase())))&&this.$rootGetters["type-map/optionsFor"](this.type).isCreatable}get canViewInApi(){try{return this.hasLink("self")&&this.$rootGetters["prefs/get"](o.HZ)}catch{return this.hasLink("self")&&this.$rootGetters["prefs/get"](o.IJ)}}get canYaml(){return this.hasLink("view")}get canEditYaml(){return!this.schema?.resourceMethods?.find((e=>"blocked-PUT"===e))&&this.canUpdate}hasLink(e){return!!this.linkFor(e)}linkFor(e){return(this.links||{})[e]}followLink(e,t={}){if(t.url||(t.url=(this.links||{})[e]),t.urlSuffix&&(t.url+=t.urlSuffix),!t.url)throw new Error(`Unknown link ${e} on ${this.type} ${this.id}`);return this.$dispatch("request",{opt:t,type:this.type})}hasAction(e){return!!this.actionLinkFor(e)}actionLinkFor(e){return(this.actions||this.actionLinks||{})[e]}doAction(e,t,n={}){return this.$dispatch("resourceAction",{resource:this,actionName:e,body:t,opt:n})}async doActionGrowl(e,t,n={}){try{return await this.$dispatch("resourceAction",{resource:this,actionName:e,body:t,opt:n})}catch(r){this.$dispatch("growl/fromError",{title:this.$rootGetters["i18n/t"]("generic.notification.title.error"),err:r.data||r},{root:!0})}}patch(e,t={},n=!1,r=!1){if(t.url||(t.url=this.linkFor("view")||this.linkFor("self")),t.method="patch",t.headers=t.headers||{},!t.headers["content-type"]){const e=n?"application/strategic-merge-patch+json":"application/json-patch+json";t.headers["content-type"]=e}t.data=e;const i=this.$dispatch("request",{opt:t,type:this.type});return r?i.catch((e=>{const t=this.t("resource.errors.update",{name:this.name});Q.error(t,e),this.$dispatch("growl/error",{title:t,message:e?.message,timeout:5e3},{root:!0})})):i}save(){return this._save(...arguments)}cleanForSave(e,t){return delete e.__rehydrate,delete e.__clone,e}processSaveResponse(e){}async _save(e={}){const t=!this.id,n=this.validationErrors(this,e);if(!l()(n))return Promise.reject(n);if(this.metadata?.resourceVersion&&(this.metadata.resourceVersion=`${this.metadata.resourceVersion}`),!e.url)if(t){const t=this.$getters["schemaFor"](this.type);let n=t.linkFor("collection");t.attributes&&t.attributes.namespaced&&this.metadata&&this.metadata.namespace&&(n+=`/${this.metadata.namespace}`),e.url=n}else e.url=this.linkFor("update")||this.linkFor("self");if(e.method||(e.method=t?"post":"put"),e.headers||(e.headers={}),e.headers["content-type"]||(e.headers["content-type"]="application/json"),e.headers["accept"]||(e.headers["accept"]="application/json"),e.data=this.toSave()||{...this},e.data._type&&(e.data.type=e.data._type),e.data._name&&(e.data.name=e.data._name),e.data._labels&&(e.data.labels=e.data._labels),e.data._annotations&&(e.data.annotations=e.data._annotations),e.data=this.cleanForSave(e.data,t),e?.replace&&"put"===e.method){const t=e.url.includes("?")?"&":"?";e.url=`${e.url}${t}_replace=true`,delete e.replace}try{const n=await this.$dispatch("request",{opt:e,type:this.type});this.processSaveResponse(n),n&&"Table"!==n.kind&&await this.$dispatch("load",{data:n,existing:t?this:void 0})}catch(r){return this.type&&this.id&&409===r?._status&&await this.$dispatch("find",{type:this.type,id:this.id,opt:{force:!0}}),Promise.reject(r)}return this}remove(){return this._remove(...arguments)}async _remove(e={}){e.url||(e.url=this.linkFor("self")),e.method="delete";const t=await this.$dispatch("request",{opt:e,type:this.type});204===t?._status&&await this.$dispatch("ws.resource.remove",{data:this})}currentRoute(){return window.$globalApp.$route}currentRouter(){return window.$globalApp.$router}get listLocation(){return{name:"c-cluster-product-resource",params:{product:this.$rootGetters["productId"],cluster:this.$rootGetters["clusterId"],resource:this.type}}}get _detailLocation(){const e=this.$getters["schemaFor"](this.type),t=this.id?.replace(/.*\//,"");return{name:`c-cluster-product-resource${e?.attributes?.namespaced?"-namespace":""}-id`,params:{product:this.$rootGetters["productId"],cluster:this.$rootGetters["clusterId"],resource:this.type,namespace:this.metadata?.namespace,id:t}}}get detailLocation(){return this._detailLocation}goToDetail(){this.currentRouter().push(this.detailLocation)}goToClone(e={}){const t=this.detailLocation;t.query={...t.query,[i.g]:i.dT,[i.AS]:i.xz,...e},this.currentRouter().push(t)}goToEdit(e={}){const t=this.detailLocation;t.query={...t.query,[i.g]:i.G5,[i.AS]:i.xz,...e},this.currentRouter().push(t)}goToViewConfig(e={}){const t=this.detailLocation;t.query={...t.query,[i.g]:i.nW,[i.AS]:i.au,...e},this.currentRouter().push(t)}goToEditYaml(){const e=this.detailLocation;e.query={...e.query,[i.g]:i.G5,[i.AS]:i.zD},this.currentRouter().push(e)}goToViewYaml(){const e=this.detailLocation;e.query={...e.query,[i.g]:i.nW,[i.AS]:i.zD},this.currentRouter().push(e)}cloneYaml(e={}){const t=this.detailLocation;t.query={...t.query,[i.g]:i.dT,[i.AS]:i.zD,...e},this.currentRouter().push(t)}async download(){const e=await this.followLink("view",{headers:{accept:"application/yaml"}}),t=await this.cleanForDownload(e.data);(0,L.PE)(`${this.nameDisplay}.yaml`,t,"application/yaml")}async downloadBulk(e){const t={},n=[];for(const i of e){let e=`${i.nameDisplay}.yaml`,t=2;while(n.includes(e))e=`${i.nameDisplay}_${t++}.yaml`;n.push(e)}await(0,P.hF)(e,10,((e,r)=>e.followLink("view",{headers:{accept:"application/yaml"}}).then((async e=>{const i=e.data||e,o=await this.cleanForDownload(i);t[`resources/${n[r]}`]=o}))));const r=await(0,L.jl)(t);(0,L.PE)("resources.zip",r,"application/zip")}viewInApi(){window.open(this.links.self,"_blank")}promptRemove(e){e||(e=this),this.$dispatch("promptRemove",e)}get confirmRemove(){return!1}applyDefaults(){}get urlFromAttrs(){const e=this.$getters["schemaFor"](this.type),{metadata:{namespace:t="default"}}=this;let n=e.links.collection;const r=e?.attributes;if(!r)throw new Error("Attributes must be present on the schema");const{group:i,resource:o}=r;return n=`${n.slice(0,n.indexOf("/v1"))}/apis/${i}/namespaces/${t}/${o}`,n}cleanYaml(e,t="edit"){try{const n=U().load(e);"edit"!==t&&this.$dispatch("cleanForNew",n),n._type&&(n.type=n._type,delete n._type);const r=U().dump(n,{skipInvalid:!0});return r}catch(n){return null}}cleanForNew(){this.$dispatch("cleanForNew",this)}cleanForDiff(){this.$dispatch("cleanForDiff",this.toJSON())}async cleanForDownload(e){return this.$dispatch("cleanForDownload",e)}yamlForSave(e){try{const t=U().load(e);if(t)return this._type&&(t._type=t.type),U().dump(t)}catch(t){return null}}async saveYaml(e){await this._saveYaml(e)}async _saveYaml(e){const t=U().load(e);if(this.schema?.attributes?.namespaced&&!t.metadata.namespace){const e=this.$rootGetters["i18n/t"]("resourceYaml.errors.namespaceRequired");throw e}let n;const r=!this.id,i={"content-type":"application/yaml",accept:"application/json"};n=r?await this.schema.followLink("collection",{method:"POST",headers:i,data:e}):await this.followLink("update",{method:"PUT",headers:i,data:e}),await this.$dispatch("load",{data:n,existing:r?this:void 0}),this.isSpoofed&&await this.$dispatch("cluster/findAll",{type:this.type,opt:{force:!0}},{root:!0})}get modelValidationRules(){const e=[],t=this?.customValidationRules.filter((e=>!!e.validators||!!e.required)).map((e=>{const t=(0,B.A)(this.t,{displayKey:e?.translationKey?this.t(e.translationKey):"Value"});return{path:e.path,rules:[...e.validators||[],...e.required?["required"]:[],...["dnsLabel","dnsLabelRestricted","hostname"].includes(e.type)?[e.type]:[]].map((e=>{if(e.includes(":")){const[n,r]=e.split(":");return t[n](r)}return t[e]})).filter((e=>!!e))}})).filter((e=>e.rules.length>0));return e.push(...t),e}customValidationErrors(e,t=[]){const n=[];let{customValidationRules:r}=this;return l()(r)||(G()(r)&&(r=r()),r.filter((e=>!t.includes(e.path))).forEach((t=>{const{path:r,requiredIf:i,validators:o=[],type:a}=t;let s=(0,w.Jt)(e,r);const c=K()(o||[]);let u=r;if(t.translationKey&&this.$rootGetters["i18n/exists"](t.translationKey)&&(u=this.t(t.translationKey)),X()(s)&&(s=s.trim()),i){const t=(0,w.Jt)(e,i);!l()(t)&&l()(s)&&0!==s&&n.push(this.t("validation.required",{key:u}))}if((0,d.xR)(s,t,u,this.$rootGetters,n),(0,d.iK)(s,t,u,this.$rootGetters,n),!l()(s)&&J.includes(a)){const t=(s||"").toLowerCase();t!==s&&(s=t,e[r]=s),n.push(...(0,d.OH)(s,a,u,this.$rootGetters,n))}c.forEach((t=>{const r=t.split(":"),i=r.slice(0,1),o=r.slice(1)||null,a=Object.prototype.hasOwnProperty.call(D,i);if(!l()(i)&&a)D[i](s,this.$rootGetters,n,o,u,e);else if(!l()(i)&&!a){const t=this.$rootState.$plugin?.getValidator(i);t?t(s,this.$rootGetters,n,o,u,e):Q.warn(this.t("validation.custom.missing",{validatorName:i}))}}))}))),n}validationErrors(e=this,t={}){return this.customValidationErrors(e)}get ownersByType(){const e=this.metadata?.ownerReferences||[],t={};return e.forEach((e=>{t[e.kind]?t[e.kind].push(e):t[e.kind]=[e]})),t}get owners(){const e=[];for(const t in this.ownersByType){const n=this.$rootGetters["cluster/schema"](t);if(n){const r=n.id,i=this.$rootGetters["cluster/all"](r);this.ownersByType[t].forEach(((t,n)=>{const r=i.find((e=>e?.metadata?.uid===t.uid));r&&e.push(r)}))}}return e}get details(){return this._details}get _details(){const e=[];return this.owners?.length>0&&e.push({label:this.t("resourceDetail.detailTop.ownerReferences",{count:this.owners.length}),formatter:"ListLinkDetail",content:this.owners.map((e=>({key:e.id,row:e,col:{},value:e.metadata.name})))}),(0,w.Jt)(this,"metadata.deletionTimestamp")&&e.push({label:this.t("resourceDetail.detailTop.deleted"),formatter:"LiveDate",formatterOpts:{addSuffix:!0},content:(0,w.Jt)(this,"metadata.deletionTimestamp")}),e}get t(){return this.$rootGetters["i18n/t"]}findOwners(){return this._getRelationship("owner","from")}getOwners(){return this._getRelationship("owner","from")}findOwned(){return this._findRelationship("owner","to")}_relationshipsFor(e,t){const n={selectors:[],ids:[]};if(!this.metadata?.relationships?.length)return n;for(const r of this.metadata.relationships)if(("any"===e||r.rel===e)&&r[`${t}Type`])if(r.selector)(0,a.cn)(n.selectors,{type:r.toType,namespace:r.toNamespace,selector:r.selector});else{const e=r[`${t}Type`];let i=r[`${t}Namespace`],o=r[`${t}Id`];if(!i&&o.includes("/")){const e=o.indexOf("/");i=o.substr(0,e),o=o.substr(e+1)}const s=(i?`${i}/`:"")+o;(0,a.PG)(n.ids,{type:e,namespace:i,name:o,id:s})}return n}_getRelationship(e,t){const n=this._relationshipsFor(e,t);return n.selectors?.length&&Q.warn("Sync request for a relationship that is a selector"),n.ids||[]}async _findRelationship(e,t){const{selectors:n,ids:r}=this._relationshipsFor(e,t),i=[];for(const o of n){const e=await this.$dispatch("findMatching",o);(0,a.cn)(i,e.data)}for(const o of r){const{type:e,id:t}=o;let n=this.$getters["byId"](e,t);if(!n)try{n=await this.$dispatch("find",{type:e,id:t})}catch{}n&&(0,a.PG)(i,n)}return i}get shortId(){const e=this.id.split("/");return e.length>1?e[1]:e[0]}toJSON(){const e={},t=Object.keys(this);for(const n of t)this[n]?.toJSON?e[n]=this[n].toJSON():e[n]=(0,w.o8)(this[n]);return e}toSave(){}get creationTimestamp(){return this.metadata?.creationTimestamp}get yamlFolding(){return[]}}},73474:function(e,t,n){"use strict";n.d(t,{A:function(){return d},T:function(){return u}});var r=n(71445),i=n(93271),o=n.n(i),a=n(87579),s=n.n(a),l=n(78359),c=n(79260);function u(e){const t=["state","name","description","labels","annotations"];return t.forEach((t=>delete e[t])),e}class d extends c.Ay{constructor(e,t,n=null,r=!1){const i=u(e);super(i,t,n,r)}get labels(){const e=this.metadata?.labels||{};return o()(e,((e,t)=>(0,l.HV)(t,r.lq)))}setLabels(e){this.metadata||(this.metadata={});const t=this.metadata.labels||{},n=s()(t,((e,t)=>(0,l.HV)(t,r.lq)));this.metadata["labels"]={...n,...e}}setLabel(e,t){t?(this.metadata||(this.metadata={}),this.metadata.labels||(this.metadata.labels={}),this.metadata.labels[e]=t):this.metadata?.labels&&(this.metadata.labels[e]=void 0,delete this.metadata.labels[e])}get annotations(){const e=this.metadata?.annotations||{};return o()(e,((e,t)=>(0,l.HV)(t,r.S5)))}setAnnotations(e){this.metadata||(this.metadata={});const t=this.metadata.annotations||{},n=s()(t,((e,t)=>(0,l.HV)(t,r.S5)));this.metadata["annotations"]={...n,...e}}setAnnotation(e,t){t?(this.metadata||(this.metadata={}),this.metadata.annotations||(this.metadata.annotations={}),this.metadata.annotations[e]=t):this.metadata?.annotations&&(this.metadata.annotations[e]=void 0,delete this.metadata.annotations[e])}get state(){return this.stateObj?.name||"unknown"}}},79325:function(e,t,n){"use strict";n.d(t,{A:function(){return _}});var r=n(71445),i=n(87579),o=n.n(i),a=n(24759),s=n(78359),l=n(79260),c=n(65852),u=n(29888),d=n(33781),h=n(46030),p=n.n(h),f=n(17410),m=n.n(f),g=n(15510),v=n.n(g),y=n(9776);const b=["string","date","blob","enum","multiline","masked","password","dnsLabel","hostname"];class _ extends l.Ay{setLabels(e){const t=this.labels||{},n=o()(t,((e,t)=>(0,s.HV)(t,r.lq)));this["labels"]={...n,...e}}setLabel(e,t){t?(this.labels||(this.labels={}),this.labels[e]=t):this.labels&&(this.labels[e]=void 0,delete this.labels[e])}setAnnotations(e){const t=this.annotations||{},n=o()(t,((e,t)=>(0,s.HV)(t,r.S5)));this["annotations"]={...n,...e}}setAnnotation(e,t){t?(this.annotations||(this.annotations={}),this.annotations[e]=t):this.annotations&&(this.annotations[e]=void 0,delete this.annotations[e])}setResourceQuotas(e){const t=["resourceQuota","namespaceDefaultResourceQuota"];t.forEach((t=>{this[t]={...e[t]}}))}isCondition(e,t="True"){if(!this.conditions)return!1;const n=(0,a.jq)(this.conditions||[],"type",e);return!!n&&(!t||(n.status||"").toLowerCase()===`${t}`.toLowerCase())}validationErrors(e=this,t={ignoreFields:void 0}){const n=[],{type:r,schema:i}=e,o=(0,d.AZ)(r);if(!r)return y.warn(this.t("validation.noType"),e),n;if(!i)return n;const a=i.resourceFields||{},h=Object.keys(a);let f,g,_,w;for(let m=0;m0)r.push(this.t("validation.required",{key:w})),n.push(...r);else{if("id"!==g&&!v()(_)&&l.qE.includes(i)){const t=(_||"").toLowerCase();t!==_&&(_=t,e[g]=_),r.push(...(0,u.OH)(_,i,w,this.$rootGetters,r))}n.push(...r)}}const E=super.validationErrors(this,t);return m()([...n,...E])}}},18573:function(e,t,n){"use strict";n.d(t,{P:function(){return o},w:function(){return i}});var r=n(33781);function i(e){e._id=(0,r.AZ)(e.id),e._group=(0,r.AZ)(e.attributes?.group)}function o(e){delete e._id,delete e._group}},38991:function(e,t,n){"use strict";n.d(t,{A:function(){return c}});var r=n(71445),i=n(73474),o=n(3196),a=n(65852);const s=["metadata.resourceVersion","metadata.fields","metadata.clusterName","metadata.deletionGracePeriodSeconds","metadata.generateName"],l=o.Ng.filter((e=>!s.includes(e)));class c extends i.A{get name(){return this.metadata?.name||this._name}get namespace(){return this.metadata?.namespace}get description(){return this.metadata?.annotations?.[r.tC]||this.spec?.description||this._description}set description(e){this.metadata?.annotations&&(this.metadata.annotations[r.tC]=e),this.spec&&(this.spec.description=e),this._description=e}cleanForSave(e,t){const n=super.cleanForSave(e);for(const r of l)(0,a.BJ)(n,r);return n}}},23348:function(e,t,n){"use strict";n.d(t,{A:function(){return i}});var r=n(38991);class i extends r.A{constructor(e,t,n=null,r=!1){const i=e.description;super(e,t,n,r),this.description=i}get description(){return this._description}set description(e){this._description=e}toJSON(){const e=super.toJSON();return e.description=this.description,delete e._description,e}toSave(){return this.toJSON()}}},62893:function(e,t,n){"use strict";n.r(t);var r=n(25443),i=n(78359),o=n(4284),a=n(34779);const s=a.SUBTYPE_MAPPING.CLUSTER.key;t["default"]={data(){return{warning:"",info:""}},computed:{...(0,r.aH)("action-menu",["toRemove"]),...(0,r.L8)({t:"i18n/t"}),names(){return this.toRemove.map((e=>e.nameDisplay)).slice(0,5)},plusMore(){const e=this.toRemove.length-this.names.length;return this.t("promptRemove.andOthers",{count:e})}},watch:{value:{handler(e){this.handleRoleDeletionCheck(e,e[0].type,this.$route.hash)},immediate:!0}},methods:{resourceNames:i.Nr,async handleRoleDeletionCheck(e,t,n){let r,i;this.warning="";let a=0;const l=new Set;switch(this.info=this.t("rbac.globalRoles.waiting",{count:e.length}),t){case o.Mc.GLOBAL_ROLE:r=o.Mc.GLOBAL_ROLE_BINDING,i="globalRoleName";break;default:r=n.includes(s)?o.Mc.CLUSTER_ROLE_TEMPLATE_BINDING:o.Mc.PROJECT_ROLE_TEMPLATE_BINDING,i="roleTemplateName";break}try{const t=await this.$store.dispatch("management/request",{url:`/v1/${r}`,method:"get"},{root:!0}),n=await this.$store.dispatch("management/request",{url:`/v1/${o.Mc.USER}`,method:"get"},{root:!0}),s=n.data?.reduce(((e,t)=>(t.username&&(e[t.id]=t),e)),{});t.data&&t.data.length?(e.forEach((e=>{const n=t.data.filter((t=>t[i]===e.id));if(n.length){const e=[...new Set(n.map((e=>e.userName)).filter((e=>s[e])))];e.length&&(a++,e.forEach((e=>l.add(e))))}})),a&&l.size?(this.info="",this.warning=this.t("rbac.globalRoles.usersBound",{count:l.size})):this.info=this.t("rbac.globalRoles.notBound",null,!0)):this.info=this.t("rbac.globalRoles.notBound",null,!0)}catch(c){this.info=this.t("rbac.globalRoles.unableToCheck")}}}}},631:function(e,t,n){"use strict";n.d(t,{CB:function(){return l},bh:function(){return u},do:function(){return c}});n(4284);var r=n(71445),i=(n(23967),n(68844),n(65852),n(24759)),o=(n(71898),n(96122),n(98258),n(78359),n(45044)),a=n(20732),s=n.n(a);n(67354),n(9776);r.W8._RANCHER,r.W8._EXPERIMENTAL,r.W8._PARTNER;const l="windows",c="linux";function u(e,t,n=!0){const a=e.versions;return t&&!(0,i.cy)(t)&&(t=[t]),a.filter((e=>{const i=(e?.annotations?.[r.W8.PERMITTED_OS]||c).split(",");return!(!n&&(0,o.V1)(e.version))&&(!t||0===s()(t,i).length)}))}},31165:function(e,t,n){"use strict";n.d(t,{N8:function(){return s},Vw:function(){return l},Wt:function(){return a},r$:function(){return o}});n(4284);const r={},i=function(e,t){return r[e]={def:t},e},o=function(e){return{get(){return this.$store.getters["features/get"](e)},set(e){throw new Error("The feature store only supports getting")}}},a=(i("multi-cluster-management",!0),i("legacy",!1),i("rke2",!0),i("rke1-ui",!0),i("unsupported-storage-drivers",!1)),s=(i("continuous-delivery",!0),i("harvester",!0),i("harvester-baremetal-container-workload",!1),i("provisioningv2-fleet-workspace-back-population",!1)),l=i("ui-sql-cache",!1);i("uiextension",!0),i("provisioningprebootstrap",!1)},97538:function(e,t,n){"use strict";n.d(t,{AN:function(){return o},DX:function(){return b},EI:function(){return h},G$:function(){return _},HZ:function(){return E},Hu:function(){return d},IJ:function(){return w},JV:function(){return u},Mu:function(){return p},Pz:function(){return S},Ri:function(){return l},aP:function(){return f},bc:function(){return x},gM:function(){return A},jn:function(){return c},kJ:function(){return y},kc:function(){return m},qv:function(){return v},xL:function(){return g}});n(41890),n(4284),n(65852),n(9776);const r={};const i=function(e,t,n={}){const i=!0===n.parseJSON,o=!0===n.asCookie,a=!1!==n.asUserPreference,s=n.options,l=n.inheritFrom;return r[e]={def:t,options:s,parseJSON:i,asCookie:o,asUserPreference:a,inheritFrom:l,mangleRead:n.mangleRead,mangleWrite:n.mangleWrite},e},o=function(e){return{get(){return this.$store.getters["prefs/get"](e)},set(t){this.$store.dispatch("prefs/set",{key:e,value:t})}}},a=!0,s=!0,l=(i("cluster",""),i("last-namespace","")),c=(i("ns-by-cluster",{},{parseJSON:a}),i("workspace",""),i("open-groups",["cluster","policy","rbac","serviceDiscovery","storage","workload"],{parseJSON:a})),u=i("fav-type",[],{parseJSON:a}),d=i("pinned-clusters",[],{parseJSON:a}),h=i("group-by","namespace"),p=i("diff","unified",{options:["unified","split"]}),f=(i("theme","auto",{options:["light","auto","dark"],asCookie:s,parseJSON:a,mangleRead:e=>e.replace(/^ui-/,""),mangleWrite:e=>`ui-${e}`}),i("pcs","",{asCookie:s,asUserPreference:!1}),i("locale","en-us",{asCookie:s}),i("keymap","sublime",{options:["sublime","emacs","vim"]})),m=i("per-page",100,{options:[10,25,50,100],parseJSON:a}),g=(i("logs-wrap",!0,{parseJSON:a}),i("logs-time",!0,{parseJSON:a}),i("logs-range","30 minutes",{parseJSON:a}),i("hide-repos",[],{parseJSON:a}),i("hide-desc",[],{parseJSON:a})),v=i("hide-sensitive",!0,{options:[!0,!1],parseJSON:a}),y=i("show-pre-release",!1,{options:[!1,!0],parseJSON:a}),b=(i("chart-mode","featured",{parseJSON:a}),i("date-format","ddd, MMM D YYYY",{options:["ddd, MMM D YYYY","ddd, D MMM YYYY","D/M/YYYY","M/D/YYYY","YYYY-MM-DD"]})),_=i("time-format","h:mm:ss a",{options:["h:mm:ss a","HH:mm:ss"]}),w=(i("time-zone","local"),i("dev",!1,{parseJSON:a})),E=i("view-in-api",!1,{parseJSON:a,inheritFrom:w}),S=i("all-namespaces",!1,{parseJSON:a,inheritFrom:w}),x=(i("theme-shortcut",!1,{parseJSON:a,inheritFrom:w}),i("last-visited","home",{parseJSON:a}),i("seen-whatsnew","",{parseJSON:a}),i("read-whatsnew","",{parseJSON:a}),i("after-login-route","home",{parseJSON:a}),i("home-page-cards",{},{parseJSON:a}),i("plugin-developer",!1,{parseJSON:a,inheritFrom:w})),k="rke1",A="rke2";i("provisioner",A,{options:[k,A]}),i("scale-pool-prompt",null,{parseJSON:a})},65505:function(e,t,n){"use strict";n.d(t,{e:function(){return r},w:function(){return i}});const r={CLUSTER:"cluster",RANCHER:"rancher",MANAGEMENT:"management"},i="_"},90626:function(e,t,n){"use strict";n.d(t,{f7:function(){return o},lm:function(){return i},QF:function(){return r}});n(37386),n(4284),n(97538),n(24759),n(65852),n(78359),n(8864),n(93786),n(90016),n(33781),n(98258),n(8164);n(61972),n(9274);const r="__[[spoofed]]__",i="__[[spoofedapi]]__",o={V2_MONITORING:"v2-monitoring",PROJECT:"project",NO_PROJECT:"no-project",NOT_V1_ISTIO:"not-v1-istio",MULTI_CLUSTER:"multi-cluster",NEUVECTOR_NAMESPACE:"neuvector-namespace",ADMIN:"admin-user",MCM_DISABLED:"mcm-disabled",NOT_STANDALONE_HARVESTER:"not-standalone-harvester"}},75889:function(e,t,n){"use strict";n.d(t,{BA:function(){return S},ER:function(){return d},Eb:function(){return w},_R:function(){return b},gb:function(){return E}});var r=n(20246),i=n.n(r),o=n(76198),a=n(4284),s=n(65852),l=n(15510),c=n.n(l),u=n(53629);const d=async e=>{const t=e.getters["cluster/schemaFor"](a.Rp.ALERTMANAGERCONFIG);if(t)return await t.fetchResourceFields(),{receiverSchema:t.schemaDefinitions?.[`${t.schemaDefinition.id}.spec.receivers`],routeSchema:t.schemaDefinitions?.[`${t.schemaDefinition.id}.spec.route`]}},h="cattle-monitoring-system/alertmanager-rancher-monitoring-alertmanager",p="cattle-monitoring-system/rancher-monitoring-alertmanager",f="alertmanager.yaml";async function m(e){const t=await e("cluster/find",{type:a.Rp.ALERTMANAGER,id:p},{root:!0});return t?.spec?.configSecret?`${t.namespace}/${t?.spec?.configSecret}`:h}async function g(e){const t=await m(e,!1);try{return await e("cluster/find",{type:a.bB,id:t},{root:!0})}catch(n){const[r,i]=t.split("/"),o=await e("cluster/create",{type:a.bB},{root:!0});return o.metadata={namespace:r,name:i},o}}function v(e){e.data=e.data||{};const t=e.data[f],n=t?(0,o.u)(t):"{}",r=i().load(n);return r.receivers=r.receivers||[],r.route=r.route||{},r.route.routes=r.route.routes||[],r}async function y(e){const t=await g(e);return{config:v(t),secret:t}}async function b(e,t,n,r){const{config:a,secret:l}=await y(e);(0,s.hZ)(a,t,(0,s.Jt)(a,t)||[]),_(a.route.routes);const c=r((0,s.Jt)(a,t));(0,s.hZ)(a,t,c);const d=a.route.routes,h=d.findIndex((e=>e.name===u.ROOT_NAME));if(d.forEach((e=>{e.name&&delete e.name})),h>=0){const e=d.splice(h,1)[0];e.routes=d,a.route=e}const p=i().dump(a),m=(0,o.KA)(p);l.data[f]=m,await l.save()}function _(e){e.forEach(((e,t)=>{e.name=e.name||w(t)}))}function w(e){return`route-${e}`}function E(e){try{const t=v(e),n=t.route?.routes||[];return!n.some(c())}catch(t){return!1}}function S(e){return e["type-map/optionsFor"](a.bB).isCreatable}},53864:function(e,t,n){"use strict";n.d(t,{e:function(){return $}});var r=n(9776),i="text/plain",o=e=>{};function a(e){o(e)}function s(){(r.warn||r.log).apply(r,arguments)}s.bind("[clipboard-polyfill]");var l,c,u,d="undefined"===typeof window?void 0:window,h="undefined"===typeof globalThis?void 0:globalThis,p=null!=(u=null==(l=d)?void 0:l.Promise)?u:null==(c=h)?void 0:c.Promise;function f(){if(!p)throw new Error("No `Promise` implementation available for `clipboard-polyfill`. Consider using: https://github.com/lgarron/clipboard-polyfill#flat-file-version-with-promise-included");return p}var m,g,v,y,b,_="undefined"===typeof navigator?void 0:navigator,w=null==_?void 0:_.clipboard,E=(null==(m=null==w?void 0:w.read)||m.bind(w),null==(g=null==w?void 0:w.readText)||g.bind(w),null==(v=null==w?void 0:w.write)||v.bind(w),null==(y=null==w?void 0:w.writeText)?void 0:y.bind(w)),S=(null==(b=d)||b.ClipboardItem,f()),x=d;function k(){return"undefined"===typeof ClipboardEvent&&"undefined"!==typeof(null==x?void 0:x.clipboardData)&&"undefined"!==typeof(null==x?void 0:x.clipboardData.setData)}function A(e){if(!x.clipboardData)return!1;var t=x.clipboardData.setData("Text",e);return t&&a("writeTextIE worked"),t}function N(e,t,n){for(var r in a("listener called"),e.success=!0,t){var o=t[r],s=n.clipboardData;s.setData(r,o),r===i&&s.getData(r)!==o&&(a("setting text/plain failed"),e.success=!1)}n.preventDefault()}function T(e){var t={success:!1},n=N.bind(this,t,e);document.addEventListener("copy",n);try{document.execCommand("copy")}finally{document.removeEventListener("copy",n)}return t.success}function C(e,t){I(e);var n=T(t);return D(),n}function R(e){var t=document.createElement("div");t.setAttribute("style","-webkit-user-select: text !important"),t.textContent="temporary element",document.body.appendChild(t);var n=C(t,e);return document.body.removeChild(t),n}function O(e){a("copyTextUsingDOM");var t=document.createElement("div");t.setAttribute("style","-webkit-user-select: text !important");var n=t;t.attachShadow&&(a("Using shadow DOM."),n=t.attachShadow({mode:"open"}));var r=document.createElement("span");r.innerText=e,n.appendChild(r),document.body.appendChild(t),I(r);var i=document.execCommand("copy");return D(),document.body.removeChild(t),i}function I(e){var t=document.getSelection();if(t){var n=document.createRange();n.selectNodeContents(e),t.removeAllRanges(),t.addRange(n)}}function D(){var e=document.getSelection();e&&e.removeAllRanges()}function L(e){var t=i in e;if(k()){if(!t)throw new Error("No `text/plain` value was specified.");if(A(e[i]))return!0;throw new Error("Copying failed, possibly because the user rejected it.")}return T(e)?(a("regular execCopy worked"),!0):navigator.userAgent.indexOf("Edge")>-1?(a('UA "Edge" => assuming success'),!0):C(document.body,e)?(a("copyUsingTempSelection worked"),!0):R(e)?(a("copyUsingTempElem worked"),!0):!!O(e[i])&&(a("copyTextUsingDOM worked"),!0)}S.resolve(),S.resolve(!1);function P(e){return new S(((t,n)=>{try{t(e())}catch(r){n(r)}}))}function M(e){var t={};return t[i]=e,t}function F(e){return P((()=>E?(a("Using `navigator.clipboard.writeText()`."),E(e).catch(B)):S.resolve(B(e))))}function B(e){if(!L(M(e)))throw new Error("writeText() failed")}async function $(e){await F(e)}},96351:function(e,t,n){"use strict";n.d(t,{H0:function(){return a},Tv:function(){return h},hk:function(){return s},qe:function(){return d},yq:function(){return c}});var r=n(9776);const i=n(14405);const o={black:"#000000",white:"#ffffff"};function a(e){return i(e)}function s(e){const t=e.rgb().array(),n=Math.round((299*parseInt(t[0])+587*parseInt(t[1])+114*parseInt(t[2]))/1e3);return n>125?"black":"white"}function l(e){const t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null}function c(e){return o[e]||e}function u(e){const t=/^rgb\(([0-9]{1,3}),\s*([0-9]{1,3}),\s*([0-9]{1,3})\)$/i.exec(e);return t?{r:parseInt(t[1],10),g:parseInt(t[2],10),b:parseInt(t[3],10)}:null}function d(e){let t;return e.startsWith("rgb(")?t=u(e):e.startsWith("#")?t=l(e):r.warn(`Unable to parse color: ${e}`),t||{r:0,g:0,b:0}}function h(e){return e.includes("#")&&4===e.length?`#${e[1]}${e[1]}${e[2]}${e[2]}${e[3]}${e[3]}`:e.includes("#")||3!==e.length?e:`${e[0]}${e[0]}${e[1]}${e[1]}${e[2]}${e[2]}`}},3196:function(e,t,n){"use strict";n.d(t,{Cd:function(){return S},Kq:function(){return k},Ng:function(){return h},Yd:function(){return m},fs:function(){return x},mH:function(){return g},xs:function(){return u}});var r=n(78359),i=n(24759),o=n(20246),a=n.n(o),s=n(65852),l=n(93738),c=n(9776);const u=["string","multiline","masked","password","float","int","date","blob","boolean","version"],d=["apiVersion","kind","metadata","metadata.name","spec","spec.selector","spec.selector.matchLabels","spec.template","spec.template.metadata","spec.template.metadata.labels","spec.template.spec.containers.name","spec.template.spec.containers.image"],h=["metadata.clusterName","metadata.creationTimestamp","metadata.deletionGracePeriodSeconds","metadata.deletionTimestamp","metadata.finalizers","metadata.generateName","metadata.generation","metadata.initializers","metadata.managedFields","metadata.ownerReferences","metadata.resourceVersion","metadata.relationships","metadata.selfLink","metadata.state","metadata.uid","spec.versions.schema","status","stringData","links","_name","_labels","_annotations"],p=["metadata.managedFields","metadata.relationships","metadata.state","status","links","type","id"],f=2;function m(e,t,n,r){return g(e,t,n,!0,0,"",null,r)}function g(e,t,n,r=!0,o=0,l="",f=null,m={}){let _,w,E,k;if(n=n||{},0===o){if(_=(0,i.jq)(e,"id",t),!_)return`Error loading schema for ${t}`;w=_,E=w.schemaDefinitions,k=w.resourceFields;const r=_.attributes||{};n.apiVersion=(r.group?`${r.group}/${r.version}`:r.version)||n.apiVersion,n.kind=r.kind||n.kind}else if(w=(0,i.jq)(e,"id",f),w.requiresResourceFields)E=w.schemaDefinitions,k=E[t]?.resourceFields;else{if(_=(0,i.jq)(e,"id",t),!_)return`Error loading schema for ${t}`;k=_.resourceFields}f||(f=t);const N=[];if(r){const e=d.slice();for(let t=e.length-1;t>=0;t--){let n=e[t].split(/\./);while(n.length)(0,i.PG)(e,n.join(".")),n=n.slice(0,-1)}for(const t of e){const e=t.split(/\./),n=e[e.length-1],r=e.slice(0,-1).join(".");r===l&&k&&k[n]&&(0,i.PG)(N,n)}}const T=Object.keys(k||{});T.forEach((e=>{("undefined"!==typeof n[e]||0===o&&"_type"===e)&&(0,i.PG)(N,e)}));for(const a in n)"undefined"!==typeof n[a]&&(0,i.PG)(N,a);for(const a of m.activelyRemove||p){const e=a.split(/\./),t=e[e.length-1],n=e.slice(0,-1).join(".");n===l&&(0,i.Gj)(N,t)}for(const a of h){const e=a.split(/\./),t=e[e.length-1],n=e.slice(0,-1).join(".");n===l&&k&&k[t]&&(0,i.Gj)(T,t)}(0,i.$M)(T,N);const C=N.map((e=>I(e))),R=T.map((e=>"metadata"===l&&"namespace"===e&&w&&!w.attributes?.namespaced?null:v(I(e)))),O=[...C,...R].filter((e=>null!==e)).join("\n").trim();return O;function I(t){const d=k?.[t];let h=`${t}:`;if("_type"===t&&(h="type:"),!d){if(n[t])try{const e=(0,s.nY)(n),r=a().dump(e[t]);return"object"===typeof n[t]||Array.isArray(n[t])?h+=`\n${y(r.trim())}`:h+=` ${r.trim()}`,h}catch(T){c.error(`Error: Unable to parse map data for yaml key: ${t}`,T)}return null}const p=x(d.type),v=S("map",p,d),_=S("array",p,d),w=S("reference",p);if(v){if(n[t])try{const e=(0,s.nY)(n),r=A(e[t],m[t]);h+=`\n${y(r)}`}catch(T){c.error(`Error: Unable to parse map data for yaml of type: ${p}`,T)}if(u.includes(v))h+=`# key: ${v}`;else{const n=g(e,v,null,r,o+1,l?`${l}.${t}`:t,f,m);let i=y(n);i=i.replace(/^(#)?\s\s\s\s/,"$1"),h+=`${i}`}return h}if(_){if(n[t])try{const e=(0,s.nY)(n);if(e?.[t]){const n=a().dump(e[t]);h+=`\n${y(n.trim())}`}}catch(T){c.error(`Error: Unable to parse array data for yaml of type: ${p}`,T)}if(u.includes(_))h+=`\n# - ${_}`;else{const n=g(e,_,null,!1,o+1,l?`${l}.${t}`:t,f,m);let r=y(n,2);r=r.replace(/^(#)?\s*\s\s([^\s])/,"$1 - $2"),h+=`\n${r}`}return h}if(w)return h+=` #${w}`,h;if(u.includes(p))return"_type"===t&&"undefined"===typeof n[t]&&"undefined"!==typeof n["type"]?h+=` ${b(n["type"])}`:"undefined"===typeof n[t]?h+=` #${b(p)}`:h+=` ${b(n[t])}`,h;if("json"===p||".spec"===p)try{const e=a().dump(n[t]);return h+=e?`\n${y(e.trim())}`:` #${p}`,h}catch(T){}const N=E?.[p]||(0,i.jq)(e,"id",p);if(N){let i;if(N?.resourceFields&&!(0,s.Im)(N?.resourceFields))i=g(e,p,n[t],r,o+1,l?`${l}.${t}`:t,f,m);else if(n[t])try{const e=a().dump(n[t]);i=e.trim()}catch(T){c.error(`Error: Unale to parse data for yaml of type: ${p}`,T)}h+=`\n${y(i)}`}else h+=` #${p}`;return h}}function v(e){return(e||"").split("\n").map((e=>`#${e.replace(/#/g,"")}`)).join("\n")}function y(e,t=1){return(0,r.pZ)(e,t*f," ",/^#/)}function b(e){return a().dump(e).trim()}function _(e,t){const n=w(e,t);return{header:n,indentation:E(n)}}function w(e,t){const n=`(${t})[\\:][\\s|\\t]+[\\|\\>][\\d]*[\\-\\+]?`,r=new RegExp(n,"gi"),i=e.match(r);return i?.[0]||""}function E(e){const t=e.substr(e.indexOf(":")+1),n=t.match(/\d+/);return n?.[0]||""}function S(e,t,n=null){const[r,i]=(0,l.parseType)(t,n);if(e===r)return x(i||r)}function x(e){return"integer"===e?"int":"io.k8s.apimachinery.pkg.api.resource.Quantity"===e?"string":e}function k(e){const t=a().dump(e||{});return"{}\n"===t?"":t}function A(e,t={lineWidth:-1}){const n=a().dump(e,t);let r=n;const i=Object.keys(e).filter((t=>{if("string"===typeof e[t])return e[t].includes("\n")}));if(i.length)for(const o of i){const{header:e,indentation:n}=_(r,o),i=t[o]?.scalarStyle??"|",a=t[o]?.chomping??"";e&&(r=r.replace(e,`${o}: ${i}${a}${n}`))}return r}},26711:function(e,t,n){"use strict";n.d(t,{Kz:function(){return a},en:function(){return o},pP:function(){return s}});var r=n(87516);function i(e){let t=0;for(let n=0;n>>32-i)+n&4294967295}function u(e,t,n,r,i,o,a){return c(t&n|~t&r,e,t,i,o,a)}function d(e,t,n,r,i,o,a){return c(t&r|n&~r,e,t,i,o,a)}function h(e,t,n,r,i,o,a){return c(t^n^r,e,t,i,o,a)}function p(e,t,n,r,i,o,a){return c(n^(t|~r),e,t,i,o,a)}s.BLOCK_SIZE=o,s.prototype.update=function(e){if((0,i.Kz)(e))return this;if(this.finished)throw new Error("Attempted to update an already finished hash.");const t=(0,i.pP)(e);let n=0,r=t.byteLength;this.bytesHashed+=r;while(r>0)this.buffer.setUint8(this.bufferLength++,t[n++]),r--,this.bufferLength===o&&(this.hashBuffer(),this.bufferLength=0);return this},s.prototype.digest=function(e){if(!this.finished){const e=this,t=e.buffer,n=e.bufferLength,r=e.bytesHashed,i=8*r;if(t.setUint8(this.bufferLength++,128),n%o>=o-8){for(let e=this.bufferLength;e>>0,!0),t.setUint32(o-4,Math.floor(i/4294967296),!0),this.hashBuffer(),this.finished=!0}const t=new DataView(new ArrayBuffer(a));for(let r=0;r<4;r++)t.setUint32(4*r,this.state[r],!0);const n=new r.Buffer(t.buffer,t.byteOffset,t.byteLength);return e?n.toString(e):n},s.prototype.hashBuffer=function(){const e=this,t=e.buffer,n=e.state;let r=n[0],i=n[1],o=n[2],a=n[3];r=u(r,i,o,a,t.getUint32(0,!0),7,3614090360),a=u(a,r,i,o,t.getUint32(4,!0),12,3905402710),o=u(o,a,r,i,t.getUint32(8,!0),17,606105819),i=u(i,o,a,r,t.getUint32(12,!0),22,3250441966),r=u(r,i,o,a,t.getUint32(16,!0),7,4118548399),a=u(a,r,i,o,t.getUint32(20,!0),12,1200080426),o=u(o,a,r,i,t.getUint32(24,!0),17,2821735955),i=u(i,o,a,r,t.getUint32(28,!0),22,4249261313),r=u(r,i,o,a,t.getUint32(32,!0),7,1770035416),a=u(a,r,i,o,t.getUint32(36,!0),12,2336552879),o=u(o,a,r,i,t.getUint32(40,!0),17,4294925233),i=u(i,o,a,r,t.getUint32(44,!0),22,2304563134),r=u(r,i,o,a,t.getUint32(48,!0),7,1804603682),a=u(a,r,i,o,t.getUint32(52,!0),12,4254626195),o=u(o,a,r,i,t.getUint32(56,!0),17,2792965006),i=u(i,o,a,r,t.getUint32(60,!0),22,1236535329),r=d(r,i,o,a,t.getUint32(4,!0),5,4129170786),a=d(a,r,i,o,t.getUint32(24,!0),9,3225465664),o=d(o,a,r,i,t.getUint32(44,!0),14,643717713),i=d(i,o,a,r,t.getUint32(0,!0),20,3921069994),r=d(r,i,o,a,t.getUint32(20,!0),5,3593408605),a=d(a,r,i,o,t.getUint32(40,!0),9,38016083),o=d(o,a,r,i,t.getUint32(60,!0),14,3634488961),i=d(i,o,a,r,t.getUint32(16,!0),20,3889429448),r=d(r,i,o,a,t.getUint32(36,!0),5,568446438),a=d(a,r,i,o,t.getUint32(56,!0),9,3275163606),o=d(o,a,r,i,t.getUint32(12,!0),14,4107603335),i=d(i,o,a,r,t.getUint32(32,!0),20,1163531501),r=d(r,i,o,a,t.getUint32(52,!0),5,2850285829),a=d(a,r,i,o,t.getUint32(8,!0),9,4243563512),o=d(o,a,r,i,t.getUint32(28,!0),14,1735328473),i=d(i,o,a,r,t.getUint32(48,!0),20,2368359562),r=h(r,i,o,a,t.getUint32(20,!0),4,4294588738),a=h(a,r,i,o,t.getUint32(32,!0),11,2272392833),o=h(o,a,r,i,t.getUint32(44,!0),16,1839030562),i=h(i,o,a,r,t.getUint32(56,!0),23,4259657740),r=h(r,i,o,a,t.getUint32(4,!0),4,2763975236),a=h(a,r,i,o,t.getUint32(16,!0),11,1272893353),o=h(o,a,r,i,t.getUint32(28,!0),16,4139469664),i=h(i,o,a,r,t.getUint32(40,!0),23,3200236656),r=h(r,i,o,a,t.getUint32(52,!0),4,681279174),a=h(a,r,i,o,t.getUint32(0,!0),11,3936430074),o=h(o,a,r,i,t.getUint32(12,!0),16,3572445317),i=h(i,o,a,r,t.getUint32(24,!0),23,76029189),r=h(r,i,o,a,t.getUint32(36,!0),4,3654602809),a=h(a,r,i,o,t.getUint32(48,!0),11,3873151461),o=h(o,a,r,i,t.getUint32(60,!0),16,530742520),i=h(i,o,a,r,t.getUint32(8,!0),23,3299628645),r=p(r,i,o,a,t.getUint32(0,!0),6,4096336452),a=p(a,r,i,o,t.getUint32(28,!0),10,1126891415),o=p(o,a,r,i,t.getUint32(56,!0),15,2878612391),i=p(i,o,a,r,t.getUint32(20,!0),21,4237533241),r=p(r,i,o,a,t.getUint32(48,!0),6,1700485571),a=p(a,r,i,o,t.getUint32(12,!0),10,2399980690),o=p(o,a,r,i,t.getUint32(40,!0),15,4293915773),i=p(i,o,a,r,t.getUint32(4,!0),21,2240044497),r=p(r,i,o,a,t.getUint32(32,!0),6,1873313359),a=p(a,r,i,o,t.getUint32(60,!0),10,4264355552),o=p(o,a,r,i,t.getUint32(24,!0),15,2734768916),i=p(i,o,a,r,t.getUint32(52,!0),21,1309151649),r=p(r,i,o,a,t.getUint32(16,!0),6,4149444226),a=p(a,r,i,o,t.getUint32(44,!0),10,3174756917),o=p(o,a,r,i,t.getUint32(8,!0),15,718787259),i=p(i,o,a,r,t.getUint32(36,!0),21,3951481745),n[0]=r+n[0]&4294967295,n[1]=i+n[1]&4294967295,n[2]=o+n[2]&4294967295,n[3]=a+n[3]&4294967295};const f=64,m=32,g=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),v=2**53-1;function y(){this.state=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}var b=y;y.BLOCK_SIZE=f,y.prototype.update=function(e){if(this.finished)throw new Error("Attempted to update an already finished hash.");if((0,i.Kz)(e))return this;e=(0,i.pP)(e);let t=0,n=e.byteLength;if(this.bytesHashed+=n,8*this.bytesHashed>v)throw new Error("Cannot hash more than 2^53 - 1 bits");while(n>0)this.buffer[this.bufferLength++]=e[t++],n--,this.bufferLength===f&&(this.hashBuffer(),this.bufferLength=0);return this},y.prototype.digest=function(e){if(!this.finished){const e=8*this.bytesHashed,t=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),n=this.bufferLength;if(t.setUint8(this.bufferLength++,128),n%f>=f-8){for(let e=this.bufferLength;e>>24&255,t[4*n+1]=this.state[n]>>>16&255,t[4*n+2]=this.state[n]>>>8&255,t[4*n+3]=this.state[n]>>>0&255;return e?t.toString(e):t},y.prototype.hashBuffer=function(){const e=this,t=e.buffer,n=e.state;let r=n[0],i=n[1],o=n[2],a=n[3],s=n[4],l=n[5],c=n[6],u=n[7];for(let d=0;d>>17|e<<15)^(e>>>19|e<<13)^e>>>10;e=this.temp[d-15];const n=(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3;this.temp[d]=(t+this.temp[d-7]|0)+(n+this.temp[d-16]|0)}const e=(((s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7))+(s&l^~s&c)|0)+(u+(g[d]+this.temp[d]|0)|0)|0,n=((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+(r&i^r&o^i&o)|0;u=c,c=l,l=s,s=a+e|0,a=o,o=i,i=r,r=e+n|0}n[0]+=r,n[1]+=i,n[2]+=o,n[3]+=a,n[4]+=s,n[5]+=l,n[6]+=c,n[7]+=u};const _=64,w=20;function E(){this.h0=1732584193,this.h1=4023233417,this.h2=2562383102,this.h3=271733878,this.h4=3285377520,this.block=new Uint32Array(80),this.offset=0,this.shift=24,this.totalLength=0}var S=E;E.BLOCK_SIZE=_,E.prototype.update=function(e){if(this.finished)throw new Error("Attempted to update an already finished hash.");if((0,i.Kz)(e))return this;e=(0,i.pP)(e);const t=e.length;this.totalLength+=8*t;for(let n=0;n14||14===this.offset&&this.shift<24)&&this.processBlock(),this.offset=14,this.shift=24,this.write(0),this.write(0),this.write(this.totalLength>0xffffffffff?this.totalLength/1099511627776:0),this.write(this.totalLength>4294967295?this.totalLength/4294967296:0);for(let r=24;r>=0;r-=8)this.write(this.totalLength>>r);const t=new r.Buffer(w),n=new DataView(t.buffer);return n.setUint32(0,this.h0,!1),n.setUint32(4,this.h1,!1),n.setUint32(8,this.h2,!1),n.setUint32(12,this.h3,!1),n.setUint32(16,this.h4,!1),e?t.toString(e):t},E.prototype.processBlock=function(){for(let s=16;s<80;s++){const e=this.block[s-3]^this.block[s-8]^this.block[s-14]^this.block[s-16];this.block[s]=e<<1|e>>>31}let e,t,n=this.h0,r=this.h1,i=this.h2,o=this.h3,a=this.h4;for(let s=0;s<80;s++){s<20?(e=o^r&(i^o),t=1518500249):s<40?(e=r^i^o,t=1859775393):s<60?(e=r&i|o&(r|i),t=2400959708):(e=r^i^o,t=3395469782);const l=(n<<5|n>>>27)+e+a+t+(0|this.block[s]);a=o,o=i,i=r<<30|r>>>2,r=n,n=l}this.h0=this.h0+n|0,this.h1=this.h1+r|0,this.h2=this.h2+i|0,this.h3=this.h3+o|0,this.h4=this.h4+a|0,this.offset=0;for(let s=0;s<16;s++)this.block[s]=0};const x="normal",k="url";function A(e,t=x){let n;if(null===e||"undefined"===typeof e)return e;if(n="function"===typeof r.Buffer.from&&r.Buffer.from!==Uint8Array.from?r.Buffer.from(e):new r.Buffer(e),t===k){const e={"+":"-","/":"_"};return n.toString("base64").replace(/[+/]|=+$/g,(t=>e[t]||""))}return n.toString("base64")}function N(e){return null===e||"undefined"===typeof e?e:"function"===typeof r.Buffer.from&&r.Buffer.from!==Uint8Array.from?r.Buffer.from(e,"base64"):new r.Buffer(e,"base64")}function T(e){return e?N(e.replace(/[-_]/g,(e=>"-"===e?"+":"/"))).toString():e}function C(e,t,n){return O("md5",e,t,n)}function R(e){const t=`${e}`.length;let n=3*t/4;return e.length>0&&"="===e[e.length-1]&&(n--,e.length>1&&"="===e[e.length-2]&&n--),n}function O(e,t,n,i){const o=I(e);n||(n="binary"),"buffer"===n&&(n=void 0),"string"===typeof t&&(t=new r.Buffer(t));const a=D(t);let s=r.Buffer.isBuffer(t);if("undefined"!==typeof ArrayBuffer&&t&&t.buffer instanceof ArrayBuffer&&(s=!0),i&&"object"===typeof t&&"function"===typeof t.on&&!s)t.on("data",(e=>{o.update(e)})),t.on("error",(e=>{i(e)})),t.on("end",(()=>{i(null,o.digest(n))}));else{if(!i||!a||s||"undefined"===typeof FileReader){"object"!==typeof t||s||(t=new r.Buffer(new Uint8Array(t)));const e=o.update(t).digest(n);return i&&i(null,e),e}{let e=0;const s=524288,l=new FileReader;l.onerror=function(){i(new Error("Failed to read data."))},l.onload=function(){const t=new r.Buffer(new Uint8Array(l.result));o.update(t),e+=t.length,l._continueReading()},l._continueReading=function(){if(e>=t.size)return void i(null,o.digest(n));let r=e+s;r>t.size&&(r=t.size),l.readAsArrayBuffer(a.call(t,e,r))},l._continueReading()}}}function I(e){if(e=e.toLowerCase(),"md5"===e)return new l;if("sha256"===e)return new b;if("sha1"===e)return new S;throw new Error(`Hash algorithm ${e} is not supported`)}function D(e){const t=e.slice||e.webkitSlice||e.mozSlice;return"function"===typeof t?t:null}},1122:function(e,t,n){"use strict";n.d(t,{Is:function(){return s},PE:function(){return o},jl:function(){return a}});var r=n(47008),i=n.n(r);async function o(e,t,r="text/plain;charset=utf-8"){const i=new Blob([t],{type:r}),o=(await n.e(504).then(n.t.bind(n,35504,23))).default;return o(i,e)}function a(e){const t=new(i());for(const n in e)t.file(n,e[n]);return t.generateAsync({type:"blob"}).then((e=>e))}function s(e,t="__downloadIframe"){let n=document.getElementById(t);n||(n=document.createElement("iframe"),n.style.display="none",n.id=t,document.body.appendChild(n)),n.src=e}},71898:function(e,t,n){"use strict";n.d(t,{As:function(){return c},oV:function(){return s},rz:function(){return u}});var r=n(24759);function i(e,t,n){return(t=o(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){var t=a(e,"string");return"symbol"==typeof t?t:t+""}function a(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}class s extends Error{constructor(e){super(e),this.name=s.NAME}}i(s,"NAME","ClusterNotFoundError");class l extends Error{constructor(e,t){super(e),this.url=t,this.name=l.NAME}}i(l,"NAME","RedirectToError");Error;function c(e){let t;if("string"===typeof e)t=e;else if(e&&"object"===typeof e)if(e.message){if(t=e.message,"string"===typeof t)try{const e=JSON.parse(t).data;if(e)return e}catch{}e.detail&&(t?t+=` (${e.detail})`:t=e.detail)}else e.detail?t=e.detail:e.url&&(t=`from ${e.url}`);return t||(t=JSON.stringify(e)),t}function u(e){if(e?.response?.data){const t=e.response.data;return t&&t.message?[t.message]:[e]}return e.status&&e.message?[e.message]:(0,r.cy)(e)?e:[e]}},8164:function(e,t,n){"use strict";n.d(t,{de:function(){return a}});var r=n(4284),i=n(33781),o=n(24759);n(65852);function a(e){const t=e["getStoreNameByProductId"],n=e[`${t}/all`](r.yx),a=(0,o.jq)(n,"id",(0,i.AZ)(r.Rp.PODMONITOR));return!!a}},66442:function(e,t,n){"use strict";n.d(t,{EF:function(){return i},Rc:function(){return c},T6:function(){return f},TD:function(){return p},bE:function(){return u},os:function(){return a},pF:function(){return d},tA:function(){return s},tj:function(){return l},x8:function(){return h},xs:function(){return o}});const r="all",i="ns",o="project",a=`${i}://`,s=`${o}://`,l=r,c=`${r}://system`,u=`${r}://user`,d=`${r}://orphans`,h="namespaced://true",p="namespaced://false",f={DIVIDER:"divider",PROJECT:"project",NAMESPACE:"namespace",SPECIAL:"special"}},65852:function(e,t,n){"use strict";n.d(t,{TJ:function(){return Re},no:function(){return Te},MA:function(){return Ce},nY:function(){return xe},o8:function(){return Ee},yo:function(){return Ie},BJ:function(){return we},Ui:function(){return Ae},cX:function(){return Oe},Jt:function(){return be},Ib:function(){return ye},Im:function(){return Se},n4:function(){return Ne},hZ:function(){return ve}});var r=n(9274),i=n(1272),o=n.n(i),a=n(42455),s=n.n(a),l=n(65386),c=n.n(l);function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function b(e,t,n){return(t=I(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _(e){return _=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_(e)}function w(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&C(e,t)}function E(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}function S(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(S=function(){return!!e})()}function x(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function k(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function N(e){for(var t=1;t0){if(e.binary_ops.hasOwnProperty(t)&&(!e.isIdentifierStart(this.code)||this.index+t.lengthe.prec:r<=e.prec};while(i.length>2&&u(i[i.length-2]))s=i.pop(),n=i.pop().value,a=i.pop(),t={type:e.BINARY_EXP,operator:n,left:a,right:s},i.push(t);t=this.gobbleToken(),t||this.throwError("Expected expression after "+c),i.push(o,t)}l=i.length-1,t=i[l];while(l>1)t={type:e.BINARY_EXP,operator:i[l-1].value,left:i[l-2],right:t},l-=2;return t}},{key:"gobbleToken",value:function(){var t,n,r,i;if(this.gobbleSpaces(),i=this.searchHook("gobble-token"),i)return this.runHook("after-token",i);if(t=this.code,e.isDecimalDigit(t)||t===e.PERIOD_CODE)return this.gobbleNumericLiteral();if(t===e.SQUOTE_CODE||t===e.DQUOTE_CODE)i=this.gobbleStringLiteral();else if(t===e.OBRACK_CODE)i=this.gobbleArray();else{n=this.expr.substr(this.index,e.max_unop_len),r=n.length;while(r>0){if(e.unary_ops.hasOwnProperty(n)&&(!e.isIdentifierStart(this.code)||this.index+n.length=n.length&&this.throwError("Unexpected token "+String.fromCharCode(t));break}if(o===e.COMMA_CODE){if(this.index++,i++,i!==n.length)if(t===e.CPAREN_CODE)this.throwError("Unexpected token ,");else if(t===e.CBRACK_CODE)for(var a=n.length;a=48&&e<=57}},{key:"binaryPrecedence",value:function(t){return e.binary_ops[t]||0}},{key:"isIdentifierStart",value:function(t){return t>=65&&t<=90||t>=97&&t<=122||t>=128&&!e.binary_ops[String.fromCharCode(t)]||e.additional_identifier_chars.has(String.fromCharCode(t))}},{key:"isIdentifierPart",value:function(t){return e.isIdentifierStart(t)||e.isDecimalDigit(t)}}])}(),$=new M;Object.assign(B,{hooks:$,plugins:new F(B),COMPOUND:"Compound",SEQUENCE_EXP:"SequenceExpression",IDENTIFIER:"Identifier",MEMBER_EXP:"MemberExpression",LITERAL:"Literal",THIS_EXP:"ThisExpression",CALL_EXP:"CallExpression",UNARY_EXP:"UnaryExpression",BINARY_EXP:"BinaryExpression",ARRAY_EXP:"ArrayExpression",TAB_CODE:9,LF_CODE:10,CR_CODE:13,SPACE_CODE:32,PERIOD_CODE:46,COMMA_CODE:44,SQUOTE_CODE:39,DQUOTE_CODE:34,OPAREN_CODE:40,CPAREN_CODE:41,OBRACK_CODE:91,CBRACK_CODE:93,QUMARK_CODE:63,SEMCOL_CODE:59,COLON_CODE:58,unary_ops:{"-":1,"!":1,"~":1,"+":1},binary_ops:{"||":1,"&&":2,"|":3,"^":4,"&":5,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":10,"/":10,"%":10},right_associative:new Set,additional_identifier_chars:new Set(["$","_"]),literals:{true:!0,false:!1,null:null},this_str:"this"}),B.max_unop_len=B.getMaxKeyLen(B.unary_ops),B.max_binop_len=B.getMaxKeyLen(B.binary_ops);var j=function(e){return new B(e).parse()},U=Object.getOwnPropertyNames(v((function e(){f(this,e)})));Object.getOwnPropertyNames(B).filter((function(e){return!U.includes(e)&&void 0===j[e]})).forEach((function(e){j[e]=B[e]})),j.Jsep=B;var V="ConditionalExpression",K={name:"ternary",init:function(e){e.hooks.add("after-expression",(function(t){if(t.node&&this.code===e.QUMARK_CODE){this.index++;var n=t.node,r=this.gobbleExpression();if(r||this.throwError("Expected expression"),this.gobbleSpaces(),this.code===e.COLON_CODE){this.index++;var i=this.gobbleExpression();if(i||this.throwError("Expected expression"),t.node={type:V,test:n,consequent:r,alternate:i},n.operator&&e.binary_ops[n.operator]<=.9){var o=n;while(o.right.operator&&e.binary_ops[o.right.operator]<=.9)o=o.right;t.node.test=o.right,o.right=t.node,t.node=n}}else this.throwError("Expected :")}}))}};j.plugins.register(K);var H=47,G=92,z={name:"regex",init:function(e){e.hooks.add("gobble-token",(function(t){if(this.code===H){var n=++this.index,r=!1;while(this.index=97&&a<=122||a>=65&&a<=90||a>=48&&a<=57))break;o+=this["char"]}var s=void 0;try{s=new RegExp(i,o)}catch(l){this.throwError(l.message)}return t.node={type:e.LITERAL,value:s,raw:this.expr.slice(n-1,this.index)},t.node=this.gobbleTokenProperty(t.node),t.node}this.code===e.OBRACK_CODE?r=!0:r&&this.code===e.CBRACK_CODE&&(r=!1),this.index+=this.code===G?2:1}this.throwError("Unclosed Regex")}}))}},X=43,q=45,W={name:"assignment",assignmentOperators:new Set(["=","*=","**=","/=","%=","+=","-=","<<=",">>=",">>>=","&=","^=","|="]),updateOperators:[X,q],assignmentPrecedence:.9,init:function(e){var t=[e.IDENTIFIER,e.MEMBER_EXP];function n(e){W.assignmentOperators.has(e.operator)?(e.type="AssignmentExpression",n(e.left),n(e.right)):e.operator||Object.values(e).forEach((function(e){e&&"object"===D(e)&&n(e)}))}W.assignmentOperators.forEach((function(t){return e.addBinaryOp(t,W.assignmentPrecedence,!0)})),e.hooks.add("gobble-token",(function(e){var n=this,r=this.code;W.updateOperators.some((function(e){return e===r&&e===n.expr.charCodeAt(n.index+1)}))&&(this.index+=2,e.node={type:"UpdateExpression",operator:r===X?"++":"--",argument:this.gobbleTokenProperty(this.gobbleIdentifier()),prefix:!0},e.node.argument&&t.includes(e.node.argument.type)||this.throwError("Unexpected ".concat(e.node.operator)))})),e.hooks.add("after-token",(function(e){var n=this;if(e.node){var r=this.code;W.updateOperators.some((function(e){return e===r&&e===n.expr.charCodeAt(n.index+1)}))&&(t.includes(e.node.type)||this.throwError("Unexpected ".concat(e.node.operator)),this.index+=2,e.node={type:"UpdateExpression",operator:r===X?"++":"--",argument:e.node,prefix:!1})}})),e.hooks.add("after-expression",(function(e){e.node&&n(e.node)}))}};j.plugins.register(z,W);var Y={evalAst:function(e,t){switch(e.type){case"BinaryExpression":case"LogicalExpression":return Y.evalBinaryExpression(e,t);case"Compound":return Y.evalCompound(e,t);case"ConditionalExpression":return Y.evalConditionalExpression(e,t);case"Identifier":return Y.evalIdentifier(e,t);case"Literal":return Y.evalLiteral(e,t);case"MemberExpression":return Y.evalMemberExpression(e,t);case"UnaryExpression":return Y.evalUnaryExpression(e,t);case"ArrayExpression":return Y.evalArrayExpression(e,t);case"CallExpression":return Y.evalCallExpression(e,t);case"AssignmentExpression":return Y.evalAssignmentExpression(e,t);default:throw SyntaxError("Unexpected expression",e)}},evalBinaryExpression:function(e,t){var n={"||":function(e,t){return e||t()},"&&":function(e,t){return e&&t()},"|":function(e,t){return e|t()},"^":function(e,t){return e^t()},"&":function(e,t){return e&t()},"==":function(e,t){return e==t()},"!=":function(e,t){return e!=t()},"===":function(e,t){return e===t()},"!==":function(e,t){return e!==t()},"<":function(e,t){return e":function(e,t){return e>t()},"<=":function(e,t){return e<=t()},">=":function(e,t){return e>=t()},"<<":function(e,t){return e<>":function(e,t){return e>>t()},">>>":function(e,t){return e>>>t()},"+":function(e,t){return e+t()},"-":function(e,t){return e-t()},"*":function(e,t){return e*t()},"/":function(e,t){return e/t()},"%":function(e,t){return e%t()}}[e.operator](Y.evalAst(e.left,t),(function(){return Y.evalAst(e.right,t)}));return n},evalCompound:function(e,t){for(var n,r=0;r1&&u.shift(),this._hasParentSelector=null;var d=this._trace(u,t,["$"],o,a,n).filter((function(e){return e&&!e.isParentSelector}));return d.length?l||1!==d.length||d[0].hasArrExpr?d.reduce((function(e,t){var n=i._getPreferredOutput(t);return s&&Array.isArray(n)?e=e.concat(n):e.push(n),e}),[]):this._getPreferredOutput(d[0]):l?[]:void 0}},te.prototype._getPreferredOutput=function(e){var t=this.currResultType;switch(t){case"all":var n=Array.isArray(e.path)?e.path:te.toPathArray(e.path);return e.pointer=te.toPointer(n),e.path="string"===typeof e.path?e.path:te.toPathString(e.path),e;case"value":case"parent":case"parentProperty":return e[t];case"path":return te.toPathString(e[t]);case"pointer":return te.toPointer(e.path);default:throw new TypeError("Unknown result type")}},te.prototype._handleCallback=function(e,t,n){if(t){var r=this._getPreferredOutput(e);e.path="string"===typeof e.path?e.path:te.toPathString(e.path),t(r,n,e)}},te.prototype._trace=function(e,t,n,r,i,o,a,s){var l,c=this;if(!e.length)return l={path:n,value:t,parent:r,parentProperty:i,hasArrExpr:a},this._handleCallback(l,o,"value"),l;var u=e[0],d=e.slice(1),h=[];function p(e){Array.isArray(e)?e.forEach((function(e){h.push(e)})):h.push(e)}if(("string"!==typeof u||s)&&t&&Object.hasOwn(t,u))p(this._trace(d,t[u],J(n,u),t,u,o,a));else if("*"===u)this._walk(t,(function(e){p(c._trace(d,t[e],J(n,e),t,e,o,!0,!0))}));else if(".."===u)p(this._trace(d,t,n,r,i,o,a)),this._walk(t,(function(r){"object"===D(t[r])&&p(c._trace(e.slice(),t[r],J(n,r),t,r,o,!0))}));else{if("^"===u)return this._hasParentSelector=!0,{path:n.slice(0,-1),expr:d,isParentSelector:!0};if("~"===u)return l={path:J(n,u),value:i,parent:r,parentProperty:null},this._handleCallback(l,o,"property"),l;if("$"===u)p(this._trace(d,t,n,null,null,o,a));else if(/^(-?[0-9]*):(-?[0-9]*):?([0-9]*)$/.test(u))p(this._slice(u,d,t,n,r,i,o));else if(0===u.indexOf("?(")){if(!1===this.currEval)throw new Error("Eval [?(expr)] prevented in JSONPath expression.");var f=u.replace(/^\?\(((?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*?)\)$/,"$1"),m=/@(?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])?((?:[\0->@-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)['\[](\??\((?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*?\))(?!(?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])\)\])['\]]/g.exec(f);m?this._walk(t,(function(e){var a=[m[2]],s=m[1]?t[e][m[1]]:t[e],l=c._trace(a,s,n,r,i,o,!0);l.length>0&&p(c._trace(d,t[e],J(n,e),t,e,o,!0))})):this._walk(t,(function(e){c._eval(f,t[e],e,n,r,i)&&p(c._trace(d,t[e],J(n,e),t,e,o,!0))}))}else if("("===u[0]){if(!1===this.currEval)throw new Error("Eval [(expr)] prevented in JSONPath expression.");p(this._trace(Z(this._eval(u,t,n[n.length-1],n.slice(0,-1),r,i),d),t,n,r,i,o,a))}else if("@"===u[0]){var g=!1,v=u.slice(1,-2);switch(v){case"scalar":t&&["object","function"].includes(D(t))||(g=!0);break;case"boolean":case"string":case"undefined":case"function":D(t)===v&&(g=!0);break;case"integer":!Number.isFinite(t)||t%1||(g=!0);break;case"number":Number.isFinite(t)&&(g=!0);break;case"nonFinite":"number"!==typeof t||Number.isFinite(t)||(g=!0);break;case"object":t&&D(t)===v&&(g=!0);break;case"array":Array.isArray(t)&&(g=!0);break;case"other":g=this.currOtherTypeCallback(t,n,r,i);break;case"null":null===t&&(g=!0);break;default:throw new TypeError("Unknown value type "+v)}if(g)return l={path:n,value:t,parent:r,parentProperty:i},this._handleCallback(l,o,"value"),l}else if("`"===u[0]&&t&&Object.hasOwn(t,u.slice(1))){var b=u.slice(1);p(this._trace(d,t[b],J(n,b),t,b,o,a,!0))}else if(u.includes(",")){var _,w=u.split(","),E=y(w);try{for(E.s();!(_=E.n()).done;){var S=_.value;p(this._trace(Z(S,d),t,n,r,i,o,!0))}}catch(C){E.e(C)}finally{E.f()}}else!s&&t&&Object.hasOwn(t,u)&&p(this._trace(d,t[u],J(n,u),t,u,o,a,!0))}if(this._hasParentSelector)for(var x=0;x-1?t.slice(0,a+1)+" return "+t.slice(a+1):" return "+t;return m(Function,n.concat([s])).apply(void 0,R(i))}}])}();te.prototype.vm={Script:re};var ie=n(86055),oe=n.n(ie),ae=n(90016),se=n.n(ae),le=n(43306),ce=n.n(le),ue=n(44435),de=n.n(ue),he=n(20732),pe=n.n(he),fe=(n(23023),n(78359)),me=n(24759),ge=n(9776);function ve(e,t,n){let r=e;if(!r)return;const i=(0,fe.jg)(t);for(let o=0;o{r=r.map((t=>Array.isArray(t)?t.map((t=>t[e])).flat():t?t[e]:null)).flat()})),r.filter((e=>null!==e))}function be(e,t){if(!t)throw new Error("Cannot translate an empty input. The t function requires a string.");if(t.startsWith("$"))try{return te({path:t,json:e,wrap:!1})}catch(r){return ge.log("JSON Path error",r,t,e),"(JSON Path err)"}if(!t.includes("."))return e?.[t];const n=(0,fe.jg)(t);for(let i=0;ie[t]||{}),e)[r]}function Ee(e){return o()(e)}function Se(e){return!e||!Object.keys(e).length}function xe(e){return Object.keys(e).map((t=>{const n=e[t];Array.isArray(n)?(e[t]=n.map((e=>{if(null!==e&&void 0!==e)return xe(e)})),0===e[t].length&&delete e[t]):"undefined"===typeof n||null===n?delete e[t]:se()(n)&&(Se(n)&&delete e[t],e[t]=xe(n))})),e}function ke(e){const t=Object.keys(e).map((t=>{const n=e[t];return Array.isArray(n)?`"${t}"`:se()(n)?(ke(n)||[]).map((e=>`"${t}".${e}`)):`"${t}"`}));return c()(s()(t))}function Ae(e,t){e=e||{},t=t||{};const n=oe()(t,((t,n,r)=>{const i=e[r];de()(n,i)||(Array.isArray(n)||Array.isArray(i)?t[r]=n:se()(n)&&se()(e[r])?t[r]=Ae(i,n):t[r]=n)})),r=ke(e),i=ke(t),o=pe()(r,i);for(const a of o)ve(n,a,null);return n}function Ne(e,t){const n=Object.keys(e||{}),r=Object.keys(t||{});if(n.length!==r.length)return!1;for(let i=0;iIe(e,t)));{const n=(0,r.toRaw)(e),i={};for(const e in n)"function"===typeof n[e]||"symbol"===typeof n[e]?i[e]=null:i[e]=Ie(n[e],t);return i}}},82709:function(e,t,n){"use strict";n.d(t,{A0:function(){return p},ZA:function(){return s},_Z:function(){return h},cX:function(){return o},nN:function(){return u},nr:function(){return m},yC:function(){return d}});const r="undefined"===typeof window?"server":window.navigator.platform.toLowerCase(),i="undefined"===typeof window?"server":window.navigator.userAgent,o=(r.includes("linux")||r.includes("unix"),r.includes("mac")),a=(r.includes("win"),o?"metaKey":"ctrlKey"),s=o?"Command":"Control",l=a,c="shiftKey";function u(e){return!!e[a]}function d(e){return!!e[l]}function h(e){return!!e[c]}function p(e){return e.ctrlKey&&2===e.button}i.includes("Gecko/");const f=i.includes("Chrome/"),m=(!f&&i.includes("AppleWebKit/"),!f&&i.includes("Safari/"));/Android|webOS|iPhone|iPad|iPod|IEMobile/i.test(i)},83381:function(e,t,n){"use strict";n.d(t,{Q7:function(){return a},Q8:function(){return c},Tb:function(){return p}});const r="left",i="right",o="top",a="center",s="center",l="bottom",c="auto";function u(e){const t=e.getBoundingClientRect(),n=e.offsetWidth,r=e.offsetHeight;return{top:t.top,right:t.left+n,bottom:t.top+r,left:t.left,width:n,height:r}}function d(e){return{top:e.clientY,left:e.clientX,bottom:e.clientY,right:e.clientX,width:0,height:0}}function h(){const e=window.innerWidth,t=window.innerHeight,n=window.pageYOffset,r=window.pageXOffset;return{top:n,right:r+e,bottom:n+t,left:r,width:e,height:t}}function p(e,t,n,p){let{positionX:f=c,positionY:m=c}=n||{};const{fudgeX:g=0,fudgeY:v=0,overlapX:y=!0,overlapY:b=!1}=n||{},_=h();let w;w=t instanceof Event?d(t):u(t);let E={};e&&(E=u(e)),p&&(E={top:0,right:147,bottom:163,left:0,width:147,height:80});const S={position:"absolute"},x={left:y?w.left:w.right,center:(w.left+w.right)/2,right:y?w.right:w.left,top:b?w.bottom:w.top,middle:(w.top+w.bottom)/2,bottom:b?w.top:w.bottom},k={left:_.right-E.width-x.left,center:Math.min(_.right-E.width/2-x.center,x.center-E.width/2-_.left),right:x.right-E.width-_.left,top:x.bottom-E.height-_.top,middle:Math.min(x.middle-E.height/2-_.top,_.bottom-E.height/2-x.middle),bottom:_.bottom-E.height-x.top};switch(f===a&&k.center<0&&(f=c),f===c?f=k.left<0||1.5*k.right>k.left?i:r:m===r&&k.left<0?f=i:m===i&&k.right<0&&(f=r),f){case r:S.left=x.left-g+"px";break;case a:S.left=(x.left+x.right)/2-E.width/2-g+"px";break;case i:S.left=x.right+g-E.width+"px";break}switch(m===s&&k.middle<0&&(m=c),m===c?m=k.top<0||1.5*k.bottom>k.top?l:o:m===o&&k.top<0?m=l:m===l&&k.bottom<0&&(m=o),m){case o:S.top=x.top+v-E.height+"px";break;case a:S.top=(x.top+x.bottom)/2+v-E.height+"px";break;case l:S.top=x.bottom-v+"px";break}return S}},68844:function(e,t,n){"use strict";function r(){this.queue=[],this.offset=0,this.getLength=function(){return this.queue.length-this.offset},this.isEmpty=function(){return 0===this.queue.length},this.enqueue=function(e){this.queue.push(e)},this.dequeue=function(){if(0===this.queue.length)return;const e=this.queue[this.offset];return 2*++this.offset>=this.queue.length&&(this.queue=this.queue.slice(this.offset),this.offset=0),e},this.peek=function(){return this.queue.length>0?this.queue[this.offset]:void 0},this.clear=function(){this.offset=0,this.queue.length=0}}n.d(t,{kR:function(){return a},$t:function(){return s},yX:function(){return c},hF:function(){return l},DD:function(){return u}});var i=n(9776);async function o(e,t){const n=Object.keys(e),r=Object.values(e),i=await Promise[t](r),o={};for(let a=0;a{const l=new r;let c=0,u=!1;const d=[];for(let t=0;t{o&&i.log("Done",e),d[t]=n,c--,h()})).catch((t=>{o&&i.log("Failed",t,e),u=!0,s(t)}))}}}h()}))}function c(e){const t={};return t.promise=new Promise(((e,n)=>{t.resolve=e,t.reject=n}),e),t}function u(e,t,n,r){e.then((e=>{t[n]=e})).catch((e=>{i.warn("Failed to: ",r,e)}))}},98983:function(e,t,n){"use strict";n.d(t,{P:function(){return r}});n(9776);function r(e){let t=e.params?.product;if(!t){const n=e.name?.match(/^c-cluster-([^-]+)/);n&&(t=n[1])}return t||(t=i(e,"product")),t}function i(e,t){if(e?.meta){const n=Array.isArray(e.meta)?e.meta:[e.meta];for(let e=0;ethis.optionKey?this.get(e,this.optionKey):this.getOptionLabel(e),r=n(e),i=this.value||[],o=i.findIndex((e=>n(e)===r));o<0||(this.value.splice(o,1),this.$emit("update:value",this.value),t.preventDefault(),t.stopPropagation(),this.closeOnSelect&&this.$refs["select-input"].closeSearchOptions())}function i(e,t,n,r){const i=t.$parent.$el,o=i.getBoundingClientRect(),a=r||"bottom-start",s=document.body.offsetHeight,l=s-window.scrollY-o.y-1;let c;if(!a.includes("top")){c=o.y+o.height-1;const t=c+e.offsetHeight;t>window.innerHeight?c=void 0:c+=window.scrollY}c?(e.style.top=`${c}px`,e.classList.remove("vs__dropdown-up"),i.classList.remove("vs__dropdown-up")):(e.style.bottom=`${l}px`,e.classList.add("vs__dropdown-up"),i.classList.add("vs__dropdown-up")),e.style.left=`${o.x}px`,e.style.width="min-content",e.style.minWidth=`${o.width}px`}n.d(t,{s:function(){return i},t:function(){return r}})},58899:function(e,t,n){"use strict";n.d(t,{C6:function(){return c},CR:function(){return u},_R:function(){return l},cK:function(){return d},wC:function(){return h}});var r=n(24759),i=n(65852);const o={},a={"=":"In","==":"In","!=":"NotIn","<":"Lt",">":"Gt"};function s(e){if(e=e.replace(/\+/g," "),o[e])return o[e];let t;const n=[],r=[];if(t=e.match(/\([^)]+\)/g),t&&t.length)for(const o of t){const t=o.replace(/^\s*\(\s*/,"").replace(/\s*\)\s*$/,"").split(/\s*,\s*/);r.push(t),e=e.replace(o,` @${r.length-1} `)}const i=e.split(/\s*,\s*/).filter((e=>!!e));for(let o of i)o=o.trim(),t=o.match(/^(.*?)\s+((not\s*)?in)\s+@(\d+)*$/i),t?n.push({key:t[1].trim(),operator:"notin"===t[2].toLowerCase().replace(/\s/g,"")?"NotIn":"In",values:r[t[4].trim()]}):(t=o.match(/^([^!=]*)\s*(\!=|=|==|>|<)\s*([^!=]*)$/),t?n.push({key:t[1].trim(),operator:a[t[2]],values:[t[3].trim()]}):o.startsWith("!")?n.push({key:o.substr(1).trim(),operator:"DoesNotExist"}):n.push({key:o.trim(),operator:"Exists"}));return o[e]=n,n}function l(e){return c(e.matchLabels||{},e.matchExpressions||[])}function c(e,t){const n=Object.keys(e||{}),i=t||[];for(const o of n){const t=e[o],n=(0,r.jq)(i,{key:o,operator:"In"});n?(0,r.PG)(n.values,t):i.push({key:o,operator:"In",values:(0,r.cy)(t)?t:[t]})}return i}function u(e){const t={},n=[],i=[],o={};for(const a of e)"In"===a.operator&&(o[a.key]?(0,r.PG)(i,a.key):o[a.key]=!0);for(const r of e)"In"!==r.operator||1!==r.values.length||i.includes(r.key)?n.push(Object.assign({},r)):t[r.key]=r.values[0];return{matchLabels:t,matchExpressions:n}}function d(e,t,n="metadata.labels"){let o=[];if("string"===typeof t)o=s(t);else if((0,r.cy)(t))o=t;else{if("object"!==typeof t||!t)return!1;o=c(t)}const a=(0,i.Jt)(e,n)||{};for(const r of o){const e=a[r.key],t=parseInt(e,10),n="undefined"!==typeof a[r.key];switch(r.operator){case"Exists":if(!n)return!1;break;case"DoesNotExist":if(n)return!1;break;case"In":if(!r.values.length||!r.values.includes(e))return!1;break;case"NotIn":if(r.values.includes(e))return!1;break;case"Lt":if(isNaN(t)||t>=Math.min.apply(null,r.values))return!1;break;case"Gt":if(isNaN(t)||t<=Math.max.apply(null,r.values))return!1;break}}return!0}function h(e,t,n){return e.filter((e=>d(e,t,n)))}},98258:function(e,t,n){"use strict";n.d(t,{QP:function(){return s},RY:function(){return m},UD:function(){return u},Ul:function(){return h}});var r=n(65852),i=n(78359);const o={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regexp","[object Object]":"object","[object FileList]":"filelist"},{toString:a}=Object.prototype;function s(e){if(null===e)return"null";if(void 0===e)return"undefined";let t=o[a.call(e)]||"object";return"object"===t&&(e instanceof Error?t="error":e instanceof Date&&(t="date")),t}function l(e,t){const n=e-t;return(n>0)-(n<0)}const c={undefined:0,null:1,boolean:2,number:3,string:4,array:5,object:6,instance:7,function:8,class:9,date:10};function u(e,t){const n=s(e),r=s(t),i=l(c[n],c[r]);if(i)return i;switch(n){case"boolean":case"number":return l(e,t);case"string":return l(e.localeCompare(t),0);case"array":{const n=e.length,r=t.length,i=Math.min(n,r);for(let o=0;o{for(let o=0;oe.match(f)?(0,i.DZ)(e,10,"0"):e)).join("").trim()}},78359:function(e,t,n){"use strict";function r(e){return E(e||"").split("-").map((e=>i(e))).join(" ")}function i(e){return e=e||"",e.substr(0,1).toUpperCase()+e.substr(1)}function o(e,t,n=" ",r=!1){if(e=`${e}`,e.length>=t)return e;const i=t-e.length+1,o=new Array(i).join(n).substr(0,i);return r?e+o:o+e}n.d(t,{$f:function(){return l},DZ:function(){return o},HV:function(){return k},Kn:function(){return N},LQ:function(){return p},Nr:function(){return v},OF:function(){return A},TF:function(){return i},XC:function(){return S},ZD:function(){return s},ZM:function(){return R},_R:function(){return r},_k:function(){return E},eH:function(){return I},i6:function(){return x},jg:function(){return C},l9:function(){return m},pZ:function(){return y},qO:function(){return O},td:function(){return g},vx:function(){return f}});const a={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function s(e){return String(e).replace(/[&<>"']/g,(e=>a[e]))}function l(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function c(e){e=Math.max(0,e||1);const t=[];let n;if(window.crypto&&window.crypto.getRandomValues){const r=new Uint32Array(e);for(window.crypto.getRandomValues(r),n=0;nt[e%t.length])).join(""):null}function m(e,t=2){return e<1&&t>=2?Math.round(100*e)/100+"%":e<10&&t>=1?Math.round(10*e)/10+"%":`${Math.round(e)}%`}function g(e){return e.match(/.*[^aeiou]y$/i)?`${e.substr(0,e.length-1)}ies`:e.endsWith("ics")?e:e.endsWith("s")?`${e}es`:`${e}s`}function v(e,t,n){return e.reduce(((r,i,o)=>(o>=5||(r+=`${s(i)}`,o===e.length-1?r+=t:r+=o===e.length-2?n("generic.and"):n("generic.comma")),r)),"")}function y(e,t=2,n=" ",r=null){e="string"===typeof e?e.split(/\n/):e||[];const i=new Array(t+1).join(n),o=e.map((e=>{let t="",n=e;if(r){const i=e.match(r);i&&(t=i[i.length-1],n=e.substr(i[0].length))}return`${t}${i}${n}`})),a=o.join("\n");return a}const b=/([a-z\d])([A-Z])/g;function _(e){return e.replace(b,"$1_$2").toLowerCase()}const w=/[ _]/g;function E(e){return _(e).replace(w,"-")}function S(e){return e=e||"",!e.match(/[^\r\n\t\x20-\x7F]/)}function x(e,t){return"float"===t?e=parseFloat(e)||null:"int"===t?(e=parseInt(e,10),isNaN(e)&&(e=null)):"boolean"===t&&("true"===e.toLowerCase()?e=!0:"false"===e.toLowerCase()&&(e=!1)),e}function k(e,t=[]){return t.some((t=>{const n=e||"",r=A(t);return n.match(r)}))}function A(e,t=!0){return"string"===typeof e?t?new RegExp(`^${l(e)}$`,"i"):new RegExp(`${l(e)}`,"i"):e}function N(e){return s(e||"").replace(/(\r\n|\r|\n)/g,"
\n")}const T=/[^."']+|"([^"]*)"|'([^']*)'/g;function C(e){return e.includes('"')||e.includes("'")?e.match(T).map((e=>e.replace(/['"]/g,""))):e.split(".")}function R(e){let t="";for(const n of e)n.includes(".")?t+=`."${n}"`:t+=`.${n}`;return t.startsWith(".")&&(t=t.substr(1)),t}function O(e){return(e||"").replace(/^(index\.)?docker.io\/(library\/)?/,"").replace(/:latest$/,"").replace(/^(.*@sha256:)([0-9a-f]{8})[0-9a-f]+$/i,"$1$2…")}function I(e){const t=/^((25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(25[0-5]|2[0-4]\d|[01]?\d\d?)$/;return t.test(e)}},96155:function(e,t,n){"use strict";n.d(t,{Fp:function(){return l},qx:function(){return s}});var r=n(71972),i=n.n(r);const o=[60,60,24],a=["sec","min","hour","day"];function s(e,t,n){const r=i()();t=t||r;const s=e.diff(t,"seconds");let l=Math.abs(s),c=1,u="?",d=0;while(l>=o[d]&&d=0;if(v)while(m>=t&&g+1=1?""+Math.round(m*10**p)/10**p:`${Math.round(m)}`,"0"===y&&!f&&0!==e){const r=a(e,t);return o(e,{increment:t,addSuffix:n,suffix:l,firstSuffix:c,startingExponent:u,minExponent:r,maxExponent:r,maxPrecision:p,canRoundToZero:!0})}return n&&(s&&(y+=" "),y+=0===g&&null!==c?`${c}`:`${v?r[g]:i[g]}${l}`||""),y}function a(e,t=1e3){let n=0;while(e>=t)e/=t,n++;return n}function s(e,t){t=t||{};let n=t.increment;const o=!1!==t.allowFractional;if(!e||"string"!==typeof e||!e.length)return NaN;e=e.replace(/,/g,"");let[,a,s,l]=e.match(/^([0-9.-]+)\s*([^0-9.-]?)([^0-9.-]?)/);const c=parseFloat(a);if(!s)return c;181===s.charCodeAt(0)&&(s="u");const u=i.includes(s),d=r.includes(s.toUpperCase());if(n||(n=(d||u)&&"i"===l?1024:1e3),u&&o){const e=i.indexOf(s);return c/n**e}if(d){const e=r.indexOf(s.toUpperCase());return c*n**e}return c}const l={memory:{format:{addSuffix:!0,firstSuffix:"B",increment:1024,maxExponent:99,maxPrecision:2,minExponent:0,startingExponent:0,suffix:"iB"}}};function c(e){const t=a(e,l.memory.format.increment);return{...l.memory.format,maxExponent:t,minExponent:t}}function u(e){const t=a(e,l.memory.format.increment);return`${r[t]}${l.memory.format.suffix}`}function d(e,t){const n=s((e||"0").toString()),r=s((t||"0").toString()),i=c(n),a=o(n,i),l=o(r,i);return{total:Number.parseFloat(a),useful:Number.parseFloat(l),units:u(n)}}},29888:function(e,t,n){"use strict";n.d(t,{HK:function(){return u},p6:function(){return g},iK:function(){return h},um:function(){return f},OH:function(){return m},cO:function(){return p},xR:function(){return d}});var r=n(15510),i=n.n(r),o=n(17410),a=n.n(o),s=n(65852),l=n(78359);function c(e,t,n,r,i=[]){r=r||{};const{invalidChars:o,forHostname:a=!1,errorKey:s=(a?"hostname":"label"),maxLength:l=63,minLength:c=1,validChars:u="A-Za-z0-9-"}=r;h(e,{validChars:u,invalidChars:o},t,n,i),"-"===e.slice(0,1)&&i.push(n["i18n/t"](`validation.dns.${s}.startHyphen`,{key:t})),"-"===e.slice(-1)&&i.push(n["i18n/t"](`validation.dns.${s}.endHyphen`,{key:t}));const d=c,p=l;return e.lengthp&&i.push(n["i18n/t"](`validation.dns.${s}.tooLongLabel`,{key:t,max:p})),i}function u(e,t,n){const r=`model.${e}.${t}`,i=`${r}.label`;return n["i18n/exists"](`${r}.label`)?n["i18n/t"](i):n["i18n/exists"](r)?n["i18n/t"](r):t.match(/.Id$/)?(0,l._R)(t.replace(/Id$/,"")):(0,l._R)(t)}function d(e,t,n,r,o=[]){const{nullable:a,required:l,type:c="",minLength:u,maxLength:d,min:h,max:p}=t,f=e?(0,s.Jt)(e,"length"):0;if(!a&&l&&("object"===typeof e&&i()(e)||!e&&0!==e))return o.push(r["i18n/t"]("validation.required",{key:n})),o;if(null===e)return o;const m=0===c.indexOf("array[")?"arrayLength":"stringLength";let g=u,v=d;return g&&v?(fv)&&(g===v?o.push(r["i18n/t"](`validation.${m}.exactly`,{key:n,count:g})):o.push(r["i18n/t"](`validation.${m}.between`,{key:n,min:g,max:v}))):g&&fv&&o.push(r["i18n/t"](`validation.${m}.max`,{key:n,count:v})),g=h,v=p,null!==e&&g&&v?(ev)&&(g===v?o.push(r["i18n/t"]("validation.number.exactly",{key:n,val:v})):o.push(r["i18n/t"]("validation.number.between",{key:n,min:g,max:v}))):g&&ev&&o.push(r["i18n/t"]("validation.number.max",{key:n,val:v})),o}function h(e,t,n,r,i=[]){const{validChars:o,invalidChars:s}=t,l=[];if(o&&l.push(`[^${t.validChars}]`),s&&l.push(`[${t.invalidChars}]`),l.length){const t=new RegExp(`(${l.join("|")})`,"g");let o=e.match(t);o&&(o=a()(o).map((e=>" "===e?"[space]":e)),i.push(r["i18n/t"]("validation.chars",{key:n,count:o.length,chars:o.join(" ")})))}return i}function p(e,t,n,r,i=[]){r=r||{};const{max:o=253,restricted:a=!1}=r;"."===e.slice(0,1)&&i.push(n["i18n/t"]("validation.dns.hostname.startDot",{key:t})),a&&e.length>1&&"."===e.slice(-1)&&i.push(n["i18n/t"]("validation.dns.hostname.endDot",{key:t})),0===e.length&&i.push(n["i18n/t"]("validation.dns.hostname.empty",{key:t})),e.length>o&&i.push(n["i18n/t"]("validation.dns.hostname.tooLong",{key:t,max:o}));const s=e.split(/\./);let l;for(let c=0;c"server-url"===e,a=e=>e.toLowerCase().startsWith("https://"),s=e=>/^(?:https?:\/\/)?(?:localhost|127\.0\.0\.1)/i.test(e),l=e=>i()(e)&&e?.toLowerCase().endsWith("/")},45044:function(e,t,n){"use strict";n.d(t,{UD:function(){return l},V1:function(){return d},Xt:function(){return s}});var r=n(98258),i=n(8374),o=n.n(i);n(4284),n(97538),n(41890);function a(e){e=`${e}`,"v"===e.substr(0,1).toLowerCase()&&(e=e.substr(1));const t=e.split(/[.+-]/);return t}function s(e){return a(e).map((e=>(0,r.RY)(e))).join(".")}function l(e,t){if(!e)return 1;if(!t)return-1;const n=a(e),r=a(t),i=Math.min(n.length,r.length);for(let o=0;o=2&&(n=n.slice(2)):m(i)?n=r[4]:i?o&&(n=n.slice(2)):l>=2&&m(t.protocol)&&(n=r[4]),{protocol:i,slashes:o||m(i),slashesCount:l,rest:n}}function v(e,t){if(""===e)return t;var n=(t||"/").split("/").slice(0,-1).concat(e.split("/")),r=n.length,i=n[r-1],o=!1,a=0;while(r--)"."===n[r]?n.splice(r,1):".."===n[r]?(n.splice(r,1),a++):a&&(0===r&&(o=!0),n.splice(r,1),a--);return o&&n.unshift(""),"."!==i&&".."!==i||n.push(""),n.join("/")}function y(e,t,n){if(e=d(e),e=e.replace(a,""),!(this instanceof y))return new y(e,t,n);var o,s,l,c,p,b,_=h.slice(),w=typeof t,E=this,S=0;for("object"!==w&&"string"!==w&&(n=t,t=null),n&&"function"!==typeof n&&(n=i.parse),t=f(t),s=g(e||"",t),o=!s.protocol&&!s.slashes,E.slashes=s.slashes||o&&t.slashes,E.protocol=s.protocol||t.protocol||"",e=s.rest,("file:"===s.protocol&&(2!==s.slashesCount||u.test(e))||!s.slashes&&(s.protocol||s.slashesCount<2||!m(E.protocol)))&&(_[3]=[/(.*)/,"pathname"]);S<_.length;S++)c=_[S],"function"!==typeof c?(l=c[0],b=c[1],l!==l?E[b]=e:"string"===typeof l?(p="@"===l?e.lastIndexOf(l):e.indexOf(l),~p&&("number"===typeof c[2]?(E[b]=e.slice(0,p),e=e.slice(p+c[2])):(E[b]=e.slice(p),e=e.slice(0,p)))):(p=l.exec(e))&&(E[b]=p[1],e=e.slice(0,p.index)),E[b]=E[b]||o&&c[3]&&t[b]||"",c[4]&&(E[b]=E[b].toLowerCase())):e=c(e,E);n&&(E.query=n(E.query)),o&&t.slashes&&"/"!==E.pathname.charAt(0)&&(""!==E.pathname||""!==t.pathname)&&(E.pathname=v(E.pathname,t.pathname)),"/"!==E.pathname.charAt(0)&&m(E.protocol)&&(E.pathname="/"+E.pathname),r(E.port,E.protocol)||(E.host=E.hostname,E.port=""),E.username=E.password="",E.auth&&(p=E.auth.indexOf(":"),~p?(E.username=E.auth.slice(0,p),E.username=encodeURIComponent(decodeURIComponent(E.username)),E.password=E.auth.slice(p+1),E.password=encodeURIComponent(decodeURIComponent(E.password))):E.username=encodeURIComponent(decodeURIComponent(E.auth)),E.auth=E.password?E.username+":"+E.password:E.username),E.origin="file:"!==E.protocol&&m(E.protocol)&&E.host?E.protocol+"//"+E.host:"null",E.href=E.toString()}function b(e,t,n){var o=this;switch(e){case"query":"string"===typeof t&&t.length&&(t=(n||i.parse)(t)),o[e]=t;break;case"port":o[e]=t,r(t,o.protocol)?t&&(o.host=o.hostname+":"+t):(o.host=o.hostname,o[e]="");break;case"hostname":o[e]=t,o.port&&(t+=":"+o.port),o.host=t;break;case"host":o[e]=t,l.test(t)?(t=t.split(":"),o.port=t.pop(),o.hostname=t.join(":")):(o.hostname=t,o.port="");break;case"protocol":o.protocol=t.toLowerCase(),o.slashes=!n;break;case"pathname":case"hash":if(t){var a="pathname"===e?"/":"#";o[e]=t.charAt(0)!==a?a+t:t}else o[e]=t;break;case"username":case"password":o[e]=encodeURIComponent(t);break;case"auth":var s=t.indexOf(":");~s?(o.username=t.slice(0,s),o.username=encodeURIComponent(decodeURIComponent(o.username)),o.password=t.slice(s+1),o.password=encodeURIComponent(decodeURIComponent(o.password))):o.username=encodeURIComponent(decodeURIComponent(t))}for(var c=0;c{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n}},9252:function(e,t,n){var r=n(28913);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("407ab32e",r,!0,{sourceMap:!1,shadowMode:!1})},3352:function(e,t,n){var r=n(67103);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("a6fb6c3c",r,!0,{sourceMap:!1,shadowMode:!1})},32464:function(e,t,n){var r=n(52304);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("799fe399",r,!0,{sourceMap:!1,shadowMode:!1})},38812:function(e,t,n){var r=n(28988);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("b971ddc6",r,!0,{sourceMap:!1,shadowMode:!1})},49608:function(e,t,n){var r=n(65320);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("73d296b4",r,!0,{sourceMap:!1,shadowMode:!1})},72001:function(e,t,n){var r=n(64065);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("9763166c",r,!0,{sourceMap:!1,shadowMode:!1})},83301:function(e,t,n){var r=n(38245);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("5e3edba4",r,!0,{sourceMap:!1,shadowMode:!1})},42596:function(e,t,n){var r=n(30116);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("70bf6176",r,!0,{sourceMap:!1,shadowMode:!1})},13358:function(e,t,n){var r=n(13998);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("1f56704d",r,!0,{sourceMap:!1,shadowMode:!1})},74811:function(e,t,n){var r=n(33403);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("5536bad8",r,!0,{sourceMap:!1,shadowMode:!1})},56554:function(e,t,n){var r=n(64970);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("6ce52309",r,!0,{sourceMap:!1,shadowMode:!1})},39324:function(e,t,n){var r=n(74492);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("a3cb497e",r,!0,{sourceMap:!1,shadowMode:!1})},60226:function(e,t,n){var r=n(75106);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("51f6978c",r,!0,{sourceMap:!1,shadowMode:!1})},41158:function(e,t,n){var r=n(81945);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("2715a0f6",r,!0,{sourceMap:!1,shadowMode:!1})},29056:function(e,t,n){var r=n(66208);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("7f55fbee",r,!0,{sourceMap:!1,shadowMode:!1})},32206:function(e,t,n){var r=n(63982);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("b65cc5f2",r,!0,{sourceMap:!1,shadowMode:!1})},29112:function(e,t,n){var r=n(99736);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("e74d571a",r,!0,{sourceMap:!1,shadowMode:!1})},52131:function(e,t,n){var r=n(45571);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("a804be3c",r,!0,{sourceMap:!1,shadowMode:!1})},87923:function(e,t,n){var r=n(8243);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("4d629d48",r,!0,{sourceMap:!1,shadowMode:!1})},61177:function(e,t,n){var r=n(52377);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("3d560238",r,!0,{sourceMap:!1,shadowMode:!1})},30990:function(e,t,n){var r=n(76462);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("90f9c462",r,!0,{sourceMap:!1,shadowMode:!1})},37316:function(e,t,n){var r=n(96740);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("f48270c6",r,!0,{sourceMap:!1,shadowMode:!1})},91784:function(e,t,n){var r=n(60456);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("185e4b12",r,!0,{sourceMap:!1,shadowMode:!1})},8636:function(e,t,n){var r=n(32751);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("33a59c60",r,!0,{sourceMap:!1,shadowMode:!1})},67501:function(e,t,n){var r=n(78541);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("a2438a8c",r,!0,{sourceMap:!1,shadowMode:!1})},50512:function(e,t,n){var r=n(51984);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("554f938b",r,!0,{sourceMap:!1,shadowMode:!1})},36436:function(e,t,n){var r=n(21588);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("18b205fc",r,!0,{sourceMap:!1,shadowMode:!1})},13059:function(e,t,n){var r=n(52579);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("69aa3dd2",r,!0,{sourceMap:!1,shadowMode:!1})},98941:function(e,t,n){var r=n(42653);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("d1e4139a",r,!0,{sourceMap:!1,shadowMode:!1})},4767:function(e,t,n){var r=n(98207);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("273b3aca",r,!0,{sourceMap:!1,shadowMode:!1})},12286:function(e,t,n){var r=n(92478);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("4f2c1ef5",r,!0,{sourceMap:!1,shadowMode:!1})},60004:function(e,t,n){var r=n(13988);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("04cf87dc",r,!0,{sourceMap:!1,shadowMode:!1})},50642:function(e,t,n){var r=n(28754);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("208a5402",r,!0,{sourceMap:!1,shadowMode:!1})},20769:function(e,t,n){var r=n(11041);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("23e234d1",r,!0,{sourceMap:!1,shadowMode:!1})},93087:function(e,t,n){var r=n(91391);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("95e2a978",r,!0,{sourceMap:!1,shadowMode:!1})},2466:function(e,t,n){var r=n(41346);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("6054c5a4",r,!0,{sourceMap:!1,shadowMode:!1})},38222:function(e,t,n){var r=n(77774);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("9544bd64",r,!0,{sourceMap:!1,shadowMode:!1})},42958:function(e,t,n){var r=n(94606);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("41d44fc9",r,!0,{sourceMap:!1,shadowMode:!1})},19264:function(e,t,n){var r=n(6720);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("c7f70b96",r,!0,{sourceMap:!1,shadowMode:!1})},62509:function(e,t,n){var r=n(877);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("f515ea0c",r,!0,{sourceMap:!1,shadowMode:!1})},22380:function(e,t,n){var r=n(78540);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("4e28bb0a",r,!0,{sourceMap:!1,shadowMode:!1})},58383:function(e,t,n){var r=n(25295);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("d973b85e",r,!0,{sourceMap:!1,shadowMode:!1})},44568:function(e,t,n){var r=n(23448);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("24e9de36",r,!0,{sourceMap:!1,shadowMode:!1})},46527:function(e,t,n){var r=n(59679);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("8f90a678",r,!0,{sourceMap:!1,shadowMode:!1})},15656:function(e,t,n){var r=n(86728);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("4df4ce3e",r,!0,{sourceMap:!1,shadowMode:!1})},60740:function(e,t,n){var r=n(52004);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("581f75b0",r,!0,{sourceMap:!1,shadowMode:!1})},25594:function(e,t,n){var r=n(45754);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("4b0d78ae",r,!0,{sourceMap:!1,shadowMode:!1})},56064:function(e,t,n){var r=n(18112);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("1cfe1ebd",r,!0,{sourceMap:!1,shadowMode:!1})},27235:function(e,t,n){var r=n(4739);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("5d692196",r,!0,{sourceMap:!1,shadowMode:!1})},9581:function(e,t,n){var r=n(7821);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("e87bca84",r,!0,{sourceMap:!1,shadowMode:!1})},4633:function(e,t,n){var r=n(47769);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("fad9a25a",r,!0,{sourceMap:!1,shadowMode:!1})},50096:function(e,t,n){var r=n(95408);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("110712af",r,!0,{sourceMap:!1,shadowMode:!1})},16946:function(e,t,n){var r=n(17298);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("0c54f998",r,!0,{sourceMap:!1,shadowMode:!1})},94647:function(e,t,n){var r=n(19991);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("27650676",r,!0,{sourceMap:!1,shadowMode:!1})},34180:function(e,t,n){var r=n(67748);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("044e3a16",r,!0,{sourceMap:!1,shadowMode:!1})},92229:function(e,t,n){var r=n(94501);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("2f1fa13a",r,!0,{sourceMap:!1,shadowMode:!1})},49699:function(e,t,n){var r=n(60099);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("35024426",r,!0,{sourceMap:!1,shadowMode:!1})},77393:function(e,t,n){var r=n(40913);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("bc8533e8",r,!0,{sourceMap:!1,shadowMode:!1})},3831:function(e,t,n){var r=n(25399);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("004132c0",r,!0,{sourceMap:!1,shadowMode:!1})},49456:function(e,t,n){var r=n(30480);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("59224bbe",r,!0,{sourceMap:!1,shadowMode:!1})},11757:function(e,t,n){var r=n(986);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("4f5a1635",r,!0,{sourceMap:!1,shadowMode:!1})},29581:function(e,t,n){var r=n(13165);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("6633dc34",r,!0,{sourceMap:!1,shadowMode:!1})},88251:function(e,t,n){var r=n(96539);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("7b597f0c",r,!0,{sourceMap:!1,shadowMode:!1})},37282:function(e,t,n){var r=n(91266);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("2fc188d4",r,!0,{sourceMap:!1,shadowMode:!1})},72688:function(e,t,n){var r=n(24464);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("6de45a82",r,!0,{sourceMap:!1,shadowMode:!1})},85428:function(e,t,n){var r=n(67508);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("4c0fa546",r,!0,{sourceMap:!1,shadowMode:!1})},6938:function(e,t,n){var r=n(39578);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("5c4d5869",r,!0,{sourceMap:!1,shadowMode:!1})},21512:function(e,t,n){var r=n(15976);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("78ddf6dc",r,!0,{sourceMap:!1,shadowMode:!1})},61159:function(e,t,n){var r=n(12231);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("f7950f62",r,!0,{sourceMap:!1,shadowMode:!1})},10990:function(e,t,n){var r=n(44782);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("8c0421f4",r,!0,{sourceMap:!1,shadowMode:!1})},73757:function(e,t,n){var r=n(9501);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("1e14a47f",r,!0,{sourceMap:!1,shadowMode:!1})},38086:function(e,t,n){var r=n(16262);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("26f8c9e0",r,!0,{sourceMap:!1,shadowMode:!1})},87300:function(e,t,n){var r=n(71012);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("bf30f438",r,!0,{sourceMap:!1,shadowMode:!1})},21501:function(e,t,n){var r=n(5661);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("091d978c",r,!0,{sourceMap:!1,shadowMode:!1})},86330:function(e,t,n){var r=n(45338);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("5e1bce9a",r,!0,{sourceMap:!1,shadowMode:!1})},12577:function(e,t,n){var r=n(56385);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("6c849b54",r,!0,{sourceMap:!1,shadowMode:!1})},32906:function(e,t,n){var r=n(82538);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("611866a6",r,!0,{sourceMap:!1,shadowMode:!1})},7230:function(e,t,n){var r=n(71582);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("7f2a6549",r,!0,{sourceMap:!1,shadowMode:!1})},840:function(e,t,n){var r=n(47848);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("652f58d7",r,!0,{sourceMap:!1,shadowMode:!1})},54834:function(e,t,n){var r=n(18738);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("6a51e7d2",r,!0,{sourceMap:!1,shadowMode:!1})},71998:function(e,t,n){var r=n(94558);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("231da970",r,!0,{sourceMap:!1,shadowMode:!1})},73249:function(e,t,n){var r=n(37665);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("55ac07a8",r,!0,{sourceMap:!1,shadowMode:!1})},50537:function(e,t,n){var r=n(32393);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("61fd4200",r,!0,{sourceMap:!1,shadowMode:!1})},73775:function(e,t,n){var r=n(52879);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("1895fbf5",r,!0,{sourceMap:!1,shadowMode:!1})},49419:function(e,t,n){var r=n(35947);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("40f85e0c",r,!0,{sourceMap:!1,shadowMode:!1})},74825:function(e,t,n){"use strict";function r(e,t){for(var n=[],r={},i=0;in.parts.length&&(r.parts.length=n.parts.length)}else{var a=[];for(i=0;i{e===this.plugin.id&&this.fallbacks.setSettings(t)})),this.proxiedOn=new Proxy({},{get:(e,t)=>this.target?this.target.on[t]:(...e)=>{this.onQueue.push({method:t,args:e})}}),this.proxiedTarget=new Proxy({},{get:(e,t)=>this.target?this.target[t]:"on"===t?this.proxiedOn:Object.keys(this.fallbacks).includes(t)?(...e)=>(this.targetQueue.push({method:t,args:e,resolve:()=>{}}),this.fallbacks[t](...e)):(...e)=>new Promise((n=>{this.targetQueue.push({method:t,args:e,resolve:n})}))})}async setRealTarget(e){this.target=e;for(const t of this.onQueue)this.target.on[t.method](...t.args);for(const t of this.targetQueue)t.resolve(await this.target[t.method](...t.args))}}function f(e,t){const n=e,r=o(),l=i(),c=a&&n.enableEarlyProxy;if(!l||!r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__&&c){const e=c?new p(n,l):null,i=r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[];i.push({pluginDescriptor:n,setupFn:t,proxy:e}),e&&t(e.proxiedTarget)}else l.emit(s,e,t)}n(9776); /*! * vuex v4.0.2 * (c) 2021 Evan You * @license MIT */var m="store";function g(e,t){Object.keys(e).forEach((function(n){return t(e[n],n)}))}function v(e){return null!==e&&"object"===typeof e}function y(e){return e&&"function"===typeof e.then}function b(e,t){return function(){return e(t)}}function _(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function w(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;S(e,n,[],e._modules.root,!0),E(e,n,t)}function E(e,t,n){var i=e._state;e.getters={},e._makeLocalGettersCache=Object.create(null);var o=e._wrappedGetters,a={};g(o,(function(t,n){a[n]=b(t,e),Object.defineProperty(e.getters,n,{get:function(){return a[n]()},enumerable:!0})})),e._state=(0,r.reactive)({data:t}),e.strict&&C(e),i&&n&&e._withCommit((function(){i.data=null}))}function S(e,t,n,r,i){var o=!n.length,a=e._modules.getNamespace(n);if(r.namespaced&&(e._modulesNamespaceMap[a],e._modulesNamespaceMap[a]=r),!o&&!i){var s=R(t,n.slice(0,-1)),l=n[n.length-1];e._withCommit((function(){s[l]=r.state}))}var c=r.context=x(e,a,n);r.forEachMutation((function(t,n){var r=a+n;A(e,r,t,c)})),r.forEachAction((function(t,n){var r=t.root?n:a+n,i=t.handler||t;N(e,r,i,c)})),r.forEachGetter((function(t,n){var r=a+n;T(e,r,t,c)})),r.forEachChild((function(r,o){S(e,t,n.concat(o),r,i)}))}function x(e,t,n){var r=""===t,i={dispatch:r?e.dispatch:function(n,r,i){var o=O(n,r,i),a=o.payload,s=o.options,l=o.type;return s&&s.root||(l=t+l),e.dispatch(l,a)},commit:r?e.commit:function(n,r,i){var o=O(n,r,i),a=o.payload,s=o.options,l=o.type;s&&s.root||(l=t+l),e.commit(l,a,s)}};return Object.defineProperties(i,{getters:{get:r?function(){return e.getters}:function(){return k(e,t)}},state:{get:function(){return R(e.state,n)}}}),i}function k(e,t){if(!e._makeLocalGettersCache[t]){var n={},r=t.length;Object.keys(e.getters).forEach((function(i){if(i.slice(0,r)===t){var o=i.slice(r);Object.defineProperty(n,o,{get:function(){return e.getters[i]},enumerable:!0})}})),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function A(e,t,n,r){var i=e._mutations[t]||(e._mutations[t]=[]);i.push((function(t){n.call(e,r.state,t)}))}function N(e,t,n,r){var i=e._actions[t]||(e._actions[t]=[]);i.push((function(t){var i=n.call(e,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:e.getters,rootState:e.state},t);return y(i)||(i=Promise.resolve(i)),e._devtoolHook?i.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):i}))}function T(e,t,n,r){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(e){return n(r.state,r.getters,e.state,e.getters)})}function C(e){(0,r.watch)((function(){return e._state.data}),(function(){0}),{deep:!0,flush:"sync"})}function R(e,t){return t.reduce((function(e,t){return e[t]}),e)}function O(e,t,n){return v(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}var I="vuex bindings",D="vuex:mutations",L="vuex:actions",P="vuex",M=0;function F(e,t){f({id:"org.vuejs.vuex",app:e,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[I]},(function(n){n.addTimelineLayer({id:D,label:"Vuex Mutations",color:B}),n.addTimelineLayer({id:L,label:"Vuex Actions",color:B}),n.addInspector({id:P,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),n.on.getInspectorTree((function(n){if(n.app===e&&n.inspectorId===P)if(n.filter){var r=[];H(r,t._modules.root,n.filter,""),n.rootNodes=r}else n.rootNodes=[K(t._modules.root,"")]})),n.on.getInspectorState((function(n){if(n.app===e&&n.inspectorId===P){var r=n.nodeId;k(t,r),n.state=G(X(t._modules,r),"root"===r?t.getters:t._makeLocalGettersCache,r)}})),n.on.editInspectorState((function(n){if(n.app===e&&n.inspectorId===P){var r=n.nodeId,i=n.path;"root"!==r&&(i=r.split("/").filter(Boolean).concat(i)),t._withCommit((function(){n.set(t._state.data,i,n.state.value)}))}})),t.subscribe((function(e,t){var r={};e.payload&&(r.payload=e.payload),r.state=t,n.notifyComponentUpdate(),n.sendInspectorTree(P),n.sendInspectorState(P),n.addTimelineEvent({layerId:D,event:{time:Date.now(),title:e.type,data:r}})})),t.subscribeAction({before:function(e,t){var r={};e.payload&&(r.payload=e.payload),e._id=M++,e._time=Date.now(),r.state=t,n.addTimelineEvent({layerId:L,event:{time:e._time,title:e.type,groupId:e._id,subtitle:"start",data:r}})},after:function(e,t){var r={},i=Date.now()-e._time;r.duration={_custom:{type:"duration",display:i+"ms",tooltip:"Action duration",value:i}},e.payload&&(r.payload=e.payload),r.state=t,n.addTimelineEvent({layerId:L,event:{time:Date.now(),title:e.type,groupId:e._id,subtitle:"end",data:r}})}})}))}var B=8702998,$=6710886,j=16777215,U={label:"namespaced",textColor:j,backgroundColor:$};function V(e){return e&&"root"!==e?e.split("/").slice(-2,-1)[0]:"Root"}function K(e,t){return{id:t||"root",label:V(t),tags:e.namespaced?[U]:[],children:Object.keys(e._children).map((function(n){return K(e._children[n],t+n+"/")}))}}function H(e,t,n,r){r.includes(n)&&e.push({id:r||"root",label:r.endsWith("/")?r.slice(0,r.length-1):r||"Root",tags:t.namespaced?[U]:[]}),Object.keys(t._children).forEach((function(i){H(e,t._children[i],n,r+i+"/")}))}function G(e,t,n){t="root"===n?t:t[n];var r=Object.keys(t),i={state:Object.keys(e.state).map((function(t){return{key:t,editable:!0,value:e.state[t]}}))};if(r.length){var o=z(t);i.getters=Object.keys(o).map((function(e){return{key:e.endsWith("/")?V(e):e,editable:!1,value:q((function(){return o[e]}))}}))}return i}function z(e){var t={};return Object.keys(e).forEach((function(n){var r=n.split("/");if(r.length>1){var i=t,o=r.pop();r.forEach((function(e){i[e]||(i[e]={_custom:{value:{},display:e,tooltip:"Module",abstract:!0}}),i=i[e]._custom.value})),i[o]=q((function(){return e[n]}))}else t[n]=q((function(){return e[n]}))})),t}function X(e,t){var n=t.split("/").filter((function(e){return e}));return n.reduce((function(e,r,i){var o=e[r];if(!o)throw new Error('Missing module "'+r+'" for path "'+t+'".');return i===n.length-1?o:o._children}),"root"===t?e:e.root._children)}function q(e){try{return e()}catch(t){return t}}var W=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var n=e.state;this.state=("function"===typeof n?n():n)||{}},Y={namespaced:{configurable:!0}};Y.namespaced.get=function(){return!!this._rawModule.namespaced},W.prototype.addChild=function(e,t){this._children[e]=t},W.prototype.removeChild=function(e){delete this._children[e]},W.prototype.getChild=function(e){return this._children[e]},W.prototype.hasChild=function(e){return e in this._children},W.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},W.prototype.forEachChild=function(e){g(this._children,e)},W.prototype.forEachGetter=function(e){this._rawModule.getters&&g(this._rawModule.getters,e)},W.prototype.forEachAction=function(e){this._rawModule.actions&&g(this._rawModule.actions,e)},W.prototype.forEachMutation=function(e){this._rawModule.mutations&&g(this._rawModule.mutations,e)},Object.defineProperties(W.prototype,Y);var Q=function(e){this.register([],e,!1)};function J(e,t,n){if(t.update(n),n.modules)for(var r in n.modules){if(!t.getChild(r))return void 0;J(e.concat(r),t.getChild(r),n.modules[r])}}Q.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},Q.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,n){return t=t.getChild(n),e+(t.namespaced?n+"/":"")}),"")},Q.prototype.update=function(e){J([],this.root,e)},Q.prototype.register=function(e,t,n){var r=this;void 0===n&&(n=!0);var i=new W(t,n);if(0===e.length)this.root=i;else{var o=this.get(e.slice(0,-1));o.addChild(e[e.length-1],i)}t.modules&&g(t.modules,(function(t,i){r.register(e.concat(i),t,n)}))},Q.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1],r=t.getChild(n);r&&r.runtime&&t.removeChild(n)},Q.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];return!!t&&t.hasChild(n)};var Z=function(e){var t=this;void 0===e&&(e={});var n=e.plugins;void 0===n&&(n=[]);var r=e.strict;void 0===r&&(r=!1);var i=e.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new Q(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._devtools=i;var o=this,a=this,s=a.dispatch,l=a.commit;this.dispatch=function(e,t){return s.call(o,e,t)},this.commit=function(e,t,n){return l.call(o,e,t,n)},this.strict=r;var c=this._modules.root.state;S(this,c,[],this._modules.root),E(this,c),n.forEach((function(e){return e(t)}))},ee={state:{configurable:!0}};Z.prototype.install=function(e,t){e.provide(t||m,this),e.config.globalProperties.$store=this;var n=void 0!==this._devtools&&this._devtools;n&&F(e,this)},ee.state.get=function(){return this._state.data},ee.state.set=function(e){0},Z.prototype.commit=function(e,t,n){var r=this,i=O(e,t,n),o=i.type,a=i.payload,s=(i.options,{type:o,payload:a}),l=this._mutations[o];l&&(this._withCommit((function(){l.forEach((function(e){e(a)}))})),this._subscribers.slice().forEach((function(e){return e(s,r.state)})))},Z.prototype.dispatch=function(e,t){var n=this,r=O(e,t),i=r.type,o=r.payload,a={type:i,payload:o},s=this._actions[i];if(s){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(a,n.state)}))}catch(c){0}var l=s.length>1?Promise.all(s.map((function(e){return e(o)}))):s[0](o);return new Promise((function(e,t){l.then((function(t){try{n._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(a,n.state)}))}catch(c){0}e(t)}),(function(e){try{n._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(a,n.state,e)}))}catch(c){0}t(e)}))}))}},Z.prototype.subscribe=function(e,t){return _(e,this._subscribers,t)},Z.prototype.subscribeAction=function(e,t){var n="function"===typeof e?{before:e}:e;return _(n,this._actionSubscribers,t)},Z.prototype.watch=function(e,t,n){var i=this;return(0,r.watch)((function(){return e(i.state,i.getters)}),t,Object.assign({},n))},Z.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._state.data=e}))},Z.prototype.registerModule=function(e,t,n){void 0===n&&(n={}),"string"===typeof e&&(e=[e]),this._modules.register(e,t),S(this,this.state,e,this._modules.get(e),n.preserveState),E(this,this.state)},Z.prototype.unregisterModule=function(e){var t=this;"string"===typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){var n=R(t.state,e.slice(0,-1));delete n[e[e.length-1]]})),w(this)},Z.prototype.hasModule=function(e){return"string"===typeof e&&(e=[e]),this._modules.isRegistered(e)},Z.prototype.hotUpdate=function(e){this._modules.update(e),w(this,!0)},Z.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(Z.prototype,ee);var te=oe((function(e,t){var n={};return re(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){var t=this.$store.state,n=this.$store.getters;if(e){var r=ae(this.$store,"mapState",e);if(!r)return;t=r.context.state,n=r.context.getters}return"function"===typeof i?i.call(this,t,n):t[i]},n[r].vuex=!0})),n})),ne=(oe((function(e,t){var n={};return re(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var r=this.$store.commit;if(e){var o=ae(this.$store,"mapMutations",e);if(!o)return;r=o.context.commit}return"function"===typeof i?i.apply(this,[r].concat(t)):r.apply(this.$store,[i].concat(t))}})),n})),oe((function(e,t){var n={};return re(t).forEach((function(t){var r=t.key,i=t.val;i=e+i,n[r]=function(){if(!e||ae(this.$store,"mapGetters",e))return this.$store.getters[i]},n[r].vuex=!0})),n})));oe((function(e,t){var n={};return re(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var r=this.$store.dispatch;if(e){var o=ae(this.$store,"mapActions",e);if(!o)return;r=o.context.dispatch}return"function"===typeof i?i.apply(this,[r].concat(t)):r.apply(this.$store,[i].concat(t))}})),n}));function re(e){return ie(e)?Array.isArray(e)?e.map((function(e){return{key:e,val:e}})):Object.keys(e).map((function(t){return{key:t,val:e[t]}})):[]}function ie(e){return Array.isArray(e)||v(e)}function oe(e){return function(t,n){return"string"!==typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}function ae(e,t,n){var r=e._modulesNamespaceMap[n];return r}},24666:function(e){"use strict";e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}},10222:function(e,t,n){"use strict";function r(e){var t=this;if(t instanceof r||(t=new r),t.tail=null,t.head=null,t.length=0,e&&"function"===typeof e.forEach)e.forEach((function(e){t.push(e)}));else if(arguments.length>0)for(var n=0,i=arguments.length;n1)n=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");r=this.head.next,n=this.head.value}for(var i=0;null!==r;i++)n=e(n,r.value,i),r=r.next;return n},r.prototype.reduceReverse=function(e,t){var n,r=this.tail;if(arguments.length>1)n=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");r=this.tail.prev,n=this.tail.value}for(var i=this.length-1;null!==r;i--)n=e(n,r.value,i),r=r.prev;return n},r.prototype.toArray=function(){for(var e=new Array(this.length),t=0,n=this.head;null!==n;t++)e[t]=n.value,n=n.next;return e},r.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,n=this.tail;null!==n;t++)e[t]=n.value,n=n.prev;return e},r.prototype.slice=function(e,t){t=t||this.length,t<0&&(t+=this.length),e=e||0,e<0&&(e+=this.length);var n=new r;if(tthis.length&&(t=this.length);for(var i=0,o=this.head;null!==o&&ithis.length&&(t=this.length);for(var i=this.length,o=this.tail;null!==o&&i>t;i--)o=o.prev;for(;null!==o&&i>e;i--,o=o.prev)n.push(o.value);return n},r.prototype.splice=function(e,t,...n){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var r=0,o=this.head;null!==o&&r-1&&e%1==0&&e-1}e.exports=i},63681:function(e,t,n){var r=n(39583);function i(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}e.exports=i},66158:function(e,t,n){var r=n(43691),i=n(1137),o=n(22669);function a(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}e.exports=a},20904:function(e,t,n){var r=n(37505);function i(e){var t=r(this,e)["delete"](e);return this.size-=t?1:0,t}e.exports=i},17195:function(e,t,n){var r=n(37505);function i(e){return r(this,e).get(e)}e.exports=i},32903:function(e,t,n){var r=n(37505);function i(e){return r(this,e).has(e)}e.exports=i},29903:function(e,t,n){var r=n(37505);function i(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}e.exports=i},82316:function(e,t,n){var r=n(55936),i=r(Object,"create");e.exports=i},34596:function(e,t,n){var r=n(56041),i=r(Object.keys,Object);e.exports=i},91211:function(e){function t(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}e.exports=t},33067:function(e,t,n){e=n.nmd(e);var r=n(64382),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i,s=a&&r.process,l=function(){try{var e=o&&o.require&&o.require("util").types;return e||s&&s.binding&&s.binding("util")}catch(t){}}();e.exports=l},58588:function(e){var t=Object.prototype,n=t.toString;function r(e){return n.call(e)}e.exports=r},56041:function(e){function t(e,t){return function(n){return e(t(n))}}e.exports=t},25395:function(e,t,n){var r=n(64382),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},63762:function(e,t,n){var r=n(1137);function i(){this.__data__=new r,this.size=0}e.exports=i},62724:function(e){function t(e){var t=this.__data__,n=t["delete"](e);return this.size=t.size,n}e.exports=t},43927:function(e){function t(e){return this.__data__.get(e)}e.exports=t},40939:function(e){function t(e){return this.__data__.has(e)}e.exports=t},74387:function(e,t,n){var r=n(1137),i=n(22669),o=n(54567),a=200;function s(e,t){var n=this.__data__;if(n instanceof r){var s=n.__data__;if(!i||s.length-1&&e%1==0&&e<=t}e.exports=n},88884:function(e,t,n){var r=n(10726),i=n(76747),o=n(33067),a=o&&o.isMap,s=a?i(a):r;e.exports=s},79955:function(e){function t(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}e.exports=t},16588:function(e){function t(e){return null!=e&&"object"==typeof e}e.exports=t},20326:function(e,t,n){var r=n(91380),i=n(76747),o=n(33067),a=o&&o.isSet,s=a?i(a):r;e.exports=s},11301:function(e,t,n){var r=n(17579),i=n(76747),o=n(33067),a=o&&o.isTypedArray,s=a?i(a):r;e.exports=s},62328:function(e,t,n){var r=n(70289),i=n(22426),o=n(37996);function a(e){return o(e)?r(e):i(e)}e.exports=a},93447:function(e,t,n){var r=n(70289),i=n(18749),o=n(37996);function a(e){return o(e)?r(e,!0):i(e)}e.exports=a},48945:function(e,t,n){var r; /** * @license * Lodash * Copyright OpenJS Foundation and other contributors * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors */e=n.nmd(e),function(){var i,o="4.17.21",a=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",c="Invalid `variable` option passed into `_.template`",u="__lodash_hash_undefined__",d=500,h="__lodash_placeholder__",p=1,f=2,m=4,g=1,v=2,y=1,b=2,_=4,w=8,E=16,S=32,x=64,k=128,A=256,N=512,T=30,C="...",R=800,O=16,I=1,D=2,L=3,P=1/0,M=9007199254740991,F=17976931348623157e292,B=NaN,$=4294967295,j=$-1,U=$>>>1,V=[["ary",k],["bind",y],["bindKey",b],["curry",w],["curryRight",E],["flip",N],["partial",S],["partialRight",x],["rearg",A]],K="[object Arguments]",H="[object Array]",G="[object AsyncFunction]",z="[object Boolean]",X="[object Date]",q="[object DOMException]",W="[object Error]",Y="[object Function]",Q="[object GeneratorFunction]",J="[object Map]",Z="[object Number]",ee="[object Null]",te="[object Object]",ne="[object Promise]",re="[object Proxy]",ie="[object RegExp]",oe="[object Set]",ae="[object String]",se="[object Symbol]",le="[object Undefined]",ce="[object WeakMap]",ue="[object WeakSet]",de="[object ArrayBuffer]",he="[object DataView]",pe="[object Float32Array]",fe="[object Float64Array]",me="[object Int8Array]",ge="[object Int16Array]",ve="[object Int32Array]",ye="[object Uint8Array]",be="[object Uint8ClampedArray]",_e="[object Uint16Array]",we="[object Uint32Array]",Ee=/\b__p \+= '';/g,Se=/\b(__p \+=) '' \+/g,xe=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ke=/&(?:amp|lt|gt|quot|#39);/g,Ae=/[&<>"']/g,Ne=RegExp(ke.source),Te=RegExp(Ae.source),Ce=/<%-([\s\S]+?)%>/g,Re=/<%([\s\S]+?)%>/g,Oe=/<%=([\s\S]+?)%>/g,Ie=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,De=/^\w*$/,Le=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Pe=/[\\^$.*+?()[\]{}|]/g,Me=RegExp(Pe.source),Fe=/^\s+/,Be=/\s/,$e=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,je=/\{\n\/\* \[wrapped with (.+)\] \*/,Ue=/,? & /,Ve=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ke=/[()=,{}\[\]\/\s]/,He=/\\(\\)?/g,Ge=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ze=/\w*$/,Xe=/^[-+]0x[0-9a-f]+$/i,qe=/^0b[01]+$/i,We=/^\[object .+?Constructor\]$/,Ye=/^0o[0-7]+$/i,Qe=/^(?:0|[1-9]\d*)$/,Je=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ze=/($^)/,et=/['\n\r\u2028\u2029\\]/g,tt="\\ud800-\\udfff",nt="\\u0300-\\u036f",rt="\\ufe20-\\ufe2f",it="\\u20d0-\\u20ff",ot=nt+rt+it,at="\\u2700-\\u27bf",st="a-z\\xdf-\\xf6\\xf8-\\xff",lt="\\xac\\xb1\\xd7\\xf7",ct="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ut="\\u2000-\\u206f",dt=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ht="A-Z\\xc0-\\xd6\\xd8-\\xde",pt="\\ufe0e\\ufe0f",ft=lt+ct+ut+dt,mt="['’]",gt="["+tt+"]",vt="["+ft+"]",yt="["+ot+"]",bt="\\d+",_t="["+at+"]",wt="["+st+"]",Et="[^"+tt+ft+bt+at+st+ht+"]",St="\\ud83c[\\udffb-\\udfff]",xt="(?:"+yt+"|"+St+")",kt="[^"+tt+"]",At="(?:\\ud83c[\\udde6-\\uddff]){2}",Nt="[\\ud800-\\udbff][\\udc00-\\udfff]",Tt="["+ht+"]",Ct="\\u200d",Rt="(?:"+wt+"|"+Et+")",Ot="(?:"+Tt+"|"+Et+")",It="(?:"+mt+"(?:d|ll|m|re|s|t|ve))?",Dt="(?:"+mt+"(?:D|LL|M|RE|S|T|VE))?",Lt=xt+"?",Pt="["+pt+"]?",Mt="(?:"+Ct+"(?:"+[kt,At,Nt].join("|")+")"+Pt+Lt+")*",Ft="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Bt="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",$t=Pt+Lt+Mt,jt="(?:"+[_t,At,Nt].join("|")+")"+$t,Ut="(?:"+[kt+yt+"?",yt,At,Nt,gt].join("|")+")",Vt=RegExp(mt,"g"),Kt=RegExp(yt,"g"),Ht=RegExp(St+"(?="+St+")|"+Ut+$t,"g"),Gt=RegExp([Tt+"?"+wt+"+"+It+"(?="+[vt,Tt,"$"].join("|")+")",Ot+"+"+Dt+"(?="+[vt,Tt+Rt,"$"].join("|")+")",Tt+"?"+Rt+"+"+It,Tt+"+"+Dt,Bt,Ft,bt,jt].join("|"),"g"),zt=RegExp("["+Ct+tt+ot+pt+"]"),Xt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,qt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Wt=-1,Yt={};Yt[pe]=Yt[fe]=Yt[me]=Yt[ge]=Yt[ve]=Yt[ye]=Yt[be]=Yt[_e]=Yt[we]=!0,Yt[K]=Yt[H]=Yt[de]=Yt[z]=Yt[he]=Yt[X]=Yt[W]=Yt[Y]=Yt[J]=Yt[Z]=Yt[te]=Yt[ie]=Yt[oe]=Yt[ae]=Yt[ce]=!1;var Qt={};Qt[K]=Qt[H]=Qt[de]=Qt[he]=Qt[z]=Qt[X]=Qt[pe]=Qt[fe]=Qt[me]=Qt[ge]=Qt[ve]=Qt[J]=Qt[Z]=Qt[te]=Qt[ie]=Qt[oe]=Qt[ae]=Qt[se]=Qt[ye]=Qt[be]=Qt[_e]=Qt[we]=!0,Qt[W]=Qt[Y]=Qt[ce]=!1;var Jt={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"},Zt={"&":"&","<":"<",">":">",'"':""","'":"'"},en={"&":"&","<":"<",">":">",""":'"',"'":"'"},tn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},nn=parseFloat,rn=parseInt,on="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,an="object"==typeof self&&self&&self.Object===Object&&self,sn=on||an||Function("return this")(),ln=t&&!t.nodeType&&t,cn=ln&&e&&!e.nodeType&&e,un=cn&&cn.exports===ln,dn=un&&on.process,hn=function(){try{var e=cn&&cn.require&&cn.require("util").types;return e||dn&&dn.binding&&dn.binding("util")}catch(t){}}(),pn=hn&&hn.isArrayBuffer,fn=hn&&hn.isDate,mn=hn&&hn.isMap,gn=hn&&hn.isRegExp,vn=hn&&hn.isSet,yn=hn&&hn.isTypedArray;function bn(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function _n(e,t,n,r){var i=-1,o=null==e?0:e.length;while(++i-1}function An(e,t,n){var r=-1,i=null==e?0:e.length;while(++r-1);return n}function Zn(e,t){var n=e.length;while(n--&&Fn(t,e[n],0)>-1);return n}function er(e,t){var n=e.length,r=0;while(n--)e[n]===t&&++r;return r}var tr=Vn(Jt),nr=Vn(Zt);function rr(e){return"\\"+tn[e]}function ir(e,t){return null==e?i:e[t]}function or(e){return zt.test(e)}function ar(e){return Xt.test(e)}function sr(e){var t,n=[];while(!(t=e.next()).done)n.push(t.value);return n}function lr(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function cr(e,t){return function(n){return e(t(n))}}function ur(e,t){var n=-1,r=e.length,i=0,o=[];while(++n-1}function Vr(e,t){var n=this.__data__,r=ui(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Kr(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t=t?e:t)),e}function vi(e,t,n,r,o,a){var s,l=t&p,c=t&f,u=t&m;if(n&&(s=o?n(e,r,o,a):n(e)),s!==i)return s;if(!xu(e))return e;var d=lu(e);if(d){if(s=ts(e),!l)return ia(e,s)}else{var h=Qa(e),g=h==Y||h==Q;if(pu(e))return qo(e,l);if(h==te||h==K||g&&!o){if(s=c||g?{}:ns(e),!l)return c?sa(e,pi(s,e)):aa(e,hi(s,e))}else{if(!Qt[h])return o?e:{};s=rs(e,h,l)}}a||(a=new Jr);var v=a.get(e);if(v)return v;a.set(e,s),Fu(e)?e.forEach((function(r){s.add(vi(r,t,n,r,e,a))})):Au(e)&&e.forEach((function(r,i){s.set(i,vi(r,t,n,i,e,a))}));var y=u?c?ja:$a:c?Sd:Ed,b=d?i:y(e);return wn(b||e,(function(r,i){b&&(i=r,r=e[i]),ci(s,i,vi(r,t,n,i,e,a))})),s}function yi(e){var t=Ed(e);return function(n){return bi(n,e,t)}}function bi(e,t,n){var r=n.length;if(null==e)return!r;e=nt(e);while(r--){var o=n[r],a=t[o],s=e[o];if(s===i&&!(o in e)||!a(s))return!1}return!0}function _i(e,t,n){if("function"!=typeof e)throw new ot(l);return ks((function(){e.apply(i,n)}),t)}function wi(e,t,n,r){var i=-1,o=kn,s=!0,l=e.length,c=[],u=t.length;if(!l)return c;n&&(t=Nn(t,Wn(n))),r?(o=An,s=!1):t.length>=a&&(o=Qn,s=!1,t=new Wr(t));e:while(++io?0:o+n),r=r===i||r>o?o:qu(r),r<0&&(r+=o),r=n>r?0:Wu(r);while(n0&&n(s)?t>1?Ti(s,t-1,n,r,i):Tn(i,s):r||(i[i.length]=s)}return i}var Ci=da(),Ri=da(!0);function Oi(e,t){return e&&Ci(e,t,Ed)}function Ii(e,t){return e&&Ri(e,t,Ed)}function Di(e,t){return xn(t,(function(t){return wu(e[t])}))}function Li(e,t){t=Ho(t,e);var n=0,r=t.length;while(null!=e&&nt}function Bi(e,t){return null!=e&&dt.call(e,t)}function $i(e,t){return null!=e&&t in nt(e)}function ji(e,t,n){return e>=Ut(t,n)&&e=120&&h.length>=120)?new Wr(l&&h):i}h=e[0];var p=-1,f=c[0];e:while(++p-1)s!==e&&kt.call(s,l,1),kt.call(e,l,1)}return e}function vo(e,t){var n=e?t.length:0,r=n-1;while(n--){var i=t[n];if(n==r||i!==o){var o=i;as(i)?kt.call(e,i,1):Mo(e,i)}}return e}function yo(e,t){return e+Lt(zt()*(t-e+1))}function bo(e,t,r,i){var o=-1,a=jt(Dt((t-e)/(r||1)),0),s=n(a);while(a--)s[i?a:++o]=e,e+=r;return s}function _o(e,t){var n="";if(!e||t<1||t>M)return n;do{t%2&&(n+=e),t=Lt(t/2),t&&(e+=e)}while(t);return n}function wo(e,t){return As(_s(e,t,Rh),e+"")}function Eo(e){return oi(Ud(e))}function So(e,t){var n=Ud(e);return Cs(n,gi(t,0,n.length))}function xo(e,t,n,r){if(!xu(e))return e;t=Ho(t,e);var o=-1,a=t.length,s=a-1,l=e;while(null!=l&&++oo?0:o+t),r=r>o?o:r,r<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;var a=n(o);while(++i>>1,a=e[o];null!==a&&!$u(a)&&(n?a<=t:a=a){var u=t?null:Ca(e);if(u)return dr(u);s=!1,i=Qn,c=new Wr}else c=t?[]:l;e:while(++r=r?e:To(e,t,n)}var Xo=Rt||function(e){return sn.clearTimeout(e)};function qo(e,t){if(t)return e.slice();var n=e.length,r=wt?wt(n):new e.constructor(n);return e.copy(r),r}function Wo(e){var t=new e.constructor(e.byteLength);return new _t(t).set(new _t(e)),t}function Yo(e,t){var n=t?Wo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function Qo(e){var t=new e.constructor(e.source,ze.exec(e));return t.lastIndex=e.lastIndex,t}function Jo(e){return br?nt(br.call(e)):{}}function Zo(e,t){var n=t?Wo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function ea(e,t){if(e!==t){var n=e!==i,r=null===e,o=e===e,a=$u(e),s=t!==i,l=null===t,c=t===t,u=$u(t);if(!l&&!u&&!a&&e>t||a&&s&&c&&!l&&!u||r&&s&&c||!n&&c||!o)return 1;if(!r&&!a&&!u&&e=s)return l;var c=n[r];return l*("desc"==c?-1:1)}}return e.index-t.index}function na(e,t,r,i){var o=-1,a=e.length,s=r.length,l=-1,c=t.length,u=jt(a-s,0),d=n(c+u),h=!i;while(++l1?n[o-1]:i,s=o>2?n[2]:i;a=e.length>3&&"function"==typeof a?(o--,a):i,s&&ss(n[0],n[1],s)&&(a=o<3?i:a,o=1),t=nt(t);while(++r-1?o[a?t[s]:s]:i}}function ya(e){return Ba((function(t){var n=t.length,r=n,o=Ar.prototype.thru;e&&t.reverse();while(r--){var a=t[r];if("function"!=typeof a)throw new ot(l);if(o&&!s&&"wrapper"==Va(a))var s=new Ar([],!0)}r=s?r:n;while(++r1&&y.reverse(),h&&ul))return!1;var u=a.get(e),d=a.get(t);if(u&&d)return u==t&&d==e;var h=-1,p=!0,f=n&v?new Wr:i;a.set(e,t),a.set(t,e);while(++h1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace($e,"{\n/* [wrapped with "+t+"] */\n")}function os(e){return lu(e)||su(e)||!!(At&&e&&e[At])}function as(e,t){var n=typeof e;return t=null==t?M:t,!!t&&("number"==n||"symbol"!=n&&Qe.test(e))&&e>-1&&e%1==0&&e0){if(++t>=R)return arguments[0]}else t=0;return e.apply(i,arguments)}}function Cs(e,t){var n=-1,r=e.length,o=r-1;t=t===i?r:t;while(++n1?e[t-1]:i;return n="function"==typeof n?(e.pop(),n):i,Ml(e,n)}));function Gl(e){var t=Er(e);return t.__chain__=!0,t}function zl(e,t){return t(e),e}function Xl(e,t){return t(e)}var ql=Ba((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return mi(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Nr&&as(n)?(r=r.slice(n,+n+(t?1:0)),r.__actions__.push({func:Xl,args:[o],thisArg:i}),new Ar(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(i),e}))):this.thru(o)}));function Wl(){return Gl(this)}function Yl(){return new Ar(this.value(),this.__chain__)}function Ql(){this.__values__===i&&(this.__values__=zu(this.value()));var e=this.__index__>=this.__values__.length,t=e?i:this.__values__[this.__index__++];return{done:e,value:t}}function Jl(){return this}function Zl(e){var t,n=this;while(n instanceof kr){var r=Ls(n);r.__index__=0,r.__values__=i,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t}function ec(){var e=this.__wrapped__;if(e instanceof Nr){var t=e;return this.__actions__.length&&(t=new Nr(this)),t=t.reverse(),t.__actions__.push({func:Xl,args:[fl],thisArg:i}),new Ar(t,this.__chain__)}return this.thru(fl)}function tc(){return $o(this.__wrapped__,this.__actions__)}var nc=la((function(e,t,n){dt.call(e,n)?++e[n]:fi(e,n,1)}));function rc(e,t,n){var r=lu(e)?Sn:xi;return n&&ss(e,t,n)&&(t=i),r(e,Ha(t,3))}function ic(e,t){var n=lu(e)?xn:Ni;return n(e,Ha(t,3))}var oc=va(zs),ac=va(Xs);function sc(e,t){return Ti(gc(e,t),1)}function lc(e,t){return Ti(gc(e,t),P)}function cc(e,t,n){return n=n===i?1:qu(n),Ti(gc(e,t),n)}function uc(e,t){var n=lu(e)?wn:Ei;return n(e,Ha(t,3))}function dc(e,t){var n=lu(e)?En:Si;return n(e,Ha(t,3))}var hc=la((function(e,t,n){dt.call(e,n)?e[n].push(t):fi(e,n,[t])}));function pc(e,t,n,r){e=uu(e)?e:Ud(e),n=n&&!r?qu(n):0;var i=e.length;return n<0&&(n=jt(i+n,0)),Bu(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Fn(e,t,n)>-1}var fc=wo((function(e,t,r){var i=-1,o="function"==typeof t,a=uu(e)?n(e.length):[];return Ei(e,(function(e){a[++i]=o?bn(t,e,r):Ki(e,t,r)})),a})),mc=la((function(e,t,n){fi(e,n,t)}));function gc(e,t){var n=lu(e)?Nn:oo;return n(e,Ha(t,3))}function vc(e,t,n,r){return null==e?[]:(lu(t)||(t=null==t?[]:[t]),n=r?i:n,lu(n)||(n=null==n?[]:[n]),ho(e,t,n))}var yc=la((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));function bc(e,t,n){var r=lu(e)?Cn:Kn,i=arguments.length<3;return r(e,Ha(t,4),n,i,Ei)}function _c(e,t,n){var r=lu(e)?Rn:Kn,i=arguments.length<3;return r(e,Ha(t,4),n,i,Si)}function wc(e,t){var n=lu(e)?xn:Ni;return n(e,Uc(Ha(t,3)))}function Ec(e){var t=lu(e)?oi:Eo;return t(e)}function Sc(e,t,n){t=(n?ss(e,t,n):t===i)?1:qu(t);var r=lu(e)?ai:So;return r(e,t)}function xc(e){var t=lu(e)?si:No;return t(e)}function kc(e){if(null==e)return 0;if(uu(e))return Bu(e)?mr(e):e.length;var t=Qa(e);return t==J||t==oe?e.size:no(e).length}function Ac(e,t,n){var r=lu(e)?On:Co;return n&&ss(e,t,n)&&(t=i),r(e,Ha(t,3))}var Nc=wo((function(e,t){if(null==e)return[];var n=t.length;return n>1&&ss(e,t[0],t[1])?t=[]:n>2&&ss(t[0],t[1],t[2])&&(t=[t[0]]),ho(e,Ti(t,1),[])})),Tc=Ot||function(){return sn.Date.now()};function Cc(e,t){if("function"!=typeof t)throw new ot(l);return e=qu(e),function(){if(--e<1)return t.apply(this,arguments)}}function Rc(e,t,n){return t=n?i:t,t=e&&null==t?e.length:t,Oa(e,k,i,i,i,i,t)}function Oc(e,t){var n;if("function"!=typeof t)throw new ot(l);return e=qu(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var Ic=wo((function(e,t,n){var r=y;if(n.length){var i=ur(n,Ka(Ic));r|=S}return Oa(e,r,t,n,i)})),Dc=wo((function(e,t,n){var r=y|b;if(n.length){var i=ur(n,Ka(Dc));r|=S}return Oa(t,r,e,n,i)}));function Lc(e,t,n){t=n?i:t;var r=Oa(e,w,i,i,i,i,i,t);return r.placeholder=Lc.placeholder,r}function Pc(e,t,n){t=n?i:t;var r=Oa(e,E,i,i,i,i,i,t);return r.placeholder=Pc.placeholder,r}function Mc(e,t,n){var r,o,a,s,c,u,d=0,h=!1,p=!1,f=!0;if("function"!=typeof e)throw new ot(l);function m(t){var n=r,a=o;return r=o=i,d=t,s=e.apply(a,n),s}function g(e){return d=e,c=ks(b,t),h?m(e):s}function v(e){var n=e-u,r=e-d,i=t-n;return p?Ut(i,a-r):i}function y(e){var n=e-u,r=e-d;return u===i||n>=t||n<0||p&&r>=a}function b(){var e=Tc();if(y(e))return _(e);c=ks(b,v(e))}function _(e){return c=i,f&&r?m(e):(r=o=i,s)}function w(){c!==i&&Xo(c),d=0,r=u=o=c=i}function E(){return c===i?s:_(Tc())}function S(){var e=Tc(),n=y(e);if(r=arguments,o=this,u=e,n){if(c===i)return g(u);if(p)return Xo(c),c=ks(b,t),m(u)}return c===i&&(c=ks(b,t)),s}return t=Yu(t)||0,xu(n)&&(h=!!n.leading,p="maxWait"in n,a=p?jt(Yu(n.maxWait)||0,t):a,f="trailing"in n?!!n.trailing:f),S.cancel=w,S.flush=E,S}var Fc=wo((function(e,t){return _i(e,1,t)})),Bc=wo((function(e,t,n){return _i(e,Yu(t)||0,n)}));function $c(e){return Oa(e,N)}function jc(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ot(l);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(jc.Cache||Kr),n}function Uc(e){if("function"!=typeof e)throw new ot(l);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Vc(e){return Oc(2,e)}jc.Cache=Kr;var Kc=Go((function(e,t){t=1==t.length&&lu(t[0])?Nn(t[0],Wn(Ha())):Nn(Ti(t,1),Wn(Ha()));var n=t.length;return wo((function(r){var i=-1,o=Ut(r.length,n);while(++i=t})),su=Hi(function(){return arguments}())?Hi:function(e){return ku(e)&&dt.call(e,"callee")&&!xt.call(e,"callee")},lu=n.isArray,cu=pn?Wn(pn):Gi;function uu(e){return null!=e&&Su(e.length)&&!wu(e)}function du(e){return ku(e)&&uu(e)}function hu(e){return!0===e||!1===e||ku(e)&&Mi(e)==z}var pu=Mt||qh,fu=fn?Wn(fn):zi;function mu(e){return ku(e)&&1===e.nodeType&&!Lu(e)}function gu(e){if(null==e)return!0;if(uu(e)&&(lu(e)||"string"==typeof e||"function"==typeof e.splice||pu(e)||ju(e)||su(e)))return!e.length;var t=Qa(e);if(t==J||t==oe)return!e.size;if(ps(e))return!no(e).length;for(var n in e)if(dt.call(e,n))return!1;return!0}function vu(e,t){return Xi(e,t)}function yu(e,t,n){n="function"==typeof n?n:i;var r=n?n(e,t):i;return r===i?Xi(e,t,i,n):!!r}function bu(e){if(!ku(e))return!1;var t=Mi(e);return t==W||t==q||"string"==typeof e.message&&"string"==typeof e.name&&!Lu(e)}function _u(e){return"number"==typeof e&&Ft(e)}function wu(e){if(!xu(e))return!1;var t=Mi(e);return t==Y||t==Q||t==G||t==re}function Eu(e){return"number"==typeof e&&e==qu(e)}function Su(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=M}function xu(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ku(e){return null!=e&&"object"==typeof e}var Au=mn?Wn(mn):Wi;function Nu(e,t){return e===t||Yi(e,t,za(t))}function Tu(e,t,n){return n="function"==typeof n?n:i,Yi(e,t,za(t),n)}function Cu(e){return Du(e)&&e!=+e}function Ru(e){if(hs(e))throw new Be(s);return Qi(e)}function Ou(e){return null===e}function Iu(e){return null==e}function Du(e){return"number"==typeof e||ku(e)&&Mi(e)==Z}function Lu(e){if(!ku(e)||Mi(e)!=te)return!1;var t=Et(e);if(null===t)return!0;var n=dt.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ut.call(n)==mt}var Pu=gn?Wn(gn):Ji;function Mu(e){return Eu(e)&&e>=-M&&e<=M}var Fu=vn?Wn(vn):Zi;function Bu(e){return"string"==typeof e||!lu(e)&&ku(e)&&Mi(e)==ae}function $u(e){return"symbol"==typeof e||ku(e)&&Mi(e)==se}var ju=yn?Wn(yn):eo;function Uu(e){return e===i}function Vu(e){return ku(e)&&Qa(e)==ce}function Ku(e){return ku(e)&&Mi(e)==ue}var Hu=Aa(io),Gu=Aa((function(e,t){return e<=t}));function zu(e){if(!e)return[];if(uu(e))return Bu(e)?gr(e):ia(e);if(Nt&&e[Nt])return sr(e[Nt]());var t=Qa(e),n=t==J?lr:t==oe?dr:Ud;return n(e)}function Xu(e){if(!e)return 0===e?e:0;if(e=Yu(e),e===P||e===-P){var t=e<0?-1:1;return t*F}return e===e?e:0}function qu(e){var t=Xu(e),n=t%1;return t===t?n?t-n:t:0}function Wu(e){return e?gi(qu(e),0,$):0}function Yu(e){if("number"==typeof e)return e;if($u(e))return B;if(xu(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=xu(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=qn(e);var n=qe.test(e);return n||Ye.test(e)?rn(e.slice(2),n?2:8):Xe.test(e)?B:+e}function Qu(e){return oa(e,Sd(e))}function Ju(e){return e?gi(qu(e),-M,M):0===e?e:0}function Zu(e){return null==e?"":Lo(e)}var ed=ca((function(e,t){if(ps(t)||uu(t))oa(t,Ed(t),e);else for(var n in t)dt.call(t,n)&&ci(e,n,t[n])})),td=ca((function(e,t){oa(t,Sd(t),e)})),nd=ca((function(e,t,n,r){oa(t,Sd(t),e,r)})),rd=ca((function(e,t,n,r){oa(t,Ed(t),e,r)})),id=Ba(mi);function od(e,t){var n=xr(e);return null==t?n:hi(n,t)}var ad=wo((function(e,t){e=nt(e);var n=-1,r=t.length,o=r>2?t[2]:i;o&&ss(t[0],t[1],o)&&(r=1);while(++n1),t})),oa(e,ja(e),n),r&&(n=vi(n,p|f|m,La));var i=t.length;while(i--)Mo(n,t[i]);return n}));function Cd(e,t){return Od(e,Uc(Ha(t)))}var Rd=Ba((function(e,t){return null==e?{}:po(e,t)}));function Od(e,t){if(null==e)return{};var n=Nn(ja(e),(function(e){return[e]}));return t=Ha(t),fo(e,n,(function(e,n){return t(e,n[0])}))}function Id(e,t,n){t=Ho(t,e);var r=-1,o=t.length;o||(o=1,e=i);while(++rt){var r=e;e=t,t=r}if(n||e%1||t%1){var o=zt();return Ut(e+o*(t-e+nn("1e-"+((o+"").length-1))),t)}return yo(e,t)}var zd=fa((function(e,t,n){return t=t.toLowerCase(),e+(n?Xd(t):t)}));function Xd(e){return _h(Zu(e).toLowerCase())}function qd(e){return e=Zu(e),e&&e.replace(Je,tr).replace(Kt,"")}function Wd(e,t,n){e=Zu(e),t=Lo(t);var r=e.length;n=n===i?r:gi(qu(n),0,r);var o=n;return n-=t.length,n>=0&&e.slice(n,o)==t}function Yd(e){return e=Zu(e),e&&Te.test(e)?e.replace(Ae,nr):e}function Qd(e){return e=Zu(e),e&&Me.test(e)?e.replace(Pe,"\\$&"):e}var Jd=fa((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Zd=fa((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),eh=pa("toLowerCase");function th(e,t,n){e=Zu(e),t=qu(t);var r=t?mr(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Sa(Lt(i),n)+e+Sa(Dt(i),n)}function nh(e,t,n){e=Zu(e),t=qu(t);var r=t?mr(e):0;return t&&r>>0,n?(e=Zu(e),e&&("string"==typeof t||null!=t&&!Pu(t))&&(t=Lo(t),!t&&or(e))?zo(gr(e),0,n):e.split(t,n)):[]}var ch=fa((function(e,t,n){return e+(n?" ":"")+_h(t)}));function uh(e,t,n){return e=Zu(e),n=null==n?0:gi(qu(n),0,e.length),t=Lo(t),e.slice(n,n+t.length)==t}function dh(e,t,n){var r=Er.templateSettings;n&&ss(e,t,n)&&(t=i),e=Zu(e),t=nd({},t,r,Ia);var o,a,s=nd({},t.imports,r.imports,Ia),l=Ed(s),u=Yn(s,l),d=0,h=t.interpolate||Ze,p="__p += '",f=rt((t.escape||Ze).source+"|"+h.source+"|"+(h===Oe?Ge:Ze).source+"|"+(t.evaluate||Ze).source+"|$","g"),m="//# sourceURL="+(dt.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Wt+"]")+"\n";e.replace(f,(function(t,n,r,i,s,l){return r||(r=i),p+=e.slice(d,l).replace(et,rr),n&&(o=!0,p+="' +\n__e("+n+") +\n'"),s&&(a=!0,p+="';\n"+s+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),d=l+t.length,t})),p+="';\n";var g=dt.call(t,"variable")&&t.variable;if(g){if(Ke.test(g))throw new Be(c)}else p="with (obj) {\n"+p+"\n}\n";p=(a?p.replace(Ee,""):p).replace(Se,"$1").replace(xe,"$1;"),p="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var v=Eh((function(){return Ve(l,m+"return "+p).apply(i,u)}));if(v.source=p,bu(v))throw v;return v}function hh(e){return Zu(e).toLowerCase()}function ph(e){return Zu(e).toUpperCase()}function fh(e,t,n){if(e=Zu(e),e&&(n||t===i))return qn(e);if(!e||!(t=Lo(t)))return e;var r=gr(e),o=gr(t),a=Jn(r,o),s=Zn(r,o)+1;return zo(r,a,s).join("")}function mh(e,t,n){if(e=Zu(e),e&&(n||t===i))return e.slice(0,vr(e)+1);if(!e||!(t=Lo(t)))return e;var r=gr(e),o=Zn(r,gr(t))+1;return zo(r,0,o).join("")}function gh(e,t,n){if(e=Zu(e),e&&(n||t===i))return e.replace(Fe,"");if(!e||!(t=Lo(t)))return e;var r=gr(e),o=Jn(r,gr(t));return zo(r,o).join("")}function vh(e,t){var n=T,r=C;if(xu(t)){var o="separator"in t?t.separator:o;n="length"in t?qu(t.length):n,r="omission"in t?Lo(t.omission):r}e=Zu(e);var a=e.length;if(or(e)){var s=gr(e);a=s.length}if(n>=a)return e;var l=n-mr(r);if(l<1)return r;var c=s?zo(s,0,l).join(""):e.slice(0,l);if(o===i)return c+r;if(s&&(l+=c.length-l),Pu(o)){if(e.slice(l).search(o)){var u,d=c;o.global||(o=rt(o.source,Zu(ze.exec(o))+"g")),o.lastIndex=0;while(u=o.exec(d))var h=u.index;c=c.slice(0,h===i?l:h)}}else if(e.indexOf(Lo(o),l)!=l){var p=c.lastIndexOf(o);p>-1&&(c=c.slice(0,p))}return c+r}function yh(e){return e=Zu(e),e&&Ne.test(e)?e.replace(ke,yr):e}var bh=fa((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),_h=pa("toUpperCase");function wh(e,t,n){return e=Zu(e),t=n?i:t,t===i?ar(e)?wr(e):Ln(e):e.match(t)||[]}var Eh=wo((function(e,t){try{return bn(e,i,t)}catch(n){return bu(n)?n:new Be(n)}})),Sh=Ba((function(e,t){return wn(t,(function(t){t=Os(t),fi(e,t,Ic(e[t],e))})),e}));function xh(e){var t=null==e?0:e.length,n=Ha();return e=t?Nn(e,(function(e){if("function"!=typeof e[1])throw new ot(l);return[n(e[0]),e[1]]})):[],wo((function(n){var r=-1;while(++rM)return[];var n=$,r=Ut(e,$);t=Ha(t),e-=$;var i=zn(r,t);while(++n0||t<0)?new Nr(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(t=qu(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},Nr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Nr.prototype.toArray=function(){return this.take($)},Oi(Nr.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=Er[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);o&&(Er.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,l=t instanceof Nr,c=s[0],u=l||lu(t),d=function(e){var t=o.apply(Er,Tn([e],s));return r&&h?t[0]:t};u&&n&&"function"==typeof c&&1!=c.length&&(l=u=!1);var h=this.__chain__,p=!!this.__actions__.length,f=a&&!h,m=l&&!p;if(!a&&u){t=m?t:new Nr(this);var g=e.apply(t,s);return g.__actions__.push({func:Xl,args:[d],thisArg:i}),new Ar(g,h)}return f&&m?e.apply(this,s):(g=this.thru(d),f?r?g.value()[0]:g.value():g)})})),wn(["pop","push","shift","sort","splice","unshift"],(function(e){var t=at[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Er.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(lu(i)?i:[],e)}return this[n]((function(n){return t.apply(lu(n)?n:[],e)}))}})),Oi(Nr.prototype,(function(e,t){var n=Er[t];if(n){var r=n.name+"";dt.call(cn,r)||(cn[r]=[]),cn[r].push({name:t,func:n})}})),cn[ba(i,b).name]=[{name:"wrapper",func:i}],Nr.prototype.clone=Tr,Nr.prototype.reverse=Cr,Nr.prototype.value=Rr,Er.prototype.at=ql,Er.prototype.chain=Wl,Er.prototype.commit=Yl,Er.prototype.next=Ql,Er.prototype.plant=Zl,Er.prototype.reverse=ec,Er.prototype.toJSON=Er.prototype.valueOf=Er.prototype.value=tc,Er.prototype.first=Er.prototype.head,Nt&&(Er.prototype[Nt]=Jl),Er},Sr=Er();sn._=Sr,r=function(){return Sr}.call(t,n,t,e),r===i||(e.exports=r)}.call(this)},40823:function(e){function t(){return[]}e.exports=t},89181:function(e){function t(){return!1}e.exports=t},82432:function(e,t){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=t&&e<=n},s=function(e,t,n){var o=e.split("-");switch(o.length){case 1:return i(e)||a(r(e),t,n);case 2:var s=o.map((function(e){return r(e)})),l=s[0],c=s[1];return l<=c&&a(l,t,n)&&a(c,t,n);default:return!1}},l=function(e){return void 0===e||-1===e.search(/[^\d]/)&&r(e)>0},c=function(e,t,n){if(-1!==e.search(/[^\d-,\/*]/))return!1;var r=e.split(",");return r.every((function(e){var r=e.split("/");if(e.trim().endsWith("/"))return!1;if(r.length>2)return!1;var i=r[0],o=r[1];return s(i,t,n)&&l(o)}))},u=function(e){return c(e,0,59)},d=function(e){return c(e,0,59)},h=function(e){return c(e,0,23)},p=function(e,t){return t&&o(e)||c(e,1,31)},f={jan:"1",feb:"2",mar:"3",apr:"4",may:"5",jun:"6",jul:"7",aug:"8",sep:"9",oct:"10",nov:"11",dec:"12"},m=function(e,t){if(-1!==e.search(/\/[a-zA-Z]/))return!1;if(t){var n=e.toLowerCase().replace(/[a-z]{3}/g,(function(e){return void 0===f[e]?e:f[e]}));return c(n,1,12)}return c(e,1,12)},g={sun:"0",mon:"1",tue:"2",wed:"3",thu:"4",fri:"5",sat:"6"},v=function(e,t,n,r){if(n&&o(e))return!0;if(!n&&o(e))return!1;if(-1!==e.search(/\/[a-zA-Z]/))return!1;if(t){var i=e.toLowerCase().replace(/[a-z]{3}/g,(function(e){return void 0===g[e]?e:g[e]}));return c(i,0,r?7:6)}return c(e,0,r?7:6)},y=function(e,t,n){return!(n&&o(e)&&o(t))},b=function(e){return e.trim().split(/\s+/)},_={alias:!1,seconds:!1,allowBlankDay:!1,allowSevenAsSunday:!1};t.isValidCron=function(e,t){t=n(n({},_),t);var r=b(e);if(r.length>(t.seconds?6:5)||r.length<5)return!1;var i=[];if(6===r.length){var o=r.shift();o&&i.push(u(o))}var a=r[0],s=r[1],l=r[2],c=r[3],f=r[4];return i.push(d(a)),i.push(h(s)),i.push(p(l,t.allowBlankDay)),i.push(m(c,t.alias)),i.push(v(f,t.alias,t.allowBlankDay,t.allowSevenAsSunday)),i.push(y(l,f,t.allowBlankDay)),i.every(Boolean)}},44780:function(e,t,n){var r=n(9776);(function(t,n){e.exports=n()})(globalThis,(()=>(()=>{"use strict";var e={794:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CronParser=void 0;var r=n(586),i=function(){function e(e,t,n){void 0===t&&(t=!0),void 0===n&&(n=!1),this.expression=e,this.dayOfWeekStartIndexZero=t,this.monthStartIndexZero=n}return e.prototype.parse=function(){var e,t,n=null!==(e=this.expression)&&void 0!==e?e:"";if(n.startsWith("@")){var r=this.parseSpecial(this.expression);t=this.extractParts(r)}else t=this.extractParts(this.expression);return this.normalize(t),this.validate(t),t},e.prototype.parseSpecial=function(e){var t={"@yearly":"0 0 1 1 *","@annually":"0 0 1 1 *","@monthly":"0 0 1 * *","@weekly":"0 0 * * 0","@daily":"0 0 * * *","@midnight":"0 0 * * *","@hourly":"0 * * * *"},n=t[e];if(!n)throw new Error("Unknown special expression.");return n},e.prototype.extractParts=function(e){if(!this.expression)throw new Error("cron expression is empty");for(var t=e.trim().split(/[ ]+/),n=0;n7)throw new Error("Expression has ".concat(t.length," parts; too many!"));return t},e.prototype.normalize=function(e){var t=this;if(e[3]=e[3].replace("?","*"),e[5]=e[5].replace("?","*"),e[2]=e[2].replace("?","*"),0==e[0].indexOf("0/")&&(e[0]=e[0].replace("0/","*/")),0==e[1].indexOf("0/")&&(e[1]=e[1].replace("0/","*/")),0==e[2].indexOf("0/")&&(e[2]=e[2].replace("0/","*/")),0==e[3].indexOf("1/")&&(e[3]=e[3].replace("1/","*/")),0==e[4].indexOf("1/")&&(e[4]=e[4].replace("1/","*/")),0==e[6].indexOf("1/")&&(e[6]=e[6].replace("1/","*/")),e[5]=e[5].replace(/(^\d)|([^#/\s]\d)/g,(function(e){var n=e.replace(/\D/,""),r=n;return t.dayOfWeekStartIndexZero?"7"==n&&(r="0"):r=(parseInt(n)-1).toString(),e.replace(n,r)})),"L"==e[5]&&(e[5]="6"),"?"==e[3]&&(e[3]="*"),e[3].indexOf("W")>-1&&(e[3].indexOf(",")>-1||e[3].indexOf("-")>-1))throw new Error("The 'W' character can be specified only when the day-of-month is a single day, not a range or list of days.");var n={SUN:0,MON:1,TUE:2,WED:3,THU:4,FRI:5,SAT:6};for(var r in n)e[5]=e[5].replace(new RegExp(r,"gi"),n[r].toString());e[4]=e[4].replace(/(^\d{1,2})|([^#/\s]\d{1,2})/g,(function(e){var n=e.replace(/\D/,""),r=n;return t.monthStartIndexZero&&(r=(parseInt(n)+1).toString()),e.replace(n,r)}));var i={JAN:1,FEB:2,MAR:3,APR:4,MAY:5,JUN:6,JUL:7,AUG:8,SEP:9,OCT:10,NOV:11,DEC:12};for(var o in i)e[4]=e[4].replace(new RegExp(o,"gi"),i[o].toString());"0"==e[0]&&(e[0]=""),/\*|\-|\,|\//.test(e[2])||!/\*|\//.test(e[1])&&!/\*|\//.test(e[0])||(e[2]+="-".concat(e[2]));for(var a=0;a-1&&!/^\*|\-|\,/.test(e[a])){var s=null;switch(a){case 4:s="12";break;case 5:s="6";break;case 6:s="9999";break;default:s=null;break}if(null!==s){var l=e[a].split("/");e[a]="".concat(l[0],"-").concat(s,"/").concat(l[1])}}},e.prototype.validate=function(e){this.assertNoInvalidCharacters("DOW",e[5]),this.assertNoInvalidCharacters("DOM",e[3]),this.validateRange(e)},e.prototype.validateRange=function(e){r.default.secondRange(e[0]),r.default.minuteRange(e[1]),r.default.hourRange(e[2]),r.default.dayOfMonthRange(e[3]),r.default.monthRange(e[4],this.monthStartIndexZero),r.default.dayOfWeekRange(e[5],this.dayOfWeekStartIndexZero)},e.prototype.assertNoInvalidCharacters=function(e,t){var n=t.match(/[A-KM-VX-Z]+/gi);if(n&&n.length)throw new Error("".concat(e," part contains invalid values: '").concat(n.toString(),"'"))},e}();t.CronParser=i},728:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ExpressionDescriptor=void 0;var i=n(910),o=n(794),a=function(){function e(t,n){if(this.expression=t,this.options=n,this.expressionParts=new Array(5),!this.options.locale&&e.defaultLocale&&(this.options.locale=e.defaultLocale),!e.locales[this.options.locale]){var i=Object.keys(e.locales)[0];r.warn("Locale '".concat(this.options.locale,"' could not be found; falling back to '").concat(i,"'.")),this.options.locale=i}this.i18n=e.locales[this.options.locale],void 0===n.use24HourTimeFormat&&(n.use24HourTimeFormat=this.i18n.use24HourTimeFormatByDefault())}return e.toString=function(t,n){var r=void 0===n?{}:n,i=r.throwExceptionOnParseError,o=void 0===i||i,a=r.verbose,s=void 0!==a&&a,l=r.dayOfWeekStartIndexZero,c=void 0===l||l,u=r.monthStartIndexZero,d=void 0!==u&&u,h=r.use24HourTimeFormat,p=r.locale,f=void 0===p?null:p,m=r.tzOffset,g=void 0===m?0:m,v={throwExceptionOnParseError:o,verbose:s,dayOfWeekStartIndexZero:c,monthStartIndexZero:d,use24HourTimeFormat:h,locale:f,tzOffset:g},y=new e(t,v);return y.getFullDescription()},e.initialize=function(t,n){void 0===n&&(n="en"),e.specialCharacters=["/","-",",","*"],e.defaultLocale=n,t.load(e.locales)},e.prototype.getFullDescription=function(){var e="";try{var t=new o.CronParser(this.expression,this.options.dayOfWeekStartIndexZero,this.options.monthStartIndexZero);this.expressionParts=t.parse();var n=this.getTimeOfDayDescription(),r=this.getDayOfMonthDescription(),i=this.getMonthDescription(),a=this.getDayOfWeekDescription(),s=this.getYearDescription();e+=n+r+a+i+s,e=this.transformVerbosity(e,!!this.options.verbose),e=e.charAt(0).toLocaleUpperCase()+e.substr(1)}catch(l){if(this.options.throwExceptionOnParseError)throw"".concat(l);e=this.i18n.anErrorOccuredWhenGeneratingTheExpressionD()}return e},e.prototype.getTimeOfDayDescription=function(){var t=this.expressionParts[0],n=this.expressionParts[1],r=this.expressionParts[2],o="";if(i.StringUtilities.containsAny(n,e.specialCharacters)||i.StringUtilities.containsAny(r,e.specialCharacters)||i.StringUtilities.containsAny(t,e.specialCharacters))if(t||!(n.indexOf("-")>-1)||n.indexOf(",")>-1||n.indexOf("/")>-1||i.StringUtilities.containsAny(r,e.specialCharacters))if(!t&&r.indexOf(",")>-1&&-1==r.indexOf("-")&&-1==r.indexOf("/")&&!i.StringUtilities.containsAny(n,e.specialCharacters)){var a=r.split(",");o+=this.i18n.at();for(var s=0;s1){var o=r[r.length-1].index;n=n.substring(0,o)+":59"+n.substring(o+3)}}return n},e.prototype.getDayOfWeekDescription=function(){var e=this,t=this.i18n.daysOfTheWeek(),n=null;return n="*"==this.expressionParts[5]?"":this.getSegmentDescription(this.expressionParts[5],this.i18n.commaEveryDay(),(function(n,r){var i=n;n.indexOf("#")>-1?i=n.substring(0,n.indexOf("#")):n.indexOf("L")>-1&&(i=i.replace("L",""));var o=parseInt(i);if(e.options.tzOffset){var a=e.expressionParts[2],s=parseInt(a)+(e.options.tzOffset?e.options.tzOffset:0);s>=24?o++:s<0&&o--,o>6?o=0:o<0&&(o=6)}var l=e.i18n.daysOfTheWeekInCase?e.i18n.daysOfTheWeekInCase(r)[o]:t[o];if(n.indexOf("#")>-1){var c=null,u=n.substring(n.indexOf("#")+1),d=n.substring(0,n.indexOf("#"));switch(u){case"1":c=e.i18n.first(d);break;case"2":c=e.i18n.second(d);break;case"3":c=e.i18n.third(d);break;case"4":c=e.i18n.fourth(d);break;case"5":c=e.i18n.fifth(d);break}l=c+" "+l}return l}),(function(t){return 1==parseInt(t)?"":i.StringUtilities.format(e.i18n.commaEveryX0DaysOfTheWeek(t),t)}),(function(t){var n=t.substring(0,t.indexOf("-")),r="*"!=e.expressionParts[3];return r?e.i18n.commaAndX0ThroughX1(n):e.i18n.commaX0ThroughX1(n)}),(function(t){var n=null;if(t.indexOf("#")>-1){var r=t.substring(t.indexOf("#")+1);n=e.i18n.commaOnThe(r).trim()+e.i18n.spaceX0OfTheMonth()}else if(t.indexOf("L")>-1)n=e.i18n.commaOnTheLastX0OfTheMonth(t.replace("L",""));else{var i="*"!=e.expressionParts[3];n=i?e.i18n.commaAndOnX0():e.i18n.commaOnlyOnX0(t)}return n})),n},e.prototype.getMonthDescription=function(){var e=this,t=this.i18n.monthsOfTheYear(),n=this.getSegmentDescription(this.expressionParts[4],"",(function(n,r){return r&&e.i18n.monthsOfTheYearInCase?e.i18n.monthsOfTheYearInCase(r)[parseInt(n)-1]:t[parseInt(n)-1]}),(function(t){return 1==parseInt(t)?"":i.StringUtilities.format(e.i18n.commaEveryX0Months(t),t)}),(function(t){return e.i18n.commaMonthX0ThroughMonthX1()||e.i18n.commaX0ThroughX1()}),(function(t){return e.i18n.commaOnlyInMonthX0?e.i18n.commaOnlyInMonthX0():e.i18n.commaOnlyInX0()}));return n},e.prototype.getDayOfMonthDescription=function(){var e=this,t=null,n=this.expressionParts[3];switch(n){case"L":t=this.i18n.commaOnTheLastDayOfTheMonth();break;case"WL":case"LW":t=this.i18n.commaOnTheLastWeekdayOfTheMonth();break;default:var r=n.match(/(\d{1,2}W)|(W\d{1,2})/);if(r){var o=parseInt(r[0].replace("W","")),a=1==o?this.i18n.firstWeekday():i.StringUtilities.format(this.i18n.weekdayNearestDayX0(),o.toString());t=i.StringUtilities.format(this.i18n.commaOnTheX0OfTheMonth(),a);break}var s=n.match(/L-(\d{1,2})/);if(s){var l=s[1];t=i.StringUtilities.format(this.i18n.commaDaysBeforeTheLastDayOfTheMonth(l),l);break}if("*"==n&&"*"!=this.expressionParts[5])return"";t=this.getSegmentDescription(n,this.i18n.commaEveryDay(),(function(t){return"L"==t?e.i18n.lastDay():e.i18n.dayX0?i.StringUtilities.format(e.i18n.dayX0(),t):t}),(function(t){return"1"==t?e.i18n.commaEveryDay():e.i18n.commaEveryX0Days(t)}),(function(t){return e.i18n.commaBetweenDayX0AndX1OfTheMonth(t)}),(function(t){return e.i18n.commaOnDayX0OfTheMonth(t)}));break}return t},e.prototype.getYearDescription=function(){var e=this,t=this.getSegmentDescription(this.expressionParts[6],"",(function(e){return/^\d+$/.test(e)?new Date(parseInt(e),1).getFullYear().toString():e}),(function(t){return i.StringUtilities.format(e.i18n.commaEveryX0Years(t),t)}),(function(t){return e.i18n.commaYearX0ThroughYearX1()||e.i18n.commaX0ThroughX1()}),(function(t){return e.i18n.commaOnlyInYearX0?e.i18n.commaOnlyInYearX0():e.i18n.commaOnlyInX0()}));return t},e.prototype.getSegmentDescription=function(e,t,n,r,o,a){var s=null,l=e.indexOf("/")>-1,c=e.indexOf("-")>-1,u=e.indexOf(",")>-1;if(e)if("*"===e)s=t;else if(l||c||u)if(u){for(var d=e.split(","),h="",p=0;p0&&d.length>2&&(h+=",",p0&&d.length>1&&(p==d.length-1||2==d.length)&&(h+="".concat(this.i18n.spaceAnd()," ")),d[p].indexOf("/")>-1||d[p].indexOf("-")>-1){var f=d[p].indexOf("-")>-1&&-1==d[p].indexOf("/"),m=this.getSegmentDescription(d[p],t,n,r,f?this.i18n.commaX0ThroughX1:o,a);f&&(m=m.replace(", ","")),h+=m}else h+=l?this.getSegmentDescription(d[p],t,n,r,o,a):n(d[p]);s=l?h:i.StringUtilities.format(a(e),h)}else if(l){d=e.split("/");if(s=i.StringUtilities.format(r(d[1]),d[1]),d[0].indexOf("-")>-1){var g=this.generateRangeSegmentDescription(d[0],o,n);0!=g.indexOf(", ")&&(s+=", "),s+=g}else if(-1==d[0].indexOf("*")){var v=i.StringUtilities.format(a(d[0]),n(d[0]));v=v.replace(", ",""),s+=i.StringUtilities.format(this.i18n.commaStartingX0(),v)}}else c&&(s=this.generateRangeSegmentDescription(e,o,n));else s=i.StringUtilities.format(a(e),n(e));else s="";return s},e.prototype.generateRangeSegmentDescription=function(e,t,n){var r="",o=e.split("-"),a=n(o[0],1),s=n(o[1],2),l=t(e);return r+=i.StringUtilities.format(l,a,s),r},e.prototype.formatTime=function(e,t,n){var r=0,i=0;this.options.tzOffset&&(r=this.options.tzOffset>0?Math.floor(this.options.tzOffset):Math.ceil(this.options.tzOffset),i=parseFloat((this.options.tzOffset%1).toFixed(2)),0!=i&&(i*=60));var o=parseInt(e)+r,a=parseInt(t)+i;a>=60?(a-=60,o+=1):a<0&&(a+=60,o-=1),o>=24?o-=24:o<0&&(o=24+o);var s="",l=!1;this.options.use24HourTimeFormat||(l=!(!this.i18n.setPeriodBeforeTime||!this.i18n.setPeriodBeforeTime()),s=l?"".concat(this.getPeriod(o)," "):" ".concat(this.getPeriod(o)),o>12&&(o-=12),0===o&&(o=12));var c="";return n&&(c=":".concat(("00"+n).substring(n.length))),"".concat(l?s:"").concat(("00"+o.toString()).substring(o.toString().length),":").concat(("00"+a.toString()).substring(a.toString().length)).concat(c).concat(l?"":s)},e.prototype.transformVerbosity=function(e,t){return t||(e=e.replace(new RegExp(", ".concat(this.i18n.everyMinute()),"g"),""),e=e.replace(new RegExp(", ".concat(this.i18n.everyHour()),"g"),""),e=e.replace(new RegExp(this.i18n.commaEveryDay(),"g"),""),e=e.replace(/\, ?$/,"")),e},e.prototype.getPeriod=function(e){return e>=12?this.i18n.pm&&this.i18n.pm()||"PM":this.i18n.am&&this.i18n.am()||"AM"},e.locales={},e}();t.ExpressionDescriptor=a},336:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.enLocaleLoader=void 0;var r=n(751),i=function(){function e(){}return e.prototype.load=function(e){e["en"]=new r.en},e}();t.enLocaleLoader=i},751:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.en=void 0;var n=function(){function e(){}return e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return null},e.prototype.use24HourTimeFormatByDefault=function(){return!1},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"An error occured when generating the expression description. Check the cron expression syntax."},e.prototype.everyMinute=function(){return"every minute"},e.prototype.everyHour=function(){return"every hour"},e.prototype.atSpace=function(){return"At "},e.prototype.everyMinuteBetweenX0AndX1=function(){return"Every minute between %s and %s"},e.prototype.at=function(){return"At"},e.prototype.spaceAnd=function(){return" and"},e.prototype.everySecond=function(){return"every second"},e.prototype.everyX0Seconds=function(){return"every %s seconds"},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return"seconds %s through %s past the minute"},e.prototype.atX0SecondsPastTheMinute=function(){return"at %s seconds past the minute"},e.prototype.everyX0Minutes=function(){return"every %s minutes"},e.prototype.minutesX0ThroughX1PastTheHour=function(){return"minutes %s through %s past the hour"},e.prototype.atX0MinutesPastTheHour=function(){return"at %s minutes past the hour"},e.prototype.everyX0Hours=function(){return"every %s hours"},e.prototype.betweenX0AndX1=function(){return"between %s and %s"},e.prototype.atX0=function(){return"at %s"},e.prototype.commaEveryDay=function(){return", every day"},e.prototype.commaEveryX0DaysOfTheWeek=function(){return", every %s days of the week"},e.prototype.commaX0ThroughX1=function(){return", %s through %s"},e.prototype.commaAndX0ThroughX1=function(){return", %s through %s"},e.prototype.first=function(){return"first"},e.prototype.second=function(){return"second"},e.prototype.third=function(){return"third"},e.prototype.fourth=function(){return"fourth"},e.prototype.fifth=function(){return"fifth"},e.prototype.commaOnThe=function(){return", on the "},e.prototype.spaceX0OfTheMonth=function(){return" %s of the month"},e.prototype.lastDay=function(){return"the last day"},e.prototype.commaOnTheLastX0OfTheMonth=function(){return", on the last %s of the month"},e.prototype.commaOnlyOnX0=function(){return", only on %s"},e.prototype.commaAndOnX0=function(){return", and on %s"},e.prototype.commaEveryX0Months=function(){return", every %s months"},e.prototype.commaOnlyInX0=function(){return", only in %s"},e.prototype.commaOnTheLastDayOfTheMonth=function(){return", on the last day of the month"},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", on the last weekday of the month"},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s days before the last day of the month"},e.prototype.firstWeekday=function(){return"first weekday"},e.prototype.weekdayNearestDayX0=function(){return"weekday nearest day %s"},e.prototype.commaOnTheX0OfTheMonth=function(){return", on the %s of the month"},e.prototype.commaEveryX0Days=function(){return", every %s days"},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", between day %s and %s of the month"},e.prototype.commaOnDayX0OfTheMonth=function(){return", on day %s of the month"},e.prototype.commaEveryHour=function(){return", every hour"},e.prototype.commaEveryX0Years=function(){return", every %s years"},e.prototype.commaStartingX0=function(){return", starting %s"},e.prototype.daysOfTheWeek=function(){return["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},e.prototype.monthsOfTheYear=function(){return["January","February","March","April","May","June","July","August","September","October","November","December"]},e}();t.en=n},586:(e,t)=>{function n(e,t){if(!e)throw new Error(t)}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){}return e.secondRange=function(e){for(var t=e.split(","),r=0;r=0&&i<=59,"seconds part must be >= 0 and <= 59")}},e.minuteRange=function(e){for(var t=e.split(","),r=0;r=0&&i<=59,"minutes part must be >= 0 and <= 59")}},e.hourRange=function(e){for(var t=e.split(","),r=0;r=0&&i<=23,"hours part must be >= 0 and <= 23")}},e.dayOfMonthRange=function(e){for(var t=e.split(","),r=0;r=1&&i<=31,"DOM part must be >= 1 and <= 31")}},e.monthRange=function(e,t){for(var r=e.split(","),i=0;i=1&&o<=12,t?"month part must be >= 0 and <= 11":"month part must be >= 1 and <= 12")}},e.dayOfWeekRange=function(e,t){for(var r=e.split(","),i=0;i=0&&o<=6,t?"DOW part must be >= 0 and <= 6":"DOW part must be >= 1 and <= 7")}},e}();t["default"]=r},910:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.StringUtilities=void 0;var n=function(){function e(){}return e.format=function(e){for(var t=[],n=1;n-1}))},e}();t.StringUtilities=n}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}var i={};return(()=>{var e=i;Object.defineProperty(e,"__esModule",{value:!0}),e.toString=void 0;var t=n(728),r=n(336);t.ExpressionDescriptor.initialize(new r.enLocaleLoader),e["default"]=t.ExpressionDescriptor;var o=t.ExpressionDescriptor.toString;e.toString=o})(),i})()))},20833:function(e,t,n){var r={"./email":2411,"./email.vue":2411,"./opsgenie":66201,"./opsgenie.vue":66201,"./pagerduty":72349,"./pagerduty.vue":72349,"./slack":75336,"./slack.vue":75336,"./webhook":36860,"./webhook.vue":36860};function i(e){var t=o(e);return n(t)}function o(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=o,e.exports=i,i.id=20833},27057:function(e,t,n){"use strict";var r=n(49663),i=n(9776);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function a(e,t){for(var n=0;n1?n-1:0),i=1;i1?n-1:0),i=1;i1?n-1:0),i=1;i1?n-1:0),i=1;ie.length)&&(n=e.length),e.substring(n-t.length,n)===t}function T(e,t){if(t=Math.floor(t),0==e.length||0==t)return"";var n=e.length*t;t=Math.floor(Math.log(t)/Math.log(2));while(t)e+=e,t--;return e+=e.substring(0,n-e.length),e}var C="",R="",O="",I="",D={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},L=10;function P(e){var t=Object.keys(e),n=Object.create(Object.getPrototypeOf(e));return t.forEach((function(t){n[t]=e[t]})),Object.defineProperty(n,"message",{value:e.message}),n}function M(e){return x(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function F(e,t,n){var i="",o="",a=0,s="",l=!1,c=M(e),u=c.split("\n"),d=M(t).split("\n"),h=0,p="";if("strictEqual"===n&&"object"===E(e)&&"object"===E(t)&&null!==e&&null!==t&&(n="strictEqualObject"),1===u.length&&1===d.length&&u[0]!==d[0]){var f=u[0].length+d[0].length;if(f<=L){if(("object"!==E(e)||null===e)&&("object"!==E(t)||null===t)&&(0!==e||0!==t))return"".concat(D[n],"\n\n")+"".concat(u[0]," !== ").concat(d[0],"\n")}else if("strictEqualObject"!==n){var m=r.stderr&&r.stderr.isTTY?r.stderr.columns:80;if(f2&&(p="\n ".concat(T(" ",h),"^"),h=0)}}}var g=u[u.length-1],v=d[d.length-1];while(g===v){if(h++<2?s="\n ".concat(g).concat(s):i=g,u.pop(),d.pop(),0===u.length||0===d.length)break;g=u[u.length-1],v=d[d.length-1]}var y=Math.max(u.length,d.length);if(0===y){var b=c.split("\n");if(b.length>30){b[26]="".concat(C,"...").concat(I);while(b.length>27)b.pop()}return"".concat(D.notIdentical,"\n\n").concat(b.join("\n"),"\n")}h>3&&(s="\n".concat(C,"...").concat(I).concat(s),l=!0),""!==i&&(s="\n ".concat(i).concat(s),i="");var _=0,w=D[n]+"\n".concat(R,"+ actual").concat(I," ").concat(O,"- expected").concat(I),S=" ".concat(C,"...").concat(I," Lines skipped");for(h=0;h1&&h>2&&(x>4?(o+="\n".concat(C,"...").concat(I),l=!0):x>3&&(o+="\n ".concat(d[h-2]),_++),o+="\n ".concat(d[h-1]),_++),a=h,i+="\n".concat(O,"-").concat(I," ").concat(d[h]),_++;else if(d.length1&&h>2&&(x>4?(o+="\n".concat(C,"...").concat(I),l=!0):x>3&&(o+="\n ".concat(u[h-2]),_++),o+="\n ".concat(u[h-1]),_++),a=h,o+="\n".concat(R,"+").concat(I," ").concat(u[h]),_++;else{var k=d[h],A=u[h],P=A!==k&&(!N(A,",")||A.slice(0,-1)!==k);P&&N(k,",")&&k.slice(0,-1)===A&&(P=!1,A+=","),P?(x>1&&h>2&&(x>4?(o+="\n".concat(C,"...").concat(I),l=!0):x>3&&(o+="\n ".concat(u[h-2]),_++),o+="\n ".concat(u[h-1]),_++),a=h,o+="\n".concat(R,"+").concat(I," ").concat(A),i+="\n".concat(O,"-").concat(I," ").concat(k),_+=2):(o+=i,i="",1!==x&&0!==h||(o+="\n ".concat(A),_++))}if(_>20&&h30){p[26]="".concat(C,"...").concat(I);while(p.length>27)p.pop()}t=1===p.length?n.call(this,"".concat(h," ").concat(p[0])):n.call(this,"".concat(h,"\n\n").concat(p.join("\n"),"\n"))}else{var g=M(c),v="",y=D[a];"notDeepEqual"===a||"notEqual"===a?(g="".concat(D[a],"\n\n").concat(g),g.length>1024&&(g="".concat(g.slice(0,1021),"..."))):(v="".concat(M(u)),g.length>512&&(g="".concat(g.slice(0,509),"...")),v.length>512&&(v="".concat(v.slice(0,509),"...")),"deepEqual"===a||"equal"===a?g="".concat(y,"\n\n").concat(g,"\n\nshould equal\n\n"):v=" ".concat(a," ").concat(v)),t=n.call(this,"".concat(g).concat(v))}return Error.stackTraceLimit=d,t.generatedMessage=!o,Object.defineProperty(m(t),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),t.code="ERR_ASSERTION",t.actual=c,t.expected=u,t.operator=a,Error.captureStackTrace&&Error.captureStackTrace(m(t),l),t.stack,t.name="AssertionError",f(t)}return c(i,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:t,value:function(e,t){return x(this,o(o({},t),{},{customInspect:!1,depth:0}))}}]),i}(g(Error),x.custom);e.exports=B},95418:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){for(var n=0;n2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}function w(e,t,n){return e.substr(!n||n<0?0:+n,t.length)===t}function E(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}function S(e,t,n){return"number"!==typeof n&&(n=0),!(n+t.length>e.length)&&-1!==e.indexOf(t,n)}b("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),b("ERR_INVALID_ARG_TYPE",(function(e,t,i){var o,a;if(void 0===g&&(g=n(27057)),g("string"===typeof e,"'name' must be a string"),"string"===typeof t&&w(t,"not ")?(o="must not be",t=t.replace(/^not /,"")):o="must be",E(e," argument"))a="The ".concat(e," ").concat(o," ").concat(_(t,"type"));else{var s=S(e,".")?"property":"argument";a='The "'.concat(e,'" ').concat(s," ").concat(o," ").concat(_(t,"type"))}return a+=". Received type ".concat(r(i)),a}),TypeError),b("ERR_INVALID_ARG_VALUE",(function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===v&&(v=n(10060));var i=v.inspect(t);return i.length>128&&(i="".concat(i.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(r,". Received ").concat(i)}),TypeError,RangeError),b("ERR_INVALID_RETURN_VALUE",(function(e,t,n){var i;return i=n&&n.constructor&&n.constructor.name?"instance of ".concat(n.constructor.name):"type ".concat(r(n)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(i,".")}),TypeError),b("ERR_MISSING_ARGS",(function(){for(var e=arguments.length,t=new Array(e),r=0;r0,"At least one arg needs to be specified");var i="The ",o=t.length;switch(t=t.map((function(e){return'"'.concat(e,'"')})),o){case 1:i+="".concat(t[0]," argument");break;case 2:i+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:i+=t.slice(0,o-1).join(", "),i+=", and ".concat(t[o-1]," arguments");break}return"".concat(i," must be specified")}),TypeError),e.exports.codes=y},60500:function(e,t,n){"use strict";function r(e,t){return l(e)||s(e,t)||o(e,t)||i()}function i(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(e,t){if(e){if("string"===typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n10)return!0;for(var t=0;t57)return!0}return 10===e.length&&e>=Math.pow(2,32)}function F(e){return Object.keys(e).filter(M).concat(f(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))} /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */function B(e,t){if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function c(e){var t=l(e),n=t[0],r=t[1];return 3*(n+r)/4-r}function u(e,t,n){return 3*(t+n)/4-n}function d(e){var t,n,o=l(e),a=o[0],s=o[1],c=new i(u(e,a,s)),d=0,h=s>0?a-4:a;for(n=0;n>16&255,c[d++]=t>>8&255,c[d++]=255&t;return 2===s&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,c[d++]=255&t),1===s&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,c[d++]=t>>8&255,c[d++]=255&t),c}function h(e){return n[e>>18&63]+n[e>>12&63]+n[e>>6&63]+n[63&e]}function p(e,t,n){for(var r,i=[],o=t;ol?l:s+a));return 1===i?(t=e[r-1],o.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],o.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"=")),o.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},87516:function(e,t,n){"use strict";var r=n(9776),i=n(25859),o=n(19170),a="function"===typeof Symbol&&"function"===typeof Symbol["for"]?Symbol["for"]("nodejs.util.inspect.custom"):null; /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */t.Buffer=u,t.SlowBuffer=w,t.INSPECT_MAX_BYTES=50;var s=2147483647;function l(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(n){return!1}}function c(e){if(e>s)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,u.prototype),t}function u(e,t,n){if("number"===typeof e){if("string"===typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return f(e)}return d(e,t,n)}function d(e,t,n){if("string"===typeof e)return m(e,t);if(ArrayBuffer.isView(e))return v(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(J(e,ArrayBuffer)||e&&J(e.buffer,ArrayBuffer))return y(e,t,n);if("undefined"!==typeof SharedArrayBuffer&&(J(e,SharedArrayBuffer)||e&&J(e.buffer,SharedArrayBuffer)))return y(e,t,n);if("number"===typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return u.from(r,t,n);var i=b(e);if(i)return i;if("undefined"!==typeof Symbol&&null!=Symbol.toPrimitive&&"function"===typeof e[Symbol.toPrimitive])return u.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function h(e){if("number"!==typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function p(e,t,n){return h(e),e<=0?c(e):void 0!==t?"string"===typeof n?c(e).fill(t,n):c(e).fill(t):c(e)}function f(e){return h(e),c(e<0?0:0|_(e))}function m(e,t){if("string"===typeof t&&""!==t||(t="utf8"),!u.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var n=0|E(e,t),r=c(n),i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}function g(e){for(var t=e.length<0?0:0|_(e.length),n=c(t),r=0;r=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|e}function w(e){return+e!=e&&(e=0),u.alloc(+e)}function E(e,t){if(u.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||J(e,ArrayBuffer))return e.byteLength;if("string"!==typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return X(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Y(e).length;default:if(i)return r?-1:X(e).length;t=(""+t).toLowerCase(),i=!0}}function S(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,t>>>=0,n<=t)return"";e||(e="utf8");while(1)switch(e){case"hex":return B(this,t,n);case"utf8":case"utf-8":return D(this,t,n);case"ascii":return M(this,t,n);case"latin1":case"binary":return F(this,t,n);case"base64":return I(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function x(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function k(e,t,n,r,i){if(0===e.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,Z(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:A(e,t,n,r,i);if("number"===typeof t)return t&=255,"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):A(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function A(e,t,n,r,i){var o,a=1,s=e.length,l=t.length;if(void 0!==r&&(r=String(r).toLowerCase(),"ucs2"===r||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var u=-1;for(o=n;os&&(n=s-l),o=n;o>=0;o--){for(var d=!0,h=0;hi&&(r=i)):r=i;var o=t.length;r>o/2&&(r=o/2);for(var a=0;a239?4:c>223?3:c>191?2:1;if(i+d<=n)switch(d){case 1:c<128&&(u=c);break;case 2:o=e[i+1],128===(192&o)&&(l=(31&c)<<6|63&o,l>127&&(u=l));break;case 3:o=e[i+1],a=e[i+2],128===(192&o)&&128===(192&a)&&(l=(15&c)<<12|(63&o)<<6|63&a,l>2047&&(l<55296||l>57343)&&(u=l));break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128===(192&o)&&128===(192&a)&&128===(192&s)&&(l=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s,l>65535&&l<1114112&&(u=l))}null===u?(u=65533,d=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),i+=d}return P(r)}t.kMaxLength=s,u.TYPED_ARRAY_SUPPORT=l(),u.TYPED_ARRAY_SUPPORT||"undefined"===typeof r||"function"!==typeof r.error||r.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}}),u.poolSize=8192,u.from=function(e,t,n){return d(e,t,n)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array),u.alloc=function(e,t,n){return p(e,t,n)},u.allocUnsafe=function(e){return f(e)},u.allocUnsafeSlow=function(e){return f(e)},u.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==u.prototype},u.compare=function(e,t){if(J(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),J(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);ir.length?u.from(o).copy(r,i):Uint8Array.prototype.set.call(r,o,i);else{if(!u.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,i)}i+=o.length}return r},u.byteLength=E,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;tn&&(e+=" ... "),""},a&&(u.prototype[a]=u.prototype.inspect),u.prototype.compare=function(e,t,n,r,i){if(J(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),!u.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var o=i-r,a=n-t,s=Math.min(o,a),l=this.slice(r,i),c=e.slice(t,n),d=0;d>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return N(this,e,t,n);case"utf8":case"utf-8":return T(this,e,t,n);case"ascii":case"latin1":case"binary":return C(this,e,t,n);case"base64":return R(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var L=4096;function P(e){var t=e.length;if(t<=L)return String.fromCharCode.apply(String,e);var n="",r=0;while(rr)&&(n=r);for(var i="",o=t;on)throw new RangeError("Trying to access beyond buffer length")}function U(e,t,n,r,i,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function V(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function K(e,t,n,r,i){return t=+t,n>>>=0,i||V(e,t,n,4,34028234663852886e22,-34028234663852886e22),o.write(e,t,n,r,23,4),n+4}function H(e,t,n,r,i){return t=+t,n>>>=0,i||V(e,t,n,8,17976931348623157e292,-17976931348623157e292),o.write(e,t,n,r,52,8),n+8}u.prototype.slice=function(e,t){var n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t>>=0,t>>>=0,n||j(e,t,this.length);var r=this[e],i=1,o=0;while(++o>>=0,t>>>=0,n||j(e,t,this.length);var r=this[e+--t],i=1;while(t>0&&(i*=256))r+=this[e+--t]*i;return r},u.prototype.readUint8=u.prototype.readUInt8=function(e,t){return e>>>=0,t||j(e,1,this.length),this[e]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(e,t){return e>>>=0,t||j(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(e,t){return e>>>=0,t||j(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(e,t){return e>>>=0,t||j(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(e,t){return e>>>=0,t||j(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||j(e,t,this.length);var r=this[e],i=1,o=0;while(++o=i&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||j(e,t,this.length);var r=t,i=1,o=this[e+--r];while(r>0&&(i*=256))o+=this[e+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return e>>>=0,t||j(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){e>>>=0,t||j(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){e>>>=0,t||j(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return e>>>=0,t||j(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return e>>>=0,t||j(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return e>>>=0,t||j(e,4,this.length),o.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return e>>>=0,t||j(e,4,this.length),o.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return e>>>=0,t||j(e,8,this.length),o.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return e>>>=0,t||j(e,8,this.length),o.read(this,e,!1,52,8)},u.prototype.writeUintLE=u.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){var i=Math.pow(2,8*n)-1;U(this,e,t,n,i,0)}var o=1,a=0;this[t]=255&e;while(++a>>=0,n>>>=0,!r){var i=Math.pow(2,8*n)-1;U(this,e,t,n,i,0)}var o=n-1,a=1;this[t+o]=255&e;while(--o>=0&&(a*=256))this[t+o]=e/a&255;return t+n},u.prototype.writeUint8=u.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||U(this,e,t,1,255,0),this[t]=255&e,t+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||U(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||U(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||U(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||U(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);U(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;this[t]=255&e;while(++o>>=0,!r){var i=Math.pow(2,8*n-1);U(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;this[t+o]=255&e;while(--o>=0&&(a*=256))e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a|0)-s&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||U(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||U(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||U(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||U(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||U(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},u.prototype.writeFloatLE=function(e,t,n){return K(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return K(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return H(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return H(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(!u.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(o=t;o55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function q(e){for(var t=[],n=0;n>8,i=n%256,o.push(i),o.push(r)}return o}function Y(e){return i.toByteArray(z(e))}function Q(e,t,n,r){for(var i=0;i=t.length||i>=e.length)break;t[i+n]=e[i]}return i}function J(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function Z(e){return e!==e}var ee=function(){for(var e="0123456789abcdef",t=new Array(256),n=0;n<16;++n)for(var r=16*n,i=0;i<16;++i)t[r+i]=e[n]+e[i];return t}()},68229:function(e){e.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},56566:function(e,t,n){"use strict";var r=n(54004),i=n(92726),o=i(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"===typeof n&&o(e,".prototype.")>-1?i(n):n}},92726:function(e,t,n){"use strict";var r=n(27590),i=n(54004),o=n(19824),a=n(60264),s=i("%Function.prototype.apply%"),l=i("%Function.prototype.call%"),c=i("%Reflect.apply%",!0)||r.call(l,s),u=n(91960),d=i("%Math.max%");e.exports=function(e){if("function"!==typeof e)throw new a("a function is required");var t=c(r,l,arguments);return o(t,1+d(0,e.length-(arguments.length-1)),!0)};var h=function(){return c(r,s,arguments)};u?u(e.exports,"apply",{value:h}):e.exports.apply=h},33690:function(e,t,n){const r=n(69103),i={};for(const s of Object.keys(r))i[r[s]]=s;const o={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};e.exports=o;for(const s of Object.keys(o)){if(!("channels"in o[s]))throw new Error("missing channels property: "+s);if(!("labels"in o[s]))throw new Error("missing channel labels property: "+s);if(o[s].labels.length!==o[s].channels)throw new Error("channel and label counts mismatch: "+s);const{channels:e,labels:t}=o[s];delete o[s].channels,delete o[s].labels,Object.defineProperty(o[s],"channels",{value:e}),Object.defineProperty(o[s],"labels",{value:t})}function a(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}o.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=o-i;let s,l;o===i?s=0:t===o?s=(n-r)/a:n===o?s=2+(r-t)/a:r===o&&(s=4+(t-n)/a),s=Math.min(60*s,360),s<0&&(s+=360);const c=(i+o)/2;return l=o===i?0:c<=.5?a/(o+i):a/(2-o-i),[s,100*l,100*c]},o.rgb.hsv=function(e){let t,n,r,i,o;const a=e[0]/255,s=e[1]/255,l=e[2]/255,c=Math.max(a,s,l),u=c-Math.min(a,s,l),d=function(e){return(c-e)/6/u+.5};return 0===u?(i=0,o=0):(o=u/c,t=d(a),n=d(s),r=d(l),a===c?i=r-n:s===c?i=1/3+t-r:l===c&&(i=2/3+n-t),i<0?i+=1:i>1&&(i-=1)),[360*i,100*o,100*c]},o.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const i=o.rgb.hsl(e)[0],a=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[i,100*a,100*r]},o.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(1-t,1-n,1-r),o=(1-t-i)/(1-i)||0,a=(1-n-i)/(1-i)||0,s=(1-r-i)/(1-i)||0;return[100*o,100*a,100*s,100*i]},o.rgb.keyword=function(e){const t=i[e];if(t)return t;let n,o=1/0;for(const i of Object.keys(r)){const t=r[i],s=a(e,t);s.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;const i=.4124*t+.3576*n+.1805*r,o=.2126*t+.7152*n+.0722*r,a=.0193*t+.1192*n+.9505*r;return[100*i,100*o,100*a]},o.rgb.lab=function(e){const t=o.rgb.xyz(e);let n=t[0],r=t[1],i=t[2];n/=95.047,r/=100,i/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;const a=116*r-16,s=500*(n-r),l=200*(r-i);return[a,s,l]},o.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let i,o,a;if(0===n)return a=255*r,[a,a,a];i=r<.5?r*(1+n):r+n-r*n;const s=2*r-i,l=[0,0,0];for(let c=0;c<3;c++)o=t+1/3*-(c-1),o<0&&o++,o>1&&o--,a=6*o<1?s+6*(i-s)*o:2*o<1?i:3*o<2?s+(i-s)*(2/3-o)*6:s,l[c]=255*a;return l},o.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,i=n;const o=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,i*=o<=1?o:2-o;const a=(r+n)/2,s=0===r?2*i/(o+i):2*n/(r+n);return[t,100*s,100*a]},o.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const i=Math.floor(t)%6,o=t-Math.floor(t),a=255*r*(1-n),s=255*r*(1-n*o),l=255*r*(1-n*(1-o));switch(r*=255,i){case 0:return[r,l,a];case 1:return[s,r,a];case 2:return[a,r,l];case 3:return[a,s,r];case 4:return[l,a,r];case 5:return[r,a,s]}},o.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,i=Math.max(r,.01);let o,a;a=(2-n)*r;const s=(2-n)*i;return o=n*i,o/=s<=1?s:2-s,o=o||0,a/=2,[t,100*o,100*a]},o.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const i=n+r;let o;i>1&&(n/=i,r/=i);const a=Math.floor(6*t),s=1-r;o=6*t-a,0!==(1&a)&&(o=1-o);const l=n+o*(s-n);let c,u,d;switch(a){default:case 6:case 0:c=s,u=l,d=n;break;case 1:c=l,u=s,d=n;break;case 2:c=n,u=s,d=l;break;case 3:c=n,u=l,d=s;break;case 4:c=l,u=n,d=s;break;case 5:c=s,u=n,d=l;break}return[255*c,255*u,255*d]},o.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,i=e[3]/100,o=1-Math.min(1,t*(1-i)+i),a=1-Math.min(1,n*(1-i)+i),s=1-Math.min(1,r*(1-i)+i);return[255*o,255*a,255*s]},o.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let i,o,a;return i=3.2406*t+-1.5372*n+-.4986*r,o=-.9689*t+1.8758*n+.0415*r,a=.0557*t+-.204*n+1.057*r,i=i>.0031308?1.055*i**(1/2.4)-.055:12.92*i,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,a=a>.0031308?1.055*a**(1/2.4)-.055:12.92*a,i=Math.min(Math.max(0,i),1),o=Math.min(Math.max(0,o),1),a=Math.min(Math.max(0,a),1),[255*i,255*o,255*a]},o.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;const i=116*n-16,o=500*(t-n),a=200*(n-r);return[i,o,a]},o.lab.xyz=function(e){const t=e[0],n=e[1],r=e[2];let i,o,a;o=(t+16)/116,i=n/500+o,a=o-r/200;const s=o**3,l=i**3,c=a**3;return o=s>.008856?s:(o-16/116)/7.787,i=l>.008856?l:(i-16/116)/7.787,a=c>.008856?c:(a-16/116)/7.787,i*=95.047,o*=100,a*=108.883,[i,o,a]},o.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let i;const o=Math.atan2(r,n);i=360*o/2/Math.PI,i<0&&(i+=360);const a=Math.sqrt(n*n+r*r);return[t,a,i]},o.lch.lab=function(e){const t=e[0],n=e[1],r=e[2],i=r/360*2*Math.PI,o=n*Math.cos(i),a=n*Math.sin(i);return[t,o,a]},o.rgb.ansi16=function(e,t=null){const[n,r,i]=e;let a=null===t?o.rgb.hsv(e)[2]:t;if(a=Math.round(a/50),0===a)return 30;let s=30+(Math.round(i/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return 2===a&&(s+=60),s},o.hsv.ansi16=function(e){return o.rgb.ansi16(o.hsv.rgb(e),e[2])},o.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];if(t===n&&n===r)return t<8?16:t>248?231:Math.round((t-8)/247*24)+232;const i=16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5);return i},o.ansi16.rgb=function(e){let t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=.5*(1+~~(e>50)),r=(1&t)*n*255,i=(t>>1&1)*n*255,o=(t>>2&1)*n*255;return[r,i,o]},o.ansi256.rgb=function(e){if(e>=232){const t=10*(e-232)+8;return[t,t,t]}let t;e-=16;const n=Math.floor(e/36)/5*255,r=Math.floor((t=e%36)/6)/5*255,i=t%6/5*255;return[n,r,i]},o.rgb.hex=function(e){const t=((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2])),n=t.toString(16).toUpperCase();return"000000".substring(n.length)+n},o.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];3===t[0].length&&(n=n.split("").map((e=>e+e)).join(""));const r=parseInt(n,16),i=r>>16&255,o=r>>8&255,a=255&r;return[i,o,a]},o.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.max(Math.max(t,n),r),o=Math.min(Math.min(t,n),r),a=i-o;let s,l;return s=a<1?o/(1-a):0,l=a<=0?0:i===t?(n-r)/a%6:i===n?2+(r-t)/a:4+(t-n)/a,l/=6,l%=1,[360*l,100*a,100*s]},o.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let i=0;return r<1&&(i=(n-.5*r)/(1-r)),[e[0],100*r,100*i]},o.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},o.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];const i=[0,0,0],o=t%1*6,a=o%1,s=1-a;let l=0;switch(Math.floor(o)){case 0:i[0]=1,i[1]=a,i[2]=0;break;case 1:i[0]=s,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=a;break;case 3:i[0]=0,i[1]=s,i[2]=1;break;case 4:i[0]=a,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=s}return l=(1-n)*r,[255*(n*i[0]+l),255*(n*i[1]+l),255*(n*i[2]+l)]},o.hcg.hsv=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);let i=0;return r>0&&(i=t/r),[e[0],100*i,100*r]},o.hcg.hsl=function(e){const t=e[1]/100,n=e[2]/100,r=n*(1-t)+.5*t;let i=0;return r>0&&r<.5?i=t/(2*r):r>=.5&&r<1&&(i=t/(2*(1-r))),[e[0],100*i,100*r]},o.hcg.hwb=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);return[e[0],100*(r-t),100*(1-r)]},o.hwb.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=1-n,i=r-t;let o=0;return i<1&&(o=(r-i)/(1-i)),[e[0],100*i,100*o]},o.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},o.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},o.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},o.gray.hsl=function(e){return[0,0,e[0]]},o.gray.hsv=o.gray.hsl,o.gray.hwb=function(e){return[0,100,e[0]]},o.gray.cmyk=function(e){return[0,0,0,e[0]]},o.gray.lab=function(e){return[e[0],0,0]},o.gray.hex=function(e){const t=255&Math.round(e[0]/100*255),n=(t<<16)+(t<<8)+t,r=n.toString(16).toUpperCase();return"000000".substring(r.length)+r},o.rgb.gray=function(e){const t=(e[0]+e[1]+e[2])/3;return[t/255*100]}},99243:function(e,t,n){const r=n(33690),i=n(37310),o={},a=Object.keys(r);function s(e){const t=function(...t){const n=t[0];return void 0===n||null===n?n:(n.length>1&&(t=n),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}function l(e){const t=function(...t){const n=t[0];if(void 0===n||null===n)return n;n.length>1&&(t=n);const r=e(t);if("object"===typeof r)for(let e=r.length,i=0;i{o[e]={},Object.defineProperty(o[e],"channels",{value:r[e].channels}),Object.defineProperty(o[e],"labels",{value:r[e].labels});const t=i(e),n=Object.keys(t);n.forEach((n=>{const r=t[n];o[e][n]=l(r),o[e][n].raw=s(r)}))})),e.exports=o},37310:function(e,t,n){const r=n(33690);function i(){const e={},t=Object.keys(r);for(let n=t.length,r=0;r=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},l.to.keyword=function(e){return a[e.slice(0,3)]}},14405:function(e,t,n){const r=n(96065),i=n(99243),o=["keyword","gray","hex"],a={};for(const m of Object.keys(i))a[[...i[m].labels].sort().join("")]=m;const s={};function l(e,t){if(!(this instanceof l))return new l(e,t);if(t&&t in o&&(t=null),t&&!(t in i))throw new Error("Unknown model: "+t);let n,c;if(null==e)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof l)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if("string"===typeof e){const t=r.get(e);if(null===t)throw new Error("Unable to parse color from string: "+e);this.model=t.model,c=i[this.model].channels,this.color=t.value.slice(0,c),this.valpha="number"===typeof t.value[c]?t.value[c]:1}else if(e.length>0){this.model=t||"rgb",c=i[this.model].channels;const n=Array.prototype.slice.call(e,0,c);this.color=f(n,c),this.valpha="number"===typeof e[c]?e[c]:1}else if("number"===typeof e)this.model="rgb",this.color=[e>>16&255,e>>8&255,255&e],this.valpha=1;else{this.valpha=1;const t=Object.keys(e);"alpha"in e&&(t.splice(t.indexOf("alpha"),1),this.valpha="number"===typeof e.alpha?e.alpha:0);const r=t.sort().join("");if(!(r in a))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=a[r];const{labels:o}=i[this.model],s=[];for(n=0;n(e%360+360)%360)),saturationl:d("hsl",1,h(100)),lightness:d("hsl",2,h(100)),saturationv:d("hsv",1,h(100)),value:d("hsv",2,h(100)),chroma:d("hcg",1,h(100)),gray:d("hcg",2,h(100)),white:d("hwb",1,h(100)),wblack:d("hwb",2,h(100)),cyan:d("cmyk",0,h(100)),magenta:d("cmyk",1,h(100)),yellow:d("cmyk",2,h(100)),black:d("cmyk",3,h(100)),x:d("xyz",0,h(95.047)),y:d("xyz",1,h(100)),z:d("xyz",2,h(108.833)),l:d("lab",0,h(100)),a:d("lab",1),b:d("lab",2),keyword(e){return void 0!==e?new l(e):i[this.model].keyword(this.color)},hex(e){return void 0!==e?new l(e):r.to.hex(this.rgb().round().color)},hexa(e){if(void 0!==e)return new l(e);const t=this.rgb().round().color;let n=Math.round(255*this.valpha).toString(16).toUpperCase();return 1===n.length&&(n="0"+n),r.to.hex(t)+n},rgbNumber(){const e=this.rgb().color;return(255&e[0])<<16|(255&e[1])<<8|255&e[2]},luminosity(){const e=this.rgb().color,t=[];for(const[n,r]of e.entries()){const e=r/255;t[n]=e<=.04045?e/12.92:((e+.055)/1.055)**2.4}return.2126*t[0]+.7152*t[1]+.0722*t[2]},contrast(e){const t=this.luminosity(),n=e.luminosity();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)},level(e){const t=this.contrast(e);return t>=7?"AAA":t>=4.5?"AA":""},isDark(){const e=this.rgb().color,t=(2126*e[0]+7152*e[1]+722*e[2])/1e4;return t<128},isLight(){return!this.isDark()},negate(){const e=this.rgb();for(let t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten(e){const t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken(e){const t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate(e){const t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate(e){const t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten(e){const t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken(e){const t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale(){const e=this.rgb().color,t=.3*e[0]+.59*e[1]+.11*e[2];return l.rgb(t,t,t)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){const t=this.hsl();let n=t.color[0];return n=(n+e)%360,n=n<0?360+n:n,t.color[0]=n,t},mix(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);const n=e.rgb(),r=this.rgb(),i=void 0===t?.5:t,o=2*i-1,a=n.alpha()-r.alpha(),s=((o*a===-1?o:(o+a)/(1+o*a))+1)/2,c=1-s;return l.rgb(s*n.red()+c*r.red(),s*n.green()+c*r.green(),s*n.blue()+c*r.blue(),n.alpha()*i+r.alpha()*(1-i))}};for(const m of Object.keys(i)){if(o.includes(m))continue;const{channels:e}=i[m];l.prototype[m]=function(...e){return this.model===m?new l(this):e.length>0?new l(e,m):new l([...p(i[this.model][m].raw(this.color)),this.valpha],m)},l[m]=function(...t){let n=t[0];return"number"===typeof n&&(n=f(t,e)),new l(n,m)}}function c(e,t){return Number(e.toFixed(t))}function u(e){return function(t){return c(t,e)}}function d(e,t,n){e=Array.isArray(e)?e:[e];for(const r of e)(s[r]||(s[r]=[]))[t]=n;return e=e[0],function(r){let i;return void 0!==r?(n&&(r=n(r)),i=this[e](),i.color[t]=r,i):(i=this[e]().color[t],n&&(i=n(i)),i)}}function h(e){return function(t){return Math.max(0,Math.min(e,t))}}function p(e){return Array.isArray(e)?e:[e]}function f(e,t){for(let n=0;n(()=>{"use strict";var e={794:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CronParser=void 0;var r=n(586),i=function(){function e(e,t,n){void 0===t&&(t=!0),void 0===n&&(n=!1),this.expression=e,this.dayOfWeekStartIndexZero=t,this.monthStartIndexZero=n}return e.prototype.parse=function(){var e,t,n=null!==(e=this.expression)&&void 0!==e?e:"";if(n.startsWith("@")){var r=this.parseSpecial(this.expression);t=this.extractParts(r)}else t=this.extractParts(this.expression);return this.normalize(t),this.validate(t),t},e.prototype.parseSpecial=function(e){var t={"@yearly":"0 0 1 1 *","@annually":"0 0 1 1 *","@monthly":"0 0 1 * *","@weekly":"0 0 * * 0","@daily":"0 0 * * *","@midnight":"0 0 * * *","@hourly":"0 * * * *"},n=t[e];if(!n)throw new Error("Unknown special expression.");return n},e.prototype.extractParts=function(e){if(!this.expression)throw new Error("cron expression is empty");for(var t=e.trim().split(/[ ]+/),n=0;n7)throw new Error("Expression has ".concat(t.length," parts; too many!"));return t},e.prototype.normalize=function(e){var t=this;if(e[3]=e[3].replace("?","*"),e[5]=e[5].replace("?","*"),e[2]=e[2].replace("?","*"),0==e[0].indexOf("0/")&&(e[0]=e[0].replace("0/","*/")),0==e[1].indexOf("0/")&&(e[1]=e[1].replace("0/","*/")),0==e[2].indexOf("0/")&&(e[2]=e[2].replace("0/","*/")),0==e[3].indexOf("1/")&&(e[3]=e[3].replace("1/","*/")),0==e[4].indexOf("1/")&&(e[4]=e[4].replace("1/","*/")),0==e[6].indexOf("1/")&&(e[6]=e[6].replace("1/","*/")),e[5]=e[5].replace(/(^\d)|([^#/\s]\d)/g,(function(e){var n=e.replace(/\D/,""),r=n;return t.dayOfWeekStartIndexZero?"7"==n&&(r="0"):r=(parseInt(n)-1).toString(),e.replace(n,r)})),"L"==e[5]&&(e[5]="6"),"?"==e[3]&&(e[3]="*"),e[3].indexOf("W")>-1&&(e[3].indexOf(",")>-1||e[3].indexOf("-")>-1))throw new Error("The 'W' character can be specified only when the day-of-month is a single day, not a range or list of days.");var n={SUN:0,MON:1,TUE:2,WED:3,THU:4,FRI:5,SAT:6};for(var r in n)e[5]=e[5].replace(new RegExp(r,"gi"),n[r].toString());e[4]=e[4].replace(/(^\d{1,2})|([^#/\s]\d{1,2})/g,(function(e){var n=e.replace(/\D/,""),r=n;return t.monthStartIndexZero&&(r=(parseInt(n)+1).toString()),e.replace(n,r)}));var i={JAN:1,FEB:2,MAR:3,APR:4,MAY:5,JUN:6,JUL:7,AUG:8,SEP:9,OCT:10,NOV:11,DEC:12};for(var o in i)e[4]=e[4].replace(new RegExp(o,"gi"),i[o].toString());"0"==e[0]&&(e[0]=""),/\*|\-|\,|\//.test(e[2])||!/\*|\//.test(e[1])&&!/\*|\//.test(e[0])||(e[2]+="-".concat(e[2]));for(var a=0;a-1&&!/^\*|\-|\,/.test(e[a])){var s=null;switch(a){case 4:s="12";break;case 5:s="6";break;case 6:s="9999";break;default:s=null;break}if(null!==s){var l=e[a].split("/");e[a]="".concat(l[0],"-").concat(s,"/").concat(l[1])}}},e.prototype.validate=function(e){this.assertNoInvalidCharacters("DOW",e[5]),this.assertNoInvalidCharacters("DOM",e[3]),this.validateRange(e)},e.prototype.validateRange=function(e){r.default.secondRange(e[0]),r.default.minuteRange(e[1]),r.default.hourRange(e[2]),r.default.dayOfMonthRange(e[3]),r.default.monthRange(e[4],this.monthStartIndexZero),r.default.dayOfWeekRange(e[5],this.dayOfWeekStartIndexZero)},e.prototype.assertNoInvalidCharacters=function(e,t){var n=t.match(/[A-KM-VX-Z]+/gi);if(n&&n.length)throw new Error("".concat(e," part contains invalid values: '").concat(n.toString(),"'"))},e}();t.CronParser=i},728:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ExpressionDescriptor=void 0;var i=n(910),o=n(794),a=function(){function e(t,n){if(this.expression=t,this.options=n,this.expressionParts=new Array(5),!this.options.locale&&e.defaultLocale&&(this.options.locale=e.defaultLocale),!e.locales[this.options.locale]){var i=Object.keys(e.locales)[0];r.warn("Locale '".concat(this.options.locale,"' could not be found; falling back to '").concat(i,"'.")),this.options.locale=i}this.i18n=e.locales[this.options.locale],void 0===n.use24HourTimeFormat&&(n.use24HourTimeFormat=this.i18n.use24HourTimeFormatByDefault())}return e.toString=function(t,n){var r=void 0===n?{}:n,i=r.throwExceptionOnParseError,o=void 0===i||i,a=r.verbose,s=void 0!==a&&a,l=r.dayOfWeekStartIndexZero,c=void 0===l||l,u=r.monthStartIndexZero,d=void 0!==u&&u,h=r.use24HourTimeFormat,p=r.locale,f=void 0===p?null:p,m=r.tzOffset,g=void 0===m?0:m,v={throwExceptionOnParseError:o,verbose:s,dayOfWeekStartIndexZero:c,monthStartIndexZero:d,use24HourTimeFormat:h,locale:f,tzOffset:g},y=new e(t,v);return y.getFullDescription()},e.initialize=function(t,n){void 0===n&&(n="en"),e.specialCharacters=["/","-",",","*"],e.defaultLocale=n,t.load(e.locales)},e.prototype.getFullDescription=function(){var e="";try{var t=new o.CronParser(this.expression,this.options.dayOfWeekStartIndexZero,this.options.monthStartIndexZero);this.expressionParts=t.parse();var n=this.getTimeOfDayDescription(),r=this.getDayOfMonthDescription(),i=this.getMonthDescription(),a=this.getDayOfWeekDescription(),s=this.getYearDescription();e+=n+r+a+i+s,e=this.transformVerbosity(e,!!this.options.verbose),e=e.charAt(0).toLocaleUpperCase()+e.substr(1)}catch(l){if(this.options.throwExceptionOnParseError)throw"".concat(l);e=this.i18n.anErrorOccuredWhenGeneratingTheExpressionD()}return e},e.prototype.getTimeOfDayDescription=function(){var t=this.expressionParts[0],n=this.expressionParts[1],r=this.expressionParts[2],o="";if(i.StringUtilities.containsAny(n,e.specialCharacters)||i.StringUtilities.containsAny(r,e.specialCharacters)||i.StringUtilities.containsAny(t,e.specialCharacters))if(t||!(n.indexOf("-")>-1)||n.indexOf(",")>-1||n.indexOf("/")>-1||i.StringUtilities.containsAny(r,e.specialCharacters))if(!t&&r.indexOf(",")>-1&&-1==r.indexOf("-")&&-1==r.indexOf("/")&&!i.StringUtilities.containsAny(n,e.specialCharacters)){var a=r.split(",");o+=this.i18n.at();for(var s=0;s1){var o=r[r.length-1].index;n=n.substring(0,o)+":59"+n.substring(o+3)}}return n},e.prototype.getDayOfWeekDescription=function(){var e=this,t=this.i18n.daysOfTheWeek(),n=null;return n="*"==this.expressionParts[5]?"":this.getSegmentDescription(this.expressionParts[5],this.i18n.commaEveryDay(),(function(n,r){var i=n;n.indexOf("#")>-1?i=n.substring(0,n.indexOf("#")):n.indexOf("L")>-1&&(i=i.replace("L",""));var o=parseInt(i);if(e.options.tzOffset){var a=e.expressionParts[2],s=parseInt(a)+(e.options.tzOffset?e.options.tzOffset:0);s>=24?o++:s<0&&o--,o>6?o=0:o<0&&(o=6)}var l=e.i18n.daysOfTheWeekInCase?e.i18n.daysOfTheWeekInCase(r)[o]:t[o];if(n.indexOf("#")>-1){var c=null,u=n.substring(n.indexOf("#")+1),d=n.substring(0,n.indexOf("#"));switch(u){case"1":c=e.i18n.first(d);break;case"2":c=e.i18n.second(d);break;case"3":c=e.i18n.third(d);break;case"4":c=e.i18n.fourth(d);break;case"5":c=e.i18n.fifth(d);break}l=c+" "+l}return l}),(function(t){return 1==parseInt(t)?"":i.StringUtilities.format(e.i18n.commaEveryX0DaysOfTheWeek(t),t)}),(function(t){var n=t.substring(0,t.indexOf("-")),r="*"!=e.expressionParts[3];return r?e.i18n.commaAndX0ThroughX1(n):e.i18n.commaX0ThroughX1(n)}),(function(t){var n=null;if(t.indexOf("#")>-1){var r=t.substring(t.indexOf("#")+1);n=e.i18n.commaOnThe(r).trim()+e.i18n.spaceX0OfTheMonth()}else if(t.indexOf("L")>-1)n=e.i18n.commaOnTheLastX0OfTheMonth(t.replace("L",""));else{var i="*"!=e.expressionParts[3];n=i?e.i18n.commaAndOnX0():e.i18n.commaOnlyOnX0(t)}return n})),n},e.prototype.getMonthDescription=function(){var e=this,t=this.i18n.monthsOfTheYear(),n=this.getSegmentDescription(this.expressionParts[4],"",(function(n,r){return r&&e.i18n.monthsOfTheYearInCase?e.i18n.monthsOfTheYearInCase(r)[parseInt(n)-1]:t[parseInt(n)-1]}),(function(t){return 1==parseInt(t)?"":i.StringUtilities.format(e.i18n.commaEveryX0Months(t),t)}),(function(t){return e.i18n.commaMonthX0ThroughMonthX1()||e.i18n.commaX0ThroughX1()}),(function(t){return e.i18n.commaOnlyInMonthX0?e.i18n.commaOnlyInMonthX0():e.i18n.commaOnlyInX0()}));return n},e.prototype.getDayOfMonthDescription=function(){var e=this,t=null,n=this.expressionParts[3];switch(n){case"L":t=this.i18n.commaOnTheLastDayOfTheMonth();break;case"WL":case"LW":t=this.i18n.commaOnTheLastWeekdayOfTheMonth();break;default:var r=n.match(/(\d{1,2}W)|(W\d{1,2})/);if(r){var o=parseInt(r[0].replace("W","")),a=1==o?this.i18n.firstWeekday():i.StringUtilities.format(this.i18n.weekdayNearestDayX0(),o.toString());t=i.StringUtilities.format(this.i18n.commaOnTheX0OfTheMonth(),a);break}var s=n.match(/L-(\d{1,2})/);if(s){var l=s[1];t=i.StringUtilities.format(this.i18n.commaDaysBeforeTheLastDayOfTheMonth(l),l);break}if("*"==n&&"*"!=this.expressionParts[5])return"";t=this.getSegmentDescription(n,this.i18n.commaEveryDay(),(function(t){return"L"==t?e.i18n.lastDay():e.i18n.dayX0?i.StringUtilities.format(e.i18n.dayX0(),t):t}),(function(t){return"1"==t?e.i18n.commaEveryDay():e.i18n.commaEveryX0Days(t)}),(function(t){return e.i18n.commaBetweenDayX0AndX1OfTheMonth(t)}),(function(t){return e.i18n.commaOnDayX0OfTheMonth(t)}));break}return t},e.prototype.getYearDescription=function(){var e=this,t=this.getSegmentDescription(this.expressionParts[6],"",(function(e){return/^\d+$/.test(e)?new Date(parseInt(e),1).getFullYear().toString():e}),(function(t){return i.StringUtilities.format(e.i18n.commaEveryX0Years(t),t)}),(function(t){return e.i18n.commaYearX0ThroughYearX1()||e.i18n.commaX0ThroughX1()}),(function(t){return e.i18n.commaOnlyInYearX0?e.i18n.commaOnlyInYearX0():e.i18n.commaOnlyInX0()}));return t},e.prototype.getSegmentDescription=function(e,t,n,r,o,a){var s=null,l=e.indexOf("/")>-1,c=e.indexOf("-")>-1,u=e.indexOf(",")>-1;if(e)if("*"===e)s=t;else if(l||c||u)if(u){for(var d=e.split(","),h="",p=0;p0&&d.length>2&&(h+=",",p0&&d.length>1&&(p==d.length-1||2==d.length)&&(h+="".concat(this.i18n.spaceAnd()," ")),d[p].indexOf("/")>-1||d[p].indexOf("-")>-1){var f=d[p].indexOf("-")>-1&&-1==d[p].indexOf("/"),m=this.getSegmentDescription(d[p],t,n,r,f?this.i18n.commaX0ThroughX1:o,a);f&&(m=m.replace(", ","")),h+=m}else h+=l?this.getSegmentDescription(d[p],t,n,r,o,a):n(d[p]);s=l?h:i.StringUtilities.format(a(e),h)}else if(l){d=e.split("/");if(s=i.StringUtilities.format(r(d[1]),d[1]),d[0].indexOf("-")>-1){var g=this.generateRangeSegmentDescription(d[0],o,n);0!=g.indexOf(", ")&&(s+=", "),s+=g}else if(-1==d[0].indexOf("*")){var v=i.StringUtilities.format(a(d[0]),n(d[0]));v=v.replace(", ",""),s+=i.StringUtilities.format(this.i18n.commaStartingX0(),v)}}else c&&(s=this.generateRangeSegmentDescription(e,o,n));else s=i.StringUtilities.format(a(e),n(e));else s="";return s},e.prototype.generateRangeSegmentDescription=function(e,t,n){var r="",o=e.split("-"),a=n(o[0],1),s=n(o[1],2),l=t(e);return r+=i.StringUtilities.format(l,a,s),r},e.prototype.formatTime=function(e,t,n){var r=0,i=0;this.options.tzOffset&&(r=this.options.tzOffset>0?Math.floor(this.options.tzOffset):Math.ceil(this.options.tzOffset),i=parseFloat((this.options.tzOffset%1).toFixed(2)),0!=i&&(i*=60));var o=parseInt(e)+r,a=parseInt(t)+i;a>=60?(a-=60,o+=1):a<0&&(a+=60,o-=1),o>=24?o-=24:o<0&&(o=24+o);var s="",l=!1;this.options.use24HourTimeFormat||(l=!(!this.i18n.setPeriodBeforeTime||!this.i18n.setPeriodBeforeTime()),s=l?"".concat(this.getPeriod(o)," "):" ".concat(this.getPeriod(o)),o>12&&(o-=12),0===o&&(o=12));var c="";return n&&(c=":".concat(("00"+n).substring(n.length))),"".concat(l?s:"").concat(("00"+o.toString()).substring(o.toString().length),":").concat(("00"+a.toString()).substring(a.toString().length)).concat(c).concat(l?"":s)},e.prototype.transformVerbosity=function(e,t){return t||(e=e.replace(new RegExp(", ".concat(this.i18n.everyMinute()),"g"),""),e=e.replace(new RegExp(", ".concat(this.i18n.everyHour()),"g"),""),e=e.replace(new RegExp(this.i18n.commaEveryDay(),"g"),""),e=e.replace(/\, ?$/,"")),e},e.prototype.getPeriod=function(e){return e>=12?this.i18n.pm&&this.i18n.pm()||"PM":this.i18n.am&&this.i18n.am()||"AM"},e.locales={},e}();t.ExpressionDescriptor=a},336:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.enLocaleLoader=void 0;var r=n(751),i=function(){function e(){}return e.prototype.load=function(e){e["en"]=new r.en},e}();t.enLocaleLoader=i},751:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.en=void 0;var n=function(){function e(){}return e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return null},e.prototype.use24HourTimeFormatByDefault=function(){return!1},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"An error occured when generating the expression description. Check the cron expression syntax."},e.prototype.everyMinute=function(){return"every minute"},e.prototype.everyHour=function(){return"every hour"},e.prototype.atSpace=function(){return"At "},e.prototype.everyMinuteBetweenX0AndX1=function(){return"Every minute between %s and %s"},e.prototype.at=function(){return"At"},e.prototype.spaceAnd=function(){return" and"},e.prototype.everySecond=function(){return"every second"},e.prototype.everyX0Seconds=function(){return"every %s seconds"},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return"seconds %s through %s past the minute"},e.prototype.atX0SecondsPastTheMinute=function(){return"at %s seconds past the minute"},e.prototype.everyX0Minutes=function(){return"every %s minutes"},e.prototype.minutesX0ThroughX1PastTheHour=function(){return"minutes %s through %s past the hour"},e.prototype.atX0MinutesPastTheHour=function(){return"at %s minutes past the hour"},e.prototype.everyX0Hours=function(){return"every %s hours"},e.prototype.betweenX0AndX1=function(){return"between %s and %s"},e.prototype.atX0=function(){return"at %s"},e.prototype.commaEveryDay=function(){return", every day"},e.prototype.commaEveryX0DaysOfTheWeek=function(){return", every %s days of the week"},e.prototype.commaX0ThroughX1=function(){return", %s through %s"},e.prototype.commaAndX0ThroughX1=function(){return", %s through %s"},e.prototype.first=function(){return"first"},e.prototype.second=function(){return"second"},e.prototype.third=function(){return"third"},e.prototype.fourth=function(){return"fourth"},e.prototype.fifth=function(){return"fifth"},e.prototype.commaOnThe=function(){return", on the "},e.prototype.spaceX0OfTheMonth=function(){return" %s of the month"},e.prototype.lastDay=function(){return"the last day"},e.prototype.commaOnTheLastX0OfTheMonth=function(){return", on the last %s of the month"},e.prototype.commaOnlyOnX0=function(){return", only on %s"},e.prototype.commaAndOnX0=function(){return", and on %s"},e.prototype.commaEveryX0Months=function(){return", every %s months"},e.prototype.commaOnlyInX0=function(){return", only in %s"},e.prototype.commaOnTheLastDayOfTheMonth=function(){return", on the last day of the month"},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", on the last weekday of the month"},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s days before the last day of the month"},e.prototype.firstWeekday=function(){return"first weekday"},e.prototype.weekdayNearestDayX0=function(){return"weekday nearest day %s"},e.prototype.commaOnTheX0OfTheMonth=function(){return", on the %s of the month"},e.prototype.commaEveryX0Days=function(){return", every %s days"},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", between day %s and %s of the month"},e.prototype.commaOnDayX0OfTheMonth=function(){return", on day %s of the month"},e.prototype.commaEveryHour=function(){return", every hour"},e.prototype.commaEveryX0Years=function(){return", every %s years"},e.prototype.commaStartingX0=function(){return", starting %s"},e.prototype.daysOfTheWeek=function(){return["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},e.prototype.monthsOfTheYear=function(){return["January","February","March","April","May","June","July","August","September","October","November","December"]},e}();t.en=n},586:(e,t)=>{function n(e,t){if(!e)throw new Error(t)}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){}return e.secondRange=function(e){for(var t=e.split(","),r=0;r=0&&i<=59,"seconds part must be >= 0 and <= 59")}},e.minuteRange=function(e){for(var t=e.split(","),r=0;r=0&&i<=59,"minutes part must be >= 0 and <= 59")}},e.hourRange=function(e){for(var t=e.split(","),r=0;r=0&&i<=23,"hours part must be >= 0 and <= 23")}},e.dayOfMonthRange=function(e){for(var t=e.split(","),r=0;r=1&&i<=31,"DOM part must be >= 1 and <= 31")}},e.monthRange=function(e,t){for(var r=e.split(","),i=0;i=1&&o<=12,t?"month part must be >= 0 and <= 11":"month part must be >= 1 and <= 12")}},e.dayOfWeekRange=function(e,t){for(var r=e.split(","),i=0;i=0&&o<=6,t?"DOW part must be >= 0 and <= 6":"DOW part must be >= 1 and <= 7")}},e}();t["default"]=r},910:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.StringUtilities=void 0;var n=function(){function e(){}return e.format=function(e){for(var t=[],n=1;n-1}))},e}();t.StringUtilities=n}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}var i={};return(()=>{var e=i;Object.defineProperty(e,"__esModule",{value:!0}),e.toString=void 0;var t=n(728),r=n(336);t.ExpressionDescriptor.initialize(new r.enLocaleLoader),e["default"]=t.ExpressionDescriptor;var o=t.ExpressionDescriptor.toString;e.toString=o})(),i})()))},71972:function(e){!function(t,n){e.exports=n()}(0,(function(){"use strict";var e="millisecond",t="second",n="minute",r="hour",i="day",o="week",a="month",s="quarter",l="year",c=/^(\d{4})-?(\d{1,2})-?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?.?(\d{1,3})?$/,u=/\[([^\]]+)]|Y{2,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,d=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},h={s:d,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?"+":"-")+d(r,2,"0")+":"+d(i,2,"0")},m:function(e,t){var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,a),i=t-r<0,o=e.clone().add(n+(i?-1:1),a);return Number(-(n+(t-r)/(i?r-o:o-r))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(c){return{M:a,y:l,w:o,d:i,D:"date",h:r,m:n,s:t,ms:e,Q:s}[c]||String(c||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},p={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("_")},f="en",m={};m[f]=p;var g=function(e){return e instanceof _},v=function(e,t,n){var r;if(!e)return f;if("string"==typeof e)m[e]&&(r=e),t&&(m[e]=t,r=e);else{var i=e.name;m[i]=e,r=i}return!n&&r&&(f=r),r||!n&&f},y=function(e,t){if(g(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new _(n)},b=h;b.l=v,b.i=g,b.w=function(e,t){return y(e,{locale:t.$L,utc:t.$u,$offset:t.$offset})};var _=function(){function d(e){this.$L=this.$L||v(e.locale,null,!0),this.parse(e)}var h=d.prototype;return h.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(b.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(c);if(r)return n?new Date(Date.UTC(r[1],r[2]-1,r[3]||1,r[4]||0,r[5]||0,r[6]||0,r[7]||0)):new Date(r[1],r[2]-1,r[3]||1,r[4]||0,r[5]||0,r[6]||0,r[7]||0)}return new Date(t)}(e),this.init()},h.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},h.$utils=function(){return b},h.isValid=function(){return!("Invalid Date"===this.$d.toString())},h.isSame=function(e,t){var n=y(e);return this.startOf(t)<=n&&n<=this.endOf(t)},h.isAfter=function(e,t){return y(e)3&&"boolean"!==typeof arguments[3]&&null!==arguments[3])throw new o("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!==typeof arguments[4]&&null!==arguments[4])throw new o("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!==typeof arguments[5]&&null!==arguments[5])throw new o("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!==typeof arguments[6])throw new o("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,u=arguments.length>6&&arguments[6],d=!!a&&a(e,t);if(r)r(e,t,{configurable:null===c&&d?d.configurable:!c,enumerable:null===s&&d?d.enumerable:!s,value:n,writable:null===l&&d?d.writable:!l});else{if(!u&&(s||l||c))throw new i("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=n}}},87997:function(e,t,n){"use strict";var r=n(49552),i="function"===typeof Symbol&&"symbol"===typeof Symbol("foo"),o=Object.prototype.toString,a=Array.prototype.concat,s=n(18114),l=function(e){return"function"===typeof e&&"[object Function]"===o.call(e)},c=n(8451)(),u=function(e,t,n,r){if(t in e)if(!0===r){if(e[t]===n)return}else if(!l(r)||!r())return;c?s(e,t,n,!0):s(e,t,n)},d=function(e,t){var n=arguments.length>2?arguments[2]:{},o=r(t);i&&(o=a.call(o,Object.getOwnPropertySymbols(t)));for(var s=0;s All rights reserved. Redistribution and use of this software in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of Kevin Decker nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. @license */ (function(e,n){n(t)})(0,(function(e){"use strict";function t(){}function n(e,t,n,r,i){for(var o=0,a=t.length,s=0,l=0;oe.length?n:e})),c.value=e.join(d)}else c.value=e.join(n.slice(s,s+c.count));s+=c.count,c.added||(l+=c.count)}}var h=t[a-1];return a>1&&"string"===typeof h.value&&(h.added||h.removed)&&e.equals("",h.value)&&(t[a-2].value+=h.value,t.pop()),t}function r(e){return{newPos:e.newPos,components:e.components.slice(0)}}t.prototype={diff:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=i.callback;"function"===typeof i&&(o=i,i={}),this.options=i;var a=this;function s(e){return o?(setTimeout((function(){o(void 0,e)}),0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e)),t=this.removeEmpty(this.tokenize(t));var l=t.length,c=e.length,u=1,d=l+c,h=[{newPos:-1,components:[]}],p=this.extractCommon(h[0],t,e,0);if(h[0].newPos+1>=l&&p+1>=c)return s([{value:this.join(t),count:t.length}]);function f(){for(var i=-1*u;i<=u;i+=2){var o=void 0,d=h[i-1],p=h[i+1],f=(p?p.newPos:0)-i;d&&(h[i-1]=void 0);var m=d&&d.newPos+1=l&&f+1>=c)return s(n(a,o.components,t,e,a.useLongestToken));h[i]=o}else h[i]=void 0}u++}if(o)(function e(){setTimeout((function(){if(u>d)return o();f()||e()}),0)})();else while(u<=d){var m=f();if(m)return m}},pushComponent:function(e,t,n){var r=e[e.length-1];r&&r.added===t&&r.removed===n?e[e.length-1]={count:r.count+1,added:t,removed:n}:e.push({count:1,added:t,removed:n})},extractCommon:function(e,t,n,r){var i=t.length,o=n.length,a=e.newPos,s=a-r,l=0;while(a+11&&void 0!==arguments[1]?arguments[1]:{},n=e.split(/\r\n|[\n\v\f\r\x85]/),r=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],i=[],o=0;function a(){var e={};i.push(e);while(o2&&void 0!==arguments[2]?arguments[2]:{};if("string"===typeof t&&(t=R(t)),Array.isArray(t)){if(t.length>1)throw new Error("applyPatch only works with a single input.");t=t[0]}var r,i,o=e.split(/\r\n|[\n\v\f\r\x85]/),a=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],s=t.hunks,l=n.compareLine||function(e,t,n,r){return t===r},c=0,u=n.fuzzFactor||0,d=0,h=0;function p(e,t){for(var n=0;n0?r[0]:" ",a=r.length>0?r.substr(1):r;if(" "===i||"-"===i){if(!l(t+1,o[t],i,a)&&(c++,c>u))return!1;t++}}return!0}for(var f=0;f0?k[0]:" ",N=k.length>0?k.substr(1):k,T=E.linedelimiters[x];if(" "===A)S++;else if("-"===A)o.splice(S,1),a.splice(S,1);else if("+"===A)o.splice(S,0,N),a.splice(S,0,T),S++;else if("\\"===A){var C=E.lines[x-1]?E.lines[x-1][0]:null;"+"===C?r=!0:"-"===C&&(i=!0)}}}if(r)while(!o[o.length-1])o.pop(),a.pop();else i&&(o.push(""),a.push("\n"));for(var I=0;I0?l(p.lines.slice(-a.context)):[],u-=h.length,d-=h.length)}(o=h).push.apply(o,_(i.map((function(e){return(t.added?"+":"-")+e})))),t.added?m+=i.length:f+=i.length}else{if(u)if(i.length<=2*a.context&&e=s.length-2&&i.length<=a.context){var w=/\n$/.test(n),E=/\n$/.test(r),S=0==i.length&&h.length>b.oldLines;!w&&S&&h.splice(b.oldLines,0,"\\ No newline at end of file"),(w||S)&&E||h.push("\\ No newline at end of file")}c.push(b),u=0,d=0,h=[]}f+=i.length,m+=i.length}},v=0;ve.length)return!1;for(var n=0;n"):r.removed&&t.push(""),t.push(oe(r.value)),r.added?t.push(""):r.removed&&t.push("")}return t.join("")}function oe(e){var t=e;return t=t.replace(/&/g,"&"),t=t.replace(//g,">"),t=t.replace(/"/g,"""),t}T.tokenize=function(e){return e.slice()},T.join=T.removeEmpty=function(e){return e},e.Diff=t,e.diffChars=o,e.diffWords=u,e.diffWordsWithSpace=d,e.diffLines=p,e.diffTrimmedLines=f,e.diffSentences=g,e.diffCss=y,e.diffJson=A,e.diffArrays=C,e.structuredPatch=L,e.createTwoFilesPatch=P,e.createPatch=M,e.applyPatch=I,e.applyPatches=D,e.parsePatch=R,e.merge=j,e.convertChangesToDMP=re,e.convertChangesToXML=ie,e.canonicalize=N,Object.defineProperty(e,"__esModule",{value:!0})}))},2341:function(e,t,n){"use strict";var r=n(9776),i=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i1?n[n.length-1]:t}function l(e,t){return t.reduce((function(t,n){return t||e.startsWith(n)}),!1)}var c=["a/","b/","i/","w/","c/","o/"];function u(e,t,n){var r=void 0!==n?i(i([],c,!0),[n],!1):c,o=t?new RegExp("^".concat((0,a.escapeForRegExp)(t),' "?(.+?)"?$')):new RegExp('^"?(.+?)"?$'),s=o.exec(e)||[],l=s[1],u=void 0===l?"":l,d=r.find((function(e){return 0===u.indexOf(e)})),h=d?u.slice(d.length):u;return h.replace(/\s+\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}(?:\.\d+)? [+-]\d{4}.*$/,"")}function d(e,t){return u(e,"---",t)}function h(e,t){return u(e,"+++",t)}function p(e,t){void 0===t&&(t={});var n=[],i=null,a=null,c=null,p=null,f=null,m=null,g=null,v="--- ",y="+++ ",b="@@",_=/^old mode (\d{6})/,w=/^new mode (\d{6})/,E=/^deleted file mode (\d{6})/,S=/^new file mode (\d{6})/,x=/^copy from "?(.+)"?/,k=/^copy to "?(.+)"?/,A=/^rename from "?(.+)"?/,N=/^rename to "?(.+)"?/,T=/^similarity index (\d+)%/,C=/^dissimilarity index (\d+)%/,R=/^index ([\da-z]+)\.\.([\da-z]+)\s*(\d{6})?/,O=/^Binary files (.*) and (.*) differ/,I=/^GIT binary patch/,D=/^index ([\da-z]+),([\da-z]+)\.\.([\da-z]+)/,L=/^mode (\d{6}),(\d{6})\.\.(\d{6})/,P=/^new file mode (\d{6})/,M=/^deleted file mode (\d{6}),(\d{6})/,F=e.replace(/\\ No newline at end of file/g,"").replace(/\r\n?/g,"\n").split("\n");function B(){null!==a&&null!==i&&(i.blocks.push(a),a=null)}function $(){null!==i&&(i.oldName||null===m||(i.oldName=m),i.newName||null===g||(i.newName=g),i.newName&&(n.push(i),i=null)),m=null,g=null}function j(){B(),$(),i={blocks:[],deletedLines:0,addedLines:0}}function U(e){var t;B(),null!==i&&((t=/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@.*/.exec(e))?(i.isCombined=!1,c=parseInt(t[1],10),f=parseInt(t[2],10)):(t=/^@@@ -(\d+)(?:,\d+)? -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@@.*/.exec(e))?(i.isCombined=!0,c=parseInt(t[1],10),p=parseInt(t[2],10),f=parseInt(t[3],10)):(e.startsWith(b)&&r.error("Failed to parse lines, starting in 0!"),c=0,f=0,i.isCombined=!1)),a={lines:[],oldStartLine:c,oldStartLine2:p,newStartLine:f,header:e}}function V(e){if(null!==i&&null!==a&&null!==c&&null!==f){var t={content:e},n=i.isCombined?["+ "," +","++"]:["+"],r=i.isCombined?["- "," -","--"]:["-"];l(e,n)?(i.addedLines++,t.type=o.LineType.INSERT,t.oldNumber=void 0,t.newNumber=f++):l(e,r)?(i.deletedLines++,t.type=o.LineType.DELETE,t.oldNumber=c++,t.newNumber=void 0):(t.type=o.LineType.CONTEXT,t.oldNumber=c++,t.newNumber=f++),a.lines.push(t)}}function K(e,t){var n=t;while(nt.diffMaxChanges||"number"===typeof t.diffMaxLineLength&&e.length>t.diffMaxLineLength)){i.isTooBig=!0,i.addedLines=0,i.deletedLines=0,i.blocks=[],a=null;var B="function"===typeof t.diffTooBigMessage?t.diffTooBigMessage(n.length):"Diff too big to be displayed";U(B)}else{if(e.startsWith(v)&&c.startsWith(y)||e.startsWith(y)&&l.startsWith(v)){if(i&&!i.oldName&&e.startsWith("--- ")&&(o=d(e,t.srcPrefix)))return i.oldName=o,void(i.language=s(i.oldName,i.language));if(i&&!i.newName&&e.startsWith("+++ ")&&(o=h(e,t.dstPrefix)))return i.newName=o,void(i.language=s(i.newName,i.language))}if(i&&(e.startsWith(b)||i.isGitDiff&&i.oldName&&i.newName&&!a))U(e);else if(a&&(e.startsWith("+")||e.startsWith("-")||e.startsWith(" ")))V(e);else{var $=!K(e,r);if(null===i)throw new Error("Where is my file !!!");(o=_.exec(e))?i.oldMode=o[1]:(o=w.exec(e))?i.newMode=o[1]:(o=E.exec(e))?(i.deletedFileMode=o[1],i.isDeleted=!0):(o=S.exec(e))?(i.newFileMode=o[1],i.isNew=!0):(o=x.exec(e))?($&&(i.oldName=o[1]),i.isCopy=!0):(o=k.exec(e))?($&&(i.newName=o[1]),i.isCopy=!0):(o=A.exec(e))?($&&(i.oldName=o[1]),i.isRename=!0):(o=N.exec(e))?($&&(i.newName=o[1]),i.isRename=!0):(o=O.exec(e))?(i.isBinary=!0,i.oldName=u(o[1],void 0,t.srcPrefix),i.newName=u(o[2],void 0,t.dstPrefix),U("Binary file")):I.test(e)?(i.isBinary=!0,U(e)):(o=T.exec(e))?i.unchangedPercentage=parseInt(o[1],10):(o=C.exec(e))?i.changedPercentage=parseInt(o[1],10):(o=R.exec(e))?(i.checksumBefore=o[1],i.checksumAfter=o[2],o[3]&&(i.mode=o[3])):(o=D.exec(e))?(i.checksumBefore=[o[2],o[3]],i.checksumAfter=o[1]):(o=L.exec(e))?(i.oldMode=[o[2],o[3]],i.newMode=o[1]):(o=P.exec(e))?(i.newFileMode=o[1],i.isNew=!0):(o=M.exec(e))&&(i.deletedFileMode=o[1],i.isDeleted=!0)}}}})),B(),$(),n}t.parse=p},46568:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e["default"]=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.defaultTemplates=void 0;var a=o(n(76297));t.defaultTemplates={},t.defaultTemplates["file-summary-line"]=new a.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('
  • '),r.b("\n"+n),r.b(' '),r.b("\n"+n),r.b(r.rp("'),r.b(r.v(r.f("fileName",e,t,0))),r.b(""),r.b("\n"+n),r.b(' '),r.b("\n"+n),r.b(' '),r.b(r.v(r.f("addedLines",e,t,0))),r.b(""),r.b("\n"+n),r.b(' '),r.b(r.v(r.f("deletedLines",e,t,0))),r.b(""),r.b("\n"+n),r.b(" "),r.b("\n"+n),r.b(" "),r.b("\n"+n),r.b("
  • "),r.fl()},partials:{"'),r.b("\n"+n),r.b('
    '),r.b("\n"+n),r.b(' Files changed ('),r.b(r.v(r.f("filesNumber",e,t,0))),r.b(")"),r.b("\n"+n),r.b(' hide'),r.b("\n"+n),r.b(' show'),r.b("\n"+n),r.b("
    "),r.b("\n"+n),r.b('
      '),r.b("\n"+n),r.b(" "),r.b(r.t(r.f("files",e,t,0))),r.b("\n"+n),r.b("
    "),r.b("\n"+n),r.b(""),r.fl()},partials:{},subs:{}}),t.defaultTemplates["generic-block-header"]=new a.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b(""),r.b("\n"+n),r.b(' '),r.b("\n"+n),r.b(' '),r.b("\n"+n),r.b('
    '),r.b(r.t(r.f("blockHeader",e,t,0))),r.b("
    "),r.b("\n"+n),r.b(" "),r.b("\n"+n),r.b(""),r.fl()},partials:{},subs:{}}),t.defaultTemplates["generic-empty-diff"]=new a.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b(""),r.b("\n"+n),r.b(' '),r.b("\n"+n),r.b('
    '),r.b("\n"+n),r.b(" File without changes"),r.b("\n"+n),r.b("
    "),r.b("\n"+n),r.b(" "),r.b("\n"+n),r.b(""),r.fl()},partials:{},subs:{}}),t.defaultTemplates["generic-file-path"]=new a.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b(''),r.b("\n"+n),r.b(r.rp("'),r.b(r.v(r.f("fileDiffName",e,t,0))),r.b(""),r.b("\n"+n),r.b(r.rp(""),r.b("\n"+n),r.b('"),r.fl()},partials:{""),r.b("\n"+n),r.b(' '),r.b("\n"+n),r.b(" "),r.b(r.t(r.f("lineNumber",e,t,0))),r.b("\n"+n),r.b(" "),r.b("\n"+n),r.b(' '),r.b("\n"+n),r.b('
    '),r.b("\n"+n),r.s(r.f("prefix",e,t,1),e,t,0,162,238,"{{ }}")&&(r.rs(e,t,(function(e,t,r){r.b(' '),r.b(r.t(r.f("prefix",e,t,0))),r.b(""),r.b("\n"+n)})),e.pop()),r.s(r.f("prefix",e,t,1),e,t,1,0,0,"")||(r.b('  '),r.b("\n"+n)),r.s(r.f("content",e,t,1),e,t,0,371,445,"{{ }}")&&(r.rs(e,t,(function(e,t,r){r.b(' '),r.b(r.t(r.f("content",e,t,0))),r.b(""),r.b("\n"+n)})),e.pop()),r.s(r.f("content",e,t,1),e,t,1,0,0,"")||(r.b('
    '),r.b("\n"+n)),r.b("
    "),r.b("\n"+n),r.b(" "),r.b("\n"+n),r.b(""),r.fl()},partials:{},subs:{}}),t.defaultTemplates["generic-wrapper"]=new a.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('
    '),r.b("\n"+n),r.b(" "),r.b(r.t(r.f("content",e,t,0))),r.b("\n"+n),r.b("
    "),r.fl()},partials:{},subs:{}}),t.defaultTemplates["icon-file-added"]=new a.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('"),r.fl()},partials:{},subs:{}}),t.defaultTemplates["icon-file-changed"]=new a.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('"),r.fl()},partials:{},subs:{}}),t.defaultTemplates["icon-file-deleted"]=new a.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('"),r.fl()},partials:{},subs:{}}),t.defaultTemplates["icon-file-renamed"]=new a.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('"),r.fl()},partials:{},subs:{}}),t.defaultTemplates["icon-file"]=new a.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('"),r.fl()},partials:{},subs:{}}),t.defaultTemplates["line-by-line-file-diff"]=new a.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('
    '),r.b("\n"+n),r.b('
    '),r.b("\n"+n),r.b(" "),r.b(r.t(r.f("filePath",e,t,0))),r.b("\n"+n),r.b("
    "),r.b("\n"+n),r.b('
    '),r.b("\n"+n),r.b('
    '),r.b("\n"+n),r.b(' '),r.b("\n"+n),r.b(' '),r.b("\n"+n),r.b(" "),r.b(r.t(r.f("diffs",e,t,0))),r.b("\n"+n),r.b(" "),r.b("\n"+n),r.b("
    "),r.b("\n"+n),r.b("
    "),r.b("\n"+n),r.b("
    "),r.b("\n"+n),r.b("
    "),r.fl()},partials:{},subs:{}}),t.defaultTemplates["line-by-line-numbers"]=new a.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('
    '),r.b(r.v(r.f("oldNumber",e,t,0))),r.b("
    "),r.b("\n"+n),r.b('
    '),r.b(r.v(r.f("newNumber",e,t,0))),r.b("
    "),r.fl()},partials:{},subs:{}}),t.defaultTemplates["side-by-side-file-diff"]=new a.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('
    '),r.b("\n"+n),r.b('
    '),r.b("\n"+n),r.b(" "),r.b(r.t(r.f("filePath",e,t,0))),r.b("\n"+n),r.b("
    "),r.b("\n"+n),r.b('
    '),r.b("\n"+n),r.b('
    '),r.b("\n"+n),r.b('
    '),r.b("\n"+n),r.b(' '),r.b("\n"+n),r.b(' '),r.b("\n"+n),r.b(" "),r.b(r.t(r.d("diffs.left",e,t,0))),r.b("\n"+n),r.b(" "),r.b("\n"+n),r.b("
    "),r.b("\n"+n),r.b("
    "),r.b("\n"+n),r.b("
    "),r.b("\n"+n),r.b('
    '),r.b("\n"+n),r.b('
    '),r.b("\n"+n),r.b(' '),r.b("\n"+n),r.b(' '),r.b("\n"+n),r.b(" "),r.b(r.t(r.d("diffs.right",e,t,0))),r.b("\n"+n),r.b(" "),r.b("\n"+n),r.b("
    "),r.b("\n"+n),r.b("
    "),r.b("\n"+n),r.b("
    "),r.b("\n"+n),r.b("
    "),r.b("\n"+n),r.b("
    "),r.fl()},partials:{},subs:{}}),t.defaultTemplates["tag-file-added"]=new a.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('ADDED'),r.fl()},partials:{},subs:{}}),t.defaultTemplates["tag-file-changed"]=new a.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('CHANGED'),r.fl()},partials:{},subs:{}}),t.defaultTemplates["tag-file-deleted"]=new a.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('DELETED'),r.fl()},partials:{},subs:{}}),t.defaultTemplates["tag-file-renamed"]=new a.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('RENAMED'),r.fl()},partials:{},subs:{}})},36558:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0)&&(t.push([[],n,r]),n=[],r=[]),o.type===u.LineType.CONTEXT?t.push([[o],[],[]]):o.type===u.LineType.INSERT&&0===n.length?t.push([[],[],[o]]):o.type===u.LineType.INSERT&&n.length>0?r.push(o):o.type===u.LineType.DELETE&&n.push(o)}return(n.length||r.length)&&(t.push([[],n,r]),n=[],r=[]),t},e.prototype.applyRematchMatching=function(e,t,n){var r=e.length*t.length,i=Math.max.apply(null,[0].concat(e.concat(t).map((function(e){return e.content.length})))),o=r0||a.indexB>0)&&(y=m.concat(y)),(e.length>d||r.length>h)&&(y=y.concat(v)),y}return n}Object.defineProperty(t,"__esModule",{value:!0}),t.newMatcherFn=t.newDistanceFn=t.levenshtein=void 0,t.levenshtein=n,t.newDistanceFn=r,t.newMatcherFn=i},21110:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n]*>((.|\n)*?)<\/ins>)/g,"")}function g(e){return e.replace(/(]*>((.|\n)*?)<\/del>)/g,"")}function v(e){switch(e){case u.LineType.CONTEXT:return t.CSSLineClass.CONTEXT;case u.LineType.INSERT:return t.CSSLineClass.INSERTS;case u.LineType.DELETE:return t.CSSLineClass.DELETES}}function y(e){return e?2:1}function b(e){return e.slice(0).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/")}function _(e,t,n){void 0===n&&(n=!0);var r=y(t);return{prefix:e.substring(0,r),content:n?b(e.substring(r)):e.substring(r)}}function w(e){var t=(0,l.unifyPath)(e.oldName),n=(0,l.unifyPath)(e.newName);if(t===n||f(t)||f(n))return f(n)?t:n;var r=[],i=[],o=t.split(d),a=n.split(d),s=o.length,c=a.length,u=0,h=s-1,p=c-1;while(uu&&p>u){if(o[h]!==a[p])break;i.unshift(a[p]),h-=1,p-=1}var m=r.join(d),g=i.join(d),v=o.slice(u,h+1).join(d),y=a.slice(u,p+1).join(d);return m.length&&g.length?m+d+"{"+v+" → "+y+"}"+d+g:m.length?m+d+"{"+v+" → "+y+"}":g.length?"{"+v+" → "+y+"}"+d+g:t+" → "+n}function E(e){return"d2h-".concat((0,l.hashCode)(w(e)).toString().slice(-6))}function S(e){var t="file-changed";return e.isRename||e.isCopy?t="file-renamed":e.isNew?t="file-added":e.isDeleted?t="file-deleted":e.newName!==e.oldName&&(t="file-renamed"),t}function x(e,n,i,o){void 0===o&&(o={});var a=r(r({},t.defaultRenderConfig),o),l=a.matching,c=a.maxLineLengthHighlight,u=a.matchWordsThreshold,d=a.diffStyle,f=_(e,i,!1),v=_(n,i,!1);if(f.content.length>c||v.content.length>c)return{oldLine:{prefix:f.prefix,content:b(f.content)},newLine:{prefix:v.prefix,content:b(v.content)}};var y="char"===d?s.diffChars(f.content,v.content):s.diffWordsWithSpace(f.content,v.content),w=[];if("word"===d&&"words"===l){var E=y.filter((function(e){return e.removed})),S=y.filter((function(e){return e.added})),x=p(S,E);x.forEach((function(e){if(1===e[0].length&&1===e[1].length){var t=h(e[0][0],e[1][0]);t-1?' class="d2h-change"':"",i=b(t.value);return null!==n?"".concat(e,"<").concat(n).concat(r,">").concat(i,""):"".concat(e).concat(i)}),"");return{oldLine:{prefix:f.prefix,content:m(k)},newLine:{prefix:v.prefix,content:g(k)}}}t.toCSSClass=v,t.escapeForHtml=b,t.deconstructLine=_,t.filenameDiff=w,t.getHtmlId=E,t.getFileIcon=S,t.diffHighlight=x},58491:function(e,t,n){"use strict";var r=n(9776),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0)&&(t.push([[],n,r]),n=[],r=[]),o.type===u.LineType.CONTEXT?t.push([[o],[],[]]):o.type===u.LineType.INSERT&&0===n.length?t.push([[],[],[o]]):o.type===u.LineType.INSERT&&n.length>0?r.push(o):o.type===u.LineType.DELETE&&n.push(o)}return(n.length||r.length)&&(t.push([[],n,r]),n=[],r=[]),t},e.prototype.applyRematchMatching=function(e,t,n){var r=e.length*t.length,i=Math.max.apply(null,[0].concat(e.concat(t).map((function(e){return e.content.length})))),o=r/gm,">")}function r(e){return e.nodeName.toLowerCase()}function i(e){var t=[],n=function(e,i){for(var o=e.firstChild;o;o=o.nextSibling)3===o.nodeType&&null!==o.nodeValue?i+=o.nodeValue.length:1===o.nodeType&&(t.push({event:"start",offset:i,node:o}),i=n(o,i),r(o).match(/br|hr|img|input/)||t.push({event:"stop",offset:i,node:o}));return i};return n(e,0),t}function o(e,t,i){var o=0,a="",s=[];function l(e){return null!==e&&void 0!==(null===e||void 0===e?void 0:e.attributes)}function c(){return e.length&&t.length?e[0].offset!==t[0].offset?e[0].offset")}function d(e){a+=""}function h(e){("start"===e.event?u:d)(e.node)}while(e.length||t.length){var p=c();if(a+=n(i.substring(o,p[0].offset)),o=p[0].offset,p===e){s.reverse().forEach(d);do{h(p.splice(0,1)[0]),p=c()}while(p===e&&p.length&&p[0].offset===o);s.reverse().forEach(u)}else"start"===p[0].event?s.push(p[0].node):s.pop(),h(p.splice(0,1)[0])}return a+n(i.substr(o))}function a(e){var t=new Array;return e.value=e.value.split("\n").map((function(e){var n=t.map((function(e){return'')})).join(""),r=e.matchAll(/(|<\/span>)/g);Array.from(r).forEach((function(e){""===e[0]?t.shift():t.unshift(e[2])}));var i="".repeat(t.length);return n+e+i})).join("\n"),e}Object.defineProperty(t,"__esModule",{value:!0}),t.getLanguage=t.closeTags=t.mergeStreams=t.nodeStream=void 0,t.nodeStream=i,t.mergeStreams=o,t.closeTags=a;var s={"1c":"1c",abnf:"abnf",accesslog:"accesslog",as:"actionscript",adb:"ada",ada:"ada",ads:"ada",angelscript:"angelscript",apache:"apache",applescript:"applescript",scpt:"applescript",arcade:"arcade",cpp:"cpp",hpp:"cpp",arduino:"arduino",ino:"arduino",armasm:"armasm",arm:"armasm",xml:"xml",html:"xml",xhtml:"xml",rss:"xml",atom:"xml",xjb:"xml",xsd:"xml",xsl:"xml",plist:"xml",svg:"xml",asciidoc:"asciidoc",adoc:"asciidoc",asc:"asciidoc",aspectj:"aspectj",ahk:"autohotkey",ahkl:"autohotkey",au3:"autoit",avrasm:"avrasm",awk:"awk",axapta:"axapta","x++":"axapta",bash:"bash",sh:"bash",zsh:"bash",b:"basic",bnf:"bnf",bf:"brainfuck",c:"c",h:"c",cats:"c",idc:"c",cal:"cal",capnproto:"capnproto",capnp:"capnproto",ceylon:"ceylon",clean:"clean",clj:"clojure",boot:"clojure",cl2:"clojure",cljc:"clojure",cljs:"clojure","cljs.hl":"clojure",cljscm:"clojure",cljx:"clojure",hic:"clojure","clojure-repl":"clojure-repl",cmake:"cmake","cmake.in":"cmake",coffee:"coffeescript",_coffee:"coffeescript",cake:"coffeescript",cjsx:"coffeescript",iced:"coffeescript",cson:"coffeescript",coq:"coq",cos:"cos",cls:"cos",crmsh:"crmsh",crm:"crmsh",pcmk:"crmsh",cr:"crystal",cs:"csharp",csx:"csharp",csp:"csp",css:"css",d:"d",di:"d",md:"markdown",markdown:"markdown",mdown:"markdown",mdwn:"markdown",mkd:"markdown",mkdn:"markdown",mkdown:"markdown",ronn:"markdown",workbook:"markdown",dart:"dart",dpr:"delphi",dfm:"delphi",pas:"delphi",pascal:"delphi",diff:"diff",patch:"diff",django:"django",jinja:"django",dns:"dns",zone:"dns",bind:"dns",dockerfile:"dockerfile",docker:"dockerfile",dos:"dos",bat:"dos",cmd:"dos",dsconfig:"dsconfig",dts:"dts",dust:"dust",dst:"dust",ebnf:"ebnf",ex:"elixir",exs:"elixir",elm:"elm",rb:"ruby",builder:"ruby",eye:"ruby",gemspec:"ruby",god:"ruby",jbuilder:"ruby",mspec:"ruby",pluginspec:"ruby",podspec:"ruby",rabl:"ruby",rake:"ruby",rbuild:"ruby",rbw:"ruby",rbx:"ruby",ru:"ruby",ruby:"ruby",spec:"ruby",thor:"ruby",watchr:"ruby",erb:"erb","erlang-repl":"erlang-repl",erl:"erlang","app.src":"erlang",escript:"erlang",hrl:"erlang",xrl:"erlang",yrl:"erlang",excel:"excel",xls:"excel",xlsx:"excel",fix:"fix",flix:"flix",f90:"fortran",f:"fortran",f03:"fortran",f08:"fortran",f77:"fortran",f95:"fortran",for:"fortran",fpp:"fortran",fs:"fsharp",fsx:"fsharp",gams:"gams",gms:"gams",gauss:"gauss",gss:"gauss",gcode:"gcode",nc:"gcode",gherkin:"gherkin",glsl:"glsl",fp:"glsl",frag:"glsl",frg:"glsl",fsh:"glsl",fshader:"glsl",geo:"glsl",geom:"glsl",glslv:"glsl",gshader:"glsl",shader:"glsl",tesc:"glsl",tese:"glsl",vert:"glsl",vrx:"glsl",vsh:"glsl",vshader:"glsl",gml:"gml",go:"go",bal:"go",golo:"golo",gololang:"golo",gradle:"gradle",groovy:"groovy",grt:"groovy",gtpl:"groovy",gvy:"groovy",haml:"haml","haml.deface":"haml",handlebars:"handlebars",hbs:"handlebars","html.hbs":"handlebars","html.handlebars":"handlebars",hs:"haskell",hsc:"haskell",idr:"haskell",purs:"haskell",hx:"haxe",hxsl:"haxe",hsp:"hsp",htmlbars:"htmlbars",http:"http",https:"http",hy:"hy",inform7:"inform7",i7:"inform7",ini:"ini",toml:"ini",cfg:"ini",prefs:"ini",irpf90:"irpf90",isbl:"isbl",java:"java",jsp:"java",js:"javascript",jsx:"javascript",_js:"javascript",bones:"javascript",es:"javascript",es6:"javascript",gs:"javascript",jake:"javascript",jsb:"javascript",jscad:"javascript",jsfl:"javascript",jsm:"javascript",jss:"javascript",mjs:"javascript",njs:"javascript",pac:"javascript",sjs:"javascript",ssjs:"javascript",xsjs:"javascript",xsjslib:"javascript",cfc:"javascript","jboss-cli":"jboss-cli",json:"json",avsc:"json",geojson:"json",gltf:"json","JSON-tmLanguage":"json",jsonl:"json",tfstate:"json","tfstate.backup":"json",topojson:"json",webapp:"json",webmanifest:"json",jl:"julia","julia-repl":"julia-repl",kt:"kotlin",ktm:"kotlin",kts:"kotlin",lasso:"lasso",lassoscript:"lasso",tex:"latex",ldif:"ldif",leaf:"leaf",less:"less",lisp:"lisp",factor:"lisp",livecodeserver:"livecodeserver",ls:"livescript",_ls:"livescript",llvm:"llvm",lsl:"lsl",lua:"lua",nse:"lua",p8:"lua",pd_lua:"lua",rbxs:"lua",wlua:"lua",mak:"makefile",make:"makefile",mk:"makefile",mkfile:"makefile",mathematica:"mathematica",mma:"mathematica",wl:"mathematica",matlab:"matlab",maxima:"maxima",mel:"mel",mercury:"mercury",mipsasm:"mipsasm",miz:"mizar",voc:"mizar",al:"perl",cgi:"perl",fcgi:"perl",perl:"perl",ph:"perl",plx:"perl",pl:"perl",pm:"perl",psgi:"perl",t:"perl",mojolicious:"mojolicious",monkey:"monkey",monkey2:"monkey",moonscript:"moonscript",moon:"moonscript",n1ql:"n1ql",nginxconf:"nginx",nim:"nim",nimrod:"nim",nix:"nix",nsi:"nsis",nsh:"nsis",m:"objectivec",objc:"objectivec",mm:"objectivec","obj-c":"objectivec","obj-c++":"objectivec","objective-c++":"objectivec",fun:"ocaml",sig:"ocaml",ml:"ocaml",mli:"ocaml",eliom:"ocaml",eliomi:"ocaml",ml4:"ocaml",mll:"ocaml",mly:"ocaml",openscad:"openscad",oxygene:"oxygene",parser3:"parser3",pf:"pf","pf.conf":"pf",pgsql:"pgsql",postgres:"pgsql",postgresql:"pgsql",php:"php",aw:"php",ctp:"php",inc:"php",php3:"php",php4:"php",php5:"php",phps:"php",phpt:"php","php-template":"php-template",plaintext:"plaintext",txt:"plaintext",text:"plaintext",pony:"pony",ps:"powershell",ps1:"powershell",psd1:"powershell",psm1:"powershell",pde:"processing",profile:"profile",pro:"prolog",prolog:"prolog",yap:"prolog",properties:"properties",proto:"protobuf",puppet:"puppet",pp:"puppet",purebasic:"purebasic",py:"python",bzl:"python",gyp:"python",gypi:"python",lmi:"python",py3:"python",pyde:"python",pyi:"python",pyp:"python",pyt:"python",pyw:"python",rpy:"python",tac:"python",wsgi:"python",xpy:"python","python-repl":"python-repl",pycon:"python-repl",q:"q",k:"q",kdb:"q",qml:"qml",r:"r",rd:"r",rsx:"r",reasonml:"reasonml",re:"reasonml",rib:"rib",roboconf:"roboconf",graph:"roboconf",instances:"roboconf",routeros:"routeros",rsl:"rsl",ruleslanguage:"ruleslanguage",rs:"rust","rs.in":"rust",sas:"sas",scala:"scala",kojo:"scala",sbt:"scala",sc:"scala",scm:"scheme",sch:"scheme",sld:"scheme",sls:"scheme",sps:"scheme",ss:"scheme",rkt:"scheme",scilab:"scilab",scss:"scss",shell:"shell",smali:"smali",st:"smalltalk",sml:"sml",sqf:"sqf",sql:"sql",cql:"sql",ddl:"sql",mysql:"sql",prc:"sql",tab:"sql",udf:"sql",viw:"sql",stan:"stan",stanfuncs:"stan",stata:"stata",step21:"step21",step:"step21",stp:"step21",styl:"stylus",subunit:"subunit",swift:"swift",taggerscript:"taggerscript",yml:"yaml",mir:"yaml",reek:"yaml",rviz:"yaml","sublime-syntax":"yaml",syntax:"yaml",yaml:"yaml","yaml-tmlanguage":"yaml","yml.mysql":"yaml",tap:"tap",tcl:"tcl",adp:"tcl",tm:"tcl",thrift:"thrift",tp:"tp",twig:"twig",craftcms:"twig",ts:"typescript",tsx:"typescript",vala:"vala",vbnet:"vbnet",vb:"vbnet",vbscript:"vbscript",vbs:"vbscript","vbscript-html":"vbscript-html",v:"verilog",veo:"verilog",vhdl:"vhdl",vhd:"vhdl",vhf:"vhdl",vhi:"vhdl",vho:"vhdl",vhs:"vhdl",vht:"vhdl",vhw:"vhdl",vim:"vim",x86asm:"x86asm",xl:"xl",xquery:"xquery",xpath:"xquery",xq:"xquery",zephir:"zephir",zep:"zephir"};function l(e){var t;return null!==(t=s[e])&&void 0!==t?t:"plaintext"}t.getLanguage=l},49982:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.hljs=void 0;var i=r(n(18313)),o=r(n(7829)),a=r(n(60081)),s=r(n(41921)),l=r(n(68532)),c=r(n(24997)),u=r(n(31016)),d=r(n(29490)),h=r(n(30205)),p=r(n(59618)),f=r(n(21871)),m=r(n(8211)),g=r(n(97295)),v=r(n(19069)),y=r(n(86072)),b=r(n(69957)),_=r(n(65256)),w=r(n(89038)),E=r(n(99269)),S=r(n(1176)),x=r(n(53496)),k=r(n(62673)),A=r(n(25028)),N=r(n(26374)),T=r(n(87724)),C=r(n(50862)),R=r(n(36022)),O=r(n(39797)),I=r(n(52912)),D=r(n(8363)),L=r(n(53535)),P=r(n(606)),M=r(n(99626)),F=r(n(36058)),B=r(n(25023)),$=r(n(59732)),j=r(n(37674)),U=r(n(37243)),V=r(n(3564)),K=r(n(44503)),H=r(n(96511)),G=r(n(14171)),z=r(n(89230)),X=r(n(32772)),q=r(n(66556)),W=r(n(19238)),Y=r(n(15562)),Q=r(n(78802)),J=r(n(42628)),Z=r(n(62383)),ee=r(n(36145)),te=r(n(2613));i.default.registerLanguage("cpp",o.default),i.default.registerLanguage("xml",a.default),i.default.registerLanguage("awk",s.default),i.default.registerLanguage("bash",l.default),i.default.registerLanguage("c",c.default),i.default.registerLanguage("clojure",u.default),i.default.registerLanguage("crystal",d.default),i.default.registerLanguage("csharp",h.default),i.default.registerLanguage("csp",p.default),i.default.registerLanguage("css",f.default),i.default.registerLanguage("markdown",m.default),i.default.registerLanguage("dart",g.default),i.default.registerLanguage("diff",v.default),i.default.registerLanguage("dockerfile",y.default),i.default.registerLanguage("elixir",b.default),i.default.registerLanguage("elm",_.default),i.default.registerLanguage("ruby",w.default),i.default.registerLanguage("erlang",E.default),i.default.registerLanguage("fsharp",S.default),i.default.registerLanguage("go",x.default),i.default.registerLanguage("gradle",k.default),i.default.registerLanguage("groovy",A.default),i.default.registerLanguage("handlebars",N.default),i.default.registerLanguage("haskell",T.default),i.default.registerLanguage("ini",C.default),i.default.registerLanguage("java",R.default),i.default.registerLanguage("javascript",O.default),i.default.registerLanguage("json",I.default),i.default.registerLanguage("kotlin",D.default),i.default.registerLanguage("less",L.default),i.default.registerLanguage("lisp",P.default),i.default.registerLanguage("lua",M.default),i.default.registerLanguage("makefile",F.default),i.default.registerLanguage("perl",B.default),i.default.registerLanguage("nginx",$.default),i.default.registerLanguage("objectivec",j.default),i.default.registerLanguage("pgsql",U.default),i.default.registerLanguage("php",V.default),i.default.registerLanguage("plaintext",K.default),i.default.registerLanguage("powershell",H.default),i.default.registerLanguage("properties",G.default),i.default.registerLanguage("protobuf",z.default),i.default.registerLanguage("python",X.default),i.default.registerLanguage("rust",q.default),i.default.registerLanguage("scala",W.default),i.default.registerLanguage("scss",Y.default),i.default.registerLanguage("shell",Q.default),i.default.registerLanguage("sql",J.default),i.default.registerLanguage("swift",Z.default),i.default.registerLanguage("yaml",ee.default),i.default.registerLanguage("typescript",te.default),t.hljs=i.default},91569:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hashCode=t.unifyPath=t.escapeForRegExp=void 0;var n=["-","[","]","/","{","}","(",")","*","+","?",".","\\","^","$","|"],r=RegExp("["+n.join("\\")+"]","g");function i(e){return e.replace(r,"\\$&")}function o(e){return e?e.replace(/\\/g,"/"):e}function a(e){var t,n,r,i=0;for(t=0,r=e.length;t"):i.removed&&t.push(""),t.push(r(i.value)),i.added?t.push(""):i.removed&&t.push("")}return t.join("")}function r(e){var t=e;return t=t.replace(/&/g,"&"),t=t.replace(//g,">"),t=t.replace(/"/g,"""),t}Object.defineProperty(t,"__esModule",{value:!0}),t.convertChangesToXML=n},54782:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.diffArrays=a,t.arrayDiff=void 0;var r=i(n(31350));function i(e){return e&&e.__esModule?e:{default:e}}var o=new r["default"];function a(e,t,n){return o.diff(e,t,n)}t.arrayDiff=o,o.tokenize=function(e){return e.slice()},o.join=o.removeEmpty=function(e){return e}},31350:function(e,t){"use strict";function n(){}function r(e,t,n,r,i){for(var o=0,a=t.length,s=0,l=0;oe.length?n:e})),c.value=e.join(d)}else c.value=e.join(n.slice(s,s+c.count));s+=c.count,c.added||(l+=c.count)}}var h=t[a-1];return a>1&&"string"===typeof h.value&&(h.added||h.removed)&&e.equals("",h.value)&&(t[a-2].value+=h.value,t.pop()),t}function i(e){return{newPos:e.newPos,components:e.components.slice(0)}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=n,n.prototype={diff:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n.callback;"function"===typeof n&&(o=n,n={}),this.options=n;var a=this;function s(e){return o?(setTimeout((function(){o(void 0,e)}),0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e)),t=this.removeEmpty(this.tokenize(t));var l=t.length,c=e.length,u=1,d=l+c;n.maxEditLength&&(d=Math.min(d,n.maxEditLength));var h=[{newPos:-1,components:[]}],p=this.extractCommon(h[0],t,e,0);if(h[0].newPos+1>=l&&p+1>=c)return s([{value:this.join(t),count:t.length}]);function f(){for(var n=-1*u;n<=u;n+=2){var o=void 0,d=h[n-1],p=h[n+1],f=(p?p.newPos:0)-n;d&&(h[n-1]=void 0);var m=d&&d.newPos+1=l&&f+1>=c)return s(r(a,o.components,t,e,a.useLongestToken));h[n]=o}else h[n]=void 0}u++}if(o)(function e(){setTimeout((function(){if(u>d)return o();f()||e()}),0)})();else while(u<=d){var m=f();if(m)return m}},pushComponent:function(e,t,n){var r=e[e.length-1];r&&r.added===t&&r.removed===n?e[e.length-1]={count:r.count+1,added:t,removed:n}:e.push({count:1,added:t,removed:n})},extractCommon:function(e,t,n,r){var i=t.length,o=n.length,a=e.newPos,s=a-r,l=0;while(a+12&&void 0!==arguments[2]?arguments[2]:{};if("string"===typeof t&&(t=(0,r.parsePatch)(t)),Array.isArray(t)){if(t.length>1)throw new Error("applyPatch only works with a single input.");t=t[0]}var o,a,s=e.split(/\r\n|[\n\v\f\r\x85]/),l=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],c=t.hunks,u=n.compareLine||function(e,t,n,r){return t===r},d=0,h=n.fuzzFactor||0,p=0,f=0;function m(e,t){for(var n=0;n0?r[0]:" ",o=r.length>0?r.substr(1):r;if(" "===i||"-"===i){if(!u(t+1,s[t],i,o)&&(d++,d>h))return!1;t++}}return!0}for(var g=0;g0?N[0]:" ",C=N.length>0?N.substr(1):N,R=x.linedelimiters[A];if(" "===T)k++;else if("-"===T)s.splice(k,1),l.splice(k,1);else if("+"===T)s.splice(k,0,C),l.splice(k,0,R),k++;else if("\\"===T){var O=x.lines[A-1]?x.lines[A-1][0]:null;"+"===O?o=!0:"-"===O&&(a=!0)}}}if(o)while(!s[s.length-1])s.pop(),l.pop();else a&&(s.push(""),l.push("\n"));for(var I=0;Ie.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?y(s.lines.slice(-l.context)):[],d-=p.length,h-=p.length)}(a=p).push.apply(a,i(r.map((function(e){return(t.added?"+":"-")+e})))),t.added?m+=r.length:f+=r.length}else{if(d)if(r.length<=2*l.context&&e=c.length-2&&r.length<=l.context){var w=/\n$/.test(n),E=/\n$/.test(o),S=0==r.length&&p.length>_.oldLines;!w&&S&&n.length>0&&p.splice(_.oldLines,0,"\\ No newline at end of file"),(w||S)&&E||p.push("\\ No newline at end of file")}u.push(_),d=0,h=0,p=[]}f+=r.length,m+=r.length}},v=0;ve.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{},n=e.split(/\r\n|[\n\v\f\r\x85]/),r=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],i=[],o=0;function a(){var e={};i.push(e);while(oe.length)return!1;for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?n-1:0),i=1;i/gm),J=v(/\${[\w\W]*}/gm),Z=v(/^data-[\-\w.\u00B7-\uFFFF]/),ee=v(/^aria-[\-\w]+$/),te=v(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ne=v(/^(?:\w+script|data):/i),re=v(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ie=v(/^html$/i),oe=v(/^[a-z][.\w]*(-[.\w]+)+$/i),ae=function(){return"undefined"===typeof window?null:window},se=function(t,n){if("object"!==e(t)||"function"!==typeof t.createPolicy)return null;var i=null,o="data-tt-policy-suffix";n.currentScript&&n.currentScript.hasAttribute(o)&&(i=n.currentScript.getAttribute(o));var a="dompurify"+(i?"#"+i:"");try{return t.createPolicy(a,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(s){return r.warn("TrustedTypes policy "+a+" could not be created."),null}};function le(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ae(),n=function(e){return le(e)};if(n.version="2.5.4",n.removed=[],!t||!t.document||9!==t.document.nodeType)return n.isSupported=!1,n;var r=t.document,i=t.document,a=t.DocumentFragment,s=t.HTMLTemplateElement,l=t.Node,c=t.Element,u=t.NodeFilter,d=t.NamedNodeMap,h=void 0===d?t.NamedNodeMap||t.MozNamedAttrMap:d,p=t.HTMLFormElement,f=t.DOMParser,m=t.trustedTypes,v=c.prototype,y=B(v,"cloneNode"),b=B(v,"nextSibling"),_=B(v,"childNodes"),w=B(v,"parentNode");if("function"===typeof s){var L=i.createElement("template");L.content&&L.content.ownerDocument&&(i=L.content.ownerDocument)}var P=se(m,r),ce=P?P.createHTML(""):"",ue=i,de=ue.implementation,he=ue.createNodeIterator,pe=ue.createDocumentFragment,fe=ue.getElementsByTagName,me=r.importNode,ge={};try{ge=F(i).documentMode?i.documentMode:{}}catch(Bt){}var ve={};n.isSupported="function"===typeof w&&de&&void 0!==de.createHTMLDocument&&9!==ge;var ye,be,_e=Y,we=Q,Ee=J,Se=Z,xe=ee,ke=ne,Ae=re,Ne=oe,Te=te,Ce=null,Re=M({},[].concat(o($),o(j),o(U),o(K),o(G))),Oe=null,Ie=M({},[].concat(o(z),o(X),o(q),o(W))),De=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Le=null,Pe=null,Me=!0,Fe=!0,Be=!1,$e=!0,je=!1,Ue=!0,Ve=!1,Ke=!1,He=!1,Ge=!1,ze=!1,Xe=!1,qe=!0,We=!1,Ye="user-content-",Qe=!0,Je=!1,Ze={},et=null,tt=M({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),nt=null,rt=M({},["audio","video","img","source","image","track"]),it=null,ot=M({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),at="http://www.w3.org/1998/Math/MathML",st="http://www.w3.org/2000/svg",lt="http://www.w3.org/1999/xhtml",ct=lt,ut=!1,dt=null,ht=M({},[at,st,lt],A),pt=["application/xhtml+xml","text/html"],ft="text/html",mt=null,gt=255,vt=i.createElement("form"),yt=function(e){return e instanceof RegExp||e instanceof Function},bt=function(t){mt&&mt===t||(t&&"object"===e(t)||(t={}),t=F(t),ye=ye=-1===pt.indexOf(t.PARSER_MEDIA_TYPE)?ft:t.PARSER_MEDIA_TYPE,be="application/xhtml+xml"===ye?A:k,Ce="ALLOWED_TAGS"in t?M({},t.ALLOWED_TAGS,be):Re,Oe="ALLOWED_ATTR"in t?M({},t.ALLOWED_ATTR,be):Ie,dt="ALLOWED_NAMESPACES"in t?M({},t.ALLOWED_NAMESPACES,A):ht,it="ADD_URI_SAFE_ATTR"in t?M(F(ot),t.ADD_URI_SAFE_ATTR,be):ot,nt="ADD_DATA_URI_TAGS"in t?M(F(rt),t.ADD_DATA_URI_TAGS,be):rt,et="FORBID_CONTENTS"in t?M({},t.FORBID_CONTENTS,be):tt,Le="FORBID_TAGS"in t?M({},t.FORBID_TAGS,be):{},Pe="FORBID_ATTR"in t?M({},t.FORBID_ATTR,be):{},Ze="USE_PROFILES"in t&&t.USE_PROFILES,Me=!1!==t.ALLOW_ARIA_ATTR,Fe=!1!==t.ALLOW_DATA_ATTR,Be=t.ALLOW_UNKNOWN_PROTOCOLS||!1,$e=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,je=t.SAFE_FOR_TEMPLATES||!1,Ue=!1!==t.SAFE_FOR_XML,Ve=t.WHOLE_DOCUMENT||!1,Ge=t.RETURN_DOM||!1,ze=t.RETURN_DOM_FRAGMENT||!1,Xe=t.RETURN_TRUSTED_TYPE||!1,He=t.FORCE_BODY||!1,qe=!1!==t.SANITIZE_DOM,We=t.SANITIZE_NAMED_PROPS||!1,Qe=!1!==t.KEEP_CONTENT,Je=t.IN_PLACE||!1,Te=t.ALLOWED_URI_REGEXP||Te,ct=t.NAMESPACE||lt,De=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&yt(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(De.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&yt(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(De.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"===typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(De.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),je&&(Fe=!1),ze&&(Ge=!0),Ze&&(Ce=M({},o(G)),Oe=[],!0===Ze.html&&(M(Ce,$),M(Oe,z)),!0===Ze.svg&&(M(Ce,j),M(Oe,X),M(Oe,W)),!0===Ze.svgFilters&&(M(Ce,U),M(Oe,X),M(Oe,W)),!0===Ze.mathMl&&(M(Ce,K),M(Oe,q),M(Oe,W))),t.ADD_TAGS&&(Ce===Re&&(Ce=F(Ce)),M(Ce,t.ADD_TAGS,be)),t.ADD_ATTR&&(Oe===Ie&&(Oe=F(Oe)),M(Oe,t.ADD_ATTR,be)),t.ADD_URI_SAFE_ATTR&&M(it,t.ADD_URI_SAFE_ATTR,be),t.FORBID_CONTENTS&&(et===tt&&(et=F(et)),M(et,t.FORBID_CONTENTS,be)),Qe&&(Ce["#text"]=!0),Ve&&M(Ce,["html","head","body"]),Ce.table&&(M(Ce,["tbody"]),delete Le.tbody),g&&g(t),mt=t)},_t=M({},["mi","mo","mn","ms","mtext"]),wt=M({},["foreignobject","annotation-xml"]),Et=M({},["title","style","font","a","script"]),St=M({},j);M(St,U),M(St,V);var xt=M({},K);M(xt,H);var kt=function(e){var t=w(e);t&&t.tagName||(t={namespaceURI:ct,tagName:"template"});var n=k(e.tagName),r=k(t.tagName);return!!dt[e.namespaceURI]&&(e.namespaceURI===st?t.namespaceURI===lt?"svg"===n:t.namespaceURI===at?"svg"===n&&("annotation-xml"===r||_t[r]):Boolean(St[n]):e.namespaceURI===at?t.namespaceURI===lt?"math"===n:t.namespaceURI===st?"math"===n&&wt[r]:Boolean(xt[n]):e.namespaceURI===lt?!(t.namespaceURI===st&&!wt[r])&&(!(t.namespaceURI===at&&!_t[r])&&(!xt[n]&&(Et[n]||!St[n]))):!("application/xhtml+xml"!==ye||!dt[e.namespaceURI]))},At=function(e){x(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(Bt){try{e.outerHTML=ce}catch(Bt){e.remove()}}},Nt=function(e,t){try{x(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(Bt){x(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!Oe[e])if(Ge||ze)try{At(t)}catch(Bt){}else try{t.setAttribute(e,"")}catch(Bt){}},Tt=function(e){var t,n;if(He)e=""+e;else{var r=N(e,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===ye&&ct===lt&&(e=''+e+"");var o=P?P.createHTML(e):e;if(ct===lt)try{t=(new f).parseFromString(o,ye)}catch(Bt){}if(!t||!t.documentElement){t=de.createDocument(ct,"template",null);try{t.documentElement.innerHTML=ut?ce:o}catch(Bt){}}var a=t.body||t.documentElement;return e&&n&&a.insertBefore(i.createTextNode(n),a.childNodes[0]||null),ct===lt?fe.call(t,Ve?"html":"body")[0]:Ve?t.documentElement:a},Ct=function(e){return he.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null,!1)},Rt=function(e){return e instanceof p&&("undefined"!==typeof e.__depth&&"number"!==typeof e.__depth||"undefined"!==typeof e.__removalCount&&"number"!==typeof e.__removalCount||"string"!==typeof e.nodeName||"string"!==typeof e.textContent||"function"!==typeof e.removeChild||!(e.attributes instanceof h)||"function"!==typeof e.removeAttribute||"function"!==typeof e.setAttribute||"string"!==typeof e.namespaceURI||"function"!==typeof e.insertBefore||"function"!==typeof e.hasChildNodes)},Ot=function(t){return"object"===e(l)?t instanceof l:t&&"object"===e(t)&&"number"===typeof t.nodeType&&"string"===typeof t.nodeName},It=function(e,t,r){ve[e]&&E(ve[e],(function(e){e.call(n,t,r,mt)}))},Dt=function(e){var t;if(It("beforeSanitizeElements",e,null),Rt(e))return At(e),!0;if(O(/[\u0080-\uFFFF]/,e.nodeName))return At(e),!0;var r=be(e.nodeName);if(It("uponSanitizeElement",e,{tagName:r,allowedTags:Ce}),e.hasChildNodes()&&!Ot(e.firstElementChild)&&(!Ot(e.content)||!Ot(e.content.firstElementChild))&&O(/<[/\w]/g,e.innerHTML)&&O(/<[/\w]/g,e.textContent))return At(e),!0;if("select"===r&&O(/