mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2025-12-14 21:51:43 +00:00
135 lines
2.7 MiB
135 lines
2.7 MiB
(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<arguments.length;r++){const e=arguments[r];if(null!=e)for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},writable:!0,configurable:!0}),(()=>{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<i.length;a++){const s=i[a];if(t[s]){const i=Array.isArray(t[s])?t[s]:[t[s]];for(let t=0;t<i.length;t++){const a=i[t];if(a&&(o="hash"===s?!!e.hash&&e.hash.includes(a):"product"===s?u(e,a):"mode"===s?d(e,a):"resource"===s?r[s]&&"*"===a||a===r[s]:"context"===s?(0,c.n4)(a,n):"queryParam"===s?(0,c.n4)(a,e.query):"path"===s&&a.urlPath?a.endsWith?e.path.endsWith(a.urlPath):!Object.keys(a).includes("exact")||a.exact?a.urlPath===e.path:e.path.includes(a.urlPath):a===r[s]),o)break}if(!o)break}}return o}function p(e,t,n,r,s=e,l){const c=[];if(e.$plugin?.getUIConfig){const u=e.$plugin.getUIConfig(t,n);u.forEach(((e,d)=>{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<t.length-1?(e="meta"===e?"⌘":(0,a.TF)(e),n+=`${e}`,n+="-"):n+=`${e.toUpperCase()}`})),u[d].shortcutLabel=()=>`(${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<t&&i(e,t)}))},onFocus(){return this.$emit("on-focus"),this.onFocusLabeled()},onFocusLabeled(){this.raised=!0,this.focused=!0},onBlur(){return this.$emit("on-blur"),this.onBlurLabeled()},onBlurLabeled(){this.focused=!1,this.value||(this.raised=!1),this.blurred=Date.now()}}}},63140:function(e,t,n){"use strict";n.r(t);var r=n(75672),i=n(4284);describe("class Deployment",(()=>{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;n<t.length;n++){let i=e.indexOf(t[n]);while(-1!==i)r.push(i),i=e.indexOf(t[n],i+1)}if(!r.length)return e;r=r.sort(((e,t)=>e-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<e.length;r++){const i=e[r],a=t.findIndex(((e,t)=>(0,o.n4)(e,i)&&!n[t]));if(!(a>=0))return!1;n[a]=!0}}else for(let r=0;r<e.length;r++)if(!(0,o.n4)(e[r],t[r]))return!1;return!0}function b(e){const t=[];return c(t,e),t}function _(e){const t=e.reduce(((e,t)=>(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<s.GC_RE_RUN_GAP)return void this.debugLog("Skipping (running or recently run)",this.gcLastRun?new Date(this.gcLastRun):"running");this.gcLastRun=null;const r={};try{const{getters:o,rootState:a,dispatch:s}=e;if(!a.clusterReady)return this.debugLog("Skipping (cluster not ready)"),void(this.gcLastRun=(new Date).getTime());this.debugLog("------ Started ------");const l=this.getUiPerfGarbageCollection(a);if(!l)return;const c=1e3*l.ageThreshold,u=l.countThreshold;this.debugLog(`Max Age: ${c}. Max Count: ${u}`);const d=e.state.config.namespace;Object.entries(this.lastAccessedCache[d]||{}).forEach((([a,l])=>{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.lastRouteChange<l)return void this.debugLog(`${a}: Skipping (used in current route/page)`);const h=null===(d=o.all(i.i2)[0].counts[a])||void 0===d?void 0:d.summary.count,p=null!==h&&void 0!==h?h:0;void 0===p||p<u?this.debugLog(`${a}: Skipping (too few of resource)`):(this.debugLog(`${a}: Removing from store`),s("forgetType",a),r[a]=p)})),this.gcLastRun=(new Date).getTime()}catch(o){this.debugLog(": Error",o),this.gcLastRun=(new Date).getTime()}Object.keys(r).length>0&&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<e.length;r++){const i=e[r];if(t.includes(i))return!0;for(let e=0;e<n.length;e++){const t=`${n[e]}`,r=`${i}`;if(r!==t&&r.endsWith(t))return!0}}return!1}function s(e){const t=s.options,n=t.parser[t.strictMode?"strict":"loose"].exec(e);if(!n)throw new Error(`Cannot parse as uri: ${e}`);const r={};let i=14;while(i--)r[t.key[i]]=n[i]||"";return r.query={},r.queryStr.replace(t.q.parser,((e,n,i)=>(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)<Number(n)?e("validation.minValue",{key:t,min:n}):void 0,m=n=>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.length<Number(n)?e("validation.minLength",{key:t,min:n}):void 0,_=n=>r=>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<i.length;e++){const t=y(i[e],a);if(t)return t}}},W=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;t<this.options.length;t++){const n=this.options[t];"object"===typeof n&&n?e.push(n):this.labels?e.push({label:this.labels[t],value:n}):e.push({label:n,value:n})}return e},isView(){return this.mode===l.nW},isDisabled(){return this.disabled||this.isView}},methods:{clickNext(e){const t=this.normalizedOptions,n=t.find((e=>e.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+(t<n?6:0);break;case t:a=(n-e)/l+2;break;case n:a=(e-t)/l+4;break}a/=6}return{h:100*a,s:100*s,l:100*o}}clamp(e){return e>255?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<r.loss&&(r=o)}return r}solveNarrow(e){const t=e.loss,n=2,r=t+1,i=[.25*r,.25*r,r,.25*r,.2*r,.2*r];return this.spsa(t,i,n,e.values,500)}spsa(e,t,n,r,i){const o=1,a=.16666666666666666;let s=null,l=1/0;const c=new Array(6),u=new Array(6),d=new Array(6);for(let p=0;p<i;p++){const i=n/Math.pow(p+1,a);for(let e=0;e<6;e++)c[e]=Math.random()>.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);m<l&&(s=r.slice(0),l=m)}return{values:s,loss:l};function h(e,t){let n=100;return 2===t?n=7500:4!==t&&5!==t||(n=200),3===t?e>n?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<Object.keys(document.styleSheets).length;l++){let r=!1;const i=document.styleSheets[l];if(i&&i.cssRules)for(let o=0;o<Object.keys(i.cssRules).length;o++){const a=i.cssRules[o];if(a.selectorText&&("light"===e&&(a.selectorText.includes("body")||a.selectorText.includes("BODY"))&&a.selectorText.includes(".theme-light")&&a.style.cssText.includes("--link:")||"dark"===e&&a.selectorText.includes(".theme-dark"))){t=(0,g.yq)(a.style.getPropertyValue(b[this.color].color).trim()),n=(0,g.yq)(a.style.getPropertyValue(b[this.color].hover).trim()),t=(0,g.Tv)(t),n=(0,g.Tv)(n),r=!0;break}}if(r)break}const r=(0,g.qe)(t),i=(0,g.qe)(n),o=`${r.r}-${r.g}-${r.b}`,a=`${i.r}-${i.g}-${i.b}`,s=`svg-icon-${o}-${a}`;if(!y[s]){let e=v[n];if(!e){const t=new m(i),r=t.solve();e=r?.filter,v[n]=e}let o=v[t];if(!o){const e=new m(r),n=e.solve();o=n?.filter,v[t]=o}const a=`\n img.${s} {\n ${o};\n }\n img.${s}:hover {\n ${e};\n }\n button:hover > 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<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"===typeof e.getBoundingClientRect)}))}function re(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,i=t.defaultOptions,o=void 0===i?te:i;return function(e,t,n){void 0===n&&(n=o);var i={placement:"bottom",orderedModifiers:[],options:Object.assign(Object.assign({},te),o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},a=[],s=!1,l={state:i,setOptions:function(n){d(),i.options=Object.assign(Object.assign(Object.assign({},o),i.options),n),i.scrollParents={reference:c(e)?E(e):e.contextElement?E(e.contextElement):[],popper:E(t)};var a=J(ee([].concat(r,i.options.modifiers)));return i.orderedModifiers=a.filter((function(e){return e.enabled})),u(),l.update()},forceUpdate:function(){if(!s){var e=i.elements,t=e.reference,n=e.popper;if(ne(t,n)){i.rects={reference:y(t,A(n),"fixed"===i.options.strategy),popper:b(n)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach((function(e){return i.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<i.orderedModifiers.length;r++)if(!0!==i.reset){var o=i.orderedModifiers[r],a=o.fn,c=o.options,u=void 0===c?{}:c,d=o.name;"function"===typeof a&&(i=a({state:i,options:u,name:d,instance:l})||i)}else i.reset=!1,r=-1}}},update:Z((function(){return new Promise((function(e){l.forceUpdate(),e(i)}))})),destroy:function(){d(),s=!0}};if(!ne(e,t))return l;function u(){i.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"===typeof o){var s=o({state:i,name:t,instance:l,options:r}),c=function(){};a.push(s||c)}}))}function d(){a.forEach((function(e){return e()})),a=[]}return l.setOptions(n).then((function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)})),l}}var ie={passive:!0};function oe(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=void 0===i||i,a=r.resize,l=void 0===a||a,c=s(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach((function(e){e.addEventListener("scroll",n.update,ie)})),l&&c.addEventListener("resize",n.update,ie),function(){o&&u.forEach((function(e){e.removeEventListener("scroll",n.update,ie)})),l&&c.removeEventListener("resize",n.update,ie)}}var ae={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:oe,data:{}};function se(e){return e.split("-")[0]}function le(e){return e.split("-")[1]}function ce(e){return["top","bottom"].indexOf(e)>=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=i<r?`${r}px`:"min-content";const o=nt(t.$refs.toggle,e,{placement:this.placement||"bottom-start",modifiers:[{name:"offset",options:{offset:[-2,2]}},{name:"toggleClass",enabled:!0,phase:"write",fn({state:e}){t.$el.setAttribute("x-placement",e.placement)}}]});return()=>o.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;e<this.activeStepIndex;e++){const t=this.visibleSteps[e];if(!t)break;if(!t.hidden)return!0}return!1},canPrevious(){return!this.activeStep?.previousButton?.disable&&(this.activeStepIndex>1||this.editFirstStep)},canNext(){return this.activeStepIndex<this.visibleSteps.length-1&&this.activeStep.ready},readySteps(){return this.visibleSteps.filter((e=>e.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<t;n++)if(!1===this.visibleSteps[n].ready)return!1;return!0}}};n(6938);const $e=(0,ce.A)(Be,[["render",Pe],["__scopeId","data-v-5d682fe4"]]);var je=$e,Ue=n(9776);const Ve="show-preview-yaml";var Ke={name:"CruResource",emits:["select-type","error","cancel","finish"],components:{AsyncButton:G.A,Banner:H.l,CruResourceFooter:me,ResourceYaml:K.A,Wizard:je},props:{doneRoute:{type:[String,Object],default:null},cancelEvent:{type:Boolean,default:!1},showCancel:{type:Boolean,default:!0},mode:{type:String,required:!0},resource:{type:[String,Object],required:!0},subtypes:{type:Array,default:()=>[]},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<o.group||a<=o.item))n.push(t[a]),a++}}else{const r=this.pagedRows;let i=r.indexOf(e),o=r.indexOf(t);[i,o]=[Math.min(i,o),Math.max(i,o)],n=r.slice(i,o+1)}return n=n.filter((e=>!this.selectedRows.includes(e))),n},groupIdx(e){const t=this.groupedRows;for(let n=0;n<t.length;n++){const r=t[n].rows;for(let t=0;t<r.length;t++)if(r[t]===e)return{group:n,item:t}}return null},toggle(e){const t=[],n=[];this.selectedRows.includes(e)?n.push(e):t.push(e),this.update(t,n)},update(e,t){t.forEach((e=>{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<t.length;e++)this.updateInput(t[e],!1,this.keyField)})),e.length&&this.$nextTick((()=>{for(let t=0;t<e.length;t++)this.updateInput(e[t],!0,this.keyField)})),this.$nextTick((()=>{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;r<t.length;r++){let i=!0,o=t[r];return"!"===o.substr(0,1)&&(i=!1,o=o.substr(1)),!o||_t(e,o,n)===i}}function _t(e,t,n){for(let r of e){if(!r)continue;if("function"!==typeof r&&r.includes(mt)&&(!n.metadata.labels||!n.metadata.labels[r.replace(mt,"")]))continue;let e,i;if("function"===typeof r)i=r(n);else if(r.includes(mt))i=n.metadata.labels[r.replace(mt,"")];else{const t=r.indexOf(":");t>0&&(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<i.length;u++){const e=i[u];e.style.display=Nt;const r=e.offsetWidth;if(s+=r+15,s>=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<this.columns.length;t++)this.columns[t].hide||e++;return this.tableActions&&e++,this.subExpandColumn&&e++,this.rowActions&&e++,e},noResults(){return!!this.searchQuery&&0===this.pagedRows.length},noRows(){return!this.noResults&&0===(this.rows||[]).length},showHeaderRow(){return this.search||this.tableActions||this.$slots["header-left"]?.()||this.$slots["header-middle"]?.()||this.$slots["header-right"]?.()},columns(){const e=this.headers.slice().filter((e=>!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<e.length;r++){const i=e[r],o=i.$el.getBoundingClientRect().y;if(o>=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<t.length;i++){const o=t[i],a=o.$el.getBoundingClientRect().y;if(a>=0&&a<=e){const e=o.liveUpdate(n);e<r&&(r=e)}}r<1&&(r=1),this._liveColumnsTimer=setTimeout((()=>this.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 <TabTitle> 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+=`<b>${t}</b>`,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<o&&(o=s,n=i)}return n},o.keyword.rgb=function(e){return r[e]},o.rgb.xyz=function(e){let t=e[0]/255,n=e[1]/255,r=e[2]/255;t=t>.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<e;i++)r[i]=Math.round(r[i]);return r};return"conversion"in e&&(t.conversion=e.conversion),t}a.forEach((e=>{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<n;r++)e[t[r]]={distance:-1,parent:null};return e}function o(e){const t=i(),n=[e];t[e].distance=0;while(n.length){const e=n.pop(),i=Object.keys(r[e]);for(let r=i.length,o=0;o<r;o++){const r=i[o],a=t[r];-1===a.distance&&(a.distance=t[e].distance+1,a.parent=e,n.unshift(r))}}return t}function a(e,t){return function(n){return t(e(n))}}function s(e,t){const n=[t[e].parent,e];let i=r[t[e].parent][e],o=t[e].parent;while(t[o].parent)n.unshift(t[o].parent),i=a(r[t[o].parent][o],i),o=t[o].parent;return i.conversion=n,i}e.exports=function(e){const t=o(e),n={},r=Object.keys(t);for(let i=r.length,o=0;o<i;o++){const e=r[o],i=t[e];null!==i.parent&&(n[e]=s(e,t))}return n}},76931:function(e){"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},43269:function(e,t,n){var r=n(76931),i=n(59975),o=Object.hasOwnProperty,a=Object.create(null);for(var s in r)o.call(r,s)&&(a[r[s]]=s);var l=e.exports={to:{},get:{}};function c(e,t,n){return Math.min(Math.max(t,e),n)}function u(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}l.get=function(e){var t,n,r=e.substring(0,3).toLowerCase();switch(r){case"hsl":t=l.get.hsl(e),n="hsl";break;case"hwb":t=l.get.hwb(e),n="hwb";break;default:t=l.get.rgb(e),n="rgb";break}return t?{model:n,value:t}:null},l.get.rgb=function(e){if(!e)return null;var t,n,i,a=/^#([a-f0-9]{3,4})$/i,s=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,l=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,u=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,d=/^(\w+)$/,h=[0,0,0,1];if(t=e.match(s)){for(i=t[2],t=t[1],n=0;n<3;n++){var p=2*n;h[n]=parseInt(t.slice(p,p+2),16)}i&&(h[3]=parseInt(i,16)/255)}else if(t=e.match(a)){for(t=t[1],i=t[3],n=0;n<3;n++)h[n]=parseInt(t[n]+t[n],16);i&&(h[3]=parseInt(i+i,16)/255)}else if(t=e.match(l)){for(n=0;n<3;n++)h[n]=parseInt(t[n+1],0);t[4]&&(t[5]?h[3]=.01*parseFloat(t[4]):h[3]=parseFloat(t[4]))}else{if(!(t=e.match(u)))return(t=e.match(d))?"transparent"===t[1]?[0,0,0,0]:o.call(r,t[1])?(h=r[t[1]],h[3]=1,h):null:null;for(n=0;n<3;n++)h[n]=Math.round(2.55*parseFloat(t[n+1]));t[4]&&(t[5]?h[3]=.01*parseFloat(t[4]):h[3]=parseFloat(t[4]))}for(n=0;n<3;n++)h[n]=c(h[n],0,255);return h[3]=c(h[3],0,1),h},l.get.hsl=function(e){if(!e)return null;var t=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,n=e.match(t);if(n){var r=parseFloat(n[4]),i=(parseFloat(n[1])%360+360)%360,o=c(parseFloat(n[2]),0,100),a=c(parseFloat(n[3]),0,100),s=c(isNaN(r)?1:r,0,1);return[i,o,a,s]}return null},l.get.hwb=function(e){if(!e)return null;var t=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,n=e.match(t);if(n){var r=parseFloat(n[4]),i=(parseFloat(n[1])%360+360)%360,o=c(parseFloat(n[2]),0,100),a=c(parseFloat(n[3]),0,100),s=c(isNaN(r)?1:r,0,1);return[i,o,a,s]}return null},l.to.hex=function(){var e=i(arguments);return"#"+u(e[0])+u(e[1])+u(e[2])+(e[3]<1?u(Math.round(255*e[3])):"")},l.to.rgb=function(){var e=i(arguments);return e.length<4||1===e[3]?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},l.to.rgb.percent=function(){var e=i(arguments),t=Math.round(e[0]/255*100),n=Math.round(e[1]/255*100),r=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+t+"%, "+n+"%, "+r+"%)":"rgba("+t+"%, "+n+"%, "+r+"%, "+e[3]+")"},l.to.hsl=function(){var e=i(arguments);return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},l.to.hwb=function(){var e=i(arguments),t="";return e.length>=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<o.length;n++)s.push(e[o[n]]);this.color=f(s)}if(s[this.model])for(c=i[this.model].channels,n=0;n<c;n++){const e=s[this.model][n];e&&(this.color[n]=e(this.color[n]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}l.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(e){let t=this.model in r.to?this:this.rgb();t=t.round("number"===typeof e?e:1);const n=1===t.valpha?t.color:[...t.color,this.valpha];return r.to[t.model](n)},percentString(e){const t=this.rgb().round("number"===typeof e?e:1),n=1===t.valpha?t.color:[...t.color,this.valpha];return r.to.rgb.percent(n)},array(){return 1===this.valpha?[...this.color]:[...this.color,this.valpha]},object(){const e={},{channels:t}=i[this.model],{labels:n}=i[this.model];for(let r=0;r<t;r++)e[n[r]]=this.color[r];return 1!==this.valpha&&(e.alpha=this.valpha),e},unitArray(){const e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,1!==this.valpha&&e.push(this.valpha),e},unitObject(){const e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,1!==this.valpha&&(e.alpha=this.valpha),e},round(e){return e=Math.max(e||0,0),new l([...this.color.map(u(e)),this.valpha],this.model)},alpha(e){return void 0!==e?new l([...this.color,Math.max(0,Math.min(1,e))],this.model):this.valpha},red:d("rgb",0,h(255)),green:d("rgb",1,h(255)),blue:d("rgb",2,h(255)),hue:d(["hsl","hsv","hsl","hwb","hcg"],0,(e=>(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<t;n++)"number"!==typeof e[n]&&(e[n]=0);return e}e.exports=l},28913: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,#__nuxt,#app,.vm-console,.vm-console>DIV,.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;s<this.length;s++){var l=this[s][0];null!=l&&(a[l]=!0)}for(var c=0;c<e.length;c++){var u=[].concat(e[c]);r&&a[u[0]]||("undefined"!==typeof o&&("undefined"===typeof u[5]||(u[1]="@layer".concat(u[5].length>0?" ".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(++t<n){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype["delete"]=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},1386:function(e,t,n){var r=n(12393),i=n(62049),o=n(7144),a=n(7452),s=n(13964);function l(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype["delete"]=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},19770:function(e,t,n){var r=n(94715),i=n(78942),o=r(i,"Map");e.exports=o},68250:function(e,t,n){var r=n(49753),i=n(5681),o=n(80088),a=n(54732),s=n(59068);function l(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype["delete"]=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},89413:function(e,t,n){var r=n(94715),i=n(78942),o=r(i,"Promise");e.exports=o},64512:function(e,t,n){var r=n(94715),i=n(78942),o=r(i,"Set");e.exports=o},23212:function(e,t,n){var r=n(68250),i=n(1877),o=n(8006);function a(e){var t=-1,n=null==e?0:e.length;this.__data__=new r;while(++t<n)this.add(e[t])}a.prototype.add=a.prototype.push=i,a.prototype.has=o,e.exports=a},51340:function(e,t,n){var r=n(1386),i=n(64103),o=n(21779),a=n(34162),s=n(7462),l=n(96638);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=i,c.prototype["delete"]=o,c.prototype.get=a,c.prototype.has=s,c.prototype.set=l,e.exports=c},65650:function(e,t,n){var r=n(78942),i=r.Symbol;e.exports=i},31623:function(e,t,n){var r=n(78942),i=r.Uint8Array;e.exports=i},19270:function(e,t,n){var r=n(94715),i=n(78942),o=r(i,"WeakMap");e.exports=o},86912:function(e){function t(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)}e.exports=t},79847:function(e){function t(e,t){var n=-1,r=null==e?0:e.length,i=0,o=[];while(++n<r){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}e.exports=t},10358:function(e,t,n){var r=n(26137),i=n(3283),o=n(53142),a=n(75853),s=n(69632),l=n(8666),c=Object.prototype,u=c.hasOwnProperty;function d(e,t){var n=o(e),c=!n&&i(e),d=!n&&!c&&a(e),h=!n&&!c&&!d&&l(e),p=n||c||d||h,f=p?r(e.length,String):[],m=f.length;for(var g in e)!t&&!u.call(e,g)||p&&("length"==g||d&&("offset"==g||"parent"==g)||h&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||s(g,m))||f.push(g);return f}e.exports=d},65111:function(e){function t(e,t){var n=-1,r=null==e?0:e.length,i=Array(r);while(++n<r)i[n]=t(e[n],n,e);return i}e.exports=t},11129:function(e){function t(e,t){var n=-1,r=t.length,i=e.length;while(++n<r)e[i+n]=t[n];return e}e.exports=t},44187:function(e){function t(e,t,n,r){var i=-1,o=null==e?0:e.length;r&&o&&(n=e[++i]);while(++i<o)n=t(n,e[i],i,e);return n}e.exports=t},36465:function(e){function t(e,t){var n=-1,r=null==e?0:e.length;while(++n<r)if(t(e[n],n,e))return!0;return!1}e.exports=t},52837:function(e){function t(e){return e.split("")}e.exports=t},39546:function(e){var t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function n(e){return e.match(t)||[]}e.exports=n},3422:function(e,t,n){var r=n(57073),i=n(46285),o=Object.prototype,a=o.hasOwnProperty;function s(e,t,n){var o=e[t];a.call(e,t)&&i(o,n)&&(void 0!==n||t in e)||r(e,t,n)}e.exports=s},97034:function(e,t,n){var r=n(46285);function i(e,t){var n=e.length;while(n--)if(r(e[n][0],t))return n;return-1}e.exports=i},57073:function(e,t,n){var r=n(72532);function i(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}e.exports=i},37250:function(e){function t(e,t,n,r){var i=e.length,o=n+(r?1:-1);while(r?o--:++o<i)if(t(e[o],o,e))return o;return-1}e.exports=t},90313:function(e,t,n){var r=n(11129),i=n(20714);function o(e,t,n,a,s){var l=-1,c=e.length;n||(n=i),s||(s=[]);while(++l<c){var u=e[l];t>0&&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&&n<o)e=e[i(t[n++])];return n&&n==o?e:void 0}e.exports=o},48244:function(e,t,n){var r=n(11129),i=n(53142);function o(e,t,n){var o=t(e);return i(e)?o:r(o,n(e))}e.exports=o},87379:function(e,t,n){var r=n(65650),i=n(8870),o=n(29005),a="[object Null]",s="[object Undefined]",l=r?r.toStringTag:void 0;function c(e){return null==e?void 0===e?s:a:l&&l in Object(e)?i(e):o(e)}e.exports=c},43636:function(e){function t(e,t){return null!=e&&t in Object(e)}e.exports=t},2478:function(e,t,n){var r=n(37250),i=n(69454),o=n(97706);function a(e,t,n){return t===t?o(e,t,n):r(e,i,n)}e.exports=a},56027:function(e,t,n){var r=n(87379),i=n(80547),o="[object Arguments]";function a(e){return i(e)&&r(e)==o}e.exports=a},94687:function(e,t,n){var r=n(90353),i=n(80547);function o(e,t,n,a,s){return e===t||(null==e||null==t||!i(e)&&!i(t)?e!==e&&t!==t:r(e,t,n,a,o,s))}e.exports=o},90353:function(e,t,n){var r=n(51340),i=n(33934),o=n(88861),a=n(31182),s=n(28486),l=n(53142),c=n(75853),u=n(8666),d=1,h="[object Arguments]",p="[object Array]",f="[object Object]",m=Object.prototype,g=m.hasOwnProperty;function v(e,t,n,m,v,y){var b=l(e),_=l(t),w=b?p:s(e),E=_?p:s(t);w=w==h?f:w,E=E==h?f:E;var S=w==f,x=E==f,k=w==E;if(k&&c(e)){if(!c(t))return!1;b=!0,S=!1}if(k&&!S)return y||(y=new r),b||u(e)?i(e,t,n,m,v,y):o(e,t,w,n,m,v,y);if(!(n&d)){var A=S&&g.call(e,"__wrapped__"),N=x&&g.call(t,"__wrapped__");if(A||N){var T=A?e.value():e,C=N?t.value():t;return y||(y=new r),v(T,C,n,m,y)}}return!!k&&(y||(y=new r),a(e,t,n,m,v,y))}e.exports=v},38330:function(e,t,n){var r=n(51340),i=n(94687),o=1,a=2;function s(e,t,n,s){var l=n.length,c=l,u=!s;if(null==e)return!c;e=Object(e);while(l--){var d=n[l];if(u&&d[2]?d[1]!==e[d[0]]:!(d[0]in e))return!1}while(++l<c){d=n[l];var h=d[0],p=e[h],f=d[1];if(u&&d[2]){if(void 0===p&&!(h in e))return!1}else{var m=new r;if(s)var g=s(p,f,h,e,t,m);if(!(void 0===g?i(f,p,o|a,s,m):g))return!1}}return!0}e.exports=s},69454:function(e){function t(e){return e!==e}e.exports=t},89624:function(e,t,n){var r=n(93655),i=n(64759),o=n(41580),a=n(64066),s=/[\\^$.*+?()[\]{}|]/g,l=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,d=c.toString,h=u.hasOwnProperty,p=RegExp("^"+d.call(h).replace(s,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function f(e){if(!o(e)||i(e))return!1;var t=r(e)?p:l;return t.test(a(e))}e.exports=f},70674:function(e,t,n){var r=n(87379),i=n(65387),o=n(80547),a="[object Arguments]",s="[object Array]",l="[object Boolean]",c="[object Date]",u="[object Error]",d="[object Function]",h="[object Map]",p="[object Number]",f="[object Object]",m="[object RegExp]",g="[object Set]",v="[object String]",y="[object WeakMap]",b="[object ArrayBuffer]",_="[object DataView]",w="[object Float32Array]",E="[object Float64Array]",S="[object Int8Array]",x="[object Int16Array]",k="[object Int32Array]",A="[object Uint8Array]",N="[object Uint8ClampedArray]",T="[object Uint16Array]",C="[object Uint32Array]",R={};function O(e){return o(e)&&i(e.length)&&!!R[r(e)]}R[w]=R[E]=R[S]=R[x]=R[k]=R[A]=R[N]=R[T]=R[C]=!0,R[a]=R[s]=R[b]=R[l]=R[_]=R[c]=R[u]=R[d]=R[h]=R[p]=R[f]=R[m]=R[g]=R[v]=R[y]=!1,e.exports=O},3334:function(e,t,n){var r=n(36526),i=n(12343),o=n(22053),a=n(53142),s=n(43282);function l(e){return"function"==typeof e?e:null==e?o:"object"==typeof e?a(e)?i(e[0],e[1]):r(e):s(e)}e.exports=l},195:function(e,t,n){var r=n(84882),i=n(98121),o=Object.prototype,a=o.hasOwnProperty;function s(e){if(!r(e))return i(e);var t=[];for(var n in Object(e))a.call(e,n)&&"constructor"!=n&&t.push(n);return t}e.exports=s},57200:function(e,t,n){var r=n(41580),i=n(84882),o=n(38546),a=Object.prototype,s=a.hasOwnProperty;function l(e){if(!r(e))return o(e);var t=i(e),n=[];for(var a in e)("constructor"!=a||!t&&s.call(e,a))&&n.push(a);return n}e.exports=l},36526:function(e,t,n){var r=n(38330),i=n(24367),o=n(23904);function a(e){var t=i(e);return 1==t.length&&t[0][2]?o(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}e.exports=a},12343:function(e,t,n){var r=n(94687),i=n(46123),o=n(27276),a=n(65187),s=n(67267),l=n(23904),c=n(66040),u=1,d=2;function h(e,t){return a(e)&&s(t)?l(c(e),t):function(n){var a=i(n,e);return void 0===a&&a===t?o(n,e):r(t,a,u|d)}}e.exports=h},90242:function(e,t,n){var r=n(35031),i=n(27276);function o(e,t){return r(e,t,(function(t,n){return i(e,n)}))}e.exports=o},35031:function(e,t,n){var r=n(57923),i=n(87655),o=n(93526);function a(e,t,n){var a=-1,s=t.length,l={};while(++a<s){var c=t[a],u=r(e,c);n(u,c)&&i(l,o(c,e),u)}return l}e.exports=a},12762:function(e){function t(e){return function(t){return null==t?void 0:t[e]}}e.exports=t},98880:function(e,t,n){var r=n(57923);function i(e){return function(t){return r(t,e)}}e.exports=i},51035:function(e){function t(e){return function(t){return null==e?void 0:e[t]}}e.exports=t},87655:function(e,t,n){var r=n(3422),i=n(93526),o=n(69632),a=n(41580),s=n(66040);function l(e,t,n,l){if(!a(e))return e;t=i(t,e);var c=-1,u=t.length,d=u-1,h=e;while(null!=h&&++c<u){var p=s(t[c]),f=n;if("__proto__"===p||"constructor"===p||"prototype"===p)return e;if(c!=d){var m=h[p];f=l?l(m,p,h):void 0,void 0===f&&(f=a(m)?m:o(t[c+1])?[]:{})}r(h,p,f),h=h[p]}return e}e.exports=l},47403:function(e,t,n){var r=n(82619),i=n(72532),o=n(22053),a=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:o;e.exports=a},73501:function(e){function t(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?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)o[r]=e[r+t];return o}e.exports=t},26137:function(e){function t(e,t){var n=-1,r=Array(e);while(++n<e)r[n]=t(n);return r}e.exports=t},52291:function(e,t,n){var r=n(65650),i=n(65111),o=n(53142),a=n(51187),s=1/0,l=r?r.prototype:void 0,c=l?l.toString:void 0;function u(e){if("string"==typeof e)return e;if(o(e))return i(e,u)+"";if(a(e))return c?c.call(e):"";var t=e+"";return"0"==t&&1/e==-s?"-0":t}e.exports=u},86403:function(e,t,n){var r=n(62945),i=/^\s+/;function o(e){return e?e.slice(0,r(e)+1).replace(i,""):e}e.exports=o},49460:function(e){function t(e){return function(t){return e(t)}}e.exports=t},3905:function(e,t,n){var r=n(65111);function i(e,t){return r(t,(function(t){return e[t]}))}e.exports=i},65568:function(e){function t(e,t){return e.has(t)}e.exports=t},93526:function(e,t,n){var r=n(53142),i=n(65187),o=n(96493),a=n(95243);function s(e,t){return r(e)?e:i(e,t)?[e]:o(a(e))}e.exports=s},28931:function(e,t,n){var r=n(73501);function i(e,t,n){var i=e.length;return n=void 0===n?i:n,!t&&n>=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<h){var b=e[g],_=t[g];if(l)var w=d?l(_,b,g,t,e,u):l(b,_,g,e,t,u);if(void 0!==w){if(w)continue;v=!1;break}if(y){if(!i(t,(function(e,t){if(!o(y,t)&&(b===e||c(b,e,n,l,u)))return y.push(t)}))){v=!1;break}}else if(b!==_&&!c(b,_,n,l,u)){v=!1;break}}return u["delete"](e),u["delete"](t),v}e.exports=l},88861:function(e,t,n){var r=n(65650),i=n(31623),o=n(46285),a=n(33934),s=n(95894),l=n(49828),c=1,u=2,d="[object Boolean]",h="[object Date]",p="[object Error]",f="[object Map]",m="[object Number]",g="[object RegExp]",v="[object Set]",y="[object String]",b="[object Symbol]",_="[object ArrayBuffer]",w="[object DataView]",E=r?r.prototype:void 0,S=E?E.valueOf:void 0;function x(e,t,n,r,E,x,k){switch(n){case w:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case _:return!(e.byteLength!=t.byteLength||!x(new i(e),new i(t)));case d:case h:case m:return o(+e,+t);case p:return e.name==t.name&&e.message==t.message;case g:case y:return e==t+"";case f:var A=s;case v:var N=r&c;if(A||(A=l),e.size!=t.size&&!N)return!1;var T=k.get(e);if(T)return T==t;r|=u,k.set(e,t);var C=a(A(e),A(t),r,E,x,k);return k["delete"](e),C;case b:if(S)return S.call(e)==S.call(t)}return!1}e.exports=x},31182:function(e,t,n){var r=n(80393),i=1,o=Object.prototype,a=o.hasOwnProperty;function s(e,t,n,o,s,l){var c=n&i,u=r(e),d=u.length,h=r(t),p=h.length;if(d!=p&&!c)return!1;var f=d;while(f--){var m=u[f];if(!(c?m in t:a.call(t,m)))return!1}var g=l.get(e),v=l.get(t);if(g&&v)return g==t&&v==e;var y=!0;l.set(e,t),l.set(t,e);var b=c;while(++f<d){m=u[f];var _=e[m],w=t[m];if(o)var E=c?o(w,_,m,t,e,l):o(_,w,m,e,t,l);if(!(void 0===E?_===w||s(_,w,n,o,l):E)){y=!1;break}b||(b="constructor"==m)}if(y&&!b){var S=e.constructor,x=t.constructor;S==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof S&&S instanceof S&&"function"==typeof x&&x instanceof x||(y=!1)}return l["delete"](e),l["delete"](t),y}e.exports=s},41439:function(e,t,n){var r=n(75857),i=n(75234),o=n(80796);function a(e){return o(i(e,void 0,r),e+"")}e.exports=a},74967:function(e,t,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},80393:function(e,t,n){var r=n(48244),i=n(77979),o=n(81211);function a(e){return r(e,o,i)}e.exports=a},93650:function(e,t,n){var r=n(48244),i=n(85832),o=n(25288);function a(e){return r(e,o,i)}e.exports=a},44700:function(e,t,n){var r=n(79067);function i(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}e.exports=i},24367:function(e,t,n){var r=n(67267),i=n(81211);function o(e){var t=i(e),n=t.length;while(n--){var o=t[n],a=e[o];t[n]=[o,a,r(a)]}return t}e.exports=o},94715:function(e,t,n){var r=n(89624),i=n(20155);function o(e,t){var n=i(e,t);return r(n)?n:void 0}e.exports=o},74784:function(e,t,n){var r=n(3766),i=r(Object.getPrototypeOf,Object);e.exports=i},8870:function(e,t,n){var r=n(65650),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;function l(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(l){}var i=a.call(e);return r&&(t?e[s]=n:delete e[s]),i}e.exports=l},77979:function(e,t,n){var r=n(79847),i=n(99306),o=Object.prototype,a=o.propertyIsEnumerable,s=Object.getOwnPropertySymbols,l=s?function(e){return null==e?[]:(e=Object(e),r(s(e),(function(t){return a.call(e,t)})))}:i;e.exports=l},85832:function(e,t,n){var r=n(11129),i=n(74784),o=n(77979),a=n(99306),s=Object.getOwnPropertySymbols,l=s?function(e){var t=[];while(e)r(t,o(e)),e=i(e);return t}:a;e.exports=l},28486:function(e,t,n){var r=n(33103),i=n(19770),o=n(89413),a=n(64512),s=n(19270),l=n(87379),c=n(64066),u="[object Map]",d="[object Object]",h="[object Promise]",p="[object Set]",f="[object WeakMap]",m="[object DataView]",g=c(r),v=c(i),y=c(o),b=c(a),_=c(s),w=l;(r&&w(new r(new ArrayBuffer(1)))!=m||i&&w(new i)!=u||o&&w(o.resolve())!=h||a&&w(new a)!=p||s&&w(new s)!=f)&&(w=function(e){var t=l(e),n=t==d?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case g:return m;case v:return u;case y:return h;case b:return p;case _:return f}return t}),e.exports=w},20155:function(e){function t(e,t){return null==e?void 0:e[t]}e.exports=t},85899:function(e,t,n){var r=n(93526),i=n(3283),o=n(53142),a=n(69632),s=n(65387),l=n(66040);function c(e,t,n){t=r(t,e);var c=-1,u=t.length,d=!1;while(++c<u){var h=l(t[c]);if(!(d=null!=e&&n(e,h)))break;e=e[h]}return d||++c!=u?d:(u=null==e?0:e.length,!!u&&s(u)&&a(h,u)&&(o(e)||i(e)))}e.exports=c},83417:function(e){var t="\\ud800-\\udfff",n="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",i="\\u20d0-\\u20ff",o=n+r+i,a="\\ufe0e\\ufe0f",s="\\u200d",l=RegExp("["+s+t+o+a+"]");function c(e){return l.test(e)}e.exports=c},15813:function(e){var t=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function n(e){return t.test(e)}e.exports=n},23305:function(e,t,n){var r=n(94497);function i(){this.__data__=r?r(null):{},this.size=0}e.exports=i},39361:function(e){function t(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}e.exports=t},11112:function(e,t,n){var r=n(94497),i="__lodash_hash_undefined__",o=Object.prototype,a=o.hasOwnProperty;function s(e){var t=this.__data__;if(r){var n=t[e];return n===i?void 0:n}return a.call(t,e)?t[e]:void 0}e.exports=s},25276:function(e,t,n){var r=n(94497),i=Object.prototype,o=i.hasOwnProperty;function a(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}e.exports=a},57452:function(e,t,n){var r=n(94497),i="__lodash_hash_undefined__";function o(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?i:t,this}e.exports=o},20714:function(e,t,n){var r=n(65650),i=n(3283),o=n(53142),a=r?r.isConcatSpreadable:void 0;function s(e){return o(e)||i(e)||!!(a&&e&&e[a])}e.exports=s},69632:function(e){var t=9007199254740991,n=/^(?:0|[1-9]\d*)$/;function r(e,r){var i=typeof e;return r=null==r?t:r,!!r&&("number"==i||"symbol"!=i&&n.test(e))&&e>-1&&e%1==0&&e<r}e.exports=r},65187:function(e,t,n){var r=n(53142),i=n(51187),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;function s(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!i(e))||(a.test(e)||!o.test(e)||null!=t&&e in Object(t))}e.exports=s},79067:function(e){function t(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}e.exports=t},64759:function(e,t,n){var r=n(41950),i=function(){var e=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function o(e){return!!i&&i in e}e.exports=o},84882:function(e){var t=Object.prototype;function n(e){var n=e&&e.constructor,r="function"==typeof n&&n.prototype||t;return e===r}e.exports=n},67267:function(e,t,n){var r=n(41580);function i(e){return e===e&&!r(e)}e.exports=i},12393:function(e){function t(){this.__data__=[],this.size=0}e.exports=t},62049:function(e,t,n){var r=n(97034),i=Array.prototype,o=i.splice;function a(e){var t=this.__data__,n=r(t,e);if(n<0)return!1;var i=t.length-1;return n==i?t.pop():o.call(t,n,1),--this.size,!0}e.exports=a},7144:function(e,t,n){var r=n(97034);function i(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}e.exports=i},7452:function(e,t,n){var r=n(97034);function i(e){return r(this.__data__,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(++a<s)l[a]=o[t+a];a=-1;var c=Array(t+1);while(++a<t)c[a]=o[a];return c[t]=n(l),r(e,this,c)}}e.exports=o},78942:function(e,t,n){var r=n(74967),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},1877:function(e){var t="__lodash_hash_undefined__";function n(e){return this.__data__.set(e,t),this}e.exports=n},8006:function(e){function t(e){return this.__data__.has(e)}e.exports=t},49828:function(e){function t(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}e.exports=t},80796:function(e,t,n){var r=n(47403),i=n(3316),o=i(r);e.exports=o},3316:function(e){var t=800,n=16,r=Date.now;function i(e){var i=0,o=0;return function(){var a=r(),s=n-(a-o);if(o=a,s>0){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<a-1)return s.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(s)}return n.set(e,t),this.size=n.size,this}e.exports=s},97706:function(e){function t(e,t,n){var r=n-1,i=e.length;while(++r<i)if(e[r]===t)return r;return-1}e.exports=t},82237:function(e,t,n){var r=n(52837),i=n(83417),o=n(92013);function a(e){return i(e)?o(e):r(e)}e.exports=a},96493:function(e,t,n){var r=n(76853),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,(function(e,n,r,i){t.push(r?i.replace(o,"$1"):n||e)})),t}));e.exports=a},66040:function(e,t,n){var r=n(51187),i=1/0;function o(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-i?"-0":t}e.exports=o},64066:function(e){var t=Function.prototype,n=t.toString;function r(e){if(null!=e){try{return n.call(e)}catch(t){}try{return e+""}catch(t){}}return""}e.exports=r},62945:function(e){var t=/\s/;function n(e){var n=e.length;while(n--&&t.test(e.charAt(n)));return n}e.exports=n},92013:function(e){var t="\\ud800-\\udfff",n="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",i="\\u20d0-\\u20ff",o=n+r+i,a="\\ufe0e\\ufe0f",s="["+t+"]",l="["+o+"]",c="\\ud83c[\\udffb-\\udfff]",u="(?:"+l+"|"+c+")",d="[^"+t+"]",h="(?:\\ud83c[\\udde6-\\uddff]){2}",p="[\\ud800-\\udbff][\\udc00-\\udfff]",f="\\u200d",m=u+"?",g="["+a+"]?",v="(?:"+f+"(?:"+[d,h,p].join("|")+")"+g+m+")*",y=g+m+v,b="(?:"+[d+l+"?",l,h,p,s].join("|")+")",_=RegExp(c+"(?="+c+")|"+b+y,"g");function w(e){return e.match(_)||[]}e.exports=w},10482:function(e){var t="\\ud800-\\udfff",n="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",i="\\u20d0-\\u20ff",o=n+r+i,a="\\u2700-\\u27bf",s="a-z\\xdf-\\xf6\\xf8-\\xff",l="\\xac\\xb1\\xd7\\xf7",c="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",u="\\u2000-\\u206f",d=" \\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",h="A-Z\\xc0-\\xd6\\xd8-\\xde",p="\\ufe0e\\ufe0f",f=l+c+u+d,m="['’]",g="["+f+"]",v="["+o+"]",y="\\d+",b="["+a+"]",_="["+s+"]",w="[^"+t+f+y+a+s+h+"]",E="\\ud83c[\\udffb-\\udfff]",S="(?:"+v+"|"+E+")",x="[^"+t+"]",k="(?:\\ud83c[\\udde6-\\uddff]){2}",A="[\\ud800-\\udbff][\\udc00-\\udfff]",N="["+h+"]",T="\\u200d",C="(?:"+_+"|"+w+")",R="(?:"+N+"|"+w+")",O="(?:"+m+"(?:d|ll|m|re|s|t|ve))?",I="(?:"+m+"(?:D|LL|M|RE|S|T|VE))?",D=S+"?",L="["+p+"]?",P="(?:"+T+"(?:"+[x,k,A].join("|")+")"+L+D+")*",M="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",F="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",B=L+D+P,$="(?:"+[b,k,A].join("|")+")"+B,j=RegExp([N+"?"+_+"+"+O+"(?="+[g,N,"$"].join("|")+")",R+"+"+I+"(?="+[g,N+C,"$"].join("|")+")",N+"?"+C+"+"+O,N+"+"+I,F,M,y,$].join("|"),"g");function U(e){return e.match(j)||[]}e.exports=U},82619:function(e){function t(e){return function(){return e}}e.exports=t},12784:function(e,t,n){var r=n(41580),i=n(94495),o=n(6131),a="Expected a function",s=Math.max,l=Math.min;function c(e,t,n){var c,u,d,h,p,f,m=0,g=!1,v=!1,y=!0;if("function"!=typeof e)throw new TypeError(a);function b(t){var n=c,r=u;return c=u=void 0,m=t,h=e.apply(r,n),h}function _(e){return m=e,p=setTimeout(S,t),g?b(e):h}function w(e){var n=e-f,r=e-m,i=t-n;return v?l(i,d-r):i}function E(e){var n=e-f,r=e-m;return void 0===f||n>=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 <https://lodash.com/>
|
||
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
||
* Released under MIT license <https://lodash.com/license>
|
||
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
||
* 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<o){var a=e[i];t(r,a,n(a),e)}return r}function wn(e,t){var n=-1,r=null==e?0:e.length;while(++n<r)if(!1===t(e[n],n,e))break;return e}function En(e,t){var n=null==e?0:e.length;while(n--)if(!1===t(e[n],n,e))break;return e}function Sn(e,t){var n=-1,r=null==e?0:e.length;while(++n<r)if(!t(e[n],n,e))return!1;return!0}function xn(e,t){var n=-1,r=null==e?0:e.length,i=0,o=[];while(++n<r){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}function kn(e,t){var n=null==e?0:e.length;return!!n&&Fn(e,t,0)>-1}function An(e,t,n){var r=-1,i=null==e?0:e.length;while(++r<i)if(n(t,e[r]))return!0;return!1}function Nn(e,t){var n=-1,r=null==e?0:e.length,i=Array(r);while(++n<r)i[n]=t(e[n],n,e);return i}function Tn(e,t){var n=-1,r=t.length,i=e.length;while(++n<r)e[i+n]=t[n];return e}function Cn(e,t,n,r){var i=-1,o=null==e?0:e.length;r&&o&&(n=e[++i]);while(++i<o)n=t(n,e[i],i,e);return n}function Rn(e,t,n,r){var i=null==e?0:e.length;r&&i&&(n=e[--i]);while(i--)n=t(n,e[i],i,e);return n}function On(e,t){var n=-1,r=null==e?0:e.length;while(++n<r)if(t(e[n],n,e))return!0;return!1}var In=Un("length");function Dn(e){return e.split("")}function Ln(e){return e.match(Ve)||[]}function Pn(e,t,n){var r;return n(e,(function(e,n,i){if(t(e,n,i))return r=n,!1})),r}function Mn(e,t,n,r){var i=e.length,o=n+(r?1:-1);while(r?o--:++o<i)if(t(e[o],o,e))return o;return-1}function Fn(e,t,n){return t===t?pr(e,t,n):Mn(e,$n,n)}function Bn(e,t,n,r){var i=n-1,o=e.length;while(++i<o)if(r(e[i],t))return i;return-1}function $n(e){return e!==e}function jn(e,t){var n=null==e?0:e.length;return n?Gn(e,t)/n:B}function Un(e){return function(t){return null==t?i:t[e]}}function Vn(e){return function(t){return null==e?i:e[t]}}function Kn(e,t,n,r,i){return i(e,(function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)})),n}function Hn(e,t){var n=e.length;e.sort(t);while(n--)e[n]=e[n].value;return e}function Gn(e,t){var n,r=-1,o=e.length;while(++r<o){var a=t(e[r]);a!==i&&(n=n===i?a:n+a)}return n}function zn(e,t){var n=-1,r=Array(e);while(++n<e)r[n]=t(n);return r}function Xn(e,t){return Nn(t,(function(t){return[t,e[t]]}))}function qn(e){return e?e.slice(0,vr(e)+1).replace(Fe,""):e}function Wn(e){return function(t){return e(t)}}function Yn(e,t){return Nn(t,(function(t){return e[t]}))}function Qn(e,t){return e.has(t)}function Jn(e,t){var n=-1,r=e.length;while(++n<r&&Fn(t,e[n],0)>-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<r){var a=e[n];a!==t&&a!==h||(e[n]=h,o[i++]=n)}return o}function dr(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function hr(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function pr(e,t,n){var r=n-1,i=e.length;while(++r<i)if(e[r]===t)return r;return-1}function fr(e,t,n){var r=n+1;while(r--)if(e[r]===t)return r;return r}function mr(e){return or(e)?br(e):In(e)}function gr(e){return or(e)?_r(e):Dn(e)}function vr(e){var t=e.length;while(t--&&Be.test(e.charAt(t)));return t}var yr=Vn(en);function br(e){var t=Ht.lastIndex=0;while(Ht.test(e))++t;return t}function _r(e){return e.match(Ht)||[]}function wr(e){return e.match(Gt)||[]}var Er=function e(t){t=null==t?sn:Sr.defaults(sn.Object(),t,Sr.pick(sn,qt));var n=t.Array,r=t.Date,Be=t.Error,Ve=t.Function,tt=t.Math,nt=t.Object,rt=t.RegExp,it=t.String,ot=t.TypeError,at=n.prototype,st=Ve.prototype,lt=nt.prototype,ct=t["__core-js_shared__"],ut=st.toString,dt=lt.hasOwnProperty,ht=0,pt=function(){var e=/[^.]+$/.exec(ct&&ct.keys&&ct.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),ft=lt.toString,mt=ut.call(nt),gt=sn._,vt=rt("^"+ut.call(dt).replace(Pe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),yt=un?t.Buffer:i,bt=t.Symbol,_t=t.Uint8Array,wt=yt?yt.allocUnsafe:i,Et=cr(nt.getPrototypeOf,nt),St=nt.create,xt=lt.propertyIsEnumerable,kt=at.splice,At=bt?bt.isConcatSpreadable:i,Nt=bt?bt.iterator:i,Tt=bt?bt.toStringTag:i,Ct=function(){try{var e=Xa(nt,"defineProperty");return e({},"",{}),e}catch(t){}}(),Rt=t.clearTimeout!==sn.clearTimeout&&t.clearTimeout,Ot=r&&r.now!==sn.Date.now&&r.now,It=t.setTimeout!==sn.setTimeout&&t.setTimeout,Dt=tt.ceil,Lt=tt.floor,Pt=nt.getOwnPropertySymbols,Mt=yt?yt.isBuffer:i,Ft=t.isFinite,Bt=at.join,$t=cr(nt.keys,nt),jt=tt.max,Ut=tt.min,Ht=r.now,Gt=t.parseInt,zt=tt.random,Xt=at.reverse,Jt=Xa(t,"DataView"),Zt=Xa(t,"Map"),en=Xa(t,"Promise"),tn=Xa(t,"Set"),on=Xa(t,"WeakMap"),an=Xa(nt,"create"),ln=on&&new on,cn={},dn=Is(Jt),hn=Is(Zt),In=Is(en),Dn=Is(tn),Vn=Is(on),pr=bt?bt.prototype:i,br=pr?pr.valueOf:i,_r=pr?pr.toString:i;function Er(e){if(ku(e)&&!lu(e)&&!(e instanceof Nr)){if(e instanceof Ar)return e;if(dt.call(e,"__wrapped__"))return Ls(e)}return new Ar(e)}var xr=function(){function e(){}return function(t){if(!xu(t))return{};if(St)return St(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function kr(){}function Ar(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function Nr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=$,this.__views__=[]}function Tr(){var e=new Nr(this.__wrapped__);return e.__actions__=ia(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ia(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ia(this.__views__),e}function Cr(){if(this.__filtered__){var e=new Nr(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function Rr(){var e=this.__wrapped__.value(),t=this.__dir__,n=lu(e),r=t<0,i=n?e.length:0,o=Ja(0,i,this.__views__),a=o.start,s=o.end,l=s-a,c=r?s:a-1,u=this.__iteratees__,d=u.length,h=0,p=Ut(l,this.__takeCount__);if(!n||!r&&i==l&&p==l)return $o(e,this.__actions__);var f=[];e:while(l--&&h<p){c+=t;var m=-1,g=e[c];while(++m<d){var v=u[m],y=v.iteratee,b=v.type,_=y(g);if(b==D)g=_;else if(!_){if(b==I)continue e;break e}}f[h++]=g}return f}function Or(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}function Ir(){this.__data__=an?an(null):{},this.size=0}function Dr(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function Lr(e){var t=this.__data__;if(an){var n=t[e];return n===u?i:n}return dt.call(t,e)?t[e]:i}function Pr(e){var t=this.__data__;return an?t[e]!==i:dt.call(t,e)}function Mr(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=an&&t===i?u:t,this}function Fr(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}function Br(){this.__data__=[],this.size=0}function $r(e){var t=this.__data__,n=ui(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():kt.call(t,n,1),--this.size,!0}function jr(e){var t=this.__data__,n=ui(t,e);return n<0?i:t[n][1]}function Ur(e){return ui(this.__data__,e)>-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<n){var r=e[t];this.set(r[0],r[1])}}function Hr(){this.size=0,this.__data__={hash:new Or,map:new(Zt||Fr),string:new Or}}function Gr(e){var t=Ga(this,e)["delete"](e);return this.size-=t?1:0,t}function zr(e){return Ga(this,e).get(e)}function Xr(e){return Ga(this,e).has(e)}function qr(e,t){var n=Ga(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Wr(e){var t=-1,n=null==e?0:e.length;this.__data__=new Kr;while(++t<n)this.add(e[t])}function Yr(e){return this.__data__.set(e,u),this}function Qr(e){return this.__data__.has(e)}function Jr(e){var t=this.__data__=new Fr(e);this.size=t.size}function Zr(){this.__data__=new Fr,this.size=0}function ei(e){var t=this.__data__,n=t["delete"](e);return this.size=t.size,n}function ti(e){return this.__data__.get(e)}function ni(e){return this.__data__.has(e)}function ri(e,t){var n=this.__data__;if(n instanceof Fr){var r=n.__data__;if(!Zt||r.length<a-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Kr(r)}return n.set(e,t),this.size=n.size,this}function ii(e,t){var n=lu(e),r=!n&&su(e),i=!n&&!r&&pu(e),o=!n&&!r&&!i&&ju(e),a=n||r||i||o,s=a?zn(e.length,it):[],l=s.length;for(var c in e)!t&&!dt.call(e,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||as(c,l))||s.push(c);return s}function oi(e){var t=e.length;return t?e[yo(0,t-1)]:i}function ai(e,t){return Cs(ia(e),gi(t,0,e.length))}function si(e){return Cs(ia(e))}function li(e,t,n){(n!==i&&!iu(e[t],n)||n===i&&!(t in e))&&fi(e,t,n)}function ci(e,t,n){var r=e[t];dt.call(e,t)&&iu(r,n)&&(n!==i||t in e)||fi(e,t,n)}function ui(e,t){var n=e.length;while(n--)if(iu(e[n][0],t))return n;return-1}function di(e,t,n,r){return Ei(e,(function(e,i,o){t(r,e,n(e),o)})),r}function hi(e,t){return e&&oa(t,Ed(t),e)}function pi(e,t){return e&&oa(t,Sd(t),e)}function fi(e,t,n){"__proto__"==t&&Ct?Ct(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function mi(e,t){var r=-1,o=t.length,a=n(o),s=null==e;while(++r<o)a[r]=s?i:gd(e,t[r]);return a}function gi(e,t,n){return e===e&&(n!==i&&(e=e<=n?e:n),t!==i&&(e=e>=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(++i<l){var d=e[i],h=null==n?d:n(d);if(d=r||0!==d?d:0,s&&h===h){var p=u;while(p--)if(t[p]===h)continue e;c.push(d)}else o(t,h,r)||c.push(d)}return c}Er.templateSettings={escape:Ce,evaluate:Re,interpolate:Oe,variable:"",imports:{_:Er}},Er.prototype=kr.prototype,Er.prototype.constructor=Er,Ar.prototype=xr(kr.prototype),Ar.prototype.constructor=Ar,Nr.prototype=xr(kr.prototype),Nr.prototype.constructor=Nr,Or.prototype.clear=Ir,Or.prototype["delete"]=Dr,Or.prototype.get=Lr,Or.prototype.has=Pr,Or.prototype.set=Mr,Fr.prototype.clear=Br,Fr.prototype["delete"]=$r,Fr.prototype.get=jr,Fr.prototype.has=Ur,Fr.prototype.set=Vr,Kr.prototype.clear=Hr,Kr.prototype["delete"]=Gr,Kr.prototype.get=zr,Kr.prototype.has=Xr,Kr.prototype.set=qr,Wr.prototype.add=Wr.prototype.push=Yr,Wr.prototype.has=Qr,Jr.prototype.clear=Zr,Jr.prototype["delete"]=ei,Jr.prototype.get=ti,Jr.prototype.has=ni,Jr.prototype.set=ri;var Ei=ua(Oi),Si=ua(Ii,!0);function xi(e,t){var n=!0;return Ei(e,(function(e,r,i){return n=!!t(e,r,i),n})),n}function ki(e,t,n){var r=-1,o=e.length;while(++r<o){var a=e[r],s=t(a);if(null!=s&&(l===i?s===s&&!$u(s):n(s,l)))var l=s,c=a}return c}function Ai(e,t,n,r){var o=e.length;n=qu(n),n<0&&(n=-n>o?0:o+n),r=r===i||r>o?o:qu(r),r<0&&(r+=o),r=n>r?0:Wu(r);while(n<r)e[n++]=t;return e}function Ni(e,t){var n=[];return Ei(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}function Ti(e,t,n,r,i){var o=-1,a=e.length;n||(n=os),i||(i=[]);while(++o<a){var s=e[o];t>0&&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&&n<r)e=e[Os(t[n++])];return n&&n==r?e:i}function Pi(e,t,n){var r=t(e);return lu(e)?r:Tn(r,n(e))}function Mi(e){return null==e?e===i?le:ee:Tt&&Tt in nt(e)?qa(e):bs(e)}function Fi(e,t){return e>t}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<jt(t,n)}function Ui(e,t,r){var o=r?An:kn,a=e[0].length,s=e.length,l=s,c=n(s),u=1/0,d=[];while(l--){var h=e[l];l&&t&&(h=Nn(h,Wn(t))),u=Ut(h.length,u),c[l]=!r&&(t||a>=120&&h.length>=120)?new Wr(l&&h):i}h=e[0];var p=-1,f=c[0];e:while(++p<a&&d.length<u){var m=h[p],g=t?t(m):m;if(m=r||0!==m?m:0,!(f?Qn(f,g):o(d,g,r))){l=s;while(--l){var v=c[l];if(!(v?Qn(v,g):o(e[l],g,r)))continue e}f&&f.push(g),d.push(m)}}return d}function Vi(e,t,n,r){return Oi(e,(function(e,i,o){t(r,n(e),i,o)})),r}function Ki(e,t,n){t=Ho(t,e),e=ws(e,t);var r=null==e?e:e[Os(ol(t))];return null==r?i:bn(r,e,n)}function Hi(e){return ku(e)&&Mi(e)==K}function Gi(e){return ku(e)&&Mi(e)==de}function zi(e){return ku(e)&&Mi(e)==X}function Xi(e,t,n,r,i){return e===t||(null==e||null==t||!ku(e)&&!ku(t)?e!==e&&t!==t:qi(e,t,n,r,Xi,i))}function qi(e,t,n,r,i,o){var a=lu(e),s=lu(t),l=a?H:Qa(e),c=s?H:Qa(t);l=l==K?te:l,c=c==K?te:c;var u=l==te,d=c==te,h=l==c;if(h&&pu(e)){if(!pu(t))return!1;a=!0,u=!1}if(h&&!u)return o||(o=new Jr),a||ju(e)?Pa(e,t,n,r,i,o):Ma(e,t,l,n,r,i,o);if(!(n&g)){var p=u&&dt.call(e,"__wrapped__"),f=d&&dt.call(t,"__wrapped__");if(p||f){var m=p?e.value():e,v=f?t.value():t;return o||(o=new Jr),i(m,v,n,r,o)}}return!!h&&(o||(o=new Jr),Fa(e,t,n,r,i,o))}function Wi(e){return ku(e)&&Qa(e)==J}function Yi(e,t,n,r){var o=n.length,a=o,s=!r;if(null==e)return!a;e=nt(e);while(o--){var l=n[o];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}while(++o<a){l=n[o];var c=l[0],u=e[c],d=l[1];if(s&&l[2]){if(u===i&&!(c in e))return!1}else{var h=new Jr;if(r)var p=r(u,d,c,e,t,h);if(!(p===i?Xi(d,u,g|v,r,h):p))return!1}}return!0}function Qi(e){if(!xu(e)||ds(e))return!1;var t=wu(e)?vt:We;return t.test(Is(e))}function Ji(e){return ku(e)&&Mi(e)==ie}function Zi(e){return ku(e)&&Qa(e)==oe}function eo(e){return ku(e)&&Su(e.length)&&!!Yt[Mi(e)]}function to(e){return"function"==typeof e?e:null==e?Rh:"object"==typeof e?lu(e)?so(e[0],e[1]):ao(e):Kh(e)}function no(e){if(!ps(e))return $t(e);var t=[];for(var n in nt(e))dt.call(e,n)&&"constructor"!=n&&t.push(n);return t}function ro(e){if(!xu(e))return ys(e);var t=ps(e),n=[];for(var r in e)("constructor"!=r||!t&&dt.call(e,r))&&n.push(r);return n}function io(e,t){return e<t}function oo(e,t){var r=-1,i=uu(e)?n(e.length):[];return Ei(e,(function(e,n,o){i[++r]=t(e,n,o)})),i}function ao(e){var t=za(e);return 1==t.length&&t[0][2]?ms(t[0][0],t[0][1]):function(n){return n===e||Yi(n,e,t)}}function so(e,t){return ls(e)&&fs(t)?ms(Os(e),t):function(n){var r=gd(n,e);return r===i&&r===t?yd(n,e):Xi(t,r,g|v)}}function lo(e,t,n,r,o){e!==t&&Ci(t,(function(a,s){if(o||(o=new Jr),xu(a))co(e,t,s,n,lo,r,o);else{var l=r?r(Ss(e,s),a,s+"",e,t,o):i;l===i&&(l=a),li(e,s,l)}}),Sd)}function co(e,t,n,r,o,a,s){var l=Ss(e,n),c=Ss(t,n),u=s.get(c);if(u)li(e,n,u);else{var d=a?a(l,c,n+"",e,t,s):i,h=d===i;if(h){var p=lu(c),f=!p&&pu(c),m=!p&&!f&&ju(c);d=c,p||f||m?lu(l)?d=l:du(l)?d=ia(l):f?(h=!1,d=qo(c,!0)):m?(h=!1,d=Zo(c,!0)):d=[]:Lu(c)||su(c)?(d=l,su(l)?d=Qu(l):xu(l)&&!wu(l)||(d=ns(c))):h=!1}h&&(s.set(c,d),o(d,c,r,a,s),s["delete"](c)),li(e,n,d)}}function uo(e,t){var n=e.length;if(n)return t+=t<0?n:0,as(t,n)?e[t]:i}function ho(e,t,n){t=t.length?Nn(t,(function(e){return lu(e)?function(t){return Li(t,1===e.length?e[0]:e)}:e})):[Rh];var r=-1;t=Nn(t,Wn(Ha()));var i=oo(e,(function(e,n,i){var o=Nn(t,(function(t){return t(e)}));return{criteria:o,index:++r,value:e}}));return Hn(i,(function(e,t){return ta(e,t,n)}))}function po(e,t){return fo(e,t,(function(t,n){return yd(e,n)}))}function fo(e,t,n){var r=-1,i=t.length,o={};while(++r<i){var a=t[r],s=Li(e,a);n(s,a)&&xo(o,Ho(a,e),s)}return o}function mo(e){return function(t){return Li(t,e)}}function go(e,t,n,r){var i=r?Bn:Fn,o=-1,a=t.length,s=e;e===t&&(t=ia(t)),n&&(s=Nn(e,Wn(n)));while(++o<a){var l=0,c=t[o],u=n?n(c):c;while((l=i(s,u,l,r))>-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&&++o<a){var c=Os(t[o]),u=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(o!=s){var d=l[c];u=r?r(d,c,l):i,u===i&&(u=xu(d)?d:as(t[o+1])?[]:{})}ci(l,c,u),l=l[c]}return e}var ko=ln?function(e,t){return ln.set(e,t),e}:Rh,Ao=Ct?function(e,t){return Ct(e,"toString",{configurable:!0,enumerable:!1,value:Ah(t),writable:!0})}:Rh;function No(e){return Cs(Ud(e))}function To(e,t,r){var i=-1,o=e.length;t<0&&(t=-t>o?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<o)a[i]=e[i+t];return a}function Co(e,t){var n;return Ei(e,(function(e,r,i){return n=t(e,r,i),!n})),!!n}function Ro(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t===t&&i<=U){while(r<i){var o=r+i>>>1,a=e[o];null!==a&&!$u(a)&&(n?a<=t:a<t)?r=o+1:i=o}return i}return Oo(e,t,Rh,n)}function Oo(e,t,n,r){var o=0,a=null==e?0:e.length;if(0===a)return 0;t=n(t);var s=t!==t,l=null===t,c=$u(t),u=t===i;while(o<a){var d=Lt((o+a)/2),h=n(e[d]),p=h!==i,f=null===h,m=h===h,g=$u(h);if(s)var v=r||m;else v=u?m&&(r||p):l?m&&p&&(r||!f):c?m&&p&&!f&&(r||!g):!f&&!g&&(r?h<=t:h<t);v?o=d+1:a=d}return Ut(a,j)}function Io(e,t){var n=-1,r=e.length,i=0,o=[];while(++n<r){var a=e[n],s=t?t(a):a;if(!n||!iu(s,l)){var l=s;o[i++]=0===a?0:a}}return o}function Do(e){return"number"==typeof e?e:$u(e)?B:+e}function Lo(e){if("string"==typeof e)return e;if(lu(e))return Nn(e,Lo)+"";if($u(e))return _r?_r.call(e):"";var t=e+"";return"0"==t&&1/e==-P?"-0":t}function Po(e,t,n){var r=-1,i=kn,o=e.length,s=!0,l=[],c=l;if(n)s=!1,i=An;else if(o>=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<o){var d=e[r],h=t?t(d):d;if(d=n||0!==d?d:0,s&&h===h){var p=c.length;while(p--)if(c[p]===h)continue e;t&&c.push(h),l.push(d)}else i(c,h,n)||(c!==l&&c.push(h),l.push(d))}return l}function Mo(e,t){return t=Ho(t,e),e=ws(e,t),null==e||delete e[Os(ol(t))]}function Fo(e,t,n,r){return xo(e,t,n(Li(e,t)),r)}function Bo(e,t,n,r){var i=e.length,o=r?i:-1;while((r?o--:++o<i)&&t(e[o],o,e));return n?To(e,r?0:o,r?o+1:i):To(e,r?o+1:0,r?i:o)}function $o(e,t){var n=e;return n instanceof Nr&&(n=n.value()),Cn(t,(function(e,t){return t.func.apply(t.thisArg,Tn([e],t.args))}),n)}function jo(e,t,r){var i=e.length;if(i<2)return i?Po(e[0]):[];var o=-1,a=n(i);while(++o<i){var s=e[o],l=-1;while(++l<i)l!=o&&(a[o]=wi(a[o]||s,e[l],t,r))}return Po(Ti(a,1),t,r)}function Uo(e,t,n){var r=-1,o=e.length,a=t.length,s={};while(++r<o){var l=r<a?t[r]:i;n(s,e[r],l)}return s}function Vo(e){return du(e)?e:[]}function Ko(e){return"function"==typeof e?e:Rh}function Ho(e,t){return lu(e)?e:ls(e,t)?[e]:Rs(Zu(e))}var Go=wo;function zo(e,t,n){var r=e.length;return n=n===i?r:n,!t&&n>=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<t||u&&n&&o&&!r&&!a||l&&n&&o||!s&&o||!c)return-1}return 0}function ta(e,t,n){var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;while(++r<a){var l=ea(i[r],o[r]);if(l){if(r>=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(++l<c)d[l]=t[l];while(++o<s)(h||o<a)&&(d[r[o]]=e[o]);while(u--)d[l++]=e[o++];return d}function ra(e,t,r,i){var o=-1,a=e.length,s=-1,l=r.length,c=-1,u=t.length,d=jt(a-l,0),h=n(d+u),p=!i;while(++o<d)h[o]=e[o];var f=o;while(++c<u)h[f+c]=t[c];while(++s<l)(p||o<a)&&(h[f+r[s]]=e[o++]);return h}function ia(e,t){var r=-1,i=e.length;t||(t=n(i));while(++r<i)t[r]=e[r];return t}function oa(e,t,n,r){var o=!n;n||(n={});var a=-1,s=t.length;while(++a<s){var l=t[a],c=r?r(n[l],e[l],l,n,e):i;c===i&&(c=e[l]),o?fi(n,l,c):ci(n,l,c)}return n}function aa(e,t){return oa(e,Wa(e),t)}function sa(e,t){return oa(e,Ya(e),t)}function la(e,t){return function(n,r){var i=lu(n)?_n:di,o=t?t():{};return i(n,e,Ha(r,2),o)}}function ca(e){return wo((function(t,n){var r=-1,o=n.length,a=o>1?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<o){var l=n[r];l&&e(t,l,r,a)}return t}))}function ua(e,t){return function(n,r){if(null==n)return n;if(!uu(n))return e(n,r);var i=n.length,o=t?i:-1,a=nt(n);while(t?o--:++o<i)if(!1===r(a[o],o,a))break;return n}}function da(e){return function(t,n,r){var i=-1,o=nt(t),a=r(t),s=a.length;while(s--){var l=a[e?s:++i];if(!1===n(o[l],l,o))break}return t}}function ha(e,t,n){var r=t&y,i=ma(e);function o(){var t=this&&this!==sn&&this instanceof o?i:e;return t.apply(r?n:this,arguments)}return o}function pa(e){return function(t){t=Zu(t);var n=or(t)?gr(t):i,r=n?n[0]:t.charAt(0),o=n?zo(n,1).join(""):t.slice(1);return r[e]()+o}}function fa(e){return function(t){return Cn(wh(qd(t).replace(Vt,"")),e,"")}}function ma(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=xr(e.prototype),r=e.apply(n,t);return xu(r)?r:n}}function ga(e,t,r){var o=ma(e);function a(){var s=arguments.length,l=n(s),c=s,u=Ka(a);while(c--)l[c]=arguments[c];var d=s<3&&l[0]!==u&&l[s-1]!==u?[]:ur(l,u);if(s-=d.length,s<r)return Na(e,t,ba,a.placeholder,i,l,d,i,i,r-s);var h=this&&this!==sn&&this instanceof a?o:e;return bn(h,this,l)}return a}function va(e){return function(t,n,r){var o=nt(t);if(!uu(t)){var a=Ha(n,3);t=Ed(t),n=function(e){return a(o[e],e,o)}}var s=e(t,n,r);return s>-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(++r<n){a=t[r];var c=Va(a),u="wrapper"==c?Ua(a):i;s=u&&us(u[0])&&u[1]==(k|w|S|A)&&!u[4].length&&1==u[9]?s[Va(u[0])].apply(s,u[3]):1==a.length&&us(a)?s[c]():s.thru(a)}return function(){var e=arguments,r=e[0];if(s&&1==e.length&&lu(r))return s.plant(r).value();var i=0,o=n?t[i].apply(this,e):r;while(++i<n)o=t[i].call(this,o);return o}}))}function ba(e,t,r,o,a,s,l,c,u,d){var h=t&k,p=t&y,f=t&b,m=t&(w|E),g=t&N,v=f?i:ma(e);function _(){var i=arguments.length,y=n(i),b=i;while(b--)y[b]=arguments[b];if(m)var w=Ka(_),E=er(y,w);if(o&&(y=na(y,o,a,m)),s&&(y=ra(y,s,l,m)),i-=E,m&&i<d){var S=ur(y,w);return Na(e,t,ba,_.placeholder,r,y,S,c,u,d-i)}var x=p?r:this,k=f?x[e]:e;return i=y.length,c?y=Es(y,c):g&&i>1&&y.reverse(),h&&u<i&&(y.length=u),this&&this!==sn&&this instanceof _&&(k=v||ma(k)),k.apply(x,y)}return _}function _a(e,t){return function(n,r){return Vi(n,e,t(r),{})}}function wa(e,t){return function(n,r){var o;if(n===i&&r===i)return t;if(n!==i&&(o=n),r!==i){if(o===i)return r;"string"==typeof n||"string"==typeof r?(n=Lo(n),r=Lo(r)):(n=Do(n),r=Do(r)),o=e(n,r)}return o}}function Ea(e){return Ba((function(t){return t=Nn(t,Wn(Ha())),wo((function(n){var r=this;return e(t,(function(e){return bn(e,r,n)}))}))}))}function Sa(e,t){t=t===i?" ":Lo(t);var n=t.length;if(n<2)return n?_o(t,e):t;var r=_o(t,Dt(e/mr(t)));return or(t)?zo(gr(r),0,e).join(""):r.slice(0,e)}function xa(e,t,r,i){var o=t&y,a=ma(e);function s(){var t=-1,l=arguments.length,c=-1,u=i.length,d=n(u+l),h=this&&this!==sn&&this instanceof s?a:e;while(++c<u)d[c]=i[c];while(l--)d[c++]=arguments[++t];return bn(h,o?r:this,d)}return s}function ka(e){return function(t,n,r){return r&&"number"!=typeof r&&ss(t,n,r)&&(n=r=i),t=Xu(t),n===i?(n=t,t=0):n=Xu(n),r=r===i?t<n?1:-1:Xu(r),bo(t,n,r,e)}}function Aa(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=Yu(t),n=Yu(n)),e(t,n)}}function Na(e,t,n,r,o,a,s,l,c,u){var d=t&w,h=d?s:i,p=d?i:s,f=d?a:i,m=d?i:a;t|=d?S:x,t&=~(d?x:S),t&_||(t&=~(y|b));var g=[e,t,o,f,h,m,p,l,c,u],v=n.apply(i,g);return us(e)&&xs(v,g),v.placeholder=r,Ns(v,e,t)}function Ta(e){var t=tt[e];return function(e,n){if(e=Yu(e),n=null==n?0:Ut(qu(n),292),n&&Ft(e)){var r=(Zu(e)+"e").split("e"),i=t(r[0]+"e"+(+r[1]+n));return r=(Zu(i)+"e").split("e"),+(r[0]+"e"+(+r[1]-n))}return t(e)}}var Ca=tn&&1/dr(new tn([,-0]))[1]==P?function(e){return new tn(e)}:Bh;function Ra(e){return function(t){var n=Qa(t);return n==J?lr(t):n==oe?hr(t):Xn(t,e(t))}}function Oa(e,t,n,r,o,a,s,c){var u=t&b;if(!u&&"function"!=typeof e)throw new ot(l);var d=r?r.length:0;if(d||(t&=~(S|x),r=o=i),s=s===i?s:jt(qu(s),0),c=c===i?c:qu(c),d-=o?o.length:0,t&x){var h=r,p=o;r=o=i}var f=u?i:Ua(e),m=[e,t,n,r,o,h,p,a,s,c];if(f&&vs(m,f),e=m[0],t=m[1],n=m[2],r=m[3],o=m[4],c=m[9]=m[9]===i?u?0:e.length:jt(m[9]-d,0),!c&&t&(w|E)&&(t&=~(w|E)),t&&t!=y)g=t==w||t==E?ga(e,t,c):t!=S&&t!=(y|S)||o.length?ba.apply(i,m):xa(e,t,n,r);else var g=ha(e,t,n);var v=f?ko:xs;return Ns(v(g,m),e,t)}function Ia(e,t,n,r){return e===i||iu(e,lt[n])&&!dt.call(r,n)?t:e}function Da(e,t,n,r,o,a){return xu(e)&&xu(t)&&(a.set(t,e),lo(e,t,i,Da,a),a["delete"](t)),e}function La(e){return Lu(e)?i:e}function Pa(e,t,n,r,o,a){var s=n&g,l=e.length,c=t.length;if(l!=c&&!(s&&c>l))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(++h<l){var m=e[h],y=t[h];if(r)var b=s?r(y,m,h,t,e,a):r(m,y,h,e,t,a);if(b!==i){if(b)continue;p=!1;break}if(f){if(!On(t,(function(e,t){if(!Qn(f,t)&&(m===e||o(m,e,n,r,a)))return f.push(t)}))){p=!1;break}}else if(m!==y&&!o(m,y,n,r,a)){p=!1;break}}return a["delete"](e),a["delete"](t),p}function Ma(e,t,n,r,i,o,a){switch(n){case he:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case de:return!(e.byteLength!=t.byteLength||!o(new _t(e),new _t(t)));case z:case X:case Z:return iu(+e,+t);case W:return e.name==t.name&&e.message==t.message;case ie:case ae:return e==t+"";case J:var s=lr;case oe:var l=r&g;if(s||(s=dr),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=v,a.set(e,t);var u=Pa(s(e),s(t),r,i,o,a);return a["delete"](e),u;case se:if(br)return br.call(e)==br.call(t)}return!1}function Fa(e,t,n,r,o,a){var s=n&g,l=$a(e),c=l.length,u=$a(t),d=u.length;if(c!=d&&!s)return!1;var h=c;while(h--){var p=l[h];if(!(s?p in t:dt.call(t,p)))return!1}var f=a.get(e),m=a.get(t);if(f&&m)return f==t&&m==e;var v=!0;a.set(e,t),a.set(t,e);var y=s;while(++h<c){p=l[h];var b=e[p],_=t[p];if(r)var w=s?r(_,b,p,t,e,a):r(b,_,p,e,t,a);if(!(w===i?b===_||o(b,_,n,r,a):w)){v=!1;break}y||(y="constructor"==p)}if(v&&!y){var E=e.constructor,S=t.constructor;E==S||!("constructor"in e)||!("constructor"in t)||"function"==typeof E&&E instanceof E&&"function"==typeof S&&S instanceof S||(v=!1)}return a["delete"](e),a["delete"](t),v}function Ba(e){return As(_s(e,i,qs),e+"")}function $a(e){return Pi(e,Ed,Wa)}function ja(e){return Pi(e,Sd,Ya)}var Ua=ln?function(e){return ln.get(e)}:Bh;function Va(e){var t=e.name+"",n=cn[t],r=dt.call(cn,t)?n.length:0;while(r--){var i=n[r],o=i.func;if(null==o||o==e)return i.name}return t}function Ka(e){var t=dt.call(Er,"placeholder")?Er:e;return t.placeholder}function Ha(){var e=Er.iteratee||Oh;return e=e===Oh?to:e,arguments.length?e(arguments[0],arguments[1]):e}function Ga(e,t){var n=e.__data__;return cs(t)?n["string"==typeof t?"string":"hash"]:n.map}function za(e){var t=Ed(e),n=t.length;while(n--){var r=t[n],i=e[r];t[n]=[r,i,fs(i)]}return t}function Xa(e,t){var n=ir(e,t);return Qi(n)?n:i}function qa(e){var t=dt.call(e,Tt),n=e[Tt];try{e[Tt]=i;var r=!0}catch(a){}var o=ft.call(e);return r&&(t?e[Tt]=n:delete e[Tt]),o}var Wa=Pt?function(e){return null==e?[]:(e=nt(e),xn(Pt(e),(function(t){return xt.call(e,t)})))}:Xh,Ya=Pt?function(e){var t=[];while(e)Tn(t,Wa(e)),e=Et(e);return t}:Xh,Qa=Mi;function Ja(e,t,n){var r=-1,i=n.length;while(++r<i){var o=n[r],a=o.size;switch(o.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=Ut(t,e+a);break;case"takeRight":e=jt(e,t-a);break}}return{start:e,end:t}}function Za(e){var t=e.match(je);return t?t[1].split(Ue):[]}function es(e,t,n){t=Ho(t,e);var r=-1,i=t.length,o=!1;while(++r<i){var a=Os(t[r]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++r!=i?o:(i=null==e?0:e.length,!!i&&Su(i)&&as(a,i)&&(lu(e)||su(e)))}function ts(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&dt.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function ns(e){return"function"!=typeof e.constructor||ps(e)?{}:xr(Et(e))}function rs(e,t,n){var r=e.constructor;switch(t){case de:return Wo(e);case z:case X:return new r(+e);case he:return Yo(e,n);case pe:case fe:case me:case ge:case ve:case ye:case be:case _e:case we:return Zo(e,n);case J:return new r;case Z:case ae:return new r(e);case ie:return Qo(e);case oe:return new r;case se:return Jo(e)}}function is(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+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&&e<t}function ss(e,t,n){if(!xu(n))return!1;var r=typeof t;return!!("number"==r?uu(n)&&as(t,n.length):"string"==r&&t in n)&&iu(n[t],e)}function ls(e,t){if(lu(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!$u(e))||(De.test(e)||!Ie.test(e)||null!=t&&e in nt(t))}function cs(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}function us(e){var t=Va(e),n=Er[t];if("function"!=typeof n||!(t in Nr.prototype))return!1;if(e===n)return!0;var r=Ua(n);return!!r&&e===r[0]}function ds(e){return!!pt&&pt in e}(Jt&&Qa(new Jt(new ArrayBuffer(1)))!=he||Zt&&Qa(new Zt)!=J||en&&Qa(en.resolve())!=ne||tn&&Qa(new tn)!=oe||on&&Qa(new on)!=ce)&&(Qa=function(e){var t=Mi(e),n=t==te?e.constructor:i,r=n?Is(n):"";if(r)switch(r){case dn:return he;case hn:return J;case In:return ne;case Dn:return oe;case Vn:return ce}return t});var hs=ct?wu:qh;function ps(e){var t=e&&e.constructor,n="function"==typeof t&&t.prototype||lt;return e===n}function fs(e){return e===e&&!xu(e)}function ms(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==i||e in nt(n)))}}function gs(e){var t=jc(e,(function(e){return n.size===d&&n.clear(),e})),n=t.cache;return t}function vs(e,t){var n=e[1],r=t[1],i=n|r,o=i<(y|b|k),a=r==k&&n==w||r==k&&n==A&&e[7].length<=t[8]||r==(k|A)&&t[7].length<=t[8]&&n==w;if(!o&&!a)return e;r&y&&(e[2]=t[2],i|=n&y?0:_);var s=t[3];if(s){var l=e[3];e[3]=l?na(l,s,t[4]):s,e[4]=l?ur(e[3],h):t[4]}return s=t[5],s&&(l=e[5],e[5]=l?ra(l,s,t[6]):s,e[6]=l?ur(e[5],h):t[6]),s=t[7],s&&(e[7]=s),r&k&&(e[8]=null==e[8]?t[8]:Ut(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i,e}function ys(e){var t=[];if(null!=e)for(var n in nt(e))t.push(n);return t}function bs(e){return ft.call(e)}function _s(e,t,r){return t=jt(t===i?e.length-1:t,0),function(){var i=arguments,o=-1,a=jt(i.length-t,0),s=n(a);while(++o<a)s[o]=i[t+o];o=-1;var l=n(t+1);while(++o<t)l[o]=i[o];return l[t]=r(s),bn(e,this,l)}}function ws(e,t){return t.length<2?e:Li(e,To(t,0,-1))}function Es(e,t){var n=e.length,r=Ut(t.length,n),o=ia(e);while(r--){var a=t[r];e[r]=as(a,n)?o[a]:i}return e}function Ss(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}var xs=Ts(ko),ks=It||function(e,t){return sn.setTimeout(e,t)},As=Ts(Ao);function Ns(e,t,n){var r=t+"";return As(e,is(r,Ds(Za(r),n)))}function Ts(e){var t=0,n=0;return function(){var r=Ht(),o=O-(r-n);if(n=r,o>0){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(++n<t){var a=yo(n,o),s=e[a];e[a]=e[n],e[n]=s}return e.length=t,e}var Rs=gs((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Le,(function(e,n,r,i){t.push(r?i.replace(He,"$1"):n||e)})),t}));function Os(e){if("string"==typeof e||$u(e))return e;var t=e+"";return"0"==t&&1/e==-P?"-0":t}function Is(e){if(null!=e){try{return ut.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function Ds(e,t){return wn(V,(function(n){var r="_."+n[0];t&n[1]&&!kn(e,r)&&e.push(r)})),e.sort()}function Ls(e){if(e instanceof Nr)return e.clone();var t=new Ar(e.__wrapped__,e.__chain__);return t.__actions__=ia(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function Ps(e,t,r){t=(r?ss(e,t,r):t===i)?1:jt(qu(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];var a=0,s=0,l=n(Dt(o/t));while(a<o)l[s++]=To(e,a,a+=t);return l}function Ms(e){var t=-1,n=null==e?0:e.length,r=0,i=[];while(++t<n){var o=e[t];o&&(i[r++]=o)}return i}function Fs(){var e=arguments.length;if(!e)return[];var t=n(e-1),r=arguments[0],i=e;while(i--)t[i-1]=arguments[i];return Tn(lu(r)?ia(r):[r],Ti(t,1))}var Bs=wo((function(e,t){return du(e)?wi(e,Ti(t,1,du,!0)):[]})),$s=wo((function(e,t){var n=ol(t);return du(n)&&(n=i),du(e)?wi(e,Ti(t,1,du,!0),Ha(n,2)):[]})),js=wo((function(e,t){var n=ol(t);return du(n)&&(n=i),du(e)?wi(e,Ti(t,1,du,!0),i,n):[]}));function Us(e,t,n){var r=null==e?0:e.length;return r?(t=n||t===i?1:qu(t),To(e,t<0?0:t,r)):[]}function Vs(e,t,n){var r=null==e?0:e.length;return r?(t=n||t===i?1:qu(t),t=r-t,To(e,0,t<0?0:t)):[]}function Ks(e,t){return e&&e.length?Bo(e,Ha(t,3),!0,!0):[]}function Hs(e,t){return e&&e.length?Bo(e,Ha(t,3),!0):[]}function Gs(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&ss(e,t,n)&&(n=0,r=i),Ai(e,t,n,r)):[]}function zs(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:qu(n);return i<0&&(i=jt(r+i,0)),Mn(e,Ha(t,3),i)}function Xs(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return n!==i&&(o=qu(n),o=n<0?jt(r+o,0):Ut(o,r-1)),Mn(e,Ha(t,3),o,!0)}function qs(e){var t=null==e?0:e.length;return t?Ti(e,1):[]}function Ws(e){var t=null==e?0:e.length;return t?Ti(e,P):[]}function Ys(e,t){var n=null==e?0:e.length;return n?(t=t===i?1:qu(t),Ti(e,t)):[]}function Qs(e){var t=-1,n=null==e?0:e.length,r={};while(++t<n){var i=e[t];r[i[0]]=i[1]}return r}function Js(e){return e&&e.length?e[0]:i}function Zs(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:qu(n);return i<0&&(i=jt(r+i,0)),Fn(e,t,i)}function el(e){var t=null==e?0:e.length;return t?To(e,0,-1):[]}var tl=wo((function(e){var t=Nn(e,Vo);return t.length&&t[0]===e[0]?Ui(t):[]})),nl=wo((function(e){var t=ol(e),n=Nn(e,Vo);return t===ol(n)?t=i:n.pop(),n.length&&n[0]===e[0]?Ui(n,Ha(t,2)):[]})),rl=wo((function(e){var t=ol(e),n=Nn(e,Vo);return t="function"==typeof t?t:i,t&&n.pop(),n.length&&n[0]===e[0]?Ui(n,i,t):[]}));function il(e,t){return null==e?"":Bt.call(e,t)}function ol(e){var t=null==e?0:e.length;return t?e[t-1]:i}function al(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return n!==i&&(o=qu(n),o=o<0?jt(r+o,0):Ut(o,r-1)),t===t?fr(e,t,o):Mn(e,$n,o,!0)}function sl(e,t){return e&&e.length?uo(e,qu(t)):i}var ll=wo(cl);function cl(e,t){return e&&e.length&&t&&t.length?go(e,t):e}function ul(e,t,n){return e&&e.length&&t&&t.length?go(e,t,Ha(n,2)):e}function dl(e,t,n){return e&&e.length&&t&&t.length?go(e,t,i,n):e}var hl=Ba((function(e,t){var n=null==e?0:e.length,r=mi(e,t);return vo(e,Nn(t,(function(e){return as(e,n)?+e:e})).sort(ea)),r}));function pl(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],o=e.length;t=Ha(t,3);while(++r<o){var a=e[r];t(a,r,e)&&(n.push(a),i.push(r))}return vo(e,i),n}function fl(e){return null==e?e:Xt.call(e)}function ml(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&ss(e,t,n)?(t=0,n=r):(t=null==t?0:qu(t),n=n===i?r:qu(n)),To(e,t,n)):[]}function gl(e,t){return Ro(e,t)}function vl(e,t,n){return Oo(e,t,Ha(n,2))}function yl(e,t){var n=null==e?0:e.length;if(n){var r=Ro(e,t);if(r<n&&iu(e[r],t))return r}return-1}function bl(e,t){return Ro(e,t,!0)}function _l(e,t,n){return Oo(e,t,Ha(n,2),!0)}function wl(e,t){var n=null==e?0:e.length;if(n){var r=Ro(e,t,!0)-1;if(iu(e[r],t))return r}return-1}function El(e){return e&&e.length?Io(e):[]}function Sl(e,t){return e&&e.length?Io(e,Ha(t,2)):[]}function xl(e){var t=null==e?0:e.length;return t?To(e,1,t):[]}function kl(e,t,n){return e&&e.length?(t=n||t===i?1:qu(t),To(e,0,t<0?0:t)):[]}function Al(e,t,n){var r=null==e?0:e.length;return r?(t=n||t===i?1:qu(t),t=r-t,To(e,t<0?0:t,r)):[]}function Nl(e,t){return e&&e.length?Bo(e,Ha(t,3),!1,!0):[]}function Tl(e,t){return e&&e.length?Bo(e,Ha(t,3)):[]}var Cl=wo((function(e){return Po(Ti(e,1,du,!0))})),Rl=wo((function(e){var t=ol(e);return du(t)&&(t=i),Po(Ti(e,1,du,!0),Ha(t,2))})),Ol=wo((function(e){var t=ol(e);return t="function"==typeof t?t:i,Po(Ti(e,1,du,!0),i,t)}));function Il(e){return e&&e.length?Po(e):[]}function Dl(e,t){return e&&e.length?Po(e,Ha(t,2)):[]}function Ll(e,t){return t="function"==typeof t?t:i,e&&e.length?Po(e,i,t):[]}function Pl(e){if(!e||!e.length)return[];var t=0;return e=xn(e,(function(e){if(du(e))return t=jt(e.length,t),!0})),zn(t,(function(t){return Nn(e,Un(t))}))}function Ml(e,t){if(!e||!e.length)return[];var n=Pl(e);return null==t?n:Nn(n,(function(e){return bn(t,i,e)}))}var Fl=wo((function(e,t){return du(e)?wi(e,t):[]})),Bl=wo((function(e){return jo(xn(e,du))})),$l=wo((function(e){var t=ol(e);return du(t)&&(t=i),jo(xn(e,du),Ha(t,2))})),jl=wo((function(e){var t=ol(e);return t="function"==typeof t?t:i,jo(xn(e,du),i,t)})),Ul=wo(Pl);function Vl(e,t){return Uo(e||[],t||[],ci)}function Kl(e,t){return Uo(e||[],t||[],xo)}var Hl=wo((function(e){var t=e.length,n=t>1?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<o)r[i]=t[i].call(this,r[i]);return bn(e,this,r)}))})),Hc=wo((function(e,t){var n=ur(t,Ka(Hc));return Oa(e,S,i,t,n)})),Gc=wo((function(e,t){var n=ur(t,Ka(Gc));return Oa(e,x,i,t,n)})),zc=Ba((function(e,t){return Oa(e,A,i,i,i,t)}));function Xc(e,t){if("function"!=typeof e)throw new ot(l);return t=t===i?t:qu(t),wo(e,t)}function qc(e,t){if("function"!=typeof e)throw new ot(l);return t=null==t?0:jt(qu(t),0),wo((function(n){var r=n[t],i=zo(n,0,t);return r&&Tn(i,r),bn(e,this,i)}))}function Wc(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new ot(l);return xu(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Mc(e,t,{leading:r,maxWait:t,trailing:i})}function Yc(e){return Rc(e,1)}function Qc(e,t){return Hc(Ko(t),e)}function Jc(){if(!arguments.length)return[];var e=arguments[0];return lu(e)?e:[e]}function Zc(e){return vi(e,m)}function eu(e,t){return t="function"==typeof t?t:i,vi(e,m,t)}function tu(e){return vi(e,p|m)}function nu(e,t){return t="function"==typeof t?t:i,vi(e,p|m,t)}function ru(e,t){return null==t||bi(e,t,Ed(t))}function iu(e,t){return e===t||e!==e&&t!==t}var ou=Aa(Fi),au=Aa((function(e,t){return e>=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(++n<r){var a=t[n],s=Sd(a),l=-1,c=s.length;while(++l<c){var u=s[l],d=e[u];(d===i||iu(d,lt[u])&&!dt.call(e,u))&&(e[u]=a[u])}}return e})),sd=wo((function(e){return e.push(i,Da),bn(Nd,i,e)}));function ld(e,t){return Pn(e,Ha(t,3),Oi)}function cd(e,t){return Pn(e,Ha(t,3),Ii)}function ud(e,t){return null==e?e:Ci(e,Ha(t,3),Sd)}function dd(e,t){return null==e?e:Ri(e,Ha(t,3),Sd)}function hd(e,t){return e&&Oi(e,Ha(t,3))}function pd(e,t){return e&&Ii(e,Ha(t,3))}function fd(e){return null==e?[]:Di(e,Ed(e))}function md(e){return null==e?[]:Di(e,Sd(e))}function gd(e,t,n){var r=null==e?i:Li(e,t);return r===i?n:r}function vd(e,t){return null!=e&&es(e,t,Bi)}function yd(e,t){return null!=e&&es(e,t,$i)}var bd=_a((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=ft.call(t)),e[t]=n}),Ah(Rh)),_d=_a((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=ft.call(t)),dt.call(e,t)?e[t].push(n):e[t]=[n]}),Ha),wd=wo(Ki);function Ed(e){return uu(e)?ii(e):no(e)}function Sd(e){return uu(e)?ii(e,!0):ro(e)}function xd(e,t){var n={};return t=Ha(t,3),Oi(e,(function(e,r,i){fi(n,t(e,r,i),e)})),n}function kd(e,t){var n={};return t=Ha(t,3),Oi(e,(function(e,r,i){fi(n,r,t(e,r,i))})),n}var Ad=ca((function(e,t,n){lo(e,t,n)})),Nd=ca((function(e,t,n,r){lo(e,t,n,r)})),Td=Ba((function(e,t){var n={};if(null==e)return n;var r=!1;t=Nn(t,(function(t){return t=Ho(t,e),r||(r=t.length>1),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(++r<o){var a=null==e?i:e[Os(t[r])];a===i&&(r=o,a=n),e=wu(a)?a.call(e):a}return e}function Dd(e,t,n){return null==e?e:xo(e,t,n)}function Ld(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:xo(e,t,n,r)}var Pd=Ra(Ed),Md=Ra(Sd);function Fd(e,t,n){var r=lu(e),i=r||pu(e)||ju(e);if(t=Ha(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:xu(e)&&wu(o)?xr(Et(e)):{}}return(i?wn:Oi)(e,(function(e,r,i){return t(n,e,r,i)})),n}function Bd(e,t){return null==e||Mo(e,t)}function $d(e,t,n){return null==e?e:Fo(e,t,Ko(n))}function jd(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:Fo(e,t,Ko(n),r)}function Ud(e){return null==e?[]:Yn(e,Ed(e))}function Vd(e){return null==e?[]:Yn(e,Sd(e))}function Kd(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=Yu(n),n=n===n?n:0),t!==i&&(t=Yu(t),t=t===t?t:0),gi(Yu(e),t,n)}function Hd(e,t,n){return t=Xu(t),n===i?(n=t,t=0):n=Xu(n),e=Yu(e),ji(e,t,n)}function Gd(e,t,n){if(n&&"boolean"!=typeof n&&ss(e,t,n)&&(t=n=i),n===i&&("boolean"==typeof t?(n=t,t=i):"boolean"==typeof e&&(n=e,e=i)),e===i&&t===i?(e=0,t=1):(e=Xu(e),t===i?(t=e,e=0):t=Xu(t)),e>t){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<t?e+Sa(t-r,n):e}function rh(e,t,n){e=Zu(e),t=qu(t);var r=t?mr(e):0;return t&&r<t?Sa(t-r,n)+e:e}function ih(e,t,n){return n||null==t?t=0:t&&(t=+t),Gt(Zu(e).replace(Fe,""),t||0)}function oh(e,t,n){return t=(n?ss(e,t,n):t===i)?1:qu(t),_o(Zu(e),t)}function ah(){var e=arguments,t=Zu(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var sh=fa((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));function lh(e,t,n){return n&&"number"!=typeof n&&ss(e,t,n)&&(t=n=i),n=n===i?$:n>>>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(++r<t){var i=e[r];if(bn(i[0],this,n))return bn(i[1],this,n)}}))}function kh(e){return yi(vi(e,p))}function Ah(e){return function(){return e}}function Nh(e,t){return null==e||e!==e?t:e}var Th=ya(),Ch=ya(!0);function Rh(e){return e}function Oh(e){return to("function"==typeof e?e:vi(e,p))}function Ih(e){return ao(vi(e,p))}function Dh(e,t){return so(e,vi(t,p))}var Lh=wo((function(e,t){return function(n){return Ki(n,e,t)}})),Ph=wo((function(e,t){return function(n){return Ki(e,n,t)}}));function Mh(e,t,n){var r=Ed(t),i=Di(t,r);null!=n||xu(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=Di(t,Ed(t)));var o=!(xu(n)&&"chain"in n)||!!n.chain,a=wu(e);return wn(i,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__),i=n.__actions__=ia(this.__actions__);return i.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Tn([this.value()],arguments))})})),e}function Fh(){return sn._===this&&(sn._=gt),this}function Bh(){}function $h(e){return e=qu(e),wo((function(t){return uo(t,e)}))}var jh=Ea(Nn),Uh=Ea(Sn),Vh=Ea(On);function Kh(e){return ls(e)?Un(Os(e)):mo(e)}function Hh(e){return function(t){return null==e?i:Li(e,t)}}var Gh=ka(),zh=ka(!0);function Xh(){return[]}function qh(){return!1}function Wh(){return{}}function Yh(){return""}function Qh(){return!0}function Jh(e,t){if(e=qu(e),e<1||e>M)return[];var n=$,r=Ut(e,$);t=Ha(t),e-=$;var i=zn(r,t);while(++n<e)t(n);return i}function Zh(e){return lu(e)?Nn(e,Os):$u(e)?[e]:ia(Rs(Zu(e)))}function ep(e){var t=++ht;return Zu(e)+t}var tp=wa((function(e,t){return e+t}),0),np=Ta("ceil"),rp=wa((function(e,t){return e/t}),1),ip=Ta("floor");function op(e){return e&&e.length?ki(e,Rh,Fi):i}function ap(e,t){return e&&e.length?ki(e,Ha(t,2),Fi):i}function sp(e){return jn(e,Rh)}function lp(e,t){return jn(e,Ha(t,2))}function cp(e){return e&&e.length?ki(e,Rh,io):i}function up(e,t){return e&&e.length?ki(e,Ha(t,2),io):i}var dp=wa((function(e,t){return e*t}),1),hp=Ta("round"),pp=wa((function(e,t){return e-t}),0);function fp(e){return e&&e.length?Gn(e,Rh):0}function mp(e,t){return e&&e.length?Gn(e,Ha(t,2)):0}return Er.after=Cc,Er.ary=Rc,Er.assign=ed,Er.assignIn=td,Er.assignInWith=nd,Er.assignWith=rd,Er.at=id,Er.before=Oc,Er.bind=Ic,Er.bindAll=Sh,Er.bindKey=Dc,Er.castArray=Jc,Er.chain=Gl,Er.chunk=Ps,Er.compact=Ms,Er.concat=Fs,Er.cond=xh,Er.conforms=kh,Er.constant=Ah,Er.countBy=nc,Er.create=od,Er.curry=Lc,Er.curryRight=Pc,Er.debounce=Mc,Er.defaults=ad,Er.defaultsDeep=sd,Er.defer=Fc,Er.delay=Bc,Er.difference=Bs,Er.differenceBy=$s,Er.differenceWith=js,Er.drop=Us,Er.dropRight=Vs,Er.dropRightWhile=Ks,Er.dropWhile=Hs,Er.fill=Gs,Er.filter=ic,Er.flatMap=sc,Er.flatMapDeep=lc,Er.flatMapDepth=cc,Er.flatten=qs,Er.flattenDeep=Ws,Er.flattenDepth=Ys,Er.flip=$c,Er.flow=Th,Er.flowRight=Ch,Er.fromPairs=Qs,Er.functions=fd,Er.functionsIn=md,Er.groupBy=hc,Er.initial=el,Er.intersection=tl,Er.intersectionBy=nl,Er.intersectionWith=rl,Er.invert=bd,Er.invertBy=_d,Er.invokeMap=fc,Er.iteratee=Oh,Er.keyBy=mc,Er.keys=Ed,Er.keysIn=Sd,Er.map=gc,Er.mapKeys=xd,Er.mapValues=kd,Er.matches=Ih,Er.matchesProperty=Dh,Er.memoize=jc,Er.merge=Ad,Er.mergeWith=Nd,Er.method=Lh,Er.methodOf=Ph,Er.mixin=Mh,Er.negate=Uc,Er.nthArg=$h,Er.omit=Td,Er.omitBy=Cd,Er.once=Vc,Er.orderBy=vc,Er.over=jh,Er.overArgs=Kc,Er.overEvery=Uh,Er.overSome=Vh,Er.partial=Hc,Er.partialRight=Gc,Er.partition=yc,Er.pick=Rd,Er.pickBy=Od,Er.property=Kh,Er.propertyOf=Hh,Er.pull=ll,Er.pullAll=cl,Er.pullAllBy=ul,Er.pullAllWith=dl,Er.pullAt=hl,Er.range=Gh,Er.rangeRight=zh,Er.rearg=zc,Er.reject=wc,Er.remove=pl,Er.rest=Xc,Er.reverse=fl,Er.sampleSize=Sc,Er.set=Dd,Er.setWith=Ld,Er.shuffle=xc,Er.slice=ml,Er.sortBy=Nc,Er.sortedUniq=El,Er.sortedUniqBy=Sl,Er.split=lh,Er.spread=qc,Er.tail=xl,Er.take=kl,Er.takeRight=Al,Er.takeRightWhile=Nl,Er.takeWhile=Tl,Er.tap=zl,Er.throttle=Wc,Er.thru=Xl,Er.toArray=zu,Er.toPairs=Pd,Er.toPairsIn=Md,Er.toPath=Zh,Er.toPlainObject=Qu,Er.transform=Fd,Er.unary=Yc,Er.union=Cl,Er.unionBy=Rl,Er.unionWith=Ol,Er.uniq=Il,Er.uniqBy=Dl,Er.uniqWith=Ll,Er.unset=Bd,Er.unzip=Pl,Er.unzipWith=Ml,Er.update=$d,Er.updateWith=jd,Er.values=Ud,Er.valuesIn=Vd,Er.without=Fl,Er.words=wh,Er.wrap=Qc,Er.xor=Bl,Er.xorBy=$l,Er.xorWith=jl,Er.zip=Ul,Er.zipObject=Vl,Er.zipObjectDeep=Kl,Er.zipWith=Hl,Er.entries=Pd,Er.entriesIn=Md,Er.extend=td,Er.extendWith=nd,Mh(Er,Er),Er.add=tp,Er.attempt=Eh,Er.camelCase=zd,Er.capitalize=Xd,Er.ceil=np,Er.clamp=Kd,Er.clone=Zc,Er.cloneDeep=tu,Er.cloneDeepWith=nu,Er.cloneWith=eu,Er.conformsTo=ru,Er.deburr=qd,Er.defaultTo=Nh,Er.divide=rp,Er.endsWith=Wd,Er.eq=iu,Er.escape=Yd,Er.escapeRegExp=Qd,Er.every=rc,Er.find=oc,Er.findIndex=zs,Er.findKey=ld,Er.findLast=ac,Er.findLastIndex=Xs,Er.findLastKey=cd,Er.floor=ip,Er.forEach=uc,Er.forEachRight=dc,Er.forIn=ud,Er.forInRight=dd,Er.forOwn=hd,Er.forOwnRight=pd,Er.get=gd,Er.gt=ou,Er.gte=au,Er.has=vd,Er.hasIn=yd,Er.head=Js,Er.identity=Rh,Er.includes=pc,Er.indexOf=Zs,Er.inRange=Hd,Er.invoke=wd,Er.isArguments=su,Er.isArray=lu,Er.isArrayBuffer=cu,Er.isArrayLike=uu,Er.isArrayLikeObject=du,Er.isBoolean=hu,Er.isBuffer=pu,Er.isDate=fu,Er.isElement=mu,Er.isEmpty=gu,Er.isEqual=vu,Er.isEqualWith=yu,Er.isError=bu,Er.isFinite=_u,Er.isFunction=wu,Er.isInteger=Eu,Er.isLength=Su,Er.isMap=Au,Er.isMatch=Nu,Er.isMatchWith=Tu,Er.isNaN=Cu,Er.isNative=Ru,Er.isNil=Iu,Er.isNull=Ou,Er.isNumber=Du,Er.isObject=xu,Er.isObjectLike=ku,Er.isPlainObject=Lu,Er.isRegExp=Pu,Er.isSafeInteger=Mu,Er.isSet=Fu,Er.isString=Bu,Er.isSymbol=$u,Er.isTypedArray=ju,Er.isUndefined=Uu,Er.isWeakMap=Vu,Er.isWeakSet=Ku,Er.join=il,Er.kebabCase=Jd,Er.last=ol,Er.lastIndexOf=al,Er.lowerCase=Zd,Er.lowerFirst=eh,Er.lt=Hu,Er.lte=Gu,Er.max=op,Er.maxBy=ap,Er.mean=sp,Er.meanBy=lp,Er.min=cp,Er.minBy=up,Er.stubArray=Xh,Er.stubFalse=qh,Er.stubObject=Wh,Er.stubString=Yh,Er.stubTrue=Qh,Er.multiply=dp,Er.nth=sl,Er.noConflict=Fh,Er.noop=Bh,Er.now=Tc,Er.pad=th,Er.padEnd=nh,Er.padStart=rh,Er.parseInt=ih,Er.random=Gd,Er.reduce=bc,Er.reduceRight=_c,Er.repeat=oh,Er.replace=ah,Er.result=Id,Er.round=hp,Er.runInContext=e,Er.sample=Ec,Er.size=kc,Er.snakeCase=sh,Er.some=Ac,Er.sortedIndex=gl,Er.sortedIndexBy=vl,Er.sortedIndexOf=yl,Er.sortedLastIndex=bl,Er.sortedLastIndexBy=_l,Er.sortedLastIndexOf=wl,Er.startCase=ch,Er.startsWith=uh,Er.subtract=pp,Er.sum=fp,Er.sumBy=mp,Er.template=dh,Er.times=Jh,Er.toFinite=Xu,Er.toInteger=qu,Er.toLength=Wu,Er.toLower=hh,Er.toNumber=Yu,Er.toSafeInteger=Ju,Er.toString=Zu,Er.toUpper=ph,Er.trim=fh,Er.trimEnd=mh,Er.trimStart=gh,Er.truncate=vh,Er.unescape=yh,Er.uniqueId=ep,Er.upperCase=bh,Er.upperFirst=_h,Er.each=uc,Er.eachRight=dc,Er.first=Js,Mh(Er,function(){var e={};return Oi(Er,(function(t,n){dt.call(Er.prototype,n)||(e[n]=t)})),e}(),{chain:!1}),Er.VERSION=o,wn(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Er[e].placeholder=Er})),wn(["drop","take"],(function(e,t){Nr.prototype[e]=function(n){n=n===i?1:jt(qu(n),0);var r=this.__filtered__&&!t?new Nr(this):this.clone();return r.__filtered__?r.__takeCount__=Ut(n,r.__takeCount__):r.__views__.push({size:Ut(n,$),type:e+(r.__dir__<0?"Right":"")}),r},Nr.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),wn(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=n==I||n==L;Nr.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Ha(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),wn(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Nr.prototype[e]=function(){return this[n](1).value()[0]}})),wn(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Nr.prototype[e]=function(){return this.__filtered__?new Nr(this):this[n](1)}})),Nr.prototype.compact=function(){return this.filter(Rh)},Nr.prototype.find=function(e){return this.filter(e).head()},Nr.prototype.findLast=function(e){return this.reverse().find(e)},Nr.prototype.invokeMap=wo((function(e,t){return"function"==typeof e?new Nr(this):this.map((function(n){return Ki(n,e,t)}))})),Nr.prototype.reject=function(e){return this.filter(Uc(Ha(e)))},Nr.prototype.slice=function(e,t){e=qu(e);var n=this;return n.__filtered__&&(e>0||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<this.set.length;n++)if(O(this.set[n],e,this.options))return!0;return!1}}e.exports=r;const i=n(23624),o=new i({max:1e3}),a=n(13990),s=n(51565),l=n(41361),c=n(24517),{safeRe:u,t:d,comparatorTrimReplace:h,tildeTrimReplace:p,caretTrimReplace:f}=n(72841),{FLAG_INCLUDE_PRERELEASE:m,FLAG_LOOSE:g}=n(79543),v=e=>"<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;r<e.length;r++)if(!e[r].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(l(e[n].semver),e[n].semver!==s.ANY&&e[n].semver.prerelease.length>0){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<o)return t}return e})):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(r("SemVer.compare",this.version,this.options,e),!(e instanceof u)){if("string"===typeof e&&e===this.version)return 0;e=new u(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof u||(e=new u(e,this.options)),c(this.major,e.major)||c(this.minor,e.minor)||c(this.patch,e.patch)}comparePre(e){if(e instanceof u||(e=new u(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const n=this.prerelease[t],i=e.prerelease[t];if(r("prerelease compare",t,n,i),void 0===n&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===n)return-1;if(n!==i)return c(n,i)}while(++t)}compareBuild(e){e instanceof u||(e=new u(e,this.options));let t=0;do{const n=this.build[t],i=e.build[t];if(r("prerelease compare",t,n,i),void 0===n&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===n)return-1;if(n!==i)return c(n,i)}while(++t)}inc(e,t,n){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,n),this.inc("pre",t,n);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const e=Number(n)?1:0;if(!t&&!1===n)throw new Error("invalid increment argument: identifier is empty");if(0===this.prerelease.length)this.prerelease=[e];else{let r=this.prerelease.length;while(--r>=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:e<n?-1:1},r=(e,t)=>n(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<e.set.length;++i){const t=e.set[i];let a=null;t.forEach((e=>{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<t.set.length;++r){const n=t.set[r];let a=null,s=null;if(n.forEach((e=>{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<d.length?u:t}},40583:function(e,t,n){const r=n(37476),i=n(51565),{ANY:o}=i,a=n(27229),s=n(87851),l=(e,t,n={})=>{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<a;n++){var s=e[n];r(s)?t=i.call(t,o.call(s)):t.push(s)}return t};a.wrap=function(e){return function(){return e(a(arguments))}}},37101:function(e){e.exports=function(e){return!(!e||"string"===typeof e)&&(e instanceof Array||Array.isArray(e)||e.length>=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<n.length;r++){const t=n[r].type;"systemServiceUpgraded"===t&&"True"!==n[r]?.status&&e.push({id:"systemService",message:"The systemService is upgrading"})}return this.metadata?.state?.message&&this.metadata?.state?.error&&e.push({id:"message",message:`${this.metadata.state.message}`}),e}get createRepo(){const e=this?.status?.conditions||[],t=e.find((e=>"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<this.nodeUpgradeMessage.length;r++)e+=this.nodeUpgradeMessage[r].percent;e=Math.floor(e/this.nodeUpgradeMessage.length);const t=this?.status?.conditions||[],n=t.find((e=>"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;i<r.length;i++){const o=r[i].type;"SystemServicesUpgraded"===o&&("True"===r[i].status?(e=100,t="Succeeded"):e=50,n.push({name:"system services",state:t,percent:e,message:r[i]?.message}))}return 0===n.length&&n.push({name:"system services",state:t,percent:e}),n}get totalPercent(){const e=this.nodeTotalPercent*this.nodeUpgradeMessage.length,t=this.sysServiceUpgradeMessage?.[0].percent;return Math.floor((e+t)/(this.nodeUpgradeMessage.length+1))}}},25418:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return c}});var r=n(65852),i=n(52225),o=n.n(i),a=n(24759),s=n(32766),l=n(24222);class c extends l["default"]{get canStartedDownload(){const e=(0,r.Jt)(this,"status.conditions"),t=((0,a.jq)(e,"type","DownloadReady")||{}).status;return"True"===t}downloadLog(e){const t=o()(window.history.href),n=this.$rootGetters["clusterId"],r=`/k8s/clusters/${n}`;this.$rootGetters["isMultiCluster"]?window.location.href=`${t.origin}${r}/v1/harvester/${s.rk.UPGRADE_LOG}s/${this.id}/download?archiveName=${e}`:window.location.href=`${t.origin}/v1/harvester/${s.rk.UPGRADE_LOG}s/${this.id}/download?archiveName=${e}`}fileIsReady(e){const t=(this.status?.archives||{})[e];return!0===t?.ready||t?.reason}downloadArchivesStatus(e){return(this.status?.archives||{})[e]?.reason}get latestArchivesFileName(){const e=this.status?.archives||{},t=`${this.metadata.name}-archive-`,n=Object.keys(e).map((e=>e.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.length;n++)e[n].macAddress&&(e[n].macAddress="");const t=this.volumeClaimTemplates.map((e=>(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.expiresIn<e?{expired:!1,expiring:!0}:null}get expiresString(){if(void 0===this.expires)return"";if(this.expireData.expired)return this.t("manager.cloudCredentials.expired");const e=(0,u.ZD)(this.$rootGetters["prefs/get"](h.DX)),t=(0,u.ZD)(this.$rootGetters["prefs/get"](h.G$));return f()(this.expires).format(`${e} ${t}`)}get expiresIn(){if(void 0===this.expires)return null;const e=this.expires,t=Date.now(),n=e-t;return n<0?0:n}renew(){const e=v[this.provider]?.renew;return e||m.error("No fn renew function for ",this.provider),e({cloudCredential:this,$ctx:this.$ctx})}async renewBulk(e=[]){const t=v[this.provider]?.renewBulk;return t||m.error("No fn renew bulk function for ",this.provider),t({cloudCredentials:e,$ctx:this.$ctx})}}},35783:function(e,t,n){"use strict";n.r(t),n.d(t,{ANNOTATIONS_CONTAINS_PROTECTED:function(){return o},LABEL_CONTAINS_PROTECTED:function(){return i},default:function(){return a}});var r=n(79325);const i=["io.cattle.lifecycle","kubernetes.io","cattle.io","k3s.io"],o=["coreos.com","cattle.io","k3s.io","kubernetes.io","k3s.io"];class a extends r.A{get systemLabels(){return Object.keys(this.labels||{}).filter((e=>i.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;t<r[i];t++)e.push(Object.assign({state:i},n));return e}),[])}clusterIdFromBundleDeploymentLabels(e){const t=e?.[l.Hs.CLUSTER_NAMESPACE],n=e?.[l.Hs.CLUSTER];return`${t}/${n}`}}const v=new g;var y=v;function b(e){return!!e.match(/^[a-f0-9]{40,}$/i)}class _ extends d.A{applyDefaults(){const e=this.spec||{},t=this.metadata||{};t.namespace=this.$rootGetters["workspace"],e.repo=e.repo||"",e.branch||e.revision||(e.branch="master"),e.paths=e.paths||[],e.clientSecretName=e.clientSecretName||null,e["correctDrift"]={enabled:!1},(0,u.hZ)(this,"spec",e),(0,u.hZ)(this,"metadata",t)}get _availableActions(){const e=super._availableActions;return(0,c.PT)(e,0,{action:"pause",label:"Pause",icon:"icon icon-pause",bulkable:!0,enabled:!!this.links.update&&!this.spec?.paused}),(0,c.PT)(e,1,{action:"unpause",label:"Unpause",icon:"icon icon-play",bulkable:!0,enabled:!!this.links.update&&!0===this.spec?.paused}),(0,c.PT)(e,2,{action:"forceUpdate",label:"Force Update",icon:"icon icon-refresh",bulkable:!0,enabled:!!this.links.update}),(0,c.PT)(e,3,{divider:!0}),e}pause(){this.spec.paused=!0,this.save()}unpause(){this.spec.paused=!1,this.save()}forceUpdate(){const e=this.spec.forceSyncGeneration||1;this.spec.forceSyncGeneration=e+1,this.save()}get state(){return!0===this.spec?.paused?"paused":this.metadata?.state?.name||"unknown"}get targetClusters(){const e=this.$getters["byId"](s.Hs.WORKSPACE,this.metadata.namespace),t=e?.clusters||[],n=e?.clusterGroups||[];if("fleet-local"===e?.id){const e=(0,c.jq)(n,"id","fleet-local/default");return e?e.targetClusters:[]}if(!this.spec.targets)return[];const i=[];for(const o of this.spec.targets)if(o.clusterName){const e=(0,c.jq)(t,"metadata.name",o.clusterName);e&&(0,c.PG)(i,e)}else if(o.clusterGroup){const e=(0,c.jq)(n,{"metadata.namespace":this.metadata.namespace,"metadata.name":o.clusterGroup});e&&(0,c.cn)(i,e.targetClusters)}else if(o.clusterGroupSelector){const e=(0,r._R)(o.clusterGroupSelector),t=(0,r.wC)(n,e);for(const n of t)(0,c.cn)(i,n.targetClusters)}else if(o.clusterSelector){const e=(0,r._R)(o.clusterSelector),n=(0,r.wC)(t,e);(0,c.cn)(i,n)}return i}get github(){const e=this.spec.repo.match(/^https?:\/\/github\.com\/(.*?)(\.git)?\/*$/);return!!e&&e[1]}get repoIcon(){return this.github?"icon icon-github":""}get repoDisplay(){let e=this.spec.repo;return e?(e=e.replace(/.git$/,""),e=e.replace(/^https:\/\//,""),e=e.replace(/\/+$/,""),this.github?this.github:e):null}get commitDisplay(){const e=this.spec,t=this.status?.commit?.substr(0,7);return e&&e.repo?e.revision&&b(e.revision)?e.revision.substr(0,7):e.revision?e.revision:e.branch?e.branch+(t?` @ ${t}`:""):t:null}get targetInfo(){let e=null,t=null,n=null,i=null;const a=this.spec.targets||[];if(i=o().dump(a),"[]\n"===i&&(i="# - name:\n# clusterSelector:\n# matchLabels:\n# foo: bar\n# matchExpressions:\n# - key: foo\n# op: In\n# values: [bar, baz]\n# clusterGroup: foo\n# clusterGroupSelector:\n# matchLabels:\n# foo: bar\n# matchExpressions:\n# - key: foo\n# op: In\n# values: [bar, baz]\n"),"fleet-local"===this.metadata.namespace)e="local";else if(a.length){if(1===a.length){const i=a[0];if(Object.keys(i).length>1)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<e?this.mgmt?.metadata?.creationTimestamp:super.creationTimestamp}get detailsAction(){const e=this.mgmt?.isReady&&!this.hasError;return{action:"explore",label:this.$rootGetters["i18n/t"]("cluster.explore"),enabled:e}}get _availableActions(){const e=super._availableActions,t=this.mgmt?.isLocal;if(t){const t=e.findIndex((e=>"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]}<br>`),"")}}}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("<br>")}{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("<br>")}}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;r<t.length;r++)"fulfilled"!==t[r].status&&this.$dispatch("growl/fromError",{title:this.$rootGetters["i18n/t"]("cluster.snapshot.errorTitle",{name:e[r].nameDisplay}),err:t[r].value},{root:!0})}takeSnapshot(){if(this.isRke1)return this.$dispatch("rancher/request",{url:`/v3/clusters/${escape(this.mgmt.id)}?action=backupEtcd`,method:"post"},{root:!0});{const e=this.spec?.rkeConfig?.etcdSnapshotCreate?.generation||0,t={generation:e+1};return this.spec?.rkeConfig?.etcd?.s3&&(t.s3=this.spec.rkeConfig.etcd.s3),(0,a.hZ)(this.spec.rkeConfig,"etcdSnapshotCreate",t),this.save()}}get etcdSnapshots(){const e=this.$rootGetters["management/all"]({type:r.xO});return e.filter((e=>e.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]&&u<r.length)c/=r[u],u++;s=c<5?Math.floor(10*c)/10:Math.floor(c),s+=` ${this.t(`unit.${i[u]}`,{count:s})} `,s=s.trim(),e.push({label:"Duration",content:s})}}else t===o.oU.CRON_JOB&&e.push({label:"Last Scheduled Time",content:this?.status?.lastScheduleTime,formatter:"LiveDate"});switch(e.push({label:"Image",content:this.imageNames,formatter:"PodImages"}),t){case o.oU.DEPLOYMENT:e.push(n.ready,n.upToDate,n.available,u,n.endpoint);break;case o.oU.DAEMON_SET:e.push(n.ready,u,n.endpoint);break;case o.oU.REPLICA_SET:e.push(n.ready,u,n.endpoint);break;case o.oU.STATEFUL_SET:e.push(n.ready,u,n.endpoint);break;case o.oU.REPLICATION_CONTROLLER:e.push(n.ready,u,n.endpoint);break;case o.oU.JOB:e.push(n.endpoint);break;case o.oU.CRON_JOB:e.push(n.endpoint);break;case o.Sm:e.push(n.ready);break;default:break}return e}redeploy(){const e=(new Date).toISOString().replace(/\.\d+Z$/,"Z");this.spec.template.metadata||(0,a.hZ)(this.spec.template,"metadata",{});const t=this.spec.template.metadata.annotations||{};t[i.ht]=e,(0,a.hZ)(this.spec.template.metadata,"annotations",t),this.save()}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}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<m.length;r++)g.map.set(m[r][f],m[r]);return a||(s?(g.havePage=!1,g.haveNamespace=s,g.haveAll=!1):(g.havePage=!1,g.haveNamespace=!1,g.haveAll=!0)),m}function w(e,{type:t,data:n,ctx:r}){const{getters:i}=r,o=i.keyFieldForType(t),a=f(r,n?.[0]?.type);n.forEach((n=>{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<c.length;r++)u.map.set(c[r][s],c[r]);return u.havePage=a,u.haveNamespace=void 0,u.haveAll=void 0,c},forgetAll(e,{type:t}){const n=d(e,t);(0,i.IU)(n.list),n.map.clear(),n.generation++},setHaveAll(e,{type:t}){const n=d(e,t);n.haveAll=!0},setHaveNamespace(e,{type:t,namespace:n}){const r=d(e,t);r.haveNamespace=n},loadedAll(e,{type:t}){const n=d(e,t);n.generation++,n.haveAll=!0},remove(e,t){t&&y(e,t,this.getters)},reset(e){v(e,this.commit)},forgetType:g,incrementLoadCounter(e,t){const n=e.types[t];n&&n.loadCounter++}}},33781:function(e,t,n){"use strict";n.d(t,{AZ:function(){return l},BZ:function(){return s},Rq:function(){return c}});var r=n(4284),i=n(65852),o=n(9776);const a={[r.yx]:"_id",default:"id"};function s(e){return a[e]||a["default"]}function l(e){return e=(e?.type||e||"").toLowerCase(),e}async function c(e,t,n,r,a,s){const l=await a.dispatch(`${s}/cleanForDiff`,e,{root:!0}),c=await a.dispatch(`${s}/cleanForDiff`,t.toJSON(),{root:!0}),u=await a.dispatch(`${s}/cleanForDiff`,n.toJSON(),{root:!0}),d=(0,i.no)(l,u),h=(0,i.no)(l,c),p=(0,i.MA)(d,h);if(o.log("Background Change",d),o.log("User Change",h),o.log("Conflicts",p),t.metadata.resourceVersion=n.metadata.resourceVersion,(0,i.TJ)(t,d),p.length){const e=[r["i18n/t"]("validation.conflict",{fields:p.join(", "),fieldCount:p.length})];return e}return!1}},79260:function(e,t,n){"use strict";n.d(t,{qE:function(){return J},xj:function(){return ae},jv:function(){return ie},uU:function(){return le},Ay:function(){return fe},rv:function(){return he},hb:function(){return oe},aB:function(){return ue},ch:function(){return ce},gs:function(){return de}});var r=n(71445),i=n(75040),o=n(97538),a=n(24759),s=n(15510),l=n.n(s);function c(e,t,n,r){const i=r.includes("verifyLocal"),o=e.localOutputRefs||[],a=e.globalOutputRefs||[];i?l()(o)&&l()(a)&&n.push(t["i18n/t"]("validation.flowOutput.both")):l()(a)&&n.push(t["i18n/t"]("validation.flowOutput.global"))}function u(e,t,n,r){l()(e)||l()(e.api_key)&&n.push(t["i18n/t"]("validation.output.logdna.apiKey"))}var d=n(29888);function h(e,t,n,r){const{ports:i,type:o}=e;return"ExternalName"===o?n:l()(i)?(n.push(t["i18n/t"]("validation.required",{key:"Port Rules"})),n):(i.forEach(((e,r,i)=>{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<n.length;r++)n[r].divider&&n[r-1].divider&&((0,a.Wq)(n,r,1),r--);return n}get _availableActions(){const e=this.currentRouter().currentRoute.value,t=(0,Y.A)(this.$rootState,W.c7.ACTION,W.ug.TABLE,e,this),n=[{divider:!0},{action:this.canUpdate?"goToEdit":"goToViewConfig",label:this.t(this.canUpdate?"action.edit":"action.view"),icon:"icon icon-edit",enabled:this.canCustomEdit},{action:this.canEditYaml?"goToEditYaml":"goToViewYaml",label:this.t(this.canEditYaml?"action.editYaml":"action.viewYaml"),icon:"icon icon-file",enabled:this.canYaml},{action:this.canCustomEdit?"goToClone":"cloneYaml",label:this.t("action.clone"),icon:"icon icon-copy",enabled:this.canClone&&this.canCreate&&(this.canCustomEdit||this.canYaml)},{divider:!0},{action:"download",label:this.t("action.download"),icon:"icon icon-download",bulkable:!0,bulkAction:"downloadBulk",enabled:this.canYaml,weight:-9},{action:"viewInApi",label:this.t("action.viewInApi"),icon:"icon icon-external-link",enabled:this.canViewInApi},{action:"promptRemove",altAction:"remove",label:this.t("action.remove"),icon:"icon icon-trash",bulkable:!0,enabled:this.canDelete,bulkAction:"promptRemove",weight:-10}];return t.length&&(n.push({divider:!0}),t.forEach((e=>{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;m<h.length;m++){const r=[];g=h[m],f=a[g],_=(0,c.Jt)(e,g),w=(0,u.HK)(o,g,this.$rootGetters);const i=f?.type?(0,d.AZ)(f.type):null,y=p()(_);if(!t.ignoreFields||!t.ignoreFields.includes(g))if(void 0===_&&(_=null),y&&(i&&(e[g]=(0,s.i6)(_,i)),f.nullable&&0===_.length&&b.includes(i)&&(_=null,e[g]=_)),"boolean"===i?(0,u.p6)(_,f,w,this.$rootGetters,r):((0,u.xR)(_,f,w,this.$rootGetters,r),(0,u.iK)(_,f,w,this.$rootGetters,r)),r.length>0)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<e.length;n++){const r=e.charCodeAt(n);t=(t<<5)-t+r,t&=t}return new Uint32Array([t])[0].toString(36)}function o(e){return i(JSON.stringify(e,null,2))}function a(e){return"string"===typeof e?0===e.length:0===e.byteLength}function s(e){return"string"===typeof e&&(e=new r.Buffer(e,"utf8")),ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}},76198:function(e,t,n){"use strict";n.d(t,{u:function(){return T},KA:function(){return A},dQ:function(){return R},Fx:function(){return C}});var r=n(87516),i=n(26711);const o=64,a=16;function s(){this.state=[1732584193,4023233417,2562383102,271733878],this.buffer=new DataView(new ArrayBuffer(o)),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}var l=s;function c(e,t,n,r,i,o){return t=(t+e&4294967295)+(r+o&4294967295)&4294967295,(t<<i|t>>>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<o;e++)t.setUint8(e,0);this.hashBuffer(),this.bufferLength=0}for(let a=this.bufferLength;a<o-8;a++)t.setUint8(a,0);t.setUint32(o-8,i>>>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<f;e++)t.setUint8(e,0);this.hashBuffer(),this.bufferLength=0}for(let r=this.bufferLength;r<f-8;r++)t.setUint8(r,0);t.setUint32(f-8,Math.floor(e/4294967296),!0),t.setUint32(f-4,e),this.hashBuffer(),this.finished=!0}const t=new r.Buffer(m);for(let n=0;n<8;n++)t[4*n]=this.state[n]>>>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<f;d++){if(d<16)this.temp[d]=(255&t[4*d])<<24|(255&t[4*d+1])<<16|(255&t[4*d+2])<<8|255&t[4*d+3];else{let e=this.temp[d-2];const t=(e>>>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;n<t;n++)this.write(e[n]);return this},E.prototype.write=function(e){this.block[this.offset]|=(255&e)<<this.shift,this.shift?this.shift-=8:(this.offset++,this.shift=24),16===this.offset&&this.processBlock()},E.prototype.digest=function(e){this.write(128),(this.offset>14||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<t;n++)r[n]=e[n];return r}function d(e){if(Array.isArray(e))return u(e)}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e,t,n){return t=_(t),T(e,S()?Reflect.construct(t,n||[],_(e).constructor):t.apply(e,n))}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t,n){if(S())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&C(i,n.prototype),i}function g(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,I(r.key),r)}}function v(e,t,n){return t&&g(e.prototype,t),n&&g(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function y(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=L(e))||t){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=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;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function T(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return h(e)}function C(e,t){return C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},C(e,t)}function R(e){return d(e)||x(e)||L(e)||k()}function O(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function I(e){var t=O(e,"string");return"symbol"==typeof t?t:t+""}function D(e){return D="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},D(e)}function L(e,t){if(e){if("string"==typeof e)return u(e,t);var n={}.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)?u(e,t):void 0}}function P(e){var t="function"==typeof Map?new Map:void 0;return P=function(e){if(null===e||!E(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return m(e,arguments,_(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),C(n,e)},P(e)}var M=function(){function e(){f(this,e)}return v(e,[{key:"add",value:function(e,t,n){if("string"!=typeof arguments[0])for(var r in arguments[0])this.add(r,arguments[0][r],arguments[1]);else(Array.isArray(e)?e:[e]).forEach((function(e){this[e]=this[e]||[],t&&this[e][n?"unshift":"push"](t)}),this)}},{key:"run",value:function(e,t){this[e]=this[e]||[],this[e].forEach((function(e){e.call(t&&t.context?t.context:t,t)}))}}])}(),F=function(){function e(t){f(this,e),this.jsep=t,this.registered={}}return v(e,[{key:"register",value:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];n.forEach((function(t){if("object"!==D(t)||!t.name||!t.init)throw new Error("Invalid JSEP plugin format");e.registered[t.name]||(t.init(e.jsep),e.registered[t.name]=t)}))}}])}(),B=function(){function e(t){f(this,e),this.expr=t,this.index=0}return v(e,[{key:"char",get:function(){return this.expr.charAt(this.index)}},{key:"code",get:function(){return this.expr.charCodeAt(this.index)}},{key:"throwError",value:function(e){var t=new Error(e+" at character "+this.index);throw t.index=this.index,t.description=e,t}},{key:"runHook",value:function(t,n){if(e.hooks[t]){var r={context:this,node:n};return e.hooks.run(t,r),r.node}return n}},{key:"searchHook",value:function(t){if(e.hooks[t]){var n={context:this};return e.hooks[t].find((function(e){return e.call(n.context,n),n.node})),n.node}}},{key:"gobbleSpaces",value:function(){var t=this.code;while(t===e.SPACE_CODE||t===e.TAB_CODE||t===e.LF_CODE||t===e.CR_CODE)t=this.expr.charCodeAt(++this.index);this.runHook("gobble-spaces")}},{key:"parse",value:function(){this.runHook("before-all");var t=this.gobbleExpressions(),n=1===t.length?t[0]:{type:e.COMPOUND,body:t};return this.runHook("after-all",n)}},{key:"gobbleExpressions",value:function(t){var n,r,i=[];while(this.index<this.expr.length)if(n=this.code,n===e.SEMCOL_CODE||n===e.COMMA_CODE)this.index++;else if(r=this.gobbleExpression())i.push(r);else if(this.index<this.expr.length){if(n===t)break;this.throwError('Unexpected "'+this["char"]+'"')}return i}},{key:"gobbleExpression",value:function(){var e=this.searchHook("gobble-expression")||this.gobbleBinaryExpression();return this.gobbleSpaces(),this.runHook("after-expression",e)}},{key:"gobbleBinaryOp",value:function(){this.gobbleSpaces();var t=this.expr.substr(this.index,e.max_binop_len),n=t.length;while(n>0){if(e.binary_ops.hasOwnProperty(t)&&(!e.isIdentifierStart(this.code)||this.index+t.length<this.expr.length&&!e.isIdentifierPart(this.expr.charCodeAt(this.index+t.length))))return this.index+=n,t;t=t.substr(0,--n)}return!1}},{key:"gobbleBinaryExpression",value:function(){var t,n,r,i,o,a,s,l,c;if(a=this.gobbleToken(),!a)return a;if(n=this.gobbleBinaryOp(),!n)return a;o={value:n,prec:e.binaryPrecedence(n),right_a:e.right_associative.has(n)},s=this.gobbleToken(),s||this.throwError("Expected expression after "+n),i=[a,o,s];while(n=this.gobbleBinaryOp()){if(r=e.binaryPrecedence(n),0===r){this.index-=n.length;break}o={value:n,prec:r,right_a:e.right_associative.has(n)},c=n;var u=function(e){return o.right_a&&e.right_a?r>e.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<this.expr.length&&!e.isIdentifierPart(this.expr.charCodeAt(this.index+n.length)))){this.index+=r;var o=this.gobbleToken();return o||this.throwError("missing unaryOp argument"),this.runHook("after-token",{type:e.UNARY_EXP,operator:n,argument:o,prefix:!0})}n=n.substr(0,--r)}e.isIdentifierStart(t)?(i=this.gobbleIdentifier(),e.literals.hasOwnProperty(i.name)?i={type:e.LITERAL,value:e.literals[i.name],raw:i.name}:i.name===e.this_str&&(i={type:e.THIS_EXP})):t===e.OPAREN_CODE&&(i=this.gobbleGroup())}return i?(i=this.gobbleTokenProperty(i),this.runHook("after-token",i)):this.runHook("after-token",!1)}},{key:"gobbleTokenProperty",value:function(t){this.gobbleSpaces();var n=this.code;while(n===e.PERIOD_CODE||n===e.OBRACK_CODE||n===e.OPAREN_CODE||n===e.QUMARK_CODE){var r=void 0;if(n===e.QUMARK_CODE){if(this.expr.charCodeAt(this.index+1)!==e.PERIOD_CODE)break;r=!0,this.index+=2,this.gobbleSpaces(),n=this.code}this.index++,n===e.OBRACK_CODE?(t={type:e.MEMBER_EXP,computed:!0,object:t,property:this.gobbleExpression()},t.property||this.throwError('Unexpected "'+this["char"]+'"'),this.gobbleSpaces(),n=this.code,n!==e.CBRACK_CODE&&this.throwError("Unclosed ["),this.index++):n===e.OPAREN_CODE?t={type:e.CALL_EXP,arguments:this.gobbleArguments(e.CPAREN_CODE),callee:t}:(n===e.PERIOD_CODE||r)&&(r&&this.index--,this.gobbleSpaces(),t={type:e.MEMBER_EXP,computed:!1,object:t,property:this.gobbleIdentifier()}),r&&(t.optional=!0),this.gobbleSpaces(),n=this.code}return t}},{key:"gobbleNumericLiteral",value:function(){var t,n,r="";while(e.isDecimalDigit(this.code))r+=this.expr.charAt(this.index++);if(this.code===e.PERIOD_CODE){r+=this.expr.charAt(this.index++);while(e.isDecimalDigit(this.code))r+=this.expr.charAt(this.index++)}if(t=this["char"],"e"===t||"E"===t){r+=this.expr.charAt(this.index++),t=this["char"],"+"!==t&&"-"!==t||(r+=this.expr.charAt(this.index++));while(e.isDecimalDigit(this.code))r+=this.expr.charAt(this.index++);e.isDecimalDigit(this.expr.charCodeAt(this.index-1))||this.throwError("Expected exponent ("+r+this["char"]+")")}return n=this.code,e.isIdentifierStart(n)?this.throwError("Variable names cannot start with a number ("+r+this["char"]+")"):(n===e.PERIOD_CODE||1===r.length&&r.charCodeAt(0)===e.PERIOD_CODE)&&this.throwError("Unexpected period"),{type:e.LITERAL,value:parseFloat(r),raw:r}}},{key:"gobbleStringLiteral",value:function(){var t="",n=this.index,r=this.expr.charAt(this.index++),i=!1;while(this.index<this.expr.length){var o=this.expr.charAt(this.index++);if(o===r){i=!0;break}if("\\"===o)switch(o=this.expr.charAt(this.index++),o){case"n":t+="\n";break;case"r":t+="\r";break;case"t":t+="\t";break;case"b":t+="\b";break;case"f":t+="\f";break;case"v":t+="\v";break;default:t+=o}else t+=o}return i||this.throwError('Unclosed quote after "'+t+'"'),{type:e.LITERAL,value:t,raw:this.expr.substring(n,this.index)}}},{key:"gobbleIdentifier",value:function(){var t=this.code,n=this.index;e.isIdentifierStart(t)?this.index++:this.throwError("Unexpected "+this["char"]);while(this.index<this.expr.length){if(t=this.code,!e.isIdentifierPart(t))break;this.index++}return{type:e.IDENTIFIER,name:this.expr.slice(n,this.index)}}},{key:"gobbleArguments",value:function(t){var n=[],r=!1,i=0;while(this.index<this.expr.length){this.gobbleSpaces();var o=this.code;if(o===t){r=!0,this.index++,t===e.CPAREN_CODE&&i&&i>=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<i;a++)n.push(null)}else if(n.length!==i&&0!==i)this.throwError("Expected comma");else{var s=this.gobbleExpression();s&&s.type!==e.COMPOUND||this.throwError("Expected comma"),n.push(s)}}return r||this.throwError("Expected "+String.fromCharCode(t)),n}},{key:"gobbleGroup",value:function(){this.index++;var t=this.gobbleExpressions(e.CPAREN_CODE);if(this.code===e.CPAREN_CODE)return this.index++,1===t.length?t[0]:!!t.length&&{type:e.SEQUENCE_EXP,expressions:t};this.throwError("Unclosed (")}},{key:"gobbleArray",value:function(){return this.index++,{type:e.ARRAY_EXP,elements:this.gobbleArguments(e.CBRACK_CODE)}}}],[{key:"version",get:function(){return"1.3.9"}},{key:"toString",value:function(){return"JavaScript Expression Parser (JSEP) v"+e.version}},{key:"addUnaryOp",value:function(t){return e.max_unop_len=Math.max(t.length,e.max_unop_len),e.unary_ops[t]=1,e}},{key:"addBinaryOp",value:function(t,n,r){return e.max_binop_len=Math.max(t.length,e.max_binop_len),e.binary_ops[t]=n,r?e.right_associative.add(t):e.right_associative["delete"](t),e}},{key:"addIdentifierChar",value:function(t){return e.additional_identifier_chars.add(t),e}},{key:"addLiteral",value:function(t,n){return e.literals[t]=n,e}},{key:"removeUnaryOp",value:function(t){return delete e.unary_ops[t],t.length===e.max_unop_len&&(e.max_unop_len=e.getMaxKeyLen(e.unary_ops)),e}},{key:"removeAllUnaryOps",value:function(){return e.unary_ops={},e.max_unop_len=0,e}},{key:"removeIdentifierChar",value:function(t){return e.additional_identifier_chars["delete"](t),e}},{key:"removeBinaryOp",value:function(t){return delete e.binary_ops[t],t.length===e.max_binop_len&&(e.max_binop_len=e.getMaxKeyLen(e.binary_ops)),e.right_associative["delete"](t),e}},{key:"removeAllBinaryOps",value:function(){return e.binary_ops={},e.max_binop_len=0,e}},{key:"removeLiteral",value:function(t){return delete e.literals[t],e}},{key:"removeAllLiterals",value:function(){return e.literals={},e}},{key:"parse",value:function(t){return new e(t).parse()}},{key:"getMaxKeyLen",value:function(e){return Math.max.apply(Math,[0].concat(R(Object.keys(e).map((function(e){return e.length})))))}},{key:"isDecimalDigit",value:function(e){return e>=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<this.expr.length){if(this.code===H&&!r){var i=this.expr.slice(n,this.index),o="";while(++this.index<this.expr.length){var a=this.code;if(!(a>=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<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*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;r<e.body.length;r++){"Identifier"===e.body[r].type&&["var","let","const"].includes(e.body[r].name)&&e.body[r+1]&&"AssignmentExpression"===e.body[r+1].type&&(r+=1);var i=e.body[r];n=Y.evalAst(i,t)}return n},evalConditionalExpression:function(e,t){return Y.evalAst(e.test,t)?Y.evalAst(e.consequent,t):Y.evalAst(e.alternate,t)},evalIdentifier:function(e,t){if(e.name in t)return t[e.name];throw ReferenceError("".concat(e.name," is not defined"))},evalLiteral:function(e){return e.value},evalMemberExpression:function(e,t){var n=e.computed?Y.evalAst(e.property):e.property.name,r=Y.evalAst(e.object,t),i=r[n];return"function"===typeof i?i.bind(r):i},evalUnaryExpression:function(e,t){var n={"-":function(e){return-Y.evalAst(e,t)},"!":function(e){return!Y.evalAst(e,t)},"~":function(e){return~Y.evalAst(e,t)},"+":function(e){return+Y.evalAst(e,t)}}[e.operator](e.argument);return n},evalArrayExpression:function(e,t){return e.elements.map((function(e){return Y.evalAst(e,t)}))},evalCallExpression:function(e,t){var n=e.arguments.map((function(e){return Y.evalAst(e,t)})),r=Y.evalAst(e.callee,t);return r.apply(void 0,R(n))},evalAssignmentExpression:function(e,t){if("Identifier"!==e.left.type)throw SyntaxError("Invalid left-hand side in assignment");var n=e.left.name,r=Y.evalAst(e.right,t);return t[n]=r,t[n]}},Q=function(){function e(t){f(this,e),this.code=t,this.ast=j(this.code)}return v(e,[{key:"runInNewContext",value:function(e){var t=N({},e);return Y.evalAst(this.ast,t)}}])}();function J(e,t){return e=e.slice(),e.push(t),e}function Z(e,t){return t=t.slice(),t.unshift(e),t}var ee=function(e){function t(e){var n;return f(this,t),n=p(this,t,['JSONPath should not be called with "new" (it prevents return of (unwrapped) scalar values)']),n.avoidNew=!0,n.value=e,n.name="NewError",n}return w(t,e),v(t)}(P(Error));function te(e,t,n,r,i){if(!(this instanceof te))try{return new te(e,t,n,r,i)}catch(l){if(!l.avoidNew)throw l;return l.value}"string"===typeof e&&(i=r,r=n,n=t,t=e,e=null);var o=e&&"object"===D(e);if(e=e||{},this.json=e.json||n,this.path=e.path||t,this.resultType=e.resultType||"value",this.flatten=e.flatten||!1,this.wrap=!Object.hasOwn(e,"wrap")||e.wrap,this.sandbox=e.sandbox||{},this.eval=void 0===e.eval?"safe":e.eval,this.ignoreEvalErrors="undefined"!==typeof e.ignoreEvalErrors&&e.ignoreEvalErrors,this.parent=e.parent||null,this.parentProperty=e.parentProperty||null,this.callback=e.callback||r||null,this.otherTypeCallback=e.otherTypeCallback||i||function(){throw new TypeError("You must supply an otherTypeCallback callback option with the @other() operator.")},!1!==e.autostart){var a={path:o?e.path:t};o?"json"in e&&(a.json=e.json):a.json=n;var s=this.evaluate(a);if(!s||"object"!==D(s))throw new ee(s);return s}}te.prototype.evaluate=function(e,t,n,r){var i=this,o=this.parent,a=this.parentProperty,s=this.flatten,l=this.wrap;if(this.currResultType=this.resultType,this.currEval=this.eval,this.currSandbox=this.sandbox,n=n||this.callback,this.currOtherTypeCallback=r||this.otherTypeCallback,t=t||this.json,e=e||this.path,e&&"object"===D(e)&&!Array.isArray(e)){if(!e.path&&""!==e.path)throw new TypeError('You must supply a "path" property when providing an object argument to JSONPath.evaluate().');if(!Object.hasOwn(e,"json"))throw new TypeError('You must supply a "json" property when providing an object argument to JSONPath.evaluate().');var c=e;t=c.json,s=Object.hasOwn(e,"flatten")?e.flatten:s,this.currResultType=Object.hasOwn(e,"resultType")?e.resultType:this.currResultType,this.currSandbox=Object.hasOwn(e,"sandbox")?e.sandbox:this.currSandbox,l=Object.hasOwn(e,"wrap")?e.wrap:l,this.currEval=Object.hasOwn(e,"eval")?e.eval:this.currEval,n=Object.hasOwn(e,"callback")?e.callback:n,this.currOtherTypeCallback=Object.hasOwn(e,"otherTypeCallback")?e.otherTypeCallback:this.currOtherTypeCallback,o=Object.hasOwn(e,"parent")?e.parent:o,a=Object.hasOwn(e,"parentProperty")?e.parentProperty:a,e=e.path}if(o=o||null,a=a||null,Array.isArray(e)&&(e=te.toPathString(e)),(e||""===e)&&t){var u=te.toPathArray(e);"$"===u[0]&&u.length>1&&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<h.length;x++){var k=h[x];if(k&&k.isParentSelector){var A=this._trace(k.expr,t,k.path,r,i,o,a);if(Array.isArray(A)){h[x]=A[0];for(var N=A.length,T=1;T<N;T++)x++,h.splice(x,0,A[T])}else h[x]=A}}return h},te.prototype._walk=function(e,t){if(Array.isArray(e))for(var n=e.length,r=0;r<n;r++)t(r);else e&&"object"===D(e)&&Object.keys(e).forEach((function(e){t(e)}))},te.prototype._slice=function(e,t,n,r,i,o,a){if(Array.isArray(n)){var s=n.length,l=e.split(":"),c=l[2]&&Number.parseInt(l[2])||1,u=l[0]&&Number.parseInt(l[0])||0,d=l[1]&&Number.parseInt(l[1])||s;u=u<0?Math.max(0,u+s):Math.min(s,u),d=d<0?Math.max(0,d+s):Math.min(s,d);for(var h=[],p=u;p<d;p+=c){var f=this._trace(Z(p,t),n,r,i,o,a,!0);f.forEach((function(e){h.push(e)}))}return h}},te.prototype._eval=function(e,t,n,r,i,o){var a=this;this.currSandbox._$_parentProperty=o,this.currSandbox._$_parent=i,this.currSandbox._$_property=n,this.currSandbox._$_root=this.json,this.currSandbox._$_v=t;var s=e.includes("@path");s&&(this.currSandbox._$_path=te.toPathString(r.concat([n])));var l=this.currEval+"Script:"+e;if(!te.cache[l]){var c=e.replace(/@parentProperty/g,"_$_parentProperty").replace(/@parent/g,"_$_parent").replace(/@property/g,"_$_property").replace(/@root/g,"_$_root").replace(/@([\t-\r \)\.\[\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF])/g,"_$_v$1");if(s&&(c=c.replace(/@path/g,"_$_path")),"safe"===this.currEval||!0===this.currEval||void 0===this.currEval)te.cache[l]=new this.safeVm.Script(c);else if("native"===this.currEval)te.cache[l]=new this.vm.Script(c);else if("function"===typeof this.currEval&&this.currEval.prototype&&Object.hasOwn(this.currEval.prototype,"runInNewContext")){var u=this.currEval;te.cache[l]=new u(c)}else{if("function"!==typeof this.currEval)throw new TypeError('Unknown "eval" property "'.concat(this.currEval,'"'));te.cache[l]={runInNewContext:function(e){return a.currEval(c,e)}}}}try{return te.cache[l].runInNewContext(this.currSandbox)}catch(d){if(this.ignoreEvalErrors)return!1;throw new Error("jsonPath: "+d.message+": "+e)}},te.cache={},te.toPathString=function(e){for(var t=e,n=t.length,r="$",i=1;i<n;i++)/^(~|\^|@(?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*?\(\))$/.test(t[i])||(r+=/^[\*0-9]+$/.test(t[i])?"["+t[i]+"]":"['"+t[i]+"']");return r},te.toPointer=function(e){for(var t=e,n=t.length,r="",i=1;i<n;i++)/^(~|\^|@(?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*?\(\))$/.test(t[i])||(r+="/"+t[i].toString().replace(/~/g,"~0").replace(/\//g,"~1"));return r},te.toPathArray=function(e){var t=te.cache;if(t[e])return t[e].concat();var n=[],r=e.replace(/@(?:null|boolean|number|string|integer|undefined|nonFinite|scalar|array|object|function|other)\(\)/g,";$&;").replace(/['\[](\??\((?:[\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,(function(e,t){return"[#"+(n.push(t)-1)+"]"})).replace(/\[["']((?:[\0-&\(-\\\^-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)["']\]/g,(function(e,t){return"['"+t.replace(/\./g,"%@%").replace(/~/g,"%%@@%%")+"']"})).replace(/~/g,";~;").replace(/["']?\.["']?(?!(?:[\0-Z\\-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*\])|\[["']?/g,";").replace(/%@%/g,".").replace(/%%@@%%/g,"~").replace(/(?:;)?(\^+)(?:;)?/g,(function(e,t){return";"+t.split("").join(";")+";"})).replace(/;;;|;;/g,";..;").replace(/;$|'?\]|'$/g,""),i=r.split(";").map((function(e){var t=e.match(/#([0-9]+)/);return t&&t[1]?n[t[1]]:e}));return t[e]=i,t[e].concat()},te.prototype.safeVm={Script:Q};var ne=function(e,t,n){for(var r=e.length,i=0;i<r;i++){var o=e[i];n(o)&&t.push(e.splice(i--,1)[0])}},re=function(){function e(t){f(this,e),this.code=t}return v(e,[{key:"runInNewContext",value:function(e){var t=this.code,n=Object.keys(e),r=[];ne(n,r,(function(t){return"function"===typeof e[t]}));var i=n.map((function(t){return e[t]})),o=r.reduce((function(t,n){var r=e[n].toString();return/function/.test(r)||(r="function "+r),"var "+n+"="+r+";"+t}),"");t=o+t,/(["'])use strict\1/.test(t)||n.includes("arguments")||(t="var arguments = undefined;"+t),t=t.replace(/;[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*$/,"");var a=t.lastIndexOf(";"),s=a>-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<i.length;o++){const e=i[o];o===i.length-1?r[e]=n:r[e]||(r[e]={}),r=r[e]}return e}function ye(e,t){const n=t.split(".");let r=[e];return n.forEach((e=>{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;i<n.length;i++){if(!e)return;e=e[n[i]]}return e}function _e(e,t){const n=(0,fe.jg)(t);if(1===n.length)e[t]=void 0,delete e[t];else{const t=n.pop(),r=be(e,(0,fe.ZM)(n));r&&(r[t]=void 0,delete r[t])}return e}function we(e,t){const n=t.split("."),r=n.pop();delete n.reduce(((e,t)=>e[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;i<n.length;i++){const r=e[n[i]],o=t[n[i]];if(r!==o)return!1}return!0}function Te(e,t,n=[]){let r={};if(de()(e,t))return r;for(const i in e){const o=(0,fe.ZM)([...n,i]);i in t?se()(e[i])&&se()(t[i])||ce()(e[i])&&ce()(t[i])?r={...r,...Te(e[i],t[i],[...n,i])}:de()(e[i],t[i])||(r[o]={op:"change",from:e[i],value:t[i]}):r[o]={op:"remove",path:o}}for(const i in t)if(!(i in e)){const e=(0,fe.ZM)([...n,i]);r[e]={op:"add",value:t[i]}}return r}function Ce(e,t){let n=Object.keys(e).sort();const r=[],i={};for(const a of n){let n=!0;const s=e[a],l=t[a];for(const e of o(a))if(i[e]){n=!1;break}if(i[a]=!0,n&&l)switch(`${s.op}-${l.op}`){case"add-add":case"add-change":case"change-add":case"change-change":n=de()(s.value,l.value);break;case"add-remove":case"change-remove":case"remove-add":case"remove-change":n=!1;break;case"remove-remove":default:n=!0;break}n||(0,me.PG)(r,a)}n=Object.keys(t).sort();for(const a of n){let e=!0;for(const t of o(a))if(i[t]){e=!1;break}i[a]=!0,e||(0,me.PG)(r,a)}return r.sort();function o(e){const t=[],n=(0,fe.jg)(e);n.pop();while(n.length){const e=(0,fe.ZM)(n);t.push(e),n.pop()}return t}}function Re(e,t){let n;for(const r in t)if(n=t[r],"add"===n.op||"change"===n.op)ve(e,r,n.value);else{if("remove"!==n.op)throw new Error(`Unknown operation:${n.op}`);_e(e,r)}return e}function Oe(e,t){if(e)for(const n of t)delete e[n]}function Ie(e,t=new WeakSet){if(null===e||"object"!==typeof e)return e;if(t.has(e))return e;if(t.add(e),Array.isArray(e))return e.map((e=>Ie(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<n.length;a++)o[n[a]]=i[a];return o}function a(e){return o(e,"all")}function s(e){return o(e,"allSettled")}function l(e,t,n,o=!1){return o&&i.log("eachLimit of",e.length," items",t,"at a time"),new Promise(((a,s)=>{const l=new r;let c=0,u=!1;const d=[];for(let t=0;t<e.length;t++)l.enqueue({item:e[t],idx:t});function h(){if(o&&i.log(`process, queue=${l.getLength()}, pending=${c}, failed=${u}`),!u){if(l.isEmpty()&&0===c)return a(d);while(!l.isEmpty()&&c<t&&!u){const{item:e,idx:t}=l.dequeue();o&&i.log("Running",e),c++,n(e,t).then((n=>{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;e<n.length;e++)if(n[e][t])return n[e][t]}}},75606:function(e,t,n){"use strict";function r(e,t){if(!this.$attrs.multiple)return;const n=e=>this.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<i;o++){const n=u(e[o],t[o]);if(0!==n)return n}return l(n,r)}case"date":return l(e.getTime(),t.getTime())}return 0}function d(e){const t=e.split(/:/);return 2===t.length&&"desc"===t[1]?{field:t[0],reverse:!0}:{field:e,reverse:!1}}function h(e,t,n){return Array.isArray(t)||(t=[t]),(e||[]).slice().sort(((e,i)=>{for(let o=0;o<t.length;o++){const a=d(t[o]),s=(0,r.Jt)(e,a.field),l=(0,r.Jt)(i,a.field);let c=u(s,l);if(c)return n&&(c*=-1),a.reverse&&(c*=-1),c}return 0}))}const p=/([^\d]+)/,f=/^[0-9]+$/;function m(e){return"string"!==typeof e?e:e.split(p).map((e=>e.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;n<r.length;n++)t[n]=r[n]}else for(n=0;n<e;n++)t[n]=4294967296*Math.random();return 1===e?t[0]:t}const u="abcdefghijklmnopqrstuvwxyz",d="0123456789",h="!@#$%^&*()_+-=[]{};:,./<>?|",p={NUMERIC:d,NO_VOWELS:"bcdfghjklmnpqrstvwxz2456789",ALPHA:u+u.toUpperCase(),ALPHA_NUM:u+u.toUpperCase()+d,ALPHA_LOWER:u,ALPHA_UPPER:u.toUpperCase(),HEX:`${d}ABCDEF`,PASSWORD:u+u.toUpperCase()+d+u+u.toUpperCase()+d+h};function f(e=16,t=p.ALPHA_NUM){return t&&t.length?c(e).map((e=>t[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+=`<b>${s(i)}</b>`,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,"<br/>\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<o.length)l/=o[d],c*=Math.floor(o[d]/10),d++;u=l<5?Math.floor(10*l)/10:Math.floor(l);const h={diff:s,absDiff:l,label:u,unitsKey:`unit.${a[d]}`,units:a[d],next:c};return n&&(h.string=`${h.label} ${n(h.unitsKey,{count:h.label})}`),h}function l(e,t){return Math.round(Math.abs(Date.parse(t)-Date.parse(e))/1e3)}},62155:function(e,t,n){"use strict";n.d(t,{$W:function(){return a},Mo:function(){return o},QN:function(){return r},S0:function(){return d},ao:function(){return s},kq:function(){return i}});const r=["","K","M","G","T","P","E","Z","Y"],i=["","m","u","n","p","f","a","z","y"];function o(e,{increment:t=1e3,addSuffix:n=!0,addSuffixSpace:s=!0,suffix:l="",firstSuffix:c=null,startingExponent:u=0,minExponent:d=0,maxExponent:h=99,maxPrecision:p=2,canRoundToZero:f=!0}={}){let m=e,g=u;const v=h>=0;if(v)while(m>=t&&g+1<r.length&&g<h||g<d)m/=t,g++;else while(m<t&&g+1<i.length&&g<-1*h||g<-1*d)m*=t,g++;let y="";if(y=m<10&&p>=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.length<d?i.push(n["i18n/t"](`validation.dns.${s}.emptyLabel`,{key:t,min:d})):e.length>p&&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?(f<g||f>v)&&(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&&f<g?o.push(r["i18n/t"](`validation.${m}.min`,{key:n,count:g})):v&&f>v&&o.push(r["i18n/t"](`validation.${m}.max`,{key:n,count:v})),g=h,v=p,null!==e&&g&&v?(e<g||e>v)&&(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&&e<g?o.push(r["i18n/t"]("validation.number.min",{key:n,val:g})):v&&e>v&&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<s.length;c++)l=s[c],0===c&&""===l||c===s.length-1&&""===l||f(l,t,n,{forHostname:!0},i);return i}function f(e,t,n,r,i=[]){r=r||{};const{forHostname:o=!1,errorKey:a=(o?"hostname":"label"),ianaServiceName:s=!1,restricted:l=!1}=r;return c(e,t,n,r,i),l&&e.slice(0,1).match(/[0-9]/)&&i.push(n["i18n/t"](`validation.dns.${a}.startNumber`,{key:t})),("--"===e.substr(2,2)&&"xn"!==e.substr(0,2)||s&&e.includes("--"))&&i.push(n["i18n/t"]("validation.dns.doubleHyphen",{key:t})),i}function m(e,t,n,r,i,o=[]){switch(t){case"dnsLabel":f(e,n,r,{restricted:!1},o);break;case"dnsLabelRestricted":f(e,n,r,{restricted:!0},o);break;case"hostname":p(e,n,r,{restricted:!1},o);break;default:break}return o}function g(e,t,n,r,i=[]){const{required:o}=t;!o||e||!1===e?"boolean"!==typeof e&&e&&i.push(r["i18n/t"]("validation.boolean",{key:n})):i.push(r["i18n/t"]("validation.required",{key:n}))}},64314:function(e,t,n){"use strict";n.d(t,{L6:function(){return o},M8:function(){return s},Q6:function(){return a},fB:function(){return l}});var r=n(91990),i=n.n(r);const o=e=>"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<i;o++){const e=u(n[o],r[o]);if(0!==e)return e}return n.length-r.length}function c(e){return`${e}`.match(/^([0-9]+\.)?[0-9]*$/)}function u(e,t){if(e=`${e}`.toLowerCase(),t=`${t}`.toLowerCase(),c(e)&&c(t)){const n=parseInt(e,10),r=parseInt(t,10);if(!isNaN(n)&&!isNaN(r))return n-r}return e.localeCompare(t)}function d(e=""){return o().valid(e)||(e=o().clean(e,{loose:!0})),!!o().prerelease(e)}},52225:function(e,t,n){"use strict";var r=n(33062),i=n(1359),o=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,a=/[\n\r\t]/g,s=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,l=/:\d+$/,c=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,u=/^[a-zA-Z]:/;function d(e){return(e||"").toString().replace(o,"")}var h=[["#","hash"],["?","query"],function(e,t){return m(t.protocol)?e.replace(/\\/g,"/"):e},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],p={hash:1,query:1};function f(e){var t;t="undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:"undefined"!==typeof self?self:{};var r=t.location||{};e=e||r;var i,o={},a=typeof e;if("blob:"===e.protocol)o=new y(unescape(e.pathname),{});else if("string"===a)for(i in o=new y(e,{}),p)delete o[i];else if("object"===a){for(i in e)i in p||(o[i]=e[i]);void 0===o.slashes&&(o.slashes=s.test(e.href))}return o}function m(e){return"file:"===e||"ftp:"===e||"http:"===e||"https:"===e||"ws:"===e||"wss:"===e}function g(e,t){e=d(e),e=e.replace(a,""),t=t||{};var n,r=c.exec(e),i=r[1]?r[1].toLowerCase():"",o=!!r[2],s=!!r[3],l=0;return o?s?(n=r[2]+r[3]+r[4],l=r[2].length+r[3].length):(n=r[2]+r[4],l=r[2].length):s?(n=r[3]+r[4],l=r[3].length):n=r[4],"file:"===i?l>=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<h.length;c++){var u=h[c];u[4]&&(o[u[1]]=o[u[1]].toLowerCase())}return o.auth=o.password?o.username+":"+o.password:o.username,o.origin="file:"!==o.protocol&&m(o.protocol)&&o.host?o.protocol+"//"+o.host:"null",o.href=o.toString(),o}function _(e){e&&"function"===typeof e||(e=i.stringify);var t,n=this,r=n.host,o=n.protocol;o&&":"!==o.charAt(o.length-1)&&(o+=":");var a=o+(n.protocol&&n.slashes||m(n.protocol)?"//":"");return n.username?(a+=n.username,n.password&&(a+=":"+n.password),a+="@"):n.password?(a+=":"+n.password,a+="@"):"file:"!==n.protocol&&m(n.protocol)&&!r&&"/"!==n.pathname&&(a+="@"),(":"===r[r.length-1]||l.test(n.hostname)&&!n.port)&&(r+=":"),a+=r+n.pathname,t="object"===typeof n.query?e(n.query):n.query,t&&(a+="?"!==t.charAt(0)?"?"+t:t),n.hash&&(a+=n.hash),a}y.prototype={set:b,toString:_},y.extractProtocol=g,y.location=f,y.trimLeft=d,y.qs=i,e.exports=y},47433:function(e,t){"use strict";t.A=(e,t)=>{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;i<t.length;i++){var o=t[i],a=o[0],s=o[1],l=o[2],c=o[3],u={id:e+":"+i,css:s,media:l,sourceMap:c};r[a]?r[a].parts.push(u):n.push(r[a]={id:a,parts:[u]})}return n}n.d(t,{A:function(){return f}});var i="undefined"!==typeof document;if("undefined"!==typeof DEBUG&&DEBUG&&!i)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var o={},a=i&&(document.head||document.getElementsByTagName("head")[0]),s=null,l=0,c=!1,u=function(){},d=null,h="data-vue-ssr-id",p="undefined"!==typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function f(e,t,n,i){c=n,d=i||{};var a=r(e,t);return m(a),function(t){for(var n=[],i=0;i<a.length;i++){var s=a[i],l=o[s.id];l.refs--,n.push(l)}t?(a=r(e,t),m(a)):a=[];for(i=0;i<n.length;i++){l=n[i];if(0===l.refs){for(var c=0;c<l.parts.length;c++)l.parts[c]();delete o[l.id]}}}}function m(e){for(var t=0;t<e.length;t++){var n=e[t],r=o[n.id];if(r){r.refs++;for(var i=0;i<r.parts.length;i++)r.parts[i](n.parts[i]);for(;i<n.parts.length;i++)r.parts.push(v(n.parts[i]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{var a=[];for(i=0;i<n.parts.length;i++)a.push(v(n.parts[i]));o[n.id]={id:n.id,refs:1,parts:a}}}}function g(){var e=document.createElement("style");return e.type="text/css",a.appendChild(e),e}function v(e){var t,n,r=document.querySelector("style["+h+'~="'+e.id+'"]');if(r){if(c)return u;r.parentNode.removeChild(r)}if(p){var i=l++;r=s||(s=g()),t=b.bind(null,r,i,!1),n=b.bind(null,r,i,!0)}else r=g(),t=_.bind(null,r),n=function(){r.parentNode.removeChild(r)};return t(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;t(e=r)}else n()}}var y=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}();function b(e,t,n,r){var i=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=y(t,i);else{var o=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}function _(e,t){var n=t.css,r=t.media,i=t.sourceMap;if(r&&e.setAttribute("media",r),d.ssrId&&e.setAttribute(h,t.id),i&&(n+="\n/*# sourceURL="+i.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),e.styleSheet)e.styleSheet.cssText=n;else{while(e.firstChild)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}},65359:function(e,t,n){"use strict";n.d(t,{L8:function(){return ne},aH:function(){return te}});var r=n(9274);function i(){return o().__VUE_DEVTOOLS_GLOBAL_HOOK__}function o(){return"undefined"!==typeof navigator&&"undefined"!==typeof window?window:"undefined"!==typeof globalThis?globalThis:{}}const a="function"===typeof Proxy,s="devtools-plugin:setup",l="plugin:settings:set";let c,u;function d(){var e;return void 0!==c||("undefined"!==typeof window&&window.performance?(c=!0,u=window.performance):"undefined"!==typeof globalThis&&(null===(e=globalThis.perf_hooks)||void 0===e?void 0:e.performance)?(c=!0,u=globalThis.perf_hooks.performance):c=!1),c}function h(){return d()?u.now():Date.now()}class p{constructor(e,t){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=t;const n={};if(e.settings)for(const a in e.settings){const t=e.settings[a];n[a]=t.defaultValue}const r=`__vue-devtools-plugin-settings__${e.id}`;let i=Object.assign({},n);try{const e=localStorage.getItem(r),t=JSON.parse(e);Object.assign(i,t)}catch(o){}this.fallbacks={getSettings(){return i},setSettings(e){try{localStorage.setItem(r,JSON.stringify(e))}catch(o){}i=e},now(){return h()}},t&&t.on(l,((e,t)=>{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;n<i;n++)t.push(arguments[n]);return t}function i(e,t,n){var r=t===e.head?new s(n,null,t,e):new s(n,t,t.next,e);return null===r.next&&(e.tail=r),null===r.prev&&(e.head=r),e.length++,r}function o(e,t){e.tail=new s(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function a(e,t){e.head=new s(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function s(e,t,n,r){if(!(this instanceof s))return new s(e,t,n,r);this.list=r,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,n?(n.prev=this,this.next=n):this.next=null}e.exports=r,r.Node=s,r.create=r,r.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,n=e.prev;return t&&(t.prev=n),n&&(n.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=n),e.list.length--,e.next=null,e.prev=null,e.list=null,t},r.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}},r.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}},r.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)o(this,arguments[e]);return this.length},r.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)a(this,arguments[e]);return this.length},r.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}},r.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}},r.prototype.forEach=function(e,t){t=t||this;for(var n=this.head,r=0;null!==n;r++)e.call(t,n.value,r,this),n=n.next},r.prototype.forEachReverse=function(e,t){t=t||this;for(var n=this.tail,r=this.length-1;null!==n;r--)e.call(t,n.value,r,this),n=n.prev},r.prototype.get=function(e){for(var t=0,n=this.head;null!==n&&t<e;t++)n=n.next;if(t===e&&null!==n)return n.value},r.prototype.getReverse=function(e){for(var t=0,n=this.tail;null!==n&&t<e;t++)n=n.prev;if(t===e&&null!==n)return n.value},r.prototype.map=function(e,t){t=t||this;for(var n=new r,i=this.head;null!==i;)n.push(e.call(t,i.value,this)),i=i.next;return n},r.prototype.mapReverse=function(e,t){t=t||this;for(var n=new r,i=this.tail;null!==i;)n.push(e.call(t,i.value,this)),i=i.prev;return n},r.prototype.reduce=function(e,t){var n,r=this.head;if(arguments.length>1)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(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var i=0,o=this.head;null!==o&&i<e;i++)o=o.next;for(;null!==o&&i<t;i++,o=o.next)n.push(o.value);return n},r.prototype.sliceReverse=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(t<e||t<0)return n;e<0&&(e=0),t>this.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<e;r++)o=o.next;var a=[];for(r=0;o&&r<t;r++)a.push(o.value),o=this.removeNode(o);null===o&&(o=this.tail),o!==this.head&&o!==this.tail&&(o=o.prev);for(r=0;r<n.length;r++)o=i(this,o,n[r]);return a},r.prototype.reverse=function(){for(var e=this.head,t=this.tail,n=e;null!==n;n=n.prev){var r=n.prev;n.prev=n.next,n.next=r}return this.head=t,this.tail=e,this};try{n(24666)(r)}catch(l){}},96817:function(e,t,n){var r={"./csp/dark/rancher-logo.svg":6871,"./csp/favicon.png":88217,"./csp/metadata":90771,"./csp/metadata.json":90771,"./csp/rancher-logo.svg":43982,"./federal/dark/rancher-logo.svg":70182,"./federal/metadata":34138,"./federal/metadata.json":34138,"./federal/rancher-logo.svg":7453,"./harvester/favicon.png":51421,"./harvester/metadata":11471,"./harvester/metadata.json":11471,"./rgs/dark/rancher-logo.svg":33945,"./rgs/metadata":8389,"./rgs/metadata.json":8389,"./rgs/rancher-logo.svg":16344,"./suse/dark/rancher-logo.svg":90249,"./suse/favicon.png":1229,"./suse/metadata":14207,"./suse/metadata.json":14207,"./suse/rancher-logo.svg":85672};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=96817},4378:function(e,t,n){var r={"./csp/dark/rancher-logo.svg":6871,"./federal/dark/rancher-logo.svg":70182,"./rgs/dark/rancher-logo.svg":33945,"./suse/dark/rancher-logo.svg":90249};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=4378},93558:function(e,t,n){var r={"./csp/metadata.json":90771,"./federal/metadata.json":34138,"./harvester/metadata.json":11471,"./rgs/metadata.json":8389,"./suse/metadata.json":14207};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=93558},74752:function(e,t,n){var r={"./banner.svg":2134,"./dark/banner.svg":83245,"./dark/login-landscape.svg":66070,"./dark/rancher-logo.svg":21090,"./decoration-cloud-big-white.svg":80335,"./decoration-ground.svg":71186,"./error-desert-landscape.svg":12056,"./half-logo.svg":97957,"./harvester.png":75190,"./harvester.svg":54482,"./login-landscape.svg":40979,"./rancher-logo.svg":7137,"./setup-step-one.svg":38953,"./sunglasses.svg":27890};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=74752},87900:function(e,t,n){var r={"./banner.svg":2134,"./dark/banner.svg":83245,"./dark/login-landscape.svg":66070,"./dark/rancher-logo.svg":21090,"./decoration-cloud-big-white.svg":80335,"./decoration-ground.svg":71186,"./error-desert-landscape.svg":12056,"./half-logo.svg":97957,"./harvester.png":75190,"./harvester.svg":54482,"./login-landscape.svg":40979,"./rancher-logo.svg":7137,"./setup-step-one.svg":38953,"./sunglasses.svg":27890};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=87900},53588:function(e,t,n){var r={"./aliyun-black.svg":75554,"./aliyun.svg":30024,"./aliyunecs-black.svg":47649,"./aliyunecs.svg":74615,"./amazonec2-black.svg":46784,"./amazonec2.svg":34578,"./amazoneks-black.svg":15477,"./amazoneks.svg":8075,"./aws.svg":86495,"./azure-black.svg":9627,"./azure.svg":87357,"./azuread-black.svg":260,"./azuread.svg":89766,"./azureaks-black.svg":49802,"./azureaks.svg":98752,"./baidu-black.svg":16467,"./baidu.svg":30405,"./cloudca-black.svg":32017,"./cloudca.svg":68391,"./cloudscale-black.svg":19297,"./cloudscale.svg":92055,"./custom.svg":64929,"./digitalocean-black.svg":11072,"./digitalocean.svg":64018,"./equinix-black.svg":66899,"./equinix.svg":83461,"./exoscale.svg":25876,"./gcp.svg":96282,"./gke-black.svg":73849,"./gke.svg":25119,"./google.svg":19685,"./googlegke-black.svg":42614,"./googlegke.svg":52908,"./harvester.svg":59870,"./huaweicce-black.svg":23412,"./huaweicce.svg":63350,"./import.svg":5231,"./k3s-black.svg":4083,"./k3s.svg":17861,"./kubernetes-black.svg":6438,"./kubernetes.svg":82044,"./linode.svg":74093,"./linodelke-black.svg":49146,"./linodelke.svg":83475,"./local-cluster.svg":96844,"./minikube-black.svg":63900,"./minikube.svg":64398,"./nutanix.svg":93755,"./oci-black.svg":85445,"./oci.svg":88699,"./openstack-black.svg":34082,"./openstack.svg":65992,"./oracle.svg":75934,"./oracleoke-black.svg":11679,"./oracleoke.svg":19553,"./otc-black.svg":88106,"./otc.svg":19680,"./otccce.svg":65259,"./outscale.svg":28770,"./ovhcloudmks.svg":80919,"./ovhcloudpubliccloud.svg":95414,"./packet-black.svg":29114,"./packet.svg":39408,"./pinganyunecs-black.svg":81516,"./pinganyunecs.svg":73150,"./pnap-black.svg":93223,"./pnap.svg":30905,"./rackspace-black.svg":69979,"./rackspace.svg":53117,"./rke.svg":14762,"./rke2.svg":24852,"./softlayer.svg":21007,"./tencenttke-black.svg":33367,"./tencenttke.svg":33609,"./vmwarevsphere-black.svg":28235,"./vmwarevsphere.svg":40717};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=53588},82360:function(e,t,n){var r={"./activedirectory.svg":2889,"./adfs.svg":84924,"./azuread.svg":10820,"./custom.svg":73311,"./email.svg":88150,"./freeipa.svg":63220,"./github.svg":36743,"./googleoauth.svg":66964,"./grafana.svg":37190,"./jaeger.svg":66112,"./keycloak.svg":7489,"./kiali.svg":46318,"./linux.svg":31780,"./longhorn.svg":45283,"./neuvector.svg":68783,"./okta.svg":35805,"./openid.svg":60049,"./openldap.svg":16733,"./pagerduty.svg":84779,"./ping.svg":9954,"./prometheus.svg":88670,"./shibboleth.svg":2898,"./slack.svg":78978,"./webhook.svg":38997,"./windows.svg":93361};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=82360},93197:function(e,t,n){var r={"./__tests__/apps.deployment.test":63140,"./__tests__/apps.deployment.test.ts":63140,"./__tests__/batch.cronjob.test":3340,"./__tests__/batch.cronjob.test.ts":3340,"./__tests__/cluster.test":50425,"./__tests__/cluster.test.ts":50425,"./__tests__/fleet.cattle.io.cluster.test":55572,"./__tests__/fleet.cattle.io.cluster.test.ts":55572,"./__tests__/management.cattle.io.cluster.test":8713,"./__tests__/management.cattle.io.cluster.test.ts":8713,"./__tests__/management.cattle.io.node":40613,"./__tests__/management.cattle.io.node.ts":40613,"./__tests__/management.cattle.io.nodepool":18835,"./__tests__/management.cattle.io.nodepool.ts":18835,"./__tests__/namespace.test":75622,"./__tests__/namespace.test.ts":75622,"./__tests__/node.test":55087,"./__tests__/node.test.ts":55087,"./__tests__/provisioning.cattle.io.cluster.test":93403,"./__tests__/provisioning.cattle.io.cluster.test.ts":93403,"./__tests__/schema.tests":23281,"./__tests__/schema.tests.ts":23281,"./__tests__/secret.test":1647,"./__tests__/secret.test.ts":1647,"./__tests__/steve-schema.test":9388,"./__tests__/steve-schema.test.ts":9388,"./__tests__/storage.k8s.io.storageclass.test":31439,"./__tests__/storage.k8s.io.storageclass.test.ts":31439,"./__tests__/workload.test":18452,"./__tests__/workload.test.ts":18452,"./app":82643,"./app.js":82643,"./apps.controllerrevision":78930,"./apps.controllerrevision.js":78930,"./apps.daemonset":52751,"./apps.daemonset.js":52751,"./apps.deployment":75672,"./apps.deployment.js":75672,"./apps.replicaset":13887,"./apps.replicaset.js":13887,"./apps.statefulset":17691,"./apps.statefulset.js":17691,"./autoscaling.horizontalpodautoscaler":36311,"./autoscaling.horizontalpodautoscaler.js":36311,"./batch.cronjob":29800,"./batch.cronjob.js":29800,"./batch.job":57444,"./batch.job.js":57444,"./catalog.cattle.io.app":67570,"./catalog.cattle.io.app.js":67570,"./catalog.cattle.io.clusterrepo":55271,"./catalog.cattle.io.clusterrepo.js":55271,"./catalog.cattle.io.operation":69924,"./catalog.cattle.io.operation.js":69924,"./catalog.cattle.io.repo":23905,"./catalog.cattle.io.repo.js":23905,"./catalog.cattle.io.uiplugin":17212,"./catalog.cattle.io.uiplugin.js":17212,"./chart":96653,"./chart.js":96653,"./chartinstallaction":28320,"./chartinstallaction.js":28320,"./chartupgradeaction":97695,"./chartupgradeaction.js":97695,"./cis.cattle.io.clusterscan":55164,"./cis.cattle.io.clusterscan.js":55164,"./cis.cattle.io.clusterscanbenchmark":8153,"./cis.cattle.io.clusterscanbenchmark.js":8153,"./cis.cattle.io.clusterscanprofile":37559,"./cis.cattle.io.clusterscanprofile.js":37559,"./cis.cattle.io.clusterscanreport":1138,"./cis.cattle.io.clusterscanreport.js":1138,"./cloudcredential":93027,"./cloudcredential.js":93027,"./cluster":35783,"./cluster.js":35783,"./cluster.x-k8s.io.machine":16511,"./cluster.x-k8s.io.machine.js":16511,"./cluster.x-k8s.io.machinedeployment":13048,"./cluster.x-k8s.io.machinedeployment.js":13048,"./cluster.x-k8s.io.machineset":26967,"./cluster.x-k8s.io.machineset.js":26967,"./cluster/node":74958,"./cluster/node.js":74958,"./cluster/schema":4625,"./cluster/schema.js":4625,"./clusterroletemplatebinding":55996,"./clusterroletemplatebinding.js":55996,"./configmap":46481,"./configmap.js":46481,"./constraints.gatekeeper.sh.constraint":5648,"./constraints.gatekeeper.sh.constraint.js":5648,"./driver":23455,"./driver.js":23455,"./etcdbackup":21297,"./etcdbackup.js":21297,"./event":47237,"./event.js":47237,"./fleet.cattle.io.bundle":63124,"./fleet.cattle.io.bundle.js":63124,"./fleet.cattle.io.cluster":7532,"./fleet.cattle.io.cluster.js":7532,"./fleet.cattle.io.clustergroup":73585,"./fleet.cattle.io.clustergroup.js":73585,"./fleet.cattle.io.clusterregistrationtoken":72852,"./fleet.cattle.io.clusterregistrationtoken.js":72852,"./fleet.cattle.io.gitrepo":67088,"./fleet.cattle.io.gitrepo.js":67088,"./group.principal":40666,"./group.principal.js":40666,"./helm.cattle.io.projecthelmchart":63935,"./helm.cattle.io.projecthelmchart.js":63935,"./k8s.cni.cncf.io.networkattachmentdefinition":17099,"./k8s.cni.cncf.io.networkattachmentdefinition.js":17099,"./kontainerdriver":41932,"./kontainerdriver.js":41932,"./logging.banzaicloud.io.clusterflow":87834,"./logging.banzaicloud.io.clusterflow.js":87834,"./logging.banzaicloud.io.clusteroutput":23775,"./logging.banzaicloud.io.clusteroutput.js":23775,"./logging.banzaicloud.io.flow":70546,"./logging.banzaicloud.io.flow.js":70546,"./logging.banzaicloud.io.output":66247,"./logging.banzaicloud.io.output.js":66247,"./management.cattle.io.authconfig":51401,"./management.cattle.io.authconfig.js":51401,"./management.cattle.io.cluster":11042,"./management.cattle.io.cluster.js":11042,"./management.cattle.io.clusterroletemplatebinding":17264,"./management.cattle.io.clusterroletemplatebinding.js":17264,"./management.cattle.io.feature":34899,"./management.cattle.io.feature.js":34899,"./management.cattle.io.fleetworkspace":17700,"./management.cattle.io.fleetworkspace.js":17700,"./management.cattle.io.gitreporestriction":76951,"./management.cattle.io.gitreporestriction.js":76951,"./management.cattle.io.globalrole":64218,"./management.cattle.io.globalrole.js":64218,"./management.cattle.io.globalrolebinding":64297,"./management.cattle.io.globalrolebinding.js":64297,"./management.cattle.io.kontainerdriver":17328,"./management.cattle.io.kontainerdriver.js":17328,"./management.cattle.io.node":34049,"./management.cattle.io.node.js":34049,"./management.cattle.io.nodepool":51995,"./management.cattle.io.nodepool.js":51995,"./management.cattle.io.nodetemplate":1223,"./management.cattle.io.nodetemplate.js":1223,"./management.cattle.io.podsecurityadmissionconfigurationtemplate":57675,"./management.cattle.io.podsecurityadmissionconfigurationtemplate.js":57675,"./management.cattle.io.project":81952,"./management.cattle.io.project.js":81952,"./management.cattle.io.projectroletemplatebinding":4493,"./management.cattle.io.projectroletemplatebinding.js":4493,"./management.cattle.io.roletemplate":34779,"./management.cattle.io.roletemplate.js":34779,"./management.cattle.io.setting":47201,"./management.cattle.io.setting.js":47201,"./management.cattle.io.user":41886,"./management.cattle.io.user.js":41886,"./management/schema":84874,"./management/schema.js":84874,"./metrics.k8s.io.nodemetrics":42749,"./metrics.k8s.io.nodemetrics.js":42749,"./monitoring.coreos.com.alertmanagerconfig":77414,"./monitoring.coreos.com.alertmanagerconfig.js":77414,"./monitoring.coreos.com.podmonitor":38930,"./monitoring.coreos.com.podmonitor.js":38930,"./monitoring.coreos.com.prometheusrule":15191,"./monitoring.coreos.com.prometheusrule.js":15191,"./monitoring.coreos.com.receiver":50828,"./monitoring.coreos.com.receiver.js":50828,"./monitoring.coreos.com.route":53629,"./monitoring.coreos.com.route.js":53629,"./monitoring.coreos.com.servicemonitor":73694,"./monitoring.coreos.com.servicemonitor.js":73694,"./namespace":83929,"./namespace.js":83929,"./networking.istio.io.destinationrule":24215,"./networking.istio.io.destinationrule.js":24215,"./networking.k8s.io.ingress":52442,"./networking.k8s.io.ingress.js":52442,"./nodedriver":84651,"./nodedriver.js":84651,"./persistentvolume":11075,"./persistentvolume.js":11075,"./persistentvolumeclaim":39591,"./persistentvolumeclaim.js":39591,"./pod":41962,"./pod.js":41962,"./principal":93543,"./principal.js":93543,"./projectroletemplatebinding":72833,"./projectroletemplatebinding.js":72833,"./provisioning.cattle.io.cluster":16257,"./provisioning.cattle.io.cluster.js":16257,"./rbac.authorization.k8s.io.clusterrole":94456,"./rbac.authorization.k8s.io.clusterrole.js":94456,"./rbac.authorization.k8s.io.clusterrolebinding":20187,"./rbac.authorization.k8s.io.clusterrolebinding.js":20187,"./rbac.authorization.k8s.io.role":42752,"./rbac.authorization.k8s.io.role.js":42752,"./rbac.authorization.k8s.io.rolebinding":58227,"./rbac.authorization.k8s.io.rolebinding.js":58227,"./replicationcontroller":1167,"./replicationcontroller.js":1167,"./resources.cattle.io.backup":58293,"./resources.cattle.io.backup.js":58293,"./resources.cattle.io.restore":36097,"./resources.cattle.io.restore.js":36097,"./rke-machine-config.cattle.io.harvesterconfig":11205,"./rke-machine-config.cattle.io.harvesterconfig.js":11205,"./rke-machine.cattle.io.amazonec2machinetemplate":70783,"./rke-machine.cattle.io.amazonec2machinetemplate.js":70783,"./rke-machine.cattle.io.azuremachinetemplate":85988,"./rke-machine.cattle.io.azuremachinetemplate.js":85988,"./rke-machine.cattle.io.digitaloceanmachinetemplate":5989,"./rke-machine.cattle.io.digitaloceanmachinetemplate.js":5989,"./rke-machine.cattle.io.linodemachinetemplate":47622,"./rke-machine.cattle.io.linodemachinetemplate.js":47622,"./rke-machine.cattle.io.machinetemplate":87059,"./rke-machine.cattle.io.machinetemplate.js":87059,"./rke-machine.cattle.io.pnapmachinetemplate":75094,"./rke-machine.cattle.io.pnapmachinetemplate.js":75094,"./rke-machine.cattle.io.vmwarevspheremachinetemplate":78180,"./rke-machine.cattle.io.vmwarevspheremachinetemplate.js":78180,"./rke.cattle.io.etcdsnapshot":84480,"./rke.cattle.io.etcdsnapshot.js":84480,"./schema":93738,"./schema.js":93738,"./secret":62737,"./secret.js":62737,"./service":51102,"./service.js":51102,"./steve-schema":9950,"./steve-schema.ts":9950,"./storage.k8s.io.storageclass":11341,"./storage.k8s.io.storageclass.js":11341,"./templates.gatekeeper.sh.constrainttemplate":58535,"./templates.gatekeeper.sh.constrainttemplate.js":58535,"./token":14704,"./token.js":14704,"./ui.cattle.io.navlink":8653,"./ui.cattle.io.navlink.js":8653,"./workload":97737,"./workload.js":97737,"./workload.service":56461,"./workload.service.js":56461};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=93197},39989:function(e,t,n){var r={"./management.cattle.io.globalrole":81071,"./management.cattle.io.globalrole.vue":81071,"./management.cattle.io.project":39235,"./management.cattle.io.project.vue":39235,"./management.cattle.io.roletemplate":23240,"./management.cattle.io.roletemplate.vue":23240,"./mixin/roleDeletionCheck":62893,"./mixin/roleDeletionCheck.js":62893,"./pod":37969,"./pod.vue":37969};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=39989},78254:function(e,t,n){var r=n(55936),i=n(25395),o=r(i,"DataView");e.exports=o},43691:function(e,t,n){var r=n(88810),i=n(54572),o=n(42239),a=n(99779),s=n(33467);function l(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype["delete"]=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},1137:function(e,t,n){var r=n(77804),i=n(56874),o=n(32709),a=n(63177),s=n(63681);function l(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype["delete"]=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},22669:function(e,t,n){var r=n(55936),i=n(25395),o=r(i,"Map");e.exports=o},54567:function(e,t,n){var r=n(66158),i=n(20904),o=n(17195),a=n(32903),s=n(29903);function l(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype["delete"]=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},46798:function(e,t,n){var r=n(55936),i=n(25395),o=r(i,"Promise");e.exports=o},67371:function(e,t,n){var r=n(55936),i=n(25395),o=r(i,"Set");e.exports=o},95987:function(e,t,n){var r=n(1137),i=n(63762),o=n(62724),a=n(43927),s=n(40939),l=n(74387);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=i,c.prototype["delete"]=o,c.prototype.get=a,c.prototype.has=s,c.prototype.set=l,e.exports=c},6087:function(e,t,n){var r=n(25395),i=r.Symbol;e.exports=i},10418:function(e,t,n){var r=n(25395),i=r.Uint8Array;e.exports=i},28293:function(e,t,n){var r=n(55936),i=n(25395),o=r(i,"WeakMap");e.exports=o},61547:function(e){function t(e,t){var n=-1,r=null==e?0:e.length;while(++n<r)if(!1===t(e[n],n,e))break;return e}e.exports=t},75704:function(e){function t(e,t){var n=-1,r=null==e?0:e.length,i=0,o=[];while(++n<r){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}e.exports=t},70289:function(e,t,n){var r=n(14946),i=n(83105),o=n(28723),a=n(55966),s=n(20983),l=n(11301),c=Object.prototype,u=c.hasOwnProperty;function d(e,t){var n=o(e),c=!n&&i(e),d=!n&&!c&&a(e),h=!n&&!c&&!d&&l(e),p=n||c||d||h,f=p?r(e.length,String):[],m=f.length;for(var g in e)!t&&!u.call(e,g)||p&&("length"==g||d&&("offset"==g||"parent"==g)||h&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||s(g,m))||f.push(g);return f}e.exports=d},26034:function(e){function t(e,t){var n=-1,r=t.length,i=e.length;while(++n<r)e[i+n]=t[n];return e}e.exports=t},8149:function(e,t,n){var r=n(25394),i=n(89242),o=Object.prototype,a=o.hasOwnProperty;function s(e,t,n){var o=e[t];a.call(e,t)&&i(o,n)&&(void 0!==n||t in e)||r(e,t,n)}e.exports=s},39583:function(e,t,n){var r=n(89242);function i(e,t){var n=e.length;while(n--)if(r(e[n][0],t))return n;return-1}e.exports=i},19967:function(e,t,n){var r=n(23297),i=n(62328);function o(e,t){return e&&r(t,i(t),e)}e.exports=o},15556:function(e,t,n){var r=n(23297),i=n(93447);function o(e,t){return e&&r(t,i(t),e)}e.exports=o},25394:function(e,t,n){var r=n(21233);function i(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}e.exports=i},23697:function(e,t,n){var r=n(95987),i=n(61547),o=n(8149),a=n(19967),s=n(15556),l=n(43028),c=n(83157),u=n(92613),d=n(9718),h=n(67680),p=n(56815),f=n(80615),m=n(8247),g=n(25113),v=n(78231),y=n(28723),b=n(55966),_=n(88884),w=n(79955),E=n(20326),S=n(62328),x=n(93447),k=1,A=2,N=4,T="[object Arguments]",C="[object Array]",R="[object Boolean]",O="[object Date]",I="[object Error]",D="[object Function]",L="[object GeneratorFunction]",P="[object Map]",M="[object Number]",F="[object Object]",B="[object RegExp]",$="[object Set]",j="[object String]",U="[object Symbol]",V="[object WeakMap]",K="[object ArrayBuffer]",H="[object DataView]",G="[object Float32Array]",z="[object Float64Array]",X="[object Int8Array]",q="[object Int16Array]",W="[object Int32Array]",Y="[object Uint8Array]",Q="[object Uint8ClampedArray]",J="[object Uint16Array]",Z="[object Uint32Array]",ee={};function te(e,t,n,C,R,O){var I,P=t&k,M=t&A,B=t&N;if(n&&(I=R?n(e,C,R,O):n(e)),void 0!==I)return I;if(!w(e))return e;var $=y(e);if($){if(I=m(e),!P)return c(e,I)}else{var j=f(e),U=j==D||j==L;if(b(e))return l(e,P);if(j==F||j==T||U&&!R){if(I=M||U?{}:v(e),!P)return M?d(e,s(I,e)):u(e,a(I,e))}else{if(!ee[j])return R?e:{};I=g(e,j,P)}}O||(O=new r);var V=O.get(e);if(V)return V;O.set(e,I),E(e)?e.forEach((function(r){I.add(te(r,t,n,r,e,O))})):_(e)&&e.forEach((function(r,i){I.set(i,te(r,t,n,i,e,O))}));var K=B?M?p:h:M?x:S,H=$?void 0:K(e);return i(H||e,(function(r,i){H&&(i=r,r=e[i]),o(I,i,te(r,t,n,i,e,O))})),I}ee[T]=ee[C]=ee[K]=ee[H]=ee[R]=ee[O]=ee[G]=ee[z]=ee[X]=ee[q]=ee[W]=ee[P]=ee[M]=ee[F]=ee[B]=ee[$]=ee[j]=ee[U]=ee[Y]=ee[Q]=ee[J]=ee[Z]=!0,ee[I]=ee[D]=ee[V]=!1,e.exports=te},12522:function(e,t,n){var r=n(79955),i=Object.create,o=function(){function e(){}return function(t){if(!r(t))return{};if(i)return i(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=o},1269:function(e,t,n){var r=n(26034),i=n(28723);function o(e,t,n){var o=t(e);return i(e)?o:r(o,n(e))}e.exports=o},69610:function(e,t,n){var r=n(6087),i=n(94681),o=n(58588),a="[object Null]",s="[object Undefined]",l=r?r.toStringTag:void 0;function c(e){return null==e?void 0===e?s:a:l&&l in Object(e)?i(e):o(e)}e.exports=c},78744:function(e,t,n){var r=n(69610),i=n(16588),o="[object Arguments]";function a(e){return i(e)&&r(e)==o}e.exports=a},10726:function(e,t,n){var r=n(80615),i=n(16588),o="[object Map]";function a(e){return i(e)&&r(e)==o}e.exports=a},46953:function(e,t,n){var r=n(21892),i=n(33126),o=n(79955),a=n(93671),s=/[\\^$.*+?()[\]{}|]/g,l=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,d=c.toString,h=u.hasOwnProperty,p=RegExp("^"+d.call(h).replace(s,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function f(e){if(!o(e)||i(e))return!1;var t=r(e)?p:l;return t.test(a(e))}e.exports=f},91380:function(e,t,n){var r=n(80615),i=n(16588),o="[object Set]";function a(e){return i(e)&&r(e)==o}e.exports=a},17579:function(e,t,n){var r=n(69610),i=n(90444),o=n(16588),a="[object Arguments]",s="[object Array]",l="[object Boolean]",c="[object Date]",u="[object Error]",d="[object Function]",h="[object Map]",p="[object Number]",f="[object Object]",m="[object RegExp]",g="[object Set]",v="[object String]",y="[object WeakMap]",b="[object ArrayBuffer]",_="[object DataView]",w="[object Float32Array]",E="[object Float64Array]",S="[object Int8Array]",x="[object Int16Array]",k="[object Int32Array]",A="[object Uint8Array]",N="[object Uint8ClampedArray]",T="[object Uint16Array]",C="[object Uint32Array]",R={};function O(e){return o(e)&&i(e.length)&&!!R[r(e)]}R[w]=R[E]=R[S]=R[x]=R[k]=R[A]=R[N]=R[T]=R[C]=!0,R[a]=R[s]=R[b]=R[l]=R[_]=R[c]=R[u]=R[d]=R[h]=R[p]=R[f]=R[m]=R[g]=R[v]=R[y]=!1,e.exports=O},22426:function(e,t,n){var r=n(33557),i=n(34596),o=Object.prototype,a=o.hasOwnProperty;function s(e){if(!r(e))return i(e);var t=[];for(var n in Object(e))a.call(e,n)&&"constructor"!=n&&t.push(n);return t}e.exports=s},18749:function(e,t,n){var r=n(79955),i=n(33557),o=n(91211),a=Object.prototype,s=a.hasOwnProperty;function l(e){if(!r(e))return o(e);var t=i(e),n=[];for(var a in e)("constructor"!=a||!t&&s.call(e,a))&&n.push(a);return n}e.exports=l},14946:function(e){function t(e,t){var n=-1,r=Array(e);while(++n<e)r[n]=t(n);return r}e.exports=t},76747:function(e){function t(e){return function(t){return e(t)}}e.exports=t},79939:function(e,t,n){var r=n(10418);function i(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}e.exports=i},43028:function(e,t,n){e=n.nmd(e);var r=n(25395),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i,s=a?r.Buffer:void 0,l=s?s.allocUnsafe:void 0;function c(e,t){if(t)return e.slice();var n=e.length,r=l?l(n):new e.constructor(n);return e.copy(r),r}e.exports=c},25595:function(e,t,n){var r=n(79939);function i(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}e.exports=i},40251:function(e){var t=/\w*$/;function n(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}e.exports=n},93262:function(e,t,n){var r=n(6087),i=r?r.prototype:void 0,o=i?i.valueOf:void 0;function a(e){return o?Object(o.call(e)):{}}e.exports=a},84563:function(e,t,n){var r=n(79939);function i(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}e.exports=i},83157:function(e){function t(e,t){var n=-1,r=e.length;t||(t=Array(r));while(++n<r)t[n]=e[n];return t}e.exports=t},23297:function(e,t,n){var r=n(8149),i=n(25394);function o(e,t,n,o){var a=!n;n||(n={});var s=-1,l=t.length;while(++s<l){var c=t[s],u=o?o(n[c],e[c],c,n,e):void 0;void 0===u&&(u=e[c]),a?i(n,c,u):r(n,c,u)}return n}e.exports=o},92613:function(e,t,n){var r=n(23297),i=n(31158);function o(e,t){return r(e,i(e),t)}e.exports=o},9718:function(e,t,n){var r=n(23297),i=n(81857);function o(e,t){return r(e,i(e),t)}e.exports=o},11871:function(e,t,n){var r=n(25395),i=r["__core-js_shared__"];e.exports=i},21233:function(e,t,n){var r=n(55936),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();e.exports=i},64382:function(e,t,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},67680:function(e,t,n){var r=n(1269),i=n(31158),o=n(62328);function a(e){return r(e,o,i)}e.exports=a},56815:function(e,t,n){var r=n(1269),i=n(81857),o=n(93447);function a(e){return r(e,o,i)}e.exports=a},37505:function(e,t,n){var r=n(1684);function i(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}e.exports=i},55936:function(e,t,n){var r=n(46953),i=n(93730);function o(e,t){var n=i(e,t);return r(n)?n:void 0}e.exports=o},57761:function(e,t,n){var r=n(56041),i=r(Object.getPrototypeOf,Object);e.exports=i},94681:function(e,t,n){var r=n(6087),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;function l(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(l){}var i=a.call(e);return r&&(t?e[s]=n:delete e[s]),i}e.exports=l},31158:function(e,t,n){var r=n(75704),i=n(40823),o=Object.prototype,a=o.propertyIsEnumerable,s=Object.getOwnPropertySymbols,l=s?function(e){return null==e?[]:(e=Object(e),r(s(e),(function(t){return a.call(e,t)})))}:i;e.exports=l},81857:function(e,t,n){var r=n(26034),i=n(57761),o=n(31158),a=n(40823),s=Object.getOwnPropertySymbols,l=s?function(e){var t=[];while(e)r(t,o(e)),e=i(e);return t}:a;e.exports=l},80615:function(e,t,n){var r=n(78254),i=n(22669),o=n(46798),a=n(67371),s=n(28293),l=n(69610),c=n(93671),u="[object Map]",d="[object Object]",h="[object Promise]",p="[object Set]",f="[object WeakMap]",m="[object DataView]",g=c(r),v=c(i),y=c(o),b=c(a),_=c(s),w=l;(r&&w(new r(new ArrayBuffer(1)))!=m||i&&w(new i)!=u||o&&w(o.resolve())!=h||a&&w(new a)!=p||s&&w(new s)!=f)&&(w=function(e){var t=l(e),n=t==d?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case g:return m;case v:return u;case y:return h;case b:return p;case _:return f}return t}),e.exports=w},93730:function(e){function t(e,t){return null==e?void 0:e[t]}e.exports=t},88810:function(e,t,n){var r=n(82316);function i(){this.__data__=r?r(null):{},this.size=0}e.exports=i},54572:function(e){function t(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}e.exports=t},42239:function(e,t,n){var r=n(82316),i="__lodash_hash_undefined__",o=Object.prototype,a=o.hasOwnProperty;function s(e){var t=this.__data__;if(r){var n=t[e];return n===i?void 0:n}return a.call(t,e)?t[e]:void 0}e.exports=s},99779:function(e,t,n){var r=n(82316),i=Object.prototype,o=i.hasOwnProperty;function a(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}e.exports=a},33467:function(e,t,n){var r=n(82316),i="__lodash_hash_undefined__";function o(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?i:t,this}e.exports=o},8247:function(e){var t=Object.prototype,n=t.hasOwnProperty;function r(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&n.call(e,"index")&&(r.index=e.index,r.input=e.input),r}e.exports=r},25113:function(e,t,n){var r=n(79939),i=n(25595),o=n(40251),a=n(93262),s=n(84563),l="[object Boolean]",c="[object Date]",u="[object Map]",d="[object Number]",h="[object RegExp]",p="[object Set]",f="[object String]",m="[object Symbol]",g="[object ArrayBuffer]",v="[object DataView]",y="[object Float32Array]",b="[object Float64Array]",_="[object Int8Array]",w="[object Int16Array]",E="[object Int32Array]",S="[object Uint8Array]",x="[object Uint8ClampedArray]",k="[object Uint16Array]",A="[object Uint32Array]";function N(e,t,n){var N=e.constructor;switch(t){case g:return r(e);case l:case c:return new N(+e);case v:return i(e,n);case y:case b:case _:case w:case E:case S:case x:case k:case A:return s(e,n);case u:return new N;case d:case f:return new N(e);case h:return o(e);case p:return new N;case m:return a(e)}}e.exports=N},78231:function(e,t,n){var r=n(12522),i=n(57761),o=n(33557);function a(e){return"function"!=typeof e.constructor||o(e)?{}:r(i(e))}e.exports=a},20983:function(e){var t=9007199254740991,n=/^(?:0|[1-9]\d*)$/;function r(e,r){var i=typeof e;return r=null==r?t:r,!!r&&("number"==i||"symbol"!=i&&n.test(e))&&e>-1&&e%1==0&&e<r}e.exports=r},1684:function(e){function t(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}e.exports=t},33126:function(e,t,n){var r=n(11871),i=function(){var e=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function o(e){return!!i&&i in e}e.exports=o},33557:function(e){var t=Object.prototype;function n(e){var n=e&&e.constructor,r="function"==typeof n&&n.prototype||t;return e===r}e.exports=n},77804:function(e){function t(){this.__data__=[],this.size=0}e.exports=t},56874:function(e,t,n){var r=n(39583),i=Array.prototype,o=i.splice;function a(e){var t=this.__data__,n=r(t,e);if(n<0)return!1;var i=t.length-1;return n==i?t.pop():o.call(t,n,1),--this.size,!0}e.exports=a},32709:function(e,t,n){var r=n(39583);function i(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}e.exports=i},63177:function(e,t,n){var r=n(39583);function i(e){return r(this.__data__,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<a-1)return s.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(s)}return n.set(e,t),this.size=n.size,this}e.exports=s},93671:function(e){var t=Function.prototype,n=t.toString;function r(e){if(null!=e){try{return n.call(e)}catch(t){}try{return e+""}catch(t){}}return""}e.exports=r},66849:function(e,t,n){var r=n(23697),i=1,o=4;function a(e){return r(e,i|o)}e.exports=a},89242:function(e){function t(e,t){return e===t||e!==e&&t!==t}e.exports=t},83105:function(e,t,n){var r=n(78744),i=n(16588),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},28723:function(e){var t=Array.isArray;e.exports=t},37996:function(e,t,n){var r=n(21892),i=n(90444);function o(e){return null!=e&&i(e.length)&&!r(e)}e.exports=o},55966:function(e,t,n){e=n.nmd(e);var r=n(25395),i=n(89181),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},21892:function(e,t,n){var r=n(69610),i=n(79955),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},90444:function(e){var t=9007199254740991;function n(e){return"number"==typeof e&&e>-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 <https://lodash.com/>
|
||
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
||
* Released under MIT license <https://lodash.com/license>
|
||
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
||
* 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<o){var a=e[i];t(r,a,n(a),e)}return r}function wn(e,t){var n=-1,r=null==e?0:e.length;while(++n<r)if(!1===t(e[n],n,e))break;return e}function En(e,t){var n=null==e?0:e.length;while(n--)if(!1===t(e[n],n,e))break;return e}function Sn(e,t){var n=-1,r=null==e?0:e.length;while(++n<r)if(!t(e[n],n,e))return!1;return!0}function xn(e,t){var n=-1,r=null==e?0:e.length,i=0,o=[];while(++n<r){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}function kn(e,t){var n=null==e?0:e.length;return!!n&&Fn(e,t,0)>-1}function An(e,t,n){var r=-1,i=null==e?0:e.length;while(++r<i)if(n(t,e[r]))return!0;return!1}function Nn(e,t){var n=-1,r=null==e?0:e.length,i=Array(r);while(++n<r)i[n]=t(e[n],n,e);return i}function Tn(e,t){var n=-1,r=t.length,i=e.length;while(++n<r)e[i+n]=t[n];return e}function Cn(e,t,n,r){var i=-1,o=null==e?0:e.length;r&&o&&(n=e[++i]);while(++i<o)n=t(n,e[i],i,e);return n}function Rn(e,t,n,r){var i=null==e?0:e.length;r&&i&&(n=e[--i]);while(i--)n=t(n,e[i],i,e);return n}function On(e,t){var n=-1,r=null==e?0:e.length;while(++n<r)if(t(e[n],n,e))return!0;return!1}var In=Un("length");function Dn(e){return e.split("")}function Ln(e){return e.match(Ve)||[]}function Pn(e,t,n){var r;return n(e,(function(e,n,i){if(t(e,n,i))return r=n,!1})),r}function Mn(e,t,n,r){var i=e.length,o=n+(r?1:-1);while(r?o--:++o<i)if(t(e[o],o,e))return o;return-1}function Fn(e,t,n){return t===t?pr(e,t,n):Mn(e,$n,n)}function Bn(e,t,n,r){var i=n-1,o=e.length;while(++i<o)if(r(e[i],t))return i;return-1}function $n(e){return e!==e}function jn(e,t){var n=null==e?0:e.length;return n?Gn(e,t)/n:B}function Un(e){return function(t){return null==t?i:t[e]}}function Vn(e){return function(t){return null==e?i:e[t]}}function Kn(e,t,n,r,i){return i(e,(function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)})),n}function Hn(e,t){var n=e.length;e.sort(t);while(n--)e[n]=e[n].value;return e}function Gn(e,t){var n,r=-1,o=e.length;while(++r<o){var a=t(e[r]);a!==i&&(n=n===i?a:n+a)}return n}function zn(e,t){var n=-1,r=Array(e);while(++n<e)r[n]=t(n);return r}function Xn(e,t){return Nn(t,(function(t){return[t,e[t]]}))}function qn(e){return e?e.slice(0,vr(e)+1).replace(Fe,""):e}function Wn(e){return function(t){return e(t)}}function Yn(e,t){return Nn(t,(function(t){return e[t]}))}function Qn(e,t){return e.has(t)}function Jn(e,t){var n=-1,r=e.length;while(++n<r&&Fn(t,e[n],0)>-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<r){var a=e[n];a!==t&&a!==h||(e[n]=h,o[i++]=n)}return o}function dr(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function hr(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function pr(e,t,n){var r=n-1,i=e.length;while(++r<i)if(e[r]===t)return r;return-1}function fr(e,t,n){var r=n+1;while(r--)if(e[r]===t)return r;return r}function mr(e){return or(e)?br(e):In(e)}function gr(e){return or(e)?_r(e):Dn(e)}function vr(e){var t=e.length;while(t--&&Be.test(e.charAt(t)));return t}var yr=Vn(en);function br(e){var t=Ht.lastIndex=0;while(Ht.test(e))++t;return t}function _r(e){return e.match(Ht)||[]}function wr(e){return e.match(Gt)||[]}var Er=function e(t){t=null==t?sn:Sr.defaults(sn.Object(),t,Sr.pick(sn,qt));var n=t.Array,r=t.Date,Be=t.Error,Ve=t.Function,tt=t.Math,nt=t.Object,rt=t.RegExp,it=t.String,ot=t.TypeError,at=n.prototype,st=Ve.prototype,lt=nt.prototype,ct=t["__core-js_shared__"],ut=st.toString,dt=lt.hasOwnProperty,ht=0,pt=function(){var e=/[^.]+$/.exec(ct&&ct.keys&&ct.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),ft=lt.toString,mt=ut.call(nt),gt=sn._,vt=rt("^"+ut.call(dt).replace(Pe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),yt=un?t.Buffer:i,bt=t.Symbol,_t=t.Uint8Array,wt=yt?yt.allocUnsafe:i,Et=cr(nt.getPrototypeOf,nt),St=nt.create,xt=lt.propertyIsEnumerable,kt=at.splice,At=bt?bt.isConcatSpreadable:i,Nt=bt?bt.iterator:i,Tt=bt?bt.toStringTag:i,Ct=function(){try{var e=Xa(nt,"defineProperty");return e({},"",{}),e}catch(t){}}(),Rt=t.clearTimeout!==sn.clearTimeout&&t.clearTimeout,Ot=r&&r.now!==sn.Date.now&&r.now,It=t.setTimeout!==sn.setTimeout&&t.setTimeout,Dt=tt.ceil,Lt=tt.floor,Pt=nt.getOwnPropertySymbols,Mt=yt?yt.isBuffer:i,Ft=t.isFinite,Bt=at.join,$t=cr(nt.keys,nt),jt=tt.max,Ut=tt.min,Ht=r.now,Gt=t.parseInt,zt=tt.random,Xt=at.reverse,Jt=Xa(t,"DataView"),Zt=Xa(t,"Map"),en=Xa(t,"Promise"),tn=Xa(t,"Set"),on=Xa(t,"WeakMap"),an=Xa(nt,"create"),ln=on&&new on,cn={},dn=Is(Jt),hn=Is(Zt),In=Is(en),Dn=Is(tn),Vn=Is(on),pr=bt?bt.prototype:i,br=pr?pr.valueOf:i,_r=pr?pr.toString:i;function Er(e){if(ku(e)&&!lu(e)&&!(e instanceof Nr)){if(e instanceof Ar)return e;if(dt.call(e,"__wrapped__"))return Ls(e)}return new Ar(e)}var xr=function(){function e(){}return function(t){if(!xu(t))return{};if(St)return St(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function kr(){}function Ar(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function Nr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=$,this.__views__=[]}function Tr(){var e=new Nr(this.__wrapped__);return e.__actions__=ia(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ia(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ia(this.__views__),e}function Cr(){if(this.__filtered__){var e=new Nr(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function Rr(){var e=this.__wrapped__.value(),t=this.__dir__,n=lu(e),r=t<0,i=n?e.length:0,o=Ja(0,i,this.__views__),a=o.start,s=o.end,l=s-a,c=r?s:a-1,u=this.__iteratees__,d=u.length,h=0,p=Ut(l,this.__takeCount__);if(!n||!r&&i==l&&p==l)return $o(e,this.__actions__);var f=[];e:while(l--&&h<p){c+=t;var m=-1,g=e[c];while(++m<d){var v=u[m],y=v.iteratee,b=v.type,_=y(g);if(b==D)g=_;else if(!_){if(b==I)continue e;break e}}f[h++]=g}return f}function Or(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}function Ir(){this.__data__=an?an(null):{},this.size=0}function Dr(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function Lr(e){var t=this.__data__;if(an){var n=t[e];return n===u?i:n}return dt.call(t,e)?t[e]:i}function Pr(e){var t=this.__data__;return an?t[e]!==i:dt.call(t,e)}function Mr(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=an&&t===i?u:t,this}function Fr(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}function Br(){this.__data__=[],this.size=0}function $r(e){var t=this.__data__,n=ui(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():kt.call(t,n,1),--this.size,!0}function jr(e){var t=this.__data__,n=ui(t,e);return n<0?i:t[n][1]}function Ur(e){return ui(this.__data__,e)>-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<n){var r=e[t];this.set(r[0],r[1])}}function Hr(){this.size=0,this.__data__={hash:new Or,map:new(Zt||Fr),string:new Or}}function Gr(e){var t=Ga(this,e)["delete"](e);return this.size-=t?1:0,t}function zr(e){return Ga(this,e).get(e)}function Xr(e){return Ga(this,e).has(e)}function qr(e,t){var n=Ga(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Wr(e){var t=-1,n=null==e?0:e.length;this.__data__=new Kr;while(++t<n)this.add(e[t])}function Yr(e){return this.__data__.set(e,u),this}function Qr(e){return this.__data__.has(e)}function Jr(e){var t=this.__data__=new Fr(e);this.size=t.size}function Zr(){this.__data__=new Fr,this.size=0}function ei(e){var t=this.__data__,n=t["delete"](e);return this.size=t.size,n}function ti(e){return this.__data__.get(e)}function ni(e){return this.__data__.has(e)}function ri(e,t){var n=this.__data__;if(n instanceof Fr){var r=n.__data__;if(!Zt||r.length<a-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Kr(r)}return n.set(e,t),this.size=n.size,this}function ii(e,t){var n=lu(e),r=!n&&su(e),i=!n&&!r&&pu(e),o=!n&&!r&&!i&&ju(e),a=n||r||i||o,s=a?zn(e.length,it):[],l=s.length;for(var c in e)!t&&!dt.call(e,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||as(c,l))||s.push(c);return s}function oi(e){var t=e.length;return t?e[yo(0,t-1)]:i}function ai(e,t){return Cs(ia(e),gi(t,0,e.length))}function si(e){return Cs(ia(e))}function li(e,t,n){(n!==i&&!iu(e[t],n)||n===i&&!(t in e))&&fi(e,t,n)}function ci(e,t,n){var r=e[t];dt.call(e,t)&&iu(r,n)&&(n!==i||t in e)||fi(e,t,n)}function ui(e,t){var n=e.length;while(n--)if(iu(e[n][0],t))return n;return-1}function di(e,t,n,r){return Ei(e,(function(e,i,o){t(r,e,n(e),o)})),r}function hi(e,t){return e&&oa(t,Ed(t),e)}function pi(e,t){return e&&oa(t,Sd(t),e)}function fi(e,t,n){"__proto__"==t&&Ct?Ct(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function mi(e,t){var r=-1,o=t.length,a=n(o),s=null==e;while(++r<o)a[r]=s?i:gd(e,t[r]);return a}function gi(e,t,n){return e===e&&(n!==i&&(e=e<=n?e:n),t!==i&&(e=e>=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(++i<l){var d=e[i],h=null==n?d:n(d);if(d=r||0!==d?d:0,s&&h===h){var p=u;while(p--)if(t[p]===h)continue e;c.push(d)}else o(t,h,r)||c.push(d)}return c}Er.templateSettings={escape:Ce,evaluate:Re,interpolate:Oe,variable:"",imports:{_:Er}},Er.prototype=kr.prototype,Er.prototype.constructor=Er,Ar.prototype=xr(kr.prototype),Ar.prototype.constructor=Ar,Nr.prototype=xr(kr.prototype),Nr.prototype.constructor=Nr,Or.prototype.clear=Ir,Or.prototype["delete"]=Dr,Or.prototype.get=Lr,Or.prototype.has=Pr,Or.prototype.set=Mr,Fr.prototype.clear=Br,Fr.prototype["delete"]=$r,Fr.prototype.get=jr,Fr.prototype.has=Ur,Fr.prototype.set=Vr,Kr.prototype.clear=Hr,Kr.prototype["delete"]=Gr,Kr.prototype.get=zr,Kr.prototype.has=Xr,Kr.prototype.set=qr,Wr.prototype.add=Wr.prototype.push=Yr,Wr.prototype.has=Qr,Jr.prototype.clear=Zr,Jr.prototype["delete"]=ei,Jr.prototype.get=ti,Jr.prototype.has=ni,Jr.prototype.set=ri;var Ei=ua(Oi),Si=ua(Ii,!0);function xi(e,t){var n=!0;return Ei(e,(function(e,r,i){return n=!!t(e,r,i),n})),n}function ki(e,t,n){var r=-1,o=e.length;while(++r<o){var a=e[r],s=t(a);if(null!=s&&(l===i?s===s&&!$u(s):n(s,l)))var l=s,c=a}return c}function Ai(e,t,n,r){var o=e.length;n=qu(n),n<0&&(n=-n>o?0:o+n),r=r===i||r>o?o:qu(r),r<0&&(r+=o),r=n>r?0:Wu(r);while(n<r)e[n++]=t;return e}function Ni(e,t){var n=[];return Ei(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}function Ti(e,t,n,r,i){var o=-1,a=e.length;n||(n=os),i||(i=[]);while(++o<a){var s=e[o];t>0&&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&&n<r)e=e[Os(t[n++])];return n&&n==r?e:i}function Pi(e,t,n){var r=t(e);return lu(e)?r:Tn(r,n(e))}function Mi(e){return null==e?e===i?le:ee:Tt&&Tt in nt(e)?qa(e):bs(e)}function Fi(e,t){return e>t}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<jt(t,n)}function Ui(e,t,r){var o=r?An:kn,a=e[0].length,s=e.length,l=s,c=n(s),u=1/0,d=[];while(l--){var h=e[l];l&&t&&(h=Nn(h,Wn(t))),u=Ut(h.length,u),c[l]=!r&&(t||a>=120&&h.length>=120)?new Wr(l&&h):i}h=e[0];var p=-1,f=c[0];e:while(++p<a&&d.length<u){var m=h[p],g=t?t(m):m;if(m=r||0!==m?m:0,!(f?Qn(f,g):o(d,g,r))){l=s;while(--l){var v=c[l];if(!(v?Qn(v,g):o(e[l],g,r)))continue e}f&&f.push(g),d.push(m)}}return d}function Vi(e,t,n,r){return Oi(e,(function(e,i,o){t(r,n(e),i,o)})),r}function Ki(e,t,n){t=Ho(t,e),e=ws(e,t);var r=null==e?e:e[Os(ol(t))];return null==r?i:bn(r,e,n)}function Hi(e){return ku(e)&&Mi(e)==K}function Gi(e){return ku(e)&&Mi(e)==de}function zi(e){return ku(e)&&Mi(e)==X}function Xi(e,t,n,r,i){return e===t||(null==e||null==t||!ku(e)&&!ku(t)?e!==e&&t!==t:qi(e,t,n,r,Xi,i))}function qi(e,t,n,r,i,o){var a=lu(e),s=lu(t),l=a?H:Qa(e),c=s?H:Qa(t);l=l==K?te:l,c=c==K?te:c;var u=l==te,d=c==te,h=l==c;if(h&&pu(e)){if(!pu(t))return!1;a=!0,u=!1}if(h&&!u)return o||(o=new Jr),a||ju(e)?Pa(e,t,n,r,i,o):Ma(e,t,l,n,r,i,o);if(!(n&g)){var p=u&&dt.call(e,"__wrapped__"),f=d&&dt.call(t,"__wrapped__");if(p||f){var m=p?e.value():e,v=f?t.value():t;return o||(o=new Jr),i(m,v,n,r,o)}}return!!h&&(o||(o=new Jr),Fa(e,t,n,r,i,o))}function Wi(e){return ku(e)&&Qa(e)==J}function Yi(e,t,n,r){var o=n.length,a=o,s=!r;if(null==e)return!a;e=nt(e);while(o--){var l=n[o];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}while(++o<a){l=n[o];var c=l[0],u=e[c],d=l[1];if(s&&l[2]){if(u===i&&!(c in e))return!1}else{var h=new Jr;if(r)var p=r(u,d,c,e,t,h);if(!(p===i?Xi(d,u,g|v,r,h):p))return!1}}return!0}function Qi(e){if(!xu(e)||ds(e))return!1;var t=wu(e)?vt:We;return t.test(Is(e))}function Ji(e){return ku(e)&&Mi(e)==ie}function Zi(e){return ku(e)&&Qa(e)==oe}function eo(e){return ku(e)&&Su(e.length)&&!!Yt[Mi(e)]}function to(e){return"function"==typeof e?e:null==e?Rh:"object"==typeof e?lu(e)?so(e[0],e[1]):ao(e):Kh(e)}function no(e){if(!ps(e))return $t(e);var t=[];for(var n in nt(e))dt.call(e,n)&&"constructor"!=n&&t.push(n);return t}function ro(e){if(!xu(e))return ys(e);var t=ps(e),n=[];for(var r in e)("constructor"!=r||!t&&dt.call(e,r))&&n.push(r);return n}function io(e,t){return e<t}function oo(e,t){var r=-1,i=uu(e)?n(e.length):[];return Ei(e,(function(e,n,o){i[++r]=t(e,n,o)})),i}function ao(e){var t=za(e);return 1==t.length&&t[0][2]?ms(t[0][0],t[0][1]):function(n){return n===e||Yi(n,e,t)}}function so(e,t){return ls(e)&&fs(t)?ms(Os(e),t):function(n){var r=gd(n,e);return r===i&&r===t?yd(n,e):Xi(t,r,g|v)}}function lo(e,t,n,r,o){e!==t&&Ci(t,(function(a,s){if(o||(o=new Jr),xu(a))co(e,t,s,n,lo,r,o);else{var l=r?r(Ss(e,s),a,s+"",e,t,o):i;l===i&&(l=a),li(e,s,l)}}),Sd)}function co(e,t,n,r,o,a,s){var l=Ss(e,n),c=Ss(t,n),u=s.get(c);if(u)li(e,n,u);else{var d=a?a(l,c,n+"",e,t,s):i,h=d===i;if(h){var p=lu(c),f=!p&&pu(c),m=!p&&!f&&ju(c);d=c,p||f||m?lu(l)?d=l:du(l)?d=ia(l):f?(h=!1,d=qo(c,!0)):m?(h=!1,d=Zo(c,!0)):d=[]:Lu(c)||su(c)?(d=l,su(l)?d=Qu(l):xu(l)&&!wu(l)||(d=ns(c))):h=!1}h&&(s.set(c,d),o(d,c,r,a,s),s["delete"](c)),li(e,n,d)}}function uo(e,t){var n=e.length;if(n)return t+=t<0?n:0,as(t,n)?e[t]:i}function ho(e,t,n){t=t.length?Nn(t,(function(e){return lu(e)?function(t){return Li(t,1===e.length?e[0]:e)}:e})):[Rh];var r=-1;t=Nn(t,Wn(Ha()));var i=oo(e,(function(e,n,i){var o=Nn(t,(function(t){return t(e)}));return{criteria:o,index:++r,value:e}}));return Hn(i,(function(e,t){return ta(e,t,n)}))}function po(e,t){return fo(e,t,(function(t,n){return yd(e,n)}))}function fo(e,t,n){var r=-1,i=t.length,o={};while(++r<i){var a=t[r],s=Li(e,a);n(s,a)&&xo(o,Ho(a,e),s)}return o}function mo(e){return function(t){return Li(t,e)}}function go(e,t,n,r){var i=r?Bn:Fn,o=-1,a=t.length,s=e;e===t&&(t=ia(t)),n&&(s=Nn(e,Wn(n)));while(++o<a){var l=0,c=t[o],u=n?n(c):c;while((l=i(s,u,l,r))>-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&&++o<a){var c=Os(t[o]),u=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(o!=s){var d=l[c];u=r?r(d,c,l):i,u===i&&(u=xu(d)?d:as(t[o+1])?[]:{})}ci(l,c,u),l=l[c]}return e}var ko=ln?function(e,t){return ln.set(e,t),e}:Rh,Ao=Ct?function(e,t){return Ct(e,"toString",{configurable:!0,enumerable:!1,value:Ah(t),writable:!0})}:Rh;function No(e){return Cs(Ud(e))}function To(e,t,r){var i=-1,o=e.length;t<0&&(t=-t>o?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<o)a[i]=e[i+t];return a}function Co(e,t){var n;return Ei(e,(function(e,r,i){return n=t(e,r,i),!n})),!!n}function Ro(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t===t&&i<=U){while(r<i){var o=r+i>>>1,a=e[o];null!==a&&!$u(a)&&(n?a<=t:a<t)?r=o+1:i=o}return i}return Oo(e,t,Rh,n)}function Oo(e,t,n,r){var o=0,a=null==e?0:e.length;if(0===a)return 0;t=n(t);var s=t!==t,l=null===t,c=$u(t),u=t===i;while(o<a){var d=Lt((o+a)/2),h=n(e[d]),p=h!==i,f=null===h,m=h===h,g=$u(h);if(s)var v=r||m;else v=u?m&&(r||p):l?m&&p&&(r||!f):c?m&&p&&!f&&(r||!g):!f&&!g&&(r?h<=t:h<t);v?o=d+1:a=d}return Ut(a,j)}function Io(e,t){var n=-1,r=e.length,i=0,o=[];while(++n<r){var a=e[n],s=t?t(a):a;if(!n||!iu(s,l)){var l=s;o[i++]=0===a?0:a}}return o}function Do(e){return"number"==typeof e?e:$u(e)?B:+e}function Lo(e){if("string"==typeof e)return e;if(lu(e))return Nn(e,Lo)+"";if($u(e))return _r?_r.call(e):"";var t=e+"";return"0"==t&&1/e==-P?"-0":t}function Po(e,t,n){var r=-1,i=kn,o=e.length,s=!0,l=[],c=l;if(n)s=!1,i=An;else if(o>=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<o){var d=e[r],h=t?t(d):d;if(d=n||0!==d?d:0,s&&h===h){var p=c.length;while(p--)if(c[p]===h)continue e;t&&c.push(h),l.push(d)}else i(c,h,n)||(c!==l&&c.push(h),l.push(d))}return l}function Mo(e,t){return t=Ho(t,e),e=ws(e,t),null==e||delete e[Os(ol(t))]}function Fo(e,t,n,r){return xo(e,t,n(Li(e,t)),r)}function Bo(e,t,n,r){var i=e.length,o=r?i:-1;while((r?o--:++o<i)&&t(e[o],o,e));return n?To(e,r?0:o,r?o+1:i):To(e,r?o+1:0,r?i:o)}function $o(e,t){var n=e;return n instanceof Nr&&(n=n.value()),Cn(t,(function(e,t){return t.func.apply(t.thisArg,Tn([e],t.args))}),n)}function jo(e,t,r){var i=e.length;if(i<2)return i?Po(e[0]):[];var o=-1,a=n(i);while(++o<i){var s=e[o],l=-1;while(++l<i)l!=o&&(a[o]=wi(a[o]||s,e[l],t,r))}return Po(Ti(a,1),t,r)}function Uo(e,t,n){var r=-1,o=e.length,a=t.length,s={};while(++r<o){var l=r<a?t[r]:i;n(s,e[r],l)}return s}function Vo(e){return du(e)?e:[]}function Ko(e){return"function"==typeof e?e:Rh}function Ho(e,t){return lu(e)?e:ls(e,t)?[e]:Rs(Zu(e))}var Go=wo;function zo(e,t,n){var r=e.length;return n=n===i?r:n,!t&&n>=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<t||u&&n&&o&&!r&&!a||l&&n&&o||!s&&o||!c)return-1}return 0}function ta(e,t,n){var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;while(++r<a){var l=ea(i[r],o[r]);if(l){if(r>=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(++l<c)d[l]=t[l];while(++o<s)(h||o<a)&&(d[r[o]]=e[o]);while(u--)d[l++]=e[o++];return d}function ra(e,t,r,i){var o=-1,a=e.length,s=-1,l=r.length,c=-1,u=t.length,d=jt(a-l,0),h=n(d+u),p=!i;while(++o<d)h[o]=e[o];var f=o;while(++c<u)h[f+c]=t[c];while(++s<l)(p||o<a)&&(h[f+r[s]]=e[o++]);return h}function ia(e,t){var r=-1,i=e.length;t||(t=n(i));while(++r<i)t[r]=e[r];return t}function oa(e,t,n,r){var o=!n;n||(n={});var a=-1,s=t.length;while(++a<s){var l=t[a],c=r?r(n[l],e[l],l,n,e):i;c===i&&(c=e[l]),o?fi(n,l,c):ci(n,l,c)}return n}function aa(e,t){return oa(e,Wa(e),t)}function sa(e,t){return oa(e,Ya(e),t)}function la(e,t){return function(n,r){var i=lu(n)?_n:di,o=t?t():{};return i(n,e,Ha(r,2),o)}}function ca(e){return wo((function(t,n){var r=-1,o=n.length,a=o>1?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<o){var l=n[r];l&&e(t,l,r,a)}return t}))}function ua(e,t){return function(n,r){if(null==n)return n;if(!uu(n))return e(n,r);var i=n.length,o=t?i:-1,a=nt(n);while(t?o--:++o<i)if(!1===r(a[o],o,a))break;return n}}function da(e){return function(t,n,r){var i=-1,o=nt(t),a=r(t),s=a.length;while(s--){var l=a[e?s:++i];if(!1===n(o[l],l,o))break}return t}}function ha(e,t,n){var r=t&y,i=ma(e);function o(){var t=this&&this!==sn&&this instanceof o?i:e;return t.apply(r?n:this,arguments)}return o}function pa(e){return function(t){t=Zu(t);var n=or(t)?gr(t):i,r=n?n[0]:t.charAt(0),o=n?zo(n,1).join(""):t.slice(1);return r[e]()+o}}function fa(e){return function(t){return Cn(wh(qd(t).replace(Vt,"")),e,"")}}function ma(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=xr(e.prototype),r=e.apply(n,t);return xu(r)?r:n}}function ga(e,t,r){var o=ma(e);function a(){var s=arguments.length,l=n(s),c=s,u=Ka(a);while(c--)l[c]=arguments[c];var d=s<3&&l[0]!==u&&l[s-1]!==u?[]:ur(l,u);if(s-=d.length,s<r)return Na(e,t,ba,a.placeholder,i,l,d,i,i,r-s);var h=this&&this!==sn&&this instanceof a?o:e;return bn(h,this,l)}return a}function va(e){return function(t,n,r){var o=nt(t);if(!uu(t)){var a=Ha(n,3);t=Ed(t),n=function(e){return a(o[e],e,o)}}var s=e(t,n,r);return s>-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(++r<n){a=t[r];var c=Va(a),u="wrapper"==c?Ua(a):i;s=u&&us(u[0])&&u[1]==(k|w|S|A)&&!u[4].length&&1==u[9]?s[Va(u[0])].apply(s,u[3]):1==a.length&&us(a)?s[c]():s.thru(a)}return function(){var e=arguments,r=e[0];if(s&&1==e.length&&lu(r))return s.plant(r).value();var i=0,o=n?t[i].apply(this,e):r;while(++i<n)o=t[i].call(this,o);return o}}))}function ba(e,t,r,o,a,s,l,c,u,d){var h=t&k,p=t&y,f=t&b,m=t&(w|E),g=t&N,v=f?i:ma(e);function _(){var i=arguments.length,y=n(i),b=i;while(b--)y[b]=arguments[b];if(m)var w=Ka(_),E=er(y,w);if(o&&(y=na(y,o,a,m)),s&&(y=ra(y,s,l,m)),i-=E,m&&i<d){var S=ur(y,w);return Na(e,t,ba,_.placeholder,r,y,S,c,u,d-i)}var x=p?r:this,k=f?x[e]:e;return i=y.length,c?y=Es(y,c):g&&i>1&&y.reverse(),h&&u<i&&(y.length=u),this&&this!==sn&&this instanceof _&&(k=v||ma(k)),k.apply(x,y)}return _}function _a(e,t){return function(n,r){return Vi(n,e,t(r),{})}}function wa(e,t){return function(n,r){var o;if(n===i&&r===i)return t;if(n!==i&&(o=n),r!==i){if(o===i)return r;"string"==typeof n||"string"==typeof r?(n=Lo(n),r=Lo(r)):(n=Do(n),r=Do(r)),o=e(n,r)}return o}}function Ea(e){return Ba((function(t){return t=Nn(t,Wn(Ha())),wo((function(n){var r=this;return e(t,(function(e){return bn(e,r,n)}))}))}))}function Sa(e,t){t=t===i?" ":Lo(t);var n=t.length;if(n<2)return n?_o(t,e):t;var r=_o(t,Dt(e/mr(t)));return or(t)?zo(gr(r),0,e).join(""):r.slice(0,e)}function xa(e,t,r,i){var o=t&y,a=ma(e);function s(){var t=-1,l=arguments.length,c=-1,u=i.length,d=n(u+l),h=this&&this!==sn&&this instanceof s?a:e;while(++c<u)d[c]=i[c];while(l--)d[c++]=arguments[++t];return bn(h,o?r:this,d)}return s}function ka(e){return function(t,n,r){return r&&"number"!=typeof r&&ss(t,n,r)&&(n=r=i),t=Xu(t),n===i?(n=t,t=0):n=Xu(n),r=r===i?t<n?1:-1:Xu(r),bo(t,n,r,e)}}function Aa(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=Yu(t),n=Yu(n)),e(t,n)}}function Na(e,t,n,r,o,a,s,l,c,u){var d=t&w,h=d?s:i,p=d?i:s,f=d?a:i,m=d?i:a;t|=d?S:x,t&=~(d?x:S),t&_||(t&=~(y|b));var g=[e,t,o,f,h,m,p,l,c,u],v=n.apply(i,g);return us(e)&&xs(v,g),v.placeholder=r,Ns(v,e,t)}function Ta(e){var t=tt[e];return function(e,n){if(e=Yu(e),n=null==n?0:Ut(qu(n),292),n&&Ft(e)){var r=(Zu(e)+"e").split("e"),i=t(r[0]+"e"+(+r[1]+n));return r=(Zu(i)+"e").split("e"),+(r[0]+"e"+(+r[1]-n))}return t(e)}}var Ca=tn&&1/dr(new tn([,-0]))[1]==P?function(e){return new tn(e)}:Bh;function Ra(e){return function(t){var n=Qa(t);return n==J?lr(t):n==oe?hr(t):Xn(t,e(t))}}function Oa(e,t,n,r,o,a,s,c){var u=t&b;if(!u&&"function"!=typeof e)throw new ot(l);var d=r?r.length:0;if(d||(t&=~(S|x),r=o=i),s=s===i?s:jt(qu(s),0),c=c===i?c:qu(c),d-=o?o.length:0,t&x){var h=r,p=o;r=o=i}var f=u?i:Ua(e),m=[e,t,n,r,o,h,p,a,s,c];if(f&&vs(m,f),e=m[0],t=m[1],n=m[2],r=m[3],o=m[4],c=m[9]=m[9]===i?u?0:e.length:jt(m[9]-d,0),!c&&t&(w|E)&&(t&=~(w|E)),t&&t!=y)g=t==w||t==E?ga(e,t,c):t!=S&&t!=(y|S)||o.length?ba.apply(i,m):xa(e,t,n,r);else var g=ha(e,t,n);var v=f?ko:xs;return Ns(v(g,m),e,t)}function Ia(e,t,n,r){return e===i||iu(e,lt[n])&&!dt.call(r,n)?t:e}function Da(e,t,n,r,o,a){return xu(e)&&xu(t)&&(a.set(t,e),lo(e,t,i,Da,a),a["delete"](t)),e}function La(e){return Lu(e)?i:e}function Pa(e,t,n,r,o,a){var s=n&g,l=e.length,c=t.length;if(l!=c&&!(s&&c>l))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(++h<l){var m=e[h],y=t[h];if(r)var b=s?r(y,m,h,t,e,a):r(m,y,h,e,t,a);if(b!==i){if(b)continue;p=!1;break}if(f){if(!On(t,(function(e,t){if(!Qn(f,t)&&(m===e||o(m,e,n,r,a)))return f.push(t)}))){p=!1;break}}else if(m!==y&&!o(m,y,n,r,a)){p=!1;break}}return a["delete"](e),a["delete"](t),p}function Ma(e,t,n,r,i,o,a){switch(n){case he:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case de:return!(e.byteLength!=t.byteLength||!o(new _t(e),new _t(t)));case z:case X:case Z:return iu(+e,+t);case W:return e.name==t.name&&e.message==t.message;case ie:case ae:return e==t+"";case J:var s=lr;case oe:var l=r&g;if(s||(s=dr),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=v,a.set(e,t);var u=Pa(s(e),s(t),r,i,o,a);return a["delete"](e),u;case se:if(br)return br.call(e)==br.call(t)}return!1}function Fa(e,t,n,r,o,a){var s=n&g,l=$a(e),c=l.length,u=$a(t),d=u.length;if(c!=d&&!s)return!1;var h=c;while(h--){var p=l[h];if(!(s?p in t:dt.call(t,p)))return!1}var f=a.get(e),m=a.get(t);if(f&&m)return f==t&&m==e;var v=!0;a.set(e,t),a.set(t,e);var y=s;while(++h<c){p=l[h];var b=e[p],_=t[p];if(r)var w=s?r(_,b,p,t,e,a):r(b,_,p,e,t,a);if(!(w===i?b===_||o(b,_,n,r,a):w)){v=!1;break}y||(y="constructor"==p)}if(v&&!y){var E=e.constructor,S=t.constructor;E==S||!("constructor"in e)||!("constructor"in t)||"function"==typeof E&&E instanceof E&&"function"==typeof S&&S instanceof S||(v=!1)}return a["delete"](e),a["delete"](t),v}function Ba(e){return As(_s(e,i,qs),e+"")}function $a(e){return Pi(e,Ed,Wa)}function ja(e){return Pi(e,Sd,Ya)}var Ua=ln?function(e){return ln.get(e)}:Bh;function Va(e){var t=e.name+"",n=cn[t],r=dt.call(cn,t)?n.length:0;while(r--){var i=n[r],o=i.func;if(null==o||o==e)return i.name}return t}function Ka(e){var t=dt.call(Er,"placeholder")?Er:e;return t.placeholder}function Ha(){var e=Er.iteratee||Oh;return e=e===Oh?to:e,arguments.length?e(arguments[0],arguments[1]):e}function Ga(e,t){var n=e.__data__;return cs(t)?n["string"==typeof t?"string":"hash"]:n.map}function za(e){var t=Ed(e),n=t.length;while(n--){var r=t[n],i=e[r];t[n]=[r,i,fs(i)]}return t}function Xa(e,t){var n=ir(e,t);return Qi(n)?n:i}function qa(e){var t=dt.call(e,Tt),n=e[Tt];try{e[Tt]=i;var r=!0}catch(a){}var o=ft.call(e);return r&&(t?e[Tt]=n:delete e[Tt]),o}var Wa=Pt?function(e){return null==e?[]:(e=nt(e),xn(Pt(e),(function(t){return xt.call(e,t)})))}:Xh,Ya=Pt?function(e){var t=[];while(e)Tn(t,Wa(e)),e=Et(e);return t}:Xh,Qa=Mi;function Ja(e,t,n){var r=-1,i=n.length;while(++r<i){var o=n[r],a=o.size;switch(o.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=Ut(t,e+a);break;case"takeRight":e=jt(e,t-a);break}}return{start:e,end:t}}function Za(e){var t=e.match(je);return t?t[1].split(Ue):[]}function es(e,t,n){t=Ho(t,e);var r=-1,i=t.length,o=!1;while(++r<i){var a=Os(t[r]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++r!=i?o:(i=null==e?0:e.length,!!i&&Su(i)&&as(a,i)&&(lu(e)||su(e)))}function ts(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&dt.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function ns(e){return"function"!=typeof e.constructor||ps(e)?{}:xr(Et(e))}function rs(e,t,n){var r=e.constructor;switch(t){case de:return Wo(e);case z:case X:return new r(+e);case he:return Yo(e,n);case pe:case fe:case me:case ge:case ve:case ye:case be:case _e:case we:return Zo(e,n);case J:return new r;case Z:case ae:return new r(e);case ie:return Qo(e);case oe:return new r;case se:return Jo(e)}}function is(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+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&&e<t}function ss(e,t,n){if(!xu(n))return!1;var r=typeof t;return!!("number"==r?uu(n)&&as(t,n.length):"string"==r&&t in n)&&iu(n[t],e)}function ls(e,t){if(lu(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!$u(e))||(De.test(e)||!Ie.test(e)||null!=t&&e in nt(t))}function cs(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}function us(e){var t=Va(e),n=Er[t];if("function"!=typeof n||!(t in Nr.prototype))return!1;if(e===n)return!0;var r=Ua(n);return!!r&&e===r[0]}function ds(e){return!!pt&&pt in e}(Jt&&Qa(new Jt(new ArrayBuffer(1)))!=he||Zt&&Qa(new Zt)!=J||en&&Qa(en.resolve())!=ne||tn&&Qa(new tn)!=oe||on&&Qa(new on)!=ce)&&(Qa=function(e){var t=Mi(e),n=t==te?e.constructor:i,r=n?Is(n):"";if(r)switch(r){case dn:return he;case hn:return J;case In:return ne;case Dn:return oe;case Vn:return ce}return t});var hs=ct?wu:qh;function ps(e){var t=e&&e.constructor,n="function"==typeof t&&t.prototype||lt;return e===n}function fs(e){return e===e&&!xu(e)}function ms(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==i||e in nt(n)))}}function gs(e){var t=jc(e,(function(e){return n.size===d&&n.clear(),e})),n=t.cache;return t}function vs(e,t){var n=e[1],r=t[1],i=n|r,o=i<(y|b|k),a=r==k&&n==w||r==k&&n==A&&e[7].length<=t[8]||r==(k|A)&&t[7].length<=t[8]&&n==w;if(!o&&!a)return e;r&y&&(e[2]=t[2],i|=n&y?0:_);var s=t[3];if(s){var l=e[3];e[3]=l?na(l,s,t[4]):s,e[4]=l?ur(e[3],h):t[4]}return s=t[5],s&&(l=e[5],e[5]=l?ra(l,s,t[6]):s,e[6]=l?ur(e[5],h):t[6]),s=t[7],s&&(e[7]=s),r&k&&(e[8]=null==e[8]?t[8]:Ut(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i,e}function ys(e){var t=[];if(null!=e)for(var n in nt(e))t.push(n);return t}function bs(e){return ft.call(e)}function _s(e,t,r){return t=jt(t===i?e.length-1:t,0),function(){var i=arguments,o=-1,a=jt(i.length-t,0),s=n(a);while(++o<a)s[o]=i[t+o];o=-1;var l=n(t+1);while(++o<t)l[o]=i[o];return l[t]=r(s),bn(e,this,l)}}function ws(e,t){return t.length<2?e:Li(e,To(t,0,-1))}function Es(e,t){var n=e.length,r=Ut(t.length,n),o=ia(e);while(r--){var a=t[r];e[r]=as(a,n)?o[a]:i}return e}function Ss(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}var xs=Ts(ko),ks=It||function(e,t){return sn.setTimeout(e,t)},As=Ts(Ao);function Ns(e,t,n){var r=t+"";return As(e,is(r,Ds(Za(r),n)))}function Ts(e){var t=0,n=0;return function(){var r=Ht(),o=O-(r-n);if(n=r,o>0){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(++n<t){var a=yo(n,o),s=e[a];e[a]=e[n],e[n]=s}return e.length=t,e}var Rs=gs((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Le,(function(e,n,r,i){t.push(r?i.replace(He,"$1"):n||e)})),t}));function Os(e){if("string"==typeof e||$u(e))return e;var t=e+"";return"0"==t&&1/e==-P?"-0":t}function Is(e){if(null!=e){try{return ut.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function Ds(e,t){return wn(V,(function(n){var r="_."+n[0];t&n[1]&&!kn(e,r)&&e.push(r)})),e.sort()}function Ls(e){if(e instanceof Nr)return e.clone();var t=new Ar(e.__wrapped__,e.__chain__);return t.__actions__=ia(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function Ps(e,t,r){t=(r?ss(e,t,r):t===i)?1:jt(qu(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];var a=0,s=0,l=n(Dt(o/t));while(a<o)l[s++]=To(e,a,a+=t);return l}function Ms(e){var t=-1,n=null==e?0:e.length,r=0,i=[];while(++t<n){var o=e[t];o&&(i[r++]=o)}return i}function Fs(){var e=arguments.length;if(!e)return[];var t=n(e-1),r=arguments[0],i=e;while(i--)t[i-1]=arguments[i];return Tn(lu(r)?ia(r):[r],Ti(t,1))}var Bs=wo((function(e,t){return du(e)?wi(e,Ti(t,1,du,!0)):[]})),$s=wo((function(e,t){var n=ol(t);return du(n)&&(n=i),du(e)?wi(e,Ti(t,1,du,!0),Ha(n,2)):[]})),js=wo((function(e,t){var n=ol(t);return du(n)&&(n=i),du(e)?wi(e,Ti(t,1,du,!0),i,n):[]}));function Us(e,t,n){var r=null==e?0:e.length;return r?(t=n||t===i?1:qu(t),To(e,t<0?0:t,r)):[]}function Vs(e,t,n){var r=null==e?0:e.length;return r?(t=n||t===i?1:qu(t),t=r-t,To(e,0,t<0?0:t)):[]}function Ks(e,t){return e&&e.length?Bo(e,Ha(t,3),!0,!0):[]}function Hs(e,t){return e&&e.length?Bo(e,Ha(t,3),!0):[]}function Gs(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&ss(e,t,n)&&(n=0,r=i),Ai(e,t,n,r)):[]}function zs(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:qu(n);return i<0&&(i=jt(r+i,0)),Mn(e,Ha(t,3),i)}function Xs(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return n!==i&&(o=qu(n),o=n<0?jt(r+o,0):Ut(o,r-1)),Mn(e,Ha(t,3),o,!0)}function qs(e){var t=null==e?0:e.length;return t?Ti(e,1):[]}function Ws(e){var t=null==e?0:e.length;return t?Ti(e,P):[]}function Ys(e,t){var n=null==e?0:e.length;return n?(t=t===i?1:qu(t),Ti(e,t)):[]}function Qs(e){var t=-1,n=null==e?0:e.length,r={};while(++t<n){var i=e[t];r[i[0]]=i[1]}return r}function Js(e){return e&&e.length?e[0]:i}function Zs(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:qu(n);return i<0&&(i=jt(r+i,0)),Fn(e,t,i)}function el(e){var t=null==e?0:e.length;return t?To(e,0,-1):[]}var tl=wo((function(e){var t=Nn(e,Vo);return t.length&&t[0]===e[0]?Ui(t):[]})),nl=wo((function(e){var t=ol(e),n=Nn(e,Vo);return t===ol(n)?t=i:n.pop(),n.length&&n[0]===e[0]?Ui(n,Ha(t,2)):[]})),rl=wo((function(e){var t=ol(e),n=Nn(e,Vo);return t="function"==typeof t?t:i,t&&n.pop(),n.length&&n[0]===e[0]?Ui(n,i,t):[]}));function il(e,t){return null==e?"":Bt.call(e,t)}function ol(e){var t=null==e?0:e.length;return t?e[t-1]:i}function al(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return n!==i&&(o=qu(n),o=o<0?jt(r+o,0):Ut(o,r-1)),t===t?fr(e,t,o):Mn(e,$n,o,!0)}function sl(e,t){return e&&e.length?uo(e,qu(t)):i}var ll=wo(cl);function cl(e,t){return e&&e.length&&t&&t.length?go(e,t):e}function ul(e,t,n){return e&&e.length&&t&&t.length?go(e,t,Ha(n,2)):e}function dl(e,t,n){return e&&e.length&&t&&t.length?go(e,t,i,n):e}var hl=Ba((function(e,t){var n=null==e?0:e.length,r=mi(e,t);return vo(e,Nn(t,(function(e){return as(e,n)?+e:e})).sort(ea)),r}));function pl(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],o=e.length;t=Ha(t,3);while(++r<o){var a=e[r];t(a,r,e)&&(n.push(a),i.push(r))}return vo(e,i),n}function fl(e){return null==e?e:Xt.call(e)}function ml(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&ss(e,t,n)?(t=0,n=r):(t=null==t?0:qu(t),n=n===i?r:qu(n)),To(e,t,n)):[]}function gl(e,t){return Ro(e,t)}function vl(e,t,n){return Oo(e,t,Ha(n,2))}function yl(e,t){var n=null==e?0:e.length;if(n){var r=Ro(e,t);if(r<n&&iu(e[r],t))return r}return-1}function bl(e,t){return Ro(e,t,!0)}function _l(e,t,n){return Oo(e,t,Ha(n,2),!0)}function wl(e,t){var n=null==e?0:e.length;if(n){var r=Ro(e,t,!0)-1;if(iu(e[r],t))return r}return-1}function El(e){return e&&e.length?Io(e):[]}function Sl(e,t){return e&&e.length?Io(e,Ha(t,2)):[]}function xl(e){var t=null==e?0:e.length;return t?To(e,1,t):[]}function kl(e,t,n){return e&&e.length?(t=n||t===i?1:qu(t),To(e,0,t<0?0:t)):[]}function Al(e,t,n){var r=null==e?0:e.length;return r?(t=n||t===i?1:qu(t),t=r-t,To(e,t<0?0:t,r)):[]}function Nl(e,t){return e&&e.length?Bo(e,Ha(t,3),!1,!0):[]}function Tl(e,t){return e&&e.length?Bo(e,Ha(t,3)):[]}var Cl=wo((function(e){return Po(Ti(e,1,du,!0))})),Rl=wo((function(e){var t=ol(e);return du(t)&&(t=i),Po(Ti(e,1,du,!0),Ha(t,2))})),Ol=wo((function(e){var t=ol(e);return t="function"==typeof t?t:i,Po(Ti(e,1,du,!0),i,t)}));function Il(e){return e&&e.length?Po(e):[]}function Dl(e,t){return e&&e.length?Po(e,Ha(t,2)):[]}function Ll(e,t){return t="function"==typeof t?t:i,e&&e.length?Po(e,i,t):[]}function Pl(e){if(!e||!e.length)return[];var t=0;return e=xn(e,(function(e){if(du(e))return t=jt(e.length,t),!0})),zn(t,(function(t){return Nn(e,Un(t))}))}function Ml(e,t){if(!e||!e.length)return[];var n=Pl(e);return null==t?n:Nn(n,(function(e){return bn(t,i,e)}))}var Fl=wo((function(e,t){return du(e)?wi(e,t):[]})),Bl=wo((function(e){return jo(xn(e,du))})),$l=wo((function(e){var t=ol(e);return du(t)&&(t=i),jo(xn(e,du),Ha(t,2))})),jl=wo((function(e){var t=ol(e);return t="function"==typeof t?t:i,jo(xn(e,du),i,t)})),Ul=wo(Pl);function Vl(e,t){return Uo(e||[],t||[],ci)}function Kl(e,t){return Uo(e||[],t||[],xo)}var Hl=wo((function(e){var t=e.length,n=t>1?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<o)r[i]=t[i].call(this,r[i]);return bn(e,this,r)}))})),Hc=wo((function(e,t){var n=ur(t,Ka(Hc));return Oa(e,S,i,t,n)})),Gc=wo((function(e,t){var n=ur(t,Ka(Gc));return Oa(e,x,i,t,n)})),zc=Ba((function(e,t){return Oa(e,A,i,i,i,t)}));function Xc(e,t){if("function"!=typeof e)throw new ot(l);return t=t===i?t:qu(t),wo(e,t)}function qc(e,t){if("function"!=typeof e)throw new ot(l);return t=null==t?0:jt(qu(t),0),wo((function(n){var r=n[t],i=zo(n,0,t);return r&&Tn(i,r),bn(e,this,i)}))}function Wc(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new ot(l);return xu(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Mc(e,t,{leading:r,maxWait:t,trailing:i})}function Yc(e){return Rc(e,1)}function Qc(e,t){return Hc(Ko(t),e)}function Jc(){if(!arguments.length)return[];var e=arguments[0];return lu(e)?e:[e]}function Zc(e){return vi(e,m)}function eu(e,t){return t="function"==typeof t?t:i,vi(e,m,t)}function tu(e){return vi(e,p|m)}function nu(e,t){return t="function"==typeof t?t:i,vi(e,p|m,t)}function ru(e,t){return null==t||bi(e,t,Ed(t))}function iu(e,t){return e===t||e!==e&&t!==t}var ou=Aa(Fi),au=Aa((function(e,t){return e>=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(++n<r){var a=t[n],s=Sd(a),l=-1,c=s.length;while(++l<c){var u=s[l],d=e[u];(d===i||iu(d,lt[u])&&!dt.call(e,u))&&(e[u]=a[u])}}return e})),sd=wo((function(e){return e.push(i,Da),bn(Nd,i,e)}));function ld(e,t){return Pn(e,Ha(t,3),Oi)}function cd(e,t){return Pn(e,Ha(t,3),Ii)}function ud(e,t){return null==e?e:Ci(e,Ha(t,3),Sd)}function dd(e,t){return null==e?e:Ri(e,Ha(t,3),Sd)}function hd(e,t){return e&&Oi(e,Ha(t,3))}function pd(e,t){return e&&Ii(e,Ha(t,3))}function fd(e){return null==e?[]:Di(e,Ed(e))}function md(e){return null==e?[]:Di(e,Sd(e))}function gd(e,t,n){var r=null==e?i:Li(e,t);return r===i?n:r}function vd(e,t){return null!=e&&es(e,t,Bi)}function yd(e,t){return null!=e&&es(e,t,$i)}var bd=_a((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=ft.call(t)),e[t]=n}),Ah(Rh)),_d=_a((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=ft.call(t)),dt.call(e,t)?e[t].push(n):e[t]=[n]}),Ha),wd=wo(Ki);function Ed(e){return uu(e)?ii(e):no(e)}function Sd(e){return uu(e)?ii(e,!0):ro(e)}function xd(e,t){var n={};return t=Ha(t,3),Oi(e,(function(e,r,i){fi(n,t(e,r,i),e)})),n}function kd(e,t){var n={};return t=Ha(t,3),Oi(e,(function(e,r,i){fi(n,r,t(e,r,i))})),n}var Ad=ca((function(e,t,n){lo(e,t,n)})),Nd=ca((function(e,t,n,r){lo(e,t,n,r)})),Td=Ba((function(e,t){var n={};if(null==e)return n;var r=!1;t=Nn(t,(function(t){return t=Ho(t,e),r||(r=t.length>1),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(++r<o){var a=null==e?i:e[Os(t[r])];a===i&&(r=o,a=n),e=wu(a)?a.call(e):a}return e}function Dd(e,t,n){return null==e?e:xo(e,t,n)}function Ld(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:xo(e,t,n,r)}var Pd=Ra(Ed),Md=Ra(Sd);function Fd(e,t,n){var r=lu(e),i=r||pu(e)||ju(e);if(t=Ha(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:xu(e)&&wu(o)?xr(Et(e)):{}}return(i?wn:Oi)(e,(function(e,r,i){return t(n,e,r,i)})),n}function Bd(e,t){return null==e||Mo(e,t)}function $d(e,t,n){return null==e?e:Fo(e,t,Ko(n))}function jd(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:Fo(e,t,Ko(n),r)}function Ud(e){return null==e?[]:Yn(e,Ed(e))}function Vd(e){return null==e?[]:Yn(e,Sd(e))}function Kd(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=Yu(n),n=n===n?n:0),t!==i&&(t=Yu(t),t=t===t?t:0),gi(Yu(e),t,n)}function Hd(e,t,n){return t=Xu(t),n===i?(n=t,t=0):n=Xu(n),e=Yu(e),ji(e,t,n)}function Gd(e,t,n){if(n&&"boolean"!=typeof n&&ss(e,t,n)&&(t=n=i),n===i&&("boolean"==typeof t?(n=t,t=i):"boolean"==typeof e&&(n=e,e=i)),e===i&&t===i?(e=0,t=1):(e=Xu(e),t===i?(t=e,e=0):t=Xu(t)),e>t){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<t?e+Sa(t-r,n):e}function rh(e,t,n){e=Zu(e),t=qu(t);var r=t?mr(e):0;return t&&r<t?Sa(t-r,n)+e:e}function ih(e,t,n){return n||null==t?t=0:t&&(t=+t),Gt(Zu(e).replace(Fe,""),t||0)}function oh(e,t,n){return t=(n?ss(e,t,n):t===i)?1:qu(t),_o(Zu(e),t)}function ah(){var e=arguments,t=Zu(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var sh=fa((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));function lh(e,t,n){return n&&"number"!=typeof n&&ss(e,t,n)&&(t=n=i),n=n===i?$:n>>>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(++r<t){var i=e[r];if(bn(i[0],this,n))return bn(i[1],this,n)}}))}function kh(e){return yi(vi(e,p))}function Ah(e){return function(){return e}}function Nh(e,t){return null==e||e!==e?t:e}var Th=ya(),Ch=ya(!0);function Rh(e){return e}function Oh(e){return to("function"==typeof e?e:vi(e,p))}function Ih(e){return ao(vi(e,p))}function Dh(e,t){return so(e,vi(t,p))}var Lh=wo((function(e,t){return function(n){return Ki(n,e,t)}})),Ph=wo((function(e,t){return function(n){return Ki(e,n,t)}}));function Mh(e,t,n){var r=Ed(t),i=Di(t,r);null!=n||xu(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=Di(t,Ed(t)));var o=!(xu(n)&&"chain"in n)||!!n.chain,a=wu(e);return wn(i,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__),i=n.__actions__=ia(this.__actions__);return i.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Tn([this.value()],arguments))})})),e}function Fh(){return sn._===this&&(sn._=gt),this}function Bh(){}function $h(e){return e=qu(e),wo((function(t){return uo(t,e)}))}var jh=Ea(Nn),Uh=Ea(Sn),Vh=Ea(On);function Kh(e){return ls(e)?Un(Os(e)):mo(e)}function Hh(e){return function(t){return null==e?i:Li(e,t)}}var Gh=ka(),zh=ka(!0);function Xh(){return[]}function qh(){return!1}function Wh(){return{}}function Yh(){return""}function Qh(){return!0}function Jh(e,t){if(e=qu(e),e<1||e>M)return[];var n=$,r=Ut(e,$);t=Ha(t),e-=$;var i=zn(r,t);while(++n<e)t(n);return i}function Zh(e){return lu(e)?Nn(e,Os):$u(e)?[e]:ia(Rs(Zu(e)))}function ep(e){var t=++ht;return Zu(e)+t}var tp=wa((function(e,t){return e+t}),0),np=Ta("ceil"),rp=wa((function(e,t){return e/t}),1),ip=Ta("floor");function op(e){return e&&e.length?ki(e,Rh,Fi):i}function ap(e,t){return e&&e.length?ki(e,Ha(t,2),Fi):i}function sp(e){return jn(e,Rh)}function lp(e,t){return jn(e,Ha(t,2))}function cp(e){return e&&e.length?ki(e,Rh,io):i}function up(e,t){return e&&e.length?ki(e,Ha(t,2),io):i}var dp=wa((function(e,t){return e*t}),1),hp=Ta("round"),pp=wa((function(e,t){return e-t}),0);function fp(e){return e&&e.length?Gn(e,Rh):0}function mp(e,t){return e&&e.length?Gn(e,Ha(t,2)):0}return Er.after=Cc,Er.ary=Rc,Er.assign=ed,Er.assignIn=td,Er.assignInWith=nd,Er.assignWith=rd,Er.at=id,Er.before=Oc,Er.bind=Ic,Er.bindAll=Sh,Er.bindKey=Dc,Er.castArray=Jc,Er.chain=Gl,Er.chunk=Ps,Er.compact=Ms,Er.concat=Fs,Er.cond=xh,Er.conforms=kh,Er.constant=Ah,Er.countBy=nc,Er.create=od,Er.curry=Lc,Er.curryRight=Pc,Er.debounce=Mc,Er.defaults=ad,Er.defaultsDeep=sd,Er.defer=Fc,Er.delay=Bc,Er.difference=Bs,Er.differenceBy=$s,Er.differenceWith=js,Er.drop=Us,Er.dropRight=Vs,Er.dropRightWhile=Ks,Er.dropWhile=Hs,Er.fill=Gs,Er.filter=ic,Er.flatMap=sc,Er.flatMapDeep=lc,Er.flatMapDepth=cc,Er.flatten=qs,Er.flattenDeep=Ws,Er.flattenDepth=Ys,Er.flip=$c,Er.flow=Th,Er.flowRight=Ch,Er.fromPairs=Qs,Er.functions=fd,Er.functionsIn=md,Er.groupBy=hc,Er.initial=el,Er.intersection=tl,Er.intersectionBy=nl,Er.intersectionWith=rl,Er.invert=bd,Er.invertBy=_d,Er.invokeMap=fc,Er.iteratee=Oh,Er.keyBy=mc,Er.keys=Ed,Er.keysIn=Sd,Er.map=gc,Er.mapKeys=xd,Er.mapValues=kd,Er.matches=Ih,Er.matchesProperty=Dh,Er.memoize=jc,Er.merge=Ad,Er.mergeWith=Nd,Er.method=Lh,Er.methodOf=Ph,Er.mixin=Mh,Er.negate=Uc,Er.nthArg=$h,Er.omit=Td,Er.omitBy=Cd,Er.once=Vc,Er.orderBy=vc,Er.over=jh,Er.overArgs=Kc,Er.overEvery=Uh,Er.overSome=Vh,Er.partial=Hc,Er.partialRight=Gc,Er.partition=yc,Er.pick=Rd,Er.pickBy=Od,Er.property=Kh,Er.propertyOf=Hh,Er.pull=ll,Er.pullAll=cl,Er.pullAllBy=ul,Er.pullAllWith=dl,Er.pullAt=hl,Er.range=Gh,Er.rangeRight=zh,Er.rearg=zc,Er.reject=wc,Er.remove=pl,Er.rest=Xc,Er.reverse=fl,Er.sampleSize=Sc,Er.set=Dd,Er.setWith=Ld,Er.shuffle=xc,Er.slice=ml,Er.sortBy=Nc,Er.sortedUniq=El,Er.sortedUniqBy=Sl,Er.split=lh,Er.spread=qc,Er.tail=xl,Er.take=kl,Er.takeRight=Al,Er.takeRightWhile=Nl,Er.takeWhile=Tl,Er.tap=zl,Er.throttle=Wc,Er.thru=Xl,Er.toArray=zu,Er.toPairs=Pd,Er.toPairsIn=Md,Er.toPath=Zh,Er.toPlainObject=Qu,Er.transform=Fd,Er.unary=Yc,Er.union=Cl,Er.unionBy=Rl,Er.unionWith=Ol,Er.uniq=Il,Er.uniqBy=Dl,Er.uniqWith=Ll,Er.unset=Bd,Er.unzip=Pl,Er.unzipWith=Ml,Er.update=$d,Er.updateWith=jd,Er.values=Ud,Er.valuesIn=Vd,Er.without=Fl,Er.words=wh,Er.wrap=Qc,Er.xor=Bl,Er.xorBy=$l,Er.xorWith=jl,Er.zip=Ul,Er.zipObject=Vl,Er.zipObjectDeep=Kl,Er.zipWith=Hl,Er.entries=Pd,Er.entriesIn=Md,Er.extend=td,Er.extendWith=nd,Mh(Er,Er),Er.add=tp,Er.attempt=Eh,Er.camelCase=zd,Er.capitalize=Xd,Er.ceil=np,Er.clamp=Kd,Er.clone=Zc,Er.cloneDeep=tu,Er.cloneDeepWith=nu,Er.cloneWith=eu,Er.conformsTo=ru,Er.deburr=qd,Er.defaultTo=Nh,Er.divide=rp,Er.endsWith=Wd,Er.eq=iu,Er.escape=Yd,Er.escapeRegExp=Qd,Er.every=rc,Er.find=oc,Er.findIndex=zs,Er.findKey=ld,Er.findLast=ac,Er.findLastIndex=Xs,Er.findLastKey=cd,Er.floor=ip,Er.forEach=uc,Er.forEachRight=dc,Er.forIn=ud,Er.forInRight=dd,Er.forOwn=hd,Er.forOwnRight=pd,Er.get=gd,Er.gt=ou,Er.gte=au,Er.has=vd,Er.hasIn=yd,Er.head=Js,Er.identity=Rh,Er.includes=pc,Er.indexOf=Zs,Er.inRange=Hd,Er.invoke=wd,Er.isArguments=su,Er.isArray=lu,Er.isArrayBuffer=cu,Er.isArrayLike=uu,Er.isArrayLikeObject=du,Er.isBoolean=hu,Er.isBuffer=pu,Er.isDate=fu,Er.isElement=mu,Er.isEmpty=gu,Er.isEqual=vu,Er.isEqualWith=yu,Er.isError=bu,Er.isFinite=_u,Er.isFunction=wu,Er.isInteger=Eu,Er.isLength=Su,Er.isMap=Au,Er.isMatch=Nu,Er.isMatchWith=Tu,Er.isNaN=Cu,Er.isNative=Ru,Er.isNil=Iu,Er.isNull=Ou,Er.isNumber=Du,Er.isObject=xu,Er.isObjectLike=ku,Er.isPlainObject=Lu,Er.isRegExp=Pu,Er.isSafeInteger=Mu,Er.isSet=Fu,Er.isString=Bu,Er.isSymbol=$u,Er.isTypedArray=ju,Er.isUndefined=Uu,Er.isWeakMap=Vu,Er.isWeakSet=Ku,Er.join=il,Er.kebabCase=Jd,Er.last=ol,Er.lastIndexOf=al,Er.lowerCase=Zd,Er.lowerFirst=eh,Er.lt=Hu,Er.lte=Gu,Er.max=op,Er.maxBy=ap,Er.mean=sp,Er.meanBy=lp,Er.min=cp,Er.minBy=up,Er.stubArray=Xh,Er.stubFalse=qh,Er.stubObject=Wh,Er.stubString=Yh,Er.stubTrue=Qh,Er.multiply=dp,Er.nth=sl,Er.noConflict=Fh,Er.noop=Bh,Er.now=Tc,Er.pad=th,Er.padEnd=nh,Er.padStart=rh,Er.parseInt=ih,Er.random=Gd,Er.reduce=bc,Er.reduceRight=_c,Er.repeat=oh,Er.replace=ah,Er.result=Id,Er.round=hp,Er.runInContext=e,Er.sample=Ec,Er.size=kc,Er.snakeCase=sh,Er.some=Ac,Er.sortedIndex=gl,Er.sortedIndexBy=vl,Er.sortedIndexOf=yl,Er.sortedLastIndex=bl,Er.sortedLastIndexBy=_l,Er.sortedLastIndexOf=wl,Er.startCase=ch,Er.startsWith=uh,Er.subtract=pp,Er.sum=fp,Er.sumBy=mp,Er.template=dh,Er.times=Jh,Er.toFinite=Xu,Er.toInteger=qu,Er.toLength=Wu,Er.toLower=hh,Er.toNumber=Yu,Er.toSafeInteger=Ju,Er.toString=Zu,Er.toUpper=ph,Er.trim=fh,Er.trimEnd=mh,Er.trimStart=gh,Er.truncate=vh,Er.unescape=yh,Er.uniqueId=ep,Er.upperCase=bh,Er.upperFirst=_h,Er.each=uc,Er.eachRight=dc,Er.first=Js,Mh(Er,function(){var e={};return Oi(Er,(function(t,n){dt.call(Er.prototype,n)||(e[n]=t)})),e}(),{chain:!1}),Er.VERSION=o,wn(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Er[e].placeholder=Er})),wn(["drop","take"],(function(e,t){Nr.prototype[e]=function(n){n=n===i?1:jt(qu(n),0);var r=this.__filtered__&&!t?new Nr(this):this.clone();return r.__filtered__?r.__takeCount__=Ut(n,r.__takeCount__):r.__views__.push({size:Ut(n,$),type:e+(r.__dir__<0?"Right":"")}),r},Nr.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),wn(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=n==I||n==L;Nr.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Ha(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),wn(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Nr.prototype[e]=function(){return this[n](1).value()[0]}})),wn(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Nr.prototype[e]=function(){return this.__filtered__?new Nr(this):this[n](1)}})),Nr.prototype.compact=function(){return this.filter(Rh)},Nr.prototype.find=function(e){return this.filter(e).head()},Nr.prototype.findLast=function(e){return this.reverse().find(e)},Nr.prototype.invokeMap=wo((function(e,t){return"function"==typeof e?new Nr(this):this.map((function(n){return Ki(n,e,t)}))})),Nr.prototype.reject=function(e){return this.filter(Uc(Ha(e)))},Nr.prototype.slice=function(e,t){e=qu(e);var n=this;return n.__filtered__&&(e>0||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<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.isValidCron=void 0;var r=function(e){return/^\d+$/.test(e)?Number(e):NaN},i=function(e){return"*"===e},o=function(e){return"?"===e},a=function(e,t,n){return e>=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;n<t.length;n++)if(t[n].includes(",")){var r=t[n].split(",").map((function(e){return e.trim()})).filter((function(e){return""!==e})).map((function(e){return isNaN(Number(e))?e:Number(e)})).filter((function(e){return null!==e&&""!==e}));0===r.length&&r.push("*"),r.sort((function(e,t){return null!==e&&null!==t?e-t:0})),t[n]=r.map((function(e){return null!==e?e.toString():""})).join(",")}if(t.length<5)throw new Error("Expression has only ".concat(t.length," part").concat(1==t.length?"":"s",". At least 5 parts are required."));if(5==t.length)t.unshift(""),t.push("");else if(6==t.length){var i=/\d{4}$/.test(t[5])||"?"==t[4]||"?"==t[2];i?t.unshift(""):t.push("")}else if(t.length>7)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<e.length;a++)if(-1!=e[a].indexOf(",")&&(e[a]=e[a].split(",").filter((function(e){return""!==e})).join(",")||"*"),"*/1"==e[a]&&(e[a]="*"),e[a].indexOf("/")>-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;s<a.length;s++)o+=" ",o+=this.formatTime(a[s],n,""),s<a.length-2&&(o+=","),s==a.length-2&&(o+=this.i18n.spaceAnd())}else{var l=this.getSecondsDescription(),c=this.getMinutesDescription(),u=this.getHoursDescription();if(o+=l,o&&c&&(o+=", "),o+=c,c===u)return o;o&&u&&(o+=", "),o+=u}else{var d=n.split("-");o+=i.StringUtilities.format(this.i18n.everyMinuteBetweenX0AndX1(),this.formatTime(r,d[0],""),this.formatTime(r,d[1],""))}else o+=this.i18n.atSpace()+this.formatTime(r,n,t);return o},e.prototype.getSecondsDescription=function(){var e=this,t=this.getSegmentDescription(this.expressionParts[0],this.i18n.everySecond(),(function(e){return e}),(function(t){return i.StringUtilities.format(e.i18n.everyX0Seconds(t),t)}),(function(t){return e.i18n.secondsX0ThroughX1PastTheMinute()}),(function(t){return"0"==t?"":parseInt(t)<20?e.i18n.atX0SecondsPastTheMinute(t):e.i18n.atX0SecondsPastTheMinuteGt20()||e.i18n.atX0SecondsPastTheMinute(t)}));return t},e.prototype.getMinutesDescription=function(){var e=this,t=this.expressionParts[0],n=this.expressionParts[2],r=this.getSegmentDescription(this.expressionParts[1],this.i18n.everyMinute(),(function(e){return e}),(function(t){return i.StringUtilities.format(e.i18n.everyX0Minutes(t),t)}),(function(t){return e.i18n.minutesX0ThroughX1PastTheHour()}),(function(r){try{return"0"==r&&-1==n.indexOf("/")&&""==t?e.i18n.everyHour():parseInt(r)<20?e.i18n.atX0MinutesPastTheHour(r):e.i18n.atX0MinutesPastTheHourGt20()||e.i18n.atX0MinutesPastTheHour(r)}catch(i){return e.i18n.atX0MinutesPastTheHour(r)}}));return r},e.prototype.getHoursDescription=function(){var e=this,t=this.expressionParts[2],n=this.getSegmentDescription(t,this.i18n.everyHour(),(function(t){return e.formatTime(t,"0","")}),(function(t){return i.StringUtilities.format(e.i18n.everyX0Hours(t),t)}),(function(t){return e.i18n.betweenX0AndX1()}),(function(t){return e.i18n.atX0()}));if(n&&t.includes("-")&&"0"!=this.expressionParts[1]){var r=Array.from(n.matchAll(/:00/g));if(r.length>1){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;p<d.length;p++)if(p>0&&d.length>2&&(h+=",",p<d.length-1&&(h+=" ")),p>0&&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<t.length;r++)if(!isNaN(parseInt(t[r],10))){var i=parseInt(t[r],10);n(i>=0&&i<=59,"seconds part must be >= 0 and <= 59")}},e.minuteRange=function(e){for(var t=e.split(","),r=0;r<t.length;r++)if(!isNaN(parseInt(t[r],10))){var i=parseInt(t[r],10);n(i>=0&&i<=59,"minutes part must be >= 0 and <= 59")}},e.hourRange=function(e){for(var t=e.split(","),r=0;r<t.length;r++)if(!isNaN(parseInt(t[r],10))){var i=parseInt(t[r],10);n(i>=0&&i<=23,"hours part must be >= 0 and <= 23")}},e.dayOfMonthRange=function(e){for(var t=e.split(","),r=0;r<t.length;r++)if(!isNaN(parseInt(t[r],10))){var i=parseInt(t[r],10);n(i>=1&&i<=31,"DOM part must be >= 1 and <= 31")}},e.monthRange=function(e,t){for(var r=e.split(","),i=0;i<r.length;i++)if(!isNaN(parseInt(r[i],10))){var o=parseInt(r[i],10);n(o>=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<r.length;i++)if(!isNaN(parseInt(r[i],10))){var o=parseInt(r[i],10);n(o>=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<arguments.length;n++)t[n-1]=arguments[n];return e.replace(/%s/g,(function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return t.shift()}))},e.containsAny=function(e,t){return t.some((function(t){return e.indexOf(t)>-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;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,l(r.key),r)}}function s(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function l(e){var t=c(e,"string");return"symbol"===o(t)?t:String(t)}function c(e,t){if("object"!==o(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var d,h,p=n(95418),f=p.codes,m=f.ERR_AMBIGUOUS_ARGUMENT,g=f.ERR_INVALID_ARG_TYPE,v=f.ERR_INVALID_ARG_VALUE,y=f.ERR_INVALID_RETURN_VALUE,b=f.ERR_MISSING_ARGS,_=n(67413),w=n(10060),E=w.inspect,S=n(10060).types,x=S.isPromise,k=S.isRegExp,A=n(83741)(),N=n(92917)(),T=n(56566)("RegExp.prototype.test");new Map;function C(){var e=n(60500);d=e.isDeepEqual,h=e.isDeepStrictEqual}var R=!1,O=e.exports=M,I={};function D(e){if(e.message instanceof Error)throw e.message;throw new _(e)}function L(e,t,n,o,a){var s,l=arguments.length;if(0===l)s="Failed";else if(1===l)n=e,e=void 0;else{if(!1===R){R=!0;var c=r.emitWarning?r.emitWarning:i.warn.bind(i);c("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")}2===l&&(o="!=")}if(n instanceof Error)throw n;var u={actual:e,expected:t,operator:void 0===o?"fail":o,stackStartFn:a||L};void 0!==n&&(u.message=n);var d=new _(u);throw s&&(d.message=s,d.generatedMessage=!0),d}function P(e,t,n,r){if(!n){var i=!1;if(0===t)i=!0,r="No value argument passed to `assert.ok()`";else if(r instanceof Error)throw r;var o=new _({actual:n,expected:!0,message:r,operator:"==",stackStartFn:e});throw o.generatedMessage=i,o}}function M(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];P.apply(void 0,[M,t.length].concat(t))}function F(e,t,n){if(arguments.length<2)throw new b("actual","expected");void 0===d&&C(),h(e,t)&&D({actual:e,expected:t,message:n,operator:"notDeepStrictEqual",stackStartFn:F})}O.fail=L,O.AssertionError=_,O.ok=M,O.equal=function e(t,n,r){if(arguments.length<2)throw new b("actual","expected");t!=n&&D({actual:t,expected:n,message:r,operator:"==",stackStartFn:e})},O.notEqual=function e(t,n,r){if(arguments.length<2)throw new b("actual","expected");t==n&&D({actual:t,expected:n,message:r,operator:"!=",stackStartFn:e})},O.deepEqual=function e(t,n,r){if(arguments.length<2)throw new b("actual","expected");void 0===d&&C(),d(t,n)||D({actual:t,expected:n,message:r,operator:"deepEqual",stackStartFn:e})},O.notDeepEqual=function e(t,n,r){if(arguments.length<2)throw new b("actual","expected");void 0===d&&C(),d(t,n)&&D({actual:t,expected:n,message:r,operator:"notDeepEqual",stackStartFn:e})},O.deepStrictEqual=function e(t,n,r){if(arguments.length<2)throw new b("actual","expected");void 0===d&&C(),h(t,n)||D({actual:t,expected:n,message:r,operator:"deepStrictEqual",stackStartFn:e})},O.notDeepStrictEqual=F,O.strictEqual=function e(t,n,r){if(arguments.length<2)throw new b("actual","expected");N(t,n)||D({actual:t,expected:n,message:r,operator:"strictEqual",stackStartFn:e})},O.notStrictEqual=function e(t,n,r){if(arguments.length<2)throw new b("actual","expected");N(t,n)&&D({actual:t,expected:n,message:r,operator:"notStrictEqual",stackStartFn:e})};var B=s((function e(t,n,r){var i=this;u(this,e),n.forEach((function(e){e in t&&(void 0!==r&&"string"===typeof r[e]&&k(t[e])&&T(t[e],r[e])?i[e]=r[e]:i[e]=t[e])}))}));function $(e,t,n,r,i,o){if(!(n in e)||!h(e[n],t[n])){if(!r){var a=new B(e,i),s=new B(t,i,e),l=new _({actual:a,expected:s,operator:"deepStrictEqual",stackStartFn:o});throw l.actual=e,l.expected=t,l.operator=o.name,l}D({actual:e,expected:t,message:r,operator:o.name,stackStartFn:o})}}function j(e,t,n,r){if("function"!==typeof t){if(k(t))return T(t,e);if(2===arguments.length)throw new g("expected",["Function","RegExp"],t);if("object"!==o(e)||null===e){var i=new _({actual:e,expected:t,message:n,operator:"deepStrictEqual",stackStartFn:r});throw i.operator=r.name,i}var a=Object.keys(t);if(t instanceof Error)a.push("name","message");else if(0===a.length)throw new v("error",t,"may not be an empty object");return void 0===d&&C(),a.forEach((function(i){"string"===typeof e[i]&&k(t[i])&&T(t[i],e[i])||$(e,t,i,n,a,r)})),!0}return void 0!==t.prototype&&e instanceof t||!Error.isPrototypeOf(t)&&!0===t.call({},e)}function U(e){if("function"!==typeof e)throw new g("fn","Function",e);try{e()}catch(t){return t}return I}function V(e){return x(e)||null!==e&&"object"===o(e)&&"function"===typeof e.then&&"function"===typeof e.catch}function K(e){return Promise.resolve().then((function(){var t;if("function"===typeof e){if(t=e(),!V(t))throw new y("instance of Promise","promiseFn",t)}else{if(!V(e))throw new g("promiseFn",["Function","Promise"],e);t=e}return Promise.resolve().then((function(){return t})).then((function(){return I})).catch((function(e){return e}))}))}function H(e,t,n,r){if("string"===typeof n){if(4===arguments.length)throw new g("error",["Object","Error","Function","RegExp"],n);if("object"===o(t)&&null!==t){if(t.message===n)throw new m("error/message",'The error message "'.concat(t.message,'" is identical to the message.'))}else if(t===n)throw new m("error/message",'The error "'.concat(t,'" is identical to the message.'));r=n,n=void 0}else if(null!=n&&"object"!==o(n)&&"function"!==typeof n)throw new g("error",["Object","Error","Function","RegExp"],n);if(t===I){var i="";n&&n.name&&(i+=" (".concat(n.name,")")),i+=r?": ".concat(r):".";var a="rejects"===e.name?"rejection":"exception";D({actual:void 0,expected:n,operator:e.name,message:"Missing expected ".concat(a).concat(i),stackStartFn:e})}if(n&&!j(t,n,r,e))throw t}function G(e,t,n,r){if(t!==I){if("string"===typeof n&&(r=n,n=void 0),!n||j(t,n)){var i=r?": ".concat(r):".",o="doesNotReject"===e.name?"rejection":"exception";D({actual:t,expected:n,operator:e.name,message:"Got unwanted ".concat(o).concat(i,"\n")+'Actual message: "'.concat(t&&t.message,'"'),stackStartFn:e})}throw t}}function z(e,t,n,r,i){if(!k(t))throw new g("regexp","RegExp",t);var a="match"===i;if("string"!==typeof e||T(t,e)!==a){if(n instanceof Error)throw n;var s=!n;n=n||("string"!==typeof e?'The "string" argument must be of type string. Received type '+"".concat(o(e)," (").concat(E(e),")"):(a?"The input did not match the regular expression ":"The input was expected to not match the regular expression ")+"".concat(E(t),". Input:\n\n").concat(E(e),"\n"));var l=new _({actual:e,expected:t,message:n,operator:i,stackStartFn:r});throw l.generatedMessage=s,l}}function X(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];P.apply(void 0,[X,t.length].concat(t))}O.throws=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];H.apply(void 0,[e,U(t)].concat(r))},O.rejects=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return K(t).then((function(t){return H.apply(void 0,[e,t].concat(r))}))},O.doesNotThrow=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];G.apply(void 0,[e,U(t)].concat(r))},O.doesNotReject=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return K(t).then((function(t){return G.apply(void 0,[e,t].concat(r))}))},O.ifError=function e(t){if(null!==t&&void 0!==t){var n="ifError got unwanted exception: ";"object"===o(t)&&"string"===typeof t.message?0===t.message.length&&t.constructor?n+=t.constructor.name:n+=t.message:n+=E(t);var r=new _({actual:t,expected:null,operator:"ifError",message:n,stackStartFn:e}),i=t.stack;if("string"===typeof i){var a=i.split("\n");a.shift();for(var s=r.stack.split("\n"),l=0;l<a.length;l++){var c=s.indexOf(a[l]);if(-1!==c){s=s.slice(0,c);break}}r.stack="".concat(s.join("\n"),"\n").concat(a.join("\n"))}throw r}},O.match=function e(t,n,r){z(t,n,r,e,"match")},O.doesNotMatch=function e(t,n,r){z(t,n,r,e,"doesNotMatch")},O.strict=A(X,O,{equal:O.strictEqual,deepEqual:O.deepStrictEqual,notEqual:O.notStrictEqual,notDeepEqual:O.notDeepStrictEqual}),O.strict.strict=O.strict},67413:function(e,t,n){"use strict";var r=n(49663);function i(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 o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e,t,n){return t=u(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,u(r.key),r)}}function c(e,t,n){return t&&l(e.prototype,t),n&&l(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function u(e){var t=d(e,"string");return"symbol"===E(t)?t:String(t)}function d(e,t){if("object"!==E(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==E(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function h(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&&_(e,t)}function p(e){var t=y();return function(){var n,r=w(e);if(t){var i=w(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return f(this,n)}}function f(e,t){if(t&&("object"===E(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return m(e)}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e){var t="function"===typeof Map?new Map:void 0;return g=function(e){if(null===e||!b(e))return e;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return v(e,arguments,w(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),_(n,e)},g(e)}function v(e,t,n){return v=y()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var i=Function.bind.apply(e,r),o=new i;return n&&_(o,n.prototype),o},v.apply(null,arguments)}function y(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function b(e){return-1!==Function.toString.call(e).indexOf("[native code]")}function _(e,t){return _=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_(e,t)}function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}function E(e){return E="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},E(e)}var S=n(10060),x=S.inspect,k=n(95418),A=k.codes.ERR_INVALID_ARG_TYPE;function N(e,t,n){return(void 0===n||n>e.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(f<m){while(u[0][h]===d[0][h])h++;h>2&&(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;h<y;h++){var x=h-a;if(u.length<h+1)x>1&&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.length<h+1)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(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&&h<y-2)return"".concat(w).concat(S,"\n").concat(o,"\n").concat(C,"...").concat(I).concat(i,"\n")+"".concat(C,"...").concat(I)}return"".concat(w).concat(l?S:"","\n").concat(o).concat(i).concat(s).concat(p)}var B=function(e,t){h(i,e);var n=p(i);function i(e){var t;if(s(this,i),"object"!==E(e)||null===e)throw new A("options","Object",e);var o=e.message,a=e.operator,l=e.stackStartFn,c=e.actual,u=e.expected,d=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=o)t=n.call(this,String(o));else if(r.stderr&&r.stderr.isTTY&&(r.stderr&&r.stderr.getColorDepth&&1!==r.stderr.getColorDepth()?(C="[34m",R="[32m",I="[39m",O="[31m"):(C="",R="",I="",O="")),"object"===E(c)&&null!==c&&"object"===E(u)&&null!==u&&"stack"in c&&c instanceof Error&&"stack"in u&&u instanceof Error&&(c=P(c),u=P(u)),"deepStrictEqual"===a||"strictEqual"===a)t=n.call(this,F(c,u,a));else if("notDeepStrictEqual"===a||"notStrictEqual"===a){var h=D[a],p=M(c).split("\n");if("notStrictEqual"===a&&"object"===E(c)&&null!==c&&(h=D.notStrictEqualObject),p.length>30){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;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,a(r.key),r)}}function o(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function a(e){var t=s(e,"string");return"symbol"===r(t)?t:String(t)}function s(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(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&&u(e,t)}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}function d(e){var t=f();return function(){var n,r=m(e);if(t){var i=m(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return h(this,n)}}function h(e,t){if(t&&("object"===r(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return p(e)}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}var g,v,y={};function b(e,t,n){function r(e,n,r){return"string"===typeof t?t:t(e,n,r)}n||(n=Error);var i=function(t){c(i,t);var n=d(i);function i(t,o,a){var s;return l(this,i),s=n.call(this,r(t,o,a)),s.code=e,s}return o(i)}(n);y[e]=i}function _(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map((function(e){return String(e)})),n>2?"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;r<e;r++)t[r]=arguments[r];void 0===g&&(g=n(27057)),g(t.length>0,"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);n<t;n++)r[n]=e[n];return r}function s(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}function l(e){if(Array.isArray(e))return e}function c(e){return c="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},c(e)}var u=void 0!==/a/g.flags,d=function(e){var t=[];return e.forEach((function(e){return t.push(e)})),t},h=function(e){var t=[];return e.forEach((function(e,n){return t.push([n,e])})),t},p=Object.is?Object.is:n(93388),f=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},m=Number.isNaN?Number.isNaN:n(59562);function g(e){return e.call.bind(e)}var v=g(Object.prototype.hasOwnProperty),y=g(Object.prototype.propertyIsEnumerable),b=g(Object.prototype.toString),_=n(10060).types,w=_.isAnyArrayBuffer,E=_.isArrayBufferView,S=_.isDate,x=_.isMap,k=_.isRegExp,A=_.isSet,N=_.isNativeError,T=_.isBoxedPrimitive,C=_.isNumberObject,R=_.isStringObject,O=_.isBooleanObject,I=_.isBigIntObject,D=_.isSymbolObject,L=_.isFloat32Array,P=_.isFloat64Array;function M(e){if(0===e.length||e.length>10)return!0;for(var t=0;t<e.length;t++){var n=e.charCodeAt(t);if(n<48||n>57)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 <feross@feross.org> <http://feross.org>
|
||
* @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);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0}var $=void 0,j=!0,U=!1,V=0,K=1,H=2,G=3;function z(e,t){return u?e.source===t.source&&e.flags===t.flags:RegExp.prototype.toString.call(e)===RegExp.prototype.toString.call(t)}function X(e,t){if(e.byteLength!==t.byteLength)return!1;for(var n=0;n<e.byteLength;n++)if(e[n]!==t[n])return!1;return!0}function q(e,t){return e.byteLength===t.byteLength&&0===B(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function W(e,t){return e.byteLength===t.byteLength&&0===B(new Uint8Array(e),new Uint8Array(t))}function Y(e,t){return C(e)?C(t)&&p(Number.prototype.valueOf.call(e),Number.prototype.valueOf.call(t)):R(e)?R(t)&&String.prototype.valueOf.call(e)===String.prototype.valueOf.call(t):O(e)?O(t)&&Boolean.prototype.valueOf.call(e)===Boolean.prototype.valueOf.call(t):I(e)?I(t)&&BigInt.prototype.valueOf.call(e)===BigInt.prototype.valueOf.call(t):D(t)&&Symbol.prototype.valueOf.call(e)===Symbol.prototype.valueOf.call(t)}function Q(e,t,n,r){if(e===t)return 0!==e||(!n||p(e,t));if(n){if("object"!==c(e))return"number"===typeof e&&m(e)&&m(t);if("object"!==c(t)||null===e||null===t)return!1;if(Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1}else{if(null===e||"object"!==c(e))return(null===t||"object"!==c(t))&&e==t;if(null===t||"object"!==c(t))return!1}var i=b(e),o=b(t);if(i!==o)return!1;if(Array.isArray(e)){if(e.length!==t.length)return!1;var a=F(e,$),s=F(t,$);return a.length===s.length&&Z(e,t,n,r,K,a)}if("[object Object]"===i&&(!x(e)&&x(t)||!A(e)&&A(t)))return!1;if(S(e)){if(!S(t)||Date.prototype.getTime.call(e)!==Date.prototype.getTime.call(t))return!1}else if(k(e)){if(!k(t)||!z(e,t))return!1}else if(N(e)||e instanceof Error){if(e.message!==t.message||e.name!==t.name)return!1}else{if(E(e)){if(n||!L(e)&&!P(e)){if(!q(e,t))return!1}else if(!X(e,t))return!1;var l=F(e,$),u=F(t,$);return l.length===u.length&&Z(e,t,n,r,V,l)}if(A(e))return!(!A(t)||e.size!==t.size)&&Z(e,t,n,r,H);if(x(e))return!(!x(t)||e.size!==t.size)&&Z(e,t,n,r,G);if(w(e)){if(!W(e,t))return!1}else if(T(e)&&!Y(e,t))return!1}return Z(e,t,n,r,V)}function J(e,t){return t.filter((function(t){return y(e,t)}))}function Z(e,t,n,r,i,o){if(5===arguments.length){o=Object.keys(e);var a=Object.keys(t);if(o.length!==a.length)return!1}for(var s=0;s<o.length;s++)if(!v(t,o[s]))return!1;if(n&&5===arguments.length){var l=f(e);if(0!==l.length){var c=0;for(s=0;s<l.length;s++){var u=l[s];if(y(e,u)){if(!y(t,u))return!1;o.push(u),c++}else if(y(t,u))return!1}var d=f(t);if(l.length!==d.length&&J(t,d).length!==c)return!1}else{var h=f(t);if(0!==h.length&&0!==J(t,h).length)return!1}}if(0===o.length&&(i===V||i===K&&0===e.length||0===e.size))return!0;if(void 0===r)r={val1:new Map,val2:new Map,position:0};else{var p=r.val1.get(e);if(void 0!==p){var m=r.val2.get(t);if(void 0!==m)return p===m}r.position++}r.val1.set(e,r.position),r.val2.set(t,r.position);var g=se(e,t,n,o,r,i);return r.val1.delete(e),r.val2.delete(t),g}function ee(e,t,n,r){for(var i=d(e),o=0;o<i.length;o++){var a=i[o];if(Q(t,a,n,r))return e.delete(a),!0}return!1}function te(e){switch(c(e)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":e=+e;case"number":if(m(e))return!1}return!0}function ne(e,t,n){var r=te(n);return null!=r?r:t.has(r)&&!e.has(r)}function re(e,t,n,r,i){var o=te(n);if(null!=o)return o;var a=t.get(o);return!(void 0===a&&!t.has(o)||!Q(r,a,!1,i))&&(!e.has(o)&&Q(r,a,!1,i))}function ie(e,t,n,r){for(var i=null,o=d(e),a=0;a<o.length;a++){var s=o[a];if("object"===c(s)&&null!==s)null===i&&(i=new Set),i.add(s);else if(!t.has(s)){if(n)return!1;if(!ne(e,t,s))return!1;null===i&&(i=new Set),i.add(s)}}if(null!==i){for(var l=d(t),u=0;u<l.length;u++){var h=l[u];if("object"===c(h)&&null!==h){if(!ee(i,h,n,r))return!1}else if(!n&&!e.has(h)&&!ee(i,h,n,r))return!1}return 0===i.size}return!0}function oe(e,t,n,r,i,o){for(var a=d(e),s=0;s<a.length;s++){var l=a[s];if(Q(n,l,i,o)&&Q(r,t.get(l),i,o))return e.delete(l),!0}return!1}function ae(e,t,n,i){for(var o=null,a=h(e),s=0;s<a.length;s++){var l=r(a[s],2),u=l[0],d=l[1];if("object"===c(u)&&null!==u)null===o&&(o=new Set),o.add(u);else{var p=t.get(u);if(void 0===p&&!t.has(u)||!Q(d,p,n,i)){if(n)return!1;if(!re(e,t,u,d,i))return!1;null===o&&(o=new Set),o.add(u)}}}if(null!==o){for(var f=h(t),m=0;m<f.length;m++){var g=r(f[m],2),v=g[0],y=g[1];if("object"===c(v)&&null!==v){if(!oe(o,e,v,y,n,i))return!1}else if(!n&&(!e.has(v)||!Q(e.get(v),y,!1,i))&&!oe(o,e,v,y,!1,i))return!1}return 0===o.size}return!0}function se(e,t,n,r,i,o){var a=0;if(o===H){if(!ie(e,t,n,i))return!1}else if(o===G){if(!ae(e,t,n,i))return!1}else if(o===K)for(;a<e.length;a++){if(!v(e,a)){if(v(t,a))return!1;for(var s=Object.keys(e);a<s.length;a++){var l=s[a];if(!v(t,l)||!Q(e[l],t[l],n,i))return!1}return s.length===Object.keys(t).length}if(!v(t,a)||!Q(e[a],t[a],n,i))return!1}for(a=0;a<r.length;a++){var c=r[a];if(!Q(e[c],t[c],n,i))return!1}return!0}function le(e,t){return Q(e,t,U)}function ce(e,t){return Q(e,t,j)}e.exports={isDeepEqual:le,isDeepStrictEqual:ce}},25859:function(e,t){"use strict";t.byteLength=c,t.toByteArray=d,t.fromByteArray=f;for(var n=[],r=[],i="undefined"!==typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=o.length;a<s;++a)n[a]=o[a],r[o.charCodeAt(a)]=a;function l(e){var t=e.length;if(t%4>0)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<h;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],c[d++]=t>>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;o<n;o+=3)r=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(255&e[o+2]),i.push(h(r));return i.join("")}function f(e){for(var t,r=e.length,i=r%3,o=[],a=16383,s=0,l=r-i;s<l;s+=a)o.push(p(e,s,s+a>l?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 <https://feross.org>
|
||
* @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<t;r+=1)n[r]=255&e[r];return n}function v(e){if(J(e,Uint8Array)){var t=new Uint8Array(e);return y(t.buffer,t.byteOffset,t.byteLength)}return g(e)}function y(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');var r;return r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,u.prototype),r}function b(e){if(u.isBuffer(e)){var t=0|_(e.length),n=c(t);return 0===n.length||e.copy(n,0,0,t),n}return void 0!==e.length?"number"!==typeof e.length||Z(e.length)?c(0):g(e):"Buffer"===e.type&&Array.isArray(e.data)?g(e.data):void 0}function _(e){if(e>=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;o<s;o++)if(c(e,o)===c(t,-1===u?0:o-u)){if(-1===u&&(u=o),o-u+1===l)return u*a}else-1!==u&&(o-=o-u),u=-1}else for(n+l>s&&(n=s-l),o=n;o>=0;o--){for(var d=!0,h=0;h<l;h++)if(c(e,o+h)!==c(t,h)){d=!1;break}if(d)return o}return-1}function N(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r),r>i&&(r=i)):r=i;var o=t.length;r>o/2&&(r=o/2);for(var a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(Z(s))return a;e[n+a]=s}return a}function T(e,t,n,r){return Q(X(t,e.length-n),e,n,r)}function C(e,t,n,r){return Q(q(t),e,n,r)}function R(e,t,n,r){return Q(Y(t),e,n,r)}function O(e,t,n,r){return Q(W(t,e.length-n),e,n,r)}function I(e,t,n){return 0===t&&n===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,n))}function D(e,t,n){n=Math.min(e.length,n);var r=[],i=t;while(i<n){var o,a,s,l,c=e[i],u=null,d=c>239?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);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},u.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=u.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var o=e[n];if(J(o,Uint8Array))i+o.length>r.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;t<e;t+=2)x(this,t,t+1);return this},u.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)x(this,t,t+3),x(this,t+1,t+2);return this},u.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)x(this,t,t+7),x(this,t+1,t+6),x(this,t+2,t+5),x(this,t+3,t+4);return this},u.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?D(this,0,e):S.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+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<s;++d)if(l[d]!==c[d]){o=l[d],a=c[d];break}return o<a?-1:a<o?1:0},u.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},u.prototype.indexOf=function(e,t,n){return k(this,e,t,n,!0)},u.prototype.lastIndexOf=function(e,t,n){return k(this,e,t,n,!1)},u.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"===typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=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(r<t)n+=String.fromCharCode.apply(String,e.slice(r,r+=L));return n}function M(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function F(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function B(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o<n;++o)i+=ee[e[o]];return i}function $(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length-1;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function j(e,t,n){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>n)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||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.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<e&&(t=e);var r=this.subarray(e,t);return Object.setPrototypeOf(r,u.prototype),r},u.prototype.readUintLE=u.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||j(e,t,this.length);var r=this[e],i=1,o=0;while(++o<t&&(i*=256))r+=this[e+o]*i;return r},u.prototype.readUintBE=u.prototype.readUIntBE=function(e,t,n){e>>>=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<t&&(i*=256))r+=this[e+o]*i;return i*=128,r>=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<n&&(o*=256))this[t+a]=e/o&255;return t+n},u.prototype.writeUintBE=u.prototype.writeUIntBE=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=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<n&&(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.writeIntBE=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=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<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=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<r-n&&(r=e.length-t+n);var i=r-n;return this===e&&"function"===typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),i},u.prototype.fill=function(e,t,n,r){if("string"===typeof e){if("string"===typeof t?(r=t,t=0,n=this.length):"string"===typeof n&&(r=n,n=this.length),void 0!==r&&"string"!==typeof r)throw new TypeError("encoding must be a string");if("string"===typeof r&&!u.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){var i=e.charCodeAt(0);("utf8"===r&&i<128||"latin1"===r)&&(e=i)}}else"number"===typeof e?e&=255:"boolean"===typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(o=t;o<n;++o)this[o]=e;else{var a=u.isBuffer(e)?e:u.from(e,r),s=a.length;if(0===s)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<n-t;++o)this[o+t]=a[o%s]}return this};var G=/[^+/0-9A-Za-z-_]/g;function z(e){if(e=e.split("=")[0],e=e.trim().replace(G,""),e.length<2)return"";while(e.length%4!==0)e+="=";return e}function X(e,t){var n;t=t||1/0;for(var r=e.length,i=null,o=[],a=0;a<r;++a){if(n=e.charCodeAt(a),n>55295&&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<e.length;++n)t.push(255&e.charCodeAt(n));return t}function W(e,t){for(var n,r,i,o=[],a=0;a<e.length;++a){if((t-=2)<0)break;n=e.charCodeAt(a),r=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<r;++i){if(i+n>=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<o&&(o=s,n=i)}return n},o.keyword.rgb=function(e){return r[e]},o.rgb.xyz=function(e){let t=e[0]/255,n=e[1]/255,r=e[2]/255;t=t>.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<e;i++)r[i]=Math.round(r[i]);return r};return"conversion"in e&&(t.conversion=e.conversion),t}a.forEach((e=>{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<n;r++)e[t[r]]={distance:-1,parent:null};return e}function o(e){const t=i(),n=[e];t[e].distance=0;while(n.length){const e=n.pop(),i=Object.keys(r[e]);for(let r=i.length,o=0;o<r;o++){const r=i[o],a=t[r];-1===a.distance&&(a.distance=t[e].distance+1,a.parent=e,n.unshift(r))}}return t}function a(e,t){return function(n){return t(e(n))}}function s(e,t){const n=[t[e].parent,e];let i=r[t[e].parent][e],o=t[e].parent;while(t[o].parent)n.unshift(t[o].parent),i=a(r[t[o].parent][o],i),o=t[o].parent;return i.conversion=n,i}e.exports=function(e){const t=o(e),n={},r=Object.keys(t);for(let i=r.length,o=0;o<i;o++){const e=r[o],i=t[e];null!==i.parent&&(n[e]=s(e,t))}return n}},69103:function(e){"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},96065:function(e,t,n){var r=n(69103),i=n(60307),o=Object.hasOwnProperty,a=Object.create(null);for(var s in r)o.call(r,s)&&(a[r[s]]=s);var l=e.exports={to:{},get:{}};function c(e,t,n){return Math.min(Math.max(t,e),n)}function u(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}l.get=function(e){var t,n,r=e.substring(0,3).toLowerCase();switch(r){case"hsl":t=l.get.hsl(e),n="hsl";break;case"hwb":t=l.get.hwb(e),n="hwb";break;default:t=l.get.rgb(e),n="rgb";break}return t?{model:n,value:t}:null},l.get.rgb=function(e){if(!e)return null;var t,n,i,a=/^#([a-f0-9]{3,4})$/i,s=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,l=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,u=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,d=/^(\w+)$/,h=[0,0,0,1];if(t=e.match(s)){for(i=t[2],t=t[1],n=0;n<3;n++){var p=2*n;h[n]=parseInt(t.slice(p,p+2),16)}i&&(h[3]=parseInt(i,16)/255)}else if(t=e.match(a)){for(t=t[1],i=t[3],n=0;n<3;n++)h[n]=parseInt(t[n]+t[n],16);i&&(h[3]=parseInt(i+i,16)/255)}else if(t=e.match(l)){for(n=0;n<3;n++)h[n]=parseInt(t[n+1],0);t[4]&&(t[5]?h[3]=.01*parseFloat(t[4]):h[3]=parseFloat(t[4]))}else{if(!(t=e.match(u)))return(t=e.match(d))?"transparent"===t[1]?[0,0,0,0]:o.call(r,t[1])?(h=r[t[1]],h[3]=1,h):null:null;for(n=0;n<3;n++)h[n]=Math.round(2.55*parseFloat(t[n+1]));t[4]&&(t[5]?h[3]=.01*parseFloat(t[4]):h[3]=parseFloat(t[4]))}for(n=0;n<3;n++)h[n]=c(h[n],0,255);return h[3]=c(h[3],0,1),h},l.get.hsl=function(e){if(!e)return null;var t=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,n=e.match(t);if(n){var r=parseFloat(n[4]),i=(parseFloat(n[1])%360+360)%360,o=c(parseFloat(n[2]),0,100),a=c(parseFloat(n[3]),0,100),s=c(isNaN(r)?1:r,0,1);return[i,o,a,s]}return null},l.get.hwb=function(e){if(!e)return null;var t=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,n=e.match(t);if(n){var r=parseFloat(n[4]),i=(parseFloat(n[1])%360+360)%360,o=c(parseFloat(n[2]),0,100),a=c(parseFloat(n[3]),0,100),s=c(isNaN(r)?1:r,0,1);return[i,o,a,s]}return null},l.to.hex=function(){var e=i(arguments);return"#"+u(e[0])+u(e[1])+u(e[2])+(e[3]<1?u(Math.round(255*e[3])):"")},l.to.rgb=function(){var e=i(arguments);return e.length<4||1===e[3]?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},l.to.rgb.percent=function(){var e=i(arguments),t=Math.round(e[0]/255*100),n=Math.round(e[1]/255*100),r=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+t+"%, "+n+"%, "+r+"%)":"rgba("+t+"%, "+n+"%, "+r+"%, "+e[3]+")"},l.to.hsl=function(){var e=i(arguments);return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},l.to.hwb=function(){var e=i(arguments),t="";return e.length>=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<o.length;n++)s.push(e[o[n]]);this.color=f(s)}if(s[this.model])for(c=i[this.model].channels,n=0;n<c;n++){const e=s[this.model][n];e&&(this.color[n]=e(this.color[n]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}l.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(e){let t=this.model in r.to?this:this.rgb();t=t.round("number"===typeof e?e:1);const n=1===t.valpha?t.color:[...t.color,this.valpha];return r.to[t.model](n)},percentString(e){const t=this.rgb().round("number"===typeof e?e:1),n=1===t.valpha?t.color:[...t.color,this.valpha];return r.to.rgb.percent(n)},array(){return 1===this.valpha?[...this.color]:[...this.color,this.valpha]},object(){const e={},{channels:t}=i[this.model],{labels:n}=i[this.model];for(let r=0;r<t;r++)e[n[r]]=this.color[r];return 1!==this.valpha&&(e.alpha=this.valpha),e},unitArray(){const e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,1!==this.valpha&&e.push(this.valpha),e},unitObject(){const e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,1!==this.valpha&&(e.alpha=this.valpha),e},round(e){return e=Math.max(e||0,0),new l([...this.color.map(u(e)),this.valpha],this.model)},alpha(e){return void 0!==e?new l([...this.color,Math.max(0,Math.min(1,e))],this.model):this.valpha},red:d("rgb",0,h(255)),green:d("rgb",1,h(255)),blue:d("rgb",2,h(255)),hue:d(["hsl","hsv","hsl","hwb","hcg"],0,(e=>(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<t;n++)"number"!==typeof e[n]&&(e[n]=0);return e}e.exports=l},9776:function(e,t,n){var r=n(10060),i=n(27057);function o(){return(new Date).getTime()}var a,s=Array.prototype.slice,l={};a="undefined"!==typeof n.g&&n.g.console?n.g.console:"undefined"!==typeof window&&window.console?window.console:{};for(var c=[[f,"log"],[m,"info"],[g,"warn"],[v,"error"],[y,"time"],[b,"timeEnd"],[_,"trace"],[w,"dir"],[E,"assert"]],u=0;u<c.length;u++){var d=c[u],h=d[0],p=d[1];a[p]||(a[p]=h)}function f(){}function m(){a.log.apply(a,arguments)}function g(){a.log.apply(a,arguments)}function v(){a.warn.apply(a,arguments)}function y(e){l[e]=o()}function b(e){var t=l[e];if(!t)throw new Error("No such label: "+e);delete l[e];var n=o()-t;a.log(e+": "+n+"ms")}function _(){var e=new Error;e.name="Trace",e.message=r.format.apply(null,arguments),a.error(e.stack)}function w(e){a.log(r.inspect(e)+"\n")}function E(e){if(!e){var t=s.call(arguments,1);i.ok(!1,r.format.apply(null,t))}}e.exports=a},77905: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;n<t.length;n++)if(t[n].includes(",")){var r=t[n].split(",").map((function(e){return e.trim()})).filter((function(e){return""!==e})).map((function(e){return isNaN(Number(e))?e:Number(e)})).filter((function(e){return null!==e&&""!==e}));0===r.length&&r.push("*"),r.sort((function(e,t){return null!==e&&null!==t?e-t:0})),t[n]=r.map((function(e){return null!==e?e.toString():""})).join(",")}if(t.length<5)throw new Error("Expression has only ".concat(t.length," part").concat(1==t.length?"":"s",". At least 5 parts are required."));if(5==t.length)t.unshift(""),t.push("");else if(6==t.length){var i=/\d{4}$/.test(t[5])||"?"==t[4]||"?"==t[2];i?t.unshift(""):t.push("")}else if(t.length>7)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<e.length;a++)if(-1!=e[a].indexOf(",")&&(e[a]=e[a].split(",").filter((function(e){return""!==e})).join(",")||"*"),"*/1"==e[a]&&(e[a]="*"),e[a].indexOf("/")>-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;s<a.length;s++)o+=" ",o+=this.formatTime(a[s],n,""),s<a.length-2&&(o+=","),s==a.length-2&&(o+=this.i18n.spaceAnd())}else{var l=this.getSecondsDescription(),c=this.getMinutesDescription(),u=this.getHoursDescription();if(o+=l,o&&c&&(o+=", "),o+=c,c===u)return o;o&&u&&(o+=", "),o+=u}else{var d=n.split("-");o+=i.StringUtilities.format(this.i18n.everyMinuteBetweenX0AndX1(),this.formatTime(r,d[0],""),this.formatTime(r,d[1],""))}else o+=this.i18n.atSpace()+this.formatTime(r,n,t);return o},e.prototype.getSecondsDescription=function(){var e=this,t=this.getSegmentDescription(this.expressionParts[0],this.i18n.everySecond(),(function(e){return e}),(function(t){return i.StringUtilities.format(e.i18n.everyX0Seconds(t),t)}),(function(t){return e.i18n.secondsX0ThroughX1PastTheMinute()}),(function(t){return"0"==t?"":parseInt(t)<20?e.i18n.atX0SecondsPastTheMinute(t):e.i18n.atX0SecondsPastTheMinuteGt20()||e.i18n.atX0SecondsPastTheMinute(t)}));return t},e.prototype.getMinutesDescription=function(){var e=this,t=this.expressionParts[0],n=this.expressionParts[2],r=this.getSegmentDescription(this.expressionParts[1],this.i18n.everyMinute(),(function(e){return e}),(function(t){return i.StringUtilities.format(e.i18n.everyX0Minutes(t),t)}),(function(t){return e.i18n.minutesX0ThroughX1PastTheHour()}),(function(r){try{return"0"==r&&-1==n.indexOf("/")&&""==t?e.i18n.everyHour():parseInt(r)<20?e.i18n.atX0MinutesPastTheHour(r):e.i18n.atX0MinutesPastTheHourGt20()||e.i18n.atX0MinutesPastTheHour(r)}catch(i){return e.i18n.atX0MinutesPastTheHour(r)}}));return r},e.prototype.getHoursDescription=function(){var e=this,t=this.expressionParts[2],n=this.getSegmentDescription(t,this.i18n.everyHour(),(function(t){return e.formatTime(t,"0","")}),(function(t){return i.StringUtilities.format(e.i18n.everyX0Hours(t),t)}),(function(t){return e.i18n.betweenX0AndX1()}),(function(t){return e.i18n.atX0()}));if(n&&t.includes("-")&&"0"!=this.expressionParts[1]){var r=Array.from(n.matchAll(/:00/g));if(r.length>1){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;p<d.length;p++)if(p>0&&d.length>2&&(h+=",",p<d.length-1&&(h+=" ")),p>0&&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<t.length;r++)if(!isNaN(parseInt(t[r],10))){var i=parseInt(t[r],10);n(i>=0&&i<=59,"seconds part must be >= 0 and <= 59")}},e.minuteRange=function(e){for(var t=e.split(","),r=0;r<t.length;r++)if(!isNaN(parseInt(t[r],10))){var i=parseInt(t[r],10);n(i>=0&&i<=59,"minutes part must be >= 0 and <= 59")}},e.hourRange=function(e){for(var t=e.split(","),r=0;r<t.length;r++)if(!isNaN(parseInt(t[r],10))){var i=parseInt(t[r],10);n(i>=0&&i<=23,"hours part must be >= 0 and <= 23")}},e.dayOfMonthRange=function(e){for(var t=e.split(","),r=0;r<t.length;r++)if(!isNaN(parseInt(t[r],10))){var i=parseInt(t[r],10);n(i>=1&&i<=31,"DOM part must be >= 1 and <= 31")}},e.monthRange=function(e,t){for(var r=e.split(","),i=0;i<r.length;i++)if(!isNaN(parseInt(r[i],10))){var o=parseInt(r[i],10);n(o>=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<r.length;i++)if(!isNaN(parseInt(r[i],10))){var o=parseInt(r[i],10);n(o>=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<arguments.length;n++)t[n-1]=arguments[n];return e.replace(/%s/g,(function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return t.shift()}))},e.containsAny=function(e,t){return t.some((function(t){return e.indexOf(t)>-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)<this.startOf(t)},h.isBefore=function(e,t){return this.endOf(t)<y(e)},h.$g=function(e,t,n){return b.u(e)?this[t]:this.set(n,e)},h.year=function(e){return this.$g(e,"$y",l)},h.month=function(e){return this.$g(e,"$M",a)},h.day=function(e){return this.$g(e,"$W",i)},h.date=function(e){return this.$g(e,"$D","date")},h.hour=function(e){return this.$g(e,"$H",r)},h.minute=function(e){return this.$g(e,"$m",n)},h.second=function(e){return this.$g(e,"$s",t)},h.millisecond=function(t){return this.$g(t,"$ms",e)},h.unix=function(){return Math.floor(this.valueOf()/1e3)},h.valueOf=function(){return this.$d.getTime()},h.startOf=function(e,s){var c=this,u=!!b.u(s)||s,d=b.p(e),h=function(e,t){var n=b.w(c.$u?Date.UTC(c.$y,t,e):new Date(c.$y,t,e),c);return u?n:n.endOf(i)},p=function(e,t){return b.w(c.toDate()[e].apply(c.toDate("s"),(u?[0,0,0,0]:[23,59,59,999]).slice(t)),c)},f=this.$W,m=this.$M,g=this.$D,v="set"+(this.$u?"UTC":"");switch(d){case l:return u?h(1,0):h(31,11);case a:return u?h(1,m):h(0,m+1);case o:var y=this.$locale().weekStart||0,_=(f<y?f+7:f)-y;return h(u?g-_:g+(6-_),m);case i:case"date":return p(v+"Hours",0);case r:return p(v+"Minutes",1);case n:return p(v+"Seconds",2);case t:return p(v+"Milliseconds",3);default:return this.clone()}},h.endOf=function(e){return this.startOf(e,!1)},h.$set=function(o,s){var c,u=b.p(o),d="set"+(this.$u?"UTC":""),h=(c={},c[i]=d+"Date",c.date=d+"Date",c[a]=d+"Month",c[l]=d+"FullYear",c[r]=d+"Hours",c[n]=d+"Minutes",c[t]=d+"Seconds",c[e]=d+"Milliseconds",c)[u],p=u===i?this.$D+(s-this.$W):s;if(u===a||u===l){var f=this.clone().set("date",1);f.$d[h](p),f.init(),this.$d=f.set("date",Math.min(this.$D,f.daysInMonth())).toDate()}else h&&this.$d[h](p);return this.init(),this},h.set=function(e,t){return this.clone().$set(e,t)},h.get=function(e){return this[b.p(e)]()},h.add=function(e,s){var c,u=this;e=Number(e);var d=b.p(s),h=function(t){var n=y(u);return b.w(n.date(n.date()+Math.round(t*e)),u)};if(d===a)return this.set(a,this.$M+e);if(d===l)return this.set(l,this.$y+e);if(d===i)return h(1);if(d===o)return h(7);var p=(c={},c[n]=6e4,c[r]=36e5,c[t]=1e3,c)[d]||1,f=this.$d.getTime()+e*p;return b.w(f,this)},h.subtract=function(e,t){return this.add(-1*e,t)},h.format=function(e){var t=this;if(!this.isValid())return"Invalid Date";var n=e||"YYYY-MM-DDTHH:mm:ssZ",r=b.z(this),i=this.$locale(),o=this.$H,a=this.$m,s=this.$M,l=i.weekdays,c=i.months,d=function(e,r,i,o){return e&&(e[r]||e(t,n))||i[r].substr(0,o)},h=function(e){return b.s(o%12||12,e,"0")},p=i.meridiem||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r},f={YY:String(this.$y).slice(-2),YYYY:this.$y,M:s+1,MM:b.s(s+1,2,"0"),MMM:d(i.monthsShort,s,c,3),MMMM:d(c,s),D:this.$D,DD:b.s(this.$D,2,"0"),d:String(this.$W),dd:d(i.weekdaysMin,this.$W,l,2),ddd:d(i.weekdaysShort,this.$W,l,3),dddd:l[this.$W],H:String(o),HH:b.s(o,2,"0"),h:h(1),hh:h(2),a:p(o,a,!0),A:p(o,a,!1),m:String(a),mm:b.s(a,2,"0"),s:String(this.$s),ss:b.s(this.$s,2,"0"),SSS:b.s(this.$ms,3,"0"),Z:r};return n.replace(u,(function(e,t){return t||f[e]||r.replace(":","")}))},h.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},h.diff=function(e,c,u){var d,h=b.p(c),p=y(e),f=6e4*(p.utcOffset()-this.utcOffset()),m=this-p,g=b.m(this,p);return g=(d={},d[l]=g/12,d[a]=g,d[s]=g/3,d[o]=(m-f)/6048e5,d[i]=(m-f)/864e5,d[r]=m/36e5,d[n]=m/6e4,d[t]=m/1e3,d)[h]||m,u?g:b.a(g)},h.daysInMonth=function(){return this.endOf(a).$D},h.$locale=function(){return m[this.$L]},h.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=v(e,t,!0);return r&&(n.$L=r),n},h.clone=function(){return b.w(this.$d,this)},h.toDate=function(){return new Date(this.valueOf())},h.toJSON=function(){return this.isValid()?this.toISOString():null},h.toISOString=function(){return this.$d.toISOString()},h.toString=function(){return this.$d.toUTCString()},d}();return y.prototype=_.prototype,y.extend=function(e,t){return e(t,_,y),y},y.locale=v,y.isDayjs=g,y.unix=function(e){return y(1e3*e)},y.en=m[f],y.Ls=m,y}))},18114:function(e,t,n){"use strict";var r=n(91960),i=n(60735),o=n(60264),a=n(22356);e.exports=function(e,t,n){if(!e||"object"!==typeof e&&"function"!==typeof e)throw new o("`obj` must be an object or a function`");if("string"!==typeof t&&"symbol"!==typeof t)throw new o("`property` must be a string or a symbol`");if(arguments.length>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<o.length;s+=1)u(e,o[s],t[o[s]],n[o[s]])};d.supportsDescriptors=!!c,e.exports=d},90759:function(e,t){
|
||
/*!
|
||
|
||
diff v4.0.1
|
||
|
||
Software License Agreement (BSD License)
|
||
|
||
Copyright (c) 2009-2015, Kevin Decker <kpdecker@gmail.com>
|
||
|
||
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;o<a;o++){var c=t[o];if(c.removed){if(c.value=e.join(r.slice(l,l+c.count)),l+=c.count,o&&t[o-1].added){var u=t[o-1];t[o-1]=t[o],t[o]=u}}else{if(!c.added&&i){var d=n.slice(s,s+c.count);d=d.map((function(e,t){var n=r[l+t];return n.length>e.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,g=p&&0<=f&&f<c;if(m||g){if(!m||g&&d.newPos<p.newPos?(o=r(p),a.pushComponent(o.components,void 0,!0)):(o=d,o.newPos++,a.pushComponent(o.components,!0,void 0)),f=a.extractCommon(o,t,e,i),o.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+1<i&&s+1<o&&this.equals(t[a+1],n[s+1]))a++,s++,l++;return l&&e.components.push({count:l}),e.newPos=a,s},equals:function(e,t){return this.options.comparator?this.options.comparator(e,t):e===t||this.options.ignoreCase&&e.toLowerCase()===t.toLowerCase()},removeEmpty:function(e){for(var t=[],n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}};var i=new t;function o(e,t,n){return i.diff(e,t,n)}function a(e,t){if("function"===typeof e)t.callback=e;else if(e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}var s=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,l=/\S/,c=new t;function u(e,t,n){return n=a(n,{ignoreWhitespace:!0}),c.diff(e,t,n)}function d(e,t,n){return c.diff(e,t,n)}c.equals=function(e,t){return this.options.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t||this.options.ignoreWhitespace&&!l.test(e)&&!l.test(t)},c.tokenize=function(e){for(var t=e.split(/(\s+|[()[\]{}'"]|\b)/),n=0;n<t.length-1;n++)!t[n+1]&&t[n+2]&&s.test(t[n])&&s.test(t[n+2])&&(t[n]+=t[n+2],t.splice(n+1,2),n--);return t};var h=new t;function p(e,t,n){return h.diff(e,t,n)}function f(e,t,n){var r=a(n,{ignoreWhitespace:!0});return h.diff(e,t,r)}h.tokenize=function(e){var t=[],n=e.split(/(\n|\r\n)/);n[n.length-1]||n.pop();for(var r=0;r<n.length;r++){var i=n[r];r%2&&!this.options.newlineIsToken?t[t.length-1]+=i:(this.options.ignoreWhitespace&&(i=i.trim()),t.push(i))}return t};var m=new t;function g(e,t,n){return m.diff(e,t,n)}m.tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)};var v=new t;function y(e,t,n){return v.diff(e,t,n)}function b(e){return b="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},b(e)}function _(e){return w(e)||E(e)||S()}function w(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}function E(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function S(){throw new TypeError("Invalid attempt to spread non-iterable instance")}v.tokenize=function(e){return e.split(/([{}:;,]|\s+)/)};var x=Object.prototype.toString,k=new t;function A(e,t,n){return k.diff(e,t,n)}function N(e,t,n,r,i){var o,a;for(t=t||[],n=n||[],r&&(e=r(i,e)),o=0;o<t.length;o+=1)if(t[o]===e)return n[o];if("[object Array]"===x.call(e)){for(t.push(e),a=new Array(e.length),n.push(a),o=0;o<e.length;o+=1)a[o]=N(e[o],t,n,r,i);return t.pop(),n.pop(),a}if(e&&e.toJSON&&(e=e.toJSON()),"object"===b(e)&&null!==e){t.push(e),a={},n.push(a);var s,l=[];for(s in e)e.hasOwnProperty(s)&&l.push(s);for(l.sort(),o=0;o<l.length;o+=1)s=l[o],a[s]=N(e[s],t,n,r,s);t.pop(),n.pop()}else a=e;return a}k.useLongestToken=!0,k.tokenize=h.tokenize,k.castInput=function(e){var t=this.options,n=t.undefinedReplacement,r=t.stringifyReplacer,i=void 0===r?function(e,t){return"undefined"===typeof t?n:t}:r;return"string"===typeof e?e:JSON.stringify(N(e,null,null,i),i," ")},k.equals=function(e,n){return t.prototype.equals.call(k,e.replace(/,([\r\n])/g,"$1"),n.replace(/,([\r\n])/g,"$1"))};var T=new t;function C(e,t,n){return T.diff(e,t,n)}function R(e){var t=arguments.length>1&&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(o<n.length){var r=n[o];if(/^(\-\-\-|\+\+\+|@@)\s/.test(r))break;var a=/^(?:Index:|diff(?: -r \w+)+)\s+(.+?)\s*$/.exec(r);a&&(e.index=a[1]),o++}s(e),s(e),e.hunks=[];while(o<n.length){var c=n[o];if(/^(Index:|diff|\-\-\-|\+\+\+)\s/.test(c))break;if(/^@@/.test(c))e.hunks.push(l());else{if(c&&t.strict)throw new Error("Unknown line "+(o+1)+" "+JSON.stringify(c));o++}}}function s(e){var t=/^(---|\+\+\+)\s+(.*)$/.exec(n[o]);if(t){var r="---"===t[1]?"old":"new",i=t[2].split("\t",2),a=i[0].replace(/\\\\/g,"\\");/^".*"$/.test(a)&&(a=a.substr(1,a.length-2)),e[r+"FileName"]=a,e[r+"Header"]=(i[1]||"").trim(),o++}}function l(){for(var e=o,i=n[o++],a=i.split(/@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/),s={oldStart:+a[1],oldLines:+a[2]||1,newStart:+a[3],newLines:+a[4]||1,lines:[],linedelimiters:[]},l=0,c=0;o<n.length;o++){if(0===n[o].indexOf("--- ")&&o+2<n.length&&0===n[o+1].indexOf("+++ ")&&0===n[o+2].indexOf("@@"))break;var u=0==n[o].length&&o!=n.length-1?" ":n[o][0];if("+"!==u&&"-"!==u&&" "!==u&&"\\"!==u)break;s.lines.push(n[o]),s.linedelimiters.push(r[o]||"\n"),"+"===u?l++:"-"===u?c++:" "===u&&(l++,c++)}if(l||1!==s.newLines||(s.newLines=0),c||1!==s.oldLines||(s.oldLines=0),t.strict){if(l!==s.newLines)throw new Error("Added line count did not match for hunk at line "+(e+1));if(c!==s.oldLines)throw new Error("Removed line count did not match for hunk at line "+(e+1))}return s}while(o<n.length)a();return i}function O(e,t,n){var r=!0,i=!1,o=!1,a=1;return function s(){if(r&&!o){if(i?a++:r=!1,e+a<=n)return a;o=!0}if(!i)return o||(r=!0),t<=e-a?-a++:(i=!0,s())}}function I(e,t){var n=arguments.length>2&&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;n<e.lines.length;n++){var r=e.lines[n],i=r.length>0?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;f<s.length;f++){for(var m=s[f],g=o.length-m.oldLines,v=0,y=h+m.oldStart-1,b=O(y,d,g);void 0!==v;v=b())if(p(m,y+v)){m.offset=h+=v;break}if(void 0===v)return!1;d=m.offset+m.oldStart+m.oldLines}for(var _=0,w=0;w<s.length;w++){var E=s[w],S=E.oldStart+E.offset+_-1;_+=E.newLines-E.oldLines,S<0&&(S=0);for(var x=0;x<E.lines.length;x++){var k=E.lines[x],A=k.length>0?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;I<o.length-1;I++)o[I]=o[I]+a[I];return o.join("")}function D(e,t){"string"===typeof e&&(e=R(e));var n=0;function r(){var i=e[n++];if(!i)return t.complete();t.loadFile(i,(function(e,n){if(e)return t.complete(e);var o=I(n,i,t);t.patched(i,o,(function(e){if(e)return t.complete(e);r()}))}))}r()}function L(e,t,n,r,i,o,a){a||(a={}),"undefined"===typeof a.context&&(a.context=4);var s=p(n,r,a);function l(e){return e.map((function(e){return" "+e}))}s.push({value:"",lines:[]});for(var c=[],u=0,d=0,h=[],f=1,m=1,g=function(e){var t=s[e],i=t.lines||t.value.replace(/\n$/,"").split("\n");if(t.lines=i,t.added||t.removed){var o;if(!u){var p=s[e-1];u=f,d=m,p&&(h=a.context>0?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){var g;(g=h).push.apply(g,_(l(i)))}else{var v,y=Math.min(i.length,a.context);(v=h).push.apply(v,_(l(i.slice(0,y))));var b={oldStart:u,oldLines:f-u+y,newStart:d,newLines:m-d+y,lines:h};if(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;v<s.length;v++)g(v);return{oldFileName:e,newFileName:t,oldHeader:i,newHeader:o,hunks:c}}function P(e,t,n,r,i,o,a){var s=L(e,t,n,r,i,o,a),l=[];e==t&&l.push("Index: "+e),l.push("==================================================================="),l.push("--- "+s.oldFileName+("undefined"===typeof s.oldHeader?"":"\t"+s.oldHeader)),l.push("+++ "+s.newFileName+("undefined"===typeof s.newHeader?"":"\t"+s.newHeader));for(var c=0;c<s.hunks.length;c++){var u=s.hunks[c];l.push("@@ -"+u.oldStart+","+u.oldLines+" +"+u.newStart+","+u.newLines+" @@"),l.push.apply(l,u.lines)}return l.join("\n")+"\n"}function M(e,t,n,r,i,o){return P(e,e,t,n,r,i,o)}function F(e,t){return e.length===t.length&&B(e,t)}function B(e,t){if(t.length>e.length)return!1;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}function $(e){var t=ne(e.lines),n=t.oldLines,r=t.newLines;void 0!==n?e.oldLines=n:delete e.oldLines,void 0!==r?e.newLines=r:delete e.newLines}function j(e,t,n){e=U(e,n),t=U(t,n);var r={};(e.index||t.index)&&(r.index=e.index||t.index),(e.newFileName||t.newFileName)&&(V(e)?V(t)?(r.oldFileName=K(r,e.oldFileName,t.oldFileName),r.newFileName=K(r,e.newFileName,t.newFileName),r.oldHeader=K(r,e.oldHeader,t.oldHeader),r.newHeader=K(r,e.newHeader,t.newHeader)):(r.oldFileName=e.oldFileName,r.newFileName=e.newFileName,r.oldHeader=e.oldHeader,r.newHeader=e.newHeader):(r.oldFileName=t.oldFileName||e.oldFileName,r.newFileName=t.newFileName||e.newFileName,r.oldHeader=t.oldHeader||e.oldHeader,r.newHeader=t.newHeader||e.newHeader)),r.hunks=[];var i=0,o=0,a=0,s=0;while(i<e.hunks.length||o<t.hunks.length){var l=e.hunks[i]||{oldStart:1/0},c=t.hunks[o]||{oldStart:1/0};if(H(l,c))r.hunks.push(G(l,a)),i++,s+=l.newLines-l.oldLines;else if(H(c,l))r.hunks.push(G(c,s)),o++,a+=c.newLines-c.oldLines;else{var u={oldStart:Math.min(l.oldStart,c.oldStart),oldLines:0,newStart:Math.min(l.newStart+a,c.oldStart+s),newLines:0,lines:[]};z(u,l.oldStart,l.lines,c.oldStart,c.lines),o++,i++,r.hunks.push(u)}}return r}function U(e,t){if("string"===typeof e){if(/^@@/m.test(e)||/^Index:/m.test(e))return R(e)[0];if(!t)throw new Error("Must provide a base reference or pass in a patch");return L(void 0,void 0,t,e)}return e}function V(e){return e.newFileName&&e.newFileName!==e.oldFileName}function K(e,t,n){return t===n?t:(e.conflict=!0,{mine:t,theirs:n})}function H(e,t){return e.oldStart<t.oldStart&&e.oldStart+e.oldLines<t.oldStart}function G(e,t){return{oldStart:e.oldStart,oldLines:e.oldLines,newStart:e.newStart+t,newLines:e.newLines,lines:e.lines}}function z(e,t,n,r,i){var o={offset:t,lines:n,index:0},a={offset:r,lines:i,index:0};Y(e,o,a),Y(e,a,o);while(o.index<o.lines.length&&a.index<a.lines.length){var s=o.lines[o.index],l=a.lines[a.index];if("-"!==s[0]&&"+"!==s[0]||"-"!==l[0]&&"+"!==l[0])if("+"===s[0]&&" "===l[0]){var c;(c=e.lines).push.apply(c,_(J(o)))}else if("+"===l[0]&&" "===s[0]){var u;(u=e.lines).push.apply(u,_(J(a)))}else"-"===s[0]&&" "===l[0]?q(e,o,a):"-"===l[0]&&" "===s[0]?q(e,a,o,!0):s===l?(e.lines.push(s),o.index++,a.index++):W(e,J(o),J(a));else X(e,o,a)}Q(e,o),Q(e,a),$(e)}function X(e,t,n){var r=J(t),i=J(n);if(ee(r)&&ee(i)){var o,a;if(B(r,i)&&te(n,r,r.length-i.length))return void(o=e.lines).push.apply(o,_(r));if(B(i,r)&&te(t,i,i.length-r.length))return void(a=e.lines).push.apply(a,_(i))}else if(F(r,i)){var s;return void(s=e.lines).push.apply(s,_(r))}W(e,r,i)}function q(e,t,n,r){var i,o=J(t),a=Z(n,o);a.merged?(i=e.lines).push.apply(i,_(a.merged)):W(e,r?a:o,r?o:a)}function W(e,t,n){e.conflict=!0,e.lines.push({conflict:!0,mine:t,theirs:n})}function Y(e,t,n){while(t.offset<n.offset&&t.index<t.lines.length){var r=t.lines[t.index++];e.lines.push(r),t.offset++}}function Q(e,t){while(t.index<t.lines.length){var n=t.lines[t.index++];e.lines.push(n)}}function J(e){var t=[],n=e.lines[e.index][0];while(e.index<e.lines.length){var r=e.lines[e.index];if("-"===n&&"+"===r[0]&&(n="+"),n!==r[0])break;t.push(r),e.index++}return t}function Z(e,t){var n=[],r=[],i=0,o=!1,a=!1;while(i<t.length&&e.index<e.lines.length){var s=e.lines[e.index],l=t[i];if("+"===l[0])break;if(o=o||" "!==s[0],r.push(l),i++,"+"===s[0]){a=!0;while("+"===s[0])n.push(s),s=e.lines[++e.index]}l.substr(1)===s.substr(1)?(n.push(s),e.index++):a=!0}if("+"===(t[i]||"")[0]&&o&&(a=!0),a)return n;while(i<t.length)r.push(t[i++]);return{merged:r,changes:n}}function ee(e){return e.reduce((function(e,t){return e&&"-"===t[0]}),!0)}function te(e,t,n){for(var r=0;r<n;r++){var i=t[t.length-n+r].substr(1);if(e.lines[e.index+r]!==" "+i)return!1}return e.index+=n,!0}function ne(e){var t=0,n=0;return e.forEach((function(e){if("string"!==typeof e){var r=ne(e.mine),i=ne(e.theirs);void 0!==t&&(r.oldLines===i.oldLines?t+=r.oldLines:t=void 0),void 0!==n&&(r.newLines===i.newLines?n+=r.newLines:n=void 0)}else void 0===n||"+"!==e[0]&&" "!==e[0]||n++,void 0===t||"-"!==e[0]&&" "!==e[0]||t++})),{oldLines:t,newLines:n}}function re(e){for(var t,n,r=[],i=0;i<e.length;i++)t=e[i],n=t.added?1:t.removed?-1:0,r.push([n,t.value]);return r}function ie(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];r.added?t.push("<ins>"):r.removed&&t.push("<del>"),t.push(oe(r.value)),r.added?t.push("</ins>"):r.removed&&t.push("</del>")}return t.join("")}function oe(e){var t=e;return t=t.replace(/&/g,"&"),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;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.parse=void 0;var o=n(9165),a=n(91569);function s(e,t){var n=e.split(".");return n.length>1?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(n<F.length-3){if(e.startsWith("diff"))return!1;if(F[n].startsWith(v)&&F[n+1].startsWith(y)&&F[n+2].startsWith(b))return!0;n++}return!1}return F.forEach((function(e,r){if(e&&!e.startsWith("*")){var o,l=F[r-1],c=F[r+1],p=F[r+2];if(e.startsWith("diff")){j();var f=/^diff --git "?([a-ciow]\/.+)"? "?([a-ciow]\/.+)"?/;if((o=f.exec(e))&&(m=u(o[1],void 0,t.dstPrefix),g=u(o[2],void 0,t.srcPrefix)),null===i)throw new Error("Where is my file !!!");i.isGitDiff=!0}else if((!i||!i.isGitDiff&&i&&e.startsWith(v)&&c.startsWith(y)&&p.startsWith(b))&&j(),!(null===i||void 0===i?void 0:i.isTooBig))if(i&&("number"===typeof t.diffMaxChanges&&i.addedLines+i.deletedLines>t.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('<li class="d2h-file-list-line">'),r.b("\n"+n),r.b(' <span class="d2h-file-name-wrapper">'),r.b("\n"+n),r.b(r.rp("<fileIcon0",e,t," ")),r.b(' <a href="#'),r.b(r.v(r.f("fileHtmlId",e,t,0))),r.b('" class="d2h-file-name">'),r.b(r.v(r.f("fileName",e,t,0))),r.b("</a>"),r.b("\n"+n),r.b(' <span class="d2h-file-stats">'),r.b("\n"+n),r.b(' <span class="d2h-lines-added">'),r.b(r.v(r.f("addedLines",e,t,0))),r.b("</span>"),r.b("\n"+n),r.b(' <span class="d2h-lines-deleted">'),r.b(r.v(r.f("deletedLines",e,t,0))),r.b("</span>"),r.b("\n"+n),r.b(" </span>"),r.b("\n"+n),r.b(" </span>"),r.b("\n"+n),r.b("</li>"),r.fl()},partials:{"<fileIcon0":{name:"fileIcon",partials:{},subs:{}}},subs:{}}),t.defaultTemplates["file-summary-wrapper"]=new a.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('<div class="d2h-file-list-wrapper">'),r.b("\n"+n),r.b(' <div class="d2h-file-list-header">'),r.b("\n"+n),r.b(' <span class="d2h-file-list-title">Files changed ('),r.b(r.v(r.f("filesNumber",e,t,0))),r.b(")</span>"),r.b("\n"+n),r.b(' <a class="d2h-file-switch d2h-hide">hide</a>'),r.b("\n"+n),r.b(' <a class="d2h-file-switch d2h-show">show</a>'),r.b("\n"+n),r.b(" </div>"),r.b("\n"+n),r.b(' <ol class="d2h-file-list">'),r.b("\n"+n),r.b(" "),r.b(r.t(r.f("files",e,t,0))),r.b("\n"+n),r.b(" </ol>"),r.b("\n"+n),r.b("</div>"),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("<tr>"),r.b("\n"+n),r.b(' <td class="'),r.b(r.v(r.f("lineClass",e,t,0))),r.b(" "),r.b(r.v(r.d("CSSLineClass.INFO",e,t,0))),r.b('"></td>'),r.b("\n"+n),r.b(' <td class="'),r.b(r.v(r.d("CSSLineClass.INFO",e,t,0))),r.b('">'),r.b("\n"+n),r.b(' <div class="'),r.b(r.v(r.f("contentClass",e,t,0))),r.b('">'),r.b(r.t(r.f("blockHeader",e,t,0))),r.b("</div>"),r.b("\n"+n),r.b(" </td>"),r.b("\n"+n),r.b("</tr>"),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("<tr>"),r.b("\n"+n),r.b(' <td class="'),r.b(r.v(r.d("CSSLineClass.INFO",e,t,0))),r.b('">'),r.b("\n"+n),r.b(' <div class="'),r.b(r.v(r.f("contentClass",e,t,0))),r.b('">'),r.b("\n"+n),r.b(" File without changes"),r.b("\n"+n),r.b(" </div>"),r.b("\n"+n),r.b(" </td>"),r.b("\n"+n),r.b("</tr>"),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('<span class="d2h-file-name-wrapper">'),r.b("\n"+n),r.b(r.rp("<fileIcon0",e,t," ")),r.b(' <span class="d2h-file-name">'),r.b(r.v(r.f("fileDiffName",e,t,0))),r.b("</span>"),r.b("\n"+n),r.b(r.rp("<fileTag1",e,t," ")),r.b("</span>"),r.b("\n"+n),r.b('<label class="d2h-file-collapse">'),r.b("\n"+n),r.b(' <input class="d2h-file-collapse-input" type="checkbox" name="viewed" value="viewed">'),r.b("\n"+n),r.b(" Viewed"),r.b("\n"+n),r.b("</label>"),r.fl()},partials:{"<fileIcon0":{name:"fileIcon",partials:{},subs:{}},"<fileTag1":{name:"fileTag",partials:{},subs:{}}},subs:{}}),t.defaultTemplates["generic-line"]=new a.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b("<tr>"),r.b("\n"+n),r.b(' <td class="'),r.b(r.v(r.f("lineClass",e,t,0))),r.b(" "),r.b(r.v(r.f("type",e,t,0))),r.b('">'),r.b("\n"+n),r.b(" "),r.b(r.t(r.f("lineNumber",e,t,0))),r.b("\n"+n),r.b(" </td>"),r.b("\n"+n),r.b(' <td class="'),r.b(r.v(r.f("type",e,t,0))),r.b('">'),r.b("\n"+n),r.b(' <div class="'),r.b(r.v(r.f("contentClass",e,t,0))),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(' <span class="d2h-code-line-prefix">'),r.b(r.t(r.f("prefix",e,t,0))),r.b("</span>"),r.b("\n"+n)})),e.pop()),r.s(r.f("prefix",e,t,1),e,t,1,0,0,"")||(r.b(' <span class="d2h-code-line-prefix"> </span>'),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(' <span class="d2h-code-line-ctn">'),r.b(r.t(r.f("content",e,t,0))),r.b("</span>"),r.b("\n"+n)})),e.pop()),r.s(r.f("content",e,t,1),e,t,1,0,0,"")||(r.b(' <span class="d2h-code-line-ctn"><br></span>'),r.b("\n"+n)),r.b(" </div>"),r.b("\n"+n),r.b(" </td>"),r.b("\n"+n),r.b("</tr>"),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('<div class="d2h-wrapper">'),r.b("\n"+n),r.b(" "),r.b(r.t(r.f("content",e,t,0))),r.b("\n"+n),r.b("</div>"),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('<svg aria-hidden="true" class="d2h-icon d2h-added" height="16" title="added" version="1.1" viewBox="0 0 14 16"'),r.b("\n"+n),r.b(' width="14">'),r.b("\n"+n),r.b(' <path d="M13 1H1C0.45 1 0 1.45 0 2v12c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V2c0-0.55-0.45-1-1-1z m0 13H1V2h12v12zM6 9H3V7h3V4h2v3h3v2H8v3H6V9z"></path>'),r.b("\n"+n),r.b("</svg>"),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('<svg aria-hidden="true" class="d2h-icon d2h-changed" height="16" title="modified" version="1.1"'),r.b("\n"+n),r.b(' viewBox="0 0 14 16" width="14">'),r.b("\n"+n),r.b(' <path d="M13 1H1C0.45 1 0 1.45 0 2v12c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V2c0-0.55-0.45-1-1-1z m0 13H1V2h12v12zM4 8c0-1.66 1.34-3 3-3s3 1.34 3 3-1.34 3-3 3-3-1.34-3-3z"></path>'),r.b("\n"+n),r.b("</svg>"),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('<svg aria-hidden="true" class="d2h-icon d2h-deleted" height="16" title="removed" version="1.1"'),r.b("\n"+n),r.b(' viewBox="0 0 14 16" width="14">'),r.b("\n"+n),r.b(' <path d="M13 1H1C0.45 1 0 1.45 0 2v12c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V2c0-0.55-0.45-1-1-1z m0 13H1V2h12v12zM11 9H3V7h8v2z"></path>'),r.b("\n"+n),r.b("</svg>"),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('<svg aria-hidden="true" class="d2h-icon d2h-moved" height="16" title="renamed" version="1.1"'),r.b("\n"+n),r.b(' viewBox="0 0 14 16" width="14">'),r.b("\n"+n),r.b(' <path d="M6 9H3V7h3V4l5 4-5 4V9z m8-7v12c0 0.55-0.45 1-1 1H1c-0.55 0-1-0.45-1-1V2c0-0.55 0.45-1 1-1h12c0.55 0 1 0.45 1 1z m-1 0H1v12h12V2z"></path>'),r.b("\n"+n),r.b("</svg>"),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('<svg aria-hidden="true" class="d2h-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12">'),r.b("\n"+n),r.b(' <path d="M6 5H2v-1h4v1zM2 8h7v-1H2v1z m0 2h7v-1H2v1z m0 2h7v-1H2v1z m10-7.5v9.5c0 0.55-0.45 1-1 1H1c-0.55 0-1-0.45-1-1V2c0-0.55 0.45-1 1-1h7.5l3.5 3.5z m-1 0.5L8 2H1v12h10V5z"></path>'),r.b("\n"+n),r.b("</svg>"),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('<div id="'),r.b(r.v(r.f("fileHtmlId",e,t,0))),r.b('" class="d2h-file-wrapper" data-lang="'),r.b(r.v(r.d("file.language",e,t,0))),r.b('">'),r.b("\n"+n),r.b(' <div class="d2h-file-header">'),r.b("\n"+n),r.b(" "),r.b(r.t(r.f("filePath",e,t,0))),r.b("\n"+n),r.b(" </div>"),r.b("\n"+n),r.b(' <div class="d2h-file-diff">'),r.b("\n"+n),r.b(' <div class="d2h-code-wrapper">'),r.b("\n"+n),r.b(' <table class="d2h-diff-table">'),r.b("\n"+n),r.b(' <tbody class="d2h-diff-tbody">'),r.b("\n"+n),r.b(" "),r.b(r.t(r.f("diffs",e,t,0))),r.b("\n"+n),r.b(" </tbody>"),r.b("\n"+n),r.b(" </table>"),r.b("\n"+n),r.b(" </div>"),r.b("\n"+n),r.b(" </div>"),r.b("\n"+n),r.b("</div>"),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('<div class="line-num1">'),r.b(r.v(r.f("oldNumber",e,t,0))),r.b("</div>"),r.b("\n"+n),r.b('<div class="line-num2">'),r.b(r.v(r.f("newNumber",e,t,0))),r.b("</div>"),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('<div id="'),r.b(r.v(r.f("fileHtmlId",e,t,0))),r.b('" class="d2h-file-wrapper" data-lang="'),r.b(r.v(r.d("file.language",e,t,0))),r.b('">'),r.b("\n"+n),r.b(' <div class="d2h-file-header">'),r.b("\n"+n),r.b(" "),r.b(r.t(r.f("filePath",e,t,0))),r.b("\n"+n),r.b(" </div>"),r.b("\n"+n),r.b(' <div class="d2h-files-diff">'),r.b("\n"+n),r.b(' <div class="d2h-file-side-diff">'),r.b("\n"+n),r.b(' <div class="d2h-code-wrapper">'),r.b("\n"+n),r.b(' <table class="d2h-diff-table">'),r.b("\n"+n),r.b(' <tbody class="d2h-diff-tbody">'),r.b("\n"+n),r.b(" "),r.b(r.t(r.d("diffs.left",e,t,0))),r.b("\n"+n),r.b(" </tbody>"),r.b("\n"+n),r.b(" </table>"),r.b("\n"+n),r.b(" </div>"),r.b("\n"+n),r.b(" </div>"),r.b("\n"+n),r.b(' <div class="d2h-file-side-diff">'),r.b("\n"+n),r.b(' <div class="d2h-code-wrapper">'),r.b("\n"+n),r.b(' <table class="d2h-diff-table">'),r.b("\n"+n),r.b(' <tbody class="d2h-diff-tbody">'),r.b("\n"+n),r.b(" "),r.b(r.t(r.d("diffs.right",e,t,0))),r.b("\n"+n),r.b(" </tbody>"),r.b("\n"+n),r.b(" </table>"),r.b("\n"+n),r.b(" </div>"),r.b("\n"+n),r.b(" </div>"),r.b("\n"+n),r.b(" </div>"),r.b("\n"+n),r.b("</div>"),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('<span class="d2h-tag d2h-added d2h-added-tag">ADDED</span>'),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('<span class="d2h-tag d2h-changed d2h-changed-tag">CHANGED</span>'),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('<span class="d2h-tag d2h-deleted d2h-deleted-tag">DELETED</span>'),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('<span class="d2h-tag d2h-moved d2h-moved-tag">RENAMED</span>'),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;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)},i=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]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e["default"]=t}),a=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)&&i(t,e,n);return o(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.html=t.parse=t.defaultDiff2HtmlConfig=void 0;var l=a(n(2341)),c=a(n(26765)),u=a(n(37323)),d=a(n(58491)),h=n(9165),p=s(n(71798));function f(e,n){return void 0===n&&(n={}),l.parse(e,r(r({},t.defaultDiff2HtmlConfig),n))}function m(e,n){void 0===n&&(n={});var i=r(r({},t.defaultDiff2HtmlConfig),n),o="string"===typeof e?l.parse(e,i):e,a=new p.default(i),s=i.drawFileList?c.render(o,a):"",h="side-by-side"===i.outputFormat?new d.default(a,i).render(o):new u.default(a,i).render(o);return s+h}t.defaultDiff2HtmlConfig=r(r(r({},u.defaultLineByLineRendererConfig),d.defaultSideBySideRendererConfig),{outputFormat:h.OutputFormatType.LINE_BY_LINE,drawFileList:!0}),t.parse=f,t.html=m},26765: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.render=void 0;var a=o(n(21110)),s="file-summary",l="icon";function c(e,t){var n=e.map((function(e){return t.render(s,"line",{fileHtmlId:a.getHtmlId(e),oldName:e.oldName,newName:e.newName,fileName:a.filenameDiff(e),deletedLines:"-"+e.deletedLines,addedLines:"+"+e.addedLines},{fileIcon:t.template(l,a.getFileIcon(e))})})).join("\n");return t.render(s,"wrapper",{filesNumber:e.length,files:n})}t.render=c},71798: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<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)},i=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]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e["default"]=t}),a=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)&&i(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0});var s=a(n(76297)),l=n(46568),c=function(){function e(e){var t=e.compiledTemplates,n=void 0===t?{}:t,i=e.rawTemplates,o=void 0===i?{}:i,a=Object.entries(o).reduce((function(e,t){var n,i=t[0],o=t[1],a=s.compile(o,{asString:!1});return r(r({},e),(n={},n[i]=a,n))}),{});this.preCompiledTemplates=r(r(r({},l.defaultTemplates),n),a)}return e.compile=function(e){return s.compile(e,{asString:!1})},e.prototype.render=function(e,t,n,r,i){var o=this.templateKey(e,t);try{var a=this.preCompiledTemplates[o];return a.render(n,r,i)}catch(s){throw new Error("Could not find template to render '".concat(o,"'"))}},e.prototype.template=function(e,t){return this.preCompiledTemplates[this.templateKey(e,t)]},e.prototype.templateKey=function(e,t){return"".concat(e,"-").concat(t)},e}();t["default"]=c},37323: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;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},i.apply(this,arguments)},o=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]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e["default"]=t}),s=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)&&o(t,e,n);return a(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.defaultLineByLineRendererConfig=void 0;var l=s(n(99586)),c=s(n(21110)),u=n(9165);t.defaultLineByLineRendererConfig=i(i({},c.defaultRenderConfig),{renderNothingWhenEmpty:!1,matchingMaxComparisons:2500,maxLineSizeInBlockForComparison:200});var d="generic",h="line-by-line",p="icon",f="tag",m=function(){function e(e,n){void 0===n&&(n={}),this.hoganUtils=e,this.config=i(i({},t.defaultLineByLineRendererConfig),n)}return e.prototype.render=function(e){var t=this,n=e.map((function(e){var n;return n=e.blocks.length?t.generateFileHtml(e):t.generateEmptyDiff(),t.makeFileDiffHtml(e,n)})).join("\n");return this.hoganUtils.render(d,"wrapper",{content:n})},e.prototype.makeFileDiffHtml=function(e,t){if(this.config.renderNothingWhenEmpty&&Array.isArray(e.blocks)&&0===e.blocks.length)return"";var n=this.hoganUtils.template(h,"file-diff"),r=this.hoganUtils.template(d,"file-path"),i=this.hoganUtils.template(p,"file"),o=this.hoganUtils.template(f,c.getFileIcon(e));return n.render({file:e,fileHtmlId:c.getHtmlId(e),diffs:t,filePath:r.render({fileDiffName:c.filenameDiff(e)},{fileIcon:i,fileTag:o})})},e.prototype.generateEmptyDiff=function(){return this.hoganUtils.render(d,"empty-diff",{contentClass:"d2h-code-line",CSSLineClass:c.CSSLineClass})},e.prototype.generateFileHtml=function(e){var t=this,n=l.newMatcherFn(l.newDistanceFn((function(t){return c.deconstructLine(t.content,e.isCombined).content})));return e.blocks.map((function(i){var o=t.hoganUtils.render(d,"block-header",{CSSLineClass:c.CSSLineClass,blockHeader:e.isTooBig?i.header:c.escapeForHtml(i.header),lineClass:"d2h-code-linenumber",contentClass:"d2h-code-line"});return t.applyLineGroupping(i).forEach((function(i){var a=i[0],s=i[1],l=i[2];if(s.length&&l.length&&!a.length)t.applyRematchMatching(s,l,n).map((function(n){var r=n[0],i=n[1],a=t.processChangedLines(e.isCombined,r,i),s=a.left,l=a.right;o+=s,o+=l}));else if(a.length)a.forEach((function(n){var r=c.deconstructLine(n.content,e.isCombined),i=r.prefix,a=r.content;o+=t.generateSingleLineHtml({type:c.CSSLineClass.CONTEXT,prefix:i,content:a,oldNumber:n.oldNumber,newNumber:n.newNumber})}));else if(s.length||l.length){var u=t.processChangedLines(e.isCombined,s,l),d=u.left,h=u.right;o+=d,o+=h}else r.error("Unknown state reached while processing groups of lines",a,s,l)})),o})).join("\n")},e.prototype.applyLineGroupping=function(e){for(var t=[],n=[],r=[],i=0;i<e.lines.length;i++){var o=e.lines[i];(o.type!==u.LineType.INSERT&&r.length||o.type===u.LineType.CONTEXT&&n.length>0)&&(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<this.config.matchingMaxComparisons&&i<this.config.maxLineSizeInBlockForComparison&&("lines"===this.config.matching||"words"===this.config.matching);return o?n(e,t):[[e,t]]},e.prototype.processChangedLines=function(e,t,n){for(var r={right:"",left:""},o=Math.max(t.length,n.length),a=0;a<o;a++){var s=t[a],l=n[a],u=void 0!==s&&void 0!==l?c.diffHighlight(s.content,l.content,e,this.config):void 0,d=void 0!==s&&void 0!==s.oldNumber?i(i({},void 0!==u?{prefix:u.oldLine.prefix,content:u.oldLine.content,type:c.CSSLineClass.DELETE_CHANGES}:i(i({},c.deconstructLine(s.content,e)),{type:c.toCSSClass(s.type)})),{oldNumber:s.oldNumber,newNumber:s.newNumber}):void 0,h=void 0!==l&&void 0!==l.newNumber?i(i({},void 0!==u?{prefix:u.newLine.prefix,content:u.newLine.content,type:c.CSSLineClass.INSERT_CHANGES}:i(i({},c.deconstructLine(l.content,e)),{type:c.toCSSClass(l.type)})),{oldNumber:l.oldNumber,newNumber:l.newNumber}):void 0,p=this.generateLineHtml(d,h),f=p.left,m=p.right;r.left+=f,r.right+=m}return r},e.prototype.generateLineHtml=function(e,t){return{left:this.generateSingleLineHtml(e),right:this.generateSingleLineHtml(t)}},e.prototype.generateSingleLineHtml=function(e){if(void 0===e)return"";var t=this.hoganUtils.render(h,"numbers",{oldNumber:e.oldNumber||"",newNumber:e.newNumber||""});return this.hoganUtils.render(d,"line",{type:e.type,lineClass:"d2h-code-linenumber",contentClass:"d2h-code-line",prefix:" "===e.prefix?" ":e.prefix,content:e.content,lineNumber:t})},e}();t["default"]=m},99586:function(e,t){"use strict";function n(e,t){if(0===e.length)return t.length;if(0===t.length)return e.length;var n,r,i=[];for(n=0;n<=t.length;n++)i[n]=[n];for(r=0;r<=e.length;r++)i[0][r]=r;for(n=1;n<=t.length;n++)for(r=1;r<=e.length;r++)t.charAt(n-1)===e.charAt(r-1)?i[n][r]=i[n-1][r-1]:i[n][r]=Math.min(i[n-1][r-1]+1,Math.min(i[n][r-1]+1,i[n-1][r]+1));return i[t.length][e.length]}function r(e){return function(t,r){var i=e(t).trim(),o=e(r).trim(),a=n(i,o);return a/(i.length+o.length)}}function i(e){function t(t,n,r){void 0===r&&(r=new Map);for(var i,o=1/0,a=0;a<t.length;++a)for(var s=0;s<n.length;++s){var l=JSON.stringify([t[a],n[s]]),c=void 0;r.has(l)&&(c=r.get(l))||(c=e(t[a],n[s]),r.set(l,c)),c<o&&(o=c,i={indexA:a,indexB:s,score:o})}return i}function n(e,r,i,o){void 0===i&&(i=0),void 0===o&&(o=new Map);var a=t(e,r,o);if(!a||e.length+r.length<3)return[[e,r]];var s=e.slice(0,a.indexA),l=r.slice(0,a.indexB),c=[e[a.indexA]],u=[r[a.indexB]],d=a.indexA+1,h=a.indexB+1,p=e.slice(d),f=r.slice(h),m=n(s,l,i+1,o),g=n(c,u,i+1,o),v=n(p,f,i+1,o),y=g;return(a.indexA>0||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<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)},i=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]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e["default"]=t}),a=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)&&i(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.diffHighlight=t.getFileIcon=t.getHtmlId=t.filenameDiff=t.deconstructLine=t.escapeForHtml=t.toCSSClass=t.defaultRenderConfig=t.CSSLineClass=void 0;var s=a(n(19835)),l=n(91569),c=a(n(99586)),u=n(9165);t.CSSLineClass={INSERTS:"d2h-ins",DELETES:"d2h-del",CONTEXT:"d2h-cntx",INFO:"d2h-info",INSERT_CHANGES:"d2h-ins d2h-change",DELETE_CHANGES:"d2h-del d2h-change"},t.defaultRenderConfig={matching:u.LineMatchingType.NONE,matchWordsThreshold:.25,maxLineLengthHighlight:1e4,diffStyle:u.DiffStyleType.WORD};var d="/",h=c.newDistanceFn((function(e){return e.value})),p=c.newMatcherFn(h);function f(e){return-1!==e.indexOf("dev/null")}function m(e){return e.replace(/(<ins[^>]*>((.|\n)*?)<\/ins>)/g,"")}function g(e){return e.replace(/(<del[^>]*>((.|\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,"'").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(u<h&&u<p){if(o[u]!==a[u])break;r.push(a[u]),u+=1}while(h>u&&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<u&&(w.push(e[0][0]),w.push(e[1][0]))}}))}var k=y.reduce((function(e,t){var n=t.added?"ins":t.removed?"del":null,r=w.indexOf(t)>-1?' class="d2h-change"':"",i=b(t.value);return null!==n?"".concat(e,"<").concat(n).concat(r,">").concat(i,"</").concat(n,">"):"".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;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},i.apply(this,arguments)},o=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]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e["default"]=t}),s=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)&&o(t,e,n);return a(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.defaultSideBySideRendererConfig=void 0;var l=s(n(99586)),c=s(n(21110)),u=n(9165);t.defaultSideBySideRendererConfig=i(i({},c.defaultRenderConfig),{renderNothingWhenEmpty:!1,matchingMaxComparisons:2500,maxLineSizeInBlockForComparison:200});var d="generic",h="side-by-side",p="icon",f="tag",m=function(){function e(e,n){void 0===n&&(n={}),this.hoganUtils=e,this.config=i(i({},t.defaultSideBySideRendererConfig),n)}return e.prototype.render=function(e){var t=this,n=e.map((function(e){var n;return n=e.blocks.length?t.generateFileHtml(e):t.generateEmptyDiff(),t.makeFileDiffHtml(e,n)})).join("\n");return this.hoganUtils.render(d,"wrapper",{content:n})},e.prototype.makeFileDiffHtml=function(e,t){if(this.config.renderNothingWhenEmpty&&Array.isArray(e.blocks)&&0===e.blocks.length)return"";var n=this.hoganUtils.template(h,"file-diff"),r=this.hoganUtils.template(d,"file-path"),i=this.hoganUtils.template(p,"file"),o=this.hoganUtils.template(f,c.getFileIcon(e));return n.render({file:e,fileHtmlId:c.getHtmlId(e),diffs:t,filePath:r.render({fileDiffName:c.filenameDiff(e)},{fileIcon:i,fileTag:o})})},e.prototype.generateEmptyDiff=function(){return{right:"",left:this.hoganUtils.render(d,"empty-diff",{contentClass:"d2h-code-side-line",CSSLineClass:c.CSSLineClass})}},e.prototype.generateFileHtml=function(e){var t=this,n=l.newMatcherFn(l.newDistanceFn((function(t){return c.deconstructLine(t.content,e.isCombined).content})));return e.blocks.map((function(i){var o={left:t.makeHeaderHtml(i.header,e),right:t.makeHeaderHtml("")};return t.applyLineGroupping(i).forEach((function(i){var a=i[0],s=i[1],l=i[2];if(s.length&&l.length&&!a.length)t.applyRematchMatching(s,l,n).map((function(n){var r=n[0],i=n[1],a=t.processChangedLines(e.isCombined,r,i),s=a.left,l=a.right;o.left+=s,o.right+=l}));else if(a.length)a.forEach((function(n){var r=c.deconstructLine(n.content,e.isCombined),i=r.prefix,a=r.content,s=t.generateLineHtml({type:c.CSSLineClass.CONTEXT,prefix:i,content:a,number:n.oldNumber},{type:c.CSSLineClass.CONTEXT,prefix:i,content:a,number:n.newNumber}),l=s.left,u=s.right;o.left+=l,o.right+=u}));else if(s.length||l.length){var u=t.processChangedLines(e.isCombined,s,l),d=u.left,h=u.right;o.left+=d,o.right+=h}else r.error("Unknown state reached while processing groups of lines",a,s,l)})),o})).reduce((function(e,t){return{left:e.left+t.left,right:e.right+t.right}}),{left:"",right:""})},e.prototype.applyLineGroupping=function(e){for(var t=[],n=[],r=[],i=0;i<e.lines.length;i++){var o=e.lines[i];(o.type!==u.LineType.INSERT&&r.length||o.type===u.LineType.CONTEXT&&n.length>0)&&(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<this.config.matchingMaxComparisons&&i<this.config.maxLineSizeInBlockForComparison&&("lines"===this.config.matching||"words"===this.config.matching);return o?n(e,t):[[e,t]]},e.prototype.makeHeaderHtml=function(e,t){return this.hoganUtils.render(d,"block-header",{CSSLineClass:c.CSSLineClass,blockHeader:(null===t||void 0===t?void 0:t.isTooBig)?e:c.escapeForHtml(e),lineClass:"d2h-code-side-linenumber",contentClass:"d2h-code-side-line"})},e.prototype.processChangedLines=function(e,t,n){for(var r={right:"",left:""},o=Math.max(t.length,n.length),a=0;a<o;a++){var s=t[a],l=n[a],u=void 0!==s&&void 0!==l?c.diffHighlight(s.content,l.content,e,this.config):void 0,d=void 0!==s&&void 0!==s.oldNumber?i(i({},void 0!==u?{prefix:u.oldLine.prefix,content:u.oldLine.content,type:c.CSSLineClass.DELETE_CHANGES}:i(i({},c.deconstructLine(s.content,e)),{type:c.toCSSClass(s.type)})),{number:s.oldNumber}):void 0,h=void 0!==l&&void 0!==l.newNumber?i(i({},void 0!==u?{prefix:u.newLine.prefix,content:u.newLine.content,type:c.CSSLineClass.INSERT_CHANGES}:i(i({},c.deconstructLine(l.content,e)),{type:c.toCSSClass(l.type)})),{number:l.newNumber}):void 0,p=this.generateLineHtml(d,h),f=p.left,m=p.right;r.left+=f,r.right+=m}return r},e.prototype.generateLineHtml=function(e,t){return{left:this.generateSingleHtml(e),right:this.generateSingleHtml(t)}},e.prototype.generateSingleHtml=function(e){var t="d2h-code-side-linenumber",n="d2h-code-side-line";return this.hoganUtils.render(d,"line",{type:(null===e||void 0===e?void 0:e.type)||"".concat(c.CSSLineClass.CONTEXT," d2h-emptyplaceholder"),lineClass:void 0!==e?t:"".concat(t," d2h-code-side-emptyplaceholder"),contentClass:void 0!==e?n:"".concat(n," d2h-code-side-emptyplaceholder"),prefix:" "===(null===e||void 0===e?void 0:e.prefix)?" ":null===e||void 0===e?void 0:e.prefix,content:null===e||void 0===e?void 0:e.content,lineNumber:null===e||void 0===e?void 0:e.number})},e}();t["default"]=m},9165:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DiffStyleType=t.LineMatchingType=t.OutputFormatType=t.LineType=void 0,function(e){e["INSERT"]="insert",e["DELETE"]="delete",e["CONTEXT"]="context"}(t.LineType||(t.LineType={})),t.OutputFormatType={LINE_BY_LINE:"line-by-line",SIDE_BY_SIDE:"side-by-side"},t.LineMatchingType={LINES:"lines",WORDS:"words",NONE:"none"},t.DiffStyleType={WORD:"word",CHAR:"char"}},31920: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;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.Diff2HtmlUI=t.defaultDiff2HtmlUIConfig=void 0;var o=n(16866),a=n(36558);t.defaultDiff2HtmlUIConfig=i(i({},a.defaultDiff2HtmlConfig),{synchronisedScroll:!0,highlight:!0,fileListToggle:!0,fileListStartVisible:!1,highlightLanguages:new Map,smartSelection:!0,fileContentToggle:!0,stickyFileHeaders:!0});var s=function(){function e(e,n,r,o){void 0===r&&(r={}),this.hljs=null,this.currentSelectionColumnId=-1,this.config=i(i({},t.defaultDiff2HtmlUIConfig),r),this.diffHtml=void 0!==n?(0,a.html)(n,this.config):e.innerHTML,this.targetElement=e,void 0!==o&&(this.hljs=o)}return e.prototype.draw=function(){this.targetElement.innerHTML=this.diffHtml,this.config.synchronisedScroll&&this.synchronisedScroll(),this.config.highlight&&this.highlightCode(),this.config.fileListToggle&&this.fileListToggle(this.config.fileListStartVisible),this.config.fileContentToggle&&this.fileContentToggle(),this.config.stickyFileHeaders&&this.stickyFileHeaders()},e.prototype.synchronisedScroll=function(){this.targetElement.querySelectorAll(".d2h-file-wrapper").forEach((function(e){var t=Array().slice.call(e.querySelectorAll(".d2h-file-side-diff")),n=t[0],r=t[1];if(void 0!==n&&void 0!==r){var i=function(e){null!==e&&null!==e.target&&(e.target===n?(r.scrollTop=n.scrollTop,r.scrollLeft=n.scrollLeft):(n.scrollTop=r.scrollTop,n.scrollLeft=r.scrollLeft))};n.addEventListener("scroll",i),r.addEventListener("scroll",i)}}))},e.prototype.fileListToggle=function(e){var t=this.targetElement.querySelector(".d2h-show"),n=this.targetElement.querySelector(".d2h-hide"),r=this.targetElement.querySelector(".d2h-file-list");if(null!==t&&null!==n&&null!==r){var i=function(){t.style.display="none",n.style.display="inline",r.style.display="block"},o=function(){t.style.display="inline",n.style.display="none",r.style.display="none"};t.addEventListener("click",(function(){return i()})),n.addEventListener("click",(function(){return o()}));var a=this.getHashTag();"files-summary-show"===a?i():"files-summary-hide"===a?o():e?i():o()}},e.prototype.fileContentToggle=function(){this.targetElement.querySelectorAll(".d2h-file-collapse").forEach((function(e){e.style.display="flex";var t=function(t){var n,r=null===(n=e.closest(".d2h-file-wrapper"))||void 0===n?void 0:n.querySelector(t);null!==r&&void 0!==r&&(e.classList.toggle("d2h-selected"),r.classList.toggle("d2h-d-none"))},n=function(n){e!==n.target&&(t(".d2h-file-diff"),t(".d2h-files-diff"))};e.addEventListener("click",(function(e){return n(e)}))}))},e.prototype.highlightCode=function(){var e=this,t=this.hljs;if(null===t)throw new Error("Missing a `highlight.js` implementation. Please provide one when instantiating Diff2HtmlUI.");var n=this.targetElement.querySelectorAll(".d2h-file-wrapper");n.forEach((function(n){var r=n.getAttribute("data-lang");e.config.highlightLanguages instanceof Map||(e.config.highlightLanguages=new Map(Object.entries(e.config.highlightLanguages)));var i=r&&e.config.highlightLanguages.has(r)?e.config.highlightLanguages.get(r):r?(0,o.getLanguage)(r):"plaintext",a=n.querySelectorAll(".d2h-code-line-ctn");a.forEach((function(n){var r=n.textContent,a=n.parentNode;if(null!==r&&null!==a&&e.isElement(a)){var s=(0,o.closeTags)(t.highlight(r,{language:i,ignoreIllegals:!0})),l=(0,o.nodeStream)(n);if(l.length){var c=document.createElementNS("http://www.w3.org/1999/xhtml","div");c.innerHTML=s.value,s.value=(0,o.mergeStreams)(l,(0,o.nodeStream)(c),r)}n.classList.add("hljs"),s.language&&n.classList.add(s.language),n.innerHTML=s.value}}))}))},e.prototype.stickyFileHeaders=function(){this.targetElement.querySelectorAll(".d2h-file-header").forEach((function(e){e.classList.add("d2h-sticky-header")}))},e.prototype.smartSelection=function(){r.warn("Smart selection is now enabled by default with CSS. No need to call this method anymore.")},e.prototype.getHashTag=function(){var e=document.URL,t=e.indexOf("#"),n=null;return-1!==t&&(n=e.substr(t+1)),n},e.prototype.isElement=function(e){return null!==e&&void 0!==(null===e||void 0===e?void 0:e.classList)},e}();t.Diff2HtmlUI=s},83836:function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0}),t.defaultDiff2HtmlUIConfig=t.Diff2HtmlUI=void 0;var i=n(49982),o=n(31920);Object.defineProperty(t,"defaultDiff2HtmlUIConfig",{enumerable:!0,get:function(){return o.defaultDiff2HtmlUIConfig}});var a=function(e){function t(t,n,r){return void 0===r&&(r={}),e.call(this,t,n,r,i.hljs)||this}return r(t,e),t}(o.Diff2HtmlUI);t.Diff2HtmlUI=a},16866:function(e,t){"use strict";function n(e){return e.replace(/&/gm,"&").replace(/</gm,"<").replace(/>/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<t[0].offset?e:t:"start"===t[0].event?e:t:e.length?e:t}function u(e){if(!l(e))throw new Error("Node is not an Element");a+="<".concat(r(e)," ").concat(Array().map.call(e.attributes,(function(e){return"".concat(e.nodeName,'="').concat(n(e.value).replace(/"/g,"""),'"')})).join(" "),">")}function d(e){a+="</"+r(e)+">"}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'<span class="'.concat(e,'">')})).join(""),r=e.matchAll(/(<span class="(.*?)">|<\/span>)/g);Array.from(r).forEach((function(e){"</span>"===e[0]?t.shift():t.unshift(e[2])}));var i="</span>".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<r;t++)n=e.charCodeAt(t),i=(i<<5)-i+n,i|=0;return i}t.escapeForRegExp=i,t.unifyPath=o,t.hashCode=a},72530:function(e,t){"use strict";function n(e){for(var t,n,r=[],i=0;i<e.length;i++)t=e[i],n=t.added?1:t.removed?-1:0,r.push([n,t.value]);return r}Object.defineProperty(t,"__esModule",{value:!0}),t.convertChangesToDMP=n},74786:function(e,t){"use strict";function n(e){for(var t=[],n=0;n<e.length;n++){var i=e[n];i.added?t.push("<ins>"):i.removed&&t.push("<del>"),t.push(r(i.value)),i.added?t.push("</ins>"):i.removed&&t.push("</del>")}return t.join("")}function r(e){var t=e;return t=t.replace(/&/g,"&"),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;o<a;o++){var c=t[o];if(c.removed){if(c.value=e.join(r.slice(l,l+c.count)),l+=c.count,o&&t[o-1].added){var u=t[o-1];t[o-1]=t[o],t[o]=u}}else{if(!c.added&&i){var d=n.slice(s,s+c.count);d=d.map((function(e,t){var n=r[l+t];return n.length>e.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,g=p&&0<=f&&f<c;if(m||g){if(!m||g&&d.newPos<p.newPos?(o=i(p),a.pushComponent(o.components,void 0,!0)):(o=d,o.newPos++,a.pushComponent(o.components,!0,void 0)),f=a.extractCommon(o,t,e,n),o.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+1<i&&s+1<o&&this.equals(t[a+1],n[s+1]))a++,s++,l++;return l&&e.components.push({count:l}),e.newPos=a,s},equals:function(e,t){return this.options.comparator?this.options.comparator(e,t):e===t||this.options.ignoreCase&&e.toLowerCase()===t.toLowerCase()},removeEmpty:function(e){for(var t=[],n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}}},15615:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.diffChars=a,t.characterDiff=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.characterDiff=o},4484:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.diffCss=a,t.cssDiff=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.cssDiff=o,o.tokenize=function(e){return e.split(/([{}:;,]|\s+)/)}},7405:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.diffJson=c,t.canonicalize=u,t.jsonDiff=void 0;var r=o(n(31350)),i=n(9869);function o(e){return e&&e.__esModule?e:{default:e}}function a(e){return a="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}var s=Object.prototype.toString,l=new r["default"];function c(e,t,n){return l.diff(e,t,n)}function u(e,t,n,r,i){var o,l;for(t=t||[],n=n||[],r&&(e=r(i,e)),o=0;o<t.length;o+=1)if(t[o]===e)return n[o];if("[object Array]"===s.call(e)){for(t.push(e),l=new Array(e.length),n.push(l),o=0;o<e.length;o+=1)l[o]=u(e[o],t,n,r,i);return t.pop(),n.pop(),l}if(e&&e.toJSON&&(e=e.toJSON()),"object"===a(e)&&null!==e){t.push(e),l={},n.push(l);var c,d=[];for(c in e)e.hasOwnProperty(c)&&d.push(c);for(d.sort(),o=0;o<d.length;o+=1)c=d[o],l[c]=u(e[c],t,n,r,c);t.pop(),n.pop()}else l=e;return l}t.jsonDiff=l,l.useLongestToken=!0,l.tokenize=i.lineDiff.tokenize,l.castInput=function(e){var t=this.options,n=t.undefinedReplacement,r=t.stringifyReplacer,i=void 0===r?function(e,t){return"undefined"===typeof t?n:t}:r;return"string"===typeof e?e:JSON.stringify(u(e,null,null,i),i," ")},l.equals=function(e,t){return r["default"].prototype.equals.call(l,e.replace(/,([\r\n])/g,"$1"),t.replace(/,([\r\n])/g,"$1"))}},9869:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.diffLines=s,t.diffTrimmedLines=l,t.lineDiff=void 0;var r=o(n(31350)),i=n(94388);function o(e){return e&&e.__esModule?e:{default:e}}var a=new r["default"];function s(e,t,n){return a.diff(e,t,n)}function l(e,t,n){var r=(0,i.generateOptions)(n,{ignoreWhitespace:!0});return a.diff(e,t,r)}t.lineDiff=a,a.tokenize=function(e){var t=[],n=e.split(/(\n|\r\n)/);n[n.length-1]||n.pop();for(var r=0;r<n.length;r++){var i=n[r];r%2&&!this.options.newlineIsToken?t[t.length-1]+=i:(this.options.ignoreWhitespace&&(i=i.trim()),t.push(i))}return t}},9350:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.diffSentences=a,t.sentenceDiff=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.sentenceDiff=o,o.tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)}},61983:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.diffWords=c,t.diffWordsWithSpace=u,t.wordDiff=void 0;var r=o(n(31350)),i=n(94388);function o(e){return e&&e.__esModule?e:{default:e}}var a=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,s=/\S/,l=new r["default"];function c(e,t,n){return n=(0,i.generateOptions)(n,{ignoreWhitespace:!0}),l.diff(e,t,n)}function u(e,t,n){return l.diff(e,t,n)}t.wordDiff=l,l.equals=function(e,t){return this.options.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t||this.options.ignoreWhitespace&&!s.test(e)&&!s.test(t)},l.tokenize=function(e){for(var t=e.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),n=0;n<t.length-1;n++)!t[n+1]&&t[n+2]&&a.test(t[n])&&a.test(t[n+2])&&(t[n]+=t[n+2],t.splice(n+1,2),n--);return t}},19835:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Diff",{enumerable:!0,get:function(){return r["default"]}}),Object.defineProperty(t,"diffChars",{enumerable:!0,get:function(){return i.diffChars}}),Object.defineProperty(t,"diffWords",{enumerable:!0,get:function(){return o.diffWords}}),Object.defineProperty(t,"diffWordsWithSpace",{enumerable:!0,get:function(){return o.diffWordsWithSpace}}),Object.defineProperty(t,"diffLines",{enumerable:!0,get:function(){return a.diffLines}}),Object.defineProperty(t,"diffTrimmedLines",{enumerable:!0,get:function(){return a.diffTrimmedLines}}),Object.defineProperty(t,"diffSentences",{enumerable:!0,get:function(){return s.diffSentences}}),Object.defineProperty(t,"diffCss",{enumerable:!0,get:function(){return l.diffCss}}),Object.defineProperty(t,"diffJson",{enumerable:!0,get:function(){return c.diffJson}}),Object.defineProperty(t,"canonicalize",{enumerable:!0,get:function(){return c.canonicalize}}),Object.defineProperty(t,"diffArrays",{enumerable:!0,get:function(){return u.diffArrays}}),Object.defineProperty(t,"applyPatch",{enumerable:!0,get:function(){return d.applyPatch}}),Object.defineProperty(t,"applyPatches",{enumerable:!0,get:function(){return d.applyPatches}}),Object.defineProperty(t,"parsePatch",{enumerable:!0,get:function(){return h.parsePatch}}),Object.defineProperty(t,"merge",{enumerable:!0,get:function(){return p.merge}}),Object.defineProperty(t,"structuredPatch",{enumerable:!0,get:function(){return f.structuredPatch}}),Object.defineProperty(t,"createTwoFilesPatch",{enumerable:!0,get:function(){return f.createTwoFilesPatch}}),Object.defineProperty(t,"createPatch",{enumerable:!0,get:function(){return f.createPatch}}),Object.defineProperty(t,"convertChangesToDMP",{enumerable:!0,get:function(){return m.convertChangesToDMP}}),Object.defineProperty(t,"convertChangesToXML",{enumerable:!0,get:function(){return g.convertChangesToXML}});var r=v(n(31350)),i=n(15615),o=n(61983),a=n(9869),s=n(9350),l=n(4484),c=n(7405),u=n(54782),d=n(2078),h=n(89785),p=n(14042),f=n(52008),m=n(72530),g=n(74786);function v(e){return e&&e.__esModule?e:{default:e}}},2078:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.applyPatch=a,t.applyPatches=s;var r=n(89785),i=o(n(26192));function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){var n=arguments.length>2&&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;n<e.lines.length;n++){var r=e.lines[n],i=r.length>0?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;g<c.length;g++){for(var v=c[g],y=s.length-v.oldLines,b=0,_=f+v.oldStart-1,w=(0,i["default"])(_,p,y);void 0!==b;b=w())if(m(v,_+b)){v.offset=f+=b;break}if(void 0===b)return!1;p=v.offset+v.oldStart+v.oldLines}for(var E=0,S=0;S<c.length;S++){var x=c[S],k=x.oldStart+x.offset+E-1;E+=x.newLines-x.oldLines;for(var A=0;A<x.lines.length;A++){var N=x.lines[A],T=N.length>0?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;I<s.length-1;I++)s[I]=s[I]+l[I];return s.join("")}function s(e,t){"string"===typeof e&&(e=(0,r.parsePatch)(e));var n=0;function i(){var r=e[n++];if(!r)return t.complete();t.loadFile(r,(function(e,n){if(e)return t.complete(e);var o=a(n,r,t);t.patched(r,o,(function(e){if(e)return t.complete(e);i()}))}))}i()}},52008:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.structuredPatch=u,t.formatPatch=d,t.createTwoFilesPatch=h,t.createPatch=p;var r=n(9869);function i(e){return l(e)||s(e)||a(e)||o()}function o(){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){if(e){if("string"===typeof e)return c(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)?c(e,t):void 0}}function s(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function l(e){if(Array.isArray(e))return c(e)}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(e,t,n,o,a,s,l){l||(l={}),"undefined"===typeof l.context&&(l.context=4);var c=(0,r.diffLines)(n,o,l);if(c){c.push({value:"",lines:[]});for(var u=[],d=0,h=0,p=[],f=1,m=1,g=function(e){var t=c[e],r=t.lines||t.value.replace(/\n$/,"").split("\n");if(t.lines=r,t.added||t.removed){var a;if(!d){var s=c[e-1];d=f,h=m,s&&(p=l.context>0?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){var g;(g=p).push.apply(g,i(y(r)))}else{var v,b=Math.min(r.length,l.context);(v=p).push.apply(v,i(y(r.slice(0,b))));var _={oldStart:d,oldLines:f-d+b,newStart:h,newLines:m-h+b,lines:p};if(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;v<c.length;v++)g(v);return{oldFileName:e,newFileName:t,oldHeader:a,newHeader:s,hunks:u}}function y(e){return e.map((function(e){return" "+e}))}}function d(e){var t=[];e.oldFileName==e.newFileName&&t.push("Index: "+e.oldFileName),t.push("==================================================================="),t.push("--- "+e.oldFileName+("undefined"===typeof e.oldHeader?"":"\t"+e.oldHeader)),t.push("+++ "+e.newFileName+("undefined"===typeof e.newHeader?"":"\t"+e.newHeader));for(var n=0;n<e.hunks.length;n++){var r=e.hunks[n];0===r.oldLines&&(r.oldStart-=1),0===r.newLines&&(r.newStart-=1),t.push("@@ -"+r.oldStart+","+r.oldLines+" +"+r.newStart+","+r.newLines+" @@"),t.push.apply(t,r.lines)}return t.join("\n")+"\n"}function h(e,t,n,r,i,o,a){return d(u(e,t,n,r,i,o,a))}function p(e,t,n,r,i,o){return h(e,e,t,n,r,i,o)}},14042:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.calcLineCount=h,t.merge=p;var r=n(52008),i=n(89785),o=n(60637);function a(e){return u(e)||c(e)||l(e)||s()}function s(){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 l(e,t){if(e){if("string"===typeof e)return d(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)?d(e,t):void 0}}function c(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function u(e){if(Array.isArray(e))return d(e)}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function h(e){var t=C(e.lines),n=t.oldLines,r=t.newLines;void 0!==n?e.oldLines=n:delete e.oldLines,void 0!==r?e.newLines=r:delete e.newLines}function p(e,t,n){e=f(e,n),t=f(t,n);var r={};(e.index||t.index)&&(r.index=e.index||t.index),(e.newFileName||t.newFileName)&&(m(e)?m(t)?(r.oldFileName=g(r,e.oldFileName,t.oldFileName),r.newFileName=g(r,e.newFileName,t.newFileName),r.oldHeader=g(r,e.oldHeader,t.oldHeader),r.newHeader=g(r,e.newHeader,t.newHeader)):(r.oldFileName=e.oldFileName,r.newFileName=e.newFileName,r.oldHeader=e.oldHeader,r.newHeader=e.newHeader):(r.oldFileName=t.oldFileName||e.oldFileName,r.newFileName=t.newFileName||e.newFileName,r.oldHeader=t.oldHeader||e.oldHeader,r.newHeader=t.newHeader||e.newHeader)),r.hunks=[];var i=0,o=0,a=0,s=0;while(i<e.hunks.length||o<t.hunks.length){var l=e.hunks[i]||{oldStart:1/0},c=t.hunks[o]||{oldStart:1/0};if(v(l,c))r.hunks.push(y(l,a)),i++,s+=l.newLines-l.oldLines;else if(v(c,l))r.hunks.push(y(c,s)),o++,a+=c.newLines-c.oldLines;else{var u={oldStart:Math.min(l.oldStart,c.oldStart),oldLines:0,newStart:Math.min(l.newStart+a,c.oldStart+s),newLines:0,lines:[]};b(u,l.oldStart,l.lines,c.oldStart,c.lines),o++,i++,r.hunks.push(u)}}return r}function f(e,t){if("string"===typeof e){if(/^@@/m.test(e)||/^Index:/m.test(e))return(0,i.parsePatch)(e)[0];if(!t)throw new Error("Must provide a base reference or pass in a patch");return(0,r.structuredPatch)(void 0,void 0,t,e)}return e}function m(e){return e.newFileName&&e.newFileName!==e.oldFileName}function g(e,t,n){return t===n?t:(e.conflict=!0,{mine:t,theirs:n})}function v(e,t){return e.oldStart<t.oldStart&&e.oldStart+e.oldLines<t.oldStart}function y(e,t){return{oldStart:e.oldStart,oldLines:e.oldLines,newStart:e.newStart+t,newLines:e.newLines,lines:e.lines}}function b(e,t,n,r,i){var o={offset:t,lines:n,index:0},s={offset:r,lines:i,index:0};S(e,o,s),S(e,s,o);while(o.index<o.lines.length&&s.index<s.lines.length){var l=o.lines[o.index],c=s.lines[s.index];if("-"!==l[0]&&"+"!==l[0]||"-"!==c[0]&&"+"!==c[0])if("+"===l[0]&&" "===c[0]){var u;(u=e.lines).push.apply(u,a(k(o)))}else if("+"===c[0]&&" "===l[0]){var d;(d=e.lines).push.apply(d,a(k(s)))}else"-"===l[0]&&" "===c[0]?w(e,o,s):"-"===c[0]&&" "===l[0]?w(e,s,o,!0):l===c?(e.lines.push(l),o.index++,s.index++):E(e,k(o),k(s));else _(e,o,s)}x(e,o),x(e,s),h(e)}function _(e,t,n){var r=k(t),i=k(n);if(N(r)&&N(i)){var s,l;if((0,o.arrayStartsWith)(r,i)&&T(n,r,r.length-i.length))return void(s=e.lines).push.apply(s,a(r));if((0,o.arrayStartsWith)(i,r)&&T(t,i,i.length-r.length))return void(l=e.lines).push.apply(l,a(i))}else if((0,o.arrayEqual)(r,i)){var c;return void(c=e.lines).push.apply(c,a(r))}E(e,r,i)}function w(e,t,n,r){var i,o=k(t),s=A(n,o);s.merged?(i=e.lines).push.apply(i,a(s.merged)):E(e,r?s:o,r?o:s)}function E(e,t,n){e.conflict=!0,e.lines.push({conflict:!0,mine:t,theirs:n})}function S(e,t,n){while(t.offset<n.offset&&t.index<t.lines.length){var r=t.lines[t.index++];e.lines.push(r),t.offset++}}function x(e,t){while(t.index<t.lines.length){var n=t.lines[t.index++];e.lines.push(n)}}function k(e){var t=[],n=e.lines[e.index][0];while(e.index<e.lines.length){var r=e.lines[e.index];if("-"===n&&"+"===r[0]&&(n="+"),n!==r[0])break;t.push(r),e.index++}return t}function A(e,t){var n=[],r=[],i=0,o=!1,a=!1;while(i<t.length&&e.index<e.lines.length){var s=e.lines[e.index],l=t[i];if("+"===l[0])break;if(o=o||" "!==s[0],r.push(l),i++,"+"===s[0]){a=!0;while("+"===s[0])n.push(s),s=e.lines[++e.index]}l.substr(1)===s.substr(1)?(n.push(s),e.index++):a=!0}if("+"===(t[i]||"")[0]&&o&&(a=!0),a)return n;while(i<t.length)r.push(t[i++]);return{merged:r,changes:n}}function N(e){return e.reduce((function(e,t){return e&&"-"===t[0]}),!0)}function T(e,t,n){for(var r=0;r<n;r++){var i=t[t.length-n+r].substr(1);if(e.lines[e.index+r]!==" "+i)return!1}return e.index+=n,!0}function C(e){var t=0,n=0;return e.forEach((function(e){if("string"!==typeof e){var r=C(e.mine),i=C(e.theirs);void 0!==t&&(r.oldLines===i.oldLines?t+=r.oldLines:t=void 0),void 0!==n&&(r.newLines===i.newLines?n+=r.newLines:n=void 0)}else void 0===n||"+"!==e[0]&&" "!==e[0]||n++,void 0===t||"-"!==e[0]&&" "!==e[0]||t++})),{oldLines:t,newLines:n}}},89785:function(e,t){"use strict";function n(e){var t=arguments.length>1&&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(o<n.length){var r=n[o];if(/^(\-\-\-|\+\+\+|@@)\s/.test(r))break;var a=/^(?:Index:|diff(?: -r \w+)+)\s+(.+?)\s*$/.exec(r);a&&(e.index=a[1]),o++}s(e),s(e),e.hunks=[];while(o<n.length){var c=n[o];if(/^(Index:|diff|\-\-\-|\+\+\+)\s/.test(c))break;if(/^@@/.test(c))e.hunks.push(l());else{if(c&&t.strict)throw new Error("Unknown line "+(o+1)+" "+JSON.stringify(c));o++}}}function s(e){var t=/^(---|\+\+\+)\s+(.*)$/.exec(n[o]);if(t){var r="---"===t[1]?"old":"new",i=t[2].split("\t",2),a=i[0].replace(/\\\\/g,"\\");/^".*"$/.test(a)&&(a=a.substr(1,a.length-2)),e[r+"FileName"]=a,e[r+"Header"]=(i[1]||"").trim(),o++}}function l(){var e=o,i=n[o++],a=i.split(/@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/),s={oldStart:+a[1],oldLines:"undefined"===typeof a[2]?1:+a[2],newStart:+a[3],newLines:"undefined"===typeof a[4]?1:+a[4],lines:[],linedelimiters:[]};0===s.oldLines&&(s.oldStart+=1),0===s.newLines&&(s.newStart+=1);for(var l=0,c=0;o<n.length;o++){if(0===n[o].indexOf("--- ")&&o+2<n.length&&0===n[o+1].indexOf("+++ ")&&0===n[o+2].indexOf("@@"))break;var u=0==n[o].length&&o!=n.length-1?" ":n[o][0];if("+"!==u&&"-"!==u&&" "!==u&&"\\"!==u)break;s.lines.push(n[o]),s.linedelimiters.push(r[o]||"\n"),"+"===u?l++:"-"===u?c++:" "===u&&(l++,c++)}if(l||1!==s.newLines||(s.newLines=0),c||1!==s.oldLines||(s.oldLines=0),t.strict){if(l!==s.newLines)throw new Error("Added line count did not match for hunk at line "+(e+1));if(c!==s.oldLines)throw new Error("Removed line count did not match for hunk at line "+(e+1))}return s}while(o<n.length)a();return i}Object.defineProperty(t,"__esModule",{value:!0}),t.parsePatch=n},60637:function(e,t){"use strict";function n(e,t){return e.length===t.length&&r(e,t)}function r(e,t){if(t.length>e.length)return!1;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}Object.defineProperty(t,"__esModule",{value:!0}),t.arrayEqual=n,t.arrayStartsWith=r},26192:function(e,t){"use strict";function n(e,t,n){var r=!0,i=!1,o=!1,a=1;return function s(){if(r&&!o){if(i?a++:r=!1,e+a<=n)return a;o=!0}if(!i)return o||(r=!0),t<=e-a?-a++:(i=!0,s())}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=n},94388:function(e,t){"use strict";function n(e,t){if("function"===typeof e)t.callback=e;else if(e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}Object.defineProperty(t,"__esModule",{value:!0}),t.generateOptions=n},94807:function(e,t,n){var r=n(9776);
|
||
/*! @license DOMPurify 2.5.4 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.5.4/LICENSE */(function(t,n){e.exports=n()})(0,(function(){"use strict";function e(t){return e="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},e(t)}function t(e,n){return t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(e,n)}function n(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function i(e,r,o){return i=n()?Reflect.construct:function(e,n,r){var i=[null];i.push.apply(i,n);var o=Function.bind.apply(e,i),a=new o;return r&&t(a,r.prototype),a},i.apply(null,arguments)}function o(e){return a(e)||s(e)||l(e)||u()}function a(e){if(Array.isArray(e))return c(e)}function s(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function l(e,t){if(e){if("string"===typeof e)return c(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)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var d=Object.hasOwnProperty,h=Object.setPrototypeOf,p=Object.isFrozen,f=Object.getPrototypeOf,m=Object.getOwnPropertyDescriptor,g=Object.freeze,v=Object.seal,y=Object.create,b="undefined"!==typeof Reflect&&Reflect,_=b.apply,w=b.construct;_||(_=function(e,t,n){return e.apply(t,n)}),g||(g=function(e){return e}),v||(v=function(e){return e}),w||(w=function(e,t){return i(e,o(t))});var E=L(Array.prototype.forEach),S=L(Array.prototype.pop),x=L(Array.prototype.push),k=L(String.prototype.toLowerCase),A=L(String.prototype.toString),N=L(String.prototype.match),T=L(String.prototype.replace),C=L(String.prototype.indexOf),R=L(String.prototype.trim),O=L(RegExp.prototype.test),I=P(TypeError);function D(e){return"number"===typeof e&&isNaN(e)}function L(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return _(e,t,r)}}function P(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return w(e,n)}}function M(e,t,n){var r;n=null!==(r=n)&&void 0!==r?r:k,h&&h(e,null);var i=t.length;while(i--){var o=t[i];if("string"===typeof o){var a=n(o);a!==o&&(p(t)||(t[i]=a),o=a)}e[o]=!0}return e}function F(e){var t,n=y(null);for(t in e)!0===_(d,e,[t])&&(n[t]=e[t]);return n}function B(e,t){while(null!==e){var n=m(e,t);if(n){if(n.get)return L(n.get);if("function"===typeof n.value)return L(n.value)}e=f(e)}function i(e){return r.warn("fallback value for",e),null}return i}var $=g(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),j=g(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),U=g(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),V=g(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),K=g(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),H=g(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),G=g(["#text"]),z=g(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),X=g(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),q=g(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),W=g(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Y=v(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Q=v(/<%[\w\W]*|[\w\W]*%>/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="<remove></remove>"+e;else{var r=N(e,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===ye&&ct===lt&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");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(/<template/i,e.innerHTML))return At(e),!0;if(7===e.nodeType)return At(e),!0;if(Ue&&8===e.nodeType&&O(/<[/\w]/g,e.data))return At(e),!0;if(!Ce[r]||Le[r]){if(!Le[r]&&Pt(r)){if(De.tagNameCheck instanceof RegExp&&O(De.tagNameCheck,r))return!1;if(De.tagNameCheck instanceof Function&&De.tagNameCheck(r))return!1}if(Qe&&!et[r]){var i=w(e)||e.parentNode,o=_(e)||e.childNodes;if(o&&i)for(var a=o.length,s=a-1;s>=0;--s){var l=y(o[s],!0);l.__removalCount=(e.__removalCount||0)+1,i.insertBefore(l,b(e))}}return At(e),!0}return e instanceof c&&!kt(e)?(At(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!O(/<\/no(script|embed|frames)/i,e.innerHTML)?(je&&3===e.nodeType&&(t=e.textContent,t=T(t,_e," "),t=T(t,we," "),t=T(t,Ee," "),e.textContent!==t&&(x(n.removed,{element:e.cloneNode()}),e.textContent=t)),It("afterSanitizeElements",e,null),!1):(At(e),!0)},Lt=function(e,t,n){if(qe&&("id"===t||"name"===t)&&(n in i||n in vt||"__depth"===n||"__removalCount"===n))return!1;if(Fe&&!Pe[t]&&O(Se,t));else if(Me&&O(xe,t));else if(!Oe[t]||Pe[t]){if(!(Pt(e)&&(De.tagNameCheck instanceof RegExp&&O(De.tagNameCheck,e)||De.tagNameCheck instanceof Function&&De.tagNameCheck(e))&&(De.attributeNameCheck instanceof RegExp&&O(De.attributeNameCheck,t)||De.attributeNameCheck instanceof Function&&De.attributeNameCheck(t))||"is"===t&&De.allowCustomizedBuiltInElements&&(De.tagNameCheck instanceof RegExp&&O(De.tagNameCheck,n)||De.tagNameCheck instanceof Function&&De.tagNameCheck(n))))return!1}else if(it[t]);else if(O(Te,T(n,Ae,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==C(n,"data:")||!nt[e]){if(Be&&!O(ke,T(n,Ae,"")));else if(n)return!1}else;return!0},Pt=function(e){return"annotation-xml"!==e&&N(e,Ne)},Mt=function(t){var r,i,o,a;It("beforeSanitizeAttributes",t,null);var s=t.attributes;if(s){var l={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Oe};a=s.length;while(a--){r=s[a];var c=r,u=c.name,d=c.namespaceURI;if(i="value"===u?r.value:R(r.value),o=be(u),l.attrName=o,l.attrValue=i,l.keepAttr=!0,l.forceKeepAttr=void 0,It("uponSanitizeAttribute",t,l),i=l.attrValue,!l.forceKeepAttr&&(Nt(u,t),l.keepAttr))if($e||!O(/\/>/i,i))if(Ue&&O(/((--!?|])>)|<\/(style|title)/i,i))Nt(u,t);else{je&&(i=T(i,_e," "),i=T(i,we," "),i=T(i,Ee," "));var h=be(t.nodeName);if(Lt(h,o,i)){if(!We||"id"!==o&&"name"!==o||(Nt(u,t),i=Ye+i),P&&"object"===e(m)&&"function"===typeof m.getAttributeType)if(d);else switch(m.getAttributeType(h,o)){case"TrustedHTML":i=P.createHTML(i);break;case"TrustedScriptURL":i=P.createScriptURL(i);break}try{d?t.setAttributeNS(d,u,i):t.setAttribute(u,i),Rt(t)?At(t):S(n.removed)}catch(Bt){}}}else Nt(u,t)}It("afterSanitizeAttributes",t,null)}},Ft=function e(t){var n,r=Ct(t);It("beforeSanitizeShadowDOM",t,null);while(n=r.nextNode())if(It("uponSanitizeShadowNode",n,null),!Dt(n)){var i=w(n);1===n.nodeType&&(i&&i.__depth?n.__depth=(n.__removalCount||0)+i.__depth+1:n.__depth=1),(n.__depth>=gt||D(n.__depth))&&At(n),n.content instanceof a&&(n.content.__depth=n.__depth,e(n.content)),Mt(n)}It("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(i){var o,s,c,u,d,h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(ut=!i,ut&&(i="\x3c!--\x3e"),"string"!==typeof i&&!Ot(i)){if("function"!==typeof i.toString)throw I("toString is not a function");if(i=i.toString(),"string"!==typeof i)throw I("dirty is not a string, aborting")}if(!n.isSupported){if("object"===e(t.toStaticHTML)||"function"===typeof t.toStaticHTML){if("string"===typeof i)return t.toStaticHTML(i);if(Ot(i))return t.toStaticHTML(i.outerHTML)}return i}if(Ke||bt(h),n.removed=[],"string"===typeof i&&(Je=!1),Je){if(i.nodeName){var p=be(i.nodeName);if(!Ce[p]||Le[p])throw I("root node is forbidden and cannot be sanitized in-place")}}else if(i instanceof l)o=Tt("\x3c!----\x3e"),s=o.ownerDocument.importNode(i,!0),1===s.nodeType&&"BODY"===s.nodeName||"HTML"===s.nodeName?o=s:o.appendChild(s);else{if(!Ge&&!je&&!Ve&&-1===i.indexOf("<"))return P&&Xe?P.createHTML(i):i;if(o=Tt(i),!o)return Ge?null:Xe?ce:""}o&&He&&At(o.firstChild);var f=Ct(Je?i:o);while(c=f.nextNode())if((3!==c.nodeType||c!==u)&&!Dt(c)){var m=w(c);1===c.nodeType&&(m&&m.__depth?c.__depth=(c.__removalCount||0)+m.__depth+1:c.__depth=1),(c.__depth>=gt||D(c.__depth))&&At(c),c.content instanceof a&&(c.content.__depth=c.__depth,Ft(c.content)),Mt(c),u=c}if(u=null,Je)return i;if(Ge){if(ze){d=pe.call(o.ownerDocument);while(o.firstChild)d.appendChild(o.firstChild)}else d=o;return(Oe.shadowroot||Oe.shadowrootmod)&&(d=me.call(r,d,!0)),d}var g=Ve?o.outerHTML:o.innerHTML;return Ve&&Ce["!doctype"]&&o.ownerDocument&&o.ownerDocument.doctype&&o.ownerDocument.doctype.name&&O(ie,o.ownerDocument.doctype.name)&&(g="<!DOCTYPE "+o.ownerDocument.doctype.name+">\n"+g),je&&(g=T(g,_e," "),g=T(g,we," "),g=T(g,Ee," ")),P&&Xe?P.createHTML(g):g},n.setConfig=function(e){bt(e),Ke=!0},n.clearConfig=function(){mt=null,Ke=!1},n.isValidAttribute=function(e,t,n){mt||bt({});var r=be(e),i=be(t);return Lt(r,i,n)},n.addHook=function(e,t){"function"===typeof t&&(ve[e]=ve[e]||[],x(ve[e],t))},n.removeHook=function(e){if(ve[e])return S(ve[e])},n.removeHooks=function(e){ve[e]&&(ve[e]=[])},n.removeAllHooks=function(){ve={}},n}var ce=le();return ce}))},91960:function(e,t,n){"use strict";var r=n(54004),i=r("%Object.defineProperty%",!0)||!1;if(i)try{i({},"a",{value:1})}catch(o){i=!1}e.exports=i},19018:function(e){"use strict";e.exports=EvalError},50842:function(e){"use strict";e.exports=Error},2767:function(e){"use strict";e.exports=RangeError},78339:function(e){"use strict";e.exports=ReferenceError},60735:function(e){"use strict";e.exports=SyntaxError},60264:function(e){"use strict";e.exports=TypeError},39112:function(e){"use strict";e.exports=URIError},82562:function(e,t,n){"use strict";var r,i=n(9776),o="object"===typeof Reflect?Reflect:null,a=o&&"function"===typeof o.apply?o.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};function s(e){i&&i.warn&&i.warn(e)}r=o&&"function"===typeof o.ownKeys?o.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var l=Number.isNaN||function(e){return e!==e};function c(){c.init.call(this)}e.exports=c,e.exports.once=w,c.EventEmitter=c,c.prototype._events=void 0,c.prototype._eventsCount=0,c.prototype._maxListeners=void 0;var u=10;function d(e){if("function"!==typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function h(e){return void 0===e._maxListeners?c.defaultMaxListeners:e._maxListeners}function p(e,t,n,r){var i,o,a;if(d(n),o=e._events,void 0===o?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),a=o[t]),void 0===a)a=o[t]=n,++e._eventsCount;else if("function"===typeof a?a=o[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),i=h(e),i>0&&a.length>i&&!a.warned){a.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=a.length,s(l)}return e}function f(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function m(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=f.bind(r);return i.listener=n,r.wrapFn=i,i}function g(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"===typeof i?n?[i.listener||i]:[i]:n?_(i):y(i,i.length)}function v(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"===typeof n)return 1;if(void 0!==n)return n.length}return 0}function y(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function b(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function _(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}function w(e,t){return new Promise((function(n,r){function i(n){e.removeListener(t,o),r(n)}function o(){"function"===typeof e.removeListener&&e.removeListener("error",i),n([].slice.call(arguments))}S(e,t,o,{once:!0}),"error"!==t&&E(e,i,{once:!0})}))}function E(e,t,n){"function"===typeof e.on&&S(e,"error",t,n)}function S(e,t,n,r){if("function"===typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!==typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function i(o){r.once&&e.removeEventListener(t,i),n(o)}))}}Object.defineProperty(c,"defaultMaxListeners",{enumerable:!0,get:function(){return u},set:function(e){if("number"!==typeof e||e<0||l(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");u=e}}),c.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},c.prototype.setMaxListeners=function(e){if("number"!==typeof e||e<0||l(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},c.prototype.getMaxListeners=function(){return h(this)},c.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,i=this._events;if(void 0!==i)r=r&&void 0===i.error;else if(!r)return!1;if(r){var o;if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var s=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var l=i[e];if(void 0===l)return!1;if("function"===typeof l)a(l,this,t);else{var c=l.length,u=y(l,c);for(n=0;n<c;++n)a(u[n],this,t)}return!0},c.prototype.addListener=function(e,t){return p(this,e,t,!1)},c.prototype.on=c.prototype.addListener,c.prototype.prependListener=function(e,t){return p(this,e,t,!0)},c.prototype.once=function(e,t){return d(t),this.on(e,m(this,e,t)),this},c.prototype.prependOnceListener=function(e,t){return d(t),this.prependListener(e,m(this,e,t)),this},c.prototype.removeListener=function(e,t){var n,r,i,o,a;if(d(t),r=this._events,void 0===r)return this;if(n=r[e],void 0===n)return this;if(n===t||n.listener===t)0===--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!==typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():b(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},c.prototype.off=c.prototype.removeListener,c.prototype.removeAllListeners=function(e){var t,n,r;if(n=this._events,void 0===n)return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0===--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)i=o[r],"removeListener"!==i&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(t=n[e],"function"===typeof t)this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},c.prototype.listeners=function(e){return g(this,e,!0)},c.prototype.rawListeners=function(e){return g(this,e,!1)},c.listenerCount=function(e,t){return"function"===typeof e.listenerCount?e.listenerCount(t):v.call(e,t)},c.prototype.listenerCount=v,c.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},6853:function(e,t,n){"use strict";var r=n(2133),i=Object.prototype.toString,o=Object.prototype.hasOwnProperty,a=function(e,t,n){for(var r=0,i=e.length;r<i;r++)o.call(e,r)&&(null==n?t(e[r],r,e):t.call(n,e[r],r,e))},s=function(e,t,n){for(var r=0,i=e.length;r<i;r++)null==n?t(e.charAt(r),r,e):t.call(n,e.charAt(r),r,e)},l=function(e,t,n){for(var r in e)o.call(e,r)&&(null==n?t(e[r],r,e):t.call(n,e[r],r,e))},c=function(e,t,n){if(!r(t))throw new TypeError("iterator must be a function");var o;arguments.length>=3&&(o=n),"[object Array]"===i.call(e)?a(e,t,o):"string"===typeof e?s(e,t,o):l(e,t,o)};e.exports=c},78398:function(e){"use strict";var t="Function.prototype.bind called on incompatible ",n=Object.prototype.toString,r=Math.max,i="[object Function]",o=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n},a=function(e,t){for(var n=[],r=t||0,i=0;r<e.length;r+=1,i+=1)n[i]=e[r];return n},s=function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n};e.exports=function(e){var l=this;if("function"!==typeof l||n.apply(l)!==i)throw new TypeError(t+l);for(var c,u=a(arguments,1),d=function(){if(this instanceof c){var t=l.apply(this,o(u,arguments));return Object(t)===t?t:this}return l.apply(e,o(u,arguments))},h=r(0,l.length-u.length),p=[],f=0;f<h;f++)p[f]="$"+f;if(c=Function("binder","return function ("+s(p,",")+"){ return binder.apply(this,arguments); }")(d),l.prototype){var m=function(){};m.prototype=l.prototype,c.prototype=new m,m.prototype=null}return c}},27590:function(e,t,n){"use strict";var r=n(78398);e.exports=Function.prototype.bind||r},54004:function(e,t,n){"use strict";var r,i=n(50842),o=n(19018),a=n(2767),s=n(78339),l=n(60735),c=n(60264),u=n(39112),d=Function,h=function(e){try{return d('"use strict"; return ('+e+").constructor;")()}catch(t){}},p=Object.getOwnPropertyDescriptor;if(p)try{p({},"")}catch(M){p=null}var f=function(){throw new c},m=p?function(){try{return f}catch(e){try{return p(arguments,"callee").get}catch(t){return f}}}():f,g=n(25346)(),v=n(10529)(),y=Object.getPrototypeOf||(v?function(e){return e.__proto__}:null),b={},_="undefined"!==typeof Uint8Array&&y?y(Uint8Array):r,w={__proto__:null,"%AggregateError%":"undefined"===typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"===typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":g&&y?y([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":b,"%AsyncGenerator%":b,"%AsyncGeneratorFunction%":b,"%AsyncIteratorPrototype%":b,"%Atomics%":"undefined"===typeof Atomics?r:Atomics,"%BigInt%":"undefined"===typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"===typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"===typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"===typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":o,"%Float32Array%":"undefined"===typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"===typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"===typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":d,"%GeneratorFunction%":b,"%Int8Array%":"undefined"===typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"===typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"===typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":g&&y?y(y([][Symbol.iterator]())):r,"%JSON%":"object"===typeof JSON?JSON:r,"%Map%":"undefined"===typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!==typeof Map&&g&&y?y((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"===typeof Promise?r:Promise,"%Proxy%":"undefined"===typeof Proxy?r:Proxy,"%RangeError%":a,"%ReferenceError%":s,"%Reflect%":"undefined"===typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"===typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!==typeof Set&&g&&y?y((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"===typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":g&&y?y(""[Symbol.iterator]()):r,"%Symbol%":g?Symbol:r,"%SyntaxError%":l,"%ThrowTypeError%":m,"%TypedArray%":_,"%TypeError%":c,"%Uint8Array%":"undefined"===typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"===typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"===typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"===typeof Uint32Array?r:Uint32Array,"%URIError%":u,"%WeakMap%":"undefined"===typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"===typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"===typeof WeakSet?r:WeakSet};if(y)try{null.error}catch(M){var E=y(y(M));w["%Error.prototype%"]=E}var S=function e(t){var n;if("%AsyncFunction%"===t)n=h("async function () {}");else if("%GeneratorFunction%"===t)n=h("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=h("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&y&&(n=y(i.prototype))}return w[t]=n,n},x={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},k=n(27590),A=n(78598),N=k.call(Function.call,Array.prototype.concat),T=k.call(Function.apply,Array.prototype.splice),C=k.call(Function.call,String.prototype.replace),R=k.call(Function.call,String.prototype.slice),O=k.call(Function.call,RegExp.prototype.exec),I=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,D=/\\(\\)?/g,L=function(e){var t=R(e,0,1),n=R(e,-1);if("%"===t&&"%"!==n)throw new l("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new l("invalid intrinsic syntax, expected opening `%`");var r=[];return C(e,I,(function(e,t,n,i){r[r.length]=n?C(i,D,"$1"):t||e})),r},P=function(e,t){var n,r=e;if(A(x,r)&&(n=x[r],r="%"+n[0]+"%"),A(w,r)){var i=w[r];if(i===b&&(i=S(r)),"undefined"===typeof i&&!t)throw new c("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:i}}throw new l("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!==typeof e||0===e.length)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!==typeof t)throw new c('"allowMissing" argument must be a boolean');if(null===O(/^%?[^%]*%?$/,e))throw new l("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=L(e),r=n.length>0?n[0]:"",i=P("%"+r+"%",t),o=i.name,a=i.value,s=!1,u=i.alias;u&&(r=u[0],T(n,N([0,1],u)));for(var d=1,h=!0;d<n.length;d+=1){var f=n[d],m=R(f,0,1),g=R(f,-1);if(('"'===m||"'"===m||"`"===m||'"'===g||"'"===g||"`"===g)&&m!==g)throw new l("property names with quotes must have matching quotes");if("constructor"!==f&&h||(s=!0),r+="."+f,o="%"+r+"%",A(w,o))a=w[o];else if(null!=a){if(!(f in a)){if(!t)throw new c("base intrinsic for "+e+" exists, but the property is not available.");return}if(p&&d+1>=n.length){var v=p(a,f);h=!!v,a=h&&"get"in v&&!("originalValue"in v.get)?v.get:a[f]}else h=A(a,f),a=a[f];h&&!s&&(w[o]=a)}}return a}},22356:function(e,t,n){"use strict";var r=n(54004),i=r("%Object.getOwnPropertyDescriptor%",!0);if(i)try{i([],"length")}catch(o){i=null}e.exports=i},8451:function(e,t,n){"use strict";var r=n(91960),i=function(){return!!r};i.hasArrayLengthDefineBug=function(){if(!r)return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},e.exports=i},10529:function(e){"use strict";var t={__proto__:null,foo:{}},n=Object;e.exports=function(){return{__proto__:t}.foo===t.foo&&!(t instanceof n)}},25346:function(e,t,n){"use strict";var r="undefined"!==typeof Symbol&&Symbol,i=n(46936);e.exports=function(){return"function"===typeof r&&("function"===typeof Symbol&&("symbol"===typeof r("foo")&&("symbol"===typeof Symbol("bar")&&i())))}},46936:function(e){"use strict";e.exports=function(){if("function"!==typeof Symbol||"function"!==typeof Object.getOwnPropertySymbols)return!1;if("symbol"===typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"===typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;var r=42;for(t in e[t]=r,e)return!1;if("function"===typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"===typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"===typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==r||!0!==o.enumerable)return!1}return!0}},67349:function(e,t,n){"use strict";var r=n(46936);e.exports=function(){return r()&&!!Symbol.toStringTag}},78598:function(e,t,n){"use strict";var r=Function.prototype.call,i=Object.prototype.hasOwnProperty,o=n(27590);e.exports=o.call(r,i)},16699:function(e,t){(function(e){var t=/\S/,n=/\"/g,r=/\n/g,i=/\r/g,o=/\\/g,a=/\u2028/,s=/\u2029/;function l(e){"}"===e.n.substr(e.n.length-1)&&(e.n=e.n.substring(0,e.n.length-1))}function c(e){return e.trim?e.trim():e.replace(/^\s*|\s*$/g,"")}function u(e,t,n){if(t.charAt(n)!=e.charAt(0))return!1;for(var r=1,i=e.length;r<i;r++)if(t.charAt(n+r)!=e.charAt(r))return!1;return!0}e.tags={"#":1,"^":2,"<":3,$:4,"/":5,"!":6,">":7,"=":8,_v:9,"{":10,"&":11,_t:12},e.scan=function(n,r){var i=n.length,o=0,a=1,s=2,d=o,h=null,p=null,f="",m=[],g=!1,v=0,y=0,b="{{",_="}}";function w(){f.length>0&&(m.push({tag:"_t",text:new String(f)}),f="")}function E(){for(var n=!0,r=y;r<m.length;r++)if(n=e.tags[m[r].tag]<e.tags["_v"]||"_t"==m[r].tag&&null===m[r].text.match(t),!n)return!1;return n}function S(e,t){if(w(),e&&E())for(var n,r=y;r<m.length;r++)m[r].text&&((n=m[r+1])&&">"==n.tag&&(n.indent=m[r].text.toString()),m.splice(r,1));else t||m.push({tag:"\n"});g=!1,y=m.length}function x(e,t){var n="="+_,r=e.indexOf(n,t),i=c(e.substring(e.indexOf("=",t)+1,r)).split(" ");return b=i[0],_=i[i.length-1],r+n.length-1}for(r&&(r=r.split(" "),b=r[0],_=r[1]),v=0;v<i;v++)d==o?u(b,n,v)?(--v,w(),d=a):"\n"==n.charAt(v)?S(g):f+=n.charAt(v):d==a?(v+=b.length-1,p=e.tags[n.charAt(v+1)],h=p?n.charAt(v+1):"_v","="==h?(v=x(n,v),d=o):(p&&v++,d=s),g=v):u(_,n,v)?(m.push({tag:h,n:c(f),otag:b,ctag:_,i:"/"==h?g-b.length:v+_.length}),f="",v+=_.length-1,d=o,"{"==h&&("}}"==_?v++:l(m[m.length-1]))):f+=n.charAt(v);return S(g,!0),m};var d={_t:!0,"\n":!0,$:!0,"/":!0};function h(t,n,r,i){var o=[],a=null,s=null,l=null;s=r[r.length-1];while(t.length>0){if(l=t.shift(),s&&"<"==s.tag&&!(l.tag in d))throw new Error("Illegal content in < super tag.");if(e.tags[l.tag]<=e.tags["$"]||p(l,i))r.push(l),l.nodes=h(t,l.tag,r,i);else{if("/"==l.tag){if(0===r.length)throw new Error("Closing tag without opener: /"+l.n);if(a=r.pop(),l.n!=a.n&&!f(l.n,a.n,i))throw new Error("Nesting error: "+a.n+" vs. "+l.n);return a.end=l.i,o}"\n"==l.tag&&(l.last=0==t.length||"\n"==t[0].tag)}o.push(l)}if(r.length>0)throw new Error("missing closing tag: "+r.pop().n);return o}function p(e,t){for(var n=0,r=t.length;n<r;n++)if(t[n].o==e.n)return e.tag="#",!0}function f(e,t,n){for(var r=0,i=n.length;r<i;r++)if(n[r].c==e&&n[r].o==t)return!0}function m(e){var t=[];for(var n in e)t.push('"'+y(n)+'": function(c,p,t,i) {'+e[n]+"}");return"{ "+t.join(",")+" }"}function g(e){var t=[];for(var n in e.partials)t.push('"'+y(n)+'":{name:"'+y(e.partials[n].name)+'", '+g(e.partials[n])+"}");return"partials: {"+t.join(",")+"}, subs: "+m(e.subs)}e.stringify=function(t,n,r){return"{code: function (c,p,i) { "+e.wrapMain(t.code)+" },"+g(t)+"}"};var v=0;function y(e){return e.replace(o,"\\\\").replace(n,'\\"').replace(r,"\\n").replace(i,"\\r").replace(a,"\\u2028").replace(s,"\\u2029")}function b(e){return~e.indexOf(".")?"d":"f"}function _(e,t){var n="<"+(t.prefix||""),r=n+e.n+v++;return t.partials[r]={name:e.n,partials:{}},t.code+='t.b(t.rp("'+y(r)+'",c,p,"'+(e.indent||"")+'"));',r}function w(e,t){t.code+="t.b(t.t(t."+b(e.n)+'("'+y(e.n)+'",c,p,0)));'}function E(e){return"t.b("+e+");"}e.generate=function(t,n,r){v=0;var i={code:"",subs:{},partials:{}};return e.walk(t,i),r.asString?this.stringify(i,n,r):this.makeTemplate(i,n,r)},e.wrapMain=function(e){return'var t=this;t.b(i=i||"");'+e+"return t.fl();"},e.template=e.Template,e.makeTemplate=function(e,t,n){var r=this.makePartials(e);return r.code=new Function("c","p","i",this.wrapMain(e.code)),new this.template(r,t,this,n)},e.makePartials=function(e){var t,n={subs:{},partials:e.partials,name:e.name};for(t in n.partials)n.partials[t]=this.makePartials(n.partials[t]);for(t in e.subs)n.subs[t]=new Function("c","p","t","i",e.subs[t]);return n},e.codegen={"#":function(t,n){n.code+="if(t.s(t."+b(t.n)+'("'+y(t.n)+'",c,p,1),c,p,0,'+t.i+","+t.end+',"'+t.otag+" "+t.ctag+'")){t.rs(c,p,function(c,p,t){',e.walk(t.nodes,n),n.code+="});c.pop();}"},"^":function(t,n){n.code+="if(!t.s(t."+b(t.n)+'("'+y(t.n)+'",c,p,1),c,p,1,0,0,"")){',e.walk(t.nodes,n),n.code+="};"},">":_,"<":function(t,n){var r={partials:{},code:"",subs:{},inPartial:!0};e.walk(t.nodes,r);var i=n.partials[_(t,n)];i.subs=r.subs,i.partials=r.partials},$:function(t,n){var r={subs:{},code:"",partials:n.partials,prefix:t.n};e.walk(t.nodes,r),n.subs[t.n]=r.code,n.inPartial||(n.code+='t.sub("'+y(t.n)+'",c,p,i);')},"\n":function(e,t){t.code+=E('"\\n"'+(e.last?"":" + i"))},_v:function(e,t){t.code+="t.b(t.v(t."+b(e.n)+'("'+y(e.n)+'",c,p,0)));'},_t:function(e,t){t.code+=E('"'+y(e.text)+'"')},"{":w,"&":w},e.walk=function(t,n){for(var r,i=0,o=t.length;i<o;i++)r=e.codegen[t[i].tag],r&&r(t[i],n);return n},e.parse=function(e,t,n){return n=n||{},h(e,"",[],n.sectionTags||[])},e.cache={},e.cacheKey=function(e,t){return[e,!!t.asString,!!t.disableLambda,t.delimiters,!!t.modelGet].join("||")},e.compile=function(t,n){n=n||{};var r=e.cacheKey(t,n),i=this.cache[r];if(i){var o=i.partials;for(var a in o)delete o[a].instance;return i}return i=this.generate(this.parse(this.scan(t,n.delimiters),t,n),t,n),this.cache[r]=i}})(t)},76297:function(e,t,n){var r=n(16699);r.Template=n(73616).Template,r.template=r.Template,e.exports=r},73616:function(e,t){(function(e){function t(e,t,n){var r;return t&&"object"==typeof t&&(void 0!==t[e]?r=t[e]:n&&t.get&&"function"==typeof t.get&&(r=t.get(e))),r}function n(e,t,n,r,i,o){function a(){}function s(){}var l;a.prototype=e,s.prototype=e.subs;var c=new a;for(l in c.subs=new s,c.subsText={},c.buf="",r=r||{},c.stackSubs=r,c.subsText=o,t)r[l]||(r[l]=t[l]);for(l in r)c.subs[l]=r[l];for(l in i=i||{},c.stackPartials=i,n)i[l]||(i[l]=n[l]);for(l in i)c.partials[l]=i[l];return c}e.Template=function(e,t,n,r){e=e||{},this.r=e.code||this.r,this.c=n,this.options=r||{},this.text=t||"",this.partials=e.partials||{},this.subs=e.subs||{},this.buf=""},e.Template.prototype={r:function(e,t,n){return""},v:u,t:c,render:function(e,t,n){return this.ri([e],t||{},n)},ri:function(e,t,n){return this.r(e,t,n)},ep:function(e,t){var r=this.partials[e],i=t[r.name];if(r.instance&&r.base==i)return r.instance;if("string"==typeof i){if(!this.c)throw new Error("No compiler available.");i=this.c.compile(i,this.options)}if(!i)return null;if(this.partials[e].base=i,r.subs){for(key in t.stackText||(t.stackText={}),r.subs)t.stackText[key]||(t.stackText[key]=void 0!==this.activeSub&&t.stackText[this.activeSub]?t.stackText[this.activeSub]:this.text);i=n(i,r.subs,r.partials,this.stackSubs,this.stackPartials,t.stackText)}return this.partials[e].instance=i,i},rp:function(e,t,n,r){var i=this.ep(e,n);return i?i.ri(t,n,r):""},rs:function(e,t,n){var r=e[e.length-1];if(d(r))for(var i=0;i<r.length;i++)e.push(r[i]),n(e,t,this),e.pop();else n(e,t,this)},s:function(e,t,n,r,i,o,a){var s;return(!d(e)||0!==e.length)&&("function"==typeof e&&(e=this.ms(e,t,n,r,i,o,a)),s=!!e,!r&&s&&t&&t.push("object"==typeof e?e:t[t.length-1]),s)},d:function(e,n,r,i){var o,a=e.split("."),s=this.f(a[0],n,r,i),l=this.options.modelGet,c=null;if("."===e&&d(n[n.length-2]))s=n[n.length-1];else for(var u=1;u<a.length;u++)o=t(a[u],s,l),void 0!==o?(c=s,s=o):s="";return!(i&&!s)&&(i||"function"!=typeof s||(n.push(c),s=this.mv(s,n,r),n.pop()),s)},f:function(e,n,r,i){for(var o=!1,a=null,s=!1,l=this.options.modelGet,c=n.length-1;c>=0;c--)if(a=n[c],o=t(e,a,l),void 0!==o){s=!0;break}return s?(i||"function"!=typeof o||(o=this.mv(o,n,r)),o):!i&&""},ls:function(e,t,n,r,i){var o=this.options.delimiters;return this.options.delimiters=i,this.b(this.ct(c(e.call(t,r)),t,n)),this.options.delimiters=o,!1},ct:function(e,t,n){if(this.options.disableLambda)throw new Error("Lambda features disabled.");return this.c.compile(e,this.options).render(t,n)},b:function(e){this.buf+=e},fl:function(){var e=this.buf;return this.buf="",e},ms:function(e,t,n,r,i,o,a){var s,l=t[t.length-1],c=e.call(l);return"function"==typeof c?!!r||(s=this.activeSub&&this.subsText&&this.subsText[this.activeSub]?this.subsText[this.activeSub]:this.text,this.ls(c,l,n,s.substring(i,o),a)):c},mv:function(e,t,n){var r=t[t.length-1],i=e.call(r);return"function"==typeof i?this.ct(c(i.call(r)),r,n):i},sub:function(e,t,n,r){var i=this.subs[e];i&&(this.activeSub=e,i(t,n,this,r),this.activeSub=!1)}};var r=/&/g,i=/</g,o=/>/g,a=/\'/g,s=/\"/g,l=/[&<>\"\']/;function c(e){return String(null===e||void 0===e?"":e)}function u(e){return e=c(e),l.test(e)?e.replace(r,"&").replace(i,"<").replace(o,">").replace(a,"'").replace(s,"""):e}var d=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}})(t)},6808:function(e,t,n){var r=n(50829),i=n(63974),o=e.exports;for(var a in r)r.hasOwnProperty(a)&&(o[a]=r[a]);function s(e){if("string"===typeof e&&(e=i.parse(e)),e.protocol||(e.protocol="https:"),"https:"!==e.protocol)throw new Error('Protocol "'+e.protocol+'" not supported. Expected "https:"');return e}o.request=function(e,t){return e=s(e),r.request.call(this,e,t)},o.get=function(e,t){return e=s(e),r.get.call(this,e,t)}},67181:function(e,t,n){var r=n(93322)["hp"];(function(){var t;t="undefined"!==typeof e.exports?n(89894):window.PNGlib;var i=function(e,t){if("string"!==typeof e||e.length<15)throw"A hash of at least 15 characters is required.";this.defaults={background:[240,240,240,255],margin:.08,size:64,saturation:.7,brightness:.5,format:"png"},this.options="object"===typeof t?t:this.defaults,"number"===typeof arguments[1]&&(this.options.size=arguments[1]),arguments[2]&&(this.options.margin=arguments[2]),this.hash=e,this.background=this.options.background||this.defaults.background,this.size=this.options.size||this.defaults.size,this.format=this.options.format||this.defaults.format,this.margin=void 0!==this.options.margin?this.options.margin:this.defaults.margin;var n=parseInt(this.hash.substr(-7),16)/268435455,r=this.options.saturation||this.defaults.saturation,i=this.options.brightness||this.defaults.brightness;this.foreground=this.options.foreground||this.hsl2rgb(n,r,i)};i.prototype={background:null,foreground:null,hash:null,margin:null,size:null,format:null,image:function(){return this.isSvg()?new o(this.size,this.foreground,this.background):new t(this.size,this.size,256)},render:function(){var e,t,n=this.image(),r=this.size,i=Math.floor(r*this.margin),o=Math.floor((r-2*i)/5),a=Math.floor((r-5*o)/2),s=n.color.apply(n,this.background),l=n.color.apply(n,this.foreground);for(e=0;e<15;e++)t=parseInt(this.hash.charAt(e),16)%2?s:l,e<5?this.rectangle(2*o+a,e*o+a,o,o,t,n):e<10?(this.rectangle(1*o+a,(e-5)*o+a,o,o,t,n),this.rectangle(3*o+a,(e-5)*o+a,o,o,t,n)):e<15&&(this.rectangle(0*o+a,(e-10)*o+a,o,o,t,n),this.rectangle(4*o+a,(e-10)*o+a,o,o,t,n));return n},rectangle:function(e,t,n,r,i,o){var a,s;if(this.isSvg())o.rectangles.push({x:e,y:t,w:n,h:r,color:i});else for(a=e;a<e+n;a++)for(s=t;s<t+r;s++)o.buffer[o.index(a,s)]=i},hsl2rgb:function(e,t,n){return e*=6,t=[n+=t*=n<.5?n:1-n,n-e%1*t*2,n-=t*=2,n,n+e%1*t,n+t],[255*t[~~e%6],255*t[(16|e)%6],255*t[(8|e)%6]]},toString:function(e){return e?this.render().getDump():this.render().getBase64()},isSvg:function(){return this.format.match(/svg/i)}};var o=function(e,t,n){this.size=e,this.foreground=this.color.apply(this,t),this.background=this.color.apply(this,n),this.rectangles=[]};o.prototype={size:null,foreground:null,background:null,rectangles:null,color:function(e,t,n,r){var i=[e,t,n].map(Math.round);return i.push(r>=0&&r<=255?r/255:1),"rgba("+i.join(",")+")"},getDump:function(){var e,t,n,r=this.foreground,i=this.background,o=.005*this.size;for(t="<svg xmlns='http://www.w3.org/2000/svg' width='"+this.size+"' height='"+this.size+"' style='background-color:"+i+";'><g style='fill:"+r+"; stroke:"+r+"; stroke-width:"+o+";'>",e=0;e<this.rectangles.length;e++)n=this.rectangles[e],n.color!=i&&(t+="<rect x='"+n.x+"' y='"+n.y+"' width='"+n.w+"' height='"+n.h+"'/>");return t+="</g></svg>",t},getBase64:function(){if("function"===typeof btoa)return btoa(this.getDump());if(r)return new r(this.getDump(),"binary").toString("base64");throw"Cannot generate base64 output"}},"undefined"!==typeof e.exports?e.exports=i:window.Identicon=i})()},89894:function(e){
|
||
/**
|
||
* A handy class to calculate color values.
|
||
*
|
||
* @version 1.0
|
||
* @author Robert Eisele <robert@xarg.org>
|
||
* @copyright Copyright (c) 2010, Robert Eisele
|
||
* @link http://www.xarg.org/2010/03/generate-client-side-png-files-using-javascript/
|
||
* @license http://www.opensource.org/licenses/bsd-license.php BSD License
|
||
*
|
||
*/
|
||
(function(){function t(e,t){for(var n=2;n<arguments.length;n++)for(var r=0;r<arguments[n].length;r++)e[t++]=arguments[n].charAt(r)}function n(e){return String.fromCharCode(e>>8&255,255&e)}function r(e){return String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e)}function i(e){return String.fromCharCode(255&e,e>>8&255)}var o=function(e,o,a){this.width=e,this.height=o,this.depth=a,this.pix_size=o*(e+1),this.data_size=2+this.pix_size+5*Math.floor((65534+this.pix_size)/65535)+4,this.ihdr_offs=0,this.ihdr_size=25,this.plte_offs=this.ihdr_offs+this.ihdr_size,this.plte_size=8+3*a+4,this.trns_offs=this.plte_offs+this.plte_size,this.trns_size=8+a+4,this.idat_offs=this.trns_offs+this.trns_size,this.idat_size=8+this.data_size+4,this.iend_offs=this.idat_offs+this.idat_size,this.iend_size=12,this.buffer_size=this.iend_offs+this.iend_size,this.buffer=new Array,this.palette=new Object,this.pindex=0;for(var s=new Array,l=0;l<this.buffer_size;l++)this.buffer[l]="\0";t(this.buffer,this.ihdr_offs,r(this.ihdr_size-12),"IHDR",r(e),r(o),"\b"),t(this.buffer,this.plte_offs,r(this.plte_size-12),"PLTE"),t(this.buffer,this.trns_offs,r(this.trns_size-12),"tRNS"),t(this.buffer,this.idat_offs,r(this.idat_size-12),"IDAT"),t(this.buffer,this.iend_offs,r(this.iend_size-12),"IEND");var c=30912;c+=31-c%31,t(this.buffer,this.idat_offs+8,n(c));for(l=0;(l<<16)-1<this.pix_size;l++){var u,d;l+65535<this.pix_size?(u=65535,d="\0"):(u=this.pix_size-(l<<16)-l,d=""),t(this.buffer,this.idat_offs+8+2+(l<<16)+(l<<2),d,i(u),i(~u))}for(l=0;l<256;l++){for(var h=l,p=0;p<8;p++)h=1&h?-306674912^h>>1&2147483647:h>>1&2147483647;s[l]=h}this.index=function(e,t){var n=t*(this.width+1)+e+1,r=this.idat_offs+8+2+5*Math.floor(n/65535+1)+n;return r},this.color=function(e,t,n,r){r=r>=0?r:255;var i=((r<<8|e)<<8|t)<<8|n;if("undefined"==typeof this.palette[i]){if(this.pindex==this.depth)return"\0";var o=this.plte_offs+8+3*this.pindex;this.buffer[o+0]=String.fromCharCode(e),this.buffer[o+1]=String.fromCharCode(t),this.buffer[o+2]=String.fromCharCode(n),this.buffer[this.trns_offs+8+this.pindex]=String.fromCharCode(r),this.palette[i]=String.fromCharCode(this.pindex++)}return this.palette[i]},this.getBase64=function(){var e,t,n,r,i,o,a,s=this.getDump(),l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c=s.length,u=0,d="";do{e=s.charCodeAt(u),r=e>>2,t=s.charCodeAt(u+1),i=(3&e)<<4|t>>4,n=s.charCodeAt(u+2),o=c<u+2?64:(15&t)<<2|n>>6,a=c<u+3?64:63&n,d+=l.charAt(r)+l.charAt(i)+l.charAt(o)+l.charAt(a)}while((u+=3)<c);return d},this.getDump=function(){for(var e=65521,n=5552,i=1,o=0,a=n,l=0;l<this.height;l++)for(var c=-1;c<this.width;c++)i+=this.buffer[this.index(c,l)].charCodeAt(0),o+=i,0==(a-=1)&&(i%=e,o%=e,a=n);function u(e,n,i){for(var o=-1,a=4;a<i-4;a+=1)o=s[255&(o^e[n+a].charCodeAt(0))]^o>>8&16777215;t(e,n+i-4,r(~o))}return i%=e,o%=e,t(this.buffer,this.idat_offs+this.idat_size-8,r(o<<16|i)),u(this.buffer,this.ihdr_offs,this.ihdr_size),u(this.buffer,this.plte_offs,this.plte_size),u(this.buffer,this.trns_offs,this.trns_size),u(this.buffer,this.idat_offs,this.idat_size),u(this.buffer,this.iend_offs,this.iend_size),"PNG\r\n\n"+this.buffer.join("")}};"undefined"!==typeof e.exports?e.exports=o:window.PNGlib=o})()},19170:function(e,t){
|
||
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
||
t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,l=(1<<s)-1,c=l>>1,u=-7,d=n?i-1:0,h=n?-1:1,p=e[t+d];for(d+=h,o=p&(1<<-u)-1,p>>=-u,u+=s;u>0;o=256*o+e[t+d],d+=h,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=r;u>0;a=256*a+e[t+d],d+=h,u-=8);if(0===o)o=1-c;else{if(o===l)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),o-=c}return(p?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,l,c=8*o-i-1,u=(1<<c)-1,d=u>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,f=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),t+=a+d>=1?h/l:h*Math.pow(2,1-d),t*l>=2&&(a++,l/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*l-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[n+p]=255&s,p+=f,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;e[n+p]=255&a,p+=f,a/=256,c-=8);e[n+p-f]|=128*m}},32403:function(e){"function"===typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},26215:function(e,t,n){"use strict";var r=n(67349)(),i=n(56566),o=i("Object.prototype.toString"),a=function(e){return!(r&&e&&"object"===typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===o(e)},s=function(e){return!!a(e)||null!==e&&"object"===typeof e&&"number"===typeof e.length&&e.length>=0&&"[object Array]"!==o(e)&&"[object Function]"===o(e.callee)},l=function(){return a(arguments)}();a.isLegacyArguments=s,e.exports=l?a:s},2133:function(e){"use strict";var t,n,r=Function.prototype.toString,i="object"===typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"===typeof i&&"function"===typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw n}}),n={},i((function(){throw 42}),null,t)}catch(b){b!==n&&(i=null)}else i=null;var o=/^\s*class\b/,a=function(e){try{var t=r.call(e);return o.test(t)}catch(n){return!1}},s=function(e){try{return!a(e)&&(r.call(e),!0)}catch(t){return!1}},l=Object.prototype.toString,c="[object Object]",u="[object Function]",d="[object GeneratorFunction]",h="[object HTMLAllCollection]",p="[object HTML document.all class]",f="[object HTMLCollection]",m="function"===typeof Symbol&&!!Symbol.toStringTag,g=!(0 in[,]),v=function(){return!1};if("object"===typeof document){var y=document.all;l.call(y)===l.call(document.all)&&(v=function(e){if((g||!e)&&("undefined"===typeof e||"object"===typeof e))try{var t=l.call(e);return(t===h||t===p||t===f||t===c)&&null==e("")}catch(n){}return!1})}e.exports=i?function(e){if(v(e))return!0;if(!e)return!1;if("function"!==typeof e&&"object"!==typeof e)return!1;try{i(e,null,t)}catch(r){if(r!==n)return!1}return!a(e)&&s(e)}:function(e){if(v(e))return!0;if(!e)return!1;if("function"!==typeof e&&"object"!==typeof e)return!1;if(m)return s(e);if(a(e))return!1;var t=l.call(e);return!(t!==u&&t!==d&&!/^\[object HTML/.test(t))&&s(e)}},79613:function(e,t,n){"use strict";var r,i=Object.prototype.toString,o=Function.prototype.toString,a=/^\s*(?:function)?\*/,s=n(67349)(),l=Object.getPrototypeOf,c=function(){if(!s)return!1;try{return Function("return function*() {}")()}catch(e){}};e.exports=function(e){if("function"!==typeof e)return!1;if(a.test(o.call(e)))return!0;if(!s){var t=i.call(e);return"[object GeneratorFunction]"===t}if(!l)return!1;if("undefined"===typeof r){var n=c();r=!!n&&l(n)}return l(e)===r}},48674:function(e){"use strict";e.exports=function(e){return e!==e}},59562:function(e,t,n){"use strict";var r=n(92726),i=n(87997),o=n(48674),a=n(54795),s=n(10829),l=r(a(),Number);i(l,{getPolyfill:a,implementation:o,shim:s}),e.exports=l},54795:function(e,t,n){"use strict";var r=n(48674);e.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:r}},10829:function(e,t,n){"use strict";var r=n(87997),i=n(54795);e.exports=function(){var e=i();return r(Number,{isNaN:e},{isNaN:function(){return Number.isNaN!==e}}),e}},27779:function(e,t,n){"use strict";var r=n(37990);e.exports=function(e){return!!r(e)}},91990:function(e){e.exports=i;var t=/^(?:\w+:)?\/\/(\S+)$/,n=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,r=/^[^\s\.]+\.\S{2,}$/;function i(e){if("string"!==typeof e)return!1;var i=e.match(t);if(!i)return!1;var o=i[1];return!!o&&!(!n.test(o)&&!r.test(o))}},36818:function(e,t,n){var r=n(93322)["hp"],i={userAgent:!1},o={},a=a||function(e,t){var n={},r=n.lib={},i=r.Base=function(){function e(){}return{extend:function(t){e.prototype=this;var n=new e;return t&&n.mixIn(t),n.hasOwnProperty("init")||(n.init=function(){n.$super.init.apply(this,arguments)}),n.init.prototype=n,n.$super=this,n},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),o=r.WordArray=i.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:4*e.length},toString:function(e){return(e||s).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,i=e.sigBytes;if(this.clamp(),r%4)for(var o=0;o<i;o++){var a=n[o>>>2]>>>24-o%4*8&255;t[r+o>>>2]|=a<<24-(r+o)%4*8}else for(o=0;o<i;o+=4)t[r+o>>>2]=n[o>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=i.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n=[],r=0;r<t;r+=4)n.push(4294967296*e.random()|0);return new o.init(n,t)}}),a=n.enc={},s=a.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var o=t[i>>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new o.init(n,t/2)}},l=a.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var o=t[i>>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(o))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new o.init(n,t)}},c=a.Utf8={stringify:function(e){try{return decodeURIComponent(escape(l.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(e){return l.parse(unescape(encodeURIComponent(e)))}},u=r.BufferedBlockAlgorithm=i.extend({reset:function(){this._data=new o.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=c.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,r=n.words,i=n.sigBytes,a=this.blockSize,s=4*a,l=i/s;l=t?e.ceil(l):e.max((0|l)-this._minBufferSize,0);var c=l*a,u=e.min(4*c,i);if(c){for(var d=0;d<c;d+=a)this._doProcessBlock(r,d);var h=r.splice(0,c);n.sigBytes-=u}return new o.init(h,u)},clone:function(){var e=i.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),d=(r.Hasher=u.extend({cfg:i.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){u.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){e&&this._append(e);var t=this._doFinalize();return t},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new d.HMAC.init(e,n).finalize(t)}}}),n.algo={});return n}(Math);(function(e){var t=a,n=t.lib,r=n.Base,i=n.WordArray;t=t.x64={};t.Word=r.extend({init:function(e,t){this.high=e,this.low=t}}),t.WordArray=r.extend({init:function(t,n){t=this.words=t||[],this.sigBytes=n!=e?n:8*t.length},toX32:function(){for(var e=this.words,t=e.length,n=[],r=0;r<t;r++){var o=e[r];n.push(o.high),n.push(o.low)}return i.create(n,this.sigBytes)},clone:function(){for(var e=r.clone.call(this),t=e.words=this.words.slice(0),n=t.length,i=0;i<n;i++)t[i]=t[i].clone();return e}})})(),a.lib.Cipher||function(e){var t=a,n=t.lib,r=n.Base,i=n.WordArray,o=n.BufferedBlockAlgorithm,s=t.enc.Base64,l=t.algo.EvpKDF,c=n.Cipher=o.extend({cfg:r.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,n){this.cfg=this.cfg.extend(n),this._xformMode=e,this._key=t,this.reset()},reset:function(){o.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(e){return{encrypt:function(t,n,r){return("string"==typeof n?m:f).encrypt(e,t,n,r)},decrypt:function(t,n,r){return("string"==typeof n?m:f).decrypt(e,t,n,r)}}}});n.StreamCipher=c.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var u=t.mode={},d=function(t,n,r){var i=this._iv;i?this._iv=e:i=this._prevBlock;for(var o=0;o<r;o++)t[n+o]^=i[o]},h=(n.BlockCipherMode=r.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}})).extend();h.Encryptor=h.extend({processBlock:function(e,t){var n=this._cipher,r=n.blockSize;d.call(this,e,t,r),n.encryptBlock(e,t),this._prevBlock=e.slice(t,t+r)}}),h.Decryptor=h.extend({processBlock:function(e,t){var n=this._cipher,r=n.blockSize,i=e.slice(t,t+r);n.decryptBlock(e,t),d.call(this,e,t,r),this._prevBlock=i}}),u=u.CBC=h,h=(t.pad={}).Pkcs7={pad:function(e,t){for(var n=4*t,r=(n=n-e.sigBytes%n,n<<24|n<<16|n<<8|n),o=[],a=0;a<n;a+=4)o.push(r);n=i.create(o,n),e.concat(n)},unpad:function(e){e.sigBytes-=255&e.words[e.sigBytes-1>>>2]}},n.BlockCipher=c.extend({cfg:c.cfg.extend({mode:u,padding:h}),reset:function(){c.reset.call(this);var e=this.cfg,t=e.iv;e=e.mode;if(this._xformMode==this._ENC_XFORM_MODE)var n=e.createEncryptor;else n=e.createDecryptor,this._minBufferSize=1;this._mode=n.call(e,this,t&&t.words)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){e.pad(this._data,this.blockSize);var t=this._process(!0)}else t=this._process(!0),e.unpad(t);return t},blockSize:4});var p=n.CipherParams=r.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),f=(u=(t.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext;return e=e.salt,(e?i.create([1398893684,1701076831]).concat(e).concat(t):t).toString(s)},parse:function(e){e=s.parse(e);var t=e.words;if(1398893684==t[0]&&1701076831==t[1]){var n=i.create(t.slice(2,4));t.splice(0,4),e.sigBytes-=16}return p.create({ciphertext:e,salt:n})}},n.SerializableCipher=r.extend({cfg:r.extend({format:u}),encrypt:function(e,t,n,r){r=this.cfg.extend(r);var i=e.createEncryptor(n,r);return t=i.finalize(t),i=i.cfg,p.create({ciphertext:t,key:n,iv:i.iv,algorithm:e,mode:i.mode,padding:i.padding,blockSize:e.blockSize,formatter:r.format})},decrypt:function(e,t,n,r){return r=this.cfg.extend(r),t=this._parse(t,r.format),e.createDecryptor(n,r).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}})),m=(t=(t.kdf={}).OpenSSL={execute:function(e,t,n,r){return r||(r=i.random(8)),e=l.create({keySize:t+n}).compute(e,r),n=i.create(e.words.slice(t),4*n),e.sigBytes=4*t,p.create({key:e,iv:n,salt:r})}},n.PasswordBasedCipher=f.extend({cfg:f.cfg.extend({kdf:t}),encrypt:function(e,t,n,r){return r=this.cfg.extend(r),n=r.kdf.execute(n,e.keySize,e.ivSize),r.iv=n.iv,e=f.encrypt.call(this,e,t,n.key,r),e.mixIn(n),e},decrypt:function(e,t,n,r){return r=this.cfg.extend(r),t=this._parse(t,r.format),n=r.kdf.execute(n,e.keySize,e.ivSize,t.salt),r.iv=n.iv,f.decrypt.call(this,e,t,n.key,r)}}))}(),function(){for(var e=a,t=e.lib.BlockCipher,n=e.algo,r=[],i=[],o=[],s=[],l=[],c=[],u=[],d=[],h=[],p=[],f=[],m=0;256>m;m++)f[m]=128>m?m<<1:m<<1^283;var g=0,v=0;for(m=0;256>m;m++){var y=v^v<<1^v<<2^v<<3^v<<4;y=y>>>8^255&y^99;r[g]=y,i[y]=g;var b=f[g],_=f[b],w=f[_],E=257*f[y]^16843008*y;o[g]=E<<24|E>>>8,s[g]=E<<16|E>>>16,l[g]=E<<8|E>>>24,c[g]=E,E=16843009*w^65537*_^257*b^16843008*g,u[y]=E<<24|E>>>8,d[y]=E<<16|E>>>16,h[y]=E<<8|E>>>24,p[y]=E,g?(g=b^f[f[f[w^b]]],v^=f[f[v]]):g=v=1}var S=[0,1,2,4,8,16,32,64,128,27,54];n=n.AES=t.extend({_doReset:function(){for(var e=this._key,t=e.words,n=e.sigBytes/4,i=(e=4*((this._nRounds=n+6)+1),this._keySchedule=[]),o=0;o<e;o++)if(o<n)i[o]=t[o];else{var a=i[o-1];o%n?6<n&&4==o%n&&(a=r[a>>>24]<<24|r[a>>>16&255]<<16|r[a>>>8&255]<<8|r[255&a]):(a=a<<8|a>>>24,a=r[a>>>24]<<24|r[a>>>16&255]<<16|r[a>>>8&255]<<8|r[255&a],a^=S[o/n|0]<<24),i[o]=i[o-n]^a}for(t=this._invKeySchedule=[],n=0;n<e;n++)o=e-n,a=n%4?i[o]:i[o-4],t[n]=4>n||4>=o?a:u[r[a>>>24]]^d[r[a>>>16&255]]^h[r[a>>>8&255]]^p[r[255&a]]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,o,s,l,c,r)},decryptBlock:function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,u,d,h,p,i),n=e[t+1],e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,r,i,o,a,s){for(var l=this._nRounds,c=e[t]^n[0],u=e[t+1]^n[1],d=e[t+2]^n[2],h=e[t+3]^n[3],p=4,f=1;f<l;f++){var m=r[c>>>24]^i[u>>>16&255]^o[d>>>8&255]^a[255&h]^n[p++],g=r[u>>>24]^i[d>>>16&255]^o[h>>>8&255]^a[255&c]^n[p++],v=r[d>>>24]^i[h>>>16&255]^o[c>>>8&255]^a[255&u]^n[p++];h=r[h>>>24]^i[c>>>16&255]^o[u>>>8&255]^a[255&d]^n[p++],c=m,u=g,d=v}m=(s[c>>>24]<<24|s[u>>>16&255]<<16|s[d>>>8&255]<<8|s[255&h])^n[p++],g=(s[u>>>24]<<24|s[d>>>16&255]<<16|s[h>>>8&255]<<8|s[255&c])^n[p++],v=(s[d>>>24]<<24|s[h>>>16&255]<<16|s[c>>>8&255]<<8|s[255&u])^n[p++],h=(s[h>>>24]<<24|s[c>>>16&255]<<16|s[u>>>8&255]<<8|s[255&d])^n[p++],e[t]=m,e[t+1]=g,e[t+2]=v,e[t+3]=h},keySize:8});e.AES=t._createHelper(n)}(),function(){function e(e,t){var n=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=n,this._lBlock^=n<<e}function t(e,t){var n=(this._rBlock>>>e^this._lBlock)&t;this._lBlock^=n,this._rBlock^=n<<e}var n=a,r=n.lib,i=r.WordArray,o=(r=r.BlockCipher,n.algo),s=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],l=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],c=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],u=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],d=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],h=o.DES=r.extend({_doReset:function(){for(var e=this._key.words,t=[],n=0;56>n;n++){var r=s[n]-1;t[n]=e[r>>>5]>>>31-r%32&1}for(e=this._subKeys=[],r=0;16>r;r++){var i=e[r]=[],o=c[r];for(n=0;24>n;n++)i[n/6|0]|=t[(l[n]-1+o)%28]<<31-n%6,i[4+(n/6|0)]|=t[28+(l[n+24]-1+o)%28]<<31-n%6;for(i[0]=i[0]<<1|i[0]>>>31,n=1;7>n;n++)i[n]>>>=4*(n-1)+3;i[7]=i[7]<<5|i[7]>>>27}for(t=this._invSubKeys=[],n=0;16>n;n++)t[n]=e[15-n]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(n,r,i){this._lBlock=n[r],this._rBlock=n[r+1],e.call(this,4,252645135),e.call(this,16,65535),t.call(this,2,858993459),t.call(this,8,16711935),e.call(this,1,1431655765);for(var o=0;16>o;o++){for(var a=i[o],s=this._lBlock,l=this._rBlock,c=0,h=0;8>h;h++)c|=u[h][((l^a[h])&d[h])>>>0];this._lBlock=l,this._rBlock=s^c}i=this._lBlock,this._lBlock=this._rBlock,this._rBlock=i,e.call(this,1,1431655765),t.call(this,8,16711935),t.call(this,2,858993459),e.call(this,16,65535),e.call(this,4,252645135),n[r]=this._lBlock,n[r+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});n.DES=r._createHelper(h),o=o.TripleDES=r.extend({_doReset:function(){var e=this._key.words;this._des1=h.createEncryptor(i.create(e.slice(0,2))),this._des2=h.createEncryptor(i.create(e.slice(2,4))),this._des3=h.createEncryptor(i.create(e.slice(4,6)))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2}),n.TripleDES=r._createHelper(o)}(),function(){var e=a,t=e.lib.WordArray;e.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp(),e=[];for(var i=0;i<n;i+=3)for(var o=(t[i>>>2]>>>24-i%4*8&255)<<16|(t[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|t[i+2>>>2]>>>24-(i+2)%4*8&255,a=0;4>a&&i+.75*a<n;a++)e.push(r.charAt(o>>>6*(3-a)&63));if(t=r.charAt(64))for(;e.length%4;)e.push(t);return e.join("")},parse:function(e){var n=e.length,r=this._map,i=r.charAt(64);i&&(i=e.indexOf(i),-1!=i&&(n=i));i=[];for(var o=0,a=0;a<n;a++)if(a%4){var s=r.indexOf(e.charAt(a-1))<<a%4*2,l=r.indexOf(e.charAt(a))>>>6-a%4*2;i[o>>>2]|=(s|l)<<24-o%4*8,o++}return t.create(i,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),function(e){function t(e,t,n,r,i,o,a){return e=e+(t&n|~t&r)+i+a,(e<<o|e>>>32-o)+t}function n(e,t,n,r,i,o,a){return e=e+(t&r|n&~r)+i+a,(e<<o|e>>>32-o)+t}function r(e,t,n,r,i,o,a){return e=e+(t^n^r)+i+a,(e<<o|e>>>32-o)+t}function i(e,t,n,r,i,o,a){return e=e+(n^(t|~r))+i+a,(e<<o|e>>>32-o)+t}for(var o=a,s=o.lib,l=s.WordArray,c=s.Hasher,u=(s=o.algo,[]),d=0;64>d;d++)u[d]=4294967296*e.abs(e.sin(d+1))|0;s=s.MD5=c.extend({_doReset:function(){this._hash=new l.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,o){for(var a=0;16>a;a++){var s=o+a,l=e[s];e[s]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8)}a=this._hash.words,s=e[o+0],l=e[o+1];var c=e[o+2],d=e[o+3],h=e[o+4],p=e[o+5],f=e[o+6],m=e[o+7],g=e[o+8],v=e[o+9],y=e[o+10],b=e[o+11],_=e[o+12],w=e[o+13],E=e[o+14],S=e[o+15],x=a[0],k=a[1],A=a[2],N=a[3];x=t(x,k,A,N,s,7,u[0]),N=t(N,x,k,A,l,12,u[1]),A=t(A,N,x,k,c,17,u[2]),k=t(k,A,N,x,d,22,u[3]),x=t(x,k,A,N,h,7,u[4]),N=t(N,x,k,A,p,12,u[5]),A=t(A,N,x,k,f,17,u[6]),k=t(k,A,N,x,m,22,u[7]),x=t(x,k,A,N,g,7,u[8]),N=t(N,x,k,A,v,12,u[9]),A=t(A,N,x,k,y,17,u[10]),k=t(k,A,N,x,b,22,u[11]),x=t(x,k,A,N,_,7,u[12]),N=t(N,x,k,A,w,12,u[13]),A=t(A,N,x,k,E,17,u[14]),k=t(k,A,N,x,S,22,u[15]),x=n(x,k,A,N,l,5,u[16]),N=n(N,x,k,A,f,9,u[17]),A=n(A,N,x,k,b,14,u[18]),k=n(k,A,N,x,s,20,u[19]),x=n(x,k,A,N,p,5,u[20]),N=n(N,x,k,A,y,9,u[21]),A=n(A,N,x,k,S,14,u[22]),k=n(k,A,N,x,h,20,u[23]),x=n(x,k,A,N,v,5,u[24]),N=n(N,x,k,A,E,9,u[25]),A=n(A,N,x,k,d,14,u[26]),k=n(k,A,N,x,g,20,u[27]),x=n(x,k,A,N,w,5,u[28]),N=n(N,x,k,A,c,9,u[29]),A=n(A,N,x,k,m,14,u[30]),k=n(k,A,N,x,_,20,u[31]),x=r(x,k,A,N,p,4,u[32]),N=r(N,x,k,A,g,11,u[33]),A=r(A,N,x,k,b,16,u[34]),k=r(k,A,N,x,E,23,u[35]),x=r(x,k,A,N,l,4,u[36]),N=r(N,x,k,A,h,11,u[37]),A=r(A,N,x,k,m,16,u[38]),k=r(k,A,N,x,y,23,u[39]),x=r(x,k,A,N,w,4,u[40]),N=r(N,x,k,A,s,11,u[41]),A=r(A,N,x,k,d,16,u[42]),k=r(k,A,N,x,f,23,u[43]),x=r(x,k,A,N,v,4,u[44]),N=r(N,x,k,A,_,11,u[45]),A=r(A,N,x,k,S,16,u[46]),k=r(k,A,N,x,c,23,u[47]),x=i(x,k,A,N,s,6,u[48]),N=i(N,x,k,A,m,10,u[49]),A=i(A,N,x,k,E,15,u[50]),k=i(k,A,N,x,p,21,u[51]),x=i(x,k,A,N,_,6,u[52]),N=i(N,x,k,A,d,10,u[53]),A=i(A,N,x,k,y,15,u[54]),k=i(k,A,N,x,l,21,u[55]),x=i(x,k,A,N,g,6,u[56]),N=i(N,x,k,A,S,10,u[57]),A=i(A,N,x,k,f,15,u[58]),k=i(k,A,N,x,w,21,u[59]),x=i(x,k,A,N,h,6,u[60]),N=i(N,x,k,A,b,10,u[61]),A=i(A,N,x,k,c,15,u[62]),k=i(k,A,N,x,v,21,u[63]);a[0]=a[0]+x|0,a[1]=a[1]+k|0,a[2]=a[2]+A|0,a[3]=a[3]+N|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;n[i>>>5]|=128<<24-i%32;var o=e.floor(r/4294967296);for(n[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),n[14+(i+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),t.sigBytes=4*(n.length+1),this._process(),t=this._hash,n=t.words,r=0;4>r;r++)i=n[r],n[r]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8);return t},clone:function(){var e=c.clone.call(this);return e._hash=this._hash.clone(),e}}),o.MD5=c._createHelper(s),o.HmacMD5=c._createHmacHelper(s)}(Math),function(){var e=a,t=e.lib,n=t.WordArray,r=t.Hasher,i=[];t=e.algo.SHA1=r.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],o=n[1],a=n[2],s=n[3],l=n[4],c=0;80>c;c++){if(16>c)i[c]=0|e[t+c];else{var u=i[c-3]^i[c-8]^i[c-14]^i[c-16];i[c]=u<<1|u>>>31}u=(r<<5|r>>>27)+l+i[c],u=20>c?u+(1518500249+(o&a|~o&s)):40>c?u+(1859775393+(o^a^s)):60>c?u+((o&a|o&s|a&s)-1894007588):u+((o^a^s)-899497514),l=s,s=a,a=o<<30|o>>>2,o=r,r=u}n[0]=n[0]+r|0,n[1]=n[1]+o|0,n[2]=n[2]+a|0,n[3]=n[3]+s|0,n[4]=n[4]+l|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),t[15+(r+64>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e}});e.SHA1=r._createHelper(t),e.HmacSHA1=r._createHmacHelper(t)}(),function(e){for(var t=a,n=t.lib,r=n.WordArray,i=n.Hasher,o=(n=t.algo,[]),s=[],l=function(e){return 4294967296*(e-(0|e))|0},c=2,u=0;64>u;){var d;e:{d=c;for(var h=e.sqrt(d),p=2;p<=h;p++)if(!(d%p)){d=!1;break e}d=!0}d&&(8>u&&(o[u]=l(e.pow(c,.5))),s[u]=l(e.pow(c,1/3)),u++),c++}var f=[];n=n.SHA256=i.extend({_doReset:function(){this._hash=new r.init(o.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],a=n[3],l=n[4],c=n[5],u=n[6],d=n[7],h=0;64>h;h++){if(16>h)f[h]=0|e[t+h];else{var p=f[h-15],m=f[h-2];f[h]=((p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3)+f[h-7]+((m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10)+f[h-16]}p=d+((l<<26|l>>>6)^(l<<21|l>>>11)^(l<<7|l>>>25))+(l&c^~l&u)+s[h]+f[h],m=((r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22))+(r&i^r&o^i&o),d=u,u=c,c=l,l=a+p|0,a=o,o=i,i=r,r=p+m|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+a|0,n[4]=n[4]+l|0,n[5]=n[5]+c|0,n[6]=n[6]+u|0,n[7]=n[7]+d|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;return n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=e.floor(r/4294967296),n[15+(i+64>>>9<<4)]=r,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=i._createHelper(n),t.HmacSHA256=i._createHmacHelper(n)}(Math),function(){var e=a,t=e.lib.WordArray,n=e.algo,r=n.SHA256;n=n.SHA224=r.extend({_doReset:function(){this._hash=new t.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=r._doFinalize.call(this);return e.sigBytes-=4,e}});e.SHA224=r._createHelper(n),e.HmacSHA224=r._createHmacHelper(n)}(),function(){function e(){return i.create.apply(i,arguments)}for(var t=a,n=t.lib.Hasher,r=t.x64,i=r.Word,o=r.WordArray,s=(r=t.algo,[e(1116352408,3609767458),e(1899447441,602891725),e(3049323471,3964484399),e(3921009573,2173295548),e(961987163,4081628472),e(1508970993,3053834265),e(2453635748,2937671579),e(2870763221,3664609560),e(3624381080,2734883394),e(310598401,1164996542),e(607225278,1323610764),e(1426881987,3590304994),e(1925078388,4068182383),e(2162078206,991336113),e(2614888103,633803317),e(3248222580,3479774868),e(3835390401,2666613458),e(4022224774,944711139),e(264347078,2341262773),e(604807628,2007800933),e(770255983,1495990901),e(1249150122,1856431235),e(1555081692,3175218132),e(1996064986,2198950837),e(2554220882,3999719339),e(2821834349,766784016),e(2952996808,2566594879),e(3210313671,3203337956),e(3336571891,1034457026),e(3584528711,2466948901),e(113926993,3758326383),e(338241895,168717936),e(666307205,1188179964),e(773529912,1546045734),e(1294757372,1522805485),e(1396182291,2643833823),e(1695183700,2343527390),e(1986661051,1014477480),e(2177026350,1206759142),e(2456956037,344077627),e(2730485921,1290863460),e(2820302411,3158454273),e(3259730800,3505952657),e(3345764771,106217008),e(3516065817,3606008344),e(3600352804,1432725776),e(4094571909,1467031594),e(275423344,851169720),e(430227734,3100823752),e(506948616,1363258195),e(659060556,3750685593),e(883997877,3785050280),e(958139571,3318307427),e(1322822218,3812723403),e(1537002063,2003034995),e(1747873779,3602036899),e(1955562222,1575990012),e(2024104815,1125592928),e(2227730452,2716904306),e(2361852424,442776044),e(2428436474,593698344),e(2756734187,3733110249),e(3204031479,2999351573),e(3329325298,3815920427),e(3391569614,3928383900),e(3515267271,566280711),e(3940187606,3454069534),e(4118630271,4000239992),e(116418474,1914138554),e(174292421,2731055270),e(289380356,3203993006),e(460393269,320620315),e(685471733,587496836),e(852142971,1086792851),e(1017036298,365543100),e(1126000580,2618297676),e(1288033470,3409855158),e(1501505948,4234509866),e(1607167915,987167468),e(1816402316,1246189591)]),l=[],c=0;80>c;c++)l[c]=e();r=r.SHA512=n.extend({_doReset:function(){this._hash=new o.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],a=n[3],c=n[4],u=n[5],d=n[6],h=(n=n[7],r.high),p=r.low,f=i.high,m=i.low,g=o.high,v=o.low,y=a.high,b=a.low,_=c.high,w=c.low,E=u.high,S=u.low,x=d.high,k=d.low,A=n.high,N=n.low,T=h,C=p,R=f,O=m,I=g,D=v,L=y,P=b,M=_,F=w,B=E,$=S,j=x,U=k,V=A,K=N,H=0;80>H;H++){var G=l[H];if(16>H)var z=G.high=0|e[t+2*H],X=G.low=0|e[t+2*H+1];else{z=l[H-15],X=z.high;var q=z.low,W=(z=(X>>>1|q<<31)^(X>>>8|q<<24)^X>>>7,q=(q>>>1|X<<31)^(q>>>8|X<<24)^(q>>>7|X<<25),l[H-2]),Y=(X=W.high,W.low),Q=(W=(X>>>19|Y<<13)^(X<<3|Y>>>29)^X>>>6,Y=(Y>>>19|X<<13)^(Y<<3|X>>>29)^(Y>>>6|X<<26),X=l[H-7],X.high),J=l[H-16],Z=J.high;J=J.low,X=q+X.low,z=z+Q+(X>>>0<q>>>0?1:0),X=X+Y,z=z+W+(X>>>0<Y>>>0?1:0),X=X+J,z=z+Z+(X>>>0<J>>>0?1:0);G.high=z,G.low=X}Q=M&B^~M&j,J=F&$^~F&U,G=T&R^T&I^R&I;var ee=C&O^C&D^O&D,te=(q=(T>>>28|C<<4)^(T<<30|C>>>2)^(T<<25|C>>>7),W=(C>>>28|T<<4)^(C<<30|T>>>2)^(C<<25|T>>>7),Y=s[H],Y.high),ne=Y.low;Y=K+((F>>>14|M<<18)^(F>>>18|M<<14)^(F<<23|M>>>9)),Z=V+((M>>>14|F<<18)^(M>>>18|F<<14)^(M<<23|F>>>9))+(Y>>>0<K>>>0?1:0),Y=Y+J,Z=Z+Q+(Y>>>0<J>>>0?1:0),Y=Y+ne,Z=Z+te+(Y>>>0<ne>>>0?1:0),Y=Y+X,Z=Z+z+(Y>>>0<X>>>0?1:0),X=W+ee,G=q+G+(X>>>0<W>>>0?1:0),V=j,K=U,j=B,U=$,B=M,$=F,F=P+Y|0,M=L+Z+(F>>>0<P>>>0?1:0)|0,L=I,P=D,I=R,D=O,R=T,O=C,C=Y+X|0,T=Z+G+(C>>>0<Y>>>0?1:0)|0}p=r.low=p+C,r.high=h+T+(p>>>0<C>>>0?1:0),m=i.low=m+O,i.high=f+R+(m>>>0<O>>>0?1:0),v=o.low=v+D,o.high=g+I+(v>>>0<D>>>0?1:0),b=a.low=b+P,a.high=y+L+(b>>>0<P>>>0?1:0),w=c.low=w+F,c.high=_+M+(w>>>0<F>>>0?1:0),S=u.low=S+$,u.high=E+B+(S>>>0<$>>>0?1:0),k=d.low=k+U,d.high=x+j+(k>>>0<U>>>0?1:0),N=n.low=N+K,n.high=A+V+(N>>>0<K>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[30+(r+128>>>10<<5)]=Math.floor(n/4294967296),t[31+(r+128>>>10<<5)]=n,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32}),t.SHA512=n._createHelper(r),t.HmacSHA512=n._createHmacHelper(r)}(),function(){var e=a,t=e.x64,n=t.Word,r=t.WordArray,i=(t=e.algo,t.SHA512);t=t.SHA384=i.extend({_doReset:function(){this._hash=new r.init([new n.init(3418070365,3238371032),new n.init(1654270250,914150663),new n.init(2438529370,812702999),new n.init(355462360,4144912697),new n.init(1731405415,4290775857),new n.init(2394180231,1750603025),new n.init(3675008525,1694076839),new n.init(1203062813,3204075428)])},_doFinalize:function(){var e=i._doFinalize.call(this);return e.sigBytes-=16,e}});e.SHA384=i._createHelper(t),e.HmacSHA384=i._createHmacHelper(t)}(),function(){var e=a,t=e.lib,n=t.WordArray,r=t.Hasher,i=(t=e.algo,n.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13])),o=n.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),s=n.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),l=n.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),c=n.create([0,1518500249,1859775393,2400959708,2840853838]),u=n.create([1352829926,1548603684,1836072691,2053994217,0]);t=t.RIPEMD160=r.extend({_doReset:function(){this._hash=n.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=0;16>n;n++){var r=t+n,a=e[r];e[r]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)}r=this._hash.words,a=c.words;var d,h,p,f,m,g,v,y,b,_,w=u.words,E=i.words,S=o.words,x=s.words,k=l.words;g=d=r[0],v=h=r[1],y=p=r[2],b=f=r[3],_=m=r[4];var A;for(n=0;80>n;n+=1)A=d+e[t+E[n]]|0,A=16>n?A+((h^p^f)+a[0]):32>n?A+((h&p|~h&f)+a[1]):48>n?A+(((h|~p)^f)+a[2]):64>n?A+((h&f|p&~f)+a[3]):A+((h^(p|~f))+a[4]),A|=0,A=A<<x[n]|A>>>32-x[n],A=A+m|0,d=m,m=f,f=p<<10|p>>>22,p=h,h=A,A=g+e[t+S[n]]|0,A=16>n?A+((v^(y|~b))+w[0]):32>n?A+((v&b|y&~b)+w[1]):48>n?A+(((v|~y)^b)+w[2]):64>n?A+((v&y|~v&b)+w[3]):A+((v^y^b)+w[4]),A|=0,A=A<<k[n]|A>>>32-k[n],A=A+_|0,g=_,_=b,b=y<<10|y>>>22,y=v,v=A;A=r[1]+p+b|0,r[1]=r[2]+f+_|0,r[2]=r[3]+m+g|0,r[3]=r[4]+d+v|0,r[4]=r[0]+h+y|0,r[0]=A},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;for(t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),e.sigBytes=4*(t.length+1),this._process(),e=this._hash,t=e.words,n=0;5>n;n++)r=t[n],t[n]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8);return e},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e}});e.RIPEMD160=r._createHelper(t),e.HmacRIPEMD160=r._createHmacHelper(t)}(Math),function(){var e=a,t=e.enc.Utf8;e.algo.HMAC=e.lib.Base.extend({init:function(e,n){e=this._hasher=new e.init,"string"==typeof n&&(n=t.parse(n));var r=e.blockSize,i=4*r;n.sigBytes>i&&(n=e.finalize(n)),n.clamp();for(var o=this._oKey=n.clone(),a=this._iKey=n.clone(),s=o.words,l=a.words,c=0;c<r;c++)s[c]^=1549556828,l[c]^=909522486;o.sigBytes=a.sigBytes=i,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher;return e=t.finalize(e),t.reset(),t.finalize(this._oKey.clone().concat(e))}})}(),function(){var e=a,t=e.lib,n=t.Base,r=t.WordArray,i=(t=e.algo,t.HMAC),o=t.PBKDF2=n.extend({cfg:n.extend({keySize:4,hasher:t.SHA1,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){var n=this.cfg,o=i.create(n.hasher,e),a=r.create(),s=r.create([1]),l=a.words,c=s.words,u=n.keySize;for(n=n.iterations;l.length<u;){var d=o.update(t).finalize(s);o.reset();for(var h=d.words,p=h.length,f=d,m=1;m<n;m++){f=o.finalize(f),o.reset();for(var g=f.words,v=0;v<p;v++)h[v]^=g[v]}a.concat(d),c[0]++}return a.sigBytes=4*u,a}});e.PBKDF2=function(e,t,n){return o.create(n).compute(e,t)}}();
|
||
/*! (c) Tom Wu | http://www-cs-students.stanford.edu/~tjw/jsbn/
|
||
*/
|
||
var s,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c="=";function u(e){var t,n,r="";for(t=0;t+3<=e.length;t+=3)n=parseInt(e.substring(t,t+3),16),r+=l.charAt(n>>6)+l.charAt(63&n);if(t+1==e.length?(n=parseInt(e.substring(t,t+1),16),r+=l.charAt(n<<2)):t+2==e.length&&(n=parseInt(e.substring(t,t+2),16),r+=l.charAt(n>>2)+l.charAt((3&n)<<4)),c)while((3&r.length)>0)r+=c;return r}function d(e){var t,n,r,i="",o=0;for(t=0;t<e.length;++t){if(e.charAt(t)==c)break;r=l.indexOf(e.charAt(t)),r<0||(0==o?(i+=k(r>>2),n=3&r,o=1):1==o?(i+=k(n<<2|r>>4),n=15&r,o=2):2==o?(i+=k(n),i+=k(r>>2),n=3&r,o=3):(i+=k(n<<2|r>>4),i+=k(15&r),o=0))}return 1==o&&(i+=k(n<<2)),i}function h(e){var t,n=d(e),r=new Array;for(t=0;2*t<n.length;++t)r[t]=parseInt(n.substring(2*t,2*t+2),16);return r}var p=0xdeadbeefcafe,f=15715070==(16777215&p);function m(e,t,n){null!=e&&("number"==typeof e?this.fromNumber(e,t,n):null==t&&"string"!=typeof e?this.fromString(e,256):this.fromString(e,t))}function g(){return new m(null)}function v(e,t,n,r,i,o){while(--o>=0){var a=t*this[e++]+n[r]+i;i=Math.floor(a/67108864),n[r++]=67108863&a}return i}function y(e,t,n,r,i,o){var a=32767&t,s=t>>15;while(--o>=0){var l=32767&this[e],c=this[e++]>>15,u=s*l+c*a;l=a*l+((32767&u)<<15)+n[r]+(1073741823&i),i=(l>>>30)+(u>>>15)+s*c+(i>>>30),n[r++]=1073741823&l}return i}function b(e,t,n,r,i,o){var a=16383&t,s=t>>14;while(--o>=0){var l=16383&this[e],c=this[e++]>>14,u=s*l+c*a;l=a*l+((16383&u)<<14)+n[r]+i,i=(l>>28)+(u>>14)+s*c,n[r++]=268435455&l}return i}f&&"Microsoft Internet Explorer"==i.appName?(m.prototype.am=y,s=30):f&&"Netscape"!=i.appName?(m.prototype.am=v,s=26):(m.prototype.am=b,s=28),m.prototype.DB=s,m.prototype.DM=(1<<s)-1,m.prototype.DV=1<<s;var _=52;m.prototype.FV=Math.pow(2,_),m.prototype.F1=_-s,m.prototype.F2=2*s-_;var w,E,S="0123456789abcdefghijklmnopqrstuvwxyz",x=new Array;for(w="0".charCodeAt(0),E=0;E<=9;++E)x[w++]=E;for(w="a".charCodeAt(0),E=10;E<36;++E)x[w++]=E;for(w="A".charCodeAt(0),E=10;E<36;++E)x[w++]=E;function k(e){return S.charAt(e)}function A(e,t){var n=x[e.charCodeAt(t)];return null==n?-1:n}function N(e){for(var t=this.t-1;t>=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s}function T(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0}function C(e){var t=g();return t.fromInt(e),t}function R(e,t){var n;if(16==t)n=4;else if(8==t)n=3;else if(256==t)n=8;else if(2==t)n=1;else if(32==t)n=5;else{if(4!=t)return void this.fromRadix(e,t);n=2}this.t=0,this.s=0;var r=e.length,i=!1,o=0;while(--r>=0){var a=8==n?255&e[r]:A(e,r);a<0?"-"==e.charAt(r)&&(i=!0):(i=!1,0==o?this[this.t++]=a:o+n>this.DB?(this[this.t-1]|=(a&(1<<this.DB-o)-1)<<o,this[this.t++]=a>>this.DB-o):this[this.t-1]|=a<<o,o+=n,o>=this.DB&&(o-=this.DB))}8==n&&0!=(128&e[0])&&(this.s=-1,o>0&&(this[this.t-1]|=(1<<this.DB-o)-1<<o)),this.clamp(),i&&m.ZERO.subTo(this,this)}function O(){var e=this.s&this.DM;while(this.t>0&&this[this.t-1]==e)--this.t}function I(e){if(this.s<0)return"-"+this.negate().toString(e);var t;if(16==e)t=4;else if(8==e)t=3;else if(2==e)t=1;else if(32==e)t=5;else{if(4!=e)return this.toRadix(e);t=2}var n,r=(1<<t)-1,i=!1,o="",a=this.t,s=this.DB-a*this.DB%t;if(a-- >0){s<this.DB&&(n=this[a]>>s)>0&&(i=!0,o=k(n));while(a>=0)s<t?(n=(this[a]&(1<<s)-1)<<t-s,n|=this[--a]>>(s+=this.DB-t)):(n=this[a]>>(s-=t)&r,s<=0&&(s+=this.DB,--a)),n>0&&(i=!0),i&&(o+=k(n))}return i?o:"0"}function D(){var e=g();return m.ZERO.subTo(this,e),e}function L(){return this.s<0?this.negate():this}function P(e){var t=this.s-e.s;if(0!=t)return t;var n=this.t;if(t=n-e.t,0!=t)return this.s<0?-t:t;while(--n>=0)if(0!=(t=this[n]-e[n]))return t;return 0}function M(e){var t,n=1;return 0!=(t=e>>>16)&&(e=t,n+=16),0!=(t=e>>8)&&(e=t,n+=8),0!=(t=e>>4)&&(e=t,n+=4),0!=(t=e>>2)&&(e=t,n+=2),0!=(t=e>>1)&&(e=t,n+=1),n}function F(){return this.t<=0?0:this.DB*(this.t-1)+M(this[this.t-1]^this.s&this.DM)}function B(e,t){var n;for(n=this.t-1;n>=0;--n)t[n+e]=this[n];for(n=e-1;n>=0;--n)t[n]=0;t.t=this.t+e,t.s=this.s}function $(e,t){for(var n=e;n<this.t;++n)t[n-e]=this[n];t.t=Math.max(this.t-e,0),t.s=this.s}function j(e,t){var n,r=e%this.DB,i=this.DB-r,o=(1<<i)-1,a=Math.floor(e/this.DB),s=this.s<<r&this.DM;for(n=this.t-1;n>=0;--n)t[n+a+1]=this[n]>>i|s,s=(this[n]&o)<<r;for(n=a-1;n>=0;--n)t[n]=0;t[a]=s,t.t=this.t+a+1,t.s=this.s,t.clamp()}function U(e,t){t.s=this.s;var n=Math.floor(e/this.DB);if(n>=this.t)t.t=0;else{var r=e%this.DB,i=this.DB-r,o=(1<<r)-1;t[0]=this[n]>>r;for(var a=n+1;a<this.t;++a)t[a-n-1]|=(this[a]&o)<<i,t[a-n]=this[a]>>r;r>0&&(t[this.t-n-1]|=(this.s&o)<<i),t.t=this.t-n,t.clamp()}}function V(e,t){var n=0,r=0,i=Math.min(e.t,this.t);while(n<i)r+=this[n]-e[n],t[n++]=r&this.DM,r>>=this.DB;if(e.t<this.t){r-=e.s;while(n<this.t)r+=this[n],t[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{r+=this.s;while(n<e.t)r-=e[n],t[n++]=r&this.DM,r>>=this.DB;r-=e.s}t.s=r<0?-1:0,r<-1?t[n++]=this.DV+r:r>0&&(t[n++]=r),t.t=n,t.clamp()}function K(e,t){var n=this.abs(),r=e.abs(),i=n.t;t.t=i+r.t;while(--i>=0)t[i]=0;for(i=0;i<r.t;++i)t[i+n.t]=n.am(0,r[i],t,i,0,n.t);t.s=0,t.clamp(),this.s!=e.s&&m.ZERO.subTo(t,t)}function H(e){var t=this.abs(),n=e.t=2*t.t;while(--n>=0)e[n]=0;for(n=0;n<t.t-1;++n){var r=t.am(n,t[n],e,2*n,0,1);(e[n+t.t]+=t.am(n+1,2*t[n],e,2*n+1,r,t.t-n-1))>=t.DV&&(e[n+t.t]-=t.DV,e[n+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(n,t[n],e,2*n,0,1)),e.s=0,e.clamp()}function G(e,t,n){var r=e.abs();if(!(r.t<=0)){var i=this.abs();if(i.t<r.t)return null!=t&&t.fromInt(0),void(null!=n&&this.copyTo(n));null==n&&(n=g());var o=g(),a=this.s,s=e.s,l=this.DB-M(r[r.t-1]);l>0?(r.lShiftTo(l,o),i.lShiftTo(l,n)):(r.copyTo(o),i.copyTo(n));var c=o.t,u=o[c-1];if(0!=u){var d=u*(1<<this.F1)+(c>1?o[c-2]>>this.F2:0),h=this.FV/d,p=(1<<this.F1)/d,f=1<<this.F2,v=n.t,y=v-c,b=null==t?g():t;o.dlShiftTo(y,b),n.compareTo(b)>=0&&(n[n.t++]=1,n.subTo(b,n)),m.ONE.dlShiftTo(c,b),b.subTo(o,o);while(o.t<c)o[o.t++]=0;while(--y>=0){var _=n[--v]==u?this.DM:Math.floor(n[v]*h+(n[v-1]+f)*p);if((n[v]+=o.am(0,_,n,y,0,c))<_){o.dlShiftTo(y,b),n.subTo(b,n);while(n[v]<--_)n.subTo(b,n)}}null!=t&&(n.drShiftTo(c,t),a!=s&&m.ZERO.subTo(t,t)),n.t=c,n.clamp(),l>0&&n.rShiftTo(l,n),a<0&&m.ZERO.subTo(n,n)}}}function z(e){var t=g();return this.abs().divRemTo(e,null,t),this.s<0&&t.compareTo(m.ZERO)>0&&e.subTo(t,t),t}function X(e){this.m=e}function q(e){return e.s<0||e.compareTo(this.m)>=0?e.mod(this.m):e}function W(e){return e}function Y(e){e.divRemTo(this.m,null,e)}function Q(e,t,n){e.multiplyTo(t,n),this.reduce(n)}function J(e,t){e.squareTo(t),this.reduce(t)}function Z(){if(this.t<1)return 0;var e=this[0];if(0==(1&e))return 0;var t=3&e;return t=t*(2-(15&e)*t)&15,t=t*(2-(255&e)*t)&255,t=t*(2-((65535&e)*t&65535))&65535,t=t*(2-e*t%this.DV)%this.DV,t>0?this.DV-t:-t}function ee(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<e.DB-15)-1,this.mt2=2*e.t}function te(e){var t=g();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(m.ZERO)>0&&this.m.subTo(t,t),t}function ne(e){var t=g();return e.copyTo(t),this.reduce(t),t}function re(e){while(e.t<=this.mt2)e[e.t++]=0;for(var t=0;t<this.m.t;++t){var n=32767&e[t],r=n*this.mpl+((n*this.mph+(e[t]>>15)*this.mpl&this.um)<<15)&e.DM;n=t+this.m.t,e[n]+=this.m.am(0,r,e,t,0,this.m.t);while(e[n]>=e.DV)e[n]-=e.DV,e[++n]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)}function ie(e,t){e.squareTo(t),this.reduce(t)}function oe(e,t,n){e.multiplyTo(t,n),this.reduce(n)}function ae(){return 0==(this.t>0?1&this[0]:this.s)}function se(e,t){if(e>4294967295||e<1)return m.ONE;var n=g(),r=g(),i=t.convert(this),o=M(e)-1;i.copyTo(n);while(--o>=0)if(t.sqrTo(n,r),(e&1<<o)>0)t.mulTo(r,i,n);else{var a=n;n=r,r=a}return t.revert(n)}function le(e,t){var n;return n=e<256||t.isEven()?new X(t):new ee(t),this.exp(e,n)}
|
||
/*! (c) Tom Wu | http://www-cs-students.stanford.edu/~tjw/jsbn/
|
||
*/
|
||
function ce(){var e=g();return this.copyTo(e),e}function ue(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]}function de(){return 0==this.t?this.s:this[0]<<24>>24}function he(){return 0==this.t?this.s:this[0]<<16>>16}function pe(e){return Math.floor(Math.LN2*this.DB/Math.log(e))}function fe(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1}function me(e){if(null==e&&(e=10),0==this.signum()||e<2||e>36)return"0";var t=this.chunkSize(e),n=Math.pow(e,t),r=C(n),i=g(),o=g(),a="";this.divRemTo(r,i,o);while(i.signum()>0)a=(n+o.intValue()).toString(e).substr(1)+a,i.divRemTo(r,i,o);return o.intValue().toString(e)+a}function ge(e,t){this.fromInt(0),null==t&&(t=10);for(var n=this.chunkSize(t),r=Math.pow(t,n),i=!1,o=0,a=0,s=0;s<e.length;++s){var l=A(e,s);l<0?"-"==e.charAt(s)&&0==this.signum()&&(i=!0):(a=t*a+l,++o>=n&&(this.dMultiply(r),this.dAddOffset(a,0),o=0,a=0))}o>0&&(this.dMultiply(Math.pow(t,o)),this.dAddOffset(a,0)),i&&m.ZERO.subTo(this,this)}function ve(e,t,n){if("number"==typeof t)if(e<2)this.fromInt(1);else{this.fromNumber(e,n),this.testBit(e-1)||this.bitwiseTo(m.ONE.shiftLeft(e-1),ke,this),this.isEven()&&this.dAddOffset(1,0);while(!this.isProbablePrime(t))this.dAddOffset(2,0),this.bitLength()>e&&this.subTo(m.ONE.shiftLeft(e-1),this)}else{var r=new Array,i=7&e;r.length=1+(e>>3),t.nextBytes(r),i>0?r[0]&=(1<<i)-1:r[0]=0,this.fromString(r,256)}}function ye(){var e=this.t,t=new Array;t[0]=this.s;var n,r=this.DB-e*this.DB%8,i=0;if(e-- >0){r<this.DB&&(n=this[e]>>r)!=(this.s&this.DM)>>r&&(t[i++]=n|this.s<<this.DB-r);while(e>=0)r<8?(n=(this[e]&(1<<r)-1)<<8-r,n|=this[--e]>>(r+=this.DB-8)):(n=this[e]>>(r-=8)&255,r<=0&&(r+=this.DB,--e)),0!=(128&n)&&(n|=-256),0==i&&(128&this.s)!=(128&n)&&++i,(i>0||n!=this.s)&&(t[i++]=n)}return t}function be(e){return 0==this.compareTo(e)}function _e(e){return this.compareTo(e)<0?this:e}function we(e){return this.compareTo(e)>0?this:e}function Ee(e,t,n){var r,i,o=Math.min(e.t,this.t);for(r=0;r<o;++r)n[r]=t(this[r],e[r]);if(e.t<this.t){for(i=e.s&this.DM,r=o;r<this.t;++r)n[r]=t(this[r],i);n.t=this.t}else{for(i=this.s&this.DM,r=o;r<e.t;++r)n[r]=t(i,e[r]);n.t=e.t}n.s=t(this.s,e.s),n.clamp()}function Se(e,t){return e&t}function xe(e){var t=g();return this.bitwiseTo(e,Se,t),t}function ke(e,t){return e|t}function Ae(e){var t=g();return this.bitwiseTo(e,ke,t),t}function Ne(e,t){return e^t}function Te(e){var t=g();return this.bitwiseTo(e,Ne,t),t}function Ce(e,t){return e&~t}function Re(e){var t=g();return this.bitwiseTo(e,Ce,t),t}function Oe(){for(var e=g(),t=0;t<this.t;++t)e[t]=this.DM&~this[t];return e.t=this.t,e.s=~this.s,e}function Ie(e){var t=g();return e<0?this.rShiftTo(-e,t):this.lShiftTo(e,t),t}function De(e){var t=g();return e<0?this.lShiftTo(-e,t):this.rShiftTo(e,t),t}function Le(e){if(0==e)return-1;var t=0;return 0==(65535&e)&&(e>>=16,t+=16),0==(255&e)&&(e>>=8,t+=8),0==(15&e)&&(e>>=4,t+=4),0==(3&e)&&(e>>=2,t+=2),0==(1&e)&&++t,t}function Pe(){for(var e=0;e<this.t;++e)if(0!=this[e])return e*this.DB+Le(this[e]);return this.s<0?this.t*this.DB:-1}function Me(e){var t=0;while(0!=e)e&=e-1,++t;return t}function Fe(){for(var e=0,t=this.s&this.DM,n=0;n<this.t;++n)e+=Me(this[n]^t);return e}function Be(e){var t=Math.floor(e/this.DB);return t>=this.t?0!=this.s:0!=(this[t]&1<<e%this.DB)}function $e(e,t){var n=m.ONE.shiftLeft(e);return this.bitwiseTo(n,t,n),n}function je(e){return this.changeBit(e,ke)}function Ue(e){return this.changeBit(e,Ce)}function Ve(e){return this.changeBit(e,Ne)}function Ke(e,t){var n=0,r=0,i=Math.min(e.t,this.t);while(n<i)r+=this[n]+e[n],t[n++]=r&this.DM,r>>=this.DB;if(e.t<this.t){r+=e.s;while(n<this.t)r+=this[n],t[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{r+=this.s;while(n<e.t)r+=e[n],t[n++]=r&this.DM,r>>=this.DB;r+=e.s}t.s=r<0?-1:0,r>0?t[n++]=r:r<-1&&(t[n++]=this.DV+r),t.t=n,t.clamp()}function He(e){var t=g();return this.addTo(e,t),t}function Ge(e){var t=g();return this.subTo(e,t),t}function ze(e){var t=g();return this.multiplyTo(e,t),t}function Xe(){var e=g();return this.squareTo(e),e}function qe(e){var t=g();return this.divRemTo(e,t,null),t}function We(e){var t=g();return this.divRemTo(e,null,t),t}function Ye(e){var t=g(),n=g();return this.divRemTo(e,t,n),new Array(t,n)}function Qe(e){this[this.t]=this.am(0,e-1,this,0,0,this.t),++this.t,this.clamp()}function Je(e,t){if(0!=e){while(this.t<=t)this[this.t++]=0;this[t]+=e;while(this[t]>=this.DV)this[t]-=this.DV,++t>=this.t&&(this[this.t++]=0),++this[t]}}function Ze(){}function et(e){return e}function tt(e,t,n){e.multiplyTo(t,n)}function nt(e,t){e.squareTo(t)}function rt(e){return this.exp(e,new Ze)}function it(e,t,n){var r,i=Math.min(this.t+e.t,t);n.s=0,n.t=i;while(i>0)n[--i]=0;for(r=n.t-this.t;i<r;++i)n[i+this.t]=this.am(0,e[i],n,i,0,this.t);for(r=Math.min(e.t,t);i<r;++i)this.am(0,e[i],n,i,0,t-i);n.clamp()}function ot(e,t,n){--t;var r=n.t=this.t+e.t-t;n.s=0;while(--r>=0)n[r]=0;for(r=Math.max(t-this.t,0);r<e.t;++r)n[this.t+r-t]=this.am(t-r,e[r],n,0,0,this.t+r-t);n.clamp(),n.drShiftTo(1,n)}function at(e){this.r2=g(),this.q3=g(),m.ONE.dlShiftTo(2*e.t,this.r2),this.mu=this.r2.divide(e),this.m=e}function st(e){if(e.s<0||e.t>2*this.m.t)return e.mod(this.m);if(e.compareTo(this.m)<0)return e;var t=g();return e.copyTo(t),this.reduce(t),t}function lt(e){return e}function ct(e){e.drShiftTo(this.m.t-1,this.r2),e.t>this.m.t+1&&(e.t=this.m.t+1,e.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);while(e.compareTo(this.r2)<0)e.dAddOffset(1,this.m.t+1);e.subTo(this.r2,e);while(e.compareTo(this.m)>=0)e.subTo(this.m,e)}function ut(e,t){e.squareTo(t),this.reduce(t)}function dt(e,t,n){e.multiplyTo(t,n),this.reduce(n)}function ht(e,t){var n,r,i=e.bitLength(),o=C(1);if(i<=0)return o;n=i<18?1:i<48?3:i<144?4:i<768?5:6,r=i<8?new X(t):t.isEven()?new at(t):new ee(t);var a=new Array,s=3,l=n-1,c=(1<<n)-1;if(a[1]=r.convert(this),n>1){var u=g();r.sqrTo(a[1],u);while(s<=c)a[s]=g(),r.mulTo(u,a[s-2],a[s]),s+=2}var d,h,p=e.t-1,f=!0,m=g();i=M(e[p])-1;while(p>=0){i>=l?d=e[p]>>i-l&c:(d=(e[p]&(1<<i+1)-1)<<l-i,p>0&&(d|=e[p-1]>>this.DB+i-l)),s=n;while(0==(1&d))d>>=1,--s;if((i-=s)<0&&(i+=this.DB,--p),f)a[d].copyTo(o),f=!1;else{while(s>1)r.sqrTo(o,m),r.sqrTo(m,o),s-=2;s>0?r.sqrTo(o,m):(h=o,o=m,m=h),r.mulTo(m,a[d],o)}while(p>=0&&0==(e[p]&1<<i))r.sqrTo(o,m),h=o,o=m,m=h,--i<0&&(i=this.DB-1,--p)}return r.revert(o)}function pt(e){var t=this.s<0?this.negate():this.clone(),n=e.s<0?e.negate():e.clone();if(t.compareTo(n)<0){var r=t;t=n,n=r}var i=t.getLowestSetBit(),o=n.getLowestSetBit();if(o<0)return t;i<o&&(o=i),o>0&&(t.rShiftTo(o,t),n.rShiftTo(o,n));while(t.signum()>0)(i=t.getLowestSetBit())>0&&t.rShiftTo(i,t),(i=n.getLowestSetBit())>0&&n.rShiftTo(i,n),t.compareTo(n)>=0?(t.subTo(n,t),t.rShiftTo(1,t)):(n.subTo(t,n),n.rShiftTo(1,n));return o>0&&n.lShiftTo(o,n),n}function ft(e){if(e<=0)return 0;var t=this.DV%e,n=this.s<0?e-1:0;if(this.t>0)if(0==t)n=this[0]%e;else for(var r=this.t-1;r>=0;--r)n=(t*n+this[r])%e;return n}function mt(e){var t=e.isEven();if(this.isEven()&&t||0==e.signum())return m.ZERO;var n=e.clone(),r=this.clone(),i=C(1),o=C(0),a=C(0),s=C(1);while(0!=n.signum()){while(n.isEven())n.rShiftTo(1,n),t?(i.isEven()&&o.isEven()||(i.addTo(this,i),o.subTo(e,o)),i.rShiftTo(1,i)):o.isEven()||o.subTo(e,o),o.rShiftTo(1,o);while(r.isEven())r.rShiftTo(1,r),t?(a.isEven()&&s.isEven()||(a.addTo(this,a),s.subTo(e,s)),a.rShiftTo(1,a)):s.isEven()||s.subTo(e,s),s.rShiftTo(1,s);n.compareTo(r)>=0?(n.subTo(r,n),t&&i.subTo(a,i),o.subTo(s,o)):(r.subTo(n,r),t&&a.subTo(i,a),s.subTo(o,s))}return 0!=r.compareTo(m.ONE)?m.ZERO:s.compareTo(e)>=0?s.subtract(e):s.signum()<0?(s.addTo(e,s),s.signum()<0?s.add(e):s):s}X.prototype.convert=q,X.prototype.revert=W,X.prototype.reduce=Y,X.prototype.mulTo=Q,X.prototype.sqrTo=J,ee.prototype.convert=te,ee.prototype.revert=ne,ee.prototype.reduce=re,ee.prototype.mulTo=oe,ee.prototype.sqrTo=ie,m.prototype.copyTo=N,m.prototype.fromInt=T,m.prototype.fromString=R,m.prototype.clamp=O,m.prototype.dlShiftTo=B,m.prototype.drShiftTo=$,m.prototype.lShiftTo=j,m.prototype.rShiftTo=U,m.prototype.subTo=V,m.prototype.multiplyTo=K,m.prototype.squareTo=H,m.prototype.divRemTo=G,m.prototype.invDigit=Z,m.prototype.isEven=ae,m.prototype.exp=se,m.prototype.toString=I,m.prototype.negate=D,m.prototype.abs=L,m.prototype.compareTo=P,m.prototype.bitLength=F,m.prototype.mod=z,m.prototype.modPowInt=le,m.ZERO=C(0),m.ONE=C(1),Ze.prototype.convert=et,Ze.prototype.revert=et,Ze.prototype.mulTo=tt,Ze.prototype.sqrTo=nt,at.prototype.convert=st,at.prototype.revert=lt,at.prototype.reduce=ct,at.prototype.mulTo=dt,at.prototype.sqrTo=ut;var gt=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],vt=(1<<26)/gt[gt.length-1];function yt(e){var t,n=this.abs();if(1==n.t&&n[0]<=gt[gt.length-1]){for(t=0;t<gt.length;++t)if(n[0]==gt[t])return!0;return!1}if(n.isEven())return!1;t=1;while(t<gt.length){var r=gt[t],i=t+1;while(i<gt.length&&r<vt)r*=gt[i++];r=n.modInt(r);while(t<i)if(r%gt[t++]==0)return!1}return n.millerRabin(e)}function bt(e){var t=this.subtract(m.ONE),n=t.getLowestSetBit();if(n<=0)return!1;var r=t.shiftRight(n);e=e+1>>1,e>gt.length&&(e=gt.length);for(var i=g(),o=0;o<e;++o){i.fromInt(gt[Math.floor(Math.random()*gt.length)]);var a=i.modPow(r,this);if(0!=a.compareTo(m.ONE)&&0!=a.compareTo(t)){var s=1;while(s++<n&&0!=a.compareTo(t))if(a=a.modPowInt(2,this),0==a.compareTo(m.ONE))return!1;if(0!=a.compareTo(t))return!1}}return!0}
|
||
/*! (c) Tom Wu | http://www-cs-students.stanford.edu/~tjw/jsbn/
|
||
*/
|
||
function _t(){this.i=0,this.j=0,this.S=new Array}function wt(e){var t,n,r;for(t=0;t<256;++t)this.S[t]=t;for(n=0,t=0;t<256;++t)n=n+this.S[t]+e[t%e.length]&255,r=this.S[t],this.S[t]=this.S[n],this.S[n]=r;this.i=0,this.j=0}function Et(){var e;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,e=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=e,this.S[e+this.S[this.i]&255]}function St(){return new _t}m.prototype.chunkSize=pe,m.prototype.toRadix=me,m.prototype.fromRadix=ge,m.prototype.fromNumber=ve,m.prototype.bitwiseTo=Ee,m.prototype.changeBit=$e,m.prototype.addTo=Ke,m.prototype.dMultiply=Qe,m.prototype.dAddOffset=Je,m.prototype.multiplyLowerTo=it,m.prototype.multiplyUpperTo=ot,m.prototype.modInt=ft,m.prototype.millerRabin=bt,m.prototype.clone=ce,m.prototype.intValue=ue,m.prototype.byteValue=de,m.prototype.shortValue=he,m.prototype.signum=fe,m.prototype.toByteArray=ye,m.prototype.equals=be,m.prototype.min=_e,m.prototype.max=we,m.prototype.and=xe,m.prototype.or=Ae,m.prototype.xor=Te,m.prototype.andNot=Re,m.prototype.not=Oe,m.prototype.shiftLeft=Ie,m.prototype.shiftRight=De,m.prototype.getLowestSetBit=Pe,m.prototype.bitCount=Fe,m.prototype.testBit=Be,m.prototype.setBit=je,m.prototype.clearBit=Ue,m.prototype.flipBit=Ve,m.prototype.add=He,m.prototype.subtract=Ge,m.prototype.multiply=ze,m.prototype.divide=qe,m.prototype.remainder=We,m.prototype.divideAndRemainder=Ye,m.prototype.modPow=ht,m.prototype.modInverse=mt,m.prototype.pow=rt,m.prototype.gcd=pt,m.prototype.isProbablePrime=yt,m.prototype.square=Xe,_t.prototype.init=wt,_t.prototype.next=Et;var xt,kt,At,Nt=256;
|
||
/*! (c) Tom Wu | http://www-cs-students.stanford.edu/~tjw/jsbn/
|
||
*/function Tt(e){kt[At++]^=255&e,kt[At++]^=e>>8&255,kt[At++]^=e>>16&255,kt[At++]^=e>>24&255,At>=Nt&&(At-=Nt)}function Ct(){Tt((new Date).getTime())}if(null==kt){var Rt;if(kt=new Array,At=0,void 0!==o&&(void 0!==o.crypto||void 0!==o.msCrypto)){var Ot=o.crypto||o.msCrypto;if(Ot.getRandomValues){var It=new Uint8Array(32);for(Ot.getRandomValues(It),Rt=0;Rt<32;++Rt)kt[At++]=It[Rt]}else if("Netscape"==i.appName&&i.appVersion<"5"){var Dt=o.crypto.random(32);for(Rt=0;Rt<Dt.length;++Rt)kt[At++]=255&Dt.charCodeAt(Rt)}}while(At<Nt)Rt=Math.floor(65536*Math.random()),kt[At++]=Rt>>>8,kt[At++]=255&Rt;At=0,Ct()}function Lt(){if(null==xt){for(Ct(),xt=St(),xt.init(kt),At=0;At<kt.length;++At)kt[At]=0;At=0}return xt.next()}function Pt(e){var t;for(t=0;t<e.length;++t)e[t]=Lt()}function Mt(){}
|
||
/*! (c) Tom Wu | http://www-cs-students.stanford.edu/~tjw/jsbn/
|
||
*/
|
||
function Ft(e,t){return new m(e,t)}function Bt(e,t){if(t<e.length+11)throw"Message too long for RSA";var n=new Array,r=e.length-1;while(r>=0&&t>0){var i=e.charCodeAt(r--);i<128?n[--t]=i:i>127&&i<2048?(n[--t]=63&i|128,n[--t]=i>>6|192):(n[--t]=63&i|128,n[--t]=i>>6&63|128,n[--t]=i>>12|224)}n[--t]=0;var o=new Mt,a=new Array;while(t>2){a[0]=0;while(0==a[0])o.nextBytes(a);n[--t]=a[0]}return n[--t]=2,n[--t]=0,new m(n)}function $t(e,t,n){var r="",i=0;while(r.length<t)r+=n(String.fromCharCode.apply(String,e.concat([(4278190080&i)>>24,(16711680&i)>>16,(65280&i)>>8,255&i]))),i+=1;return r}function jt(e,t,n,r){var i=Rn.crypto.MessageDigest,o=Rn.crypto.Util,a=null;if(n||(n="sha1"),"string"===typeof n&&(a=i.getCanonicalAlgName(n),r=i.getHashLength(a),n=function(e){return Qn(o.hashHex(Jn(e),a))}),e.length+2*r+2>t)throw"Message too long for RSA";var s,l="";for(s=0;s<t-e.length-2*r-2;s+=1)l+="\0";var c=n("")+l+""+e,u=new Array(r);(new Mt).nextBytes(u);var d=$t(u,c.length,n),h=[];for(s=0;s<c.length;s+=1)h[s]=c.charCodeAt(s)^d.charCodeAt(s);var p=$t(h,u.length,n),f=[0];for(s=0;s<u.length;s+=1)f[s+1]=u[s]^p.charCodeAt(s);return new m(f.concat(h))}function Ut(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}function Vt(e,t){if(this.isPublic=!0,this.isPrivate=!1,"string"!==typeof e)this.n=e,this.e=t;else{if(!(null!=e&&null!=t&&e.length>0&&t.length>0))throw"Invalid RSA public key";this.n=Ft(e,16),this.e=parseInt(t,16)}}function Kt(e){return e.modPowInt(this.e,this.n)}function Ht(e){var t=Bt(e,this.n.bitLength()+7>>3);if(null==t)return null;var n=this.doPublic(t);if(null==n)return null;var r=n.toString(16);return 0==(1&r.length)?r:"0"+r}function Gt(e,t,n){var r=jt(e,this.n.bitLength()+7>>3,t,n);if(null==r)return null;var i=this.doPublic(r);if(null==i)return null;var o=i.toString(16);return 0==(1&o.length)?o:"0"+o}
|
||
/*! (c) Tom Wu, Kenji Urushima | http://www-cs-students.stanford.edu/~tjw/jsbn/
|
||
*/
|
||
function zt(e,t){var n=e.toByteArray(),r=0;while(r<n.length&&0==n[r])++r;if(n.length-r!=t-1||2!=n[r])return null;++r;while(0!=n[r])if(++r>=n.length)return null;var i="";while(++r<n.length){var o=255&n[r];o<128?i+=String.fromCharCode(o):o>191&&o<224?(i+=String.fromCharCode((31&o)<<6|63&n[r+1]),++r):(i+=String.fromCharCode((15&o)<<12|(63&n[r+1])<<6|63&n[r+2]),r+=2)}return i}function Xt(e,t,n){var r="",i=0;while(r.length<t)r+=n(e+String.fromCharCode.apply(String,[(4278190080&i)>>24,(16711680&i)>>16,(65280&i)>>8,255&i])),i+=1;return r}function qt(e,t,n,r){var i=Rn.crypto.MessageDigest,o=Rn.crypto.Util,a=null;for(n||(n="sha1"),"string"===typeof n&&(a=i.getCanonicalAlgName(n),r=i.getHashLength(a),n=function(e){return Qn(o.hashHex(Jn(e),a))}),e=e.toByteArray(),s=0;s<e.length;s+=1)e[s]&=255;while(e.length<t)e.unshift(0);if(e=String.fromCharCode.apply(String,e),e.length<2*r+2)throw"Cipher too short";var s,l=e.substr(1,r),c=e.substr(r+1),u=Xt(c,r,n),d=[];for(s=0;s<l.length;s+=1)d[s]=l.charCodeAt(s)^u.charCodeAt(s);var h=Xt(String.fromCharCode.apply(String,d),e.length-r,n),p=[];for(s=0;s<c.length;s+=1)p[s]=c.charCodeAt(s)^h.charCodeAt(s);if(p=String.fromCharCode.apply(String,p),p.substr(0,r)!==n(""))throw"Hash mismatch";p=p.substr(r);var f=p.indexOf(""),m=-1!=f?p.substr(0,f).lastIndexOf("\0"):-1;if(m+1!=f)throw"Malformed data";return p.substr(f+1)}function Wt(e,t,n){if(this.isPrivate=!0,"string"!==typeof e)this.n=e,this.e=t,this.d=n;else{if(!(null!=e&&null!=t&&e.length>0&&t.length>0))throw"Invalid RSA private key";this.n=Ft(e,16),this.e=parseInt(t,16),this.d=Ft(n,16)}}function Yt(e,t,n,r,i,o,a,s){if(this.isPrivate=!0,this.isPublic=!1,null==e)throw"RSASetPrivateEx N == null";if(null==t)throw"RSASetPrivateEx E == null";if(0==e.length)throw"RSASetPrivateEx N.length == 0";if(0==t.length)throw"RSASetPrivateEx E.length == 0";if(!(null!=e&&null!=t&&e.length>0&&t.length>0))throw"Invalid RSA private key in RSASetPrivateEx";this.n=Ft(e,16),this.e=parseInt(t,16),this.d=Ft(n,16),this.p=Ft(r,16),this.q=Ft(i,16),this.dmp1=Ft(o,16),this.dmq1=Ft(a,16),this.coeff=Ft(s,16)}function Qt(e,t){var n=new Mt,r=e>>1;this.e=parseInt(t,16);for(var i=new m(t,16),o=e/2-100,a=m.ONE.shiftLeft(o);;){for(;;)if(this.p=new m(e-r,1,n),0==this.p.subtract(m.ONE).gcd(i).compareTo(m.ONE)&&this.p.isProbablePrime(10))break;for(;;)if(this.q=new m(r,1,n),0==this.q.subtract(m.ONE).gcd(i).compareTo(m.ONE)&&this.q.isProbablePrime(10))break;if(this.p.compareTo(this.q)<=0){var s=this.p;this.p=this.q,this.q=s}var l=this.q.subtract(this.p).abs();if(!(l.bitLength()<o||l.compareTo(a)<=0)){var c=this.p.subtract(m.ONE),u=this.q.subtract(m.ONE),d=c.multiply(u);if(0==d.gcd(i).compareTo(m.ONE)&&(this.n=this.p.multiply(this.q),this.n.bitLength()==e)){this.d=i.modInverse(d),this.dmp1=this.d.mod(c),this.dmq1=this.d.mod(u),this.coeff=this.q.modInverse(this.p);break}}}this.isPrivate=!0}function Jt(e){if(null==this.p||null==this.q)return e.modPow(this.d,this.n);var t=e.mod(this.p).modPow(this.dmp1,this.p),n=e.mod(this.q).modPow(this.dmq1,this.q);while(t.compareTo(n)<0)t=t.add(this.p);return t.subtract(n).multiply(this.coeff).mod(this.p).multiply(this.q).add(n)}function Zt(e){if(e.length!=Math.ceil(this.n.bitLength()/4))throw new Error("wrong ctext length");var t=Ft(e,16),n=this.doPrivate(t);return null==n?null:zt(n,this.n.bitLength()+7>>3)}function en(e,t,n){if(e.length!=Math.ceil(this.n.bitLength()/4))throw new Error("wrong ctext length");var r=Ft(e,16),i=this.doPrivate(r);return null==i?null:qt(i,this.n.bitLength()+7>>3,t,n)}
|
||
/*! (c) Tom Wu | http://www-cs-students.stanford.edu/~tjw/jsbn/
|
||
*/
|
||
function tn(e,t){this.x=t,this.q=e}function nn(e){return e==this||this.q.equals(e.q)&&this.x.equals(e.x)}function rn(){return this.x}function on(){return new tn(this.q,this.x.negate().mod(this.q))}function an(e){return new tn(this.q,this.x.add(e.toBigInteger()).mod(this.q))}function sn(e){return new tn(this.q,this.x.subtract(e.toBigInteger()).mod(this.q))}function ln(e){return new tn(this.q,this.x.multiply(e.toBigInteger()).mod(this.q))}function cn(){return new tn(this.q,this.x.square().mod(this.q))}function un(e){return new tn(this.q,this.x.multiply(e.toBigInteger().modInverse(this.q)).mod(this.q))}function dn(e,t,n,r){this.curve=e,this.x=t,this.y=n,this.z=null==r?m.ONE:r,this.zinv=null}function hn(){return null==this.zinv&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.x.toBigInteger().multiply(this.zinv).mod(this.curve.q))}function pn(){return null==this.zinv&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.y.toBigInteger().multiply(this.zinv).mod(this.curve.q))}function fn(e){return e==this||(this.isInfinity()?e.isInfinity():e.isInfinity()?this.isInfinity():(t=e.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(e.z)).mod(this.curve.q),!!t.equals(m.ZERO)&&(n=e.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(e.z)).mod(this.curve.q),n.equals(m.ZERO))));var t,n}function mn(){return null==this.x&&null==this.y||this.z.equals(m.ZERO)&&!this.y.toBigInteger().equals(m.ZERO)}function gn(){return new dn(this.curve,this.x,this.y.negate(),this.z)}function vn(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(e.z)).mod(this.curve.q),n=e.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(e.z)).mod(this.curve.q);if(m.ZERO.equals(n))return m.ZERO.equals(t)?this.twice():this.curve.getInfinity();var r=new m("3"),i=this.x.toBigInteger(),o=this.y.toBigInteger(),a=(e.x.toBigInteger(),e.y.toBigInteger(),n.square()),s=a.multiply(n),l=i.multiply(a),c=t.square().multiply(this.z),u=c.subtract(l.shiftLeft(1)).multiply(e.z).subtract(s).multiply(n).mod(this.curve.q),d=l.multiply(r).multiply(t).subtract(o.multiply(s)).subtract(c.multiply(t)).multiply(e.z).add(t.multiply(s)).mod(this.curve.q),h=s.multiply(this.z).multiply(e.z).mod(this.curve.q);return new dn(this.curve,this.curve.fromBigInteger(u),this.curve.fromBigInteger(d),h)}function yn(){if(this.isInfinity())return this;if(0==this.y.toBigInteger().signum())return this.curve.getInfinity();var e=new m("3"),t=this.x.toBigInteger(),n=this.y.toBigInteger(),r=n.multiply(this.z),i=r.multiply(n).mod(this.curve.q),o=this.curve.a.toBigInteger(),a=t.square().multiply(e);m.ZERO.equals(o)||(a=a.add(this.z.square().multiply(o))),a=a.mod(this.curve.q);var s=a.square().subtract(t.shiftLeft(3).multiply(i)).shiftLeft(1).multiply(r).mod(this.curve.q),l=a.multiply(e).multiply(t).subtract(i.shiftLeft(1)).shiftLeft(2).multiply(i).subtract(a.square().multiply(a)).mod(this.curve.q),c=r.square().multiply(r).shiftLeft(3).mod(this.curve.q);return new dn(this.curve,this.curve.fromBigInteger(s),this.curve.fromBigInteger(l),c)}function bn(e){if(this.isInfinity())return this;if(0==e.signum())return this.curve.getInfinity();var t,n=e,r=n.multiply(new m("3")),i=this.negate(),o=this,a=this.curve.q.subtract(e),s=a.multiply(new m("3")),l=new dn(this.curve,this.x,this.y),c=l.negate();for(t=r.bitLength()-2;t>0;--t){o=o.twice();var u=r.testBit(t),d=n.testBit(t);u!=d&&(o=o.add(u?this:i))}for(t=s.bitLength()-2;t>0;--t){l=l.twice();var h=s.testBit(t),p=a.testBit(t);h!=p&&(l=l.add(h?l:c))}return o}function _n(e,t,n){var r;r=e.bitLength()>n.bitLength()?e.bitLength()-1:n.bitLength()-1;var i=this.curve.getInfinity(),o=this.add(t);while(r>=0)i=i.twice(),e.testBit(r)?i=n.testBit(r)?i.add(o):i.add(this):n.testBit(r)&&(i=i.add(t)),--r;return i}function wn(e,t,n){this.q=e,this.a=this.fromBigInteger(t),this.b=this.fromBigInteger(n),this.infinity=new dn(this,null,null)}function En(){return this.q}function Sn(){return this.a}function xn(){return this.b}function kn(e){return e==this||this.q.equals(e.q)&&this.a.equals(e.a)&&this.b.equals(e.b)}function An(){return this.infinity}function Nn(e){return new tn(this.q,e)}function Tn(e){switch(parseInt(e.substr(0,2),16)){case 0:return this.infinity;case 2:case 3:var t=e.substr(0,2),n=(e.substr(2),this.fromBigInteger(new m(l,16))),r=this.getA(),i=this.getB(),o=n.square().add(r).multiply(n).add(i),a=o.sqrt();return"03"==t&&(a=a.negate()),new dn(this,n,a);case 4:case 6:case 7:var s=(e.length-2)/2,l=e.substr(2,s),c=e.substr(s+2,s);return new dn(this,this.fromBigInteger(new m(l,16)),this.fromBigInteger(new m(c,16)));default:return null}}Mt.prototype.nextBytes=Pt,Ut.prototype.doPublic=Kt,Ut.prototype.setPublic=Vt,Ut.prototype.encrypt=Ht,Ut.prototype.encryptOAEP=Gt,Ut.prototype.type="RSA",Ut.prototype.doPrivate=Jt,Ut.prototype.setPrivate=Wt,Ut.prototype.setPrivateEx=Yt,Ut.prototype.generate=Qt,Ut.prototype.decrypt=Zt,Ut.prototype.decryptOAEP=en,tn.prototype.equals=nn,tn.prototype.toBigInteger=rn,tn.prototype.negate=on,tn.prototype.add=an,tn.prototype.subtract=sn,tn.prototype.multiply=ln,tn.prototype.square=cn,tn.prototype.divide=un,tn.prototype.sqrt=function(){return new tn(this.q,this.x.sqrt().mod(this.q))},dn.prototype.getX=hn,dn.prototype.getY=pn,dn.prototype.equals=fn,dn.prototype.isInfinity=mn,dn.prototype.negate=gn,dn.prototype.add=vn,dn.prototype.twice=yn,dn.prototype.multiply=bn,dn.prototype.multiplyTwo=_n,wn.prototype.getQ=En,wn.prototype.getA=Sn,wn.prototype.getB=xn,wn.prototype.equals=kn,wn.prototype.getInfinity=An,wn.prototype.fromBigInteger=Nn,wn.prototype.decodePointHex=Tn,
|
||
/*! (c) Stefan Thomas | https://github.com/bitcoinjs/bitcoinjs-lib
|
||
*/
|
||
tn.prototype.getByteLength=function(){return Math.floor((this.toBigInteger().bitLength()+7)/8)},dn.prototype.getEncoded=function(e){var t=function(e,t){var n=e.toByteArrayUnsigned();if(t<n.length)n=n.slice(n.length-t);else while(t>n.length)n.unshift(0);return n},n=this.getX().toBigInteger(),r=this.getY().toBigInteger(),i=t(n,32);return e?r.isEven()?i.unshift(2):i.unshift(3):(i.unshift(4),i=i.concat(t(r,32))),i},dn.decodeFrom=function(e,t){t[0];var n=t.length-1,r=t.slice(1,1+n/2),i=t.slice(1+n/2,1+n);r.unshift(0),i.unshift(0);var o=new m(r),a=new m(i);return new dn(e,e.fromBigInteger(o),e.fromBigInteger(a))},dn.decodeFromHex=function(e,t){t.substr(0,2);var n=t.length-2,r=t.substr(2,n/2),i=t.substr(2+n/2,n/2),o=new m(r,16),a=new m(i,16);return new dn(e,e.fromBigInteger(o),e.fromBigInteger(a))},dn.prototype.add2D=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;if(this.x.equals(e.x))return this.y.equals(e.y)?this.twice():this.curve.getInfinity();var t=e.x.subtract(this.x),n=e.y.subtract(this.y),r=n.divide(t),i=r.square().subtract(this.x).subtract(e.x),o=r.multiply(this.x.subtract(i)).subtract(this.y);return new dn(this.curve,i,o)},dn.prototype.twice2D=function(){if(this.isInfinity())return this;if(0==this.y.toBigInteger().signum())return this.curve.getInfinity();var e=this.curve.fromBigInteger(m.valueOf(2)),t=this.curve.fromBigInteger(m.valueOf(3)),n=this.x.square().multiply(t).add(this.curve.a).divide(this.y.multiply(e)),r=n.square().subtract(this.x.multiply(e)),i=n.multiply(this.x.subtract(r)).subtract(this.y);return new dn(this.curve,r,i)},dn.prototype.multiply2D=function(e){if(this.isInfinity())return this;if(0==e.signum())return this.curve.getInfinity();var t,n=e,r=n.multiply(new m("3")),i=this.negate(),o=this;for(t=r.bitLength()-2;t>0;--t){o=o.twice();var a=r.testBit(t),s=n.testBit(t);a!=s&&(o=o.add2D(a?this:i))}return o},dn.prototype.isOnCurve=function(){var e=this.getX().toBigInteger(),t=this.getY().toBigInteger(),n=this.curve.getA().toBigInteger(),r=this.curve.getB().toBigInteger(),i=this.curve.getQ(),o=t.multiply(t).mod(i),a=e.multiply(e).multiply(e).add(n.multiply(e)).add(r).mod(i);return o.equals(a)},dn.prototype.toString=function(){return"("+this.getX().toBigInteger().toString()+","+this.getY().toBigInteger().toString()+")"},dn.prototype.validate=function(){var e=this.curve.getQ();if(this.isInfinity())throw new Error("Point is at infinity.");var t=this.getX().toBigInteger(),n=this.getY().toBigInteger();if(t.compareTo(m.ONE)<0||t.compareTo(e.subtract(m.ONE))>0)throw new Error("x coordinate out of bounds");if(n.compareTo(m.ONE)<0||n.compareTo(e.subtract(m.ONE))>0)throw new Error("y coordinate out of bounds");if(!this.isOnCurve())throw new Error("Point is not on the curve.");if(this.multiply(e).isInfinity())throw new Error("Point is not a scalar multiple of G.");return!0};
|
||
/*! Mike Samuel (c) 2009 | code.google.com/p/json-sans-eval
|
||
*/
|
||
var Cn=function(){var e="(?:-?\\b(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?\\b)",t='(?:[^\\0-\\x08\\x0a-\\x1f"\\\\]|\\\\(?:["/\\\\bfnrt]|u[0-9A-Fa-f]{4}))',n='(?:"'+t+'*")',r=new RegExp("(?:false|true|null|[\\{\\}\\[\\]]|"+e+"|"+n+")","g"),i=new RegExp("\\\\(?:([^u])|u(.{4}))","g"),o={'"':'"',"/":"/","\\":"\\",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"};function a(e,t,n){return t?o[t]:String.fromCharCode(parseInt(n,16))}var s=new String(""),l="\\",c=Object.hasOwnProperty;return function(e,t){var n,o,u=e.match(r),d=u[0],h=!1;"{"===d?n={}:"["===d?n=[]:(n=[],h=!0);for(var p=[n],f=1-h,m=u.length;f<m;++f){var g;switch(d=u[f],d.charCodeAt(0)){default:g=p[0],g[o||g.length]=+d,o=void 0;break;case 34:if(d=d.substring(1,d.length-1),-1!==d.indexOf(l)&&(d=d.replace(i,a)),g=p[0],!o){if(!(g instanceof Array)){o=d||s;break}o=g.length}g[o]=d,o=void 0;break;case 91:g=p[0],p.unshift(g[o||g.length]=[]),o=void 0;break;case 93:p.shift();break;case 102:g=p[0],g[o||g.length]=!1,o=void 0;break;case 110:g=p[0],g[o||g.length]=null,o=void 0;break;case 116:g=p[0],g[o||g.length]=!0,o=void 0;break;case 123:g=p[0],p.unshift(g[o||g.length]={}),o=void 0;break;case 125:p.shift();break}}if(h){if(1!==p.length)throw new Error;n=n[0]}else if(p.length)throw new Error;if(t){var v=function(e,n){var r=e[n];if(r&&"object"===typeof r){var i=null;for(var o in r)if(c.call(r,o)&&r!==e){var a=v(r,o);void 0!==a?r[o]=a:(i||(i=[]),i.push(o))}if(i)for(var s=i.length;--s>=0;)delete r[i[s]]}return t.call(e,n,r)};n=v({"":n},"")}return n}}();"undefined"!=typeof Rn&&Rn||(Rn={}),"undefined"!=typeof Rn.asn1&&Rn.asn1||(Rn.asn1={}),Rn.asn1.ASN1Util=new function(){this.integerToByteHex=function(e){var t=e.toString(16);return t.length%2==1&&(t="0"+t),t},this.bigIntToMinTwosComplementsHex=function(e){var t=e.toString(16);if("-"!=t.substr(0,1))t.length%2==1?t="0"+t:t.match(/^[0-7]/)||(t="00"+t);else{var n=t.substr(1),r=n.length;r%2==1?r+=1:t.match(/^[0-7]/)||(r+=2);for(var i="",o=0;o<r;o++)i+="f";var a=new m(i,16),s=a.xor(e).add(m.ONE);t=s.toString(16).replace(/^-/,"")}return t},this.getPEMStringFromHex=function(e,t){return nr(e,t)},this.newObject=function(e){var t=Rn,n=t.asn1,r=n.ASN1Object,i=n.DERBoolean,o=n.DERInteger,a=n.DERBitString,s=n.DEROctetString,l=n.DERNull,c=n.DERObjectIdentifier,u=n.DEREnumerated,d=n.DERUTF8String,h=n.DERNumericString,p=n.DERPrintableString,f=n.DERTeletexString,m=n.DERIA5String,g=n.DERUTCTime,v=n.DERGeneralizedTime,y=n.DERVisibleString,b=n.DERBMPString,_=n.DERSequence,w=n.DERSet,E=n.DERTaggedObject,S=n.ASN1Util.newObject;if(e instanceof n.ASN1Object)return e;var x=Object.keys(e);if(1!=x.length)throw new Error("key of param shall be only one.");var k=x[0];if(-1==":asn1:bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:visstr:bmpstr:seq:set:tag:".indexOf(":"+k+":"))throw new Error("undefined key: "+k);if("bool"==k)return new i(e[k]);if("int"==k)return new o(e[k]);if("bitstr"==k)return new a(e[k]);if("octstr"==k)return new s(e[k]);if("null"==k)return new l(e[k]);if("oid"==k)return new c(e[k]);if("enum"==k)return new u(e[k]);if("utf8str"==k)return new d(e[k]);if("numstr"==k)return new h(e[k]);if("prnstr"==k)return new p(e[k]);if("telstr"==k)return new f(e[k]);if("ia5str"==k)return new m(e[k]);if("utctime"==k)return new g(e[k]);if("gentime"==k)return new v(e[k]);if("visstr"==k)return new y(e[k]);if("bmpstr"==k)return new b(e[k]);if("asn1"==k)return new r(e[k]);if("seq"==k){for(var A=e[k],N=[],T=0;T<A.length;T++){var C=S(A[T]);N.push(C)}return new _({array:N})}if("set"==k){for(A=e[k],N=[],T=0;T<A.length;T++){C=S(A[T]);N.push(C)}return new w({array:N})}if("tag"==k){var R=e[k];if("[object Array]"===Object.prototype.toString.call(R)&&3==R.length){var O=S(R[2]);return new E({tag:R[0],explicit:R[1],obj:O})}return new E(R)}},this.jsonToASN1HEX=function(e){var t=this.newObject(e);return t.tohex()}},Rn.asn1.ASN1Util.oidHexToInt=function(e){for(var t="",n=parseInt(e.substr(0,2),16),r=Math.floor(n/40),i=n%40,o=(t=r+"."+i,""),a=2;a<e.length;a+=2){var s=parseInt(e.substr(a,2),16),l=("00000000"+s.toString(2)).slice(-8);if(o+=l.substr(1,7),"0"==l.substr(0,1)){var c=new m(o,2);t=t+"."+c.toString(10),o=""}}return t},Rn.asn1.ASN1Util.oidIntToHex=function(e){var t=function(e){var t=e.toString(16);return 1==t.length&&(t="0"+t),t},n=function(e){var n="",r=new m(e,10),i=r.toString(2),o=7-i.length%7;7==o&&(o=0);for(var a="",s=0;s<o;s++)a+="0";i=a+i;for(s=0;s<i.length-1;s+=7){var l=i.substr(s,7);s!=i.length-7&&(l="1"+l),n+=t(parseInt(l,2))}return n};if(!e.match(/^[0-9.]+$/))throw"malformed oid string: "+e;var r="",i=e.split("."),o=40*parseInt(i[0])+parseInt(i[1]);r+=t(o),i.splice(0,2);for(var a=0;a<i.length;a++)r+=n(i[a]);return r},Rn.asn1.ASN1Object=function(e){var t="";this.params=null,this.getLengthHexFromValue=function(){if("undefined"==typeof this.hV||null==this.hV)throw new Error("this.hV is null or undefined");if(this.hV.length%2==1)throw new Error("value hex must be even length: n="+t.length+",v="+this.hV);var e=this.hV.length/2,n=e.toString(16);if(n.length%2==1&&(n="0"+n),e<128)return n;var r=n.length/2;if(r>15)throw new Error("ASN.1 length too long to represent by 8x: n = "+e.toString(16));var i=128+r;return i.toString(16)+n},this.tohex=function(){return(null==this.hTLV||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getEncodedHex=function(){return this.tohex()},this.getValueHex=function(){return this.tohex(),this.hV},this.getFreshValueHex=function(){return""},this.setByParam=function(e){this.params=e},void 0!=e&&void 0!=e.tlv&&(this.hTLV=e.tlv,this.isModified=!1)},Rn.asn1.DERAbstractString=function(e){Rn.asn1.DERAbstractString.superclass.constructor.call(this);this.getString=function(){return this.s},this.setString=function(e){this.hTLV=null,this.isModified=!0,this.s=e,this.hV=Xn(this.s).toLowerCase()},this.setStringHex=function(e){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=e},this.getFreshValueHex=function(){return this.hV},"undefined"!=typeof e&&("string"==typeof e?this.setString(e):"undefined"!=typeof e.str?this.setString(e.str):"undefined"!=typeof e.hex&&this.setStringHex(e.hex))},Pr(Rn.asn1.DERAbstractString,Rn.asn1.ASN1Object),Rn.asn1.DERAbstractTime=function(e){Rn.asn1.DERAbstractTime.superclass.constructor.call(this);this.localDateToUTC=function(e){var t=e.getTime()+6e4*e.getTimezoneOffset(),n=new Date(t);return n},this.formatDate=function(e,t,n){var r=this.zeroPadding,i=this.localDateToUTC(e),o=String(i.getFullYear());"utc"==t&&(o=o.substr(2,2));var a=r(String(i.getMonth()+1),2),s=r(String(i.getDate()),2),l=r(String(i.getHours()),2),c=r(String(i.getMinutes()),2),u=r(String(i.getSeconds()),2),d=o+a+s+l+c+u;if(!0===n){var h=i.getMilliseconds();if(0!=h){var p=r(String(h),3);p=p.replace(/[0]+$/,""),d=d+"."+p}}return d+"Z"},this.zeroPadding=function(e,t){return e.length>=t?e:new Array(t-e.length+1).join("0")+e},this.setByParam=function(e){this.hV=null,this.hTLV=null,this.params=e},this.getString=function(){},this.setString=function(e){this.hTLV=null,this.isModified=!0,void 0==this.params&&(this.params={}),this.params.str=e},this.setByDate=function(e){this.hTLV=null,this.isModified=!0,void 0==this.params&&(this.params={}),this.params.date=e},this.setByDateValue=function(e,t,n,r,i,o){var a=new Date(Date.UTC(e,t-1,n,r,i,o,0));this.setByDate(a)},this.getFreshValueHex=function(){return this.hV}},Pr(Rn.asn1.DERAbstractTime,Rn.asn1.ASN1Object),Rn.asn1.DERAbstractStructured=function(e){Rn.asn1.DERAbstractString.superclass.constructor.call(this);this.setByASN1ObjectArray=function(e){this.hTLV=null,this.isModified=!0,this.asn1Array=e},this.appendASN1Object=function(e){this.hTLV=null,this.isModified=!0,this.asn1Array.push(e)},this.asn1Array=new Array,"undefined"!=typeof e&&"undefined"!=typeof e.array&&(this.asn1Array=e.array)},Pr(Rn.asn1.DERAbstractStructured,Rn.asn1.ASN1Object),Rn.asn1.DERBoolean=function(e){Rn.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV=0==e?"010100":"0101ff"},Pr(Rn.asn1.DERBoolean,Rn.asn1.ASN1Object),Rn.asn1.DERInteger=function(e){Rn.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(e){this.hTLV=null,this.isModified=!0,this.hV=Rn.asn1.ASN1Util.bigIntToMinTwosComplementsHex(e)},this.setByInteger=function(e){var t=new m(String(e),10);this.setByBigInteger(t)},this.setValueHex=function(e){this.hV=e},this.getFreshValueHex=function(){return this.hV},"undefined"!=typeof e&&("undefined"!=typeof e.bigint?this.setByBigInteger(e.bigint):"undefined"!=typeof e["int"]?this.setByInteger(e["int"]):"number"==typeof e?this.setByInteger(e):"undefined"!=typeof e.hex&&this.setValueHex(e.hex))},Pr(Rn.asn1.DERInteger,Rn.asn1.ASN1Object),Rn.asn1.DERBitString=function(e){if(void 0!==e&&"undefined"!==typeof e.obj){var t=Rn.asn1.ASN1Util.newObject(e.obj);e.hex="00"+t.tohex()}Rn.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(e){this.hTLV=null,this.isModified=!0,this.hV=e},this.setUnusedBitsAndHexValue=function(e,t){if(e<0||7<e)throw"unused bits shall be from 0 to 7: u = "+e;var n="0"+e;this.hTLV=null,this.isModified=!0,this.hV=n+t},this.setByBinaryString=function(e){e=e.replace(/0+$/,"");var t=8-e.length%8;8==t&&(t=0),e+="0000000".substr(0,t);for(var n="",r=0;r<e.length-1;r+=8){var i=e.substr(r,8),o=parseInt(i,2).toString(16);1==o.length&&(o="0"+o),n+=o}this.hTLV=null,this.isModified=!0,this.hV="0"+t+n},this.setByBooleanArray=function(e){for(var t="",n=0;n<e.length;n++)1==e[n]?t+="1":t+="0";this.setByBinaryString(t)},this.newFalseArray=function(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=!1;return t},this.getFreshValueHex=function(){return this.hV},"undefined"!=typeof e&&("string"==typeof e&&e.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(e):"undefined"!=typeof e.hex?this.setHexValueIncludingUnusedBits(e.hex):"undefined"!=typeof e.bin?this.setByBinaryString(e.bin):"undefined"!=typeof e.array&&this.setByBooleanArray(e.array))},Pr(Rn.asn1.DERBitString,Rn.asn1.ASN1Object),Rn.asn1.DEROctetString=function(e){if(void 0!==e&&"undefined"!==typeof e.obj){var t=Rn.asn1.ASN1Util.newObject(e.obj);e.hex=t.tohex()}Rn.asn1.DEROctetString.superclass.constructor.call(this,e),this.hT="04"},Pr(Rn.asn1.DEROctetString,Rn.asn1.DERAbstractString),Rn.asn1.DERNull=function(){Rn.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},Pr(Rn.asn1.DERNull,Rn.asn1.ASN1Object),Rn.asn1.DERObjectIdentifier=function(e){Rn.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(e){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=e},this.setValueOidString=function(e){var t=Nr(e);if(null==t)throw new Error("malformed oid string: "+e);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.setValueName=function(e){var t=Rn.asn1.x509.OID.name2oid(e);if(""===t)throw new Error("DERObjectIdentifier oidName undefined: "+e);this.setValueOidString(t)},this.setValueNameOrOid=function(e){e.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(e):this.setValueName(e)},this.getFreshValueHex=function(){return this.hV},this.setByParam=function(e){"string"===typeof e?this.setValueNameOrOid(e):void 0!==e.oid?this.setValueNameOrOid(e.oid):void 0!==e.name?this.setValueNameOrOid(e.name):void 0!==e.hex&&this.setValueHex(e.hex)},void 0!==e&&this.setByParam(e)},Pr(Rn.asn1.DERObjectIdentifier,Rn.asn1.ASN1Object),Rn.asn1.DEREnumerated=function(e){Rn.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(e){this.hTLV=null,this.isModified=!0,this.hV=Rn.asn1.ASN1Util.bigIntToMinTwosComplementsHex(e)},this.setByInteger=function(e){var t=new m(String(e),10);this.setByBigInteger(t)},this.setValueHex=function(e){this.hV=e},this.getFreshValueHex=function(){return this.hV},"undefined"!=typeof e&&("undefined"!=typeof e["int"]?this.setByInteger(e["int"]):"number"==typeof e?this.setByInteger(e):"undefined"!=typeof e.hex&&this.setValueHex(e.hex))},Pr(Rn.asn1.DEREnumerated,Rn.asn1.ASN1Object),Rn.asn1.DERUTF8String=function(e){Rn.asn1.DERUTF8String.superclass.constructor.call(this,e),this.hT="0c"},Pr(Rn.asn1.DERUTF8String,Rn.asn1.DERAbstractString),Rn.asn1.DERNumericString=function(e){Rn.asn1.DERNumericString.superclass.constructor.call(this,e),this.hT="12"},Pr(Rn.asn1.DERNumericString,Rn.asn1.DERAbstractString),Rn.asn1.DERPrintableString=function(e){Rn.asn1.DERPrintableString.superclass.constructor.call(this,e),this.hT="13"},Pr(Rn.asn1.DERPrintableString,Rn.asn1.DERAbstractString),Rn.asn1.DERTeletexString=function(e){Rn.asn1.DERTeletexString.superclass.constructor.call(this,e),this.hT="14"},Pr(Rn.asn1.DERTeletexString,Rn.asn1.DERAbstractString),Rn.asn1.DERIA5String=function(e){Rn.asn1.DERIA5String.superclass.constructor.call(this,e),this.hT="16"},Pr(Rn.asn1.DERIA5String,Rn.asn1.DERAbstractString),Rn.asn1.DERVisibleString=function(e){Rn.asn1.DERIA5String.superclass.constructor.call(this,e),this.hT="1a"},Pr(Rn.asn1.DERVisibleString,Rn.asn1.DERAbstractString),Rn.asn1.DERBMPString=function(e){Rn.asn1.DERBMPString.superclass.constructor.call(this,e),this.hT="1e"},Pr(Rn.asn1.DERBMPString,Rn.asn1.DERAbstractString),Rn.asn1.DERUTCTime=function(e){Rn.asn1.DERUTCTime.superclass.constructor.call(this,e),this.hT="17",this.params=void 0,this.getFreshValueHex=function(){var e=this.params;if(void 0==this.params&&(e={date:new Date}),"string"==typeof e){if(!e.match(/^[0-9]{12}Z$/)&&!e.match(/^[0-9]{12}\.[0-9]+Z$/))throw new Error("malformed string for UTCTime: "+e);this.hV=Fn(e)}else if(void 0!=e.str)this.hV=Fn(e.str);else if(void 0==e.date&&1==e.millis){var t=new Date;this.hV=Fn(this.formatDate(t,"utc",!0))}else if(void 0!=e.date&&e.date instanceof Date){var n=!0===e.millis;this.hV=Fn(this.formatDate(e.date,"utc",n))}else e instanceof Date&&(this.hV=Fn(this.formatDate(e,"utc")));if(void 0==this.hV)throw new Error("parameter not specified properly for UTCTime");return this.hV},void 0!=e&&this.setByParam(e)},Pr(Rn.asn1.DERUTCTime,Rn.asn1.DERAbstractTime),Rn.asn1.DERGeneralizedTime=function(e){Rn.asn1.DERGeneralizedTime.superclass.constructor.call(this,e),this.hT="18",this.params=e,this.getFreshValueHex=function(){var e=this.params;if(void 0==this.params&&(e={date:new Date}),"string"==typeof e){if(!e.match(/^[0-9]{14}Z$/)&&!e.match(/^[0-9]{14}\.[0-9]+Z$/))throw new Error("malformed string for GeneralizedTime: "+e);this.hV=Fn(e)}else if(void 0!=e.str)this.hV=Fn(e.str);else if(void 0==e.date&&1==e.millis){var t=new Date;this.hV=Fn(this.formatDate(t,"gen",!0))}else if(void 0!=e.date&&e.date instanceof Date){var n=!0===e.millis;this.hV=Fn(this.formatDate(e.date,"gen",n))}else e instanceof Date&&(this.hV=Fn(this.formatDate(e,"gen")));if(void 0==this.hV)throw new Error("parameter not specified properly for GeneralizedTime");return this.hV},void 0!=e&&this.setByParam(e)},Pr(Rn.asn1.DERGeneralizedTime,Rn.asn1.DERAbstractTime),Rn.asn1.DERSequence=function(e){Rn.asn1.DERSequence.superclass.constructor.call(this,e),this.hT="30",this.getFreshValueHex=function(){for(var e="",t=0;t<this.asn1Array.length;t++){var n=this.asn1Array[t];e+=n.tohex()}return this.hV=e,this.hV}},Pr(Rn.asn1.DERSequence,Rn.asn1.DERAbstractStructured),Rn.asn1.DERSet=function(e){Rn.asn1.DERSet.superclass.constructor.call(this,e),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var e=new Array,t=0;t<this.asn1Array.length;t++){var n=this.asn1Array[t];e.push(n.tohex())}return 1==this.sortFlag&&e.sort(),this.hV=e.join(""),this.hV},"undefined"!=typeof e&&"undefined"!=typeof e.sortflag&&0==e.sortflag&&(this.sortFlag=!1)},Pr(Rn.asn1.DERSet,Rn.asn1.DERAbstractStructured),Rn.asn1.DERTaggedObject=function(e){Rn.asn1.DERTaggedObject.superclass.constructor.call(this);var t=Rn.asn1,n=Dn,r=n.getV,i=(n.isASN1HEX,t.ASN1Util.newObject);this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.params={tag:"a0",explicit:!0},this.setASN1Object=function(e,t,n){this.params={tag:t,explicit:e,obj:n}},this.getFreshValueHex=function(){var e=this.params;if(void 0==e.explicit&&(e.explicit=!0),void 0!=e.tage&&(e.tag=e.tage,e.explicit=!0),void 0!=e.tagi&&(e.tag=e.tagi,e.explicit=!1),void 0!=e.str)this.hV=Xn(e.str);else if(void 0!=e.hex)this.hV=e.hex;else{if(void 0==e.obj)throw new Error("str, hex nor obj not specified");var n;e.obj instanceof t.ASN1Object?n=e.obj.tohex():"object"==typeof e.obj&&(n=i(e.obj).tohex()),e.explicit?this.hV=n:this.hV=r(n,0)}return void 0==e.tag&&(e.tag="a0"),this.hT=e.tag,this.hTLV=null,this.isModified=!0,this.hV},this.setByParam=function(e){this.params=e},void 0!==e&&this.setByParam(e)},Pr(Rn.asn1.DERTaggedObject,Rn.asn1.ASN1Object);var Rn,On,In,Dn=new function(){};function Ln(e){for(var t=new Array,n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}function Pn(e){for(var t="",n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t}function Mn(e){for(var t="",n=0;n<e.length;n++){var r=e[n].toString(16);1==r.length&&(r="0"+r),t+=r}return t}function Fn(e){return Mn(Ln(e))}function Bn(e){return u(Fn(e))}function $n(e){return Un(u(Fn(e)))}function jn(e){return Pn(h(Vn(e)))}function Un(e){return e=e.replace(/\=/g,""),e=e.replace(/\+/g,"-"),e=e.replace(/\//g,"_"),e}function Vn(e){return e.length%4==2?e+="==":e.length%4==3&&(e+="="),e=e.replace(/-/g,"+"),e=e.replace(/_/g,"/"),e}function Kn(e){return e.length%2==1&&(e="0"+e),Un(u(e))}function Hn(e){return d(Vn(e))}function Gn(e){return u(ur(br(e)))}function zn(e){return decodeURIComponent(dr(d(e)))}function Xn(e){return ur(br(e)).toLowerCase()}function qn(e){try{return decodeURIComponent(dr(e))}catch(t){return null}}function Wn(e){return qn(Yn(e))}function Yn(e){for(var t=e.match(/.{1,2}/g),n=[],r=0;r<t.length;r++){var i=parseInt(t[r],16);161<=i&&i<=191?(n.push("c2"),n.push(t[r])):192<=i&&i<=255?(n.push("c3"),n.push((i-64).toString(16))):n.push(t[r])}return n.join("")}function Qn(e){for(var t="",n=0;n<e.length-1;n+=2)t+=String.fromCharCode(parseInt(e.substr(n,2),16));return t}function Jn(e){for(var t="",n=0;n<e.length;n++)t+=("0"+e.charCodeAt(n).toString(16)).slice(-2);return t}function Zn(e){return u(e)}function er(e){var t=Zn(e),n=t.replace(/(.{64})/g,"$1\r\n");return n=n.replace(/\r\n$/,""),n}function tr(e){var t=e.replace(/[^0-9A-Za-z\/+=]*/g,""),n=d(t);return n}function nr(e,t){var n=er(e);return"-----BEGIN "+t+"-----\r\n"+n+"\r\n-----END "+t+"-----\r\n"}function rr(e,t){if(-1==e.indexOf("-----BEGIN "))throw"can't find PEM header: "+t;return void 0!==t?(e=e.replace(new RegExp("^[^]*-----BEGIN "+t+"-----"),""),e=e.replace(new RegExp("-----END "+t+"-----[^]*$"),"")):(e=e.replace(/^[^]*-----BEGIN [^-]+-----/,""),e=e.replace(/-----END [^-]+-----[^]*$/,"")),tr(e)}function ir(e){if(e.length%2!=0)throw"input is not even length";if(null==e.match(/^[0-9A-Fa-f]+$/))throw"input is not hexadecimal";for(var t=new ArrayBuffer(e.length/2),n=new DataView(t),r=0;r<e.length/2;r++)n.setUint8(r,parseInt(e.substr(2*r,2),16));return t}function or(e){for(var t="",n=new DataView(e),r=0;r<e.byteLength;r++)t+=("00"+n.getUint8(r).toString(16)).slice(-2);return t}function ar(e){var t,n,r,i,o,a,s,l,c,u,d;if(d=e.match(/^(\d{2}|\d{4})(\d\d)(\d\d)(\d\d)(\d\d)(\d\d)(|\.\d+)Z$/),d)return l=d[1],t=parseInt(l),2===l.length&&(50<=t&&t<100?t=1900+t:0<=t&&t<50&&(t=2e3+t)),n=parseInt(d[2])-1,r=parseInt(d[3]),i=parseInt(d[4]),o=parseInt(d[5]),a=parseInt(d[6]),s=0,c=d[7],""!==c&&(u=(c.substr(1)+"00").substr(0,3),s=parseInt(u)),Date.UTC(t,n,r,i,o,a,s);throw new Error("unsupported zulu format: "+e)}function sr(e){return Math.round(ar(e)/1e3)}function lr(e){return new Date(ar(e))}function cr(e,t,n){var r,i=e.getUTCFullYear();if(t){if(i<1950||2049<i)throw"not proper year for UTCTime: "+i;r=(""+i).slice(-2)}else r=("000"+i).slice(-4);if(r+=("0"+(e.getUTCMonth()+1)).slice(-2),r+=("0"+e.getUTCDate()).slice(-2),r+=("0"+e.getUTCHours()).slice(-2),r+=("0"+e.getUTCMinutes()).slice(-2),r+=("0"+e.getUTCSeconds()).slice(-2),n){var o=e.getUTCMilliseconds();0!==o&&(o=("00"+o).slice(-3),o=o.replace(/0+$/g,""),r+="."+o)}return r+="Z",r}function ur(e){return e.replace(/%/g,"")}function dr(e){return e.replace(/(..)/g,"%$1")}function hr(e){var t="malformed IPv6 address";if(!e.match(/^[0-9A-Fa-f:]+$/))throw t;e=e.toLowerCase();var n=e.split(":").length-1;if(n<2)throw t;var r=":".repeat(7-n+2);e=e.replace("::",r);var i=e.split(":");if(8!=i.length)throw t;for(var o=0;o<8;o++)i[o]=("0000"+i[o]).slice(-4);return i.join("")}function pr(e){if(!e.match(/^[0-9A-Fa-f]{32}$/))throw new Error("malformed IPv6 address: "+e);e=e.toLowerCase();var t=e.match(/.{1,4}/g);t=t.map((function(e){return e.replace(/^0+/,"")})),t=t.map((function(e){return""==e?"0":e})),e=":"+t.join(":")+":";var n=e.match(/:(0:){2,}/g);if(null==n)return e.slice(1,-1);var r=n.sort().slice(-1)[0];return e=e.replace(r.substr(0,r.length-1),":"),"::"!=e.substr(0,2)&&(e=e.substr(1)),"::"!=e.substr(-2,2)&&(e=e.substr(0,e.length-1)),e}function fr(e){var t=new Error("malformed hex value");if(!e.match(/^([0-9A-Fa-f][0-9A-Fa-f]){1,}$/))throw t;if(8==e.length){var n;try{return n=parseInt(e.substr(0,2),16)+"."+parseInt(e.substr(2,2),16)+"."+parseInt(e.substr(4,2),16)+"."+parseInt(e.substr(6,2),16),n}catch(r){throw t}}else{if(16!=e.length){if(32==e.length)return pr(e);if(64==e.length){try{return pr(e.substr(0,32))+"/"+mr(e.substr(32))}catch(r){throw t}return}return e}try{return fr(e.substr(0,8))+"/"+mr(e.substr(8))}catch(r){throw t}}}function mr(e){var t,n=new Error("malformed mask");try{t=new m(e,16).toString(2)}catch(r){throw n}if(!t.match(/^1*0*$/))throw n;return t.replace(/0+$/,"").length}function gr(e){var t=new Error("malformed IP address");if(e=e.toLowerCase(e),!e.match(/^[0-9a-f.:/]+$/))throw t;if(!e.match(/^[0-9.]+$/)){if(e.match(/^[0-9.]+\/[0-9]+$/)){var n=e.split("/");return gr(n[0])+vr(parseInt(n[1]),32)}if(e.match(/^[0-9a-f:]+$/)&&-1!==e.indexOf(":"))return hr(e);if(e.match(/^[0-9a-f:]+\/[0-9]+$/)&&-1!==e.indexOf(":")){n=e.split("/");return hr(n[0])+vr(parseInt(n[1]),128)}throw t}var r=e.split(".");if(4!==r.length)throw t;var i="";try{for(var o=0;o<4;o++){var a=parseInt(r[o]);i+=("0"+a.toString(16)).slice(-2)}return i}catch(s){throw t}}function vr(e,t){if(32==t&&0==e)return"00000000";if(128==t&&0==e)return"00000000000000000000000000000000";var n=Array(e+1).join("1")+Array(t-e+1).join("0");return new m(n,2).toString(16)}function yr(e){function t(e){var t=parseInt(e.substr(0,2),16),n=parseInt(e.substr(2),16);if(0==t&n<128)return String.fromCharCode(n);if(t<8){var r=192|(7&t)<<3|(192&n)>>6,i=128|63&n;return qn(r.toString(16)+i.toString(16))}r=224|(240&t)>>4,i=128|(15&t)<<2|(192&n)>>6;var o=128|63&n;return qn(r.toString(16)+i.toString(16)+o.toString(16))}var n=e.match(/.{4}/g),r=n.map(t);return r.join("")}function br(e){for(var t=encodeURIComponent(e),n="",r=0;r<t.length;r++)"%"==t[r]?(n+=t.substr(r,3),r+=2):n=n+"%"+Fn(t[r]);return n}function _r(e){return e=e.replace(/\r\n/gm,"\n"),e}function wr(e){return e=e.replace(/\r\n/gm,"\n"),e=e.replace(/\n/gm,"\r\n"),e}function Er(e){return!(e.length%2!=0||!e.match(/^[0-9a-f]+$/)&&!e.match(/^[0-9A-F]+$/))}function Sr(e){return!!e.match(/^[0-9A-Za-z-_.]+$/)}function xr(e){return e.length%2==1?"0"+e:e.substr(0,1)>"7"?"00"+e:e}function kr(e){e=e.replace(/^\s*\[\s*/,""),e=e.replace(/\s*\]\s*$/,""),e=e.replace(/\s*/g,"");try{var t=e.split(/,/).map((function(e,t,n){var r=parseInt(e);if(r<0||255<r)throw"integer not in range 0-255";var i=("00"+r.toString(16)).slice(-2);return i})).join("");return t}catch(n){throw"malformed integer array string: "+n}}Dn.getLblen=function(e,t){if("8"!=e.substr(t+2,1))return 1;var n=parseInt(e.substr(t+3,1));return 0==n?-1:0<n&&n<10?n+1:-2},Dn.getL=function(e,t){var n=Dn.getLblen(e,t);return n<1?"":e.substr(t+2,2*n)},Dn.getVblen=function(e,t){var n,r;return n=Dn.getL(e,t),""==n?-1:(r="8"===n.substr(0,1)?new m(n.substr(2),16):new m(n,16),r.intValue())},Dn.getVidx=function(e,t){var n=Dn.getLblen(e,t);return n<0?n:t+2*(n+1)},Dn.getV=function(e,t){var n=Dn.getVidx(e,t),r=Dn.getVblen(e,t);return e.substr(n,2*r)},Dn.getTLV=function(e,t){return e.substr(t,2)+Dn.getL(e,t)+Dn.getV(e,t)},Dn.getTLVblen=function(e,t){return 2+2*Dn.getLblen(e,t)+2*Dn.getVblen(e,t)},Dn.getNextSiblingIdx=function(e,t){var n=Dn.getVidx(e,t),r=Dn.getVblen(e,t);return n+2*r},Dn.getChildIdx=function(e,t){var n,r,i,o=Dn,a=[];n=o.getVidx(e,t),r=2*o.getVblen(e,t),"03"==e.substr(t,2)&&(n+=2,r-=2),i=0;var s=n;while(i<=r){var l=o.getTLVblen(e,s);if(i+=l,i<=r&&a.push(s),s+=l,i>=r)break}return a},Dn.getNthChildIdx=function(e,t,n){var r=Dn.getChildIdx(e,t);return r[n]},Dn.getIdxbyList=function(e,t,n,r){var i,o,a=Dn;return 0==n.length?void 0!==r&&e.substr(t,2)!==r?-1:t:(i=n.shift(),o=a.getChildIdx(e,t),i>=o.length?-1:a.getIdxbyList(e,o[i],n,r))},Dn.getIdxbyListEx=function(e,t,n,r){var i,o,a=Dn;if(0==n.length)return void 0!==r&&e.substr(t,2)!==r?-1:t;i=n.shift(),o=a.getChildIdx(e,t);for(var s=0,l=0;l<o.length;l++){var c=e.substr(o[l],2);if("number"==typeof i&&!a.isContextTag(c)&&s==i||"string"==typeof i&&a.isContextTag(c,i))return a.getIdxbyListEx(e,o[l],n,r);a.isContextTag(c)||s++}return-1},Dn.getTLVbyList=function(e,t,n,r){var i=Dn,o=i.getIdxbyList(e,t,n,r);return-1==o||o>=e.length?null:i.getTLV(e,o)},Dn.getTLVbyListEx=function(e,t,n,r){var i=Dn,o=i.getIdxbyListEx(e,t,n,r);return-1==o?null:i.getTLV(e,o)},Dn.getVbyList=function(e,t,n,r,i){var o,a,s=Dn;return o=s.getIdxbyList(e,t,n,r),-1==o||o>=e.length?null:(a=s.getV(e,o),!0===i&&(a=a.substr(2)),a)},Dn.getVbyListEx=function(e,t,n,r,i){var o,a,s=Dn;return o=s.getIdxbyListEx(e,t,n,r),-1==o?null:(a=s.getV(e,o),"03"==e.substr(o,2)&&!1!==i&&(a=a.substr(2)),a)},Dn.getInt=function(e,t,n){void 0==n&&(n=-1);try{var r=e.substr(t,2);if("02"!=r&&"03"!=r)return n;var i=Dn.getV(e,t);return"02"==r?parseInt(i,16):Rr(i)}catch(o){return n}},Dn.getOID=function(e,t,n){void 0==n&&(n=null);try{if("06"!=e.substr(t,2))return n;var r=Dn.getV(e,t);return Tr(r)}catch(i){return n}},Dn.getOIDName=function(e,t,n){void 0==n&&(n=null);try{var r=Dn.getOID(e,t,n);if(r==n)return n;var i=Rn.asn1.x509.OID.oid2name(r);return""==i?r:i}catch(o){return n}},Dn.getString=function(e,t,n){void 0==n&&(n=null);try{var r=Dn.getV(e,t);return Qn(r)}catch(i){return n}},Dn.hextooidstr=function(e){var t=function(e,t){return e.length>=t?e:new Array(t-e.length+1).join("0")+e},n=[],r=e.substr(0,2),i=parseInt(r,16);n[0]=new String(Math.floor(i/40)),n[1]=new String(i%40);for(var o=e.substr(2),a=[],s=0;s<o.length/2;s++)a.push(parseInt(o.substr(2*s,2),16));var l=[],c="";for(s=0;s<a.length;s++)128&a[s]?c+=t((127&a[s]).toString(2),7):(c+=t((127&a[s]).toString(2),7),l.push(new String(parseInt(c,2))),c="");var u=n.join(".");return l.length>0&&(u=u+"."+l.join(".")),u},Dn.dump=function(e,t,n,r){var i=Dn,o=i.getV,a=i.dump,s=i.getChildIdx,l=e;e instanceof Rn.asn1.ASN1Object&&(l=e.tohex());var c=function(e,t){if(e.length<=2*t)return e;var n=e.substr(0,t)+"..(total "+e.length/2+"bytes).."+e.substr(e.length-t,t);return n};void 0===t&&(t={ommit_long_octet:32}),void 0===n&&(n=0),void 0===r&&(r="");var u=t.ommit_long_octet,d=l.substr(n,2);if("01"==d){var h=o(l,n);return"00"==h?r+"BOOLEAN FALSE\n":r+"BOOLEAN TRUE\n"}if("02"==d){h=o(l,n);return r+"INTEGER "+c(h,u)+"\n"}if("03"==d){h=o(l,n);if(i.isASN1HEX(h.substr(2))){var p=r+"BITSTRING, encapsulates\n";return p+=a(h.substr(2),t,0,r+" "),p}return r+"BITSTRING "+c(h,u)+"\n"}if("04"==d){h=o(l,n);if(i.isASN1HEX(h)){p=r+"OCTETSTRING, encapsulates\n";return p+=a(h,t,0,r+" "),p}return r+"OCTETSTRING "+c(h,u)+"\n"}if("05"==d)return r+"NULL\n";if("06"==d){var f=o(l,n),m=Rn.asn1.ASN1Util.oidHexToInt(f),g=Rn.asn1.x509.OID.oid2name(m),v=m.replace(/\./g," ");return""!=g?r+"ObjectIdentifier "+g+" ("+v+")\n":r+"ObjectIdentifier ("+v+")\n"}if("0a"==d)return r+"ENUMERATED "+parseInt(o(l,n))+"\n";if("0c"==d)return r+"UTF8String '"+qn(o(l,n))+"'\n";if("13"==d)return r+"PrintableString '"+qn(o(l,n))+"'\n";if("14"==d)return r+"TeletexString '"+qn(o(l,n))+"'\n";if("16"==d)return r+"IA5String '"+qn(o(l,n))+"'\n";if("17"==d)return r+"UTCTime "+qn(o(l,n))+"\n";if("18"==d)return r+"GeneralizedTime "+qn(o(l,n))+"\n";if("1a"==d)return r+"VisualString '"+qn(o(l,n))+"'\n";if("1e"==d)return r+"BMPString '"+yr(o(l,n))+"'\n";if("30"==d){if("3000"==l.substr(n,4))return r+"SEQUENCE {}\n";p=r+"SEQUENCE\n";var y=s(l,n),b=t;if((2==y.length||3==y.length)&&"06"==l.substr(y[0],2)&&"04"==l.substr(y[y.length-1],2)){g=i.oidname(o(l,y[0]));var _=JSON.parse(JSON.stringify(t));_.x509ExtName=g,b=_}for(var w=0;w<y.length;w++)p+=a(l,b,y[w],r+" ");return p}if("31"==d){for(p=r+"SET\n",y=s(l,n),w=0;w<y.length;w++)p+=a(l,t,y[w],r+" ");return p}d=parseInt(d,16);if(0!=(128&d)){var E=31&d;if(0!=(32&d)){for(p=r+"["+E+"]\n",y=s(l,n),w=0;w<y.length;w++)p+=a(l,t,y[w],r+" ");return p}h=o(l,n);if(Dn.isASN1HEX(h)){p=r+"["+E+"]\n";return p+=a(h,t,0,r+" "),p}("68747470"==h.substr(0,8)||"subjectAltName"===t.x509ExtName&&2==E)&&(h=qn(h));p=r+"["+E+"] "+h+"\n";return p}return r+"UNKNOWN("+d+") "+o(l,n)+"\n"},Dn.parse=function(e){var t=Dn,n=t.parse,r=t.isASN1HEX,i=t.getV,o=t.getTLV,a=t.getChildIdx,s=Rn.asn1,l=s.ASN1Util.oidHexToInt,c=s.x509.OID.oid2name,u=qn,d=yr,h=Wn,p={"0c":"utf8str",12:"numstr",13:"prnstr",14:"telstr",16:"ia5str",17:"utctime",18:"gentime","1a":"visstr","1e":"bmpstr",30:"seq",31:"set"},f=function(e){for(var t=[],r=a(e,0),i=0;i<r.length;i++){var s=r[i],l=o(e,s),c=n(l);t.push(c)}return t},m=e.substr(0,2),g={},v=i(e,0);if("01"==m)return"0101ff"==e?{bool:!0}:{bool:!1};if("02"==m)return{int:{hex:v}};if("03"==m)try{if("00"!=v.substr(0,2))throw"not encap";var y=v.substr(2);if(!r(y))throw"not encap";return{bitstr:{obj:n(y)}}}catch(Dt){var b=null;return v.length<=10&&(b=Ir(v)),null==b?{bitstr:{hex:v}}:{bitstr:{bin:b}}}else if("04"==m)try{if(!r(v))throw"not encap";return{octstr:{obj:n(v)}}}catch(Dt){return{octstr:{hex:v}}}else{if("05"==m)return{null:""};if("06"==m){var _=l(v),w=c(_);return""==w?{oid:_}:{oid:w}}if("0a"==m)return v.length>4?{enum:{hex:v}}:{enum:parseInt(v,16)};if("30"==m||"31"==m)return g[p[m]]=f(e),g;if("14"==m){var E=h(v);return g[p[m]]={str:E},g}if("1e"==m){E=d(v);return g[p[m]]={str:E},g}if(-1!=":0c:12:13:16:17:18:1a:".indexOf(m)){E=u(v);return g[p[m]]={str:E},g}if(m.match(/^8[0-9]$/)){E=u(v);return null==E|""==E||null!=E.match(/[\x00-\x1F\x7F-\x9F]/)||null!=E.match(/[\u0000-\u001F\u0080–\u009F]/)?{tag:{tag:m,explicit:!1,hex:v}}:{tag:{tag:m,explicit:!1,str:E}}}if(!m.match(/^a[0-9]$/)){var S=new Rn.asn1.ASN1Object;S.hV=v;var x=S.getLengthHexFromValue();return{asn1:{tlv:m+x+v}}}try{if(!r(v))throw new Error("not encap");return{tag:{tag:m,explicit:!0,obj:n(v)}}}catch(Dt){return{tag:{tag:m,explicit:!0,hex:v}}}}},Dn.isContextTag=function(e,t){var n,r;e=e.toLowerCase();try{n=parseInt(e,16)}catch(o){return-1}if(void 0===t)return 128==(192&n);try{var i=t.match(/^\[[0-9]+\]$/);return null!=i&&(r=parseInt(t.substr(1,t.length-1),10),!(r>31)&&(128==(192&n)&&(31&n)==r))}catch(o){return!1}},Dn.isASN1HEX=function(e){var t=Dn;if(e.length%2==1)return!1;var n=t.getVblen(e,0),r=e.substr(0,2),i=t.getL(e,0),o=e.length-r.length-i.length;return o==2*n},Dn.checkStrictDER=function(e,t,n,r,i){var o=Dn;if(void 0===n){if("string"!=typeof e)throw new Error("not hex string");if(e=e.toLowerCase(),!Rn.lang.String.isHex(e))throw new Error("not hex string");n=e.length,r=e.length/2,i=r<128?1:Math.ceil(r.toString(16))+1}var a=o.getL(e,t);if(a.length>2*i)throw new Error("L of TLV too long: idx="+t);var s=o.getVblen(e,t);if(s>r)throw new Error("value of L too long than hex: idx="+t);var l=o.getTLV(e,t),c=l.length-2-o.getL(e,t).length;if(c!==2*s)throw new Error("V string length and L's value not the same:"+c+"/"+2*s);if(0===t&&e.length!=l.length)throw new Error("total length and TLV length unmatch:"+e.length+"!="+l.length);var u=e.substr(t,2);if("02"===u){var d=o.getVidx(e,t);if("00"==e.substr(d,2)&&e.charCodeAt(d+2)<56)throw new Error("not least zeros for DER INTEGER")}if(32&parseInt(u,16)){for(var h=o.getVblen(e,t),p=0,f=o.getChildIdx(e,t),m=0;m<f.length;m++){var g=o.getTLV(e,f[m]);p+=g.length,o.checkStrictDER(e,f[m],n,r,i)}if(2*h!=p)throw new Error("sum of children's TLV length and L unmatch: "+2*h+"!="+p)}},Dn.oidname=function(e){var t=Rn.asn1;Rn.lang.String.isHex(e)&&(e=t.ASN1Util.oidHexToInt(e));var n=t.x509.OID.oid2name(e);return""===n&&(n=e),n},"undefined"!=typeof Rn&&Rn||(Rn={}),"undefined"!=typeof Rn.asn1&&Rn.asn1||(Rn.asn1={}),"undefined"!=typeof Rn.asn1.x509&&Rn.asn1.x509||(Rn.asn1.x509={}),Rn.asn1.x509.Certificate=function(e){Rn.asn1.x509.Certificate.superclass.constructor.call(this);var t=Rn,n=t.asn1,r=n.DERBitString,i=n.DERSequence,o=n.x509,a=o.TBSCertificate,s=o.AlgorithmIdentifier;this.params=void 0,this.setByParam=function(e){this.params=e},this.sign=function(){var e=this.params,t=e.sigalg;void 0!=e.sigalg.name&&(t=e.sigalg.name);var n=e.tbsobj.tohex(),r=new Rn.crypto.Signature({alg:t});r.init(e.cakey),r.updateHex(n),e.sighex=r.sign()},this.getPEM=function(){return nr(this.tohex(),"CERTIFICATE")},this.tohex=function(){var e=this.params;if(void 0!=e.tbsobj&&null!=e.tbsobj||(e.tbsobj=new a(e)),void 0==e.sighex&&void 0!=e.cakey&&this.sign(),void 0==e.sighex)throw new Error("sighex or cakey parameter not defined");var t=[];t.push(e.tbsobj),t.push(new s({name:e.sigalg})),t.push(new r({hex:"00"+e.sighex}));var n=new i({array:t});return n.tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!=e&&(this.params=e)},Pr(Rn.asn1.x509.Certificate,Rn.asn1.ASN1Object),Rn.asn1.x509.TBSCertificate=function(e){Rn.asn1.x509.TBSCertificate.superclass.constructor.call(this);var t=Rn,n=t.asn1,r=n.x509,i=n.DERTaggedObject,o=n.DERInteger,a=n.DERSequence,s=r.AlgorithmIdentifier,l=r.Time,c=r.X500Name,u=r.Extensions,d=r.SubjectPublicKeyInfo;this.params=null,this.setByParam=function(e){this.params=e},this.tohex=function(){var e=[],t=this.params;if(void 0!=t.version||1!=t.version){var n=2;void 0!=t.version&&(n=t.version-1);var r=new i({obj:new o({int:n})});e.push(r)}e.push(new o(t.serial)),e.push(new s({name:t.sigalg})),e.push(new c(t.issuer)),e.push(new a({array:[new l(t.notbefore),new l(t.notafter)]})),e.push(new c(t.subject)),e.push(new d(Mr.getKey(t.sbjpubkey))),void 0!==t.ext&&t.ext.length>0&&e.push(new i({tag:"a3",obj:new u(t.ext)}));var h=new Rn.asn1.DERSequence({array:e});return h.tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&this.setByParam(e)},Pr(Rn.asn1.x509.TBSCertificate,Rn.asn1.ASN1Object),Rn.asn1.x509.Extensions=function(e){Rn.asn1.x509.Extensions.superclass.constructor.call(this);var t=Rn,n=t.asn1,r=n.DERSequence,i=n.x509;this.aParam=[],this.setByParam=function(e){this.aParam=e},this.tohex=function(){for(var e=[],t=0;t<this.aParam.length;t++){var n=this.aParam[t],o=n.extname,a=null;if(void 0!=n.extn)a=new i.PrivateExtension(n);else if("subjectKeyIdentifier"==o)a=new i.SubjectKeyIdentifier(n);else if("keyUsage"==o)a=new i.KeyUsage(n);else if("subjectAltName"==o)a=new i.SubjectAltName(n);else if("issuerAltName"==o)a=new i.IssuerAltName(n);else if("basicConstraints"==o)a=new i.BasicConstraints(n);else if("nameConstraints"==o)a=new i.NameConstraints(n);else if("cRLDistributionPoints"==o)a=new i.CRLDistributionPoints(n);else if("certificatePolicies"==o)a=new i.CertificatePolicies(n);else if("authorityKeyIdentifier"==o)a=new i.AuthorityKeyIdentifier(n);else if("extKeyUsage"==o)a=new i.ExtKeyUsage(n);else if("authorityInfoAccess"==o)a=new i.AuthorityInfoAccess(n);else if("cRLNumber"==o)a=new i.CRLNumber(n);else if("cRLReason"==o)a=new i.CRLReason(n);else if("ocspNonce"==o)a=new i.OCSPNonce(n);else if("ocspNoCheck"==o)a=new i.OCSPNoCheck(n);else if("adobeTimeStamp"==o)a=new i.AdobeTimeStamp(n);else{if("subjectDirectoryAttributes"!=o)throw new Error("extension not supported:"+JSON.stringify(n));a=new i.SubjectDirectoryAttributes(n)}null!=a&&e.push(a)}var s=new r({array:e});return s.tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!=e&&this.setByParam(e)},Pr(Rn.asn1.x509.Extensions,Rn.asn1.ASN1Object),Rn.asn1.x509.Extension=function(e){Rn.asn1.x509.Extension.superclass.constructor.call(this);var t=Rn,n=t.asn1,r=n.DERObjectIdentifier,i=n.DEROctetString,o=(n.DERBitString,n.DERBoolean),a=n.DERSequence;this.tohex=function(){var e=new r({oid:this.oid}),t=new i({hex:this.getExtnValueHex()}),n=new Array;n.push(e),this.critical&&n.push(new o),n.push(t);var s=new a({array:n});return s.tohex()},this.getEncodedHex=function(){return this.tohex()},this.critical=!1,void 0!==e&&void 0!==e.critical&&(this.critical=e.critical)},Pr(Rn.asn1.x509.Extension,Rn.asn1.ASN1Object),Rn.asn1.x509.KeyUsage=function(e){Rn.asn1.x509.KeyUsage.superclass.constructor.call(this,e);var t=Error,n={digitalSignature:0,nonRepudiation:1,keyEncipherment:2,dataEncipherment:3,keyAgreement:4,keyCertSign:5,cRLSign:6,encipherOnly:7,decipherOnly:8};this.getExtnValueHex=function(){var e=this.getBinValue();return this.asn1ExtnValue=new Rn.asn1.DERBitString({bin:e}),this.asn1ExtnValue.tohex()},this.getBinValue=function(){var e=this.params;if("object"!=typeof e||"object"!=typeof e.names&&"string"!=typeof e.bin)throw new t("parameter not yet set");if(void 0!=e.names)return Lr(e.names,n);if(void 0!=e.bin)return e.bin;throw new t("parameter not set properly")},this.oid="2.5.29.15",void 0!==e&&(this.params=e)},Pr(Rn.asn1.x509.KeyUsage,Rn.asn1.x509.Extension),Rn.asn1.x509.BasicConstraints=function(e){Rn.asn1.x509.BasicConstraints.superclass.constructor.call(this,e);var t=Rn.asn1,n=t.DERBoolean,r=t.DERInteger,i=t.DERSequence;this.getExtnValueHex=function(){var e=new Array;this.cA&&e.push(new n),this.pathLen>-1&&e.push(new r({int:this.pathLen}));var t=new i({array:e});return this.asn1ExtnValue=t,this.asn1ExtnValue.tohex()},this.oid="2.5.29.19",this.cA=!1,this.pathLen=-1,void 0!==e&&(void 0!==e.cA&&(this.cA=e.cA),void 0!==e.pathLen&&(this.pathLen=e.pathLen))},Pr(Rn.asn1.x509.BasicConstraints,Rn.asn1.x509.Extension),Rn.asn1.x509.CRLDistributionPoints=function(e){Rn.asn1.x509.CRLDistributionPoints.superclass.constructor.call(this,e);var t=Rn,n=t.asn1,r=n.x509;this.getExtnValueHex=function(){return this.asn1ExtnValue.tohex()},this.setByDPArray=function(e){for(var t=[],i=0;i<e.length;i++)if(e[i]instanceof Rn.asn1.ASN1Object)t.push(e[i]);else{var o=new r.DistributionPoint(e[i]);t.push(o)}this.asn1ExtnValue=new n.DERSequence({array:t})},this.setByOneURI=function(e){var t=new r.DistributionPoint({fulluri:e});this.setByDPArray([t])},this.oid="2.5.29.31",void 0!==e&&(void 0!==e.array?this.setByDPArray(e.array):void 0!==e.uri&&this.setByOneURI(e.uri))},Pr(Rn.asn1.x509.CRLDistributionPoints,Rn.asn1.x509.Extension),Rn.asn1.x509.DistributionPoint=function(e){Rn.asn1.x509.DistributionPoint.superclass.constructor.call(this);var t=Rn,n=t.asn1,r=n.x509.DistributionPointName;this.tohex=function(){var e=new n.DERSequence;if(null!=this.asn1DP){var t=new n.DERTaggedObject({explicit:!0,tag:"a0",obj:this.asn1DP});e.appendASN1Object(t)}return this.hTLV=e.tohex(),this.hTLV},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&(void 0!==e.dpobj?this.asn1DP=e.dpobj:void 0!==e.dpname?this.asn1DP=new r(e.dpname):void 0!==e.fulluri&&(this.asn1DP=new r({full:[{uri:e.fulluri}]})))},Pr(Rn.asn1.x509.DistributionPoint,Rn.asn1.ASN1Object),Rn.asn1.x509.DistributionPointName=function(e){Rn.asn1.x509.DistributionPointName.superclass.constructor.call(this);var t=Rn,n=t.asn1,r=n.DERTaggedObject;if(this.tohex=function(){if("full"!=this.type)throw new Error("currently type shall be 'full': "+this.type);return this.asn1Obj=new r({explicit:!1,tag:this.tag,obj:this.asn1V}),this.hTLV=this.asn1Obj.tohex(),this.hTLV},this.getEncodedHex=function(){return this.tohex()},void 0!==e)if(n.x509.GeneralNames.prototype.isPrototypeOf(e))this.type="full",this.tag="a0",this.asn1V=e;else{if(void 0===e.full)throw new Error("This class supports GeneralNames only as argument");this.type="full",this.tag="a0",this.asn1V=new n.x509.GeneralNames(e.full)}},Pr(Rn.asn1.x509.DistributionPointName,Rn.asn1.ASN1Object),Rn.asn1.x509.CertificatePolicies=function(e){Rn.asn1.x509.CertificatePolicies.superclass.constructor.call(this,e);var t=Rn,n=t.asn1,r=n.x509,i=n.DERSequence,o=r.PolicyInformation;this.params=null,this.getExtnValueHex=function(){for(var e=[],t=0;t<this.params.array.length;t++)e.push(new o(this.params.array[t]));var n=new i({array:e});return this.asn1ExtnValue=n,this.asn1ExtnValue.tohex()},this.oid="2.5.29.32",void 0!==e&&(this.params=e)},Pr(Rn.asn1.x509.CertificatePolicies,Rn.asn1.x509.Extension),Rn.asn1.x509.PolicyInformation=function(e){Rn.asn1.x509.PolicyInformation.superclass.constructor.call(this,e);var t=Rn.asn1,n=t.DERSequence,r=t.DERObjectIdentifier,i=t.x509.PolicyQualifierInfo;this.params=null,this.tohex=function(){if(void 0===this.params.policyoid&&void 0===this.params.array)throw new Error("parameter oid and array missing");var e=[new r(this.params.policyoid)];if(void 0!==this.params.array){for(var t=[],o=0;o<this.params.array.length;o++)t.push(new i(this.params.array[o]));t.length>0&&e.push(new n({array:t}))}var a=new n({array:e});return a.tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&(this.params=e)},Pr(Rn.asn1.x509.PolicyInformation,Rn.asn1.ASN1Object),Rn.asn1.x509.PolicyQualifierInfo=function(e){Rn.asn1.x509.PolicyQualifierInfo.superclass.constructor.call(this,e);var t=Rn.asn1,n=t.DERSequence,r=t.DERIA5String,i=t.DERObjectIdentifier,o=t.x509.UserNotice;this.params=null,this.tohex=function(){if(void 0!==this.params.cps){var e=new n({array:[new i({oid:"1.3.6.1.5.5.7.2.1"}),new r({str:this.params.cps})]});return e.tohex()}if(void 0!=this.params.unotice){e=new n({array:[new i({oid:"1.3.6.1.5.5.7.2.2"}),new o(this.params.unotice)]});return e.tohex()}},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&(this.params=e)},Pr(Rn.asn1.x509.PolicyQualifierInfo,Rn.asn1.ASN1Object),Rn.asn1.x509.UserNotice=function(e){Rn.asn1.x509.UserNotice.superclass.constructor.call(this,e);var t=Rn.asn1.DERSequence,n=(Rn.asn1.DERInteger,Rn.asn1.x509.DisplayText),r=Rn.asn1.x509.NoticeReference;this.params=null,this.tohex=function(){var e=[];void 0!==this.params.noticeref&&e.push(new r(this.params.noticeref)),void 0!==this.params.exptext&&e.push(new n(this.params.exptext));var i=new t({array:e});return i.tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&(this.params=e)},Pr(Rn.asn1.x509.UserNotice,Rn.asn1.ASN1Object),Rn.asn1.x509.NoticeReference=function(e){Rn.asn1.x509.NoticeReference.superclass.constructor.call(this,e);var t=Rn.asn1.DERSequence,n=Rn.asn1.DERInteger,r=Rn.asn1.x509.DisplayText;this.params=null,this.tohex=function(){var e=[];if(void 0!==this.params.org&&e.push(new r(this.params.org)),void 0!==this.params.noticenum){for(var i=[],o=this.params.noticenum,a=0;a<o.length;a++)i.push(new n(o[a]));e.push(new t({array:i}))}if(0==e.length)throw new Error("parameter is empty");var s=new t({array:e});return s.tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&(this.params=e)},Pr(Rn.asn1.x509.NoticeReference,Rn.asn1.ASN1Object),Rn.asn1.x509.DisplayText=function(e){Rn.asn1.x509.DisplayText.superclass.constructor.call(this,e),this.hT="0c",void 0!==e&&("ia5"===e.type?this.hT="16":"vis"===e.type?this.hT="1a":"bmp"===e.type&&(this.hT="1e"))},Pr(Rn.asn1.x509.DisplayText,Rn.asn1.DERAbstractString),Rn.asn1.x509.NameConstraints=function(e){Rn.asn1.x509.NameConstraints.superclass.constructor.call(this,e);var t=Rn,n=t.asn1,r=n.x509,i=n.ASN1Util.newObject,o=r.GeneralSubtree;this.params=null,this.getExtnValueHex=function(){var e=this.params,t=[];if(void 0!=e.permit&&void 0!=e.permit.length){for(var n=[],r=0;r<e.permit.length;r++)n.push(new o(e.permit[r]));t.push({tag:{tagi:"a0",obj:{seq:n}}})}if(void 0!=e.exclude&&void 0!=e.exclude.length){var a=[];for(r=0;r<e.exclude.length;r++)a.push(new o(e.exclude[r]));t.push({tag:{tagi:"a1",obj:{seq:a}}})}return this.asn1ExtnValue=i({seq:t}),this.asn1ExtnValue.tohex()},this.oid="2.5.29.30",void 0!==e&&(this.params=e)},Pr(Rn.asn1.x509.NameConstraints,Rn.asn1.x509.Extension),Rn.asn1.x509.GeneralSubtree=function(e){Rn.asn1.x509.GeneralSubtree.superclass.constructor.call(this);var t=Rn.asn1,n=t.x509,r=n.GeneralName,i=t.ASN1Util.newObject;this.params=null,this.setByParam=function(e){this.params=e},this.tohex=function(){var e=this.params,t=[new r(e)];void 0!=e.min&&t.push({tag:{tagi:"80",obj:{int:e.min}}}),void 0!=e.max&&t.push({tag:{tagi:"81",obj:{int:e.max}}});var n=i({seq:t});return n.tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&this.setByParam(e)},Pr(Rn.asn1.x509.GeneralSubtree,Rn.asn1.ASN1Object),Rn.asn1.x509.ExtKeyUsage=function(e){Rn.asn1.x509.ExtKeyUsage.superclass.constructor.call(this,e);var t=Rn,n=t.asn1;this.setPurposeArray=function(e){this.asn1ExtnValue=new n.DERSequence;for(var t=0;t<e.length;t++){var r=new n.DERObjectIdentifier(e[t]);this.asn1ExtnValue.appendASN1Object(r)}},this.getExtnValueHex=function(){return this.asn1ExtnValue.tohex()},this.oid="2.5.29.37",void 0!==e&&void 0!==e.array&&this.setPurposeArray(e.array)},Pr(Rn.asn1.x509.ExtKeyUsage,Rn.asn1.x509.Extension),Rn.asn1.x509.AuthorityKeyIdentifier=function(e){Rn.asn1.x509.AuthorityKeyIdentifier.superclass.constructor.call(this,e);var t=Rn,n=t.asn1,r=n.DERTaggedObject,i=n.x509.GeneralNames;t.crypto.Util.isKey;this.asn1KID=null,this.asn1CertIssuer=null,this.asn1CertSN=null,this.getExtnValueHex=function(){var e=new Array;this.asn1KID&&e.push(new r({explicit:!1,tag:"80",obj:this.asn1KID})),this.asn1CertIssuer&&e.push(new r({explicit:!1,tag:"a1",obj:new i([{dn:this.asn1CertIssuer}])})),this.asn1CertSN&&e.push(new r({explicit:!1,tag:"82",obj:this.asn1CertSN}));var t=new n.DERSequence({array:e});return this.asn1ExtnValue=t,this.asn1ExtnValue.tohex()},this.setKIDByParam=function(e){if(void 0!==e.str||void 0!==e.hex)this.asn1KID=new Rn.asn1.DEROctetString(e);else if("object"===typeof e&&Rn.crypto.Util.isKey(e)||"string"===typeof e&&-1!=e.indexOf("BEGIN ")){var t=e;"string"===typeof e&&(t=Mr.getKey(e));var n=Mr.getKeyID(t);this.asn1KID=new Rn.asn1.DEROctetString({hex:n})}},this.setCertIssuerByParam=function(e){void 0!==e.str||void 0!==e.ldapstr||void 0!==e.hex||void 0!==e.certsubject||void 0!==e.certissuer?this.asn1CertIssuer=new Rn.asn1.x509.X500Name(e):"string"===typeof e&&-1!=e.indexOf("BEGIN ")&&-1!=e.indexOf("CERTIFICATE")&&(this.asn1CertIssuer=new Rn.asn1.x509.X500Name({certissuer:e}))},this.setCertSNByParam=function(e){if(void 0!==e.str||void 0!==e.bigint||void 0!==e.hex)this.asn1CertSN=new Rn.asn1.DERInteger(e);else if("string"===typeof e&&-1!=e.indexOf("BEGIN ")&&e.indexOf("CERTIFICATE")){var t=new jr;t.readCertPEM(e);var n=t.getSerialNumberHex();this.asn1CertSN=new Rn.asn1.DERInteger({hex:n})}},this.oid="2.5.29.35",void 0!==e&&(void 0!==e.kid&&this.setKIDByParam(e.kid),void 0!==e.issuer&&this.setCertIssuerByParam(e.issuer),void 0!==e.sn&&this.setCertSNByParam(e.sn),void 0!==e.issuersn&&"string"===typeof e.issuersn&&-1!=e.issuersn.indexOf("BEGIN ")&&e.issuersn.indexOf("CERTIFICATE")&&(this.setCertSNByParam(e.issuersn),this.setCertIssuerByParam(e.issuersn)))},Pr(Rn.asn1.x509.AuthorityKeyIdentifier,Rn.asn1.x509.Extension),Rn.asn1.x509.SubjectKeyIdentifier=function(e){Rn.asn1.x509.SubjectKeyIdentifier.superclass.constructor.call(this,e);var t=Rn,n=t.asn1,r=n.DEROctetString;this.asn1KID=null,this.getExtnValueHex=function(){return this.asn1ExtnValue=this.asn1KID,this.asn1ExtnValue.tohex()},this.setKIDByParam=function(e){if(void 0!==e.str||void 0!==e.hex)this.asn1KID=new r(e);else if("object"===typeof e&&Rn.crypto.Util.isKey(e)||"string"===typeof e&&-1!=e.indexOf("BEGIN")){var t=e;"string"===typeof e&&(t=Mr.getKey(e));var n=Mr.getKeyID(t);this.asn1KID=new Rn.asn1.DEROctetString({hex:n})}},this.oid="2.5.29.14",void 0!==e&&void 0!==e.kid&&this.setKIDByParam(e.kid)},Pr(Rn.asn1.x509.SubjectKeyIdentifier,Rn.asn1.x509.Extension),Rn.asn1.x509.AuthorityInfoAccess=function(e){Rn.asn1.x509.AuthorityInfoAccess.superclass.constructor.call(this,e),this.setAccessDescriptionArray=function(e){for(var t=new Array,n=Rn,r=n.asn1,i=r.DERSequence,o=r.DERObjectIdentifier,a=r.x509.GeneralName,s=0;s<e.length;s++){var l,c=e[s];if(void 0!==c.ocsp)l=new i({array:[new o({oid:"1.3.6.1.5.5.7.48.1"}),new a({uri:c.ocsp})]});else{if(void 0===c.caissuer)throw new Error("unknown AccessMethod parameter: "+JSON.stringify(c));l=new i({array:[new o({oid:"1.3.6.1.5.5.7.48.2"}),new a({uri:c.caissuer})]})}t.push(l)}this.asn1ExtnValue=new i({array:t})},this.getExtnValueHex=function(){return this.asn1ExtnValue.tohex()},this.oid="1.3.6.1.5.5.7.1.1",void 0!==e&&void 0!==e.array&&this.setAccessDescriptionArray(e.array)},Pr(Rn.asn1.x509.AuthorityInfoAccess,Rn.asn1.x509.Extension),Rn.asn1.x509.SubjectAltName=function(e){Rn.asn1.x509.SubjectAltName.superclass.constructor.call(this,e),this.setNameArray=function(e){this.asn1ExtnValue=new Rn.asn1.x509.GeneralNames(e)},this.getExtnValueHex=function(){return this.asn1ExtnValue.tohex()},this.oid="2.5.29.17",void 0!==e&&void 0!==e.array&&this.setNameArray(e.array)},Pr(Rn.asn1.x509.SubjectAltName,Rn.asn1.x509.Extension),Rn.asn1.x509.IssuerAltName=function(e){Rn.asn1.x509.IssuerAltName.superclass.constructor.call(this,e),this.setNameArray=function(e){this.asn1ExtnValue=new Rn.asn1.x509.GeneralNames(e)},this.getExtnValueHex=function(){return this.asn1ExtnValue.tohex()},this.oid="2.5.29.18",void 0!==e&&void 0!==e.array&&this.setNameArray(e.array)},Pr(Rn.asn1.x509.IssuerAltName,Rn.asn1.x509.Extension),Rn.asn1.x509.SubjectDirectoryAttributes=function(e){Rn.asn1.x509.SubjectDirectoryAttributes.superclass.constructor.call(this,e);var t=Rn.asn1,n=t.DERSequence,r=t.ASN1Util.newObject,i=t.x509.OID.name2oid;this.params=null,this.getExtnValueHex=function(){for(var e=[],t=0;t<this.params.array.length;t++){var o=this.params.array[t],a={seq:[{oid:"1.2.3.4"},{set:[{utf8str:"DE"}]}]};if("dateOfBirth"==o.attr)a.seq[0].oid=i(o.attr),a.seq[1].set[0]={gentime:o.str};else if("placeOfBirth"==o.attr)a.seq[0].oid=i(o.attr),a.seq[1].set[0]={utf8str:o.str};else if("gender"==o.attr)a.seq[0].oid=i(o.attr),a.seq[1].set[0]={prnstr:o.str};else if("countryOfCitizenship"==o.attr)a.seq[0].oid=i(o.attr),a.seq[1].set[0]={prnstr:o.str};else{if("countryOfResidence"!=o.attr)throw new Error("unsupported attribute: "+o.attr);a.seq[0].oid=i(o.attr),a.seq[1].set[0]={prnstr:o.str}}e.push(new r(a))}var s=new n({array:e});return this.asn1ExtnValue=s,this.asn1ExtnValue.tohex()},this.oid="2.5.29.9",void 0!==e&&(this.params=e)},Pr(Rn.asn1.x509.SubjectDirectoryAttributes,Rn.asn1.x509.Extension),Rn.asn1.x509.PrivateExtension=function(e){Rn.asn1.x509.PrivateExtension.superclass.constructor.call(this,e);var t=Rn,n=t.lang.String.isHex,r=t.asn1,i=r.x509.OID.name2oid,o=r.ASN1Util.newObject;this.params=null,this.setByParam=function(e){this.oid=i(e.extname),this.params=e},this.getExtnValueHex=function(){if(void 0==this.params.extname||void 0==this.params.extn)throw new Error("extname or extnhex not specified");var e=this.params.extn;if("string"==typeof e&&n(e))return e;if("object"==typeof e)try{return o(e).tohex()}catch(t){}throw new Error("unsupported extn value")},void 0!=e&&this.setByParam(e)},Pr(Rn.asn1.x509.PrivateExtension,Rn.asn1.x509.Extension),Rn.asn1.x509.CRL=function(e){Rn.asn1.x509.CRL.superclass.constructor.call(this);var t=Rn,n=t.asn1,r=n.DERSequence,i=n.DERBitString,o=n.x509,a=o.AlgorithmIdentifier,s=o.TBSCertList;this.params=void 0,this.setByParam=function(e){this.params=e},this.sign=function(){var e=new s(this.params).tohex(),t=new Rn.crypto.Signature({alg:this.params.sigalg});t.init(this.params.cakey),t.updateHex(e);var n=t.sign();this.params.sighex=n},this.getPEM=function(){return nr(this.tohex(),"X509 CRL")},this.tohex=function(){var e=this.params;if(void 0==e.tbsobj&&(e.tbsobj=new s(e)),void 0==e.sighex&&void 0!=e.cakey&&this.sign(),void 0==e.sighex)throw new Error("sighex or cakey parameter not defined");var t=[];t.push(e.tbsobj),t.push(new a({name:e.sigalg})),t.push(new i({hex:"00"+e.sighex}));var n=new r({array:t});return n.tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!=e&&(this.params=e)},Pr(Rn.asn1.x509.CRL,Rn.asn1.ASN1Object),Rn.asn1.x509.TBSCertList=function(e){Rn.asn1.x509.TBSCertList.superclass.constructor.call(this);var t=Rn,n=t.asn1,r=n.DERInteger,i=n.DERSequence,o=n.DERTaggedObject,a=(n.DERObjectIdentifier,n.x509),s=a.AlgorithmIdentifier,l=a.Time,c=a.Extensions,u=a.X500Name;this.params=null,this.setByParam=function(e){this.params=e},this.getRevCertSequence=function(){for(var e=[],t=this.params.revcert,n=0;n<t.length;n++){var o=[new r(t[n].sn),new l(t[n].date)];void 0!=t[n].ext&&o.push(new c(t[n].ext)),e.push(new i({array:o}))}return new i({array:e})},this.tohex=function(){var e=[],t=this.params;if(void 0!=t.version){var n=t.version-1,a=new r({int:n});e.push(a)}if(e.push(new s({name:t.sigalg})),e.push(new u(t.issuer)),e.push(new l(t.thisupdate)),void 0!=t.nextupdate&&e.push(new l(t.nextupdate)),void 0!=t.revcert&&e.push(this.getRevCertSequence()),void 0!=t.ext){var d=new c(t.ext);e.push(new o({tag:"a0",explicit:!0,obj:d}))}var h=new i({array:e});return h.tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&this.setByParam(e)},Pr(Rn.asn1.x509.TBSCertList,Rn.asn1.ASN1Object),Rn.asn1.x509.CRLEntry=function(e){Rn.asn1.x509.CRLEntry.superclass.constructor.call(this);var t=Rn,n=t.asn1;this.setCertSerial=function(e){this.sn=new n.DERInteger(e)},this.setRevocationDate=function(e){this.time=new n.x509.Time(e)},this.tohex=function(){var e=new n.DERSequence({array:[this.sn,this.time]});return this.TLV=e.tohex(),this.TLV},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&(void 0!==e.time&&this.setRevocationDate(e.time),void 0!==e.sn&&this.setCertSerial(e.sn))},Pr(Rn.asn1.x509.CRLEntry,Rn.asn1.ASN1Object),Rn.asn1.x509.CRLNumber=function(e){Rn.asn1.x509.CRLNumber.superclass.constructor.call(this,e),this.params=void 0,this.getExtnValueHex=function(){return this.asn1ExtnValue=new Rn.asn1.DERInteger(this.params.num),this.asn1ExtnValue.tohex()},this.oid="2.5.29.20",void 0!=e&&(this.params=e)},Pr(Rn.asn1.x509.CRLNumber,Rn.asn1.x509.Extension),Rn.asn1.x509.CRLReason=function(e){Rn.asn1.x509.CRLReason.superclass.constructor.call(this,e),this.params=void 0,this.getExtnValueHex=function(){return this.asn1ExtnValue=new Rn.asn1.DEREnumerated(this.params.code),this.asn1ExtnValue.tohex()},this.oid="2.5.29.21",void 0!=e&&(this.params=e)},Pr(Rn.asn1.x509.CRLReason,Rn.asn1.x509.Extension),Rn.asn1.x509.OCSPNonce=function(e){Rn.asn1.x509.OCSPNonce.superclass.constructor.call(this,e),this.params=void 0,this.getExtnValueHex=function(){return this.asn1ExtnValue=new Rn.asn1.DEROctetString(this.params),this.asn1ExtnValue.tohex()},this.oid="1.3.6.1.5.5.7.48.1.2",void 0!=e&&(this.params=e)},Pr(Rn.asn1.x509.OCSPNonce,Rn.asn1.x509.Extension),Rn.asn1.x509.OCSPNoCheck=function(e){Rn.asn1.x509.OCSPNoCheck.superclass.constructor.call(this,e),this.params=void 0,this.getExtnValueHex=function(){return this.asn1ExtnValue=new Rn.asn1.DERNull,this.asn1ExtnValue.tohex()},this.oid="1.3.6.1.5.5.7.48.1.5",void 0!=e&&(this.params=e)},Pr(Rn.asn1.x509.OCSPNoCheck,Rn.asn1.x509.Extension),Rn.asn1.x509.AdobeTimeStamp=function(e){Rn.asn1.x509.AdobeTimeStamp.superclass.constructor.call(this,e);var t=Rn,n=t.asn1,r=n.DERInteger,i=n.DERBoolean,o=n.DERSequence,a=n.x509.GeneralName;this.params=null,this.getExtnValueHex=function(){var e=this.params,t=[new r(1)];return t.push(new a({uri:e.uri})),void 0!=e.reqauth&&t.push(new i(e.reqauth)),this.asn1ExtnValue=new o({array:t}),this.asn1ExtnValue.tohex()},this.oid="1.2.840.113583.1.1.9.1",void 0!==e&&this.setByParam(e)},Pr(Rn.asn1.x509.AdobeTimeStamp,Rn.asn1.x509.Extension),Rn.asn1.x509.X500Name=function(e){Rn.asn1.x509.X500Name.superclass.constructor.call(this),this.asn1Array=[],this.paramArray=[],this.sRule="utf8";var t=Rn,n=t.asn1,r=n.x509,i=r.RDN;this.setByString=function(e,t){void 0!==t&&(this.sRule=t);var n=e.split("/");n.shift();for(var r=[],o=0;o<n.length;o++)if(n[o].match(/^[^=]+=.+$/))r.push(n[o]);else{var a=r.length-1;r[a]=r[a]+"/"+n[o]}for(o=0;o<r.length;o++)this.asn1Array.push(new i({str:r[o],rule:this.sRule}))},this.setByLdapString=function(e,t){void 0!==t&&(this.sRule=t);var n=r.X500Name.ldapToCompat(e);this.setByString(n,t)},this.setByObject=function(e,t){for(var n in void 0!==t&&(this.sRule=t),e)if(e.hasOwnProperty(n)){var r=new i({str:n+"="+e[n],rule:this.sRule});this.asn1Array?this.asn1Array.push(r):this.asn1Array=[r]}},this.setByParam=function(e){if(void 0!==e.rule&&(this.sRule=e.rule),void 0!==e.array)this.paramArray=e.array;else if(void 0!==e.str)this.setByString(e.str);else if(void 0!==e.ldapstr)this.setByLdapString(e.ldapstr);else if(void 0!==e.hex)this.hTLV=e.hex;else if(void 0!==e.certissuer){var t=new jr;t.readCertPEM(e.certissuer),this.hTLV=t.getIssuerHex()}else if(void 0!==e.certsubject){t=new jr;t.readCertPEM(e.certsubject),this.hTLV=t.getSubjectHex()}else"object"===typeof e&&void 0===e.certsubject&&void 0===e.certissuer&&this.setByObject(e)},this.tohex=function(){if("string"==typeof this.hTLV)return this.hTLV;if(0==this.asn1Array.length&&this.paramArray.length>0)for(var e=0;e<this.paramArray.length;e++){var t={array:this.paramArray[e]};"utf8"!=this.sRule&&(t.rule=this.sRule);var r=new i(t);this.asn1Array.push(r)}var o=new n.DERSequence({array:this.asn1Array});return this.hTLV=o.tohex(),this.hTLV},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&this.setByParam(e)},Pr(Rn.asn1.x509.X500Name,Rn.asn1.ASN1Object),Rn.asn1.x509.X500Name.compatToLDAP=function(e){if("/"!==e.substr(0,1))throw"malformed input";e=e.substr(1);var t=e.split("/");return t.reverse(),t=t.map((function(e){return e.replace(/,/,"\\,")})),t.join(",")},Rn.asn1.x509.X500Name.onelineToLDAP=function(e){return Rn.asn1.x509.X500Name.compatToLDAP(e)},Rn.asn1.x509.X500Name.ldapToCompat=function(e){for(var t=e.split(","),n=!1,r=[],i=0;t.length>0;i++){var o=t.shift();if(!0===n){var a=r.pop(),s=(a+","+o).replace(/\\,/g,",");r.push(s),n=!1}else r.push(o);"\\"===o.substr(-1,1)&&(n=!0)}return r=r.map((function(e){return e.replace("/","\\/")})),r.reverse(),"/"+r.join("/")},Rn.asn1.x509.X500Name.ldapToOneline=function(e){return Rn.asn1.x509.X500Name.ldapToCompat(e)},Rn.asn1.x509.RDN=function(e){Rn.asn1.x509.RDN.superclass.constructor.call(this),this.asn1Array=[],this.paramArray=[],this.sRule="utf8";var t=Rn.asn1.x509.AttributeTypeAndValue;this.setByParam=function(e){void 0!==e.rule&&(this.sRule=e.rule),void 0!==e.str&&this.addByMultiValuedString(e.str),void 0!==e.array&&(this.paramArray=e.array)},this.addByString=function(e){this.asn1Array.push(new Rn.asn1.x509.AttributeTypeAndValue({str:e,rule:this.sRule}))},this.addByMultiValuedString=function(e){for(var t=Rn.asn1.x509.RDN.parseString(e),n=0;n<t.length;n++)this.addByString(t[n])},this.tohex=function(){if(0==this.asn1Array.length&&this.paramArray.length>0)for(var e=0;e<this.paramArray.length;e++){var n=this.paramArray[e];void 0!==n.rule&&"utf8"!=this.sRule&&(n.rule=this.sRule);var r=new t(n);this.asn1Array.push(r)}var i=new Rn.asn1.DERSet({array:this.asn1Array});return this.TLV=i.tohex(),this.TLV},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&this.setByParam(e)},Pr(Rn.asn1.x509.RDN,Rn.asn1.ASN1Object),Rn.asn1.x509.RDN.parseString=function(e){for(var t=e.split(/\+/),n=!1,r=[],i=0;t.length>0;i++){var o=t.shift();if(!0===n){var a=r.pop(),s=(a+"+"+o).replace(/\\\+/g,"+");r.push(s),n=!1}else r.push(o);"\\"===o.substr(-1,1)&&(n=!0)}var l=!1,c=[];for(i=0;r.length>0;i++){o=r.shift();if(!0===l){var u=c.pop();if(o.match(/"$/)){s=(u+"+"+o).replace(/^([^=]+)="(.*)"$/,"$1=$2");c.push(s),l=!1}else c.push(u+"+"+o)}else c.push(o);o.match(/^[^=]+="/)&&(l=!0)}return c},Rn.asn1.x509.AttributeTypeAndValue=function(e){Rn.asn1.x509.AttributeTypeAndValue.superclass.constructor.call(this),this.sRule="utf8",this.sType=null,this.sValue=null,this.dsType=null;var t=Rn,n=t.asn1,r=n.DERSequence,i=n.DERUTF8String,o=n.DERPrintableString,a=n.DERTeletexString,s=n.DERIA5String,l=n.DERVisibleString,c=n.DERBMPString,u=t.lang.String.isMail,d=t.lang.String.isPrintable;this.setByParam=function(e){if(void 0!==e.rule&&(this.sRule=e.rule),void 0!==e.ds&&(this.dsType=e.ds),void 0===e.value&&void 0!==e.str){var t=e.str,n=t.match(/^([^=]+)=(.+)$/);if(!n)throw new Error("malformed attrTypeAndValueStr: "+attrTypeAndValueStr);this.sType=n[1],this.sValue=n[2]}else this.sType=e.type,this.sValue=e.value},this.setByString=function(e,t){void 0!==t&&(this.sRule=t);var n=e.match(/^([^=]+)=(.+)$/);if(!n)throw new Error("malformed attrTypeAndValueStr: "+attrTypeAndValueStr);this.setByAttrTypeAndValueStr(n[1],n[2])},this._getDsType=function(){var e=this.sType,t=this.sValue,n=this.sRule;return"prn"===n?"CN"==e&&u(t)?"ia5":d(t)?"prn":"utf8":"utf8"===n?"CN"==e&&u(t)?"ia5":"C"==e?"prn":"utf8":"utf8"},this.setByAttrTypeAndValueStr=function(e,t,n){void 0!==n&&(this.sRule=n),this.sType=e,this.sValue=t},this.getValueObj=function(e,t){if("utf8"==e)return new i({str:t});if("prn"==e)return new o({str:t});if("tel"==e)return new a({str:t});if("ia5"==e)return new s({str:t});if("vis"==e)return new l({str:t});if("bmp"==e)return new c({str:t});throw new Error("unsupported directory string type: type="+e+" value="+t)},this.tohex=function(){null==this.dsType&&(this.dsType=this._getDsType());var e=Rn.asn1.x509.OID.atype2obj(this.sType),t=this.getValueObj(this.dsType,this.sValue),n=new r({array:[e,t]});return this.TLV=n.tohex(),this.TLV},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&this.setByParam(e)},Pr(Rn.asn1.x509.AttributeTypeAndValue,Rn.asn1.ASN1Object),Rn.asn1.x509.SubjectPublicKeyInfo=function(e){Rn.asn1.x509.SubjectPublicKeyInfo.superclass.constructor.call(this);var t=Rn,n=t.asn1,r=n.DERInteger,i=n.DERBitString,o=n.DERObjectIdentifier,a=n.DERSequence,s=n.ASN1Util.newObject,l=n.x509,c=l.AlgorithmIdentifier,u=t.crypto;u.ECDSA,u.DSA;this.getASN1Object=function(){if(null==this.asn1AlgId||null==this.asn1SubjPKey)throw"algId and/or subjPubKey not set";var e=new a({array:[this.asn1AlgId,this.asn1SubjPKey]});return e},this.tohex=function(){var e=this.getASN1Object();return this.hTLV=e.tohex(),this.hTLV},this.getEncodedHex=function(){return this.tohex()},this.setPubKey=function(e){try{if(e instanceof Ut){var t=s({seq:[{int:{bigint:e.n}},{int:{int:e.e}}]}),n=t.tohex();this.asn1AlgId=new c({name:"rsaEncryption"}),this.asn1SubjPKey=new i({hex:"00"+n})}}catch(u){}try{if(e instanceof Rn.crypto.ECDSA){var a=new o({name:e.curveName});this.asn1AlgId=new c({name:"ecPublicKey",asn1params:a}),this.asn1SubjPKey=new i({hex:"00"+e.pubKeyHex})}}catch(u){}try{if(e instanceof Rn.crypto.DSA){a=new s({seq:[{int:{bigint:e.p}},{int:{bigint:e.q}},{int:{bigint:e.g}}]});this.asn1AlgId=new c({name:"dsa",asn1params:a});var l=new r({bigint:e.y});this.asn1SubjPKey=new i({hex:"00"+l.tohex()})}}catch(u){}},void 0!==e&&this.setPubKey(e)},Pr(Rn.asn1.x509.SubjectPublicKeyInfo,Rn.asn1.ASN1Object),Rn.asn1.x509.Time=function(e){Rn.asn1.x509.Time.superclass.constructor.call(this);var t=Rn,n=t.asn1,r=n.DERUTCTime,i=n.DERGeneralizedTime;this.params=null,this.type=null,this.setTimeParams=function(e){this.timeParams=e},this.setByParam=function(e){this.params=e},this.getType=function(e){return e.match(/^[0-9]{12}Z$/)?"utc":e.match(/^[0-9]{14}Z$/)?"gen":e.match(/^[0-9]{12}\.[0-9]+Z$/)?"utc":e.match(/^[0-9]{14}\.[0-9]+Z$/)?"gen":null},this.tohex=function(){var e=this.params,t=null;if("string"==typeof e&&(e={str:e}),null==e||!e.str||null!=e.type&&void 0!=e.type||(e.type=this.getType(e.str)),null!=e&&e.str?("utc"==e.type&&(t=new r(e.str)),"gen"==e.type&&(t=new i(e.str))):t="gen"==this.type?new i:new r,null==t)throw new Error("wrong setting for Time");return this.TLV=t.tohex(),this.TLV},this.getEncodedHex=function(){return this.tohex()},void 0!=e&&this.setByParam(e)},Rn.asn1.x509.Time_bak=function(e){Rn.asn1.x509.Time_bak.superclass.constructor.call(this);var t=Rn,n=t.asn1,r=n.DERUTCTime,i=n.DERGeneralizedTime;this.setTimeParams=function(e){this.timeParams=e},this.tohex=function(){var e=null;return e=null!=this.timeParams?"utc"==this.type?new r(this.timeParams):new i(this.timeParams):"utc"==this.type?new r:new i,this.TLV=e.tohex(),this.TLV},this.getEncodedHex=function(){return this.tohex()},this.type="utc",void 0!==e&&(void 0!==e.type?this.type=e.type:void 0!==e.str&&(e.str.match(/^[0-9]{12}Z$/)&&(this.type="utc"),e.str.match(/^[0-9]{14}Z$/)&&(this.type="gen")),this.timeParams=e)},Pr(Rn.asn1.x509.Time,Rn.asn1.ASN1Object),Rn.asn1.x509.AlgorithmIdentifier=function(e){Rn.asn1.x509.AlgorithmIdentifier.superclass.constructor.call(this),this.nameAlg=null,this.asn1Alg=null,this.asn1Params=null,this.paramEmpty=!1;var t=Rn,n=t.asn1,r=n.x509.AlgorithmIdentifier.PSSNAME2ASN1TLV;if(this.tohex=function(){if(null===this.nameAlg&&null===this.asn1Alg)throw new Error("algorithm not specified");if(null!==this.nameAlg){var e=null;for(var t in r)t===this.nameAlg&&(e=r[t]);if(null!==e)return this.hTLV=e,this.hTLV}null!==this.nameAlg&&null===this.asn1Alg&&(this.asn1Alg=n.x509.OID.name2obj(this.nameAlg));var i=[this.asn1Alg];null!==this.asn1Params&&i.push(this.asn1Params);var o=new n.DERSequence({array:i});return this.hTLV=o.tohex(),this.hTLV},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&(void 0!==e.name&&(this.nameAlg=e.name),void 0!==e.asn1params&&(this.asn1Params=e.asn1params),void 0!==e.paramempty&&(this.paramEmpty=e.paramempty)),null===this.asn1Params&&!1===this.paramEmpty&&null!==this.nameAlg){void 0!==this.nameAlg.name&&(this.nameAlg=this.nameAlg.name);var i=this.nameAlg.toLowerCase();"withdsa"!==i.substr(-7,7)&&"withecdsa"!==i.substr(-9,9)&&(this.asn1Params=new n.DERNull)}},Pr(Rn.asn1.x509.AlgorithmIdentifier,Rn.asn1.ASN1Object),Rn.asn1.x509.AlgorithmIdentifier.PSSNAME2ASN1TLV={SHAwithRSAandMGF1:"300d06092a864886f70d01010a3000",SHA256withRSAandMGF1:"303d06092a864886f70d01010a3030a00d300b0609608648016503040201a11a301806092a864886f70d010108300b0609608648016503040201a203020120",SHA384withRSAandMGF1:"303d06092a864886f70d01010a3030a00d300b0609608648016503040202a11a301806092a864886f70d010108300b0609608648016503040202a203020130",SHA512withRSAandMGF1:"303d06092a864886f70d01010a3030a00d300b0609608648016503040203a11a301806092a864886f70d010108300b0609608648016503040203a203020140"},Rn.asn1.x509.GeneralName=function(e){Rn.asn1.x509.GeneralName.superclass.constructor.call(this);var t=Rn,n=t.asn1,r=n.x509,i=r.X500Name,o=r.OtherName,a=n.DERIA5String,s=(n.DERPrintableString,n.DEROctetString),l=n.DERTaggedObject,c=n.ASN1Object,u=Error;this.params=null,this.setByParam=function(e){this.params=e},this.tohex=function(){var e,t,n=this.params,r=!1;if(void 0!==n.other)e="a0",t=new o(n.other);else if(void 0!==n.rfc822)e="81",t=new a({str:n.rfc822});else if(void 0!==n.dns)e="82",t=new a({str:n.dns});else if(void 0!==n.dn)e="a4",r=!0,t="string"===typeof n.dn?new i({str:n.dn}):n.dn instanceof Rn.asn1.x509.X500Name?n.dn:new i(n.dn);else if(void 0!==n.ldapdn)e="a4",r=!0,t=new i({ldapstr:n.ldapdn});else if(void 0!==n.certissuer||void 0!==n.certsubj){var d,h;e="a4",r=!0;var p=null;if(void 0!==n.certsubj?(d=!1,h=n.certsubj):(d=!0,h=n.certissuer),h.match(/^[0-9A-Fa-f]+$/),-1!=h.indexOf("-----BEGIN ")&&(p=rr(h)),null==p)throw new Error("certsubj/certissuer not cert");var f,m=new jr;m.hex=p,f=d?m.getIssuerHex():m.getSubjectHex(),t=new c,t.hTLV=f}else if(void 0!==n.uri)e="86",t=new a({str:n.uri});else{if(void 0===n.ip)throw new u("improper params");var g;e="87";var v=n.ip;try{if(v.match(/^[0-9a-f]+$/)){var y=v.length;if(8!=y&&16!=y&&32!=y&&64!=y)throw"err";g=v}else g=gr(v)}catch(_){throw new u("malformed IP address: "+n.ip+":"+_.message)}t=new s({hex:g})}var b=new l({tag:e,explicit:r,obj:t});return b.tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&this.setByParam(e)},Pr(Rn.asn1.x509.GeneralName,Rn.asn1.ASN1Object),Rn.asn1.x509.GeneralNames=function(e){Rn.asn1.x509.GeneralNames.superclass.constructor.call(this);var t=Rn,n=t.asn1;this.setByParamArray=function(e){for(var t=0;t<e.length;t++){var r=new n.x509.GeneralName(e[t]);this.asn1Array.push(r)}},this.tohex=function(){var e=new n.DERSequence({array:this.asn1Array});return e.tohex()},this.getEncodedHex=function(){return this.tohex()},this.asn1Array=new Array,"undefined"!=typeof e&&this.setByParamArray(e)},Pr(Rn.asn1.x509.GeneralNames,Rn.asn1.ASN1Object),Rn.asn1.x509.OtherName=function(e){Rn.asn1.x509.OtherName.superclass.constructor.call(this);var t=Rn,n=t.asn1,r=n.DERObjectIdentifier,i=n.DERSequence,o=n.ASN1Util.newObject;this.params=null,this.setByParam=function(e){this.params=e},this.tohex=function(){var e=this.params;if(void 0==e.oid||void 0==e.value)throw new Error("oid or value not specified");var t=new r({oid:e.oid}),n=o({tag:{tag:"a0",explicit:!0,obj:e.value}}),a=new i({array:[t,n]});return a.tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&this.setByParam(e)},Pr(Rn.asn1.x509.OtherName,Rn.asn1.ASN1Object),Rn.asn1.x509.OID=new function(){var e=Rn.asn1.DERObjectIdentifier;this.name2oidList={sha1:"1.3.14.3.2.26",sha256:"2.16.840.1.101.3.4.2.1",sha384:"2.16.840.1.101.3.4.2.2",sha512:"2.16.840.1.101.3.4.2.3",sha224:"2.16.840.1.101.3.4.2.4",md5:"1.2.840.113549.2.5",md2:"1.3.14.7.2.2.1",ripemd160:"1.3.36.3.2.1",MD2withRSA:"1.2.840.113549.1.1.2",MD4withRSA:"1.2.840.113549.1.1.3",MD5withRSA:"1.2.840.113549.1.1.4",SHA1withRSA:"1.2.840.113549.1.1.5","pkcs1-MGF":"1.2.840.113549.1.1.8",rsaPSS:"1.2.840.113549.1.1.10",SHA224withRSA:"1.2.840.113549.1.1.14",SHA256withRSA:"1.2.840.113549.1.1.11",SHA384withRSA:"1.2.840.113549.1.1.12",SHA512withRSA:"1.2.840.113549.1.1.13",SHA1withECDSA:"1.2.840.10045.4.1",SHA224withECDSA:"1.2.840.10045.4.3.1",SHA256withECDSA:"1.2.840.10045.4.3.2",SHA384withECDSA:"1.2.840.10045.4.3.3",SHA512withECDSA:"1.2.840.10045.4.3.4",dsa:"1.2.840.10040.4.1",SHA1withDSA:"1.2.840.10040.4.3",SHA224withDSA:"2.16.840.1.101.3.4.3.1",SHA256withDSA:"2.16.840.1.101.3.4.3.2",rsaEncryption:"1.2.840.113549.1.1.1",commonName:"2.5.4.3",countryName:"2.5.4.6",localityName:"2.5.4.7",stateOrProvinceName:"2.5.4.8",streetAddress:"2.5.4.9",organizationName:"2.5.4.10",organizationalUnitName:"2.5.4.11",domainComponent:"0.9.2342.19200300.100.1.25",userId:"0.9.2342.19200300.100.1.1",surname:"2.5.4.4",givenName:"2.5.4.42",title:"2.5.4.12",distinguishedName:"2.5.4.49",emailAddress:"1.2.840.113549.1.9.1",description:"2.5.4.13",businessCategory:"2.5.4.15",postalCode:"2.5.4.17",uniqueIdentifier:"2.5.4.45",organizationIdentifier:"2.5.4.97",jurisdictionOfIncorporationL:"1.3.6.1.4.1.311.60.2.1.1",jurisdictionOfIncorporationSP:"1.3.6.1.4.1.311.60.2.1.2",jurisdictionOfIncorporationC:"1.3.6.1.4.1.311.60.2.1.3",subjectDirectoryAttributes:"2.5.29.9",subjectKeyIdentifier:"2.5.29.14",keyUsage:"2.5.29.15",subjectAltName:"2.5.29.17",issuerAltName:"2.5.29.18",basicConstraints:"2.5.29.19",cRLNumber:"2.5.29.20",cRLReason:"2.5.29.21",nameConstraints:"2.5.29.30",cRLDistributionPoints:"2.5.29.31",certificatePolicies:"2.5.29.32",anyPolicy:"2.5.29.32.0",authorityKeyIdentifier:"2.5.29.35",policyConstraints:"2.5.29.36",extKeyUsage:"2.5.29.37",authorityInfoAccess:"1.3.6.1.5.5.7.1.1",ocsp:"1.3.6.1.5.5.7.48.1",ocspBasic:"1.3.6.1.5.5.7.48.1.1",ocspNonce:"1.3.6.1.5.5.7.48.1.2",ocspNoCheck:"1.3.6.1.5.5.7.48.1.5",caIssuers:"1.3.6.1.5.5.7.48.2",anyExtendedKeyUsage:"2.5.29.37.0",serverAuth:"1.3.6.1.5.5.7.3.1",clientAuth:"1.3.6.1.5.5.7.3.2",codeSigning:"1.3.6.1.5.5.7.3.3",emailProtection:"1.3.6.1.5.5.7.3.4",timeStamping:"1.3.6.1.5.5.7.3.8",ocspSigning:"1.3.6.1.5.5.7.3.9",dateOfBirth:"1.3.6.1.5.5.7.9.1",placeOfBirth:"1.3.6.1.5.5.7.9.2",gender:"1.3.6.1.5.5.7.9.3",countryOfCitizenship:"1.3.6.1.5.5.7.9.4",countryOfResidence:"1.3.6.1.5.5.7.9.5",ecPublicKey:"1.2.840.10045.2.1","P-256":"1.2.840.10045.3.1.7",secp256r1:"1.2.840.10045.3.1.7",secp256k1:"1.3.132.0.10",secp384r1:"1.3.132.0.34",secp521r1:"1.3.132.0.35",pkcs5PBES2:"1.2.840.113549.1.5.13",pkcs5PBKDF2:"1.2.840.113549.1.5.12","des-EDE3-CBC":"1.2.840.113549.3.7",data:"1.2.840.113549.1.7.1","signed-data":"1.2.840.113549.1.7.2","enveloped-data":"1.2.840.113549.1.7.3","digested-data":"1.2.840.113549.1.7.5","encrypted-data":"1.2.840.113549.1.7.6","authenticated-data":"1.2.840.113549.1.9.16.1.2",tstinfo:"1.2.840.113549.1.9.16.1.4",signingCertificate:"1.2.840.113549.1.9.16.2.12",timeStampToken:"1.2.840.113549.1.9.16.2.14",signaturePolicyIdentifier:"1.2.840.113549.1.9.16.2.15",etsArchiveTimeStamp:"1.2.840.113549.1.9.16.2.27",signingCertificateV2:"1.2.840.113549.1.9.16.2.47",etsArchiveTimeStampV2:"1.2.840.113549.1.9.16.2.48",extensionRequest:"1.2.840.113549.1.9.14",contentType:"1.2.840.113549.1.9.3",messageDigest:"1.2.840.113549.1.9.4",signingTime:"1.2.840.113549.1.9.5",counterSignature:"1.2.840.113549.1.9.6",archiveTimeStampV3:"0.4.0.1733.2.4",pdfRevocationInfoArchival:"1.2.840.113583.1.1.8",adobeTimeStamp:"1.2.840.113583.1.1.9.1"},this.atype2oidList={CN:"2.5.4.3",L:"2.5.4.7",ST:"2.5.4.8",O:"2.5.4.10",OU:"2.5.4.11",C:"2.5.4.6",STREET:"2.5.4.9",DC:"0.9.2342.19200300.100.1.25",UID:"0.9.2342.19200300.100.1.1",SN:"2.5.4.4",T:"2.5.4.12",DN:"2.5.4.49",E:"1.2.840.113549.1.9.1",description:"2.5.4.13",businessCategory:"2.5.4.15",postalCode:"2.5.4.17",serialNumber:"2.5.4.5",uniqueIdentifier:"2.5.4.45",organizationIdentifier:"2.5.4.97",jurisdictionOfIncorporationL:"1.3.6.1.4.1.311.60.2.1.1",jurisdictionOfIncorporationSP:"1.3.6.1.4.1.311.60.2.1.2",jurisdictionOfIncorporationC:"1.3.6.1.4.1.311.60.2.1.3"},this.objCache={},this.name2obj=function(t){if("undefined"!=typeof this.objCache[t])return this.objCache[t];if("undefined"==typeof this.name2oidList[t])throw"Name of ObjectIdentifier not defined: "+t;var n=this.name2oidList[t],r=new e({oid:n});return this.objCache[t]=r,r},this.atype2obj=function(t){if(void 0!==this.objCache[t])return this.objCache[t];var n;if(t.match(/^\d+\.\d+\.[0-9.]+$/))n=t;else if(void 0!==this.atype2oidList[t])n=this.atype2oidList[t];else{if(void 0===this.name2oidList[t])throw new Error("AttributeType name undefined: "+t);n=this.name2oidList[t]}var r=new e({oid:n});return this.objCache[t]=r,r},this.registerOIDs=function(e){if(this.checkOIDs(e))for(var t in e)this.name2oidList[t]=e[t]},this.checkOIDs=function(e){try{var t=Object.keys(e);return 0!=t.length&&(t.map((function(e,t,n){var r=this[e];if(!r.match(/^[0-2]\.[0-9.]+$/))throw new Error("value is not OID")}),e),!0)}catch(n){return!1}}},Rn.asn1.x509.OID.oid2name=function(e){var t=Rn.asn1.x509.OID.name2oidList;for(var n in t)if(t[n]==e)return n;return""},Rn.asn1.x509.OID.oid2atype=function(e){var t=Rn.asn1.x509.OID.atype2oidList;for(var n in t)if(t[n]==e)return n;return e},Rn.asn1.x509.OID.name2oid=function(e){if(e.match(/^[0-9.]+$/))return e;var t=Rn.asn1.x509.OID.name2oidList;return void 0===t[e]?"":t[e]},Rn.asn1.x509.X509Util={},Rn.asn1.x509.X509Util.newCertPEM=function(e){var t=Rn.asn1.x509,n=(t.TBSCertificate,t.Certificate),r=new n(e);return r.getPEM()},"undefined"!=typeof Rn&&Rn||(Rn={}),"undefined"!=typeof Rn.asn1&&Rn.asn1||(Rn.asn1={}),"undefined"!=typeof Rn.asn1.cms&&Rn.asn1.cms||(Rn.asn1.cms={}),Rn.asn1.cms.Attribute=function(e){var t=Error,n=Rn,r=n.asn1,i=r.DERSequence,o=r.DERSet,a=r.DERObjectIdentifier;this.params=null,this.typeOid=null,this.setByParam=function(e){this.params=e},this.getValueArray=function(){throw new t("not yet implemented abstract")},this.tohex=function(){var e=new a({oid:this.typeOid}),t=new o({array:this.getValueArray()}),n=new i({array:[e,t]});return n.tohex()},this.getEncodedHex=function(){return this.tohex()}},Pr(Rn.asn1.cms.Attribute,Rn.asn1.ASN1Object),Rn.asn1.cms.ContentType=function(e){var t=Rn,n=t.asn1;n.cms.ContentType.superclass.constructor.call(this),this.typeOid="1.2.840.113549.1.9.3",this.getValueArray=function(){var e=new n.DERObjectIdentifier(this.params.type);return[e]},void 0!=e&&this.setByParam(e)},Pr(Rn.asn1.cms.ContentType,Rn.asn1.cms.Attribute),Rn.asn1.cms.MessageDigest=function(e){var t=Rn,n=t.asn1,r=n.DEROctetString,i=n.cms;i.MessageDigest.superclass.constructor.call(this),this.typeOid="1.2.840.113549.1.9.4",this.getValueArray=function(){var e=new r(this.params);return[e]},void 0!=e&&this.setByParam(e)},Pr(Rn.asn1.cms.MessageDigest,Rn.asn1.cms.Attribute),Rn.asn1.cms.SigningTime=function(e){var t=Rn,n=t.asn1;n.cms.SigningTime.superclass.constructor.call(this),this.typeOid="1.2.840.113549.1.9.5",this.getValueArray=function(){var e=new n.x509.Time(this.params);return[e]},void 0!=e&&this.setByParam(e)},Pr(Rn.asn1.cms.SigningTime,Rn.asn1.cms.Attribute),Rn.asn1.cms.SigningCertificate=function(e){var t=Error,n=Rn,r=n.asn1,i=r.DERSequence,o=r.cms,a=o.ESSCertID;n.crypto;o.SigningCertificate.superclass.constructor.call(this),this.typeOid="1.2.840.113549.1.9.16.2.12",this.getValueArray=function(){if(null==this.params||void 0==this.params||void 0==this.params.array)throw new t("parameter 'array' not specified");for(var n=this.params.array,r=[],o=0;o<n.length;o++){var s=n[o];0!=e.hasis||"string"!=typeof s||-1==s.indexOf("-----BEGIN")&&!Dn.isASN1HEX(s)||(s={cert:s}),0!=s.hasis&&0==e.hasis&&(s.hasis=!1),r.push(new a(s))}var l=new i({array:r}),c=new i({array:[l]});return[c]},void 0!=e&&this.setByParam(e)},Pr(Rn.asn1.cms.SigningCertificate,Rn.asn1.cms.Attribute),Rn.asn1.cms.ESSCertID=function(e){Rn.asn1.cms.ESSCertID.superclass.constructor.call(this);var t=Error,n=Rn,r=n.asn1,i=r.DEROctetString,o=r.DERSequence,a=r.cms.IssuerSerial;this.params=null,this.getCertHash=function(e,r){if(void 0!=e.hash)return e.hash;if("string"==typeof e&&-1==e.indexOf("-----BEGIN")&&!Dn.isASN1HEX(e))return e;var i,o,a;if("string"==typeof e)i=e;else{if(void 0==e.cert)throw new t("hash nor cert unspecified");i=e.cert}if(o=-1!=i.indexOf("-----BEGIN")?rr(i):i,"string"==typeof e&&(-1!=e.indexOf("-----BEGIN")?o=rr(e):Dn.isASN1HEX(e)&&(o=e)),void 0!=e.alg)a=e.alg;else{if(void 0==r)throw new t("hash alg unspecified");a=r}return n.crypto.Util.hashHex(o,a)},this.tohex=function(){var e=this.params,t=this.getCertHash(e,"sha1"),n=[];n.push(new i({hex:t})),("string"==typeof e&&-1!=e.indexOf("-----BEGIN")||void 0!=e.cert&&0!=e.hasis||void 0!=e.issuer&&void 0!=e.serial)&&n.push(new a(e));var r=new o({array:n});return r.tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!=e&&this.setByParam(e)},Pr(Rn.asn1.cms.ESSCertID,Rn.asn1.ASN1Object),Rn.asn1.cms.SigningCertificateV2=function(e){var t=Error,n=Rn,r=n.asn1,i=r.DERSequence,o=(r.x509,r.cms),a=o.ESSCertIDv2;n.crypto;o.SigningCertificateV2.superclass.constructor.call(this),this.typeOid="1.2.840.113549.1.9.16.2.47",this.getValueArray=function(){if(null==this.params||void 0==this.params||void 0==this.params.array)throw new t("parameter 'array' not specified");for(var n=this.params.array,r=[],o=0;o<n.length;o++){var s=n[o];void 0==e.alg&&0!=e.hasis||"string"!=typeof s||-1==s.indexOf("-----BEGIN")&&!Dn.isASN1HEX(s)||(s={cert:s}),void 0==s.alg&&void 0!=e.alg&&(s.alg=e.alg),0!=s.hasis&&0==e.hasis&&(s.hasis=!1),r.push(new a(s))}var l=new i({array:r}),c=new i({array:[l]});return[c]},void 0!=e&&this.setByParam(e)},Pr(Rn.asn1.cms.SigningCertificateV2,Rn.asn1.cms.Attribute),Rn.asn1.cms.ESSCertIDv2=function(e){Rn.asn1.cms.ESSCertIDv2.superclass.constructor.call(this);Error;var t=Rn,n=t.asn1,r=n.DEROctetString,i=n.DERSequence,o=n.cms.IssuerSerial,a=n.x509.AlgorithmIdentifier;this.params=null,this.tohex=function(){var e=this.params,t=this.getCertHash(e,"sha256"),n=[];void 0!=e.alg&&"sha256"!=e.alg&&n.push(new a({name:e.alg})),n.push(new r({hex:t})),("string"==typeof e&&-1!=e.indexOf("-----BEGIN")||void 0!=e.cert&&0!=e.hasis||void 0!=e.issuer&&void 0!=e.serial)&&n.push(new o(e));var s=new i({array:n});return s.tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!=e&&this.setByParam(e)},Pr(Rn.asn1.cms.ESSCertIDv2,Rn.asn1.cms.ESSCertID),Rn.asn1.cms.IssuerSerial=function(e){var t=Error,n=Rn,r=n.asn1,i=r.DERInteger,o=r.DERSequence,a=r.cms,s=r.x509,l=s.GeneralNames,c=jr;a.IssuerSerial.superclass.constructor.call(this),this.setByParam=function(e){this.params=e},this.tohex=function(){var e,n,r=this.params;if("string"==typeof r&&-1!=r.indexOf("-----BEGIN")||void 0!=r.cert){var a;a=void 0!=r.cert?r.cert:r;var s=new c;s.readCertPEM(a),e=s.getIssuer(),n={hex:s.getSerialNumberHex()}}else{if(void 0==r.issuer||!r.serial)throw new t("cert or issuer and serial parameter not specified");e=r.issuer,n=r.serial}var u=new l([{dn:e}]),d=new i(n),h=new o({array:[u,d]});return h.tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!=e&&this.setByParam(e)},Pr(Rn.asn1.cms.IssuerSerial,Rn.asn1.ASN1Object),Rn.asn1.cms.SignerIdentifier=function(e){var t=Rn,n=t.asn1,r=(n.DERInteger,n.DERSequence,n.cms),i=r.IssuerAndSerialNumber,o=r.SubjectKeyIdentifier,a=n.x509;a.X500Name,Error;r.SignerIdentifier.superclass.constructor.call(this),this.params=null,this.tohex=function(){var e=this.params;if("isssn"==e.type){var t=new i(e);return t.tohex()}if("skid"==e.type){var n=new o(e);return n.tohex()}throw new Error("wrong property for isssn or skid")},this.getEncodedHex=function(){return this.tohex()},void 0!=e&&this.setByParam(e)},Pr(Rn.asn1.cms.SignerIdentifier,Rn.asn1.ASN1Object),Rn.asn1.cms.IssuerAndSerialNumber=function(e){var t=Rn,n=t.asn1,r=n.DERInteger,i=n.DERSequence,o=n.cms,a=n.x509,s=a.X500Name,l=jr,c=Error;o.IssuerAndSerialNumber.superclass.constructor.call(this),this.params=null,this.tohex=function(){var e,t,n=this.params;if("string"==typeof n&&-1!=n.indexOf("-----BEGIN")||void 0!=n.cert){var o;o=void 0!=n.cert?n.cert:n;var a=new l;a.readCertPEM(o),e=a.getIssuer(),t={hex:a.getSerialNumberHex()}}else{if(void 0==n.issuer||!n.serial)throw new c("cert or issuer and serial parameter not specified");e=n.issuer,t=n.serial}var u=new s(e),d=new r(t),h=new i({array:[u,d]});return h.tohex()},this.getEncodedHex=function(){return this.tohex()},this.setByParam=function(e){this.params=e},void 0!=e&&this.setByParam(e)},Pr(Rn.asn1.cms.IssuerAndSerialNumber,Rn.asn1.ASN1Object),Rn.asn1.cms.SubjectKeyIdentifier=function(e){var t=Rn,n=t.asn1,r=(n.DERInteger,n.DERSequence,n.ASN1Util.newObject),i=n.cms,o=(i.IssuerAndSerialName,i.SubjectKeyIdentifier,n.x509),a=(o.X500Name,jr),s=Error;i.SubjectKeyIdentifier.superclass.constructor.call(this),this.tohex=function(){var e,t=this.params;if(void 0==t.cert&&void 0==t.skid)throw new s("property cert nor skid undefined");if(void 0!=t.cert){var n=new a(t.cert),i=n.getExtSubjectKeyIdentifier();e=i.kid.hex}else void 0!=t.skid&&(e=t.skid);var o=r({tag:{tage:"a0",obj:{octstr:{hex:e}}}});return o.tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!=e&&this.setByParam(e)},Pr(Rn.asn1.cms.SubjectKeyIdentifier,Rn.asn1.ASN1Object),Rn.asn1.cms.AttributeList=function(e){var t=Error,n=Rn,r=n.asn1,i=r.DERSet,o=r.cms;o.AttributeList.superclass.constructor.call(this),this.params=null,this.hTLV=null,this.setByParam=function(e){this.params=e},this.tohex=function(){var e=this.params;if(null!=this.hTLV)return this.hTLV;var n=!0;void 0!=e.sortflag&&(n=e.sortflag);for(var r=e.array,a=[],s=0;s<r.length;s++){var l=r[s],c=l.attr;if("contentType"==c)a.push(new o.ContentType(l));else if("messageDigest"==c)a.push(new o.MessageDigest(l));else if("signingTime"==c)a.push(new o.SigningTime(l));else if("signingCertificate"==c)a.push(new o.SigningCertificate(l));else if("signingCertificateV2"==c)a.push(new o.SigningCertificateV2(l));else if("signaturePolicyIdentifier"==c)a.push(new Rn.asn1.cades.SignaturePolicyIdentifier(l));else{if("signatureTimeStamp"!=c&&"timeStampToken"!=c)throw new t("unknown attr: "+c);a.push(new Rn.asn1.cades.SignatureTimeStamp(l))}}var u=new i({array:a,sortflag:n});return this.hTLV=u.tohex(),this.hTLV},this.getEncodedHex=function(){return this.tohex()},void 0!=e&&this.setByParam(e)},Pr(Rn.asn1.cms.AttributeList,Rn.asn1.ASN1Object),Rn.asn1.cms.SignerInfo=function(e){var t=Error,n=Rn,r=n.asn1,i=r.DERInteger,o=r.DEROctetString,a=r.DERSequence,s=r.DERTaggedObject,l=r.cms,c=l.SignerIdentifier,u=l.AttributeList,d=(l.ContentType,l.EncapsulatedContentInfo,l.MessageDigest,l.SignedData,r.x509),h=d.AlgorithmIdentifier,p=n.crypto,f=Mr;l.SignerInfo.superclass.constructor.call(this),this.params=null,this.sign=function(){var e=this.params,t=e.sigalg,n=new u(e.sattrs).tohex(),r=f.getKey(e.signkey),i=new p.Signature({alg:t});i.init(r),i.updateHex(n);var o=i.sign();e.sighex=o},this.tohex=function(){var e=this.params,n=[];if(n.push(new i({int:e.version})),n.push(new c(e.id)),n.push(new h({name:e.hashalg})),void 0!=e.sattrs){var r=new u(e.sattrs);try{n.push(new s({tag:"a0",explicit:!1,obj:r}))}catch(d){throw new t("si sattr error: "+d)}}if(void 0!=e.sigalgfield?n.push(new h({name:e.sigalgfield})):n.push(new h({name:e.sigalg})),void 0==e.sighex&&void 0!=e.signkey&&this.sign(),n.push(new o({hex:e.sighex})),void 0!=e.uattrs){r=new u(e.uattrs);try{n.push(new s({tag:"a1",explicit:!1,obj:r}))}catch(d){throw new t("si uattr error: "+d)}}var l=new a({array:n});return l.tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!=e&&this.setByParam(e)},Pr(Rn.asn1.cms.SignerInfo,Rn.asn1.ASN1Object),Rn.asn1.cms.EncapsulatedContentInfo=function(e){var t=Rn,n=t.asn1,r=n.DERTaggedObject,i=n.DERSequence,o=n.DERObjectIdentifier,a=n.DEROctetString,s=n.cms;s.EncapsulatedContentInfo.superclass.constructor.call(this),this.params=null,this.tohex=function(){var e=this.params,t=[];if(t.push(new o(e.type)),void 0!=e.content&&(void 0!=e.content.hex||void 0!=e.content.str)&&1!=e.isDetached){var n=new a(e.content),s=new r({tag:"a0",explicit:!0,obj:n});t.push(s)}var l=new i({array:t});return l.tohex()},this.getEncodedHex=function(){return this.tohex()},this.setByParam=function(e){this.params=e},void 0!=e&&this.setByParam(e)},Pr(Rn.asn1.cms.EncapsulatedContentInfo,Rn.asn1.ASN1Object),Rn.asn1.cms.ContentInfo=function(e){var t=Rn,n=t.asn1,r=n.DERTaggedObject,i=n.DERSequence,o=n.DERObjectIdentifier,a=n.x509;a.OID.name2obj;Rn.asn1.cms.ContentInfo.superclass.constructor.call(this),this.params=null,this.tohex=function(){var e=this.params,t=[];t.push(new o(e.type));var n=new r({tag:"a0",explicit:!0,obj:e.obj});t.push(n);var a=new i({array:t});return a.tohex()},this.getEncodedHex=function(){return this.tohex()},this.setByParam=function(e){this.params=e},void 0!=e&&this.setByParam(e)},Pr(Rn.asn1.cms.ContentInfo,Rn.asn1.ASN1Object),Rn.asn1.cms.SignedData=function(e){Error;var t=Rn,n=t.asn1,r=(n.ASN1Object,n.DERInteger),i=n.DERSet,o=n.DERSequence,a=(n.DERTaggedObject,n.cms),s=a.EncapsulatedContentInfo,l=a.SignerInfo,c=a.ContentInfo,u=a.CertificateSet,d=a.RevocationInfoChoices,h=n.x509,p=h.AlgorithmIdentifier;Rn.asn1.cms.SignedData.superclass.constructor.call(this),this.params=null,this.checkAndFixParam=function(){var e=this.params;this._setDigestAlgs(e),this._setContentTypeByEContent(e),this._setMessageDigestByEContent(e),this._setSignerInfoVersion(e),this._setSignedDataVersion(e)},this._setDigestAlgs=function(e){for(var t={},n=e.sinfos,r=0;r<n.length;r++){var i=n[r];t[i.hashalg]=1}e.hashalgs=Object.keys(t).sort()},this._setContentTypeByEContent=function(e){for(var t=e.econtent.type,n=e.sinfos,r=0;r<n.length;r++){var i=n[r],o=this._getAttrParamByName(i,"contentType");o.type=t}},this._setMessageDigestByEContent=function(e){var t=e.econtent,n=(e.econtent.type,t.content.hex);void 0==n&&"data"==t.type&&void 0!=t.content.str&&(n=Jn(t.content.str));for(var r=e.sinfos,i=0;i<r.length;i++){var o=r[i],a=o.hashalg,s=this._getAttrParamByName(o,"messageDigest"),l=Rn.crypto.Util.hashHex(n,a);s.hex=l}},this._getAttrParamByName=function(e,t){for(var n=e.sattrs.array,r=0;r<n.length;r++)if(n[r].attr==t)return n[r]},this._setSignerInfoVersion=function(e){for(var t=e.sinfos,n=0;n<t.length;n++){var r=t[n],i=1;"skid"==r.id.type&&(i=3),r.version=i}},this._setSignedDataVersion=function(e){var t=this._getSignedDataVersion(e);e.version=t},this._getSignedDataVersion=function(e){if(void 0!=e.revinfos)for(var t=e.revinfos,n=0;n<t.length;n++){var r=t[n];if(void 0!=r.ocsp)return 5}var i=e.sinfos;for(n=0;n<i.length;n++){var o=e.sinfos[n];if(3==o.version)return 3}return"data"!=e.econtent.type?3:1},this.tohex=function(){var e=this.params;void 0!=this.getEncodedHexPrepare&&this.getEncodedHexPrepare(),1!=e.fixed&&this.checkAndFixParam();var t=[];t.push(new r({int:e.version}));for(var n=[],a=0;a<e.hashalgs.length;a++){var c=e.hashalgs[a];n.push(new p({name:c}))}t.push(new i({array:n})),t.push(new s(e.econtent)),void 0!=e.certs&&t.push(new u(e.certs)),void 0!=e.revinfos&&t.push(new d(e.revinfos));var h=[];for(a=0;a<e.sinfos.length;a++){var f=e.sinfos[a];h.push(new l(f))}t.push(new i({array:h}));var m=new o({array:t});return m.tohex()},this.getEncodedHex=function(){return this.tohex()},this.getContentInfo=function(){var e=new c({type:"signed-data",obj:this});return e},this.getContentInfoEncodedHex=function(){return this.getContentInfo().tohex()},void 0!=e&&this.setByParam(e)},Pr(Rn.asn1.cms.SignedData,Rn.asn1.ASN1Object),Rn.asn1.cms.CertificateSet=function(e){Rn.asn1.cms.CertificateSet.superclass.constructor.call(this);var t=Error,n=Rn.asn1,r=n.DERTaggedObject,i=n.DERSet,o=n.ASN1Object;this.params=null,this.tohex=function(){var e,n=this.params,a=[];if(n instanceof Array)e=n;else{if(void 0==n.array)throw new t("cert array not specified");e=n.array}for(var s=0;s<e.length;s++){var l=e[s],c=rr(l),u=new o;u.hTLV=c,a.push(u)}var d={array:a};0==n.sortflag&&(d.sortflag=!1);var h=new i(d),p=new r({tag:"a0",explicit:!1,obj:h});return p.tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!=e&&this.setByParam(e)},Pr(Rn.asn1.cms.CertificateSet,Rn.asn1.ASN1Object),Rn.asn1.cms.RevocationInfoChoices=function(e){Rn.asn1.cms.RevocationInfoChoices.superclass.constructor.call(this),this.params=null,this.tohex=function(){var e=this.params;if(!e instanceof Array)throw new Error("params is not array");for(var t=[],n=0;n<e.length;n++)t.push(new Rn.asn1.cms.RevocationInfoChoice(e[n]));var r=Rn.asn1.ASN1Util.newObject({tag:{tagi:"a1",obj:{set:t}}});return r.tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!=e&&this.setByParam(e)},Pr(Rn.asn1.cms.RevocationInfoChoices,Rn.asn1.ASN1Object),Rn.asn1.cms.RevocationInfoChoice=function(e){Rn.asn1.cms.RevocationInfoChoice.superclass.constructor.call(this),this.params=null,this.tohex=function(){var e=this.params;if(void 0!=e.crl&&"string"==typeof e.crl){var t=e.crl;return-1!=e.crl.indexOf("-----BEGIN")&&(t=rr(e.crl)),t}if(void 0!=e.ocsp){var n=Rn.asn1.ASN1Util.newObject({tag:{tagi:"a1",obj:new Rn.asn1.cms.OtherRevocationFormat(e)}});return n.tohex()}throw new Error("property crl or ocsp undefined")},this.getEncodedHex=function(){return this.tohex()},void 0!=e&&this.setByParam(e)},Pr(Rn.asn1.cms.RevocationInfoChoice,Rn.asn1.ASN1Object),Rn.asn1.cms.OtherRevocationFormat=function(e){Rn.asn1.cms.OtherRevocationFormat.superclass.constructor.call(this);var t=Error,n=Rn,r=n.asn1,i=r.ASN1Util.newObject,o=n.lang.String.isHex;this.params=null,this.tohex=function(){var e=this.params;if(void 0==e.ocsp)throw new t("property ocsp not specified");if(!o(e.ocsp)||!Dn.isASN1HEX(e.ocsp))throw new t("ocsp value not ASN.1 hex string");var n=i({seq:[{oid:"1.3.6.1.5.5.7.16.2"},{asn1:{tlv:e.ocsp}}]});return n.tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!=e&&this.setByParam(e)},Pr(Rn.asn1.cms.OtherRevocationFormat,Rn.asn1.ASN1Object),Rn.asn1.cms.CMSUtil=new function(){},Rn.asn1.cms.CMSUtil.newSignedData=function(e){return new Rn.asn1.cms.SignedData(e)},Rn.asn1.cms.CMSUtil.verifySignedData=function(e){var t=Rn,n=t.asn1,r=n.cms,i=(r.SignerInfo,r.SignedData,r.SigningTime,r.SigningCertificate,r.SigningCertificateV2,n.cades),o=(i.SignaturePolicyIdentifier,t.lang.String.isHex),a=Dn,s=a.getVbyList,l=a.getTLVbyList,c=a.getIdxbyList,u=a.getChildIdx,d=a.getTLV,h=a.oidname,p=t.crypto.Util.hashHex;void 0===e.cms&&o(e.cms);var f=e.cms,m=function(e,t){for(var n,r=3;r<6;r++)if(n=c(e,0,[1,0,r]),void 0!==n){var i=e.substr(n,2);"a0"===i&&(t.certsIdx=n),"a1"===i&&(t.revinfosIdx=n),"31"===i&&(t.signerinfosIdx=n)}},g=function(e,t){var n=t.signerinfosIdx;if(void 0!==n){var r=u(e,n);t.signerInfoIdxList=r;for(var i=0;i<r.length;i++){var o=r[i],a={idx:o};v(e,a),t.signerInfos.push(a)}}},v=function(e,t){var n=t.idx;t.signerid_issuer1=l(e,n,[1,0],"30"),t.signerid_serial1=s(e,n,[1,1],"02"),t.hashalg=h(s(e,n,[2,0],"06"));var r=c(e,n,[3],"a0");t.idxSignedAttrs=r,y(e,t,r);var i=u(e,n),o=i.length;if(o<6)throw"malformed SignerInfo";t.sigalg=h(s(e,n,[o-2,0],"06")),t.sigval=s(e,n,[o-1],"04")},y=function(e,t,n){var r=u(e,n);t.signedAttrIdxList=r;for(var i=0;i<r.length;i++){var o,a=r[i],l=s(e,a,[0],"06");"2a864886f70d010905"===l?(o=qn(s(e,a,[1,0])),t.saSigningTime=o):"2a864886f70d010904"===l&&(o=s(e,a,[1,0],"04"),t.saMessageDigest=o)}},b=function(e,t){if("2a864886f70d010702"!==s(e,0,[0],"06"))return t;t.cmsType="signedData",t.econtent=s(e,0,[1,0,2,1,0]),m(e,t),t.signerInfos=[],g(e,t)},_=function(e,t){for(var n=t.parse.signerInfos,r=n.length,i=!0,o=0;o<r;o++){var a=n[o];E(e,t,a,o),a.isValid||(i=!1)}t.isValid=i},w=function(e,t,n,r){var i,o=t.parse.certsIdx;if(void 0===t.certs){i=[],t.certkeys=[];for(var a=u(e,o),s=0;s<a.length;s++){var l=d(e,a[s]),c=new jr;c.readCertHex(l),i[s]=c,t.certkeys[s]=c.getPublicKey()}t.certs=i}else i=t.certs;t.cccc=i.length,t.cccci=a.length;for(s=0;s<i.length;s++){var h=c.getIssuerHex(),p=c.getSerialNumberHex();n.signerid_issuer1===h&&n.signerid_serial1===p&&(n.certkey_idx=s)}},E=function(e,t,n,r){n.verifyDetail={};var i=n.verifyDetail,o=t.parse.econtent,a=n.hashalg,s=n.saMessageDigest;i.validMessageDigest=!1,p(o,a)===s&&(i.validMessageDigest=!0),w(e,t,n,r),i.validSignatureValue=!1;var l=n.sigalg,c="31"+d(e,n.idxSignedAttrs).substr(2);n.signedattrshex=c;var u=t.certs[n.certkey_idx].getPublicKey(),h=new Rn.crypto.Signature({alg:l});h.init(u),h.updateHex(c);var f=h.verify(n.sigval);i.validSignatureValue_isValid=f,!0===f&&(i.validSignatureValue=!0),n.isValid=!1,i.validMessageDigest&&i.validSignatureValue&&(n.isValid=!0)},S={isValid:!1,parse:{}};return b(f,S.parse),_(f,S),S},Rn.asn1.cms.CMSParser=function(){var e=Error,t=jr,n=new t,r=Dn,i=r.getV,o=r.getTLV,a=(r.getIdxbyList,r.getTLVbyList),s=r.getTLVbyListEx,l=r.getVbyList,c=r.getVbyListEx,u=r.getChildIdx;this.getCMSSignedData=function(e){var t=a(e,0,[1,0]),n=this.getSignedData(t);return n},this.getSignedData=function(e){var t=u(e,0),n={},r=i(e,t[0]),a=parseInt(r,16);n.version=a;var l=o(e,t[1]);n.hashalgs=this.getHashAlgArray(l);var c=o(e,t[2]);n.econtent=this.getEContent(c);var d=s(e,0,["[0]"]);null!=d&&(n.certs=this.getCertificateSet(d));s(e,0,["[1]"]);var h=s(e,0,[3]);return n.sinfos=this.getSignerInfos(h),n},this.getHashAlgArray=function(e){for(var n=u(e,0),r=new t,i=[],a=0;a<n.length;a++){var s=o(e,n[a]),l=r.getAlgorithmIdentifierName(s);i.push(l)}return i},this.getEContent=function(e){var t={},n=l(e,0,[0]),r=l(e,0,[1,0]);return t.type=Rn.asn1.x509.OID.oid2name(Dn.hextooidstr(n)),t.content={hex:r},t},this.getSignerInfos=function(e){for(var t=[],n=u(e,0),r=0;r<n.length;r++){var i=o(e,n[r]),a=this.getSignerInfo(i);t.push(a)}return t},this.getSignerInfo=function(e){var t={},i=u(e,0),a=r.getInt(e,i[0],-1);-1!=a&&(t.version=a);var l=o(e,i[1]),d=this.getIssuerAndSerialNumber(l);t.id=d;var h=o(e,i[2]),p=n.getAlgorithmIdentifierName(h);t.hashalg=p;var f=s(e,0,["[0]"]);if(null!=f){var m=this.getAttributeList(f);t.sattrs=m}var g=s(e,0,[3]),v=n.getAlgorithmIdentifierName(g);t.sigalg=v;var y=c(e,0,[4]);t.sighex=y;var b=s(e,0,["[1]"]);if(null!=b){var _=this.getAttributeList(b);t.uattrs=_}return t},this.getSignerIdentifier=function(e){if("30"==e.substr(0,2))return this.getIssuerAndSerialNumber(e);throw new Error("SKID of signerIdentifier not supported")},this.getIssuerAndSerialNumber=function(e){var t={type:"isssn"},r=u(e,0),a=o(e,r[0]);t.issuer=n.getX500Name(a);var s=i(e,r[1]);return t.serial={hex:s},t},this.getAttributeList=function(e){for(var t=[],n=u(e,0),r=0;r<n.length;r++){var i=o(e,n[r]),a=this.getAttribute(i);t.push(a)}return{array:t}},this.getAttribute=function(e){var t={},n=u(e,0),i=r.getOID(e,n[0]),a=Rn.asn1.x509.OID.oid2name(i);t.attr=a;var s=o(e,n[1]),l=u(s,0);if(1==l.length)t.valhex=o(s,l[0]);else{for(var c=[],d=0;d<l.length;d++)c.push(o(s,l[d]));t.valhex=c}return"contentType"==a?this.setContentType(t):"messageDigest"==a?this.setMessageDigest(t):"signingTime"==a?this.setSigningTime(t):"signingCertificate"==a?this.setSigningCertificate(t):"signingCertificateV2"==a?this.setSigningCertificateV2(t):"signaturePolicyIdentifier"==a&&this.setSignaturePolicyIdentifier(t),t},this.setContentType=function(e){var t=r.getOIDName(e.valhex,0,null);null!=t&&(e.type=t,delete e.valhex)},this.setSigningTime=function(e){var t=i(e.valhex,0),n=qn(t);e.str=n,delete e.valhex},this.setMessageDigest=function(e){var t=i(e.valhex,0);e.hex=t,delete e.valhex},this.setSigningCertificate=function(e){var t=u(e.valhex,0);if(t.length>0){for(var n=o(e.valhex,t[0]),r=u(n,0),i=[],a=0;a<r.length;a++){var s=o(n,r[a]),l=this.getESSCertID(s);i.push(l)}e.array=i}if(t.length>1){var c=o(e.valhex,t[1]);e.polhex=c}delete e.valhex},this.setSignaturePolicyIdentifier=function(e){var n=u(e.valhex,0);if(n.length>0){var a=r.getOID(e.valhex,n[0]);e.oid=a}if(n.length>1){var s=new t,l=u(e.valhex,n[1]),c=o(e.valhex,l[0]),d=s.getAlgorithmIdentifierName(c);e.alg=d;var h=i(e.valhex,l[1]);e.hash=h}delete e.valhex},this.setSigningCertificateV2=function(e){var t=u(e.valhex,0);if(t.length>0){for(var n=o(e.valhex,t[0]),r=u(n,0),i=[],a=0;a<r.length;a++){var s=o(n,r[a]),l=this.getESSCertIDv2(s);i.push(l)}e.array=i}if(t.length>1){var c=o(e.valhex,t[1]);e.polhex=c}delete e.valhex},this.getESSCertID=function(e){var t={},n=u(e,0);if(n.length>0){var r=i(e,n[0]);t.hash=r}if(n.length>1){var a=o(e,n[1]),s=this.getIssuerSerial(a);void 0!=s.serial&&(t.serial=s.serial),void 0!=s.issuer&&(t.issuer=s.issuer)}return t},this.getESSCertIDv2=function(t){var r={},a=u(t,0);if(a.length<1||3<a.length)throw new e("wrong number of elements");var s=0;if("30"==t.substr(a[0],2)){var l=o(t,a[0]);r.alg=n.getAlgorithmIdentifierName(l),s++}else r.alg="sha256";var c=i(t,a[s]);if(r.hash=c,a.length>s+1){var d=o(t,a[s+1]),h=this.getIssuerSerial(d);r.issuer=h.issuer,r.serial=h.serial}return r},this.getIssuerSerial=function(e){var t={},r=u(e,0),a=o(e,r[0]),s=n.getGeneralNames(a),l=s[0].dn;t.issuer=l;var c=i(e,r[1]);return t.serial={hex:c},t},this.getCertificateSet=function(e){for(var t=u(e,0),n=[],r=0;r<t.length;r++){var i=o(e,t[r]);if("30"==i.substr(0,2)){var a=nr(i,"CERTIFICATE");n.push(a)}}return{array:n,sortflag:!1}}},"undefined"!=typeof Rn&&Rn||(Rn={}),"undefined"!=typeof Rn.asn1&&Rn.asn1||(Rn.asn1={}),"undefined"!=typeof Rn.asn1.tsp&&Rn.asn1.tsp||(Rn.asn1.tsp={}),Rn.asn1.tsp.TimeStampToken=function(e){var t=Rn,n=t.asn1,r=n.tsp;r.TimeStampToken.superclass.constructor.call(this),this.params=null,this.getEncodedHexPrepare=function(){var e=new r.TSTInfo(this.params.econtent.content);this.params.econtent.content.hex=e.tohex()},void 0!=e&&this.setByParam(e)},Pr(Rn.asn1.tsp.TimeStampToken,Rn.asn1.cms.SignedData),Rn.asn1.tsp.TSTInfo=function(e){Error;var t=Rn,n=t.asn1,r=n.DERSequence,i=n.DERInteger,o=n.DERBoolean,a=n.DERGeneralizedTime,s=n.DERObjectIdentifier,l=n.DERTaggedObject,c=n.tsp,u=c.MessageImprint,d=c.Accuracy,h=(n.x509.X500Name,n.x509.GeneralName);if(c.TSTInfo.superclass.constructor.call(this),this.dVersion=new i({int:1}),this.dPolicy=null,this.dMessageImprint=null,this.dSerial=null,this.dGenTime=null,this.dAccuracy=null,this.dOrdering=null,this.dNonce=null,this.dTsa=null,this.tohex=function(){var e=[this.dVersion];if(null==this.dPolicy)throw new Error("policy shall be specified.");if(e.push(this.dPolicy),null==this.dMessageImprint)throw new Error("messageImprint shall be specified.");if(e.push(this.dMessageImprint),null==this.dSerial)throw new Error("serialNumber shall be specified.");if(e.push(this.dSerial),null==this.dGenTime)throw new Error("genTime shall be specified.");e.push(this.dGenTime),null!=this.dAccuracy&&e.push(this.dAccuracy),null!=this.dOrdering&&e.push(this.dOrdering),null!=this.dNonce&&e.push(this.dNonce),null!=this.dTsa&&e.push(this.dTsa);var t=new r({array:e});return this.hTLV=t.tohex(),this.hTLV},this.getEncodedHex=function(){return this.tohex()},void 0!==e){if("string"==typeof e.policy){if(!e.policy.match(/^[0-9.]+$/))throw"policy shall be oid like 0.1.4.134";this.dPolicy=new s({oid:e.policy})}void 0!==e.messageImprint&&(this.dMessageImprint=new u(e.messageImprint)),void 0!==e.serial&&(this.dSerial=new i(e.serial)),void 0!==e.genTime&&(this.dGenTime=new a(e.genTime)),void 0!==e.accuracy&&(this.dAccuracy=new d(e.accuracy)),void 0!==e.ordering&&1==e.ordering&&(this.dOrdering=new o),void 0!==e.nonce&&(this.dNonce=new i(e.nonce)),void 0!==e.tsa&&(this.dTsa=new l({tag:"a0",explicit:!0,obj:new h({dn:e.tsa})}))}},Pr(Rn.asn1.tsp.TSTInfo,Rn.asn1.ASN1Object),Rn.asn1.tsp.Accuracy=function(e){var t=Rn,n=t.asn1,r=n.ASN1Util.newObject;n.tsp.Accuracy.superclass.constructor.call(this),this.params=null,this.tohex=function(){var e=this.params,t=[];return void 0!=e.seconds&&"number"==typeof e.seconds&&t.push({int:e.seconds}),void 0!=e.millis&&"number"==typeof e.millis&&t.push({tag:{tagi:"80",obj:{int:e.millis}}}),void 0!=e.micros&&"number"==typeof e.micros&&t.push({tag:{tagi:"81",obj:{int:e.micros}}}),r({seq:t}).tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!=e&&this.setByParam(e)},Pr(Rn.asn1.tsp.Accuracy,Rn.asn1.ASN1Object),Rn.asn1.tsp.MessageImprint=function(e){var t=Rn,n=t.asn1,r=n.DERSequence,i=n.DEROctetString,o=n.x509,a=o.AlgorithmIdentifier;n.tsp.MessageImprint.superclass.constructor.call(this),this.params=null,this.tohex=function(){var e=this.params,t=new a({name:e.alg}),n=new i({hex:e.hash}),o=new r({array:[t,n]});return o.tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&this.setByParam(e)},Pr(Rn.asn1.tsp.MessageImprint,Rn.asn1.ASN1Object),Rn.asn1.tsp.TimeStampReq=function(e){var t=Rn,n=t.asn1,r=n.DERSequence,i=n.DERInteger,o=n.DERBoolean,a=(n.ASN1Object,n.DERObjectIdentifier),s=n.tsp,l=s.MessageImprint;s.TimeStampReq.superclass.constructor.call(this),this.params=null,this.tohex=function(){var e=this.params,t=[];t.push(new i({int:1})),e.messageImprint instanceof Rn.asn1.ASN1Object?t.push(e.messageImprint):t.push(new l(e.messageImprint)),void 0!=e.policy&&t.push(new a(e.policy)),void 0!=e.nonce&&t.push(new i(e.nonce)),1==e.certreq&&t.push(new o);var n=new r({array:t});return n.tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!=e&&this.setByParam(e)},Pr(Rn.asn1.tsp.TimeStampReq,Rn.asn1.ASN1Object),Rn.asn1.tsp.TimeStampResp=function(e){var t=Rn,n=t.asn1,r=n.DERSequence,i=(n.ASN1Object,n.tsp),o=i.PKIStatusInfo;i.TimeStampResp.superclass.constructor.call(this),this.params=null,this.tohex=function(){var e=this.params,t=[];if(void 0!=e.econtent||void 0!=e.tst)if(void 0!=e.statusinfo?t.push(new o(e.statusinfo)):t.push(new o("granted")),void 0!=e.econtent)t.push(new i.TimeStampToken(e).getContentInfo());else{if(!(e.tst instanceof n.ASN1Object))throw new Error("improper member tst value");t.push(e.tst)}else{if(void 0==e.statusinfo)throw new Error("parameter for token nor statusinfo not specified");t.push(new o(e.statusinfo))}var a=new r({array:t});return a.tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!=e&&this.setByParam(e)},Pr(Rn.asn1.tsp.TimeStampResp,Rn.asn1.ASN1Object),Rn.asn1.tsp.PKIStatusInfo=function(e){var t=Error,n=Rn,r=n.asn1,i=r.DERSequence,o=r.tsp,a=o.PKIStatus,s=o.PKIFreeText,l=o.PKIFailureInfo;o.PKIStatusInfo.superclass.constructor.call(this),this.params=null,this.tohex=function(){var e=this.params,n=[];if("string"==typeof e)n.push(new a(e));else{if(void 0==e.status)throw new t("property 'status' unspecified");n.push(new a(e.status)),void 0!=e.statusstr&&n.push(new s(e.statusstr)),void 0!=e.failinfo&&n.push(new l(e.failinfo))}var r=new i({array:n});return r.tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!=e&&this.setByParam(e)},Pr(Rn.asn1.tsp.PKIStatusInfo,Rn.asn1.ASN1Object),Rn.asn1.tsp.PKIStatus=function(e){var t=Error,n=Rn,r=n.asn1,i=r.DERInteger,o=r.tsp;o.PKIStatus.superclass.constructor.call(this);var a={granted:0,grantedWithMods:1,rejection:2,waiting:3,revocationWarning:4,revocationNotification:5};this.params=null,this.tohex=function(){var e,n=this.params;if("string"==typeof n)try{e=a[n]}catch(r){throw new t("undefined name: "+n)}else{if("number"!=typeof n)throw new t("unsupported params");e=n}return new i({int:e}).tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!=e&&this.setByParam(e)},Pr(Rn.asn1.tsp.PKIStatus,Rn.asn1.ASN1Object),Rn.asn1.tsp.PKIFreeText=function(e){var t=Error,n=Rn,r=n.asn1,i=r.DERSequence,o=r.DERUTF8String,a=r.tsp;a.PKIFreeText.superclass.constructor.call(this),this.params=null,this.tohex=function(){var e=this.params;if(!e instanceof Array)throw new t("wrong params: not array");for(var n=[],r=0;r<e.length;r++)n.push(new o({str:e[r]}));var a=new i({array:n});return a.tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!=e&&this.setByParam(e)},Pr(Rn.asn1.tsp.PKIFreeText,Rn.asn1.ASN1Object),Rn.asn1.tsp.PKIFailureInfo=function(e){var t=Error,n=Rn,r=n.asn1,i=r.DERBitString,o=r.tsp,a=o.PKIFailureInfo,s={badAlg:0,badRequest:2,badDataFormat:5,timeNotAvailable:14,unacceptedPolicy:15,unacceptedExtension:16,addInfoNotAvailable:17,systemFailure:25};a.superclass.constructor.call(this),this.params=null,this.getBinValue=function(){var e=this.params,n=0;if("number"==typeof e&&0<=e&&e<=25){n|=1<<e;for(var r=n.toString(2),i="",o=r.length-1;o>=0;o--)i+=r[o];return i}if("string"==typeof e&&void 0!=s[e])return Lr([e],s);if("object"==typeof e&&void 0!=e.length)return Lr(e,s);throw new t("wrong params")},this.tohex=function(){this.params;var e=this.getBinValue();return new i({bin:e}).tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!=e&&this.setByParam(e)},Pr(Rn.asn1.tsp.PKIFailureInfo,Rn.asn1.ASN1Object),Rn.asn1.tsp.AbstractTSAAdapter=function(e){this.getTSTHex=function(e,t){throw"not implemented yet"}},Rn.asn1.tsp.SimpleTSAAdapter=function(e){var t=Rn,n=t.asn1,r=n.tsp,i=t.crypto.Util.hashHex;r.SimpleTSAAdapter.superclass.constructor.call(this),this.params=null,this.serial=0,this.getTSTHex=function(e,t){var n=i(e,t);this.params.econtent.content.messageImprint={alg:t,hash:n},this.params.econtent.content.serial={int:this.serial++};var o=Math.floor(1e9*Math.random());this.params.econtent.content.nonce={int:o};var a=new r.TimeStampToken(this.params);return a.getContentInfoEncodedHex()},void 0!==e&&(this.params=e)},Pr(Rn.asn1.tsp.SimpleTSAAdapter,Rn.asn1.tsp.AbstractTSAAdapter),Rn.asn1.tsp.FixedTSAAdapter=function(e){var t=Rn,n=t.asn1,r=n.tsp,i=t.crypto.Util.hashHex;r.FixedTSAAdapter.superclass.constructor.call(this),this.params=null,this.getTSTHex=function(e,t){var n=i(e,t);this.params.econtent.content.messageImprint={alg:t,hash:n};var o=new r.TimeStampToken(this.params);return o.getContentInfoEncodedHex()},void 0!==e&&(this.params=e)},Pr(Rn.asn1.tsp.FixedTSAAdapter,Rn.asn1.tsp.AbstractTSAAdapter),Rn.asn1.tsp.TSPUtil=new function(){},Rn.asn1.tsp.TSPUtil.newTimeStampToken=function(e){return new Rn.asn1.tsp.TimeStampToken(e)},Rn.asn1.tsp.TSPUtil.parseTimeStampReq=function(e){var t=new Rn.asn1.tsp.TSPParser;return t.getTimeStampReq(e)},Rn.asn1.tsp.TSPUtil.parseMessageImprint=function(e){var t=new Rn.asn1.tsp.TSPParser;return t.getMessageImprint(e)},Rn.asn1.tsp.TSPParser=function(){Error;var e=jr,t=new e,n=Dn,r=n.getV,i=n.getTLV,o=n.getIdxbyList,a=(n.getTLVbyListEx,n.getChildIdx),s=["granted","grantedWithMods","rejection","waiting","revocationWarning","revocationNotification"],l={0:"badAlg",2:"badRequest",5:"badDataFormat",14:"timeNotAvailable",15:"unacceptedPolicy",16:"unacceptedExtension",17:"addInfoNotAvailable",25:"systemFailure"};this.getResponse=function(e){var t=a(e,0);if(1==t.length)return this.getPKIStatusInfo(i(e,t[0]));if(t.length>1){var n=this.getPKIStatusInfo(i(e,t[0])),r=i(e,t[1]),o=this.getToken(r);return o.statusinfo=n,o}},this.getToken=function(e){var t=new Rn.asn1.cms.CMSParser,n=t.getCMSSignedData(e);return this.setTSTInfo(n),n},this.setTSTInfo=function(e){var t=e.econtent;if("tstinfo"==t.type){var n=t.content.hex,r=this.getTSTInfo(n);t.content=r}},this.getTSTInfo=function(e){var n={},o=a(e,0),s=r(e,o[1]);n.policy=Tr(s);var l=i(e,o[2]);n.messageImprint=this.getMessageImprint(l);var c=r(e,o[3]);n.serial={hex:c};var u=r(e,o[4]);n.genTime={str:qn(u)};var d=0;if(o.length>5&&"30"==e.substr(o[5],2)){var h=i(e,o[5]);n.accuracy=this.getAccuracy(h),d++}if(o.length>5+d&&"01"==e.substr(o[5+d],2)){var p=r(e,o[5+d]);"ff"==p&&(n.ordering=!0),d++}if(o.length>5+d&&"02"==e.substr(o[5+d],2)){var f=r(e,o[5+d]);n.nonce={hex:f},d++}if(o.length>5+d&&"a0"==e.substr(o[5+d],2)){var m=i(e,o[5+d]);m="30"+m.substr(2),pGeneralNames=t.getGeneralNames(m);var g=pGeneralNames[0].dn;n.tsa=g,d++}if(o.length>5+d&&"a1"==e.substr(o[5+d],2)){var v=i(e,o[5+d]);v="30"+v.substr(2);var y=t.getExtParamArray(v);n.ext=y,d++}return n},this.getAccuracy=function(e){for(var t={},n=a(e,0),i=0;i<n.length;i++){var o=e.substr(n[i],2),s=r(e,n[i]),l=parseInt(s,16);"02"==o?t.seconds=l:"80"==o?t.millis=l:"81"==o&&(t.micros=l)}return t},this.getMessageImprint=function(e){if("30"!=e.substr(0,2))throw new Error("head of messageImprint hex shall be x30");var t={},i=(a(e,0),o(e,0,[0,0])),s=r(e,i),l=n.hextooidstr(s),c=Rn.asn1.x509.OID.oid2name(l);if(""==c)throw new Error("hashAlg name undefined: "+l);var u=c,d=o(e,0,[1]);return t.alg=u,t.hash=r(e,d),t},this.getPKIStatusInfo=function(e){var t={},n=a(e,0),o=0;try{var l=r(e,n[0]),c=parseInt(l,16);t.status=s[c]}catch(h){}if(n.length>1&&"30"==e.substr(n[1],2)){var u=i(e,n[1]);t.statusstr=this.getPKIFreeText(u),o++}if(n.length>o&&"03"==e.substr(n[1+o],2)){var d=i(e,n[1+o]);t.failinfo=this.getPKIFailureInfo(d)}return t},this.getPKIFreeText=function(e){for(var t=[],r=a(e,0),i=0;i<r.length;i++)t.push(n.getString(e,r[i]));return t},this.getPKIFailureInfo=function(e){var t=n.getInt(e,0);return void 0!=l[t]?l[t]:t},this.getTimeStampReq=function(e){var t={certreq:!1},o=a(e,0);if(o.length<2)throw new Error("TimeStampReq must have at least 2 items");var s=i(e,o[1]);t.messageImprint=Rn.asn1.tsp.TSPUtil.parseMessageImprint(s);for(var l=2;l<o.length;l++){var c=o[l],u=e.substr(c,2);if("06"==u){var d=r(e,c);t.policy=n.hextooidstr(d)}"02"==u&&(t.nonce=r(e,c)),"01"==u&&(t.certreq=!0)}return t}},"undefined"!=typeof Rn&&Rn||(Rn={}),"undefined"!=typeof Rn.asn1&&Rn.asn1||(Rn.asn1={}),"undefined"!=typeof Rn.asn1.cades&&Rn.asn1.cades||(Rn.asn1.cades={}),Rn.asn1.cades.SignaturePolicyIdentifier=function(e){var t=Rn,n=t.asn1,r=n.cades,i=r.SignaturePolicyId;r.SignaturePolicyIdentifier.superclass.constructor.call(this),this.typeOid="1.2.840.113549.1.9.16.2.15",this.params=null,this.getValueArray=function(){return[new i(this.params)]},this.setByParam=function(e){this.params=e},void 0!=e&&this.setByParam(e)},Pr(Rn.asn1.cades.SignaturePolicyIdentifier,Rn.asn1.cms.Attribute),Rn.asn1.cades.SignaturePolicyId=function(e){var t=Rn,n=t.asn1,r=n.DERSequence,i=n.DERObjectIdentifier,o=n.x509,a=(o.AlgorithmIdentifier,n.cades),s=a.SignaturePolicyId,l=a.OtherHashAlgAndValue;s.superclass.constructor.call(this),this.params=null,this.tohex=function(){var e=this.params,t=[];t.push(new i(e.oid)),t.push(new l(e));var n=new r({array:t});return n.tohex()},this.getEncodedHex=function(){return this.tohex()},this.setByParam=function(e){this.params=e},void 0!=e&&this.setByParam(e)},Pr(Rn.asn1.cades.SignaturePolicyId,Rn.asn1.ASN1Object),Rn.asn1.cades.OtherHashAlgAndValue=function(e){var t=Error,n=Rn,r=n.asn1,i=r.DERSequence,o=r.DEROctetString,a=r.x509,s=a.AlgorithmIdentifier,l=r.cades,c=l.OtherHashAlgAndValue;c.superclass.constructor.call(this),this.params=null,this.tohex=function(){var e=this.params;if(void 0==e.alg)throw new t("property 'alg' not specified");if(void 0==e.hash&&void 0==e.cert)throw new t("property 'hash' nor 'cert' not specified");var n=null;if(void 0!=e.hash)n=e.hash;else if(void 0!=e.cert){if("string"!=typeof e.cert)throw new t("cert not string");var r=e.cert;-1!=e.cert.indexOf("-----BEGIN")&&(r=rr(e.cert)),n=Rn.crypto.Util.hashHex(r,e.alg)}var a=[];a.push(new s({name:e.alg})),a.push(new o({hex:n}));var l=new i({array:a});return l.tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!=e&&this.setByParam(e)},Pr(Rn.asn1.cades.OtherHashAlgAndValue,Rn.asn1.ASN1Object),Rn.asn1.cades.OtherHashValue=function(e){Rn.asn1.cades.OtherHashValue.superclass.constructor.call(this);var t=Error,n=Rn,r=(n.lang.String.isHex,n.asn1),i=r.DEROctetString;n.crypto.Util.hashHex;this.params=null,this.tohex=function(){var e=this.params;if(void 0==e.hash&&void 0==e.cert)throw new t("hash or cert not specified");var n=null;if(void 0!=e.hash)n=e.hash;else if(void 0!=e.cert){if("string"!=typeof e.cert)throw new t("cert not string");var r=e.cert;-1!=e.cert.indexOf("-----BEGIN")&&(r=rr(e.cert)),n=Rn.crypto.Util.hashHex(r,"sha1")}return new i({hex:n}).tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!=e&&this.setByParam(e)},Pr(Rn.asn1.cades.OtherHashValue,Rn.asn1.ASN1Object),Rn.asn1.cades.SignatureTimeStamp=function(e){var t=Error,n=Rn,r=n.lang.String.isHex,i=n.asn1,o=i.ASN1Object,a=(i.x509,i.cades);a.SignatureTimeStamp.superclass.constructor.call(this),this.typeOid="1.2.840.113549.1.9.16.2.14",this.params=null,this.getValueArray=function(){var e=this.params;if(void 0!=e.tst){if(r(e.tst)){var n=new o;return n.hTLV=e.tst,[n]}if(e.tst instanceof o)return[e.tst];throw new t("params.tst has wrong value")}if(void 0!=e.res){var i=e.res;if(i instanceof o&&(i=i.tohex()),"string"!=typeof i||!r(i))throw new t("params.res has wrong value");Dn.getTLVbyList(i,0,[1]),n=new o;return n.hTLV=e.tst,[n]}},null!=e&&this.setByParam(e)},Pr(Rn.asn1.cades.SignatureTimeStamp,Rn.asn1.cms.Attribute),Rn.asn1.cades.CompleteCertificateRefs=function(e){var t=Error,n=Rn,r=n.asn1,i=r.DERSequence,o=r.cades,a=o.OtherCertID,s=n.lang.String.isHex;o.CompleteCertificateRefs.superclass.constructor.call(this),this.typeOid="1.2.840.113549.1.9.16.2.21",this.params=null,this.getValueArray=function(){for(var e=this.params,n=[],r=0;r<e.array.length;r++){var o=e.array[r];if("string"==typeof o)if(-1!=o.indexOf("-----BEGIN"))o={cert:o};else{if(!s(o))throw new t("unsupported value: "+o);o={hash:o}}void 0!=e.alg&&void 0==o.alg&&(o.alg=e.alg),void 0!=e.hasis&&void 0==o.hasis&&(o.hasis=e.hasis);var l=new a(o);n.push(l)}var c=new i({array:n});return[c]},void 0!=e&&this.setByParam(e)},Pr(Rn.asn1.cades.CompleteCertificateRefs,Rn.asn1.cms.Attribute),Rn.asn1.cades.OtherCertID=function(e){var t=Rn,n=t.asn1,r=n.DERSequence,i=n.cms,o=i.IssuerSerial,a=n.cades,s=a.OtherHashValue,l=a.OtherHashAlgAndValue;a.OtherCertID.superclass.constructor.call(this),this.params=e,this.tohex=function(){var e=this.params;"string"==typeof e&&(-1!=e.indexOf("-----BEGIN")?e={cert:e}:_isHex(e)&&(e={hash:e}));var t=[],n=null;if(n=void 0!=e.alg?new l(e):new s(e),t.push(n),void 0!=e.cert&&1==e.hasis||void 0!=e.issuer&&void 0!=e.serial){var i=new o(e);t.push(i)}var a=new r({array:t});return a.tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!=e&&this.setByParam(e)},Pr(Rn.asn1.cades.OtherCertID,Rn.asn1.ASN1Object),Rn.asn1.cades.OtherHash=function(e){Error;var t=Rn,n=t.asn1,r=(n.cms,n.cades),i=r.OtherHashAlgAndValue,o=r.OtherHashValue,a=(t.crypto.Util.hashHex,t.lang.String.isHex);r.OtherHash.superclass.constructor.call(this),this.params=null,this.tohex=function(){var e=this.params;"string"==typeof e&&(-1!=e.indexOf("-----BEGIN")?e={cert:e}:a(e)&&(e={hash:e}));var t=null;return t=void 0!=e.alg?new i(e):new o(e),t.tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!=e&&this.setByParam(e)},Pr(Rn.asn1.cades.OtherHash,Rn.asn1.ASN1Object),Rn.asn1.cades.CAdESUtil=new function(){},Rn.asn1.cades.CAdESUtil.parseSignedDataForAddingUnsigned=function(e){var t=new Rn.asn1.cms.CMSParser,n=t.getCMSSignedData(e);return n},Rn.asn1.cades.CAdESUtil.parseSignerInfoForAddingUnsigned=function(e,t,n){var r=Dn,i=r.getChildIdx,o=r.getTLV,a=r.getV,s=Rn,l=s.asn1,c=l.ASN1Object,u=l.cms,d=u.AttributeList,h=u.SignerInfo,p={},f=i(e,t);if(6!=f.length)throw"not supported items for SignerInfo (!=6)";var m=f.shift();p.version=o(e,m);var g=f.shift();p.si=o(e,g);var v=f.shift();p.digalg=o(e,v);var y=f.shift();p.sattrs=o(e,y);var b=f.shift();p.sigalg=o(e,b);var _=f.shift();p.sig=o(e,_),p.sigval=a(e,_);var w=null;return p.obj=new h,w=new c,w.hTLV=p.version,p.obj.dCMSVersion=w,w=new c,w.hTLV=p.si,p.obj.dSignerIdentifier=w,w=new c,w.hTLV=p.digalg,p.obj.dDigestAlgorithm=w,w=new c,w.hTLV=p.sattrs,p.obj.dSignedAttrs=w,w=new c,w.hTLV=p.sigalg,p.obj.dSigAlg=w,w=new c,w.hTLV=p.sig,p.obj.dSig=w,p.obj.dUnsignedAttrs=new d,p},"undefined"!=typeof Rn.asn1.csr&&Rn.asn1.csr||(Rn.asn1.csr={}),Rn.asn1.csr.CertificationRequest=function(e){var t=Rn,n=t.asn1,r=n.DERBitString,i=n.DERSequence,o=n.csr,a=(n.x509,o.CertificationRequestInfo);o.CertificationRequest.superclass.constructor.call(this),this.setByParam=function(e){this.params=e},this.sign=function(){var e=new a(this.params).tohex(),t=new Rn.crypto.Signature({alg:this.params.sigalg});t.init(this.params.sbjprvkey),t.updateHex(e);var n=t.sign();this.params.sighex=n},this.getPEM=function(){return nr(this.tohex(),"CERTIFICATE REQUEST")},this.tohex=function(){var e=this.params,t=new Rn.asn1.csr.CertificationRequestInfo(this.params),n=new Rn.asn1.x509.AlgorithmIdentifier({name:e.sigalg});if(void 0==e.sighex&&void 0!=e.sbjprvkey&&this.sign(),void 0==e.sighex)throw new Error("sighex or sbjprvkey parameter not defined");var o=new r({hex:"00"+e.sighex}),a=new i({array:[t,n,o]});return a.tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&this.setByParam(e)},Pr(Rn.asn1.csr.CertificationRequest,Rn.asn1.ASN1Object),Rn.asn1.csr.CertificationRequestInfo=function(e){var t=Rn,n=t.asn1,r=(n.DERBitString,n.DERSequence),i=n.DERInteger,o=n.DERUTF8String,a=n.DERTaggedObject,s=n.ASN1Util.newObject,l=n.csr,c=n.x509,u=c.X500Name,d=c.Extensions,h=c.SubjectPublicKeyInfo;l.CertificationRequestInfo.superclass.constructor.call(this),this.params=null,this.setByParam=function(e){void 0!=e&&(this.params=e)},this.tohex=function(){var e=this.params,t=[];if(t.push(new i({int:0})),t.push(new u(e.subject)),t.push(new h(Mr.getKey(e.sbjpubkey))),void 0!=e.extreq){var n=new d(e.extreq),l=s({tag:{tag:"a0",explict:!0,obj:{seq:[{oid:"1.2.840.113549.1.9.14"},{set:[n]}]}}});t.push(l)}else t.push(new a({tag:"a0",explicit:!1,obj:new o({str:""})}));var c=new r({array:t});return c.tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!=e&&this.setByParam(e)},Pr(Rn.asn1.csr.CertificationRequestInfo,Rn.asn1.ASN1Object),Rn.asn1.csr.CSRUtil=new function(){},Rn.asn1.csr.CSRUtil.newCSRPEM=function(e){var t=Rn.asn1.csr,n=new t.CertificationRequest(e),r=n.getPEM();return r},Rn.asn1.csr.CSRUtil.getParam=function(e){var t=Dn,n=t.getV,r=t.getIdxbyList,i=t.getTLVbyList,o=t.getTLVbyListEx,a=t.getVbyListEx,s=function(e){var t=r(e,0,[0,3,0,0],"06");return"2a864886f70d01090e"!=n(e,t)?null:i(e,0,[0,3,0,1,0],"30")},l={};if(-1==e.indexOf("-----BEGIN CERTIFICATE REQUEST"))throw new Error("argument is not PEM file");var c=rr(e,"CERTIFICATE REQUEST");try{var u=o(c,0,[0,1]);if("3000"==u)l.subject={};else{var d=new jr;l.subject=d.getX500Name(u)}}catch(v){}var h=o(c,0,[0,2]),p=Mr.getKey(h,null,"pkcs8pub");l.sbjpubkey=Mr.getPEM(p,"PKCS8PUB");var f=s(c);d=new jr;null!=f&&(l.extreq=d.getExtParamArray(f));try{var m=o(c,0,[1],"30");d=new jr;l.sigalg=d.getAlgorithmIdentifierName(m)}catch(v){}try{var g=a(c,0,[2]);l.sighex=g}catch(v){}return l},"undefined"!=typeof Rn&&Rn||(Rn={}),"undefined"!=typeof Rn.asn1&&Rn.asn1||(Rn.asn1={}),"undefined"!=typeof Rn.asn1.ocsp&&Rn.asn1.ocsp||(Rn.asn1.ocsp={}),Rn.asn1.ocsp.DEFAULT_HASH="sha1",Rn.asn1.ocsp.OCSPResponse=function(e){Rn.asn1.ocsp.OCSPResponse.superclass.constructor.call(this);Rn.asn1.DEREnumerated;var t=Rn.asn1.ASN1Util.newObject,n=Rn.asn1.ocsp.ResponseBytes,r=["successful","malformedRequest","internalError","tryLater","_not_used_","sigRequired","unauthorized"];this.params=null,this._getStatusCode=function(){var e=this.params.resstatus;return"number"==typeof e?e:"string"!=typeof e?-1:r.indexOf(e)},this.setByParam=function(e){this.params=e},this.tohex=function(){var e=this.params,r=this._getStatusCode();if(-1==r)throw new Error("responseStatus not supported: "+e.resstatus);if(0!=r)return t({seq:[{enum:{int:r}}]}).tohex();var i=new n(e);return t({seq:[{enum:{int:0}},{tag:{tag:"a0",explicit:!0,obj:i}}]}).tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&this.setByParam(e)},Pr(Rn.asn1.ocsp.OCSPResponse,Rn.asn1.ASN1Object),Rn.asn1.ocsp.ResponseBytes=function(e){Rn.asn1.ocsp.ResponseBytes.superclass.constructor.call(this);var t=Rn.asn1,n=t.DERSequence,r=t.DERObjectIdentifier,i=t.DEROctetString,o=t.ocsp.BasicOCSPResponse;this.params=null,this.setByParam=function(e){this.params=e},this.tohex=function(){var e=this.params;if("ocspBasic"!=e.restype)throw new Error("not supported responseType: "+e.restype);var t=new o(e),a=[];a.push(new r({name:"ocspBasic"})),a.push(new i({hex:t.tohex()}));var s=new n({array:a});return s.tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&this.setByParam(e)},Pr(Rn.asn1.ocsp.ResponseBytes,Rn.asn1.ASN1Object),Rn.asn1.ocsp.BasicOCSPResponse=function(e){Rn.asn1.ocsp.BasicOCSPResponse.superclass.constructor.call(this);var t=Error,n=Rn.asn1,r=n.ASN1Object,i=n.DERSequence,o=(n.DERGeneralizedTime,n.DERTaggedObject),a=n.DERBitString,s=(n.x509.Extensions,n.x509.AlgorithmIdentifier),l=n.ocsp;l.ResponderID;_SingleResponseList=l.SingleResponseList,_ResponseData=l.ResponseData,this.params=null,this.setByParam=function(e){this.params=e},this.sign=function(){var e=this.params,t=e.tbsresp.tohex(),n=new Rn.crypto.Signature({alg:e.sigalg});n.init(e.reskey),n.updateHex(t),e.sighex=n.sign()},this.tohex=function(){var e=this.params;void 0==e.tbsresp&&(e.tbsresp=new _ResponseData(e)),void 0==e.sighex&&void 0!=e.reskey&&this.sign();var n=[];if(n.push(e.tbsresp),n.push(new s({name:e.sigalg})),n.push(new a({hex:"00"+e.sighex})),void 0!=e.certs&&void 0!=e.certs.length){for(var l=[],c=0;c<e.certs.length;c++){var u=e.certs[c],d=null;if(Dn.isASN1HEX(u))d=u;else{if(!u.match(/-----BEGIN/))throw new t("certs["+c+"] not hex or PEM");d=rr(u)}l.push(new r({tlv:d}))}var h=new i({array:l});n.push(new o({tag:"a0",explicit:!0,obj:h}))}var p=new i({array:n});return p.tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&this.setByParam(e)},Pr(Rn.asn1.ocsp.BasicOCSPResponse,Rn.asn1.ASN1Object),Rn.asn1.ocsp.ResponseData=function(e){Rn.asn1.ocsp.ResponseData.superclass.constructor.call(this);var t=Error,n=Rn.asn1,r=n.DERSequence,i=n.DERGeneralizedTime,o=n.DERTaggedObject,a=n.x509.Extensions,s=n.ocsp,l=s.ResponderID;_SingleResponseList=s.SingleResponseList,this.params=null,this.tohex=function(){var e=this.params;void 0!=e.respid&&new t("respid not specified"),void 0!=e.prodat&&new t("prodat not specified"),void 0!=e.array&&new t("array not specified");var n=[];if(n.push(new l(e.respid)),n.push(new i(e.prodat)),n.push(new _SingleResponseList(e.array)),void 0!=e.ext){var s=new a(e.ext);n.push(new o({tag:"a1",explicit:!0,obj:s}))}var c=new r({array:n});return c.tohex()},this.getEncodedHex=function(){return this.tohex()},this.setByParam=function(e){this.params=e},void 0!==e&&this.setByParam(e)},Pr(Rn.asn1.ocsp.ResponseData,Rn.asn1.ASN1Object),Rn.asn1.ocsp.ResponderID=function(e){Rn.asn1.ocsp.ResponderID.superclass.constructor.call(this);var t=Rn,n=t.asn1,r=n.ASN1Util.newObject,i=n.x509.X500Name,o=t.lang.String.isHex,a=Error;this.params=null,this.tohex=function(){var e=this.params;if(void 0!=e.key){var t=null;if("string"==typeof e.key){if(o(e.key)&&(t=e.key),e.key.match(/-----BEGIN CERTIFICATE/)){var n=new jr(e.key),s=n.getExtSubjectKeyIdentifier();null!=s&&(t=s.kid.hex)}}else if(e.key instanceof jr){s=e.key.getExtSubjectKeyIdentifier();null!=s&&(t=s.kid.hex)}if(null==t)throw new a("wrong key member value");var l=r({tag:{tag:"a2",explicit:!0,obj:{octstr:{hex:t}}}});return l.tohex()}if(void 0!=e.name){var c=null;if("string"==typeof e.name&&e.name.match(/-----BEGIN CERTIFICATE/)){n=new jr(e.name);c=n.getSubject()}else e.name instanceof jr?c=e.name.getSubject():"object"!=typeof e.name||void 0==e.name.array&&void 0==e.name.str||(c=e.name);if(null==c)throw new a("wrong name member value");l=r({tag:{tag:"a1",explicit:!0,obj:new i(c)}});return l.tohex()}throw new a("key or name not specified")},this.getEncodedHex=function(){return this.tohex()},this.setByParam=function(e){this.params=e},void 0!==e&&this.setByParam(e)},Pr(Rn.asn1.ocsp.ResponderID,Rn.asn1.ASN1Object),Rn.asn1.ocsp.SingleResponseList=function(e){Rn.asn1.ocsp.SingleResponseList.superclass.constructor.call(this);var t=Rn.asn1,n=t.DERSequence,r=t.ocsp.SingleResponse;this.params=null,this.tohex=function(){var e=this.params;if("object"!=typeof e||void 0==e.length)throw new Error("params not specified properly");for(var t=[],i=0;i<e.length;i++)t.push(new r(e[i]));var o=new n({array:t});return o.tohex()},this.getEncodedHex=function(){return this.tohex()},this.setByParam=function(e){this.params=e},void 0!==e&&this.setByParam(e)},Pr(Rn.asn1.ocsp.SingleResponseList,Rn.asn1.ASN1Object),Rn.asn1.ocsp.SingleResponse=function(e){var t=Error,n=Rn,r=n.asn1,i=r.DERSequence,o=r.DERGeneralizedTime,a=r.DERTaggedObject,s=r.ocsp,l=s.CertID,c=s.CertStatus,u=r.x509,d=u.Extensions;s.SingleResponse.superclass.constructor.call(this),this.params=null,this.tohex=function(){var e=this.params,n=[];if(void 0==e.certid)throw new t("certid unspecified");if(void 0==e.status)throw new t("status unspecified");if(void 0==e.thisupdate)throw new t("thisupdate unspecified");if(n.push(new l(e.certid)),n.push(new c(e.status)),n.push(new o(e.thisupdate)),void 0!=e.nextupdate){var r=new o(e.nextupdate);n.push(new a({tag:"a0",explicit:!0,obj:r}))}if(void 0!=e.ext){var s=new d(e.ext);n.push(new a({tag:"a1",explicit:!0,obj:s}))}var u=new i({array:n});return u.tohex()},this.getEncodedHex=function(){return this.tohex()},this.setByParam=function(e){this.params=e},void 0!==e&&this.setByParam(e)},Pr(Rn.asn1.ocsp.SingleResponse,Rn.asn1.ASN1Object),Rn.asn1.ocsp.CertID=function(e){var t=Rn,n=t.asn1,r=n.DEROctetString,i=n.DERInteger,o=n.DERSequence,a=n.x509,s=a.AlgorithmIdentifier,l=n.ocsp,c=(l.DEFAULT_HASH,t.crypto),u=c.Util.hashHex,d=jr,h=Dn,p=h.getVbyList;l.CertID.superclass.constructor.call(this),this.DEFAULT_HASH="sha1",this.params=null,this.setByValue=function(e,t,n,r){void 0==r&&(r=this.DEFAULT_HASH),this.params={alg:r,issname:e,isskey:t,sbjsn:n}},this.setByCert=function(e,t,n){void 0==n&&(n=this.DEFAULT_HASH),this.params={alg:n,issuerCert:e,subjectCert:t}},this.getParamByCerts=function(e,t,n){void 0==n&&(n=this.DEFAULT_HASH);var r=new d(e),i=new d(t),o=u(r.getSubjectHex(),n),a=r.getPublicKeyHex(),s=u(p(a,0,[1],"03",!0),n),l=i.getSerialNumberHex(),c={alg:n,issname:o,isskey:s,sbjsn:l};return c},this.tohex=function(){if("object"!=typeof this.params)throw new Error("params not set");var e,t,n,a,l=this.params;if(a=void 0==l.alg?this.DEFAULT_HASH:l.alg,void 0!=l.issuerCert&&void 0!=l.subjectCert){var c=this.getParamByCerts(l.issuerCert,l.subjectCert,a);e=c.issname,t=c.isskey,n=c.sbjsn}else{if(void 0==l.issname||void 0==l.isskey||void 0==l.sbjsn)throw new Error("required param members not defined");e=l.issname,t=l.isskey,n=l.sbjsn}var u=new s({name:a}),d=new r({hex:e}),h=new r({hex:t}),p=new i({hex:n}),f=new o({array:[u,d,h,p]});return this.hTLV=f.tohex(),this.hTLV},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&this.setByParam(e)},Pr(Rn.asn1.ocsp.CertID,Rn.asn1.ASN1Object),Rn.asn1.ocsp.CertStatus=function(e){Rn.asn1.ocsp.CertStatus.superclass.constructor.call(this),this.params=null,this.tohex=function(){var e=this.params;if("good"==e.status)return"8000";if("unknown"==e.status)return"8200";if("revoked"==e.status){var t=[{gentime:{str:e.time}}];void 0!=e.reason&&t.push({tag:{tag:"a0",explicit:!0,obj:{enum:{int:e.reason}}}});var n={tag:"a1",explicit:!1,obj:{seq:t}};return Rn.asn1.ASN1Util.newObject({tag:n}).tohex()}throw new Error("bad status")},this.getEncodedHex=function(){return this.tohex()},this.setByParam=function(e){this.params=e},void 0!==e&&this.setByParam(e)},Pr(Rn.asn1.ocsp.CertStatus,Rn.asn1.ASN1Object),Rn.asn1.ocsp.Request=function(e){var t=Rn,n=t.asn1,r=n.DERSequence,i=n.ocsp;if(i.Request.superclass.constructor.call(this),this.dReqCert=null,this.dExt=null,this.tohex=function(){var e=[];if(null===this.dReqCert)throw"reqCert not set";e.push(this.dReqCert);var t=new r({array:e});return this.hTLV=t.tohex(),this.hTLV},this.getEncodedHex=function(){return this.tohex()},"undefined"!==typeof e){var o=new i.CertID(e);this.dReqCert=o}},Pr(Rn.asn1.ocsp.Request,Rn.asn1.ASN1Object),Rn.asn1.ocsp.TBSRequest=function(e){var t=Rn,n=t.asn1,r=n.DERSequence,i=n.ocsp;i.TBSRequest.superclass.constructor.call(this),this.version=0,this.dRequestorName=null,this.dRequestList=[],this.dRequestExt=null,this.setRequestListByParam=function(e){for(var t=[],n=0;n<e.length;n++){var r=new i.Request(e[0]);t.push(r)}this.dRequestList=t},this.tohex=function(){var e=[];if(0!==this.version)throw"not supported version: "+this.version;if(null!==this.dRequestorName)throw"requestorName not supported";var t=new r({array:this.dRequestList});if(e.push(t),null!==this.dRequestExt)throw"requestExtensions not supported";var n=new r({array:e});return this.hTLV=n.tohex(),this.hTLV},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&void 0!==e.reqList&&this.setRequestListByParam(e.reqList)},Pr(Rn.asn1.ocsp.TBSRequest,Rn.asn1.ASN1Object),Rn.asn1.ocsp.OCSPRequest=function(e){var t=Rn,n=t.asn1,r=n.DERSequence,i=n.ocsp;if(i.OCSPRequest.superclass.constructor.call(this),this.dTbsRequest=null,this.dOptionalSignature=null,this.tohex=function(){var e=[];if(null===this.dTbsRequest)throw"tbsRequest not set";if(e.push(this.dTbsRequest),null!==this.dOptionalSignature)throw"optionalSignature not supported";var t=new r({array:e});return this.hTLV=t.tohex(),this.hTLV},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&void 0!==e.reqList){var o=new i.TBSRequest(e);this.dTbsRequest=o}},Pr(Rn.asn1.ocsp.OCSPRequest,Rn.asn1.ASN1Object),Rn.asn1.ocsp.OCSPUtil={},Rn.asn1.ocsp.OCSPUtil.getRequestHex=function(e,t,n){var r=Rn,i=r.asn1,o=i.ocsp;void 0===n&&(n=o.DEFAULT_HASH);var a={alg:n,issuerCert:e,subjectCert:t},s=new o.OCSPRequest({reqList:[a]});return s.tohex()},Rn.asn1.ocsp.OCSPUtil.getOCSPResponseInfo=function(e){var t=Dn,n=t.getVbyList,r=t.getVbyListEx,i=t.getIdxbyList,o=(t.getIdxbyListEx,t.getV),a={};try{var s=r(e,0,[0],"0a");a.responseStatus=parseInt(s,16)}catch(d){}if(0!==a.responseStatus)return a;try{var l=i(e,0,[1,0,1,0,0,2,0,1]);"80"===e.substr(l,2)?a.certStatus="good":"a1"===e.substr(l,2)?(a.certStatus="revoked",a.revocationTime=qn(n(e,l,[0]))):"82"===e.substr(l,2)&&(a.certStatus="unknown")}catch(d){}try{var c=i(e,0,[1,0,1,0,0,2,0,2]);a.thisUpdate=qn(o(e,c))}catch(d){}try{var u=i(e,0,[1,0,1,0,0,2,0,3]);"a0"===e.substr(u,2)&&(a.nextUpdate=qn(n(e,u,[0])))}catch(d){}return a},Rn.asn1.ocsp.OCSPParser=function(){var e=Error,t=jr,n=new t,r=Dn,i=r.getV,o=r.getTLV,a=r.getIdxbyList,s=r.getVbyList,l=r.getTLVbyList,c=r.getVbyListEx,u=r.getTLVbyListEx,d=r.getChildIdx;this.getOCSPRequest=function(t){var n=d(t,0);if(1!=n.length&&2!=n.length)throw new e("wrong number elements: "+n.length);var r=this.getTBSRequest(o(t,n[0]));return r},this.getTBSRequest=function(e){var t={},r=u(e,0,[0],"30");t.array=this.getRequestList(r);var i=u(e,0,["[2]",0],"30");return null!=i&&(t.ext=n.getExtParamArray(i)),t},this.getRequestList=function(e){for(var t=[],n=d(e,0),r=0;r<n.length;r++){e=o(e,n[r]);t.push(this.getRequest(e))}return t},this.getRequest=function(t){var r=d(t,0);if(1!=r.length&&2!=r.length)throw new e("wrong number elements: "+r.length);var i=this.getCertID(o(t,r[0]));if(2==r.length){var s=a(t,0,[1,0]);i.ext=n.getExtParamArray(o(t,s))}return i},this.getCertID=function(n){var r=d(n,0);if(4!=r.length)throw new e("wrong number elements: "+r.length);var a=new t,s={};return s.alg=a.getAlgorithmIdentifierName(o(n,r[0])),s.issname=i(n,r[1]),s.isskey=i(n,r[2]),s.sbjsn=i(n,r[3]),s},this.getOCSPResponse=function(e){var t,n=d(e,0),r=i(e,n[0]),o=parseInt(r);if(1==n.length)return{resstatus:o};var a=l(e,0,[1,0]);return t=this.getResponseBytes(a),t.resstatus=o,t},this.getResponseBytes=function(e){var t,n=d(e,0),r=l(e,0,[1,0]);t=this.getBasicOCSPResponse(r);var o=i(e,n[0]);return t.restype=Rn.asn1.x509.OID.oid2name(Tr(o)),t},this.getBasicOCSPResponse=function(e){var t,n=d(e,0);t=this.getResponseData(o(e,n[0]));var r=new jr;t.alg=r.getAlgorithmIdentifierName(o(e,n[1]));var a=i(e,n[2]);t.sighex=a.substr(2);var s=c(e,0,["[0]"]);if(null!=s){for(var l=d(s,0),u=[],h=0;h<l.length;h++){var p=o(s,l[h]);u.push(p)}t.certs=u}return t},this.getResponseData=function(e){var t=d(e,0),n=t.length,r={},a=0;"a0"==e.substr(t[0],2)&&a++,r.respid=this.getResponderID(o(e,t[a++]));var s=i(e,t[a++]);if(r.prodat=qn(s),r.array=this.getSingleResponseList(o(e,t[a++])),"a1"==e.substr(t[n-1],2)){var c=l(e,t[n-1],[0]),u=new jr;r.ext=u.getExtParamArray(c)}return r},this.getResponderID=function(e){var t={};if("a2"==e.substr(0,2)){var n=s(e,0,[0]);t.key=n}if("a1"==e.substr(0,2)){var r=l(e,0,[0]),i=new jr;t.name=i.getX500Name(r)}return t},this.getSingleResponseList=function(e){for(var t=d(e,0),n=[],r=0;r<t.length;r++){var i=this.getSingleResponse(o(e,t[r]));n.push(i)}return n},this.getSingleResponse=function(e){var t=d(e,0),n={},r=this.getCertID(o(e,t[0]));n.certid=r;var a=this.getCertStatus(o(e,t[1]));if(n.status=a,"18"==e.substr(t[2],2)){var c=i(e,t[2]);n.thisupdate=qn(c)}for(var u=3;u<t.length;u++){if("a0"==e.substr(t[u],2)){var h=s(e,t[u],[0],"18");n.nextupdate=qn(h)}if("a1"==e.substr(t[u],2)){var p=new jr,f=l(e,0,[u,0]);n.ext=p.getExtParamArray(f)}}return n},this.getCertStatus=function(e){var t={};if("8000"==e)return{status:"good"};if("8200"==e)return{status:"unknown"};if("a1"==e.substr(0,2)){t.status="revoked";var n=s(e,0,[0]),r=qn(n);t.time=r}return t}},"undefined"!=typeof Rn&&Rn||(Rn={}),"undefined"!=typeof Rn.lang&&Rn.lang||(Rn.lang={}),Rn.lang.String=function(){},"function"===typeof r?(On=function(e){return Un(r.from(e,"utf8").toString("base64"))},In=function(e){return r.from(Vn(e),"base64").toString("utf8")}):(On=function(e){return Kn(ur(br(e)))},In=function(e){return decodeURIComponent(dr(Hn(e)))}),Rn.lang.String.isInteger=function(e){return!!e.match(/^[0-9]+$/)||!!e.match(/^-[0-9]+$/)},Rn.lang.String.isHex=function(e){return Er(e)},Rn.lang.String.isBase64=function(e){return e=e.replace(/\s+/g,""),!(!e.match(/^[0-9A-Za-z+\/]+={0,3}$/)||e.length%4!=0)},Rn.lang.String.isBase64URL=function(e){return!e.match(/[+/=]/)&&(e=Vn(e),Rn.lang.String.isBase64(e))},Rn.lang.String.isIntegerArray=function(e){return e=e.replace(/\s+/g,""),!!e.match(/^\[[0-9,]+\]$/)},Rn.lang.String.isPrintable=function(e){return null!==e.match(/^[0-9A-Za-z '()+,-./:=?]*$/)},Rn.lang.String.isIA5=function(e){return null!==e.match(/^[\x20-\x21\x23-\x7f]*$/)},Rn.lang.String.isMail=function(e){return null!==e.match(/^[A-Za-z0-9]{1}[A-Za-z0-9_.-]*@{1}[A-Za-z0-9_.-]{1,}\.[A-Za-z0-9]{1,}$/)};var Ar=function(e,t){var n=e.length;e.length>t.length&&(n=t.length);for(var r=0;r<n;r++)if(e.charCodeAt(r)!=t.charCodeAt(r))return r;return e.length!=t.length?n:-1};function Nr(e){var t=function(e){var t=e.toString(16);return 1==t.length&&(t="0"+t),t},n=function(e){var n="",r=parseInt(e,10),i=r.toString(2),o=7-i.length%7;7==o&&(o=0);for(var a="",s=0;s<o;s++)a+="0";i=a+i;for(s=0;s<i.length-1;s+=7){var l=i.substr(s,7);s!=i.length-7&&(l="1"+l),n+=t(parseInt(l,2))}return n};try{if(!e.match(/^[0-9.]+$/))return null;var r="",i=e.split("."),o=40*parseInt(i[0],10)+parseInt(i[1],10);r+=t(o),i.splice(0,2);for(var a=0;a<i.length;a++)r+=n(i[a]);return r}catch(s){return null}}function Tr(e){if(!Er(e))return null;try{var t=[],n=e.substr(0,2),r=parseInt(n,16);t[0]=new String(Math.floor(r/40)),t[1]=new String(r%40);for(var i=e.substr(2),o=[],a=0;a<i.length/2;a++)o.push(parseInt(i.substr(2*a,2),16));var s=[],l="";for(a=0;a<o.length;a++)128&o[a]?l+=Cr((127&o[a]).toString(2),7):(l+=Cr((127&o[a]).toString(2),7),s.push(new String(parseInt(l,2))),l="");var c=t.join(".");return s.length>0&&(c=c+"."+s.join(".")),c}catch(u){return null}}var Cr=function(e,t,n){return void 0==n&&(n="0"),e.length>=t?e:new Array(t-e.length+1).join(n)+e};function Rr(e){if(e.length%2!=0)return-1;if(e=e.toLowerCase(),null==e.match(/^[0-9a-f]+$/))return-1;try{var t=e.substr(0,2);if("00"==t)return parseInt(e.substr(2),16);var n=parseInt(t,16);if(n>7)return-1;var r=e.substr(2),i=parseInt(r,16).toString(2);"0"==i&&(i="00000000"),i=i.slice(0,0-n);var o=parseInt(i,2);return NaN==o?-1:o}catch(a){return-1}}function Or(e){if("number"!=typeof e)return null;if(e<0)return null;var t=Number(e).toString(2),n=8-t.length%8;8==n&&(n=0),t+=Cr("",n,"0");var r=parseInt(t,2).toString(16);r.length%2==1&&(r="0"+r);var i="0"+n;return i+r}function Ir(e){if("string"!=typeof e)return null;if(e.length%2!=0)return null;if(!e.match(/^[0-9a-f]+$/))return null;try{var t=parseInt(e.substr(0,2),16);if(t<0||7<t)return null;for(var n=e.substr(2),r="",i=0;i<n.length;i+=2){var o=n.substr(i,2),a=parseInt(o,16).toString(2);a=("0000000"+a).slice(-8),r+=a}return r.substr(0,r.length-t)}catch(s){return null}}function Dr(e){if("string"!=typeof e)return null;if(null==e.match(/^[01]+$/))return null;try{var t=parseInt(e,2);return Or(t)}catch(n){return null}}function Lr(e,t){for(var n=0,r=0;r<e.length;r++)n|=1<<t[e[r]];var i=n.toString(2),o="";for(r=i.length-1;r>=0;r--)o+=i[r];return o}function Pr(e,t){var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e,e.superclass=t.prototype,t.prototype.constructor==Object.prototype.constructor&&(t.prototype.constructor=t)}"undefined"!=typeof Rn&&Rn||(Rn={}),"undefined"!=typeof Rn.crypto&&Rn.crypto||(Rn.crypto={}),Rn.crypto.Util=new function(){this.DIGESTINFOHEAD={sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",ripemd160:"3021300906052b2403020105000414"},this.DEFAULTPROVIDER={md5:"cryptojs",sha1:"cryptojs",sha224:"cryptojs",sha256:"cryptojs",sha384:"cryptojs",sha512:"cryptojs",ripemd160:"cryptojs",hmacmd5:"cryptojs",hmacsha1:"cryptojs",hmacsha224:"cryptojs",hmacsha256:"cryptojs",hmacsha384:"cryptojs",hmacsha512:"cryptojs",hmacripemd160:"cryptojs",MD5withRSA:"cryptojs/jsrsa",SHA1withRSA:"cryptojs/jsrsa",SHA224withRSA:"cryptojs/jsrsa",SHA256withRSA:"cryptojs/jsrsa",SHA384withRSA:"cryptojs/jsrsa",SHA512withRSA:"cryptojs/jsrsa",RIPEMD160withRSA:"cryptojs/jsrsa",MD5withECDSA:"cryptojs/jsrsa",SHA1withECDSA:"cryptojs/jsrsa",SHA224withECDSA:"cryptojs/jsrsa",SHA256withECDSA:"cryptojs/jsrsa",SHA384withECDSA:"cryptojs/jsrsa",SHA512withECDSA:"cryptojs/jsrsa",RIPEMD160withECDSA:"cryptojs/jsrsa",SHA1withDSA:"cryptojs/jsrsa",SHA224withDSA:"cryptojs/jsrsa",SHA256withDSA:"cryptojs/jsrsa",MD5withRSAandMGF1:"cryptojs/jsrsa",SHAwithRSAandMGF1:"cryptojs/jsrsa",SHA1withRSAandMGF1:"cryptojs/jsrsa",SHA224withRSAandMGF1:"cryptojs/jsrsa",SHA256withRSAandMGF1:"cryptojs/jsrsa",SHA384withRSAandMGF1:"cryptojs/jsrsa",SHA512withRSAandMGF1:"cryptojs/jsrsa",RIPEMD160withRSAandMGF1:"cryptojs/jsrsa"},this.CRYPTOJSMESSAGEDIGESTNAME={md5:a.algo.MD5,sha1:a.algo.SHA1,sha224:a.algo.SHA224,sha256:a.algo.SHA256,sha384:a.algo.SHA384,sha512:a.algo.SHA512,ripemd160:a.algo.RIPEMD160},this.getDigestInfoHex=function(e,t){if("undefined"==typeof this.DIGESTINFOHEAD[t])throw"alg not supported in Util.DIGESTINFOHEAD: "+t;return this.DIGESTINFOHEAD[t]+e},this.getPaddedDigestInfoHex=function(e,t,n){var r=this.getDigestInfoHex(e,t),i=n/4;if(r.length+22>i)throw"key is too short for SigAlg: keylen="+n+","+t;for(var o="0001",a="00"+r,s="",l=i-o.length-a.length,c=0;c<l;c+=2)s+="ff";var u=o+s+a;return u},this.hashString=function(e,t){var n=new Rn.crypto.MessageDigest({alg:t});return n.digestString(e)},this.hashHex=function(e,t){var n=new Rn.crypto.MessageDigest({alg:t});return n.digestHex(e)},this.sha1=function(e){return this.hashString(e,"sha1")},this.sha256=function(e){return this.hashString(e,"sha256")},this.sha256Hex=function(e){return this.hashHex(e,"sha256")},this.sha512=function(e){return this.hashString(e,"sha512")},this.sha512Hex=function(e){return this.hashHex(e,"sha512")},this.isKey=function(e){return e instanceof Ut||e instanceof Rn.crypto.DSA||e instanceof Rn.crypto.ECDSA}},Rn.crypto.Util.md5=function(e){var t=new Rn.crypto.MessageDigest({alg:"md5",prov:"cryptojs"});return t.digestString(e)},Rn.crypto.Util.ripemd160=function(e){var t=new Rn.crypto.MessageDigest({alg:"ripemd160",prov:"cryptojs"});return t.digestString(e)},Rn.crypto.Util.SECURERANDOMGEN=new Mt,Rn.crypto.Util.getRandomHexOfNbytes=function(e){var t=new Array(e);return Rn.crypto.Util.SECURERANDOMGEN.nextBytes(t),Mn(t)},Rn.crypto.Util.getRandomBigIntegerOfNbytes=function(e){return new m(Rn.crypto.Util.getRandomHexOfNbytes(e),16)},Rn.crypto.Util.getRandomHexOfNbits=function(e){var t=e%8,n=(e-t)/8,r=new Array(n+1);return Rn.crypto.Util.SECURERANDOMGEN.nextBytes(r),r[0]=(255<<t&255^255)&r[0],Mn(r)},Rn.crypto.Util.getRandomBigIntegerOfNbits=function(e){return new m(Rn.crypto.Util.getRandomHexOfNbits(e),16)},Rn.crypto.Util.getRandomBigIntegerZeroToMax=function(e){var t=e.bitLength();while(1){var n=Rn.crypto.Util.getRandomBigIntegerOfNbits(t);if(-1!=e.compareTo(n))return n}},Rn.crypto.Util.getRandomBigIntegerMinToMax=function(e,t){var n=e.compareTo(t);if(1==n)throw"biMin is greater than biMax";if(0==n)return e;var r=t.subtract(e),i=Rn.crypto.Util.getRandomBigIntegerZeroToMax(r);return i.add(e)},Rn.crypto.MessageDigest=function(e){this.setAlgAndProvider=function(e,t){if(e=Rn.crypto.MessageDigest.getCanonicalAlgName(e),null!==e&&void 0===t&&(t=Rn.crypto.Util.DEFAULTPROVIDER[e]),-1!=":md5:sha1:sha224:sha256:sha384:sha512:ripemd160:".indexOf(e)&&"cryptojs"==t){try{this.md=Rn.crypto.Util.CRYPTOJSMESSAGEDIGESTNAME[e].create()}catch(n){throw"setAlgAndProvider hash alg set fail alg="+e+"/"+n}this.updateString=function(e){this.md.update(e)},this.updateHex=function(e){var t=a.enc.Hex.parse(e);this.md.update(t)},this.digest=function(){var e=this.md.finalize();return e.toString(a.enc.Hex)},this.digestString=function(e){return this.updateString(e),this.digest()},this.digestHex=function(e){return this.updateHex(e),this.digest()}}if(-1!=":sha256:".indexOf(e)&&"sjcl"==t){try{this.md=new sjcl.hash.sha256}catch(n){throw"setAlgAndProvider hash alg set fail alg="+e+"/"+n}this.updateString=function(e){this.md.update(e)},this.updateHex=function(e){var t=sjcl.codec.hex.toBits(e);this.md.update(t)},this.digest=function(){var e=this.md.finalize();return sjcl.codec.hex.fromBits(e)},this.digestString=function(e){return this.updateString(e),this.digest()},this.digestHex=function(e){return this.updateHex(e),this.digest()}}},this.updateString=function(e){throw"updateString(str) not supported for this alg/prov: "+this.algName+"/"+this.provName},this.updateHex=function(e){throw"updateHex(hex) not supported for this alg/prov: "+this.algName+"/"+this.provName},this.digest=function(){throw"digest() not supported for this alg/prov: "+this.algName+"/"+this.provName},this.digestString=function(e){throw"digestString(str) not supported for this alg/prov: "+this.algName+"/"+this.provName},this.digestHex=function(e){throw"digestHex(hex) not supported for this alg/prov: "+this.algName+"/"+this.provName},void 0!==e&&void 0!==e.alg&&(this.algName=e.alg,void 0===e.prov&&(this.provName=Rn.crypto.Util.DEFAULTPROVIDER[this.algName]),this.setAlgAndProvider(this.algName,this.provName))},Rn.crypto.MessageDigest.getCanonicalAlgName=function(e){return"string"===typeof e&&(e=e.toLowerCase(),e=e.replace(/-/,"")),e},Rn.crypto.MessageDigest.getHashLength=function(e){var t=Rn.crypto.MessageDigest,n=t.getCanonicalAlgName(e);if(void 0===t.HASHLENGTH[n])throw"not supported algorithm: "+e;return t.HASHLENGTH[n]},Rn.crypto.MessageDigest.HASHLENGTH={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,ripemd160:20},Rn.crypto.Mac=function(e){this.setAlgAndProvider=function(e,t){if(e=e.toLowerCase(),null==e&&(e="hmacsha1"),e=e.toLowerCase(),"hmac"!=e.substr(0,4))throw"setAlgAndProvider unsupported HMAC alg: "+e;void 0===t&&(t=Rn.crypto.Util.DEFAULTPROVIDER[e]),this.algProv=e+"/"+t;var n=e.substr(4);if(-1!=":md5:sha1:sha224:sha256:sha384:sha512:ripemd160:".indexOf(n)&&"cryptojs"==t){try{var r=Rn.crypto.Util.CRYPTOJSMESSAGEDIGESTNAME[n];this.mac=a.algo.HMAC.create(r,this.pass)}catch(i){throw"setAlgAndProvider hash alg set fail hashAlg="+n+"/"+i}this.updateString=function(e){this.mac.update(e)},this.updateHex=function(e){var t=a.enc.Hex.parse(e);this.mac.update(t)},this.doFinal=function(){var e=this.mac.finalize();return e.toString(a.enc.Hex)},this.doFinalString=function(e){return this.updateString(e),this.doFinal()},this.doFinalHex=function(e){return this.updateHex(e),this.doFinal()}}},this.updateString=function(e){throw"updateString(str) not supported for this alg/prov: "+this.algProv},this.updateHex=function(e){throw"updateHex(hex) not supported for this alg/prov: "+this.algProv},this.doFinal=function(){throw"digest() not supported for this alg/prov: "+this.algProv},this.doFinalString=function(e){throw"digestString(str) not supported for this alg/prov: "+this.algProv},this.doFinalHex=function(e){throw"digestHex(hex) not supported for this alg/prov: "+this.algProv},this.setPassword=function(e){if("string"==typeof e){var t=e;return e.length%2!=1&&e.match(/^[0-9A-Fa-f]+$/)||(t=Jn(e)),void(this.pass=a.enc.Hex.parse(t))}if("object"!=typeof e)throw"KJUR.crypto.Mac unsupported password type: "+e;t=null;if(void 0!==e.hex){if(e.hex.length%2!=0||!e.hex.match(/^[0-9A-Fa-f]+$/))throw"Mac: wrong hex password: "+e.hex;t=e.hex}if(void 0!==e.utf8&&(t=Xn(e.utf8)),void 0!==e.rstr&&(t=Jn(e.rstr)),void 0!==e.b64&&(t=d(e.b64)),void 0!==e.b64u&&(t=Hn(e.b64u)),null==t)throw"KJUR.crypto.Mac unsupported password type: "+e;this.pass=a.enc.Hex.parse(t)},void 0!==e&&(void 0!==e.pass&&this.setPassword(e.pass),void 0!==e.alg&&(this.algName=e.alg,void 0===e.prov&&(this.provName=Rn.crypto.Util.DEFAULTPROVIDER[this.algName]),this.setAlgAndProvider(this.algName,this.provName)))},Rn.crypto.Signature=function(e){var t=null;if(this._setAlgNames=function(){var e=this.algName.match(/^(.+)with(.+)$/);e&&(this.mdAlgName=e[1].toLowerCase(),this.pubkeyAlgName=e[2].toLowerCase(),"rsaandmgf1"==this.pubkeyAlgName&&"sha"==this.mdAlgName&&(this.mdAlgName="sha1"))},this._zeroPaddingOfSignature=function(e,t){for(var n="",r=t/4-e.length,i=0;i<r;i++)n+="0";return n+e},this.setAlgAndProvider=function(e,t){if(this._setAlgNames(),"cryptojs/jsrsa"!=t)throw new Error("provider not supported: "+t);if(-1!=":md5:sha1:sha224:sha256:sha384:sha512:ripemd160:".indexOf(this.mdAlgName)){try{this.md=new Rn.crypto.MessageDigest({alg:this.mdAlgName})}catch(n){throw new Error("setAlgAndProvider hash alg set fail alg="+this.mdAlgName+"/"+n)}this.init=function(e,t){var n=null;try{n=void 0===t?Mr.getKey(e):Mr.getKey(e,t)}catch(r){throw"init failed:"+r}if(!0===n.isPrivate)this.prvKey=n,this.state="SIGN";else{if(!0!==n.isPublic)throw"init failed.:"+n;this.pubKey=n,this.state="VERIFY"}},this.updateString=function(e){this.md.updateString(e)},this.updateHex=function(e){this.md.updateHex(e)},this.sign=function(){if(this.sHashHex=this.md.digest(),void 0===this.prvKey&&void 0!==this.ecprvhex&&void 0!==this.eccurvename&&void 0!==Rn.crypto.ECDSA&&(this.prvKey=new Rn.crypto.ECDSA({curve:this.eccurvename,prv:this.ecprvhex})),this.prvKey instanceof Ut&&"rsaandmgf1"===this.pubkeyAlgName)this.hSign=this.prvKey.signWithMessageHashPSS(this.sHashHex,this.mdAlgName,this.pssSaltLen);else if(this.prvKey instanceof Ut&&"rsa"===this.pubkeyAlgName)this.hSign=this.prvKey.signWithMessageHash(this.sHashHex,this.mdAlgName);else if(this.prvKey instanceof Rn.crypto.ECDSA)this.hSign=this.prvKey.signWithMessageHash(this.sHashHex);else{if(!(this.prvKey instanceof Rn.crypto.DSA))throw"Signature: unsupported private key alg: "+this.pubkeyAlgName;this.hSign=this.prvKey.signWithMessageHash(this.sHashHex)}return this.hSign},this.signString=function(e){return this.updateString(e),this.sign()},this.signHex=function(e){return this.updateHex(e),this.sign()},this.verify=function(e){if(this.sHashHex=this.md.digest(),void 0===this.pubKey&&void 0!==this.ecpubhex&&void 0!==this.eccurvename&&void 0!==Rn.crypto.ECDSA&&(this.pubKey=new Rn.crypto.ECDSA({curve:this.eccurvename,pub:this.ecpubhex})),this.pubKey instanceof Ut&&"rsaandmgf1"===this.pubkeyAlgName)return this.pubKey.verifyWithMessageHashPSS(this.sHashHex,e,this.mdAlgName,this.pssSaltLen);if(this.pubKey instanceof Ut&&"rsa"===this.pubkeyAlgName)return this.pubKey.verifyWithMessageHash(this.sHashHex,e);if(void 0!==Rn.crypto.ECDSA&&this.pubKey instanceof Rn.crypto.ECDSA)return this.pubKey.verifyWithMessageHash(this.sHashHex,e);if(void 0!==Rn.crypto.DSA&&this.pubKey instanceof Rn.crypto.DSA)return this.pubKey.verifyWithMessageHash(this.sHashHex,e);throw"Signature: unsupported public key alg: "+this.pubkeyAlgName}}},this.init=function(e,t){throw"init(key, pass) not supported for this alg:prov="+this.algProvName},this.updateString=function(e){throw"updateString(str) not supported for this alg:prov="+this.algProvName},this.updateHex=function(e){throw"updateHex(hex) not supported for this alg:prov="+this.algProvName},this.sign=function(){throw"sign() not supported for this alg:prov="+this.algProvName},this.signString=function(e){throw"digestString(str) not supported for this alg:prov="+this.algProvName},this.signHex=function(e){throw"digestHex(hex) not supported for this alg:prov="+this.algProvName},this.verify=function(e){throw"verify(hSigVal) not supported for this alg:prov="+this.algProvName},this.initParams=e,void 0!==e&&(void 0!==e.alg&&(this.algName=e.alg,void 0===e.prov?this.provName=Rn.crypto.Util.DEFAULTPROVIDER[this.algName]:this.provName=e.prov,this.algProvName=this.algName+":"+this.provName,this.setAlgAndProvider(this.algName,this.provName),this._setAlgNames()),void 0!==e.psssaltlen&&(this.pssSaltLen=e.psssaltlen),void 0!==e.prvkeypem)){if(void 0!==e.prvkeypas)throw"both prvkeypem and prvkeypas parameters not supported";try{t=Mr.getKey(e.prvkeypem);this.init(t)}catch(n){throw"fatal error to load pem private key: "+n}}},Rn.crypto.Cipher=function(e){},Rn.crypto.Cipher.encrypt=function(e,t,n){if(t instanceof Ut&&t.isPublic){var r=Rn.crypto.Cipher.getAlgByKeyAndName(t,n);if("RSA"===r)return t.encrypt(e);if("RSAOAEP"===r)return t.encryptOAEP(e,"sha1");var i=r.match(/^RSAOAEP(\d+)$/);if(null!==i)return t.encryptOAEP(e,"sha"+i[1]);throw"Cipher.encrypt: unsupported algorithm for RSAKey: "+n}throw"Cipher.encrypt: unsupported key or algorithm"},Rn.crypto.Cipher.decrypt=function(e,t,n){if(t instanceof Ut&&t.isPrivate){var r=Rn.crypto.Cipher.getAlgByKeyAndName(t,n);if("RSA"===r)return t.decrypt(e);if("RSAOAEP"===r)return t.decryptOAEP(e,"sha1");var i=r.match(/^RSAOAEP(\d+)$/);if(null!==i)return t.decryptOAEP(e,"sha"+i[1]);throw"Cipher.decrypt: unsupported algorithm for RSAKey: "+n}throw"Cipher.decrypt: unsupported key or algorithm"},Rn.crypto.Cipher.getAlgByKeyAndName=function(e,t){if(e instanceof Ut){if(-1!=":RSA:RSAOAEP:RSAOAEP224:RSAOAEP256:RSAOAEP384:RSAOAEP512:".indexOf(t))return t;if(null===t||void 0===t)return"RSA";throw"getAlgByKeyAndName: not supported algorithm name for RSAKey: "+t}throw"getAlgByKeyAndName: not supported algorithm name: "+t},Rn.crypto.OID=new function(){this.oidhex2name={"2a864886f70d010101":"rsaEncryption","2a8648ce3d0201":"ecPublicKey","2a8648ce380401":"dsa","2a8648ce3d030107":"secp256r1","2b8104001f":"secp192k1","2b81040021":"secp224r1","2b8104000a":"secp256k1","2b81040022":"secp384r1","2b81040023":"secp521r1","2a8648ce380403":"SHA1withDSA","608648016503040301":"SHA224withDSA","608648016503040302":"SHA256withDSA"}},"undefined"!=typeof Rn&&Rn||(Rn={}),"undefined"!=typeof Rn.crypto&&Rn.crypto||(Rn.crypto={}),Rn.crypto.ECDSA=function(e){var t="secp256r1",n=Error,r=m,i=dn,o=Rn.crypto.ECDSA,a=Rn.crypto.ECParameterDB,s=o.getName,l=Dn,c=l.getVbyListEx,u=l.isASN1HEX,d=new Mt;this.type="EC",this.isPrivate=!1,this.isPublic=!1,this.getBigRandom=function(e){return new r(e.bitLength(),d).mod(e.subtract(r.ONE)).add(r.ONE)},this.setNamedCurve=function(e){this.ecparams=a.getByName(e),this.prvKeyHex=null,this.pubKeyHex=null,this.curveName=e},this.setPrivateKeyHex=function(e){this.isPrivate=!0,this.prvKeyHex=e},this.setPublicKeyHex=function(e){this.isPublic=!0,this.pubKeyHex=e},this.getPublicKeyXYHex=function(){var e=this.pubKeyHex;if("04"!==e.substr(0,2))throw"this method supports uncompressed format(04) only";var t=this.ecparams.keycharlen;if(e.length!==2+2*t)throw"malformed public key hex length";var n={};return n.x=e.substr(2,t),n.y=e.substr(2+t),n},this.getShortNISTPCurveName=function(){var e=this.curveName;return"secp256r1"===e||"NIST P-256"===e||"P-256"===e||"prime256v1"===e?"P-256":"secp384r1"===e||"NIST P-384"===e||"P-384"===e?"P-384":"secp521r1"===e||"NIST P-521"===e||"P-521"===e?"P-521":null},this.generateKeyPairHex=function(){var e=this.ecparams.n,t=this.getBigRandom(e),n=this.ecparams.keycharlen,r=("0000000000"+t.toString(16)).slice(-n);this.setPrivateKeyHex(r);var i=this.generatePublicKeyHex();return{ecprvhex:r,ecpubhex:i}},this.generatePublicKeyHex=function(){var e=new r(this.prvKeyHex,16),t=this.ecparams.G.multiply(e),n=t.getX().toBigInteger(),i=t.getY().toBigInteger(),o=this.ecparams.keycharlen,a=("0000000000"+n.toString(16)).slice(-o),s=("0000000000"+i.toString(16)).slice(-o),l="04"+a+s;return this.setPublicKeyHex(l),l},this.signWithMessageHash=function(e){return this.signHex(e,this.prvKeyHex)},this.signHex=function(e,t){var n=new r(t,16),i=this.ecparams.n,a=new r(e.substring(0,this.ecparams.keycharlen),16);do{var s=this.getBigRandom(i),l=this.ecparams.G,c=l.multiply(s),u=c.getX().toBigInteger().mod(i)}while(u.compareTo(r.ZERO)<=0);var d=s.modInverse(i).multiply(a.add(n.multiply(u))).mod(i);return o.biRSSigToASN1Sig(u,d)},this.sign=function(e,t){var n=t,i=this.ecparams.n,o=r.fromByteArrayUnsigned(e);do{var a=this.getBigRandom(i),s=this.ecparams.G,l=s.multiply(a),c=l.getX().toBigInteger().mod(i)}while(c.compareTo(m.ZERO)<=0);var u=a.modInverse(i).multiply(o.add(n.multiply(c))).mod(i);return this.serializeSig(c,u)},this.verifyWithMessageHash=function(e,t){return this.verifyHex(e,t,this.pubKeyHex)},this.verifyHex=function(e,t,n){try{var a,s,l=o.parseSigHex(t);a=l.r,s=l.s;var c=i.decodeFromHex(this.ecparams.curve,n),u=new r(e.substring(0,this.ecparams.keycharlen),16);return this.verifyRaw(u,a,s,c)}catch(d){return!1}},this.verify=function(e,t,n){var o,a,s;if(Bitcoin.Util.isArray(t)){var l=this.parseSig(t);o=l.r,a=l.s}else{if("object"!==typeof t||!t.r||!t.s)throw"Invalid value for signature";o=t.r,a=t.s}if(n instanceof dn)s=n;else{if(!Bitcoin.Util.isArray(n))throw"Invalid format for pubkey value, must be byte array or ECPointFp";s=i.decodeFrom(this.ecparams.curve,n)}var c=r.fromByteArrayUnsigned(e);return this.verifyRaw(c,o,a,s)},this.verifyRaw=function(e,t,n,i){var o=this.ecparams.n,a=this.ecparams.G;if(t.compareTo(r.ONE)<0||t.compareTo(o)>=0)return!1;if(n.compareTo(r.ONE)<0||n.compareTo(o)>=0)return!1;var s=n.modInverse(o),l=e.multiply(s).mod(o),c=t.multiply(s).mod(o),u=a.multiply(l).add(i.multiply(c)),d=u.getX().toBigInteger().mod(o);return d.equals(t)},this.serializeSig=function(e,t){var n=e.toByteArraySigned(),r=t.toByteArraySigned(),i=[];return i.push(2),i.push(n.length),i=i.concat(n),i.push(2),i.push(r.length),i=i.concat(r),i.unshift(i.length),i.unshift(48),i},this.parseSig=function(e){var t;if(48!=e[0])throw new Error("Signature not a valid DERSequence");if(t=2,2!=e[t])throw new Error("First element in signature must be a DERInteger");var n=e.slice(t+2,t+2+e[t+1]);if(t+=2+e[t+1],2!=e[t])throw new Error("Second element in signature must be a DERInteger");var i=e.slice(t+2,t+2+e[t+1]);t+=2+e[t+1];var o=r.fromByteArrayUnsigned(n),a=r.fromByteArrayUnsigned(i);return{r:o,s:a}},this.parseSigCompact=function(e){if(65!==e.length)throw"Signature has the wrong length";var t=e[0]-27;if(t<0||t>7)throw"Invalid signature type";var n=this.ecparams.n,i=r.fromByteArrayUnsigned(e.slice(1,33)).mod(n),o=r.fromByteArrayUnsigned(e.slice(33,65)).mod(n);return{r:i,s:o,i:t}},this.readPKCS5PrvKeyHex=function(e){if(!1===u(e))throw new Error("not ASN.1 hex string");var t,n,r;try{t=c(e,0,["[0]",0],"06"),n=c(e,0,[1],"04");try{r=c(e,0,["[1]",0],"03")}catch(i){}}catch(i){throw new Error("malformed PKCS#1/5 plain ECC private key")}if(this.curveName=s(t),void 0===this.curveName)throw"unsupported curve name";this.setNamedCurve(this.curveName),this.setPublicKeyHex(r),this.setPrivateKeyHex(n),this.isPublic=!1},this.readPKCS8PrvKeyHex=function(e){if(!1===u(e))throw new n("not ASN.1 hex string");var t,r,i;try{c(e,0,[1,0],"06"),t=c(e,0,[1,1],"06"),r=c(e,0,[2,0,1],"04");try{i=c(e,0,[2,0,"[1]",0],"03")}catch(o){}}catch(o){throw new n("malformed PKCS#8 plain ECC private key")}if(this.curveName=s(t),void 0===this.curveName)throw new n("unsupported curve name");this.setNamedCurve(this.curveName),this.setPublicKeyHex(i),this.setPrivateKeyHex(r),this.isPublic=!1},this.readPKCS8PubKeyHex=function(e){if(!1===u(e))throw new n("not ASN.1 hex string");var t,r;try{c(e,0,[0,0],"06"),t=c(e,0,[0,1],"06"),r=c(e,0,[1],"03")}catch(i){throw new n("malformed PKCS#8 ECC public key")}if(this.curveName=s(t),null===this.curveName)throw new n("unsupported curve name");this.setNamedCurve(this.curveName),this.setPublicKeyHex(r)},this.readCertPubKeyHex=function(e,t){if(!1===u(e))throw new n("not ASN.1 hex string");var r,i;try{r=c(e,0,[0,5,0,1],"06"),i=c(e,0,[0,5,1],"03")}catch(o){throw new n("malformed X.509 certificate ECC public key")}if(this.curveName=s(r),null===this.curveName)throw new n("unsupported curve name");this.setNamedCurve(this.curveName),this.setPublicKeyHex(i)},void 0!==e&&void 0!==e.curve&&(this.curveName=e.curve),void 0===this.curveName&&(this.curveName=t),this.setNamedCurve(this.curveName),void 0!==e&&(void 0!==e.prv&&this.setPrivateKeyHex(e.prv),void 0!==e.pub&&this.setPublicKeyHex(e.pub))},Rn.crypto.ECDSA.parseSigHex=function(e){var t=Rn.crypto.ECDSA.parseSigHexInHexRS(e),n=new m(t.r,16),r=new m(t.s,16);return{r:n,s:r}},Rn.crypto.ECDSA.parseSigHexInHexRS=function(e){var t=Dn,n=t.getChildIdx,r=t.getV;if(t.checkStrictDER(e,0),"30"!=e.substr(0,2))throw new Error("signature is not a ASN.1 sequence");var i=n(e,0);if(2!=i.length)throw new Error("signature shall have two elements");var o=i[0],a=i[1];if("02"!=e.substr(o,2))throw new Error("1st item not ASN.1 integer");if("02"!=e.substr(a,2))throw new Error("2nd item not ASN.1 integer");var s=r(e,o),l=r(e,a);return{r:s,s:l}},Rn.crypto.ECDSA.asn1SigToConcatSig=function(e){var t=Rn.crypto.ECDSA.parseSigHexInHexRS(e),n=t.r,r=t.s;if(n.length>=130&&n.length<=134){if(n.length%2!=0)throw Error("unknown ECDSA sig r length error");if(r.length%2!=0)throw Error("unknown ECDSA sig s length error");"00"==n.substr(0,2)&&(n=n.substr(2)),"00"==r.substr(0,2)&&(r=r.substr(2));var i=Math.max(n.length,r.length);return n=("000000"+n).slice(-i),r=("000000"+r).slice(-i),n+r}if("00"==n.substr(0,2)&&n.length%32==2&&(n=n.substr(2)),"00"==r.substr(0,2)&&r.length%32==2&&(r=r.substr(2)),n.length%32==30&&(n="00"+n),r.length%32==30&&(r="00"+r),n.length%32!=0)throw Error("unknown ECDSA sig r length error");if(r.length%32!=0)throw Error("unknown ECDSA sig s length error");return n+r},Rn.crypto.ECDSA.concatSigToASN1Sig=function(e){if(e.length%4!=0)throw Error("unknown ECDSA concatinated r-s sig length error");var t=e.substr(0,e.length/2),n=e.substr(e.length/2);return Rn.crypto.ECDSA.hexRSSigToASN1Sig(t,n)},Rn.crypto.ECDSA.hexRSSigToASN1Sig=function(e,t){var n=new m(e,16),r=new m(t,16);return Rn.crypto.ECDSA.biRSSigToASN1Sig(n,r)},Rn.crypto.ECDSA.biRSSigToASN1Sig=function(e,t){var n=Rn.asn1,r=new n.DERInteger({bigint:e}),i=new n.DERInteger({bigint:t}),o=new n.DERSequence({array:[r,i]});return o.tohex()},Rn.crypto.ECDSA.getName=function(e){return"2b8104001f"===e?"secp192k1":"2a8648ce3d030107"===e?"secp256r1":"2b8104000a"===e?"secp256k1":"2b81040021"===e?"secp224r1":"2b81040022"===e?"secp384r1":"2b81040023"===e?"secp521r1":-1!=="|secp256r1|NIST P-256|P-256|prime256v1|".indexOf(e)?"secp256r1":-1!=="|secp256k1|".indexOf(e)?"secp256k1":-1!=="|secp224r1|NIST P-224|P-224|".indexOf(e)?"secp224r1":-1!=="|secp384r1|NIST P-384|P-384|".indexOf(e)?"secp384r1":-1!=="|secp521r1|NIST P-521|P-521|".indexOf(e)?"secp521r1":null},"undefined"!=typeof Rn&&Rn||(Rn={}),"undefined"!=typeof Rn.crypto&&Rn.crypto||(Rn.crypto={}),Rn.crypto.ECParameterDB=new function(){var e={},t={};function n(e){return new m(e,16)}this.getByName=function(n){var r=n;if("undefined"!=typeof t[r]&&(r=t[n]),"undefined"!=typeof e[r])return e[r];throw"unregistered EC curve name: "+r},this.regist=function(r,i,o,a,s,l,c,u,d,h,p,f){e[r]={};var m=n(o),g=n(a),v=n(s),y=n(l),b=n(c),_=new wn(m,g,v),w=_.decodePointHex("04"+u+d);e[r]["name"]=r,e[r]["keylen"]=i,e[r]["keycharlen"]=2*Math.ceil(i/8),e[r]["curve"]=_,e[r]["G"]=w,e[r]["n"]=y,e[r]["h"]=b,e[r]["oid"]=p,e[r]["info"]=f;for(var E=0;E<h.length;E++)t[h[E]]=r}},Rn.crypto.ECParameterDB.regist("secp128r1",128,"FFFFFFFDFFFFFFFFFFFFFFFFFFFFFFFF","FFFFFFFDFFFFFFFFFFFFFFFFFFFFFFFC","E87579C11079F43DD824993C2CEE5ED3","FFFFFFFE0000000075A30D1B9038A115","1","161FF7528B899B2D0C28607CA52C5B86","CF5AC8395BAFEB13C02DA292DDED7A83",[],"","secp128r1 : SECG curve over a 128 bit prime field"),Rn.crypto.ECParameterDB.regist("secp160k1",160,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFAC73","0","7","0100000000000000000001B8FA16DFAB9ACA16B6B3","1","3B4C382CE37AA192A4019E763036F4F5DD4D7EBB","938CF935318FDCED6BC28286531733C3F03C4FEE",[],"","secp160k1 : SECG curve over a 160 bit prime field"),Rn.crypto.ECParameterDB.regist("secp160r1",160,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF7FFFFFFF","FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF7FFFFFFC","1C97BEFC54BD7A8B65ACF89F81D4D4ADC565FA45","0100000000000000000001F4C8F927AED3CA752257","1","4A96B5688EF573284664698968C38BB913CBFC82","23A628553168947D59DCC912042351377AC5FB32",[],"","secp160r1 : SECG curve over a 160 bit prime field"),Rn.crypto.ECParameterDB.regist("secp192k1",192,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFEE37","0","3","FFFFFFFFFFFFFFFFFFFFFFFE26F2FC170F69466A74DEFD8D","1","DB4FF10EC057E9AE26B07D0280B7F4341DA5D1B1EAE06C7D","9B2F2F6D9C5628A7844163D015BE86344082AA88D95E2F9D",[]),Rn.crypto.ECParameterDB.regist("secp192r1",192,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFF","FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFC","64210519E59C80E70FA7E9AB72243049FEB8DEECC146B9B1","FFFFFFFFFFFFFFFFFFFFFFFF99DEF836146BC9B1B4D22831","1","188DA80EB03090F67CBF20EB43A18800F4FF0AFD82FF1012","07192B95FFC8DA78631011ED6B24CDD573F977A11E794811",[]),Rn.crypto.ECParameterDB.regist("secp224r1",224,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF000000000000000000000001","FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFE","B4050A850C04B3ABF54132565044B0B7D7BFD8BA270B39432355FFB4","FFFFFFFFFFFFFFFFFFFFFFFFFFFF16A2E0B8F03E13DD29455C5C2A3D","1","B70E0CBD6BB4BF7F321390B94A03C1D356C21122343280D6115C1D21","BD376388B5F723FB4C22DFE6CD4375A05A07476444D5819985007E34",[]),Rn.crypto.ECParameterDB.regist("secp256k1",256,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F","0","7","FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141","1","79BE667EF9DCBBAC55A06295CE870B07029BFCDB2DCE28D959F2815B16F81798","483ADA7726A3C4655DA4FBFC0E1108A8FD17B448A68554199C47D08FFB10D4B8",[]),Rn.crypto.ECParameterDB.regist("secp256r1",256,"FFFFFFFF00000001000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFF","FFFFFFFF00000001000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFC","5AC635D8AA3A93E7B3EBBD55769886BC651D06B0CC53B0F63BCE3C3E27D2604B","FFFFFFFF00000000FFFFFFFFFFFFFFFFBCE6FAADA7179E84F3B9CAC2FC632551","1","6B17D1F2E12C4247F8BCE6E563A440F277037D812DEB33A0F4A13945D898C296","4FE342E2FE1A7F9B8EE7EB4A7C0F9E162BCE33576B315ECECBB6406837BF51F5",["NIST P-256","P-256","prime256v1"]),Rn.crypto.ECParameterDB.regist("secp384r1",384,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFF0000000000000000FFFFFFFF","FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFF0000000000000000FFFFFFFC","B3312FA7E23EE7E4988E056BE3F82D19181D9C6EFE8141120314088F5013875AC656398D8A2ED19D2A85C8EDD3EC2AEF","FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFC7634D81F4372DDF581A0DB248B0A77AECEC196ACCC52973","1","AA87CA22BE8B05378EB1C71EF320AD746E1D3B628BA79B9859F741E082542A385502F25DBF55296C3A545E3872760AB7","3617de4a96262c6f5d9e98bf9292dc29f8f41dbd289a147ce9da3113b5f0b8c00a60b1ce1d7e819d7a431d7c90ea0e5f",["NIST P-384","P-384"]),Rn.crypto.ECParameterDB.regist("secp521r1",521,"1FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF","1FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFC","051953EB9618E1C9A1F929A21A0B68540EEA2DA725B99B315F3B8B489918EF109E156193951EC7E937B1652C0BD3BB1BF073573DF883D2C34F1EF451FD46B503F00","1FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFA51868783BF2F966B7FCC0148F709A5D03BB5C9B8899C47AEBB6FB71E91386409","1","00C6858E06B70404E9CD9E3ECB662395B4429C648139053FB521F828AF606B4D3DBAA14B5E77EFE75928FE1DC127A2FFA8DE3348B3C1856A429BF97E7E31C2E5BD66","011839296a789a3bc0045c8a5fb42c7d1bd998f54449579b446817afbd17273e662c97ee72995ef42640c550b9013fad0761353c7086a272c24088be94769fd16650",["NIST P-521","P-521"]),"undefined"!=typeof Rn&&Rn||(Rn={}),"undefined"!=typeof Rn.crypto&&Rn.crypto||(Rn.crypto={}),Rn.crypto.DSA=function(){var e=Dn,t=(e.getVbyList,e.getVbyListEx),n=e.isASN1HEX,r=m;this.p=null,this.q=null,this.g=null,this.y=null,this.x=null,this.type="DSA",this.isPrivate=!1,this.isPublic=!1,this.setPrivate=function(e,t,n,r,i){this.isPrivate=!0,this.p=e,this.q=t,this.g=n,this.y=r,this.x=i},this.setPrivateHex=function(e,t,n,r,i){var o,a,s,l,c;o=new m(e,16),a=new m(t,16),s=new m(n,16),l="string"===typeof r&&r.length>1?new m(r,16):null,c=new m(i,16),this.setPrivate(o,a,s,l,c)},this.setPublic=function(e,t,n,r){this.isPublic=!0,this.p=e,this.q=t,this.g=n,this.y=r,this.x=null},this.setPublicHex=function(e,t,n,r){var i,o,a,s;i=new m(e,16),o=new m(t,16),a=new m(n,16),s=new m(r,16),this.setPublic(i,o,a,s)},this.signWithMessageHash=function(e){var t=this.p,n=this.q,r=this.g,i=(this.y,this.x),o=Rn.crypto.Util.getRandomBigIntegerMinToMax(m.ONE.add(m.ONE),n.subtract(m.ONE)),a=e.substr(0,n.bitLength()/4),s=new m(a,16),l=r.modPow(o,t).mod(n),c=o.modInverse(n).multiply(s.add(i.multiply(l))).mod(n),u=Rn.asn1.ASN1Util.jsonToASN1HEX({seq:[{int:{bigint:l}},{int:{bigint:c}}]});return u},this.verifyWithMessageHash=function(e,t){var n=this.p,r=this.q,i=this.g,o=this.y,a=this.parseASN1Signature(t),s=a[0],l=a[1],c=e.substr(0,r.bitLength()/4),u=new m(c,16);if(m.ZERO.compareTo(s)>0||s.compareTo(r)>0)throw"invalid DSA signature";if(m.ZERO.compareTo(l)>=0||l.compareTo(r)>0)throw"invalid DSA signature";var d=l.modInverse(r),h=u.multiply(d).mod(r),p=s.multiply(d).mod(r),f=i.modPow(h,n).multiply(o.modPow(p,n)).mod(n).mod(r);return 0==f.compareTo(s)},this.parseASN1Signature=function(e){try{var n=new r(t(e,0,[0],"02"),16),i=new r(t(e,0,[1],"02"),16);return[n,i]}catch(o){throw new Error("malformed ASN.1 DSA signature")}},this.readPKCS5PrvKeyHex=function(e){var r,i,o,a,s;if(!1===n(e))throw new Error("not ASN.1 hex string");try{r=t(e,0,[1],"02"),i=t(e,0,[2],"02"),o=t(e,0,[3],"02"),a=t(e,0,[4],"02"),s=t(e,0,[5],"02")}catch(l){throw new Error("malformed PKCS#1/5 plain DSA private key")}this.setPrivateHex(r,i,o,a,s)},this.readPKCS8PrvKeyHex=function(e){var r,i,o,a;if(!1===n(e))throw new Error("not ASN.1 hex string");try{r=t(e,0,[1,1,0],"02"),i=t(e,0,[1,1,1],"02"),o=t(e,0,[1,1,2],"02"),a=t(e,0,[2,0],"02")}catch(s){throw new Error("malformed PKCS#8 plain DSA private key")}this.setPrivateHex(r,i,o,null,a)},this.readPKCS8PubKeyHex=function(e){var r,i,o,a;if(!1===n(e))throw new Error("not ASN.1 hex string");try{r=t(e,0,[0,1,0],"02"),i=t(e,0,[0,1,1],"02"),o=t(e,0,[0,1,2],"02"),a=t(e,0,[1,0],"02")}catch(s){throw new Error("malformed PKCS#8 DSA public key")}this.setPublicHex(r,i,o,a)},this.readCertPubKeyHex=function(e,r){var i,o,a,s;if(!1===n(e))throw new Error("not ASN.1 hex string");try{i=t(e,0,[0,5,0,1,0],"02"),o=t(e,0,[0,5,0,1,1],"02"),a=t(e,0,[0,5,0,1,2],"02"),s=t(e,0,[0,5,1,0],"02")}catch(l){throw new Error("malformed X.509 certificate DSA public key")}this.setPublicHex(i,o,a,s)}};var Mr=function(){var e=function(e,t,n){return r(a.AES,e,t,n)},t=function(e,t,n){return r(a.TripleDES,e,t,n)},n=function(e,t,n){return r(a.DES,e,t,n)},r=function(e,t,n,r){var i=a.enc.Hex.parse(t),o=a.enc.Hex.parse(n),s=a.enc.Hex.parse(r),l={};l.key=o,l.iv=s,l.ciphertext=i;var c=e.decrypt(l,o,{iv:s});return a.enc.Hex.stringify(c)},i=function(e,t,n){return l(a.AES,e,t,n)},o=function(e,t,n){return l(a.TripleDES,e,t,n)},s=function(e,t,n){return l(a.DES,e,t,n)},l=function(e,t,n,r){var i=a.enc.Hex.parse(t),o=a.enc.Hex.parse(n),s=a.enc.Hex.parse(r),l=e.encrypt(i,o,{iv:s}),c=a.enc.Hex.parse(l.toString()),u=a.enc.Base64.stringify(c);return u},c={"AES-256-CBC":{proc:e,eproc:i,keylen:32,ivlen:16},"AES-192-CBC":{proc:e,eproc:i,keylen:24,ivlen:16},"AES-128-CBC":{proc:e,eproc:i,keylen:16,ivlen:16},"DES-EDE3-CBC":{proc:t,eproc:o,keylen:24,ivlen:8},"DES-CBC":{proc:n,eproc:s,keylen:8,ivlen:8}},u=function(e){var t=a.lib.WordArray.random(e),n=a.enc.Hex.stringify(t);return n},d=function(e){var t={},n=e.match(new RegExp("DEK-Info: ([^,]+),([0-9A-Fa-f]+)","m"));n&&(t.cipher=n[1],t.ivsalt=n[2]);var r=e.match(new RegExp("-----BEGIN ([A-Z]+) PRIVATE KEY-----"));r&&(t.type=r[1]);var i=-1,o=0;-1!=e.indexOf("\r\n\r\n")&&(i=e.indexOf("\r\n\r\n"),o=2),-1!=e.indexOf("\n\n")&&(i=e.indexOf("\n\n"),o=1);var a=e.indexOf("-----END");if(-1!=i&&-1!=a){var s=e.substring(i+2*o,a-o);s=s.replace(/\s+/g,""),t.data=s}return t},h=function(e,t,n){for(var r=n.substring(0,16),i=a.enc.Hex.parse(r),o=a.enc.Utf8.parse(t),s=c[e]["keylen"]+c[e]["ivlen"],l="",u=null;;){var d=a.algo.MD5.create();if(null!=u&&d.update(u),d.update(o),d.update(i),u=d.finalize(),l+=a.enc.Hex.stringify(u),l.length>=2*s)break}var h={};return h.keyhex=l.substr(0,2*c[e]["keylen"]),h.ivhex=l.substr(2*c[e]["keylen"],2*c[e]["ivlen"]),h},p=function(e,t,n,r){var i=a.enc.Base64.parse(e),o=a.enc.Hex.stringify(i),s=c[t]["proc"],l=s(o,n,r);return l},f=function(e,t,n,r){var i=c[t]["eproc"],o=i(e,n,r);return o};return{version:"1.0.0",parsePKCS5PEM:function(e){return d(e)},getKeyAndUnusedIvByPasscodeAndIvsalt:function(e,t,n){return h(e,t,n)},decryptKeyB64:function(e,t,n,r){return p(e,t,n,r)},getDecryptedKeyHex:function(e,t){var n=d(e),r=(n.type,n.cipher),i=n.ivsalt,o=n.data,a=h(r,t,i),s=a.keyhex,l=p(o,r,s,i);return l},getEncryptedPKCS5PEMFromPrvKeyHex:function(e,t,n,r,i){var o="";if("undefined"!=typeof r&&null!=r||(r="AES-256-CBC"),"undefined"==typeof c[r])throw new Error("KEYUTIL unsupported algorithm: "+r);if("undefined"==typeof i||null==i){var a=c[r]["ivlen"],s=u(a);i=s.toUpperCase()}var l=h(r,n,i),d=l.keyhex,p=f(t,r,d,i),m=p.replace(/(.{64})/g,"$1\r\n");o="-----BEGIN "+e+" PRIVATE KEY-----\r\n";return o+="Proc-Type: 4,ENCRYPTED\r\n",o+="DEK-Info: "+r+","+i+"\r\n",o+="\r\n",o+=m,o+="\r\n-----END "+e+" PRIVATE KEY-----\r\n",o},parseHexOfEncryptedPKCS8:function(e){var t=Dn,n=t.getChildIdx,r=t.getV,i={},o=n(e,0);if(2!=o.length)throw new Error("malformed format: SEQUENCE(0).items != 2: "+o.length);i.ciphertext=r(e,o[1]);var a=n(e,o[0]);if(2!=a.length)throw new Error("malformed format: SEQUENCE(0.0).items != 2: "+a.length);if("2a864886f70d01050d"!=r(e,a[0]))throw new Error("this only supports pkcs5PBES2");var s=n(e,a[1]);if(2!=a.length)throw new Error("malformed format: SEQUENCE(0.0.1).items != 2: "+s.length);var l=n(e,s[1]);if(2!=l.length)throw new Error("malformed format: SEQUENCE(0.0.1.1).items != 2: "+l.length);if("2a864886f70d0307"!=r(e,l[0]))throw"this only supports TripleDES";i.encryptionSchemeAlg="TripleDES",i.encryptionSchemeIV=r(e,l[1]);var c=n(e,s[0]);if(2!=c.length)throw new Error("malformed format: SEQUENCE(0.0.1.0).items != 2: "+c.length);if("2a864886f70d01050c"!=r(e,c[0]))throw new Error("this only supports pkcs5PBKDF2");var u=n(e,c[1]);if(u.length<2)throw new Error("malformed format: SEQUENCE(0.0.1.0.1).items < 2: "+u.length);i.pbkdf2Salt=r(e,u[0]);var d=r(e,u[1]);try{i.pbkdf2Iter=parseInt(d,16)}catch(h){throw new Error("malformed format pbkdf2Iter: "+d)}return i},getPBKDF2KeyHexFromParam:function(e,t){var n=a.enc.Hex.parse(e.pbkdf2Salt),r=e.pbkdf2Iter,i=a.PBKDF2(t,n,{keySize:6,iterations:r}),o=a.enc.Hex.stringify(i);return o},_getPlainPKCS8HexFromEncryptedPKCS8PEM:function(e,t){var n=rr(e,"ENCRYPTED PRIVATE KEY"),r=this.parseHexOfEncryptedPKCS8(n),i=Mr.getPBKDF2KeyHexFromParam(r,t),o={};o.ciphertext=a.enc.Hex.parse(r.ciphertext);var s=a.enc.Hex.parse(i),l=a.enc.Hex.parse(r.encryptionSchemeIV),c=a.TripleDES.decrypt(o,s,{iv:l}),u=a.enc.Hex.stringify(c);return u},getKeyFromEncryptedPKCS8PEM:function(e,t){var n=this._getPlainPKCS8HexFromEncryptedPKCS8PEM(e,t),r=this.getKeyFromPlainPrivatePKCS8Hex(n);return r},parsePlainPrivatePKCS8Hex:function(e){var t=Dn,n=t.getChildIdx,r=t.getV,i={algparam:null};if("30"!=e.substr(0,2))throw new Error("malformed plain PKCS8 private key(code:001)");var o=n(e,0);if(o.length<3)throw new Error("malformed plain PKCS8 private key(code:002)");if("30"!=e.substr(o[1],2))throw new Error("malformed PKCS8 private key(code:003)");var a=n(e,o[1]);if(2!=a.length)throw new Error("malformed PKCS8 private key(code:004)");if("06"!=e.substr(a[0],2))throw new Error("malformed PKCS8 private key(code:005)");if(i.algoid=r(e,a[0]),"06"==e.substr(a[1],2)&&(i.algparam=r(e,a[1])),"04"!=e.substr(o[2],2))throw new Error("malformed PKCS8 private key(code:006)");return i.keyidx=t.getVidx(e,o[2]),i},getKeyFromPlainPrivatePKCS8PEM:function(e){var t=rr(e,"PRIVATE KEY"),n=this.getKeyFromPlainPrivatePKCS8Hex(t);return n},getKeyFromPlainPrivatePKCS8Hex:function(e){var t,n=this.parsePlainPrivatePKCS8Hex(e);if("2a864886f70d010101"==n.algoid)t=new Ut;else if("2a8648ce380401"==n.algoid)t=new Rn.crypto.DSA;else{if("2a8648ce3d0201"!=n.algoid)throw new Error("unsupported private key algorithm");t=new Rn.crypto.ECDSA}return t.readPKCS8PrvKeyHex(e),t},_getKeyFromPublicPKCS8Hex:function(e){var t,n=Dn.getVbyList(e,0,[0,0],"06");if("2a864886f70d010101"===n)t=new Ut;else if("2a8648ce380401"===n)t=new Rn.crypto.DSA;else{if("2a8648ce3d0201"!==n)throw new Error("unsupported PKCS#8 public key hex");t=new Rn.crypto.ECDSA}return t.readPKCS8PubKeyHex(e),t},parsePublicRawRSAKeyHex:function(e){var t=Dn,n=t.getChildIdx,r=t.getV,i={};if("30"!=e.substr(0,2))throw new Error("malformed RSA key(code:001)");var o=n(e,0);if(2!=o.length)throw new Error("malformed RSA key(code:002)");if("02"!=e.substr(o[0],2))throw new Error("malformed RSA key(code:003)");if(i.n=r(e,o[0]),"02"!=e.substr(o[1],2))throw new Error("malformed RSA key(code:004)");return i.e=r(e,o[1]),i},parsePublicPKCS8Hex:function(e){var t=Dn,n=t.getChildIdx,r=t.getV,i={algparam:null},o=n(e,0);if(2!=o.length)throw new Error("outer DERSequence shall have 2 elements: "+o.length);var a=o[0];if("30"!=e.substr(a,2))throw new Error("malformed PKCS8 public key(code:001)");var s=n(e,a);if(2!=s.length)throw new Error("malformed PKCS8 public key(code:002)");if("06"!=e.substr(s[0],2))throw new Error("malformed PKCS8 public key(code:003)");if(i.algoid=r(e,s[0]),"06"==e.substr(s[1],2)?i.algparam=r(e,s[1]):"30"==e.substr(s[1],2)&&(i.algparam={},i.algparam.p=t.getVbyList(e,s[1],[0],"02"),i.algparam.q=t.getVbyList(e,s[1],[1],"02"),i.algparam.g=t.getVbyList(e,s[1],[2],"02")),"03"!=e.substr(o[1],2))throw new Error("malformed PKCS8 public key(code:004)");return i.key=r(e,o[1]).substr(2),i}}}();Mr.getKey=function(e,t,n){var r=Dn,i=r.getChildIdx,o=(r.getV,r.getVbyList),a=Rn.crypto,s=a.ECDSA,l=a.DSA,c=Ut,u=rr,d=Mr;if("undefined"!=typeof c&&e instanceof c)return e;if("undefined"!=typeof s&&e instanceof s)return e;if("undefined"!=typeof l&&e instanceof l)return e;if(void 0!==e.curve&&void 0!==e.xy&&void 0===e.d)return new s({pub:e.xy,curve:e.curve});if(void 0!==e.curve&&void 0!==e.d)return new s({prv:e.d,curve:e.curve});if(void 0===e.kty&&void 0!==e.n&&void 0!==e.e&&void 0===e.d){var h=new c;return h.setPublic(e.n,e.e),h}if(void 0===e.kty&&void 0!==e.n&&void 0!==e.e&&void 0!==e.d&&void 0!==e.p&&void 0!==e.q&&void 0!==e.dp&&void 0!==e.dq&&void 0!==e.co&&void 0===e.qi){h=new c;return h.setPrivateEx(e.n,e.e,e.d,e.p,e.q,e.dp,e.dq,e.co),h}if(void 0===e.kty&&void 0!==e.n&&void 0!==e.e&&void 0!==e.d&&void 0===e.p){h=new c;return h.setPrivate(e.n,e.e,e.d),h}if(void 0!==e.p&&void 0!==e.q&&void 0!==e.g&&void 0!==e.y&&void 0===e.x){h=new l;return h.setPublic(e.p,e.q,e.g,e.y),h}if(void 0!==e.p&&void 0!==e.q&&void 0!==e.g&&void 0!==e.y&&void 0!==e.x){h=new l;return h.setPrivate(e.p,e.q,e.g,e.y,e.x),h}if("RSA"===e.kty&&void 0!==e.n&&void 0!==e.e&&void 0===e.d){h=new c;return h.setPublic(Hn(e.n),Hn(e.e)),h}if("RSA"===e.kty&&void 0!==e.n&&void 0!==e.e&&void 0!==e.d&&void 0!==e.p&&void 0!==e.q&&void 0!==e.dp&&void 0!==e.dq&&void 0!==e.qi){h=new c;return h.setPrivateEx(Hn(e.n),Hn(e.e),Hn(e.d),Hn(e.p),Hn(e.q),Hn(e.dp),Hn(e.dq),Hn(e.qi)),h}if("RSA"===e.kty&&void 0!==e.n&&void 0!==e.e&&void 0!==e.d){h=new c;return h.setPrivate(Hn(e.n),Hn(e.e),Hn(e.d)),h}if("EC"===e.kty&&void 0!==e.crv&&void 0!==e.x&&void 0!==e.y&&void 0===e.d){var p=new s({curve:e.crv}),f=p.ecparams.keycharlen,g=("0000000000"+Hn(e.x)).slice(-f),v=("0000000000"+Hn(e.y)).slice(-f),y="04"+g+v;return p.setPublicKeyHex(y),p}if("EC"===e.kty&&void 0!==e.crv&&void 0!==e.x&&void 0!==e.y&&void 0!==e.d){p=new s({curve:e.crv}),f=p.ecparams.keycharlen,g=("0000000000"+Hn(e.x)).slice(-f),v=("0000000000"+Hn(e.y)).slice(-f),y="04"+g+v;var b=("0000000000"+Hn(e.d)).slice(-f);return p.setPublicKeyHex(y),p.setPrivateKeyHex(b),p}if("pkcs5prv"===n){var _,w=e;r=Dn;if(_=i(w,0),9===_.length)h=new c,h.readPKCS5PrvKeyHex(w);else if(6===_.length)h=new l,h.readPKCS5PrvKeyHex(w);else{if(!(_.length>2&&"04"===w.substr(_[1],2)))throw new Error("unsupported PKCS#1/5 hexadecimal key");h=new s,h.readPKCS5PrvKeyHex(w)}return h}if("pkcs8prv"===n){h=d.getKeyFromPlainPrivatePKCS8Hex(e);return h}if("pkcs8pub"===n)return d._getKeyFromPublicPKCS8Hex(e);if("x509pub"===n)return jr.getPublicKeyFromCertHex(e);if(-1!=e.indexOf("-END CERTIFICATE-",0)||-1!=e.indexOf("-END X509 CERTIFICATE-",0)||-1!=e.indexOf("-END TRUSTED CERTIFICATE-",0))return jr.getPublicKeyFromCertPEM(e);if(-1!=e.indexOf("-END PUBLIC KEY-")){var E=rr(e,"PUBLIC KEY");return d._getKeyFromPublicPKCS8Hex(E)}if(-1!=e.indexOf("-END RSA PRIVATE KEY-")&&-1==e.indexOf("4,ENCRYPTED")){var S=u(e,"RSA PRIVATE KEY");return d.getKey(S,null,"pkcs5prv")}if(-1!=e.indexOf("-END DSA PRIVATE KEY-")&&-1==e.indexOf("4,ENCRYPTED")){var x=u(e,"DSA PRIVATE KEY"),k=o(x,0,[1],"02"),A=o(x,0,[2],"02"),N=o(x,0,[3],"02"),T=o(x,0,[4],"02"),C=o(x,0,[5],"02");h=new l;return h.setPrivate(new m(k,16),new m(A,16),new m(N,16),new m(T,16),new m(C,16)),h}if(-1!=e.indexOf("-END EC PRIVATE KEY-")&&-1==e.indexOf("4,ENCRYPTED")){S=u(e,"EC PRIVATE KEY");return d.getKey(S,null,"pkcs5prv")}if(-1!=e.indexOf("-END PRIVATE KEY-"))return d.getKeyFromPlainPrivatePKCS8PEM(e);if(-1!=e.indexOf("-END RSA PRIVATE KEY-")&&-1!=e.indexOf("4,ENCRYPTED")){var R=d.getDecryptedKeyHex(e,t),O=new Ut;return O.readPKCS5PrvKeyHex(R),O}if(-1!=e.indexOf("-END EC PRIVATE KEY-")&&-1!=e.indexOf("4,ENCRYPTED")){x=d.getDecryptedKeyHex(e,t),h=o(x,0,[1],"04");var I=o(x,0,[2,0],"06"),D=o(x,0,[3,0],"03").substr(2),L="";if(void 0===Rn.crypto.OID.oidhex2name[I])throw new Error("undefined OID(hex) in KJUR.crypto.OID: "+I);L=Rn.crypto.OID.oidhex2name[I];p=new s({curve:L});return p.setPublicKeyHex(D),p.setPrivateKeyHex(h),p.isPublic=!1,p}if(-1!=e.indexOf("-END DSA PRIVATE KEY-")&&-1!=e.indexOf("4,ENCRYPTED")){x=d.getDecryptedKeyHex(e,t),k=o(x,0,[1],"02"),A=o(x,0,[2],"02"),N=o(x,0,[3],"02"),T=o(x,0,[4],"02"),C=o(x,0,[5],"02"),h=new l;return h.setPrivate(new m(k,16),new m(A,16),new m(N,16),new m(T,16),new m(C,16)),h}if(-1!=e.indexOf("-END ENCRYPTED PRIVATE KEY-"))return d.getKeyFromEncryptedPKCS8PEM(e,t);throw new Error("not supported argument")},Mr.generateKeypair=function(e,t){if("RSA"==e){var n=t,r=new Ut;r.generate(n,"10001"),r.isPrivate=!0,r.isPublic=!0;var i=new Ut,o=r.n.toString(16),a=r.e.toString(16);i.setPublic(o,a),i.isPrivate=!1,i.isPublic=!0;var s={};return s.prvKeyObj=r,s.pubKeyObj=i,s}if("EC"==e){var l=t,c=new Rn.crypto.ECDSA({curve:l}),u=c.generateKeyPairHex();r=new Rn.crypto.ECDSA({curve:l});r.setPublicKeyHex(u.ecpubhex),r.setPrivateKeyHex(u.ecprvhex),r.isPrivate=!0,r.isPublic=!1;i=new Rn.crypto.ECDSA({curve:l});i.setPublicKeyHex(u.ecpubhex),i.isPrivate=!1,i.isPublic=!0;s={};return s.prvKeyObj=r,s.pubKeyObj=i,s}throw new Error("unknown algorithm: "+e)},Mr.getPEM=function(e,t,n,r,i,o){var s=Rn,l=s.asn1,c=l.DERObjectIdentifier,u=l.DERInteger,d=l.ASN1Util.newObject,h=l.x509,p=h.SubjectPublicKeyInfo,f=s.crypto,m=f.DSA,g=f.ECDSA,v=Ut;function y(e){var t=d({seq:[{int:0},{int:{bigint:e.n}},{int:e.e},{int:{bigint:e.d}},{int:{bigint:e.p}},{int:{bigint:e.q}},{int:{bigint:e.dmp1}},{int:{bigint:e.dmq1}},{int:{bigint:e.coeff}}]});return t}function b(e){var t=d({seq:[{int:1},{octstr:{hex:e.prvKeyHex}},{tag:["a0",!0,{oid:{name:e.curveName}}]},{tag:["a1",!0,{bitstr:{hex:"00"+e.pubKeyHex}}]}]});return t}function _(e){var t=d({seq:[{int:0},{int:{bigint:e.p}},{int:{bigint:e.q}},{int:{bigint:e.g}},{int:{bigint:e.y}},{int:{bigint:e.x}}]});return t}if((void 0!==v&&e instanceof v||void 0!==m&&e instanceof m||void 0!==g&&e instanceof g)&&1==e.isPublic&&(void 0===t||"PKCS8PUB"==t)){var w=new p(e),E=w.tohex();return nr(E,"PUBLIC KEY")}if("PKCS1PRV"==t&&void 0!==v&&e instanceof v&&(void 0===n||null==n)&&1==e.isPrivate){w=y(e),E=w.tohex();return nr(E,"RSA PRIVATE KEY")}if("PKCS1PRV"==t&&void 0!==g&&e instanceof g&&(void 0===n||null==n)&&1==e.isPrivate){var S=new c({name:e.curveName}),x=S.tohex(),k=b(e),A=k.tohex(),N="";return N+=nr(x,"EC PARAMETERS"),N+=nr(A,"EC PRIVATE KEY"),N}if("PKCS1PRV"==t&&void 0!==m&&e instanceof m&&(void 0===n||null==n)&&1==e.isPrivate){w=_(e),E=w.tohex();return nr(E,"DSA PRIVATE KEY")}if("PKCS5PRV"==t&&void 0!==v&&e instanceof v&&void 0!==n&&null!=n&&1==e.isPrivate){w=y(e),E=w.tohex();return void 0===r&&(r="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("RSA",E,n,r,o)}if("PKCS5PRV"==t&&void 0!==g&&e instanceof g&&void 0!==n&&null!=n&&1==e.isPrivate){w=b(e),E=w.tohex();return void 0===r&&(r="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("EC",E,n,r,o)}if("PKCS5PRV"==t&&void 0!==m&&e instanceof m&&void 0!==n&&null!=n&&1==e.isPrivate){w=_(e),E=w.tohex();return void 0===r&&(r="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("DSA",E,n,r,o)}var T=function(e,t){var n=C(e,t),r=new d({seq:[{seq:[{oid:{name:"pkcs5PBES2"}},{seq:[{seq:[{oid:{name:"pkcs5PBKDF2"}},{seq:[{octstr:{hex:n.pbkdf2Salt}},{int:n.pbkdf2Iter}]}]},{seq:[{oid:{name:"des-EDE3-CBC"}},{octstr:{hex:n.encryptionSchemeIV}}]}]}]},{octstr:{hex:n.ciphertext}}]});return r.tohex()},C=function(e,t){var n=100,r=a.lib.WordArray.random(8),i="DES-EDE3-CBC",o=a.lib.WordArray.random(8),s=a.PBKDF2(t,r,{keySize:6,iterations:n}),l=a.enc.Hex.parse(e),c=a.TripleDES.encrypt(l,s,{iv:o})+"",u={};return u.ciphertext=c,u.pbkdf2Salt=a.enc.Hex.stringify(r),u.pbkdf2Iter=n,u.encryptionSchemeAlg=i,u.encryptionSchemeIV=a.enc.Hex.stringify(o),u};if("PKCS8PRV"==t&&void 0!=v&&e instanceof v&&1==e.isPrivate){var R=y(e),O=R.tohex();w=d({seq:[{int:0},{seq:[{oid:{name:"rsaEncryption"}},{null:!0}]},{octstr:{hex:O}}]}),E=w.tohex();if(void 0===n||null==n)return nr(E,"PRIVATE KEY");A=T(E,n);return nr(A,"ENCRYPTED PRIVATE KEY")}if("PKCS8PRV"==t&&void 0!==g&&e instanceof g&&1==e.isPrivate){var I={seq:[{int:1},{octstr:{hex:e.prvKeyHex}}]};"string"==typeof e.pubKeyHex&&I.seq.push({tag:["a1",!0,{bitstr:{hex:"00"+e.pubKeyHex}}]});R=new d(I),O=R.tohex(),w=d({seq:[{int:0},{seq:[{oid:{name:"ecPublicKey"}},{oid:{name:e.curveName}}]},{octstr:{hex:O}}]}),E=w.tohex();if(void 0===n||null==n)return nr(E,"PRIVATE KEY");A=T(E,n);return nr(A,"ENCRYPTED PRIVATE KEY")}if("PKCS8PRV"==t&&void 0!==m&&e instanceof m&&1==e.isPrivate){R=new u({bigint:e.x}),O=R.tohex(),w=d({seq:[{int:0},{seq:[{oid:{name:"dsa"}},{seq:[{int:{bigint:e.p}},{int:{bigint:e.q}},{int:{bigint:e.g}}]}]},{octstr:{hex:O}}]}),E=w.tohex();if(void 0===n||null==n)return nr(E,"PRIVATE KEY");A=T(E,n);return nr(A,"ENCRYPTED PRIVATE KEY")}throw new Error("unsupported object nor format")},Mr.getKeyFromCSRPEM=function(e){var t=rr(e,"CERTIFICATE REQUEST"),n=Mr.getKeyFromCSRHex(t);return n},Mr.getKeyFromCSRHex=function(e){var t=Mr.parseCSRHex(e),n=Mr.getKey(t.p8pubkeyhex,null,"pkcs8pub");return n},Mr.parseCSRHex=function(e){var t=Dn,n=t.getChildIdx,r=t.getTLV,i={},o=e;if("30"!=o.substr(0,2))throw new Error("malformed CSR(code:001)");var a=n(o,0);if(a.length<1)throw new Error("malformed CSR(code:002)");if("30"!=o.substr(a[0],2))throw new Error("malformed CSR(code:003)");var s=n(o,a[0]);if(s.length<3)throw new Error("malformed CSR(code:004)");return i.p8pubkeyhex=r(o,s[2]),i},Mr.getKeyID=function(e){var t=Mr,n=Dn;"string"===typeof e&&-1!=e.indexOf("BEGIN ")&&(e=t.getKey(e));var r=rr(t.getPEM(e)),i=n.getIdxbyList(r,0,[1]),o=n.getV(r,i).substring(2);return Rn.crypto.Util.hashHex(o,"sha1")},Mr.getJWK=function(e,t,n,r,i){var o,a,s={},l=Rn.crypto.Util.hashHex;if("string"==typeof e)o=Mr.getKey(e),-1!=e.indexOf("CERTIFICATE")&&(a=rr(e));else{if("object"!=typeof e)throw new Error("unsupported keyinfo type");e instanceof jr?(o=e.getPublicKey(),a=e.hex):o=e}if(o instanceof Ut&&o.isPrivate)s.kty="RSA",s.n=Kn(o.n.toString(16)),s.e=Kn(o.e.toString(16)),s.d=Kn(o.d.toString(16)),s.p=Kn(o.p.toString(16)),s.q=Kn(o.q.toString(16)),s.dp=Kn(o.dmp1.toString(16)),s.dq=Kn(o.dmq1.toString(16)),s.qi=Kn(o.coeff.toString(16));else if(o instanceof Ut&&o.isPublic)s.kty="RSA",s.n=Kn(o.n.toString(16)),s.e=Kn(o.e.toString(16));else if(o instanceof Rn.crypto.ECDSA&&o.isPrivate){var c=o.getShortNISTPCurveName();if("P-256"!==c&&"P-384"!==c&&"P-521"!==c)throw new Error("unsupported curve name for JWT: "+c);var d=o.getPublicKeyXYHex();s.kty="EC",s.crv=c,s.x=Kn(d.x),s.y=Kn(d.y),s.d=Kn(o.prvKeyHex)}else if(o instanceof Rn.crypto.ECDSA&&o.isPublic){c=o.getShortNISTPCurveName();if("P-256"!==c&&"P-384"!==c&&"P-521"!==c)throw new Error("unsupported curve name for JWT: "+c);d=o.getPublicKeyXYHex();s.kty="EC",s.crv=c,s.x=Kn(d.x),s.y=Kn(d.y)}if(void 0==s.kty)throw new Error("unsupported keyinfo");return o.isPrivate||1==t||(s.kid=Rn.jws.JWS.getJWKthumbprint(s)),void 0!=a&&1!=n&&(s.x5c=[u(a)]),void 0!=a&&1!=r&&(s.x5t=Un(u(l(a,"sha1")))),void 0!=a&&1!=i&&(s["x5t#S256"]=Un(u(l(a,"sha256")))),s},Mr.getJWKFromKey=function(e){return Mr.getJWK(e,!0,!0,!0,!0)},Ut.getPosArrayOfChildrenFromHex=function(e){return Dn.getChildIdx(e,0)},Ut.getHexValueArrayOfChildrenFromHex=function(e){var t=Dn,n=t.getV,r=Ut.getPosArrayOfChildrenFromHex(e),i=n(e,r[0]),o=n(e,r[1]),a=n(e,r[2]),s=n(e,r[3]),l=n(e,r[4]),c=n(e,r[5]),u=n(e,r[6]),d=n(e,r[7]),h=n(e,r[8]);r=new Array;return r.push(i,o,a,s,l,c,u,d,h),r},Ut.prototype.readPrivateKeyFromPEMString=function(e){var t=rr(e),n=Ut.getHexValueArrayOfChildrenFromHex(t);this.setPrivateEx(n[1],n[2],n[3],n[4],n[5],n[6],n[7],n[8])},Ut.prototype.readPKCS5PrvKeyHex=function(e){var t=Ut.getHexValueArrayOfChildrenFromHex(e);this.setPrivateEx(t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8])},Ut.prototype.readPKCS8PrvKeyHex=function(e){var t,n,r,i,o,a,s,l,c=Dn,u=c.getVbyListEx;if(!1===c.isASN1HEX(e))throw new Error("not ASN.1 hex string");try{t=u(e,0,[2,0,1],"02"),n=u(e,0,[2,0,2],"02"),r=u(e,0,[2,0,3],"02"),i=u(e,0,[2,0,4],"02"),o=u(e,0,[2,0,5],"02"),a=u(e,0,[2,0,6],"02"),s=u(e,0,[2,0,7],"02"),l=u(e,0,[2,0,8],"02")}catch(d){throw new Error("malformed PKCS#8 plain RSA private key")}this.setPrivateEx(t,n,r,i,o,a,s,l)},Ut.prototype.readPKCS5PubKeyHex=function(e){var t=Dn,n=t.getV;if(!1===t.isASN1HEX(e))throw new Error("keyHex is not ASN.1 hex string");var r=t.getChildIdx(e,0);if(2!==r.length||"02"!==e.substr(r[0],2)||"02"!==e.substr(r[1],2))throw new Error("wrong hex for PKCS#5 public key");var i=n(e,r[0]),o=n(e,r[1]);this.setPublic(i,o)},Ut.prototype.readPKCS8PubKeyHex=function(e){var t=Dn;if(!1===t.isASN1HEX(e))throw new Error("not ASN.1 hex string");if("06092a864886f70d010101"!==t.getTLVbyListEx(e,0,[0,0]))throw new Error("not PKCS8 RSA public key");var n=t.getTLVbyListEx(e,0,[1,0]);this.readPKCS5PubKeyHex(n)},Ut.prototype.readCertPubKeyHex=function(e,t){var n,r;n=new jr,n.readCertHex(e),r=n.getPublicKeyHex(),this.readPKCS8PubKeyHex(r)};function Fr(e,t){for(var n="",r=t/4-e.length,i=0;i<r;i++)n+="0";return n+e}function Br(e,t,n){var r="",i=0;while(r.length<t)r+=Qn(n(Jn(e+String.fromCharCode.apply(String,[(4278190080&i)>>24,(16711680&i)>>16,(65280&i)>>8,255&i])))),i+=1;return r}function $r(e){for(var t in Rn.crypto.Util.DIGESTINFOHEAD){var n=Rn.crypto.Util.DIGESTINFOHEAD[t],r=n.length;if(e.substring(0,r)==n){var i=[t,e.substring(r)];return i}}return[]}function jr(e){var t,n=Dn,r=n.getChildIdx,i=n.getV,o=(n.dump,n.parse),a=n.getTLV,s=n.getVbyList,l=n.getVbyListEx,c=n.getTLVbyList,u=n.getTLVbyListEx,d=n.getIdxbyList,h=n.getIdxbyListEx,p=n.getVidx,f=n.getInt,m=n.oidname,g=n.hextooidstr,v=rr;try{t=Rn.asn1.x509.AlgorithmIdentifier.PSSNAME2ASN1TLV}catch(w){}this.HEX2STAG={"0c":"utf8",13:"prn",16:"ia5","1a":"vis","1e":"bmp"},this.hex=null,this.version=0,this.foffset=0,this.aExtInfo=null,this.getVersion=function(){if(null===this.hex||0!==this.version)return this.version;var e=c(this.hex,0,[0,0]);if("a0"==e.substr(0,2)){var t=c(e,0,[0]),n=f(t,0);if(n<0||2<n)throw new Error("malformed version field");return this.version=n+1,this.version}return this.version=1,this.foffset=-1,1},this.getSerialNumberHex=function(){return l(this.hex,0,[0,0],"02")},this.getSignatureAlgorithmField=function(){var e=u(this.hex,0,[0,1]);return this.getAlgorithmIdentifierName(e)},this.getAlgorithmIdentifierName=function(e){for(var n in t)if(e===t[n])return n;return m(l(e,0,[0],"06"))},this.getIssuer=function(){return this.getX500Name(this.getIssuerHex())},this.getIssuerHex=function(){return c(this.hex,0,[0,3+this.foffset],"30")},this.getIssuerString=function(){var e=this.getIssuer();return e.str},this.getSubject=function(){return this.getX500Name(this.getSubjectHex())},this.getSubjectHex=function(){return c(this.hex,0,[0,5+this.foffset],"30")},this.getSubjectString=function(){var e=this.getSubject();return e.str},this.getNotBefore=function(){var e=s(this.hex,0,[0,4+this.foffset,0]);return e=e.replace(/(..)/g,"%$1"),e=decodeURIComponent(e),e},this.getNotAfter=function(){var e=s(this.hex,0,[0,4+this.foffset,1]);return e=e.replace(/(..)/g,"%$1"),e=decodeURIComponent(e),e},this.getPublicKeyHex=function(){return this.getSPKI()},this.getSPKI=function(){return c(this.hex,0,[0,6+this.foffset],"30")},this.getSPKIValue=function(){var e=this.getSPKI();return null==e?null:s(e,0,[1],"03",!0)},this.getPublicKeyIdx=function(){return d(this.hex,0,[0,6+this.foffset],"30")},this.getPublicKeyContentIdx=function(){var e=this.getPublicKeyIdx();return d(this.hex,e,[1,0],"30")},this.getPublicKey=function(){return Mr.getKey(this.getPublicKeyHex(),null,"pkcs8pub")},this.getSignatureAlgorithmName=function(){var e=c(this.hex,0,[1],"30");return this.getAlgorithmIdentifierName(e)},this.getSignatureValueHex=function(){return s(this.hex,0,[2],"03",!0)},this.verifySignature=function(e){var t=this.getSignatureAlgorithmField(),n=this.getSignatureValueHex(),r=c(this.hex,0,[0],"30"),i=new Rn.crypto.Signature({alg:t});return i.init(e),i.updateHex(r),i.verify(n)},this.parseExt=function(e){var t,o,a;if(void 0===e){if(a=this.hex,3!==this.version)return-1;t=d(a,0,[0,7,0],"30"),o=r(a,t)}else{a=rr(e);var l=d(a,0,[0,3,0,0],"06");if("2a864886f70d01090e"!=i(a,l))return void(this.aExtInfo=new Array);t=d(a,0,[0,3,0,1,0],"30"),o=r(a,t),this.hex=a}this.aExtInfo=new Array;for(var c=0;c<o.length;c++){var u={critical:!1},h=r(a,o[c]),f=0;3===h.length&&(u.critical=!0,f=1),u.oid=n.hextooidstr(s(a,o[c],[0],"06"));var m=d(a,o[c],[1+f]);u.vidx=p(a,m),this.aExtInfo.push(u)}},this.getExtInfo=function(e){var t=this.aExtInfo,n=e;if(e.match(/^[0-9.]+$/)||(n=Rn.asn1.x509.OID.name2oid(e)),""!==n)for(var r=0;r<t.length;r++)if(t[r].oid===n)return t[r]},this.getExtBasicConstraints=function(e,t){if(void 0===e&&void 0===t){var n=this.getExtInfo("basicConstraints");if(void 0===n)return;e=a(this.hex,n.vidx),t=n.critical}var r={extname:"basicConstraints"};if(t&&(r.critical=!0),"3000"===e)return r;if("30030101ff"===e)return r.cA=!0,r;if("30060101ff02"===e.substr(0,12)){var o=i(e,10),s=parseInt(o,16);return r.cA=!0,r.pathLen=s,r}throw new Error("hExtV parse error: "+e)},this.getExtNameConstraints=function(e,t){if(void 0===e&&void 0===t){var n=this.getExtInfo("nameConstraints");if(void 0===n)return;e=a(this.hex,n.vidx),t=n.critical}var i={extname:"nameConstraints"};t&&(i.critical=!0);for(var o=r(e,0),s=0;s<o.length;s++){for(var l=[],c=r(e,o[s]),u=0;u<c.length;u++){var d=a(e,c[u]),h=this.getGeneralSubtree(d);l.push(h)}var p=e.substr(o[s],2);"a0"==p?i.permit=l:"a1"==p&&(i.exclude=l)}return i},this.getGeneralSubtree=function(e){var t=r(e,0),n=t.length;if(n<1||2<n)throw new Error("wrong num elements");for(var o=this.getGeneralName(a(e,t[0])),s=1;s<n;s++){var l=e.substr(t[s],2),c=i(e,t[s]),u=parseInt(c,16);"80"==l&&(o.min=u),"81"==l&&(o.max=u)}return o},this.getExtKeyUsage=function(e,t){if(void 0===e&&void 0===t){var n=this.getExtInfo("keyUsage");if(void 0===n)return;e=a(this.hex,n.vidx),t=n.critical}var r={extname:"keyUsage"};return t&&(r.critical=!0),r.names=this.getExtKeyUsageString(e).split(","),r},this.getExtKeyUsageBin=function(e){if(void 0===e){var t=this.getExtInfo("keyUsage");if(void 0===t)return"";e=a(this.hex,t.vidx)}if(8!=e.length&&10!=e.length)throw new Error("malformed key usage value: "+e);var n="000000000000000"+parseInt(e.substr(6),16).toString(2);return 8==e.length&&(n=n.slice(-8)),10==e.length&&(n=n.slice(-16)),n=n.replace(/0+$/,""),""==n&&(n="0"),n},this.getExtKeyUsageString=function(e){for(var t=this.getExtKeyUsageBin(e),n=new Array,r=0;r<t.length;r++)"1"==t.substr(r,1)&&n.push(jr.KEYUSAGE_NAME[r]);return n.join(",")},this.getExtSubjectKeyIdentifier=function(e,t){if(void 0===e&&void 0===t){var n=this.getExtInfo("subjectKeyIdentifier");if(void 0===n)return;e=a(this.hex,n.vidx),t=n.critical}var r={extname:"subjectKeyIdentifier"};t&&(r.critical=!0);var o=i(e,0);return r.kid={hex:o},r},this.getExtAuthorityKeyIdentifier=function(e,t){if(void 0===e&&void 0===t){var n=this.getExtInfo("authorityKeyIdentifier");if(void 0===n)return;e=a(this.hex,n.vidx),t=n.critical}var o={extname:"authorityKeyIdentifier"};t&&(o.critical=!0);for(var s=r(e,0),l=0;l<s.length;l++){var c=e.substr(s[l],2);if("80"===c&&(o.kid={hex:i(e,s[l])}),"a1"===c){var u=a(e,s[l]),d=this.getGeneralNames(u);o.issuer=d[0]["dn"]}"82"===c&&(o.sn={hex:i(e,s[l])})}return o},this.getExtExtKeyUsage=function(e,t){if(void 0===e&&void 0===t){var n=this.getExtInfo("extKeyUsage");if(void 0===n)return;e=a(this.hex,n.vidx),t=n.critical}var o={extname:"extKeyUsage",array:[]};t&&(o.critical=!0);for(var s=r(e,0),l=0;l<s.length;l++)o.array.push(m(i(e,s[l])));return o},this.getExtExtKeyUsageName=function(){var e=this.getExtInfo("extKeyUsage");if(void 0===e)return e;var t=new Array,n=a(this.hex,e.vidx);if(""===n)return t;for(var o=r(n,0),s=0;s<o.length;s++)t.push(m(i(n,o[s])));return t},this.getExtSubjectAltName=function(e,t){if(void 0===e&&void 0===t){var n=this.getExtInfo("subjectAltName");if(void 0===n)return;e=a(this.hex,n.vidx),t=n.critical}var r={extname:"subjectAltName",array:[]};return t&&(r.critical=!0),r.array=this.getGeneralNames(e),r},this.getExtIssuerAltName=function(e,t){if(void 0===e&&void 0===t){var n=this.getExtInfo("issuerAltName");if(void 0===n)return;e=a(this.hex,n.vidx),t=n.critical}var r={extname:"issuerAltName",array:[]};return t&&(r.critical=!0),r.array=this.getGeneralNames(e),r},this.getGeneralNames=function(e){for(var t=r(e,0),n=[],i=0;i<t.length;i++){var o=this.getGeneralName(a(e,t[i]));void 0!==o&&n.push(o)}return n},this.getGeneralName=function(e){var t=e.substr(0,2),n=i(e,0),r=Qn(n);return"81"==t?{rfc822:r}:"82"==t?{dns:r}:"86"==t?{uri:r}:"87"==t?{ip:fr(n)}:"a4"==t?{dn:this.getX500Name(n)}:"a0"==t?{other:this.getOtherName(e)}:void 0},this.getExtSubjectAltName2=function(){var e,t,n,o=this.getExtInfo("subjectAltName");if(void 0===o)return o;for(var s=new Array,l=a(this.hex,o.vidx),c=r(l,0),u=0;u<c.length;u++)n=l.substr(c[u],2),e=i(l,c[u]),"81"===n&&(t=qn(e),s.push(["MAIL",t])),"82"===n&&(t=qn(e),s.push(["DNS",t])),"84"===n&&(t=jr.hex2dn(e,0),s.push(["DN",t])),"86"===n&&(t=qn(e),s.push(["URI",t])),"87"===n&&(t=fr(e),s.push(["IP",t]));return s},this.getExtCRLDistributionPoints=function(e,t){if(void 0===e&&void 0===t){var n=this.getExtInfo("cRLDistributionPoints");if(void 0===n)return;e=a(this.hex,n.vidx),t=n.critical}var i={extname:"cRLDistributionPoints",array:[]};t&&(i.critical=!0);for(var o=r(e,0),s=0;s<o.length;s++){var l=a(e,o[s]);i.array.push(this.getDistributionPoint(l))}return i},this.getDistributionPoint=function(e){for(var t={},n=r(e,0),i=0;i<n.length;i++){var o=e.substr(n[i],2),s=a(e,n[i]);"a0"==o&&(t.dpname=this.getDistributionPointName(s))}return t},this.getDistributionPointName=function(e){for(var t={},n=r(e,0),i=0;i<n.length;i++){var o=e.substr(n[i],2),s=a(e,n[i]);"a0"==o&&(t.full=this.getGeneralNames(s))}return t},this.getExtCRLDistributionPointsURI=function(){var e=this.getExtCRLDistributionPoints();if(void 0==e)return e;for(var t=e.array,n=[],r=0;r<t.length;r++)try{void 0!=t[r].dpname.full[0].uri&&n.push(t[r].dpname.full[0].uri)}catch(i){}return n},this.getExtAIAInfo=function(){var e=this.getExtInfo("authorityInfoAccess");if(void 0===e)return e;for(var t={ocsp:[],caissuer:[]},n=r(this.hex,e.vidx),i=0;i<n.length;i++){var o=s(this.hex,n[i],[0],"06"),a=s(this.hex,n[i],[1],"86");"2b06010505073001"===o&&t.ocsp.push(qn(a)),"2b06010505073002"===o&&t.caissuer.push(qn(a))}return t},this.getExtAuthorityInfoAccess=function(e,t){if(void 0===e&&void 0===t){var n=this.getExtInfo("authorityInfoAccess");if(void 0===n)return;e=a(this.hex,n.vidx),t=n.critical}var i={extname:"authorityInfoAccess",array:[]};t&&(i.critical=!0);for(var o=r(e,0),c=0;c<o.length;c++){var u=l(e,o[c],[0],"06"),d=s(e,o[c],[1],"86"),h=qn(d);if("2b06010505073001"==u)i.array.push({ocsp:h});else{if("2b06010505073002"!=u)throw new Error("unknown method: "+u);i.array.push({caissuer:h})}}return i},this.getExtCertificatePolicies=function(e,t){if(void 0===e&&void 0===t){var n=this.getExtInfo("certificatePolicies");if(void 0===n)return;e=a(this.hex,n.vidx),t=n.critical}var i={extname:"certificatePolicies",array:[]};t&&(i.critical=!0);for(var o=r(e,0),s=0;s<o.length;s++){var l=a(e,o[s]),c=this.getPolicyInformation(l);i.array.push(c)}return i},this.getPolicyInformation=function(e){var t={},n=s(e,0,[0],"06");t.policyoid=m(n);var i=h(e,0,[1],"30");if(-1!=i){t.array=[];for(var o=r(e,i),l=0;l<o.length;l++){var c=a(e,o[l]),u=this.getPolicyQualifierInfo(c);t.array.push(u)}}return t},this.getOtherName=function(e){var t={},n=r(e,0),i=s(e,n[0],[],"06"),a=s(e,n[1],[]);return t.oid=Rn.asn1.ASN1Util.oidHexToInt(i),t.obj=o(a),t},this.getPolicyQualifierInfo=function(e){var t={},n=s(e,0,[0],"06");if("2b06010505070201"===n){var r=l(e,0,[1],"16");t.cps=Qn(r)}else if("2b06010505070202"===n){var i=c(e,0,[1],"30");t.unotice=this.getUserNotice(i)}return t},this.getUserNotice=function(e){for(var t={},n=r(e,0),i=0;i<n.length;i++){var o=a(e,n[i]);"30"!=o.substr(0,2)&&(t.exptext=this.getDisplayText(o))}return t},this.getDisplayText=function(e){var t={"0c":"utf8",16:"ia5","1a":"vis","1e":"bmp"},n={};return n.type=t[e.substr(0,2)],n.str=Qn(i(e,0)),n},this.getExtCRLNumber=function(e,t){var n={extname:"cRLNumber"};if(t&&(n.critical=!0),"02"==e.substr(0,2))return n.num={hex:i(e,0)},n;throw new Error("hExtV parse error: "+e)},this.getExtCRLReason=function(e,t){var n={extname:"cRLReason"};if(t&&(n.critical=!0),"0a"==e.substr(0,2))return n.code=parseInt(i(e,0),16),n;throw new Error("hExtV parse error: "+e)},this.getExtOcspNonce=function(e,t){var n={extname:"ocspNonce"};t&&(n.critical=!0);var r=i(e,0);return n.hex=r,n},this.getExtOcspNoCheck=function(e,t){var n={extname:"ocspNoCheck"};return t&&(n.critical=!0),n},this.getExtAdobeTimeStamp=function(e,t){if(void 0===e&&void 0===t){var n=this.getExtInfo("adobeTimeStamp");if(void 0===n)return;e=a(this.hex,n.vidx),t=n.critical}var i={extname:"adobeTimeStamp"};t&&(i.critical=!0);var o=r(e,0);if(o.length>1){var s=a(e,o[1]),l=this.getGeneralName(s);void 0!=l.uri&&(i.uri=l.uri)}if(o.length>2){var c=a(e,o[2]);"0101ff"==c&&(i.reqauth=!0),"010100"==c&&(i.reqauth=!1)}return i};var y=function(e){var t={};try{var n=e.seq[0].oid,r=Rn.asn1.x509.OID.name2oid(n);t.type=Rn.asn1.x509.OID.oid2atype(r);var i=e.seq[1];if(void 0!=i.utf8str)t.ds="utf8",t.value=i.utf8str.str;else if(void 0!=i.numstr)t.ds="num",t.value=i.numstr.str;else if(void 0!=i.telstr)t.ds="tel",t.value=i.telstr.str;else if(void 0!=i.prnstr)t.ds="prn",t.value=i.prnstr.str;else if(void 0!=i.ia5str)t.ds="ia5",t.value=i.ia5str.str;else if(void 0!=i.visstr)t.ds="vis",t.value=i.visstr.str;else{if(void 0==i.bmpstr)throw"error";t.ds="bmp",t.value=i.bmpstr.str}return t}catch(o){throw new Erorr("improper ASN.1 parsed AttrTypeAndValue")}},b=function(e){try{return e.set.map((function(e){return y(e)}))}catch(t){throw new Error("improper ASN.1 parsed RDN: "+t)}},_=function(e){try{return e.seq.map((function(e){return b(e)}))}catch(t){throw new Error("improper ASN.1 parsed X500Name: "+t)}};this.getX500NameRule=function(e){for(var t=null,n=[],r=0;r<e.length;r++)for(var i=e[r],o=0;o<i.length;o++)n.push(i[o]);for(r=0;r<n.length;r++){var a=n[r],s=a.ds,l=a.value,c=a.type;if("prn"!=s&&"utf8"!=s&&"ia5"!=s)return"mixed";if("ia5"==s){if("CN"!=c)return"mixed";if(Rn.lang.String.isMail(l))continue;return"mixed"}if("C"==c){if("prn"==s)continue;return"mixed"}if(null==t)t=s;else if(t!==s)return"mixed"}return null==t?"prn":t},this.getAttrTypeAndValue=function(e){var t=o(e);return y(t)},this.getRDN=function(e){var t=o(e);return b(t)},this.getX500NameArray=function(e){var t=o(e);return _(t)},this.getX500Name=function(e){var t=this.getX500NameArray(e),n=this.dnarraytostr(t);return{array:t,str:n}},this.readCertPEM=function(e){this.readCertHex(v(e))},this.readCertHex=function(e){this.hex=e,this.getVersion();try{d(this.hex,0,[0,7],"a3"),this.parseExt()}catch(Dt){}},this.getParam=function(e){var t={};return t.version=this.getVersion(),t.serial={hex:this.getSerialNumberHex()},t.sigalg=this.getSignatureAlgorithmField(),t.issuer=this.getIssuer(),t.notbefore=this.getNotBefore(),t.notafter=this.getNotAfter(),t.subject=this.getSubject(),t.sbjpubkey=nr(this.getPublicKeyHex(),"PUBLIC KEY"),void 0!=this.aExtInfo&&this.aExtInfo.length>0&&(t.ext=this.getExtParamArray()),t.sighex=this.getSignatureValueHex(),"object"==typeof e&&(1==e.tbshex&&(t.tbshex=c(this.hex,0,[0])),1==e.nodnarray&&(delete t.issuer.array,delete t.subject.array)),t},this.getExtParamArray=function(e){if(void 0==e){var t=h(this.hex,0,[0,"[3]"]);-1!=t&&(e=u(this.hex,0,[0,"[3]",0],"30"))}for(var n=[],i=r(e,0),o=0;o<i.length;o++){var s=a(e,i[o]),l=this.getExtParam(s);null!=l&&n.push(l)}return n},this.getExtParam=function(e){var t=r(e,0),n=t.length;if(2!=n&&3!=n)throw new Error("wrong number elements in Extension: "+n+" "+e);var i=g(s(e,0,[0],"06")),o=!1;3==n&&"0101ff"==c(e,0,[1])&&(o=!0);var a=c(e,0,[n-1,0]),l=void 0;if("2.5.29.14"==i?l=this.getExtSubjectKeyIdentifier(a,o):"2.5.29.15"==i?l=this.getExtKeyUsage(a,o):"2.5.29.17"==i?l=this.getExtSubjectAltName(a,o):"2.5.29.18"==i?l=this.getExtIssuerAltName(a,o):"2.5.29.19"==i?l=this.getExtBasicConstraints(a,o):"2.5.29.30"==i?l=this.getExtNameConstraints(a,o):"2.5.29.31"==i?l=this.getExtCRLDistributionPoints(a,o):"2.5.29.32"==i?l=this.getExtCertificatePolicies(a,o):"2.5.29.35"==i?l=this.getExtAuthorityKeyIdentifier(a,o):"2.5.29.37"==i?l=this.getExtExtKeyUsage(a,o):"1.3.6.1.5.5.7.1.1"==i?l=this.getExtAuthorityInfoAccess(a,o):"2.5.29.20"==i?l=this.getExtCRLNumber(a,o):"2.5.29.21"==i?l=this.getExtCRLReason(a,o):"1.3.6.1.5.5.7.48.1.2"==i?l=this.getExtOcspNonce(a,o):"1.3.6.1.5.5.7.48.1.5"==i?l=this.getExtOcspNoCheck(a,o):"1.2.840.113583.1.1.9.1"==i&&(l=this.getExtAdobeTimeStamp(a,o)),void 0!=l)return l;var u={extname:i,extn:a};return o&&(u.critical=!0),u},this.findExt=function(e,t){for(var n=0;n<e.length;n++)if(e[n].extname==t)return e[n];return null},this.updateExtCDPFullURI=function(e,t){var n=this.findExt(e,"cRLDistributionPoints");if(null!=n&&void 0!=n.array)for(var r=n.array,i=0;i<r.length;i++)if(void 0!=r[i].dpname&&void 0!=r[i].dpname.full)for(var o=r[i].dpname.full,a=0;a<o.length;a++){var s=o[i];void 0!=s.uri&&(s.uri=t)}},this.updateExtAIAOCSP=function(e,t){var n=this.findExt(e,"authorityInfoAccess");if(null!=n&&void 0!=n.array)for(var r=n.array,i=0;i<r.length;i++)void 0!=r[i].ocsp&&(r[i].ocsp=t)},this.updateExtAIACAIssuer=function(e,t){var n=this.findExt(e,"authorityInfoAccess");if(null!=n&&void 0!=n.array)for(var r=n.array,i=0;i<r.length;i++)void 0!=r[i].caissuer&&(r[i].caissuer=t)},this.dnarraytostr=function(e){function t(e){return e.map((function(e){return n(e).replace(/\+/,"\\+")})).join("+")}function n(e){return e.type+"="+e.value}return"/"+e.map((function(e){return t(e).replace(/\//,"\\/")})).join("/")},this.getInfo=function(){var e,t,n,r=function(e){var t=JSON.stringify(e.array).replace(/[\[\]\{\}\"]/g,"");return t},i=function(e){for(var t="",n=e.array,r=0;r<n.length;r++){var i=n[r];if(t+=" policy oid: "+i.policyoid+"\n",void 0!==i.array)for(var o=0;o<i.array.length;o++){var a=i.array[o];void 0!==a.cps&&(t+=" cps: "+a.cps+"\n")}}return t},o=function(e){for(var t="",n=e.array,r=0;r<n.length;r++){var i=n[r];try{void 0!==i.dpname.full[0].uri&&(t+=" "+i.dpname.full[0].uri+"\n")}catch(o){}try{void 0!==i.dname.full[0].dn.hex&&(t+=" "+jr.hex2dn(i.dpname.full[0].dn.hex)+"\n")}catch(o){}}return t},a=function(e){for(var t="",n=e.array,r=0;r<n.length;r++){var i=n[r];void 0!==i.caissuer&&(t+=" caissuer: "+i.caissuer+"\n"),void 0!==i.ocsp&&(t+=" ocsp: "+i.ocsp+"\n")}return t};if(e="Basic Fields\n",e+=" serial number: "+this.getSerialNumberHex()+"\n",e+=" signature algorithm: "+this.getSignatureAlgorithmField()+"\n",e+=" issuer: "+this.getIssuerString()+"\n",e+=" notBefore: "+this.getNotBefore()+"\n",e+=" notAfter: "+this.getNotAfter()+"\n",e+=" subject: "+this.getSubjectString()+"\n",e+=" subject public key info: \n",t=this.getPublicKey(),e+=" key algorithm: "+t.type+"\n","RSA"===t.type&&(e+=" n="+xr(t.n.toString(16)).substr(0,16)+"...\n",e+=" e="+xr(t.e.toString(16))+"\n"),n=this.aExtInfo,void 0!==n&&null!==n){e+="X509v3 Extensions:\n";for(var s=0;s<n.length;s++){var l=n[s],c=Rn.asn1.x509.OID.oid2name(l.oid);""===c&&(c=l.oid);var u="";if(!0===l.critical&&(u="CRITICAL"),e+=" "+c+" "+u+":\n","basicConstraints"===c){var d=this.getExtBasicConstraints();void 0===d.cA?e+=" {}\n":(e+=" cA=true",void 0!==d.pathLen&&(e+=", pathLen="+d.pathLen),e+="\n")}else if("keyUsage"===c)e+=" "+this.getExtKeyUsageString()+"\n";else if("subjectKeyIdentifier"===c)e+=" "+this.getExtSubjectKeyIdentifier().kid.hex+"\n";else if("authorityKeyIdentifier"===c){var h=this.getExtAuthorityKeyIdentifier();void 0!==h.kid&&(e+=" kid="+h.kid.hex+"\n")}else if("extKeyUsage"===c){var p=this.getExtExtKeyUsage().array;e+=" "+p.join(", ")+"\n"}else if("subjectAltName"===c){var f=r(this.getExtSubjectAltName());e+=" "+f+"\n"}else if("cRLDistributionPoints"===c){var m=this.getExtCRLDistributionPoints();e+=o(m)}else if("authorityInfoAccess"===c){var g=this.getExtAuthorityInfoAccess();e+=a(g)}else"certificatePolicies"===c&&(e+=i(this.getExtCertificatePolicies()))}}return e+="signature algorithm: "+this.getSignatureAlgorithmName()+"\n",e+="signature: "+this.getSignatureValueHex().substr(0,16)+"...\n",e},"string"==typeof e&&(-1!=e.indexOf("-----BEGIN")?this.readCertPEM(e):Rn.lang.String.isHex(e)&&this.readCertHex(e))}Ut.prototype.sign=function(e,t){var n=function(e){return Rn.crypto.Util.hashString(e,t)},r=n(e);return this.signWithMessageHash(r,t)},Ut.prototype.signWithMessageHash=function(e,t){var n=Rn.crypto.Util.getPaddedDigestInfoHex(e,t,this.n.bitLength()),r=Ft(n,16),i=this.doPrivate(r),o=i.toString(16);return Fr(o,this.n.bitLength())},Ut.prototype.signPSS=function(e,t,n){var r=function(e){return Rn.crypto.Util.hashHex(e,t)},i=r(Jn(e));return void 0===n&&(n=-1),this.signWithMessageHashPSS(i,t,n)},Ut.prototype.signWithMessageHashPSS=function(e,t,n){var r,i=Qn(e),o=i.length,a=this.n.bitLength()-1,s=Math.ceil(a/8),l=function(e){return Rn.crypto.Util.hashHex(e,t)};if(-1===n||void 0===n)n=o;else if(-2===n)n=s-o-2;else if(n<-2)throw new Error("invalid salt length");if(s<o+n+2)throw new Error("data too long");var c="";n>0&&(c=new Array(n),(new Mt).nextBytes(c),c=String.fromCharCode.apply(String,c));var u=Qn(l(Jn("\0\0\0\0\0\0\0\0"+i+c))),d=[];for(r=0;r<s-n-o-2;r+=1)d[r]=0;var h=String.fromCharCode.apply(String,d)+""+c,p=Br(u,h.length,l),f=[];for(r=0;r<h.length;r+=1)f[r]=h.charCodeAt(r)^p.charCodeAt(r);var g=65280>>8*s-a&255;for(f[0]&=~g,r=0;r<o;r++)f.push(u.charCodeAt(r));return f.push(188),Fr(this.doPrivate(new m(f)).toString(16),this.n.bitLength())},Ut.prototype.verify=function(e,t){if(t=t.toLowerCase(),null==t.match(/^[0-9a-f]+$/))return!1;var n=Ft(t,16),r=this.n.bitLength();if(n.bitLength()>r)return!1;var i=this.doPublic(n),o=i.toString(16);if(o.length+3!=r/4)return!1;var a=o.replace(/^1f+00/,""),s=$r(a);if(0==s.length)return!1;var l=s[0],c=s[1],u=function(e){return Rn.crypto.Util.hashString(e,l)},d=u(e);return c==d},Ut.prototype.verifyWithMessageHash=function(e,t){if(t.length!=Math.ceil(this.n.bitLength()/4))return!1;var n=Ft(t,16);if(n.bitLength()>this.n.bitLength())return 0;var r=this.doPublic(n),i=r.toString(16).replace(/^1f+00/,""),o=$r(i);if(0==o.length)return!1;o[0];var a=o[1];return a==e},Ut.prototype.verifyPSS=function(e,t,n,r){var i=function(e){return Rn.crypto.Util.hashHex(e,n)},o=i(Jn(e));return void 0===r&&(r=-1),this.verifyWithMessageHashPSS(o,t,n,r)},Ut.prototype.verifyWithMessageHashPSS=function(e,t,n,r){if(t.length!=Math.ceil(this.n.bitLength()/4))return!1;var i,o=new m(t,16),a=function(e){return Rn.crypto.Util.hashHex(e,n)},s=Qn(e),l=s.length,c=this.n.bitLength()-1,u=Math.ceil(c/8);if(-1===r||void 0===r)r=l;else if(-2===r)r=u-l-2;else if(r<-2)throw new Error("invalid salt length");if(u<l+r+2)throw new Error("data too long");var d=this.doPublic(o).toByteArray();for(i=0;i<d.length;i+=1)d[i]&=255;while(d.length<u)d.unshift(0);if(188!==d[u-1])throw new Error("encoded message does not end in 0xbc");d=String.fromCharCode.apply(String,d);var h=d.substr(0,u-l-1),p=d.substr(h.length,l),f=65280>>8*u-c&255;if(0!==(h.charCodeAt(0)&f))throw new Error("bits beyond keysize not zero");var g=Br(p,h.length,a),v=[];for(i=0;i<h.length;i+=1)v[i]=h.charCodeAt(i)^g.charCodeAt(i);v[0]&=~f;var y=u-l-r-2;for(i=0;i<y;i+=1)if(0!==v[i])throw new Error("leftmost octets not zero");if(1!==v[y])throw new Error("0x01 marker not found");return p===Qn(a(Jn("\0\0\0\0\0\0\0\0"+s+String.fromCharCode.apply(String,v.slice(-r)))))},Ut.SALT_LEN_HLEN=-1,Ut.SALT_LEN_MAX=-2,Ut.SALT_LEN_RECOVER=-2,jr.hex2dn=function(e,t){void 0===t&&(t=0);var n=new jr,r=(Dn.getTLV(e,t),n.getX500Name(e));return r.str},jr.hex2rdn=function(e,t){if(void 0===t&&(t=0),"31"!==e.substr(t,2))throw new Error("malformed RDN");for(var n=new Array,r=Dn.getChildIdx(e,t),i=0;i<r.length;i++)n.push(jr.hex2attrTypeValue(e,r[i]));return n=n.map((function(e){return e.replace("+","\\+")})),n.join("+")},jr.hex2attrTypeValue=function(e,t){var n=Dn,r=n.getV;if(void 0===t&&(t=0),"30"!==e.substr(t,2))throw new Error("malformed attribute type and value");var i=n.getChildIdx(e,t);2!==i.length||e.substr(i[0],2);var o=r(e,i[0]),a=Rn.asn1.ASN1Util.oidHexToInt(o),s=Rn.asn1.x509.OID.oid2atype(a),l=r(e,i[1]),c=Qn(l);return s+"="+c},jr.getPublicKeyFromCertHex=function(e){var t=new jr;return t.readCertHex(e),t.getPublicKey()},jr.getPublicKeyFromCertPEM=function(e){var t=new jr;return t.readCertPEM(e),t.getPublicKey()},jr.getPublicKeyInfoPropOfCertPEM=function(e){var t,n,r=Dn,i=r.getVbyList,o={};return o.algparam=null,t=new jr,t.readCertPEM(e),n=t.getPublicKeyHex(),o.keyhex=i(n,0,[1],"03").substr(2),o.algoid=i(n,0,[0,0],"06"),"2a8648ce3d0201"===o.algoid&&(o.algparam=i(n,0,[0,1],"06")),o},jr.KEYUSAGE_NAME=["digitalSignature","nonRepudiation","keyEncipherment","dataEncipherment","keyAgreement","keyCertSign","cRLSign","encipherOnly","decipherOnly"];var Ur=function(e){var t=Rn,n=t.lang.String.isHex,r=Dn,i=r.getV,o=r.getTLV,a=r.getVbyList,s=r.getTLVbyList,l=r.getTLVbyListEx,c=r.getIdxbyList,u=r.getIdxbyListEx,d=r.getChildIdx,h=new jr;this.hex=null,this.posSigAlg=null,this.posRevCert=null,this.parsed=null,this._setPos=function(){var e=c(this.hex,0,[0,0]),t=this.hex.substr(e,2);if("02"==t)this.posSigAlg=1;else{if("30"!=t)throw new Error("malformed 1st item of TBSCertList: "+t);this.posSigAlg=0}var n,r,i=c(this.hex,0,[0,this.posSigAlg+3]),o=this.hex.substr(i,2);if("17"==o||"18"==o)n=c(this.hex,0,[0,this.posSigAlg+4]),this.posRevCert=null,-1!=n&&(r=this.hex.substr(n,2),"30"==r&&(this.posRevCert=this.posSigAlg+4));else if("30"==o)this.posRevCert=this.posSigAlg+3;else{if("a0"!=o)throw new Error("malformed nextUpdate or revCert tag: "+o);this.posRevCert=null}},this.getVersion=function(){return 0==this.posSigAlg?null:parseInt(a(this.hex,0,[0,0],"02"),16)+1},this.getSignatureAlgorithmField=function(){var e=s(this.hex,0,[0,this.posSigAlg],"30");return h.getAlgorithmIdentifierName(e)},this.getIssuer=function(){return h.getX500Name(this.getIssuerHex())},this.getIssuerHex=function(){return s(this.hex,0,[0,this.posSigAlg+1],"30")},this.getThisUpdate=function(){var e=a(this.hex,0,[0,this.posSigAlg+2]);return result=Qn(e)},this.getNextUpdate=function(){var e=c(this.hex,0,[0,this.posSigAlg+3]),t=this.hex.substr(e,2);return"17"!=t&&"18"!=t?null:Qn(i(this.hex,e))},this.getRevCertArray=function(){if(null==this.posRevCert)return null;for(var e=[],t=c(this.hex,0,[0,this.posRevCert]),n=d(this.hex,t),r=0;r<n.length;r++){var i=o(this.hex,n[r]);e.push(this.getRevCert(i))}return e},this.getRevCert=function(e){var t={},n=d(e,0);return t.sn={hex:a(e,0,[0],"02")},t.date=Qn(a(e,0,[1])),3==n.length&&(t.ext=h.getExtParamArray(s(e,0,[2]))),t},this.findRevCert=function(e){var t=new jr(e),n=t.getSerialNumberHex();return this.findRevCertBySN(n)},this.findRevCertBySN=function(e){if(null==this.parsed&&this.getParam(),null==this.parsed.revcert)return null;for(var t=this.parsed.revcert,n=0;n<t.length;n++)if(e==t[n].sn.hex)return t[n];return null},this.getSignatureValueHex=function(){return a(this.hex,0,[2],"03",!0)},this.verifySignature=function(e){var t=this.getSignatureAlgorithmField(),n=this.getSignatureValueHex(),r=s(this.hex,0,[0],"30"),i=new Rn.crypto.Signature({alg:t});return i.init(e),i.updateHex(r),i.verify(n)},this.getParam=function(e){var t={},n=this.getVersion();null!=n&&(t.version=n),t.sigalg=this.getSignatureAlgorithmField(),t.issuer=this.getIssuer(),t.thisupdate=this.getThisUpdate();var r=this.getNextUpdate();null!=r&&(t.nextupdate=r);var i=this.getRevCertArray();null!=i&&(t.revcert=i);var o=u(this.hex,0,[0,"[0]"]);if(-1!=o){var a=l(this.hex,0,[0,"[0]",0]);t.ext=h.getExtParamArray(a)}return t.sighex=this.getSignatureValueHex(),this.parsed=t,"object"==typeof e&&(1==e.tbshex&&(t.tbshex=s(this.hex,0,[0])),1==e.nodnarray&&delete t.issuer.array),t},"string"==typeof e&&(n(e)?this.hex=e:e.match(/-----BEGIN X509 CRL/)&&(this.hex=rr(e)),this._setPos())};"undefined"!=typeof Rn&&Rn||(Rn={}),"undefined"!=typeof Rn.jws&&Rn.jws||(Rn.jws={}),Rn.jws.JWS=function(){var e=Rn,t=e.jws.JWS,n=t.isSafeJSONString;this.parseJWS=function(e,t){if(void 0===this.parsedJWS||!t&&void 0===this.parsedJWS.sigvalH){var r=e.match(/^([^.]+)\.([^.]+)\.([^.]+)$/);if(null==r)throw"JWS signature is not a form of 'Head.Payload.SigValue'.";var i=r[1],o=r[2],a=r[3],s=i+"."+o;if(this.parsedJWS={},this.parsedJWS.headB64U=i,this.parsedJWS.payloadB64U=o,this.parsedJWS.sigvalB64U=a,this.parsedJWS.si=s,!t){var l=Hn(a),c=Ft(l,16);this.parsedJWS.sigvalH=l,this.parsedJWS.sigvalBI=c}var u=In(i),d=In(o);if(this.parsedJWS.headS=u,this.parsedJWS.payloadS=d,!n(u,this.parsedJWS,"headP"))throw"malformed JSON string for JWS Head: "+u}}},Rn.jws.JWS.sign=function(e,t,n,r,i){var o,a,s,l=Rn,c=l.jws,u=c.JWS,d=u.readSafeJSONString,h=u.isSafeJSONString,p=l.crypto,f=(p.ECDSA,p.Mac),m=p.Signature,g=JSON;if("string"!=typeof t&&"object"!=typeof t)throw"spHeader must be JSON string or object: "+t;if("object"==typeof t&&(a=t,o=g.stringify(a)),"string"==typeof t){if(o=t,!h(o))throw"JWS Head is not safe JSON string: "+o;a=d(o)}if(s=n,"object"==typeof n&&(s=g.stringify(n)),""!=e&&null!=e||void 0===a.alg||(e=a.alg),""!=e&&null!=e&&void 0===a.alg&&(a.alg=e,o=g.stringify(a)),e!==a.alg)throw"alg and sHeader.alg doesn't match: "+e+"!="+a.alg;var v=null;if(void 0===u.jwsalg2sigalg[e])throw"unsupported alg name: "+e;v=u.jwsalg2sigalg[e];var y=On(o),b=On(s),_=y+"."+b,w="";if("Hmac"==v.substr(0,4)){if(void 0===r)throw"mac key shall be specified for HS* alg";var E=new f({alg:v,prov:"cryptojs",pass:r});E.updateString(_),w=E.doFinal()}else if(-1!=v.indexOf("withECDSA")){var S=new m({alg:v});S.init(r,i),S.updateString(_);var x=S.sign();w=Rn.crypto.ECDSA.asn1SigToConcatSig(x)}else if("none"!=v){S=new m({alg:v});S.init(r,i),S.updateString(_),w=S.sign()}var k=Kn(w);return _+"."+k},Rn.jws.JWS.verify=function(e,t,n){var r,i=Rn,o=i.jws,a=o.JWS,s=a.readSafeJSONString,l=i.crypto,c=l.ECDSA,u=l.Mac,d=l.Signature;if(void 0!==typeof Ut&&(r=Ut),!Sr(e))return!1;var h=e.split(".");if(3!==h.length)return!1;var p=h[0],f=h[1],m=p+"."+f,g=Hn(h[2]),v=s(In(h[0])),y=null,b=null;if(void 0===v.alg)throw"algorithm not specified in header";if(y=v.alg,b=y.substr(0,2),null!=n&&"[object Array]"===Object.prototype.toString.call(n)&&n.length>0){var _=":"+n.join(":")+":";if(-1==_.indexOf(":"+y+":"))throw"algorithm '"+y+"' not accepted in the list"}if("none"!=y&&null===t)throw"key shall be specified to verify.";if("string"==typeof t&&-1!=t.indexOf("-----BEGIN ")&&(t=Mr.getKey(t)),("RS"==b||"PS"==b)&&!(t instanceof r))throw"key shall be a RSAKey obj for RS* and PS* algs";if("ES"==b&&!(t instanceof c))throw"key shall be a ECDSA obj for ES* algs";var w=null;if(void 0===a.jwsalg2sigalg[v.alg])throw"unsupported alg name: "+y;if(w=a.jwsalg2sigalg[y],"none"==w)throw"not supported";if("Hmac"==w.substr(0,4)){var E=null;if(void 0===t)throw"hexadecimal key shall be specified for HMAC";var S=new u({alg:w,pass:t});return S.updateString(m),E=S.doFinal(),g==E}if(-1!=w.indexOf("withECDSA")){var x=null;try{x=c.concatSigToASN1Sig(g)}catch(A){return!1}var k=new d({alg:w});return k.init(t),k.updateString(m),k.verify(x)}k=new d({alg:w});return k.init(t),k.updateString(m),k.verify(g)},Rn.jws.JWS.parse=function(e){var t,n,r,i=e.split("."),o={};if(2!=i.length&&3!=i.length)throw"malformed sJWS: wrong number of '.' splitted elements";return t=i[0],n=i[1],3==i.length&&(r=i[2]),o.headerObj=Rn.jws.JWS.readSafeJSONString(In(t)),o.payloadObj=Rn.jws.JWS.readSafeJSONString(In(n)),o.headerPP=JSON.stringify(o.headerObj,null," "),null==o.payloadObj?o.payloadPP=In(n):o.payloadPP=JSON.stringify(o.payloadObj,null," "),void 0!==r&&(o.sigHex=Hn(r)),o},Rn.jws.JWS.verifyJWT=function(e,t,n){var r=Rn,i=r.jws,o=i.JWS,a=o.readSafeJSONString,s=o.inArray,l=o.includedArray;if(!Sr(e))return!1;var c=e.split(".");if(3!=c.length)return!1;var u=c[0],d=c[1],h=(Hn(c[2]),a(In(u))),p=a(In(d));if(void 0===h.alg)return!1;if(void 0===n.alg)throw"acceptField.alg shall be specified";if(!s(h.alg,n.alg))return!1;if(void 0!==p.iss&&"object"===typeof n.iss&&!s(p.iss,n.iss))return!1;if(void 0!==p.sub&&"object"===typeof n.sub&&!s(p.sub,n.sub))return!1;if(void 0!==p.aud&&"object"===typeof n.aud)if("string"==typeof p.aud){if(!s(p.aud,n.aud))return!1}else if("object"==typeof p.aud&&!l(p.aud,n.aud))return!1;var f=i.IntDate.getNow();return void 0!==n.verifyAt&&"number"===typeof n.verifyAt&&(f=n.verifyAt),void 0!==n.gracePeriod&&"number"===typeof n.gracePeriod||(n.gracePeriod=0),!(void 0!==p.exp&&"number"==typeof p.exp&&p.exp+n.gracePeriod<f)&&(!(void 0!==p.nbf&&"number"==typeof p.nbf&&f<p.nbf-n.gracePeriod)&&(!(void 0!==p.iat&&"number"==typeof p.iat&&f<p.iat-n.gracePeriod)&&((void 0===p.jti||void 0===n.jti||p.jti===n.jti)&&!!o.verify(e,t,n.alg))))},Rn.jws.JWS.includedArray=function(e,t){var n=Rn.jws.JWS.inArray;if(null===e)return!1;if("object"!==typeof e)return!1;if("number"!==typeof e.length)return!1;for(var r=0;r<e.length;r++)if(!n(e[r],t))return!1;return!0},Rn.jws.JWS.inArray=function(e,t){if(null===t)return!1;if("object"!==typeof t)return!1;if("number"!==typeof t.length)return!1;for(var n=0;n<t.length;n++)if(t[n]==e)return!0;return!1},Rn.jws.JWS.jwsalg2sigalg={HS256:"HmacSHA256",HS384:"HmacSHA384",HS512:"HmacSHA512",RS256:"SHA256withRSA",RS384:"SHA384withRSA",RS512:"SHA512withRSA",ES256:"SHA256withECDSA",ES384:"SHA384withECDSA",ES512:"SHA512withECDSA",PS256:"SHA256withRSAandMGF1",PS384:"SHA384withRSAandMGF1",PS512:"SHA512withRSAandMGF1",none:"none"},Rn.jws.JWS.isSafeJSONString=function(e,t,n){var r=null;try{return r=Cn(e),"object"!=typeof r?0:r.constructor===Array?0:(t&&(t[n]=r),1)}catch(i){return 0}},Rn.jws.JWS.readSafeJSONString=function(e){var t=null;try{return t=Cn(e),"object"!=typeof t||t.constructor===Array?null:t}catch(n){return null}},Rn.jws.JWS.getEncodedSignatureValueFromJWS=function(e){var t=e.match(/^[^.]+\.[^.]+\.([^.]+)$/);if(null==t)throw"JWS signature is not a form of 'Head.Payload.SigValue'.";return t[1]},Rn.jws.JWS.getJWKthumbprint=function(e){if("RSA"!==e.kty&&"EC"!==e.kty&&"oct"!==e.kty)throw"unsupported algorithm for JWK Thumprint";var t="{";if("RSA"===e.kty){if("string"!=typeof e.n||"string"!=typeof e.e)throw"wrong n and e value for RSA key";t+='"e":"'+e.e+'",',t+='"kty":"'+e.kty+'",',t+='"n":"'+e.n+'"}'}else if("EC"===e.kty){if("string"!=typeof e.crv||"string"!=typeof e.x||"string"!=typeof e.y)throw"wrong crv, x and y value for EC key";t+='"crv":"'+e.crv+'",',t+='"kty":"'+e.kty+'",',t+='"x":"'+e.x+'",',t+='"y":"'+e.y+'"}'}else if("oct"===e.kty){if("string"!=typeof e.k)throw"wrong k value for oct(symmetric) key";t+='"kty":"'+e.kty+'",',t+='"k":"'+e.k+'"}'}var n=Jn(t),r=Rn.crypto.Util.hashHex(n,"sha256"),i=Kn(r);return i},Rn.jws.IntDate={},Rn.jws.IntDate.get=function(e){var t=Rn.jws.IntDate,n=t.getNow,r=t.getZulu;if("now"==e)return n();if("now + 1hour"==e)return n()+3600;if("now + 1day"==e)return n()+86400;if("now + 1month"==e)return n()+2592e3;if("now + 1year"==e)return n()+31536e3;if(e.match(/Z$/))return r(e);if(e.match(/^[0-9]+$/))return parseInt(e);throw"unsupported format: "+e},Rn.jws.IntDate.getZulu=function(e){return sr(e)},Rn.jws.IntDate.getNow=function(){var e=~~(new Date/1e3);return e},Rn.jws.IntDate.intDate2UTCString=function(e){var t=new Date(1e3*e);return t.toUTCString()},Rn.jws.IntDate.intDate2Zulu=function(e){var t=new Date(1e3*e),n=("0000"+t.getUTCFullYear()).slice(-4),r=("00"+(t.getUTCMonth()+1)).slice(-2),i=("00"+t.getUTCDate()).slice(-2),o=("00"+t.getUTCHours()).slice(-2),a=("00"+t.getUTCMinutes()).slice(-2),s=("00"+t.getUTCSeconds()).slice(-2);return n+r+i+o+a+s+"Z"},"undefined"!=typeof Rn&&Rn||(Rn={}),"undefined"!=typeof Rn.jws&&Rn.jws||(Rn.jws={}),Rn.jws.JWSJS=function(){var e=Rn,t=e.jws,n=t.JWS,r=n.readSafeJSONString;this.aHeader=[],this.sPayload="",this.aSignature=[],this.init=function(){this.aHeader=[],this.sPayload=void 0,this.aSignature=[]},this.initWithJWS=function(e){this.init();var t=e.split(".");if(3!=t.length)throw"malformed input JWS";this.aHeader.push(t[0]),this.sPayload=t[1],this.aSignature.push(t[2])},this.addSignature=function(e,t,n,r){if(void 0===this.sPayload||null===this.sPayload)throw"there's no JSON-JS signature to add.";var i=this.aHeader.length;if(this.aHeader.length!=this.aSignature.length)throw"aHeader.length != aSignature.length";try{var o=Rn.jws.JWS.sign(e,t,this.sPayload,n,r),a=o.split(".");a[0],a[2];this.aHeader.push(a[0]),this.aSignature.push(a[2])}catch(s){throw this.aHeader.length>i&&this.aHeader.pop(),this.aSignature.length>i&&this.aSignature.pop(),"addSignature failed: "+s}},this.verifyAll=function(e){if(this.aHeader.length!==e.length||this.aSignature.length!==e.length)return!1;for(var t=0;t<e.length;t++){var n=e[t];if(2!==n.length)return!1;var r=this.verifyNth(t,n[0],n[1]);if(!1===r)return!1}return!0},this.verifyNth=function(e,t,r){if(this.aHeader.length<=e||this.aSignature.length<=e)return!1;var i=this.aHeader[e],o=this.aSignature[e],a=i+"."+this.sPayload+"."+o,s=!1;try{s=n.verify(a,t,r)}catch(l){return!1}return s},this.readJWSJS=function(e){if("string"===typeof e){var t=r(e);if(null==t)throw"argument is not safe JSON object string";this.aHeader=t.headers,this.sPayload=t.payload,this.aSignature=t.signatures}else try{if(!(e.headers.length>0))throw"malformed header";if(this.aHeader=e.headers,"string"!==typeof e.payload)throw"malformed signatures";if(this.sPayload=e.payload,!(e.signatures.length>0))throw"malformed signatures";this.aSignature=e.signatures}catch(n){throw"malformed JWS-JS JSON object: "+n}},this.getJSON=function(){return{headers:this.aHeader,payload:this.sPayload,signatures:this.aSignature}},this.isEmpty=function(){return 0==this.aHeader.length?1:0}},t.SecureRandom=Mt,t.rng_seed_time=Ct,t.BigInteger=m,t.RSAKey=Ut,t.ECDSA=Rn.crypto.ECDSA,t.DSA=Rn.crypto.DSA,t.Signature=Rn.crypto.Signature,t.MessageDigest=Rn.crypto.MessageDigest,t.Mac=Rn.crypto.Mac,t.Cipher=Rn.crypto.Cipher,t.KEYUTIL=Mr,t.ASN1HEX=Dn,t.X509=jr,t.X509CRL=Ur,t.CryptoJS=a,t.b64tohex=d,t.b64toBA=h,t.ECFieldElementFp=tn,t.ECPointFp=dn,t.ECCurveFp=wn,t.stoBA=Ln,t.BAtos=Pn,t.BAtohex=Mn,t.stohex=Fn,t.stob64=Bn,t.stob64u=$n,t.b64utos=jn,t.b64tob64u=Un,t.b64utob64=Vn,t.hex2b64=u,t.hextob64u=Kn,t.b64utohex=Hn,t.utf8tob64u=On,t.b64utoutf8=In,t.utf8tob64=Gn,t.b64toutf8=zn,t.utf8tohex=Xn,t.hextoutf8=qn,t.hextorstr=Qn,t.rstrtohex=Jn,t.hextob64=Zn,t.hextob64nl=er,t.b64nltohex=tr,t.hextopem=nr,t.pemtohex=rr,t.hextoArrayBuffer=ir,t.ArrayBuffertohex=or,t.zulutomsec=ar,t.zulutosec=sr,t.zulutodate=lr,t.datetozulu=cr,t.uricmptohex=ur,t.hextouricmp=dr,t.ipv6tohex=hr,t.hextoipv6=pr,t.hextoip=fr,t.iptohex=gr,t.ucs2hextoutf8=yr,t.encodeURIComponentAll=br,t.newline_toUnix=_r,t.newline_toDos=wr,t.hextoposhex=xr,t.intarystrtohex=kr,t.strdiffidx=Ar,t.oidtohex=Nr,t.hextooid=Tr,t.strpad=Cr,t.bitstrtoint=Rr,t.inttobitstr=Or,t.bitstrtobinstr=Ir,t.binstrtobitstr=Dr,t.isBase64URLDot=Sr,t.namearraytobinstr=Lr,t.extendClass=Pr,t.KJUR=Rn,t.crypto=Rn.crypto,t.asn1=Rn.asn1,t.jws=Rn.jws,t.lang=Rn.lang},45955:function(e,t,n){var r=n(11207),i=n(61346),o=r(i,"DataView");e.exports=o},22406:function(e,t,n){var r=n(53613),i=n(42285),o=n(46580),a=n(24128),s=n(81200);function l(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype["delete"]=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},22214:function(e,t,n){var r=n(46061),i=n(13293),o=n(71540),a=n(83680),s=n(11792);function l(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype["delete"]=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},29638:function(e,t,n){var r=n(11207),i=n(61346),o=r(i,"Map");e.exports=o},45974:function(e,t,n){var r=n(3581),i=n(35837),o=n(86724),a=n(15344),s=n(70016);function l(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype["delete"]=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},94273:function(e,t,n){var r=n(11207),i=n(61346),o=r(i,"Promise");e.exports=o},52724:function(e,t,n){var r=n(11207),i=n(61346),o=r(i,"Set");e.exports=o},28784:function(e,t,n){var r=n(45974),i=n(17601),o=n(7026);function a(e){var t=-1,n=null==e?0:e.length;this.__data__=new r;while(++t<n)this.add(e[t])}a.prototype.add=a.prototype.push=i,a.prototype.has=o,e.exports=a},67544:function(e,t,n){var r=n(22214),i=n(65723),o=n(77759),a=n(48590),s=n(50138),l=n(19618);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=i,c.prototype["delete"]=o,c.prototype.get=a,c.prototype.has=s,c.prototype.set=l,e.exports=c},73542:function(e,t,n){var r=n(61346),i=r.Symbol;e.exports=i},98971:function(e,t,n){var r=n(61346),i=r.Uint8Array;e.exports=i},41282:function(e,t,n){var r=n(11207),i=n(61346),o=r(i,"WeakMap");e.exports=o},79244:function(e){function t(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)}e.exports=t},77292:function(e){function t(e,t){var n=-1,r=null==e?0:e.length;while(++n<r)if(!1===t(e[n],n,e))break;return e}e.exports=t},24779:function(e){function t(e,t){var n=-1,r=null==e?0:e.length,i=0,o=[];while(++n<r){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}e.exports=t},69608:function(e,t,n){var r=n(77314);function i(e,t){var n=null==e?0:e.length;return!!n&&r(e,t,0)>-1}e.exports=i},60656:function(e){function t(e,t,n){var r=-1,i=null==e?0:e.length;while(++r<i)if(n(t,e[r]))return!0;return!1}e.exports=t},30482:function(e,t,n){var r=n(85133),i=n(25959),o=n(43306),a=n(83945),s=n(28236),l=n(37726),c=Object.prototype,u=c.hasOwnProperty;function d(e,t){var n=o(e),c=!n&&i(e),d=!n&&!c&&a(e),h=!n&&!c&&!d&&l(e),p=n||c||d||h,f=p?r(e.length,String):[],m=f.length;for(var g in e)!t&&!u.call(e,g)||p&&("length"==g||d&&("offset"==g||"parent"==g)||h&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||s(g,m))||f.push(g);return f}e.exports=d},95019:function(e){function t(e,t){var n=-1,r=null==e?0:e.length,i=Array(r);while(++n<r)i[n]=t(e[n],n,e);return i}e.exports=t},50485:function(e){function t(e,t){var n=-1,r=t.length,i=e.length;while(++n<r)e[i+n]=t[n];return e}e.exports=t},25821:function(e){function t(e,t){var n=-1,r=null==e?0:e.length;while(++n<r)if(t(e[n],n,e))return!0;return!1}e.exports=t},77249:function(e){function t(e){return e.split("")}e.exports=t},68598:function(e,t,n){var r=n(13085),i=n(85601);function o(e,t,n){(void 0!==n&&!i(e[t],n)||void 0===n&&!(t in e))&&r(e,t,n)}e.exports=o},84162:function(e,t,n){var r=n(13085),i=n(85601),o=Object.prototype,a=o.hasOwnProperty;function s(e,t,n){var o=e[t];a.call(e,t)&&i(o,n)&&(void 0!==n||t in e)||r(e,t,n)}e.exports=s},66166:function(e,t,n){var r=n(85601);function i(e,t){var n=e.length;while(n--)if(r(e[n][0],t))return n;return-1}e.exports=i},52990:function(e,t,n){var r=n(97476),i=n(45375);function o(e,t){return e&&r(t,i(t),e)}e.exports=o},56745:function(e,t,n){var r=n(97476),i=n(87396);function o(e,t){return e&&r(t,i(t),e)}e.exports=o},13085:function(e,t,n){var r=n(44448);function i(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}e.exports=i},65522:function(e,t,n){var r=n(67544),i=n(77292),o=n(84162),a=n(52990),s=n(56745),l=n(30799),c=n(47982),u=n(830),d=n(14921),h=n(36901),p=n(24534),f=n(53754),m=n(42466),g=n(50468),v=n(93144),y=n(43306),b=n(83945),_=n(11021),w=n(90016),E=n(41323),S=n(45375),x=n(87396),k=1,A=2,N=4,T="[object Arguments]",C="[object Array]",R="[object Boolean]",O="[object Date]",I="[object Error]",D="[object Function]",L="[object GeneratorFunction]",P="[object Map]",M="[object Number]",F="[object Object]",B="[object RegExp]",$="[object Set]",j="[object String]",U="[object Symbol]",V="[object WeakMap]",K="[object ArrayBuffer]",H="[object DataView]",G="[object Float32Array]",z="[object Float64Array]",X="[object Int8Array]",q="[object Int16Array]",W="[object Int32Array]",Y="[object Uint8Array]",Q="[object Uint8ClampedArray]",J="[object Uint16Array]",Z="[object Uint32Array]",ee={};function te(e,t,n,C,R,O){var I,P=t&k,M=t&A,B=t&N;if(n&&(I=R?n(e,C,R,O):n(e)),void 0!==I)return I;if(!w(e))return e;var $=y(e);if($){if(I=m(e),!P)return c(e,I)}else{var j=f(e),U=j==D||j==L;if(b(e))return l(e,P);if(j==F||j==T||U&&!R){if(I=M||U?{}:v(e),!P)return M?d(e,s(I,e)):u(e,a(I,e))}else{if(!ee[j])return R?e:{};I=g(e,j,P)}}O||(O=new r);var V=O.get(e);if(V)return V;O.set(e,I),E(e)?e.forEach((function(r){I.add(te(r,t,n,r,e,O))})):_(e)&&e.forEach((function(r,i){I.set(i,te(r,t,n,i,e,O))}));var K=B?M?p:h:M?x:S,H=$?void 0:K(e);return i(H||e,(function(r,i){H&&(i=r,r=e[i]),o(I,i,te(r,t,n,i,e,O))})),I}ee[T]=ee[C]=ee[K]=ee[H]=ee[R]=ee[O]=ee[G]=ee[z]=ee[X]=ee[q]=ee[W]=ee[P]=ee[M]=ee[F]=ee[B]=ee[$]=ee[j]=ee[U]=ee[Y]=ee[Q]=ee[J]=ee[Z]=!0,ee[I]=ee[D]=ee[V]=!1,e.exports=te},52095:function(e,t,n){var r=n(90016),i=Object.create,o=function(){function e(){}return function(t){if(!r(t))return{};if(i)return i(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=o},14236:function(e,t,n){var r=n(28784),i=n(69608),o=n(60656),a=n(95019),s=n(70544),l=n(3188),c=200;function u(e,t,n,u){var d=-1,h=i,p=!0,f=e.length,m=[],g=t.length;if(!f)return m;n&&(t=a(t,s(n))),u?(h=o,p=!1):t.length>=c&&(h=l,p=!1,t=new r(t));e:while(++d<f){var v=e[d],y=null==n?v:n(v);if(v=u||0!==v?v:0,p&&y===y){var b=g;while(b--)if(t[b]===y)continue e;m.push(v)}else h(t,y,u)||m.push(v)}return m}e.exports=u},30878:function(e){function t(e,t,n,r){var i=e.length,o=n+(r?1:-1);while(r?o--:++o<i)if(t(e[o],o,e))return o;return-1}e.exports=t},90581:function(e,t,n){var r=n(50485),i=n(93630);function o(e,t,n,a,s){var l=-1,c=e.length;n||(n=i),s||(s=[]);while(++l<c){var u=e[l];t>0&&n(u)?t>1?o(u,t-1,n,a,s):r(s,u):a||(s[s.length]=u)}return s}e.exports=o},35200:function(e,t,n){var r=n(19640),i=r();e.exports=i},30814:function(e,t,n){var r=n(35200),i=n(45375);function o(e,t){return e&&r(e,t,i)}e.exports=o},99367:function(e,t,n){var r=n(38786),i=n(54868);function o(e,t){t=r(t,e);var n=0,o=t.length;while(null!=e&&n<o)e=e[i(t[n++])];return n&&n==o?e:void 0}e.exports=o},68648:function(e,t,n){var r=n(50485),i=n(43306);function o(e,t,n){var o=t(e);return i(e)?o:r(o,n(e))}e.exports=o},83183:function(e,t,n){var r=n(73542),i=n(32794),o=n(86889),a="[object Null]",s="[object Undefined]",l=r?r.toStringTag:void 0;function c(e){return null==e?void 0===e?s:a:l&&l in Object(e)?i(e):o(e)}e.exports=c},78619:function(e){var t=Object.prototype,n=t.hasOwnProperty;function r(e,t){return null!=e&&n.call(e,t)}e.exports=r},80392:function(e){function t(e,t){return null!=e&&t in Object(e)}e.exports=t},77314:function(e,t,n){var r=n(30878),i=n(27450),o=n(58886);function a(e,t,n){return t===t?o(e,t,n):r(e,i,n)}e.exports=a},47047:function(e,t,n){var r=n(83183),i=n(19095),o="[object Arguments]";function a(e){return i(e)&&r(e)==o}e.exports=a},50931:function(e,t,n){var r=n(80669),i=n(19095);function o(e,t,n,a,s){return e===t||(null==e||null==t||!i(e)&&!i(t)?e!==e&&t!==t:r(e,t,n,a,o,s))}e.exports=o},80669:function(e,t,n){var r=n(67544),i=n(13386),o=n(57041),a=n(98890),s=n(53754),l=n(43306),c=n(83945),u=n(37726),d=1,h="[object Arguments]",p="[object Array]",f="[object Object]",m=Object.prototype,g=m.hasOwnProperty;function v(e,t,n,m,v,y){var b=l(e),_=l(t),w=b?p:s(e),E=_?p:s(t);w=w==h?f:w,E=E==h?f:E;var S=w==f,x=E==f,k=w==E;if(k&&c(e)){if(!c(t))return!1;b=!0,S=!1}if(k&&!S)return y||(y=new r),b||u(e)?i(e,t,n,m,v,y):o(e,t,w,n,m,v,y);if(!(n&d)){var A=S&&g.call(e,"__wrapped__"),N=x&&g.call(t,"__wrapped__");if(A||N){var T=A?e.value():e,C=N?t.value():t;return y||(y=new r),v(T,C,n,m,y)}}return!!k&&(y||(y=new r),a(e,t,n,m,v,y))}e.exports=v},86189:function(e,t,n){var r=n(53754),i=n(19095),o="[object Map]";function a(e){return i(e)&&r(e)==o}e.exports=a},7238:function(e,t,n){var r=n(67544),i=n(50931),o=1,a=2;function s(e,t,n,s){var l=n.length,c=l,u=!s;if(null==e)return!c;e=Object(e);while(l--){var d=n[l];if(u&&d[2]?d[1]!==e[d[0]]:!(d[0]in e))return!1}while(++l<c){d=n[l];var h=d[0],p=e[h],f=d[1];if(u&&d[2]){if(void 0===p&&!(h in e))return!1}else{var m=new r;if(s)var g=s(p,f,h,e,t,m);if(!(void 0===g?i(f,p,o|a,s,m):g))return!1}}return!0}e.exports=s},27450:function(e){function t(e){return e!==e}e.exports=t},35356:function(e,t,n){var r=n(17283),i=n(84379),o=n(90016),a=n(64054),s=/[\\^$.*+?()[\]{}|]/g,l=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,d=c.toString,h=u.hasOwnProperty,p=RegExp("^"+d.call(h).replace(s,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function f(e){if(!o(e)||i(e))return!1;var t=r(e)?p:l;return t.test(a(e))}e.exports=f},16491:function(e,t,n){var r=n(53754),i=n(19095),o="[object Set]";function a(e){return i(e)&&r(e)==o}e.exports=a},84542:function(e,t,n){var r=n(83183),i=n(86255),o=n(19095),a="[object Arguments]",s="[object Array]",l="[object Boolean]",c="[object Date]",u="[object Error]",d="[object Function]",h="[object Map]",p="[object Number]",f="[object Object]",m="[object RegExp]",g="[object Set]",v="[object String]",y="[object WeakMap]",b="[object ArrayBuffer]",_="[object DataView]",w="[object Float32Array]",E="[object Float64Array]",S="[object Int8Array]",x="[object Int16Array]",k="[object Int32Array]",A="[object Uint8Array]",N="[object Uint8ClampedArray]",T="[object Uint16Array]",C="[object Uint32Array]",R={};function O(e){return o(e)&&i(e.length)&&!!R[r(e)]}R[w]=R[E]=R[S]=R[x]=R[k]=R[A]=R[N]=R[T]=R[C]=!0,R[a]=R[s]=R[b]=R[l]=R[_]=R[c]=R[u]=R[d]=R[h]=R[p]=R[f]=R[m]=R[g]=R[v]=R[y]=!1,e.exports=O},32754:function(e,t,n){var r=n(99762),i=n(16451),o=n(94393),a=n(43306),s=n(92694);function l(e){return"function"==typeof e?e:null==e?o:"object"==typeof e?a(e)?i(e[0],e[1]):r(e):s(e)}e.exports=l},31711:function(e,t,n){var r=n(2494),i=n(37693),o=Object.prototype,a=o.hasOwnProperty;function s(e){if(!r(e))return i(e);var t=[];for(var n in Object(e))a.call(e,n)&&"constructor"!=n&&t.push(n);return t}e.exports=s},31684:function(e,t,n){var r=n(90016),i=n(2494),o=n(55150),a=Object.prototype,s=a.hasOwnProperty;function l(e){if(!r(e))return o(e);var t=i(e),n=[];for(var a in e)("constructor"!=a||!t&&s.call(e,a))&&n.push(a);return n}e.exports=l},99762:function(e,t,n){var r=n(7238),i=n(547),o=n(14300);function a(e){var t=i(e);return 1==t.length&&t[0][2]?o(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}e.exports=a},16451:function(e,t,n){var r=n(50931),i=n(31175),o=n(5224),a=n(72159),s=n(87503),l=n(14300),c=n(54868),u=1,d=2;function h(e,t){return a(e)&&s(t)?l(c(e),t):function(n){var a=i(n,e);return void 0===a&&a===t?o(n,e):r(t,a,u|d)}}e.exports=h},64855:function(e,t,n){var r=n(67544),i=n(68598),o=n(35200),a=n(9193),s=n(90016),l=n(87396),c=n(91847);function u(e,t,n,d,h){e!==t&&o(t,(function(o,l){if(h||(h=new r),s(o))a(e,t,l,n,u,d,h);else{var p=d?d(c(e,l),o,l+"",e,t,h):void 0;void 0===p&&(p=o),i(e,l,p)}}),l)}e.exports=u},9193:function(e,t,n){var r=n(68598),i=n(30799),o=n(83444),a=n(47982),s=n(93144),l=n(25959),c=n(43306),u=n(2282),d=n(83945),h=n(17283),p=n(90016),f=n(69028),m=n(37726),g=n(91847),v=n(77691);function y(e,t,n,y,b,_,w){var E=g(e,n),S=g(t,n),x=w.get(S);if(x)r(e,n,x);else{var k=_?_(E,S,n+"",e,t,w):void 0,A=void 0===k;if(A){var N=c(S),T=!N&&d(S),C=!N&&!T&&m(S);k=S,N||T||C?c(E)?k=E:u(E)?k=a(E):T?(A=!1,k=i(S,!0)):C?(A=!1,k=o(S,!0)):k=[]:f(S)||l(S)?(k=E,l(E)?k=v(E):p(E)&&!h(E)||(k=s(S))):A=!1}A&&(w.set(S,k),b(k,S,y,_,w),w["delete"](S)),r(e,n,k)}}e.exports=y},31867:function(e,t,n){var r=n(99367),i=n(85987),o=n(38786);function a(e,t,n){var a=-1,s=t.length,l={};while(++a<s){var c=t[a],u=r(e,c);n(u,c)&&i(l,o(c,e),u)}return l}e.exports=a},63446:function(e){function t(e){return function(t){return null==t?void 0:t[e]}}e.exports=t},36036:function(e,t,n){var r=n(99367);function i(e){return function(t){return r(t,e)}}e.exports=i},76109:function(e,t,n){var r=n(94393),i=n(84310),o=n(49656);function a(e,t){return o(i(e,t,r),e+"")}e.exports=a},85987:function(e,t,n){var r=n(84162),i=n(38786),o=n(28236),a=n(90016),s=n(54868);function l(e,t,n,l){if(!a(e))return e;t=i(t,e);var c=-1,u=t.length,d=u-1,h=e;while(null!=h&&++c<u){var p=s(t[c]),f=n;if("__proto__"===p||"constructor"===p||"prototype"===p)return e;if(c!=d){var m=h[p];f=l?l(m,p,h):void 0,void 0===f&&(f=a(m)?m:o(t[c+1])?[]:{})}r(h,p,f),h=h[p]}return e}e.exports=l},32527:function(e,t,n){var r=n(66783),i=n(44448),o=n(94393),a=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:o;e.exports=a},33641:function(e){function t(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?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)o[r]=e[r+t];return o}e.exports=t},85133:function(e){function t(e,t){var n=-1,r=Array(e);while(++n<e)r[n]=t(n);return r}e.exports=t},97487:function(e,t,n){var r=n(73542),i=n(95019),o=n(43306),a=n(95143),s=1/0,l=r?r.prototype:void 0,c=l?l.toString:void 0;function u(e){if("string"==typeof e)return e;if(o(e))return i(e,u)+"";if(a(e))return c?c.call(e):"";var t=e+"";return"0"==t&&1/e==-s?"-0":t}e.exports=u},88023:function(e,t,n){var r=n(61821),i=/^\s+/;function o(e){return e?e.slice(0,r(e)+1).replace(i,""):e}e.exports=o},70544:function(e){function t(e){return function(t){return e(t)}}e.exports=t},3746:function(e,t,n){var r=n(28784),i=n(69608),o=n(60656),a=n(3188),s=n(15644),l=n(5168),c=200;function u(e,t,n){var u=-1,d=i,h=e.length,p=!0,f=[],m=f;if(n)p=!1,d=o;else if(h>=c){var g=t?null:s(e);if(g)return l(g);p=!1,d=a,m=new r}else m=t?[]:f;e:while(++u<h){var v=e[u],y=t?t(v):v;if(v=n||0!==v?v:0,p&&y===y){var b=m.length;while(b--)if(m[b]===y)continue e;t&&m.push(y),f.push(v)}else d(m,y,n)||(m!==f&&m.push(y),f.push(v))}return f}e.exports=u},64442:function(e,t,n){var r=n(14236),i=n(90581),o=n(3746);function a(e,t,n){var a=e.length;if(a<2)return a?o(e[0]):[];var s=-1,l=Array(a);while(++s<a){var c=e[s],u=-1;while(++u<a)u!=s&&(l[s]=r(l[s]||c,e[u],t,n))}return o(i(l,1),t,n)}e.exports=a},3188:function(e){function t(e,t){return e.has(t)}e.exports=t},59073:function(e,t,n){var r=n(94393);function i(e){return"function"==typeof e?e:r}e.exports=i},38786:function(e,t,n){var r=n(43306),i=n(72159),o=n(90793),a=n(26735);function s(e,t){return r(e)?e:i(e,t)?[e]:o(a(e))}e.exports=s},77375:function(e,t,n){var r=n(33641);function i(e,t,n){var i=e.length;return n=void 0===n?i:n,!t&&n>=i?e:r(e,t,n)}e.exports=i},5486:function(e,t,n){var r=n(98971);function i(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}e.exports=i},30799:function(e,t,n){e=n.nmd(e);var r=n(61346),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i,s=a?r.Buffer:void 0,l=s?s.allocUnsafe:void 0;function c(e,t){if(t)return e.slice();var n=e.length,r=l?l(n):new e.constructor(n);return e.copy(r),r}e.exports=c},11180:function(e,t,n){var r=n(5486);function i(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}e.exports=i},41952:function(e){var t=/\w*$/;function n(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}e.exports=n},99153:function(e,t,n){var r=n(73542),i=r?r.prototype:void 0,o=i?i.valueOf:void 0;function a(e){return o?Object(o.call(e)):{}}e.exports=a},83444:function(e,t,n){var r=n(5486);function i(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}e.exports=i},47982:function(e){function t(e,t){var n=-1,r=e.length;t||(t=Array(r));while(++n<r)t[n]=e[n];return t}e.exports=t},97476:function(e,t,n){var r=n(84162),i=n(13085);function o(e,t,n,o){var a=!n;n||(n={});var s=-1,l=t.length;while(++s<l){var c=t[s],u=o?o(n[c],e[c],c,n,e):void 0;void 0===u&&(u=e[c]),a?i(n,c,u):r(n,c,u)}return n}e.exports=o},830:function(e,t,n){var r=n(97476),i=n(73911);function o(e,t){return r(e,i(e),t)}e.exports=o},14921:function(e,t,n){var r=n(97476),i=n(31932);function o(e,t){return r(e,i(e),t)}e.exports=o},48602:function(e,t,n){var r=n(61346),i=r["__core-js_shared__"];e.exports=i},74884:function(e,t,n){var r=n(76109),i=n(60811);function o(e){return r((function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,s=o>2?n[2]:void 0;a=e.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),t=Object(t);while(++r<o){var l=n[r];l&&e(t,l,r,a)}return t}))}e.exports=o},19640:function(e){function t(e){return function(t,n,r){var i=-1,o=Object(t),a=r(t),s=a.length;while(s--){var l=a[e?s:++i];if(!1===n(o[l],l,o))break}return t}}e.exports=t},7034:function(e,t,n){var r=n(77375),i=n(99293),o=n(65273),a=n(26735);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},27793:function(e,t,n){var r=n(32754),i=n(10965),o=n(45375);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},15644:function(e,t,n){var r=n(52724),i=n(10771),o=n(5168),a=1/0,s=r&&1/o(new r([,-0]))[1]==a?function(e){return new r(e)}:i;e.exports=s},44448:function(e,t,n){var r=n(11207),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();e.exports=i},13386:function(e,t,n){var r=n(28784),i=n(25821),o=n(3188),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<h){var b=e[g],_=t[g];if(l)var w=d?l(_,b,g,t,e,u):l(b,_,g,e,t,u);if(void 0!==w){if(w)continue;v=!1;break}if(y){if(!i(t,(function(e,t){if(!o(y,t)&&(b===e||c(b,e,n,l,u)))return y.push(t)}))){v=!1;break}}else if(b!==_&&!c(b,_,n,l,u)){v=!1;break}}return u["delete"](e),u["delete"](t),v}e.exports=l},57041:function(e,t,n){var r=n(73542),i=n(98971),o=n(85601),a=n(13386),s=n(78666),l=n(5168),c=1,u=2,d="[object Boolean]",h="[object Date]",p="[object Error]",f="[object Map]",m="[object Number]",g="[object RegExp]",v="[object Set]",y="[object String]",b="[object Symbol]",_="[object ArrayBuffer]",w="[object DataView]",E=r?r.prototype:void 0,S=E?E.valueOf:void 0;function x(e,t,n,r,E,x,k){switch(n){case w:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case _:return!(e.byteLength!=t.byteLength||!x(new i(e),new i(t)));case d:case h:case m:return o(+e,+t);case p:return e.name==t.name&&e.message==t.message;case g:case y:return e==t+"";case f:var A=s;case v:var N=r&c;if(A||(A=l),e.size!=t.size&&!N)return!1;var T=k.get(e);if(T)return T==t;r|=u,k.set(e,t);var C=a(A(e),A(t),r,E,x,k);return k["delete"](e),C;case b:if(S)return S.call(e)==S.call(t)}return!1}e.exports=x},98890:function(e,t,n){var r=n(36901),i=1,o=Object.prototype,a=o.hasOwnProperty;function s(e,t,n,o,s,l){var c=n&i,u=r(e),d=u.length,h=r(t),p=h.length;if(d!=p&&!c)return!1;var f=d;while(f--){var m=u[f];if(!(c?m in t:a.call(t,m)))return!1}var g=l.get(e),v=l.get(t);if(g&&v)return g==t&&v==e;var y=!0;l.set(e,t),l.set(t,e);var b=c;while(++f<d){m=u[f];var _=e[m],w=t[m];if(o)var E=c?o(w,_,m,t,e,l):o(_,w,m,e,t,l);if(!(void 0===E?_===w||s(_,w,n,o,l):E)){y=!1;break}b||(b="constructor"==m)}if(y&&!b){var S=e.constructor,x=t.constructor;S==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof S&&S instanceof S&&"function"==typeof x&&x instanceof x||(y=!1)}return l["delete"](e),l["delete"](t),y}e.exports=s},52011:function(e,t,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},36901:function(e,t,n){var r=n(68648),i=n(73911),o=n(45375);function a(e){return r(e,o,i)}e.exports=a},24534:function(e,t,n){var r=n(68648),i=n(31932),o=n(87396);function a(e){return r(e,o,i)}e.exports=a},72472:function(e,t,n){var r=n(7015);function i(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}e.exports=i},547:function(e,t,n){var r=n(87503),i=n(45375);function o(e){var t=i(e),n=t.length;while(n--){var o=t[n],a=e[o];t[n]=[o,a,r(a)]}return t}e.exports=o},11207:function(e,t,n){var r=n(35356),i=n(15183);function o(e,t){var n=i(e,t);return r(n)?n:void 0}e.exports=o},86460:function(e,t,n){var r=n(8026),i=r(Object.getPrototypeOf,Object);e.exports=i},32794:function(e,t,n){var r=n(73542),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;function l(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(l){}var i=a.call(e);return r&&(t?e[s]=n:delete e[s]),i}e.exports=l},73911:function(e,t,n){var r=n(24779),i=n(63646),o=Object.prototype,a=o.propertyIsEnumerable,s=Object.getOwnPropertySymbols,l=s?function(e){return null==e?[]:(e=Object(e),r(s(e),(function(t){return a.call(e,t)})))}:i;e.exports=l},31932:function(e,t,n){var r=n(50485),i=n(86460),o=n(73911),a=n(63646),s=Object.getOwnPropertySymbols,l=s?function(e){var t=[];while(e)r(t,o(e)),e=i(e);return t}:a;e.exports=l},53754:function(e,t,n){var r=n(45955),i=n(29638),o=n(94273),a=n(52724),s=n(41282),l=n(83183),c=n(64054),u="[object Map]",d="[object Object]",h="[object Promise]",p="[object Set]",f="[object WeakMap]",m="[object DataView]",g=c(r),v=c(i),y=c(o),b=c(a),_=c(s),w=l;(r&&w(new r(new ArrayBuffer(1)))!=m||i&&w(new i)!=u||o&&w(o.resolve())!=h||a&&w(new a)!=p||s&&w(new s)!=f)&&(w=function(e){var t=l(e),n=t==d?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case g:return m;case v:return u;case y:return h;case b:return p;case _:return f}return t}),e.exports=w},15183:function(e){function t(e,t){return null==e?void 0:e[t]}e.exports=t},4615:function(e,t,n){var r=n(38786),i=n(25959),o=n(43306),a=n(28236),s=n(86255),l=n(54868);function c(e,t,n){t=r(t,e);var c=-1,u=t.length,d=!1;while(++c<u){var h=l(t[c]);if(!(d=null!=e&&n(e,h)))break;e=e[h]}return d||++c!=u?d:(u=null==e?0:e.length,!!u&&s(u)&&a(h,u)&&(o(e)||i(e)))}e.exports=c},99293:function(e){var t="\\ud800-\\udfff",n="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",i="\\u20d0-\\u20ff",o=n+r+i,a="\\ufe0e\\ufe0f",s="\\u200d",l=RegExp("["+s+t+o+a+"]");function c(e){return l.test(e)}e.exports=c},53613:function(e,t,n){var r=n(86597);function i(){this.__data__=r?r(null):{},this.size=0}e.exports=i},42285:function(e){function t(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}e.exports=t},46580:function(e,t,n){var r=n(86597),i="__lodash_hash_undefined__",o=Object.prototype,a=o.hasOwnProperty;function s(e){var t=this.__data__;if(r){var n=t[e];return n===i?void 0:n}return a.call(t,e)?t[e]:void 0}e.exports=s},24128:function(e,t,n){var r=n(86597),i=Object.prototype,o=i.hasOwnProperty;function a(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}e.exports=a},81200:function(e,t,n){var r=n(86597),i="__lodash_hash_undefined__";function o(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?i:t,this}e.exports=o},42466:function(e){var t=Object.prototype,n=t.hasOwnProperty;function r(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&n.call(e,"index")&&(r.index=e.index,r.input=e.input),r}e.exports=r},50468:function(e,t,n){var r=n(5486),i=n(11180),o=n(41952),a=n(99153),s=n(83444),l="[object Boolean]",c="[object Date]",u="[object Map]",d="[object Number]",h="[object RegExp]",p="[object Set]",f="[object String]",m="[object Symbol]",g="[object ArrayBuffer]",v="[object DataView]",y="[object Float32Array]",b="[object Float64Array]",_="[object Int8Array]",w="[object Int16Array]",E="[object Int32Array]",S="[object Uint8Array]",x="[object Uint8ClampedArray]",k="[object Uint16Array]",A="[object Uint32Array]";function N(e,t,n){var N=e.constructor;switch(t){case g:return r(e);case l:case c:return new N(+e);case v:return i(e,n);case y:case b:case _:case w:case E:case S:case x:case k:case A:return s(e,n);case u:return new N;case d:case f:return new N(e);case h:return o(e);case p:return new N;case m:return a(e)}}e.exports=N},93144:function(e,t,n){var r=n(52095),i=n(86460),o=n(2494);function a(e){return"function"!=typeof e.constructor||o(e)?{}:r(i(e))}e.exports=a},93630:function(e,t,n){var r=n(73542),i=n(25959),o=n(43306),a=r?r.isConcatSpreadable:void 0;function s(e){return o(e)||i(e)||!!(a&&e&&e[a])}e.exports=s},28236:function(e){var t=9007199254740991,n=/^(?:0|[1-9]\d*)$/;function r(e,r){var i=typeof e;return r=null==r?t:r,!!r&&("number"==i||"symbol"!=i&&n.test(e))&&e>-1&&e%1==0&&e<r}e.exports=r},60811:function(e,t,n){var r=n(85601),i=n(10965),o=n(28236),a=n(90016);function s(e,t,n){if(!a(n))return!1;var s=typeof t;return!!("number"==s?i(n)&&o(t,n.length):"string"==s&&t in n)&&r(n[t],e)}e.exports=s},72159:function(e,t,n){var r=n(43306),i=n(95143),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;function s(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!i(e))||(a.test(e)||!o.test(e)||null!=t&&e in Object(t))}e.exports=s},7015:function(e){function t(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}e.exports=t},84379:function(e,t,n){var r=n(48602),i=function(){var e=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function o(e){return!!i&&i in e}e.exports=o},2494:function(e){var t=Object.prototype;function n(e){var n=e&&e.constructor,r="function"==typeof n&&n.prototype||t;return e===r}e.exports=n},87503:function(e,t,n){var r=n(90016);function i(e){return e===e&&!r(e)}e.exports=i},46061:function(e){function t(){this.__data__=[],this.size=0}e.exports=t},13293:function(e,t,n){var r=n(66166),i=Array.prototype,o=i.splice;function a(e){var t=this.__data__,n=r(t,e);if(n<0)return!1;var i=t.length-1;return n==i?t.pop():o.call(t,n,1),--this.size,!0}e.exports=a},71540:function(e,t,n){var r=n(66166);function i(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}e.exports=i},83680:function(e,t,n){var r=n(66166);function i(e){return r(this.__data__,e)>-1}e.exports=i},11792:function(e,t,n){var r=n(66166);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},3581:function(e,t,n){var r=n(22406),i=n(22214),o=n(29638);function a(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}e.exports=a},35837:function(e,t,n){var r=n(72472);function i(e){var t=r(this,e)["delete"](e);return this.size-=t?1:0,t}e.exports=i},86724:function(e,t,n){var r=n(72472);function i(e){return r(this,e).get(e)}e.exports=i},15344:function(e,t,n){var r=n(72472);function i(e){return r(this,e).has(e)}e.exports=i},70016:function(e,t,n){var r=n(72472);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},78666: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},14300: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},51377:function(e,t,n){var r=n(80783),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},86597:function(e,t,n){var r=n(11207),i=r(Object,"create");e.exports=i},37693:function(e,t,n){var r=n(8026),i=r(Object.keys,Object);e.exports=i},55150:function(e){function t(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}e.exports=t},44550:function(e,t,n){e=n.nmd(e);var r=n(52011),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},86889:function(e){var t=Object.prototype,n=t.toString;function r(e){return n.call(e)}e.exports=r},8026:function(e){function t(e,t){return function(n){return e(t(n))}}e.exports=t},84310:function(e,t,n){var r=n(79244),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(++a<s)l[a]=o[t+a];a=-1;var c=Array(t+1);while(++a<t)c[a]=o[a];return c[t]=n(l),r(e,this,c)}}e.exports=o},61346:function(e,t,n){var r=n(52011),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},91847:function(e){function t(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}e.exports=t},17601:function(e){var t="__lodash_hash_undefined__";function n(e){return this.__data__.set(e,t),this}e.exports=n},7026:function(e){function t(e){return this.__data__.has(e)}e.exports=t},5168:function(e){function t(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}e.exports=t},49656:function(e,t,n){var r=n(32527),i=n(53544),o=i(r);e.exports=o},53544:function(e){var t=800,n=16,r=Date.now;function i(e){var i=0,o=0;return function(){var a=r(),s=n-(a-o);if(o=a,s>0){if(++i>=t)return arguments[0]}else i=0;return e.apply(void 0,arguments)}}e.exports=i},65723:function(e,t,n){var r=n(22214);function i(){this.__data__=new r,this.size=0}e.exports=i},77759:function(e){function t(e){var t=this.__data__,n=t["delete"](e);return this.size=t.size,n}e.exports=t},48590:function(e){function t(e){return this.__data__.get(e)}e.exports=t},50138:function(e){function t(e){return this.__data__.has(e)}e.exports=t},19618:function(e,t,n){var r=n(22214),i=n(29638),o=n(45974),a=200;function s(e,t){var n=this.__data__;if(n instanceof r){var s=n.__data__;if(!i||s.length<a-1)return s.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(s)}return n.set(e,t),this.size=n.size,this}e.exports=s},58886:function(e){function t(e,t,n){var r=n-1,i=e.length;while(++r<i)if(e[r]===t)return r;return-1}e.exports=t},65273:function(e,t,n){var r=n(77249),i=n(99293),o=n(79537);function a(e){return i(e)?o(e):r(e)}e.exports=a},90793:function(e,t,n){var r=n(51377),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,(function(e,n,r,i){t.push(r?i.replace(o,"$1"):n||e)})),t}));e.exports=a},54868:function(e,t,n){var r=n(95143),i=1/0;function o(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-i?"-0":t}e.exports=o},64054:function(e){var t=Function.prototype,n=t.toString;function r(e){if(null!=e){try{return n.call(e)}catch(t){}try{return e+""}catch(t){}}return""}e.exports=r},61821:function(e){var t=/\s/;function n(e){var n=e.length;while(n--&&t.test(e.charAt(n)));return n}e.exports=n},79537:function(e){var t="\\ud800-\\udfff",n="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",i="\\u20d0-\\u20ff",o=n+r+i,a="\\ufe0e\\ufe0f",s="["+t+"]",l="["+o+"]",c="\\ud83c[\\udffb-\\udfff]",u="(?:"+l+"|"+c+")",d="[^"+t+"]",h="(?:\\ud83c[\\udde6-\\uddff]){2}",p="[\\ud800-\\udbff][\\udc00-\\udfff]",f="\\u200d",m=u+"?",g="["+a+"]?",v="(?:"+f+"(?:"+[d,h,p].join("|")+")"+g+m+")*",y=g+m+v,b="(?:"+[d+l+"?",l,h,p,s].join("|")+")",_=RegExp(c+"(?="+c+")|"+b+y,"g");function w(e){return e.match(_)||[]}e.exports=w},92809:function(e,t,n){var r=n(26735),i=n(81977);function o(e){return i(r(e).toLowerCase())}e.exports=o},1272:function(e,t,n){var r=n(65522),i=1,o=4;function a(e){return r(e,i|o)}e.exports=a},65386:function(e){function t(e){var t=-1,n=null==e?0:e.length,r=0,i=[];while(++t<n){var o=e[t];o&&(i[r++]=o)}return i}e.exports=t},66783:function(e){function t(e){return function(){return e}}e.exports=t},52156:function(e,t,n){var r=n(90016),i=n(73451),o=n(25535),a="Expected a function",s=Math.max,l=Math.min;function c(e,t,n){var c,u,d,h,p,f,m=0,g=!1,v=!1,y=!0;if("function"!=typeof e)throw new TypeError(a);function b(t){var n=c,r=u;return c=u=void 0,m=t,h=e.apply(r,n),h}function _(e){return m=e,p=setTimeout(S,t),g?b(e):h}function w(e){var n=e-f,r=e-m,i=t-n;return v?l(i,d-r):i}function E(e){var n=e-f,r=e-m;return void 0===f||n>=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},20732:function(e,t,n){var r=n(14236),i=n(90581),o=n(76109),a=n(2282),s=o((function(e,t){return a(e)?r(e,i(t,1,a,!0)):[]}));e.exports=s},85601:function(e){function t(e,t){return e===t||e!==e&&t!==t}e.exports=t},95300:function(e,t,n){var r=n(27793),i=n(63742),o=r(i);e.exports=o},63742:function(e,t,n){var r=n(30878),i=n(32754),o=n(44118),a=Math.max;function s(e,t,n){var s=null==e?0:e.length;if(!s)return-1;var l=null==n?0:o(n);return l<0&&(l=a(s+l,0)),r(e,i(t,3),l)}e.exports=s},67556:function(e,t,n){var r=n(27793),i=n(15934),o=r(i);e.exports=o},15934:function(e,t,n){var r=n(30878),i=n(32754),o=n(44118),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},42455:function(e,t,n){var r=n(90581),i=1/0;function o(e){var t=null==e?0:e.length;return t?r(e,i):[]}e.exports=o},37327:function(e,t,n){var r=n(35200),i=n(59073),o=n(87396);function a(e,t){return null==e?e:r(e,i(t),o)}e.exports=a},31175:function(e,t,n){var r=n(99367);function i(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}e.exports=i},10427:function(e,t,n){var r=n(78619),i=n(4615);function o(e,t){return null!=e&&i(e,t,r)}e.exports=o},5224:function(e,t,n){var r=n(80392),i=n(4615);function o(e,t){return null!=e&&i(e,t,r)}e.exports=o},53737:function(e){function t(e){return e&&e.length?e[0]:void 0}e.exports=t},94393:function(e){function t(e){return e}e.exports=t},25959:function(e,t,n){var r=n(47047),i=n(19095),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},43306:function(e){var t=Array.isArray;e.exports=t},10965:function(e,t,n){var r=n(17283),i=n(86255);function o(e){return null!=e&&i(e.length)&&!r(e)}e.exports=o},2282:function(e,t,n){var r=n(10965),i=n(19095);function o(e){return i(e)&&r(e)}e.exports=o},83945:function(e,t,n){e=n.nmd(e);var r=n(61346),i=n(37376),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},15510:function(e,t,n){var r=n(31711),i=n(53754),o=n(25959),a=n(43306),s=n(10965),l=n(83945),c=n(2494),u=n(37726),d="[object Map]",h="[object Set]",p=Object.prototype,f=p.hasOwnProperty;function m(e){if(null==e)return!0;if(s(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||l(e)||u(e)||o(e)))return!e.length;var t=i(e);if(t==d||t==h)return!e.size;if(c(e))return!r(e).length;for(var n in e)if(f.call(e,n))return!1;return!0}e.exports=m},44435:function(e,t,n){var r=n(50931);function i(e,t){return r(e,t)}e.exports=i},17283:function(e,t,n){var r=n(83183),i=n(90016),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},86255:function(e){var t=9007199254740991;function n(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=t}e.exports=n},11021:function(e,t,n){var r=n(86189),i=n(70544),o=n(44550),a=o&&o.isMap,s=a?i(a):r;e.exports=s},90016:function(e){function t(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}e.exports=t},19095:function(e){function t(e){return null!=e&&"object"==typeof e}e.exports=t},69028:function(e,t,n){var r=n(83183),i=n(86460),o=n(19095),a="[object Object]",s=Function.prototype,l=Object.prototype,c=s.toString,u=l.hasOwnProperty,d=c.call(Object);function h(e){if(!o(e)||r(e)!=a)return!1;var t=i(e);if(null===t)return!0;var n=u.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==d}e.exports=h},41323:function(e,t,n){var r=n(16491),i=n(70544),o=n(44550),a=o&&o.isSet,s=a?i(a):r;e.exports=s},46030:function(e,t,n){var r=n(83183),i=n(43306),o=n(19095),a="[object String]";function s(e){return"string"==typeof e||!i(e)&&o(e)&&r(e)==a}e.exports=s},95143:function(e,t,n){var r=n(83183),i=n(19095),o="[object Symbol]";function a(e){return"symbol"==typeof e||i(e)&&r(e)==o}e.exports=a},37726:function(e,t,n){var r=n(84542),i=n(70544),o=n(44550),a=o&&o.isTypedArray,s=a?i(a):r;e.exports=s},45375:function(e,t,n){var r=n(30482),i=n(31711),o=n(10965);function a(e){return o(e)?r(e):i(e)}e.exports=a},87396:function(e,t,n){var r=n(30482),i=n(31684),o=n(10965);function a(e){return o(e)?r(e,!0):i(e)}e.exports=a},92806:function(e,t,n){var r;
|
||
/**
|
||
* @license
|
||
* Lodash <https://lodash.com/>
|
||
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
||
* Released under MIT license <https://lodash.com/license>
|
||
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
||
* 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<o){var a=e[i];t(r,a,n(a),e)}return r}function wn(e,t){var n=-1,r=null==e?0:e.length;while(++n<r)if(!1===t(e[n],n,e))break;return e}function En(e,t){var n=null==e?0:e.length;while(n--)if(!1===t(e[n],n,e))break;return e}function Sn(e,t){var n=-1,r=null==e?0:e.length;while(++n<r)if(!t(e[n],n,e))return!1;return!0}function xn(e,t){var n=-1,r=null==e?0:e.length,i=0,o=[];while(++n<r){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}function kn(e,t){var n=null==e?0:e.length;return!!n&&Fn(e,t,0)>-1}function An(e,t,n){var r=-1,i=null==e?0:e.length;while(++r<i)if(n(t,e[r]))return!0;return!1}function Nn(e,t){var n=-1,r=null==e?0:e.length,i=Array(r);while(++n<r)i[n]=t(e[n],n,e);return i}function Tn(e,t){var n=-1,r=t.length,i=e.length;while(++n<r)e[i+n]=t[n];return e}function Cn(e,t,n,r){var i=-1,o=null==e?0:e.length;r&&o&&(n=e[++i]);while(++i<o)n=t(n,e[i],i,e);return n}function Rn(e,t,n,r){var i=null==e?0:e.length;r&&i&&(n=e[--i]);while(i--)n=t(n,e[i],i,e);return n}function On(e,t){var n=-1,r=null==e?0:e.length;while(++n<r)if(t(e[n],n,e))return!0;return!1}var In=Un("length");function Dn(e){return e.split("")}function Ln(e){return e.match(Ve)||[]}function Pn(e,t,n){var r;return n(e,(function(e,n,i){if(t(e,n,i))return r=n,!1})),r}function Mn(e,t,n,r){var i=e.length,o=n+(r?1:-1);while(r?o--:++o<i)if(t(e[o],o,e))return o;return-1}function Fn(e,t,n){return t===t?pr(e,t,n):Mn(e,$n,n)}function Bn(e,t,n,r){var i=n-1,o=e.length;while(++i<o)if(r(e[i],t))return i;return-1}function $n(e){return e!==e}function jn(e,t){var n=null==e?0:e.length;return n?Gn(e,t)/n:B}function Un(e){return function(t){return null==t?i:t[e]}}function Vn(e){return function(t){return null==e?i:e[t]}}function Kn(e,t,n,r,i){return i(e,(function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)})),n}function Hn(e,t){var n=e.length;e.sort(t);while(n--)e[n]=e[n].value;return e}function Gn(e,t){var n,r=-1,o=e.length;while(++r<o){var a=t(e[r]);a!==i&&(n=n===i?a:n+a)}return n}function zn(e,t){var n=-1,r=Array(e);while(++n<e)r[n]=t(n);return r}function Xn(e,t){return Nn(t,(function(t){return[t,e[t]]}))}function qn(e){return e?e.slice(0,vr(e)+1).replace(Fe,""):e}function Wn(e){return function(t){return e(t)}}function Yn(e,t){return Nn(t,(function(t){return e[t]}))}function Qn(e,t){return e.has(t)}function Jn(e,t){var n=-1,r=e.length;while(++n<r&&Fn(t,e[n],0)>-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<r){var a=e[n];a!==t&&a!==h||(e[n]=h,o[i++]=n)}return o}function dr(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function hr(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function pr(e,t,n){var r=n-1,i=e.length;while(++r<i)if(e[r]===t)return r;return-1}function fr(e,t,n){var r=n+1;while(r--)if(e[r]===t)return r;return r}function mr(e){return or(e)?br(e):In(e)}function gr(e){return or(e)?_r(e):Dn(e)}function vr(e){var t=e.length;while(t--&&Be.test(e.charAt(t)));return t}var yr=Vn(en);function br(e){var t=Ht.lastIndex=0;while(Ht.test(e))++t;return t}function _r(e){return e.match(Ht)||[]}function wr(e){return e.match(Gt)||[]}var Er=function e(t){t=null==t?sn:Sr.defaults(sn.Object(),t,Sr.pick(sn,qt));var n=t.Array,r=t.Date,Be=t.Error,Ve=t.Function,tt=t.Math,nt=t.Object,rt=t.RegExp,it=t.String,ot=t.TypeError,at=n.prototype,st=Ve.prototype,lt=nt.prototype,ct=t["__core-js_shared__"],ut=st.toString,dt=lt.hasOwnProperty,ht=0,pt=function(){var e=/[^.]+$/.exec(ct&&ct.keys&&ct.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),ft=lt.toString,mt=ut.call(nt),gt=sn._,vt=rt("^"+ut.call(dt).replace(Pe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),yt=un?t.Buffer:i,bt=t.Symbol,_t=t.Uint8Array,wt=yt?yt.allocUnsafe:i,Et=cr(nt.getPrototypeOf,nt),St=nt.create,xt=lt.propertyIsEnumerable,kt=at.splice,At=bt?bt.isConcatSpreadable:i,Nt=bt?bt.iterator:i,Tt=bt?bt.toStringTag:i,Ct=function(){try{var e=Xa(nt,"defineProperty");return e({},"",{}),e}catch(t){}}(),Rt=t.clearTimeout!==sn.clearTimeout&&t.clearTimeout,Ot=r&&r.now!==sn.Date.now&&r.now,It=t.setTimeout!==sn.setTimeout&&t.setTimeout,Dt=tt.ceil,Lt=tt.floor,Pt=nt.getOwnPropertySymbols,Mt=yt?yt.isBuffer:i,Ft=t.isFinite,Bt=at.join,$t=cr(nt.keys,nt),jt=tt.max,Ut=tt.min,Ht=r.now,Gt=t.parseInt,zt=tt.random,Xt=at.reverse,Jt=Xa(t,"DataView"),Zt=Xa(t,"Map"),en=Xa(t,"Promise"),tn=Xa(t,"Set"),on=Xa(t,"WeakMap"),an=Xa(nt,"create"),ln=on&&new on,cn={},dn=Is(Jt),hn=Is(Zt),In=Is(en),Dn=Is(tn),Vn=Is(on),pr=bt?bt.prototype:i,br=pr?pr.valueOf:i,_r=pr?pr.toString:i;function Er(e){if(ku(e)&&!lu(e)&&!(e instanceof Nr)){if(e instanceof Ar)return e;if(dt.call(e,"__wrapped__"))return Ls(e)}return new Ar(e)}var xr=function(){function e(){}return function(t){if(!xu(t))return{};if(St)return St(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function kr(){}function Ar(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function Nr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=$,this.__views__=[]}function Tr(){var e=new Nr(this.__wrapped__);return e.__actions__=ia(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ia(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ia(this.__views__),e}function Cr(){if(this.__filtered__){var e=new Nr(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function Rr(){var e=this.__wrapped__.value(),t=this.__dir__,n=lu(e),r=t<0,i=n?e.length:0,o=Ja(0,i,this.__views__),a=o.start,s=o.end,l=s-a,c=r?s:a-1,u=this.__iteratees__,d=u.length,h=0,p=Ut(l,this.__takeCount__);if(!n||!r&&i==l&&p==l)return $o(e,this.__actions__);var f=[];e:while(l--&&h<p){c+=t;var m=-1,g=e[c];while(++m<d){var v=u[m],y=v.iteratee,b=v.type,_=y(g);if(b==D)g=_;else if(!_){if(b==I)continue e;break e}}f[h++]=g}return f}function Or(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}function Ir(){this.__data__=an?an(null):{},this.size=0}function Dr(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function Lr(e){var t=this.__data__;if(an){var n=t[e];return n===u?i:n}return dt.call(t,e)?t[e]:i}function Pr(e){var t=this.__data__;return an?t[e]!==i:dt.call(t,e)}function Mr(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=an&&t===i?u:t,this}function Fr(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}function Br(){this.__data__=[],this.size=0}function $r(e){var t=this.__data__,n=ui(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():kt.call(t,n,1),--this.size,!0}function jr(e){var t=this.__data__,n=ui(t,e);return n<0?i:t[n][1]}function Ur(e){return ui(this.__data__,e)>-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<n){var r=e[t];this.set(r[0],r[1])}}function Hr(){this.size=0,this.__data__={hash:new Or,map:new(Zt||Fr),string:new Or}}function Gr(e){var t=Ga(this,e)["delete"](e);return this.size-=t?1:0,t}function zr(e){return Ga(this,e).get(e)}function Xr(e){return Ga(this,e).has(e)}function qr(e,t){var n=Ga(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Wr(e){var t=-1,n=null==e?0:e.length;this.__data__=new Kr;while(++t<n)this.add(e[t])}function Yr(e){return this.__data__.set(e,u),this}function Qr(e){return this.__data__.has(e)}function Jr(e){var t=this.__data__=new Fr(e);this.size=t.size}function Zr(){this.__data__=new Fr,this.size=0}function ei(e){var t=this.__data__,n=t["delete"](e);return this.size=t.size,n}function ti(e){return this.__data__.get(e)}function ni(e){return this.__data__.has(e)}function ri(e,t){var n=this.__data__;if(n instanceof Fr){var r=n.__data__;if(!Zt||r.length<a-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Kr(r)}return n.set(e,t),this.size=n.size,this}function ii(e,t){var n=lu(e),r=!n&&su(e),i=!n&&!r&&pu(e),o=!n&&!r&&!i&&ju(e),a=n||r||i||o,s=a?zn(e.length,it):[],l=s.length;for(var c in e)!t&&!dt.call(e,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||as(c,l))||s.push(c);return s}function oi(e){var t=e.length;return t?e[yo(0,t-1)]:i}function ai(e,t){return Cs(ia(e),gi(t,0,e.length))}function si(e){return Cs(ia(e))}function li(e,t,n){(n!==i&&!iu(e[t],n)||n===i&&!(t in e))&&fi(e,t,n)}function ci(e,t,n){var r=e[t];dt.call(e,t)&&iu(r,n)&&(n!==i||t in e)||fi(e,t,n)}function ui(e,t){var n=e.length;while(n--)if(iu(e[n][0],t))return n;return-1}function di(e,t,n,r){return Ei(e,(function(e,i,o){t(r,e,n(e),o)})),r}function hi(e,t){return e&&oa(t,Ed(t),e)}function pi(e,t){return e&&oa(t,Sd(t),e)}function fi(e,t,n){"__proto__"==t&&Ct?Ct(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function mi(e,t){var r=-1,o=t.length,a=n(o),s=null==e;while(++r<o)a[r]=s?i:gd(e,t[r]);return a}function gi(e,t,n){return e===e&&(n!==i&&(e=e<=n?e:n),t!==i&&(e=e>=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(++i<l){var d=e[i],h=null==n?d:n(d);if(d=r||0!==d?d:0,s&&h===h){var p=u;while(p--)if(t[p]===h)continue e;c.push(d)}else o(t,h,r)||c.push(d)}return c}Er.templateSettings={escape:Ce,evaluate:Re,interpolate:Oe,variable:"",imports:{_:Er}},Er.prototype=kr.prototype,Er.prototype.constructor=Er,Ar.prototype=xr(kr.prototype),Ar.prototype.constructor=Ar,Nr.prototype=xr(kr.prototype),Nr.prototype.constructor=Nr,Or.prototype.clear=Ir,Or.prototype["delete"]=Dr,Or.prototype.get=Lr,Or.prototype.has=Pr,Or.prototype.set=Mr,Fr.prototype.clear=Br,Fr.prototype["delete"]=$r,Fr.prototype.get=jr,Fr.prototype.has=Ur,Fr.prototype.set=Vr,Kr.prototype.clear=Hr,Kr.prototype["delete"]=Gr,Kr.prototype.get=zr,Kr.prototype.has=Xr,Kr.prototype.set=qr,Wr.prototype.add=Wr.prototype.push=Yr,Wr.prototype.has=Qr,Jr.prototype.clear=Zr,Jr.prototype["delete"]=ei,Jr.prototype.get=ti,Jr.prototype.has=ni,Jr.prototype.set=ri;var Ei=ua(Oi),Si=ua(Ii,!0);function xi(e,t){var n=!0;return Ei(e,(function(e,r,i){return n=!!t(e,r,i),n})),n}function ki(e,t,n){var r=-1,o=e.length;while(++r<o){var a=e[r],s=t(a);if(null!=s&&(l===i?s===s&&!$u(s):n(s,l)))var l=s,c=a}return c}function Ai(e,t,n,r){var o=e.length;n=qu(n),n<0&&(n=-n>o?0:o+n),r=r===i||r>o?o:qu(r),r<0&&(r+=o),r=n>r?0:Wu(r);while(n<r)e[n++]=t;return e}function Ni(e,t){var n=[];return Ei(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}function Ti(e,t,n,r,i){var o=-1,a=e.length;n||(n=os),i||(i=[]);while(++o<a){var s=e[o];t>0&&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&&n<r)e=e[Os(t[n++])];return n&&n==r?e:i}function Pi(e,t,n){var r=t(e);return lu(e)?r:Tn(r,n(e))}function Mi(e){return null==e?e===i?le:ee:Tt&&Tt in nt(e)?qa(e):bs(e)}function Fi(e,t){return e>t}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<jt(t,n)}function Ui(e,t,r){var o=r?An:kn,a=e[0].length,s=e.length,l=s,c=n(s),u=1/0,d=[];while(l--){var h=e[l];l&&t&&(h=Nn(h,Wn(t))),u=Ut(h.length,u),c[l]=!r&&(t||a>=120&&h.length>=120)?new Wr(l&&h):i}h=e[0];var p=-1,f=c[0];e:while(++p<a&&d.length<u){var m=h[p],g=t?t(m):m;if(m=r||0!==m?m:0,!(f?Qn(f,g):o(d,g,r))){l=s;while(--l){var v=c[l];if(!(v?Qn(v,g):o(e[l],g,r)))continue e}f&&f.push(g),d.push(m)}}return d}function Vi(e,t,n,r){return Oi(e,(function(e,i,o){t(r,n(e),i,o)})),r}function Ki(e,t,n){t=Ho(t,e),e=ws(e,t);var r=null==e?e:e[Os(ol(t))];return null==r?i:bn(r,e,n)}function Hi(e){return ku(e)&&Mi(e)==K}function Gi(e){return ku(e)&&Mi(e)==de}function zi(e){return ku(e)&&Mi(e)==X}function Xi(e,t,n,r,i){return e===t||(null==e||null==t||!ku(e)&&!ku(t)?e!==e&&t!==t:qi(e,t,n,r,Xi,i))}function qi(e,t,n,r,i,o){var a=lu(e),s=lu(t),l=a?H:Qa(e),c=s?H:Qa(t);l=l==K?te:l,c=c==K?te:c;var u=l==te,d=c==te,h=l==c;if(h&&pu(e)){if(!pu(t))return!1;a=!0,u=!1}if(h&&!u)return o||(o=new Jr),a||ju(e)?Pa(e,t,n,r,i,o):Ma(e,t,l,n,r,i,o);if(!(n&g)){var p=u&&dt.call(e,"__wrapped__"),f=d&&dt.call(t,"__wrapped__");if(p||f){var m=p?e.value():e,v=f?t.value():t;return o||(o=new Jr),i(m,v,n,r,o)}}return!!h&&(o||(o=new Jr),Fa(e,t,n,r,i,o))}function Wi(e){return ku(e)&&Qa(e)==J}function Yi(e,t,n,r){var o=n.length,a=o,s=!r;if(null==e)return!a;e=nt(e);while(o--){var l=n[o];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}while(++o<a){l=n[o];var c=l[0],u=e[c],d=l[1];if(s&&l[2]){if(u===i&&!(c in e))return!1}else{var h=new Jr;if(r)var p=r(u,d,c,e,t,h);if(!(p===i?Xi(d,u,g|v,r,h):p))return!1}}return!0}function Qi(e){if(!xu(e)||ds(e))return!1;var t=wu(e)?vt:We;return t.test(Is(e))}function Ji(e){return ku(e)&&Mi(e)==ie}function Zi(e){return ku(e)&&Qa(e)==oe}function eo(e){return ku(e)&&Su(e.length)&&!!Yt[Mi(e)]}function to(e){return"function"==typeof e?e:null==e?Rh:"object"==typeof e?lu(e)?so(e[0],e[1]):ao(e):Kh(e)}function no(e){if(!ps(e))return $t(e);var t=[];for(var n in nt(e))dt.call(e,n)&&"constructor"!=n&&t.push(n);return t}function ro(e){if(!xu(e))return ys(e);var t=ps(e),n=[];for(var r in e)("constructor"!=r||!t&&dt.call(e,r))&&n.push(r);return n}function io(e,t){return e<t}function oo(e,t){var r=-1,i=uu(e)?n(e.length):[];return Ei(e,(function(e,n,o){i[++r]=t(e,n,o)})),i}function ao(e){var t=za(e);return 1==t.length&&t[0][2]?ms(t[0][0],t[0][1]):function(n){return n===e||Yi(n,e,t)}}function so(e,t){return ls(e)&&fs(t)?ms(Os(e),t):function(n){var r=gd(n,e);return r===i&&r===t?yd(n,e):Xi(t,r,g|v)}}function lo(e,t,n,r,o){e!==t&&Ci(t,(function(a,s){if(o||(o=new Jr),xu(a))co(e,t,s,n,lo,r,o);else{var l=r?r(Ss(e,s),a,s+"",e,t,o):i;l===i&&(l=a),li(e,s,l)}}),Sd)}function co(e,t,n,r,o,a,s){var l=Ss(e,n),c=Ss(t,n),u=s.get(c);if(u)li(e,n,u);else{var d=a?a(l,c,n+"",e,t,s):i,h=d===i;if(h){var p=lu(c),f=!p&&pu(c),m=!p&&!f&&ju(c);d=c,p||f||m?lu(l)?d=l:du(l)?d=ia(l):f?(h=!1,d=qo(c,!0)):m?(h=!1,d=Zo(c,!0)):d=[]:Lu(c)||su(c)?(d=l,su(l)?d=Qu(l):xu(l)&&!wu(l)||(d=ns(c))):h=!1}h&&(s.set(c,d),o(d,c,r,a,s),s["delete"](c)),li(e,n,d)}}function uo(e,t){var n=e.length;if(n)return t+=t<0?n:0,as(t,n)?e[t]:i}function ho(e,t,n){t=t.length?Nn(t,(function(e){return lu(e)?function(t){return Li(t,1===e.length?e[0]:e)}:e})):[Rh];var r=-1;t=Nn(t,Wn(Ha()));var i=oo(e,(function(e,n,i){var o=Nn(t,(function(t){return t(e)}));return{criteria:o,index:++r,value:e}}));return Hn(i,(function(e,t){return ta(e,t,n)}))}function po(e,t){return fo(e,t,(function(t,n){return yd(e,n)}))}function fo(e,t,n){var r=-1,i=t.length,o={};while(++r<i){var a=t[r],s=Li(e,a);n(s,a)&&xo(o,Ho(a,e),s)}return o}function mo(e){return function(t){return Li(t,e)}}function go(e,t,n,r){var i=r?Bn:Fn,o=-1,a=t.length,s=e;e===t&&(t=ia(t)),n&&(s=Nn(e,Wn(n)));while(++o<a){var l=0,c=t[o],u=n?n(c):c;while((l=i(s,u,l,r))>-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&&++o<a){var c=Os(t[o]),u=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(o!=s){var d=l[c];u=r?r(d,c,l):i,u===i&&(u=xu(d)?d:as(t[o+1])?[]:{})}ci(l,c,u),l=l[c]}return e}var ko=ln?function(e,t){return ln.set(e,t),e}:Rh,Ao=Ct?function(e,t){return Ct(e,"toString",{configurable:!0,enumerable:!1,value:Ah(t),writable:!0})}:Rh;function No(e){return Cs(Ud(e))}function To(e,t,r){var i=-1,o=e.length;t<0&&(t=-t>o?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<o)a[i]=e[i+t];return a}function Co(e,t){var n;return Ei(e,(function(e,r,i){return n=t(e,r,i),!n})),!!n}function Ro(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t===t&&i<=U){while(r<i){var o=r+i>>>1,a=e[o];null!==a&&!$u(a)&&(n?a<=t:a<t)?r=o+1:i=o}return i}return Oo(e,t,Rh,n)}function Oo(e,t,n,r){var o=0,a=null==e?0:e.length;if(0===a)return 0;t=n(t);var s=t!==t,l=null===t,c=$u(t),u=t===i;while(o<a){var d=Lt((o+a)/2),h=n(e[d]),p=h!==i,f=null===h,m=h===h,g=$u(h);if(s)var v=r||m;else v=u?m&&(r||p):l?m&&p&&(r||!f):c?m&&p&&!f&&(r||!g):!f&&!g&&(r?h<=t:h<t);v?o=d+1:a=d}return Ut(a,j)}function Io(e,t){var n=-1,r=e.length,i=0,o=[];while(++n<r){var a=e[n],s=t?t(a):a;if(!n||!iu(s,l)){var l=s;o[i++]=0===a?0:a}}return o}function Do(e){return"number"==typeof e?e:$u(e)?B:+e}function Lo(e){if("string"==typeof e)return e;if(lu(e))return Nn(e,Lo)+"";if($u(e))return _r?_r.call(e):"";var t=e+"";return"0"==t&&1/e==-P?"-0":t}function Po(e,t,n){var r=-1,i=kn,o=e.length,s=!0,l=[],c=l;if(n)s=!1,i=An;else if(o>=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<o){var d=e[r],h=t?t(d):d;if(d=n||0!==d?d:0,s&&h===h){var p=c.length;while(p--)if(c[p]===h)continue e;t&&c.push(h),l.push(d)}else i(c,h,n)||(c!==l&&c.push(h),l.push(d))}return l}function Mo(e,t){return t=Ho(t,e),e=ws(e,t),null==e||delete e[Os(ol(t))]}function Fo(e,t,n,r){return xo(e,t,n(Li(e,t)),r)}function Bo(e,t,n,r){var i=e.length,o=r?i:-1;while((r?o--:++o<i)&&t(e[o],o,e));return n?To(e,r?0:o,r?o+1:i):To(e,r?o+1:0,r?i:o)}function $o(e,t){var n=e;return n instanceof Nr&&(n=n.value()),Cn(t,(function(e,t){return t.func.apply(t.thisArg,Tn([e],t.args))}),n)}function jo(e,t,r){var i=e.length;if(i<2)return i?Po(e[0]):[];var o=-1,a=n(i);while(++o<i){var s=e[o],l=-1;while(++l<i)l!=o&&(a[o]=wi(a[o]||s,e[l],t,r))}return Po(Ti(a,1),t,r)}function Uo(e,t,n){var r=-1,o=e.length,a=t.length,s={};while(++r<o){var l=r<a?t[r]:i;n(s,e[r],l)}return s}function Vo(e){return du(e)?e:[]}function Ko(e){return"function"==typeof e?e:Rh}function Ho(e,t){return lu(e)?e:ls(e,t)?[e]:Rs(Zu(e))}var Go=wo;function zo(e,t,n){var r=e.length;return n=n===i?r:n,!t&&n>=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<t||u&&n&&o&&!r&&!a||l&&n&&o||!s&&o||!c)return-1}return 0}function ta(e,t,n){var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;while(++r<a){var l=ea(i[r],o[r]);if(l){if(r>=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(++l<c)d[l]=t[l];while(++o<s)(h||o<a)&&(d[r[o]]=e[o]);while(u--)d[l++]=e[o++];return d}function ra(e,t,r,i){var o=-1,a=e.length,s=-1,l=r.length,c=-1,u=t.length,d=jt(a-l,0),h=n(d+u),p=!i;while(++o<d)h[o]=e[o];var f=o;while(++c<u)h[f+c]=t[c];while(++s<l)(p||o<a)&&(h[f+r[s]]=e[o++]);return h}function ia(e,t){var r=-1,i=e.length;t||(t=n(i));while(++r<i)t[r]=e[r];return t}function oa(e,t,n,r){var o=!n;n||(n={});var a=-1,s=t.length;while(++a<s){var l=t[a],c=r?r(n[l],e[l],l,n,e):i;c===i&&(c=e[l]),o?fi(n,l,c):ci(n,l,c)}return n}function aa(e,t){return oa(e,Wa(e),t)}function sa(e,t){return oa(e,Ya(e),t)}function la(e,t){return function(n,r){var i=lu(n)?_n:di,o=t?t():{};return i(n,e,Ha(r,2),o)}}function ca(e){return wo((function(t,n){var r=-1,o=n.length,a=o>1?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<o){var l=n[r];l&&e(t,l,r,a)}return t}))}function ua(e,t){return function(n,r){if(null==n)return n;if(!uu(n))return e(n,r);var i=n.length,o=t?i:-1,a=nt(n);while(t?o--:++o<i)if(!1===r(a[o],o,a))break;return n}}function da(e){return function(t,n,r){var i=-1,o=nt(t),a=r(t),s=a.length;while(s--){var l=a[e?s:++i];if(!1===n(o[l],l,o))break}return t}}function ha(e,t,n){var r=t&y,i=ma(e);function o(){var t=this&&this!==sn&&this instanceof o?i:e;return t.apply(r?n:this,arguments)}return o}function pa(e){return function(t){t=Zu(t);var n=or(t)?gr(t):i,r=n?n[0]:t.charAt(0),o=n?zo(n,1).join(""):t.slice(1);return r[e]()+o}}function fa(e){return function(t){return Cn(wh(qd(t).replace(Vt,"")),e,"")}}function ma(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=xr(e.prototype),r=e.apply(n,t);return xu(r)?r:n}}function ga(e,t,r){var o=ma(e);function a(){var s=arguments.length,l=n(s),c=s,u=Ka(a);while(c--)l[c]=arguments[c];var d=s<3&&l[0]!==u&&l[s-1]!==u?[]:ur(l,u);if(s-=d.length,s<r)return Na(e,t,ba,a.placeholder,i,l,d,i,i,r-s);var h=this&&this!==sn&&this instanceof a?o:e;return bn(h,this,l)}return a}function va(e){return function(t,n,r){var o=nt(t);if(!uu(t)){var a=Ha(n,3);t=Ed(t),n=function(e){return a(o[e],e,o)}}var s=e(t,n,r);return s>-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(++r<n){a=t[r];var c=Va(a),u="wrapper"==c?Ua(a):i;s=u&&us(u[0])&&u[1]==(k|w|S|A)&&!u[4].length&&1==u[9]?s[Va(u[0])].apply(s,u[3]):1==a.length&&us(a)?s[c]():s.thru(a)}return function(){var e=arguments,r=e[0];if(s&&1==e.length&&lu(r))return s.plant(r).value();var i=0,o=n?t[i].apply(this,e):r;while(++i<n)o=t[i].call(this,o);return o}}))}function ba(e,t,r,o,a,s,l,c,u,d){var h=t&k,p=t&y,f=t&b,m=t&(w|E),g=t&N,v=f?i:ma(e);function _(){var i=arguments.length,y=n(i),b=i;while(b--)y[b]=arguments[b];if(m)var w=Ka(_),E=er(y,w);if(o&&(y=na(y,o,a,m)),s&&(y=ra(y,s,l,m)),i-=E,m&&i<d){var S=ur(y,w);return Na(e,t,ba,_.placeholder,r,y,S,c,u,d-i)}var x=p?r:this,k=f?x[e]:e;return i=y.length,c?y=Es(y,c):g&&i>1&&y.reverse(),h&&u<i&&(y.length=u),this&&this!==sn&&this instanceof _&&(k=v||ma(k)),k.apply(x,y)}return _}function _a(e,t){return function(n,r){return Vi(n,e,t(r),{})}}function wa(e,t){return function(n,r){var o;if(n===i&&r===i)return t;if(n!==i&&(o=n),r!==i){if(o===i)return r;"string"==typeof n||"string"==typeof r?(n=Lo(n),r=Lo(r)):(n=Do(n),r=Do(r)),o=e(n,r)}return o}}function Ea(e){return Ba((function(t){return t=Nn(t,Wn(Ha())),wo((function(n){var r=this;return e(t,(function(e){return bn(e,r,n)}))}))}))}function Sa(e,t){t=t===i?" ":Lo(t);var n=t.length;if(n<2)return n?_o(t,e):t;var r=_o(t,Dt(e/mr(t)));return or(t)?zo(gr(r),0,e).join(""):r.slice(0,e)}function xa(e,t,r,i){var o=t&y,a=ma(e);function s(){var t=-1,l=arguments.length,c=-1,u=i.length,d=n(u+l),h=this&&this!==sn&&this instanceof s?a:e;while(++c<u)d[c]=i[c];while(l--)d[c++]=arguments[++t];return bn(h,o?r:this,d)}return s}function ka(e){return function(t,n,r){return r&&"number"!=typeof r&&ss(t,n,r)&&(n=r=i),t=Xu(t),n===i?(n=t,t=0):n=Xu(n),r=r===i?t<n?1:-1:Xu(r),bo(t,n,r,e)}}function Aa(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=Yu(t),n=Yu(n)),e(t,n)}}function Na(e,t,n,r,o,a,s,l,c,u){var d=t&w,h=d?s:i,p=d?i:s,f=d?a:i,m=d?i:a;t|=d?S:x,t&=~(d?x:S),t&_||(t&=~(y|b));var g=[e,t,o,f,h,m,p,l,c,u],v=n.apply(i,g);return us(e)&&xs(v,g),v.placeholder=r,Ns(v,e,t)}function Ta(e){var t=tt[e];return function(e,n){if(e=Yu(e),n=null==n?0:Ut(qu(n),292),n&&Ft(e)){var r=(Zu(e)+"e").split("e"),i=t(r[0]+"e"+(+r[1]+n));return r=(Zu(i)+"e").split("e"),+(r[0]+"e"+(+r[1]-n))}return t(e)}}var Ca=tn&&1/dr(new tn([,-0]))[1]==P?function(e){return new tn(e)}:Bh;function Ra(e){return function(t){var n=Qa(t);return n==J?lr(t):n==oe?hr(t):Xn(t,e(t))}}function Oa(e,t,n,r,o,a,s,c){var u=t&b;if(!u&&"function"!=typeof e)throw new ot(l);var d=r?r.length:0;if(d||(t&=~(S|x),r=o=i),s=s===i?s:jt(qu(s),0),c=c===i?c:qu(c),d-=o?o.length:0,t&x){var h=r,p=o;r=o=i}var f=u?i:Ua(e),m=[e,t,n,r,o,h,p,a,s,c];if(f&&vs(m,f),e=m[0],t=m[1],n=m[2],r=m[3],o=m[4],c=m[9]=m[9]===i?u?0:e.length:jt(m[9]-d,0),!c&&t&(w|E)&&(t&=~(w|E)),t&&t!=y)g=t==w||t==E?ga(e,t,c):t!=S&&t!=(y|S)||o.length?ba.apply(i,m):xa(e,t,n,r);else var g=ha(e,t,n);var v=f?ko:xs;return Ns(v(g,m),e,t)}function Ia(e,t,n,r){return e===i||iu(e,lt[n])&&!dt.call(r,n)?t:e}function Da(e,t,n,r,o,a){return xu(e)&&xu(t)&&(a.set(t,e),lo(e,t,i,Da,a),a["delete"](t)),e}function La(e){return Lu(e)?i:e}function Pa(e,t,n,r,o,a){var s=n&g,l=e.length,c=t.length;if(l!=c&&!(s&&c>l))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(++h<l){var m=e[h],y=t[h];if(r)var b=s?r(y,m,h,t,e,a):r(m,y,h,e,t,a);if(b!==i){if(b)continue;p=!1;break}if(f){if(!On(t,(function(e,t){if(!Qn(f,t)&&(m===e||o(m,e,n,r,a)))return f.push(t)}))){p=!1;break}}else if(m!==y&&!o(m,y,n,r,a)){p=!1;break}}return a["delete"](e),a["delete"](t),p}function Ma(e,t,n,r,i,o,a){switch(n){case he:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case de:return!(e.byteLength!=t.byteLength||!o(new _t(e),new _t(t)));case z:case X:case Z:return iu(+e,+t);case W:return e.name==t.name&&e.message==t.message;case ie:case ae:return e==t+"";case J:var s=lr;case oe:var l=r&g;if(s||(s=dr),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=v,a.set(e,t);var u=Pa(s(e),s(t),r,i,o,a);return a["delete"](e),u;case se:if(br)return br.call(e)==br.call(t)}return!1}function Fa(e,t,n,r,o,a){var s=n&g,l=$a(e),c=l.length,u=$a(t),d=u.length;if(c!=d&&!s)return!1;var h=c;while(h--){var p=l[h];if(!(s?p in t:dt.call(t,p)))return!1}var f=a.get(e),m=a.get(t);if(f&&m)return f==t&&m==e;var v=!0;a.set(e,t),a.set(t,e);var y=s;while(++h<c){p=l[h];var b=e[p],_=t[p];if(r)var w=s?r(_,b,p,t,e,a):r(b,_,p,e,t,a);if(!(w===i?b===_||o(b,_,n,r,a):w)){v=!1;break}y||(y="constructor"==p)}if(v&&!y){var E=e.constructor,S=t.constructor;E==S||!("constructor"in e)||!("constructor"in t)||"function"==typeof E&&E instanceof E&&"function"==typeof S&&S instanceof S||(v=!1)}return a["delete"](e),a["delete"](t),v}function Ba(e){return As(_s(e,i,qs),e+"")}function $a(e){return Pi(e,Ed,Wa)}function ja(e){return Pi(e,Sd,Ya)}var Ua=ln?function(e){return ln.get(e)}:Bh;function Va(e){var t=e.name+"",n=cn[t],r=dt.call(cn,t)?n.length:0;while(r--){var i=n[r],o=i.func;if(null==o||o==e)return i.name}return t}function Ka(e){var t=dt.call(Er,"placeholder")?Er:e;return t.placeholder}function Ha(){var e=Er.iteratee||Oh;return e=e===Oh?to:e,arguments.length?e(arguments[0],arguments[1]):e}function Ga(e,t){var n=e.__data__;return cs(t)?n["string"==typeof t?"string":"hash"]:n.map}function za(e){var t=Ed(e),n=t.length;while(n--){var r=t[n],i=e[r];t[n]=[r,i,fs(i)]}return t}function Xa(e,t){var n=ir(e,t);return Qi(n)?n:i}function qa(e){var t=dt.call(e,Tt),n=e[Tt];try{e[Tt]=i;var r=!0}catch(a){}var o=ft.call(e);return r&&(t?e[Tt]=n:delete e[Tt]),o}var Wa=Pt?function(e){return null==e?[]:(e=nt(e),xn(Pt(e),(function(t){return xt.call(e,t)})))}:Xh,Ya=Pt?function(e){var t=[];while(e)Tn(t,Wa(e)),e=Et(e);return t}:Xh,Qa=Mi;function Ja(e,t,n){var r=-1,i=n.length;while(++r<i){var o=n[r],a=o.size;switch(o.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=Ut(t,e+a);break;case"takeRight":e=jt(e,t-a);break}}return{start:e,end:t}}function Za(e){var t=e.match(je);return t?t[1].split(Ue):[]}function es(e,t,n){t=Ho(t,e);var r=-1,i=t.length,o=!1;while(++r<i){var a=Os(t[r]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++r!=i?o:(i=null==e?0:e.length,!!i&&Su(i)&&as(a,i)&&(lu(e)||su(e)))}function ts(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&dt.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function ns(e){return"function"!=typeof e.constructor||ps(e)?{}:xr(Et(e))}function rs(e,t,n){var r=e.constructor;switch(t){case de:return Wo(e);case z:case X:return new r(+e);case he:return Yo(e,n);case pe:case fe:case me:case ge:case ve:case ye:case be:case _e:case we:return Zo(e,n);case J:return new r;case Z:case ae:return new r(e);case ie:return Qo(e);case oe:return new r;case se:return Jo(e)}}function is(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+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&&e<t}function ss(e,t,n){if(!xu(n))return!1;var r=typeof t;return!!("number"==r?uu(n)&&as(t,n.length):"string"==r&&t in n)&&iu(n[t],e)}function ls(e,t){if(lu(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!$u(e))||(De.test(e)||!Ie.test(e)||null!=t&&e in nt(t))}function cs(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}function us(e){var t=Va(e),n=Er[t];if("function"!=typeof n||!(t in Nr.prototype))return!1;if(e===n)return!0;var r=Ua(n);return!!r&&e===r[0]}function ds(e){return!!pt&&pt in e}(Jt&&Qa(new Jt(new ArrayBuffer(1)))!=he||Zt&&Qa(new Zt)!=J||en&&Qa(en.resolve())!=ne||tn&&Qa(new tn)!=oe||on&&Qa(new on)!=ce)&&(Qa=function(e){var t=Mi(e),n=t==te?e.constructor:i,r=n?Is(n):"";if(r)switch(r){case dn:return he;case hn:return J;case In:return ne;case Dn:return oe;case Vn:return ce}return t});var hs=ct?wu:qh;function ps(e){var t=e&&e.constructor,n="function"==typeof t&&t.prototype||lt;return e===n}function fs(e){return e===e&&!xu(e)}function ms(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==i||e in nt(n)))}}function gs(e){var t=jc(e,(function(e){return n.size===d&&n.clear(),e})),n=t.cache;return t}function vs(e,t){var n=e[1],r=t[1],i=n|r,o=i<(y|b|k),a=r==k&&n==w||r==k&&n==A&&e[7].length<=t[8]||r==(k|A)&&t[7].length<=t[8]&&n==w;if(!o&&!a)return e;r&y&&(e[2]=t[2],i|=n&y?0:_);var s=t[3];if(s){var l=e[3];e[3]=l?na(l,s,t[4]):s,e[4]=l?ur(e[3],h):t[4]}return s=t[5],s&&(l=e[5],e[5]=l?ra(l,s,t[6]):s,e[6]=l?ur(e[5],h):t[6]),s=t[7],s&&(e[7]=s),r&k&&(e[8]=null==e[8]?t[8]:Ut(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i,e}function ys(e){var t=[];if(null!=e)for(var n in nt(e))t.push(n);return t}function bs(e){return ft.call(e)}function _s(e,t,r){return t=jt(t===i?e.length-1:t,0),function(){var i=arguments,o=-1,a=jt(i.length-t,0),s=n(a);while(++o<a)s[o]=i[t+o];o=-1;var l=n(t+1);while(++o<t)l[o]=i[o];return l[t]=r(s),bn(e,this,l)}}function ws(e,t){return t.length<2?e:Li(e,To(t,0,-1))}function Es(e,t){var n=e.length,r=Ut(t.length,n),o=ia(e);while(r--){var a=t[r];e[r]=as(a,n)?o[a]:i}return e}function Ss(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}var xs=Ts(ko),ks=It||function(e,t){return sn.setTimeout(e,t)},As=Ts(Ao);function Ns(e,t,n){var r=t+"";return As(e,is(r,Ds(Za(r),n)))}function Ts(e){var t=0,n=0;return function(){var r=Ht(),o=O-(r-n);if(n=r,o>0){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(++n<t){var a=yo(n,o),s=e[a];e[a]=e[n],e[n]=s}return e.length=t,e}var Rs=gs((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Le,(function(e,n,r,i){t.push(r?i.replace(He,"$1"):n||e)})),t}));function Os(e){if("string"==typeof e||$u(e))return e;var t=e+"";return"0"==t&&1/e==-P?"-0":t}function Is(e){if(null!=e){try{return ut.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function Ds(e,t){return wn(V,(function(n){var r="_."+n[0];t&n[1]&&!kn(e,r)&&e.push(r)})),e.sort()}function Ls(e){if(e instanceof Nr)return e.clone();var t=new Ar(e.__wrapped__,e.__chain__);return t.__actions__=ia(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function Ps(e,t,r){t=(r?ss(e,t,r):t===i)?1:jt(qu(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];var a=0,s=0,l=n(Dt(o/t));while(a<o)l[s++]=To(e,a,a+=t);return l}function Ms(e){var t=-1,n=null==e?0:e.length,r=0,i=[];while(++t<n){var o=e[t];o&&(i[r++]=o)}return i}function Fs(){var e=arguments.length;if(!e)return[];var t=n(e-1),r=arguments[0],i=e;while(i--)t[i-1]=arguments[i];return Tn(lu(r)?ia(r):[r],Ti(t,1))}var Bs=wo((function(e,t){return du(e)?wi(e,Ti(t,1,du,!0)):[]})),$s=wo((function(e,t){var n=ol(t);return du(n)&&(n=i),du(e)?wi(e,Ti(t,1,du,!0),Ha(n,2)):[]})),js=wo((function(e,t){var n=ol(t);return du(n)&&(n=i),du(e)?wi(e,Ti(t,1,du,!0),i,n):[]}));function Us(e,t,n){var r=null==e?0:e.length;return r?(t=n||t===i?1:qu(t),To(e,t<0?0:t,r)):[]}function Vs(e,t,n){var r=null==e?0:e.length;return r?(t=n||t===i?1:qu(t),t=r-t,To(e,0,t<0?0:t)):[]}function Ks(e,t){return e&&e.length?Bo(e,Ha(t,3),!0,!0):[]}function Hs(e,t){return e&&e.length?Bo(e,Ha(t,3),!0):[]}function Gs(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&ss(e,t,n)&&(n=0,r=i),Ai(e,t,n,r)):[]}function zs(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:qu(n);return i<0&&(i=jt(r+i,0)),Mn(e,Ha(t,3),i)}function Xs(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return n!==i&&(o=qu(n),o=n<0?jt(r+o,0):Ut(o,r-1)),Mn(e,Ha(t,3),o,!0)}function qs(e){var t=null==e?0:e.length;return t?Ti(e,1):[]}function Ws(e){var t=null==e?0:e.length;return t?Ti(e,P):[]}function Ys(e,t){var n=null==e?0:e.length;return n?(t=t===i?1:qu(t),Ti(e,t)):[]}function Qs(e){var t=-1,n=null==e?0:e.length,r={};while(++t<n){var i=e[t];r[i[0]]=i[1]}return r}function Js(e){return e&&e.length?e[0]:i}function Zs(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:qu(n);return i<0&&(i=jt(r+i,0)),Fn(e,t,i)}function el(e){var t=null==e?0:e.length;return t?To(e,0,-1):[]}var tl=wo((function(e){var t=Nn(e,Vo);return t.length&&t[0]===e[0]?Ui(t):[]})),nl=wo((function(e){var t=ol(e),n=Nn(e,Vo);return t===ol(n)?t=i:n.pop(),n.length&&n[0]===e[0]?Ui(n,Ha(t,2)):[]})),rl=wo((function(e){var t=ol(e),n=Nn(e,Vo);return t="function"==typeof t?t:i,t&&n.pop(),n.length&&n[0]===e[0]?Ui(n,i,t):[]}));function il(e,t){return null==e?"":Bt.call(e,t)}function ol(e){var t=null==e?0:e.length;return t?e[t-1]:i}function al(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return n!==i&&(o=qu(n),o=o<0?jt(r+o,0):Ut(o,r-1)),t===t?fr(e,t,o):Mn(e,$n,o,!0)}function sl(e,t){return e&&e.length?uo(e,qu(t)):i}var ll=wo(cl);function cl(e,t){return e&&e.length&&t&&t.length?go(e,t):e}function ul(e,t,n){return e&&e.length&&t&&t.length?go(e,t,Ha(n,2)):e}function dl(e,t,n){return e&&e.length&&t&&t.length?go(e,t,i,n):e}var hl=Ba((function(e,t){var n=null==e?0:e.length,r=mi(e,t);return vo(e,Nn(t,(function(e){return as(e,n)?+e:e})).sort(ea)),r}));function pl(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],o=e.length;t=Ha(t,3);while(++r<o){var a=e[r];t(a,r,e)&&(n.push(a),i.push(r))}return vo(e,i),n}function fl(e){return null==e?e:Xt.call(e)}function ml(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&ss(e,t,n)?(t=0,n=r):(t=null==t?0:qu(t),n=n===i?r:qu(n)),To(e,t,n)):[]}function gl(e,t){return Ro(e,t)}function vl(e,t,n){return Oo(e,t,Ha(n,2))}function yl(e,t){var n=null==e?0:e.length;if(n){var r=Ro(e,t);if(r<n&&iu(e[r],t))return r}return-1}function bl(e,t){return Ro(e,t,!0)}function _l(e,t,n){return Oo(e,t,Ha(n,2),!0)}function wl(e,t){var n=null==e?0:e.length;if(n){var r=Ro(e,t,!0)-1;if(iu(e[r],t))return r}return-1}function El(e){return e&&e.length?Io(e):[]}function Sl(e,t){return e&&e.length?Io(e,Ha(t,2)):[]}function xl(e){var t=null==e?0:e.length;return t?To(e,1,t):[]}function kl(e,t,n){return e&&e.length?(t=n||t===i?1:qu(t),To(e,0,t<0?0:t)):[]}function Al(e,t,n){var r=null==e?0:e.length;return r?(t=n||t===i?1:qu(t),t=r-t,To(e,t<0?0:t,r)):[]}function Nl(e,t){return e&&e.length?Bo(e,Ha(t,3),!1,!0):[]}function Tl(e,t){return e&&e.length?Bo(e,Ha(t,3)):[]}var Cl=wo((function(e){return Po(Ti(e,1,du,!0))})),Rl=wo((function(e){var t=ol(e);return du(t)&&(t=i),Po(Ti(e,1,du,!0),Ha(t,2))})),Ol=wo((function(e){var t=ol(e);return t="function"==typeof t?t:i,Po(Ti(e,1,du,!0),i,t)}));function Il(e){return e&&e.length?Po(e):[]}function Dl(e,t){return e&&e.length?Po(e,Ha(t,2)):[]}function Ll(e,t){return t="function"==typeof t?t:i,e&&e.length?Po(e,i,t):[]}function Pl(e){if(!e||!e.length)return[];var t=0;return e=xn(e,(function(e){if(du(e))return t=jt(e.length,t),!0})),zn(t,(function(t){return Nn(e,Un(t))}))}function Ml(e,t){if(!e||!e.length)return[];var n=Pl(e);return null==t?n:Nn(n,(function(e){return bn(t,i,e)}))}var Fl=wo((function(e,t){return du(e)?wi(e,t):[]})),Bl=wo((function(e){return jo(xn(e,du))})),$l=wo((function(e){var t=ol(e);return du(t)&&(t=i),jo(xn(e,du),Ha(t,2))})),jl=wo((function(e){var t=ol(e);return t="function"==typeof t?t:i,jo(xn(e,du),i,t)})),Ul=wo(Pl);function Vl(e,t){return Uo(e||[],t||[],ci)}function Kl(e,t){return Uo(e||[],t||[],xo)}var Hl=wo((function(e){var t=e.length,n=t>1?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<o)r[i]=t[i].call(this,r[i]);return bn(e,this,r)}))})),Hc=wo((function(e,t){var n=ur(t,Ka(Hc));return Oa(e,S,i,t,n)})),Gc=wo((function(e,t){var n=ur(t,Ka(Gc));return Oa(e,x,i,t,n)})),zc=Ba((function(e,t){return Oa(e,A,i,i,i,t)}));function Xc(e,t){if("function"!=typeof e)throw new ot(l);return t=t===i?t:qu(t),wo(e,t)}function qc(e,t){if("function"!=typeof e)throw new ot(l);return t=null==t?0:jt(qu(t),0),wo((function(n){var r=n[t],i=zo(n,0,t);return r&&Tn(i,r),bn(e,this,i)}))}function Wc(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new ot(l);return xu(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Mc(e,t,{leading:r,maxWait:t,trailing:i})}function Yc(e){return Rc(e,1)}function Qc(e,t){return Hc(Ko(t),e)}function Jc(){if(!arguments.length)return[];var e=arguments[0];return lu(e)?e:[e]}function Zc(e){return vi(e,m)}function eu(e,t){return t="function"==typeof t?t:i,vi(e,m,t)}function tu(e){return vi(e,p|m)}function nu(e,t){return t="function"==typeof t?t:i,vi(e,p|m,t)}function ru(e,t){return null==t||bi(e,t,Ed(t))}function iu(e,t){return e===t||e!==e&&t!==t}var ou=Aa(Fi),au=Aa((function(e,t){return e>=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(++n<r){var a=t[n],s=Sd(a),l=-1,c=s.length;while(++l<c){var u=s[l],d=e[u];(d===i||iu(d,lt[u])&&!dt.call(e,u))&&(e[u]=a[u])}}return e})),sd=wo((function(e){return e.push(i,Da),bn(Nd,i,e)}));function ld(e,t){return Pn(e,Ha(t,3),Oi)}function cd(e,t){return Pn(e,Ha(t,3),Ii)}function ud(e,t){return null==e?e:Ci(e,Ha(t,3),Sd)}function dd(e,t){return null==e?e:Ri(e,Ha(t,3),Sd)}function hd(e,t){return e&&Oi(e,Ha(t,3))}function pd(e,t){return e&&Ii(e,Ha(t,3))}function fd(e){return null==e?[]:Di(e,Ed(e))}function md(e){return null==e?[]:Di(e,Sd(e))}function gd(e,t,n){var r=null==e?i:Li(e,t);return r===i?n:r}function vd(e,t){return null!=e&&es(e,t,Bi)}function yd(e,t){return null!=e&&es(e,t,$i)}var bd=_a((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=ft.call(t)),e[t]=n}),Ah(Rh)),_d=_a((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=ft.call(t)),dt.call(e,t)?e[t].push(n):e[t]=[n]}),Ha),wd=wo(Ki);function Ed(e){return uu(e)?ii(e):no(e)}function Sd(e){return uu(e)?ii(e,!0):ro(e)}function xd(e,t){var n={};return t=Ha(t,3),Oi(e,(function(e,r,i){fi(n,t(e,r,i),e)})),n}function kd(e,t){var n={};return t=Ha(t,3),Oi(e,(function(e,r,i){fi(n,r,t(e,r,i))})),n}var Ad=ca((function(e,t,n){lo(e,t,n)})),Nd=ca((function(e,t,n,r){lo(e,t,n,r)})),Td=Ba((function(e,t){var n={};if(null==e)return n;var r=!1;t=Nn(t,(function(t){return t=Ho(t,e),r||(r=t.length>1),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(++r<o){var a=null==e?i:e[Os(t[r])];a===i&&(r=o,a=n),e=wu(a)?a.call(e):a}return e}function Dd(e,t,n){return null==e?e:xo(e,t,n)}function Ld(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:xo(e,t,n,r)}var Pd=Ra(Ed),Md=Ra(Sd);function Fd(e,t,n){var r=lu(e),i=r||pu(e)||ju(e);if(t=Ha(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:xu(e)&&wu(o)?xr(Et(e)):{}}return(i?wn:Oi)(e,(function(e,r,i){return t(n,e,r,i)})),n}function Bd(e,t){return null==e||Mo(e,t)}function $d(e,t,n){return null==e?e:Fo(e,t,Ko(n))}function jd(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:Fo(e,t,Ko(n),r)}function Ud(e){return null==e?[]:Yn(e,Ed(e))}function Vd(e){return null==e?[]:Yn(e,Sd(e))}function Kd(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=Yu(n),n=n===n?n:0),t!==i&&(t=Yu(t),t=t===t?t:0),gi(Yu(e),t,n)}function Hd(e,t,n){return t=Xu(t),n===i?(n=t,t=0):n=Xu(n),e=Yu(e),ji(e,t,n)}function Gd(e,t,n){if(n&&"boolean"!=typeof n&&ss(e,t,n)&&(t=n=i),n===i&&("boolean"==typeof t?(n=t,t=i):"boolean"==typeof e&&(n=e,e=i)),e===i&&t===i?(e=0,t=1):(e=Xu(e),t===i?(t=e,e=0):t=Xu(t)),e>t){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<t?e+Sa(t-r,n):e}function rh(e,t,n){e=Zu(e),t=qu(t);var r=t?mr(e):0;return t&&r<t?Sa(t-r,n)+e:e}function ih(e,t,n){return n||null==t?t=0:t&&(t=+t),Gt(Zu(e).replace(Fe,""),t||0)}function oh(e,t,n){return t=(n?ss(e,t,n):t===i)?1:qu(t),_o(Zu(e),t)}function ah(){var e=arguments,t=Zu(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var sh=fa((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));function lh(e,t,n){return n&&"number"!=typeof n&&ss(e,t,n)&&(t=n=i),n=n===i?$:n>>>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(++r<t){var i=e[r];if(bn(i[0],this,n))return bn(i[1],this,n)}}))}function kh(e){return yi(vi(e,p))}function Ah(e){return function(){return e}}function Nh(e,t){return null==e||e!==e?t:e}var Th=ya(),Ch=ya(!0);function Rh(e){return e}function Oh(e){return to("function"==typeof e?e:vi(e,p))}function Ih(e){return ao(vi(e,p))}function Dh(e,t){return so(e,vi(t,p))}var Lh=wo((function(e,t){return function(n){return Ki(n,e,t)}})),Ph=wo((function(e,t){return function(n){return Ki(e,n,t)}}));function Mh(e,t,n){var r=Ed(t),i=Di(t,r);null!=n||xu(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=Di(t,Ed(t)));var o=!(xu(n)&&"chain"in n)||!!n.chain,a=wu(e);return wn(i,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__),i=n.__actions__=ia(this.__actions__);return i.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Tn([this.value()],arguments))})})),e}function Fh(){return sn._===this&&(sn._=gt),this}function Bh(){}function $h(e){return e=qu(e),wo((function(t){return uo(t,e)}))}var jh=Ea(Nn),Uh=Ea(Sn),Vh=Ea(On);function Kh(e){return ls(e)?Un(Os(e)):mo(e)}function Hh(e){return function(t){return null==e?i:Li(e,t)}}var Gh=ka(),zh=ka(!0);function Xh(){return[]}function qh(){return!1}function Wh(){return{}}function Yh(){return""}function Qh(){return!0}function Jh(e,t){if(e=qu(e),e<1||e>M)return[];var n=$,r=Ut(e,$);t=Ha(t),e-=$;var i=zn(r,t);while(++n<e)t(n);return i}function Zh(e){return lu(e)?Nn(e,Os):$u(e)?[e]:ia(Rs(Zu(e)))}function ep(e){var t=++ht;return Zu(e)+t}var tp=wa((function(e,t){return e+t}),0),np=Ta("ceil"),rp=wa((function(e,t){return e/t}),1),ip=Ta("floor");function op(e){return e&&e.length?ki(e,Rh,Fi):i}function ap(e,t){return e&&e.length?ki(e,Ha(t,2),Fi):i}function sp(e){return jn(e,Rh)}function lp(e,t){return jn(e,Ha(t,2))}function cp(e){return e&&e.length?ki(e,Rh,io):i}function up(e,t){return e&&e.length?ki(e,Ha(t,2),io):i}var dp=wa((function(e,t){return e*t}),1),hp=Ta("round"),pp=wa((function(e,t){return e-t}),0);function fp(e){return e&&e.length?Gn(e,Rh):0}function mp(e,t){return e&&e.length?Gn(e,Ha(t,2)):0}return Er.after=Cc,Er.ary=Rc,Er.assign=ed,Er.assignIn=td,Er.assignInWith=nd,Er.assignWith=rd,Er.at=id,Er.before=Oc,Er.bind=Ic,Er.bindAll=Sh,Er.bindKey=Dc,Er.castArray=Jc,Er.chain=Gl,Er.chunk=Ps,Er.compact=Ms,Er.concat=Fs,Er.cond=xh,Er.conforms=kh,Er.constant=Ah,Er.countBy=nc,Er.create=od,Er.curry=Lc,Er.curryRight=Pc,Er.debounce=Mc,Er.defaults=ad,Er.defaultsDeep=sd,Er.defer=Fc,Er.delay=Bc,Er.difference=Bs,Er.differenceBy=$s,Er.differenceWith=js,Er.drop=Us,Er.dropRight=Vs,Er.dropRightWhile=Ks,Er.dropWhile=Hs,Er.fill=Gs,Er.filter=ic,Er.flatMap=sc,Er.flatMapDeep=lc,Er.flatMapDepth=cc,Er.flatten=qs,Er.flattenDeep=Ws,Er.flattenDepth=Ys,Er.flip=$c,Er.flow=Th,Er.flowRight=Ch,Er.fromPairs=Qs,Er.functions=fd,Er.functionsIn=md,Er.groupBy=hc,Er.initial=el,Er.intersection=tl,Er.intersectionBy=nl,Er.intersectionWith=rl,Er.invert=bd,Er.invertBy=_d,Er.invokeMap=fc,Er.iteratee=Oh,Er.keyBy=mc,Er.keys=Ed,Er.keysIn=Sd,Er.map=gc,Er.mapKeys=xd,Er.mapValues=kd,Er.matches=Ih,Er.matchesProperty=Dh,Er.memoize=jc,Er.merge=Ad,Er.mergeWith=Nd,Er.method=Lh,Er.methodOf=Ph,Er.mixin=Mh,Er.negate=Uc,Er.nthArg=$h,Er.omit=Td,Er.omitBy=Cd,Er.once=Vc,Er.orderBy=vc,Er.over=jh,Er.overArgs=Kc,Er.overEvery=Uh,Er.overSome=Vh,Er.partial=Hc,Er.partialRight=Gc,Er.partition=yc,Er.pick=Rd,Er.pickBy=Od,Er.property=Kh,Er.propertyOf=Hh,Er.pull=ll,Er.pullAll=cl,Er.pullAllBy=ul,Er.pullAllWith=dl,Er.pullAt=hl,Er.range=Gh,Er.rangeRight=zh,Er.rearg=zc,Er.reject=wc,Er.remove=pl,Er.rest=Xc,Er.reverse=fl,Er.sampleSize=Sc,Er.set=Dd,Er.setWith=Ld,Er.shuffle=xc,Er.slice=ml,Er.sortBy=Nc,Er.sortedUniq=El,Er.sortedUniqBy=Sl,Er.split=lh,Er.spread=qc,Er.tail=xl,Er.take=kl,Er.takeRight=Al,Er.takeRightWhile=Nl,Er.takeWhile=Tl,Er.tap=zl,Er.throttle=Wc,Er.thru=Xl,Er.toArray=zu,Er.toPairs=Pd,Er.toPairsIn=Md,Er.toPath=Zh,Er.toPlainObject=Qu,Er.transform=Fd,Er.unary=Yc,Er.union=Cl,Er.unionBy=Rl,Er.unionWith=Ol,Er.uniq=Il,Er.uniqBy=Dl,Er.uniqWith=Ll,Er.unset=Bd,Er.unzip=Pl,Er.unzipWith=Ml,Er.update=$d,Er.updateWith=jd,Er.values=Ud,Er.valuesIn=Vd,Er.without=Fl,Er.words=wh,Er.wrap=Qc,Er.xor=Bl,Er.xorBy=$l,Er.xorWith=jl,Er.zip=Ul,Er.zipObject=Vl,Er.zipObjectDeep=Kl,Er.zipWith=Hl,Er.entries=Pd,Er.entriesIn=Md,Er.extend=td,Er.extendWith=nd,Mh(Er,Er),Er.add=tp,Er.attempt=Eh,Er.camelCase=zd,Er.capitalize=Xd,Er.ceil=np,Er.clamp=Kd,Er.clone=Zc,Er.cloneDeep=tu,Er.cloneDeepWith=nu,Er.cloneWith=eu,Er.conformsTo=ru,Er.deburr=qd,Er.defaultTo=Nh,Er.divide=rp,Er.endsWith=Wd,Er.eq=iu,Er.escape=Yd,Er.escapeRegExp=Qd,Er.every=rc,Er.find=oc,Er.findIndex=zs,Er.findKey=ld,Er.findLast=ac,Er.findLastIndex=Xs,Er.findLastKey=cd,Er.floor=ip,Er.forEach=uc,Er.forEachRight=dc,Er.forIn=ud,Er.forInRight=dd,Er.forOwn=hd,Er.forOwnRight=pd,Er.get=gd,Er.gt=ou,Er.gte=au,Er.has=vd,Er.hasIn=yd,Er.head=Js,Er.identity=Rh,Er.includes=pc,Er.indexOf=Zs,Er.inRange=Hd,Er.invoke=wd,Er.isArguments=su,Er.isArray=lu,Er.isArrayBuffer=cu,Er.isArrayLike=uu,Er.isArrayLikeObject=du,Er.isBoolean=hu,Er.isBuffer=pu,Er.isDate=fu,Er.isElement=mu,Er.isEmpty=gu,Er.isEqual=vu,Er.isEqualWith=yu,Er.isError=bu,Er.isFinite=_u,Er.isFunction=wu,Er.isInteger=Eu,Er.isLength=Su,Er.isMap=Au,Er.isMatch=Nu,Er.isMatchWith=Tu,Er.isNaN=Cu,Er.isNative=Ru,Er.isNil=Iu,Er.isNull=Ou,Er.isNumber=Du,Er.isObject=xu,Er.isObjectLike=ku,Er.isPlainObject=Lu,Er.isRegExp=Pu,Er.isSafeInteger=Mu,Er.isSet=Fu,Er.isString=Bu,Er.isSymbol=$u,Er.isTypedArray=ju,Er.isUndefined=Uu,Er.isWeakMap=Vu,Er.isWeakSet=Ku,Er.join=il,Er.kebabCase=Jd,Er.last=ol,Er.lastIndexOf=al,Er.lowerCase=Zd,Er.lowerFirst=eh,Er.lt=Hu,Er.lte=Gu,Er.max=op,Er.maxBy=ap,Er.mean=sp,Er.meanBy=lp,Er.min=cp,Er.minBy=up,Er.stubArray=Xh,Er.stubFalse=qh,Er.stubObject=Wh,Er.stubString=Yh,Er.stubTrue=Qh,Er.multiply=dp,Er.nth=sl,Er.noConflict=Fh,Er.noop=Bh,Er.now=Tc,Er.pad=th,Er.padEnd=nh,Er.padStart=rh,Er.parseInt=ih,Er.random=Gd,Er.reduce=bc,Er.reduceRight=_c,Er.repeat=oh,Er.replace=ah,Er.result=Id,Er.round=hp,Er.runInContext=e,Er.sample=Ec,Er.size=kc,Er.snakeCase=sh,Er.some=Ac,Er.sortedIndex=gl,Er.sortedIndexBy=vl,Er.sortedIndexOf=yl,Er.sortedLastIndex=bl,Er.sortedLastIndexBy=_l,Er.sortedLastIndexOf=wl,Er.startCase=ch,Er.startsWith=uh,Er.subtract=pp,Er.sum=fp,Er.sumBy=mp,Er.template=dh,Er.times=Jh,Er.toFinite=Xu,Er.toInteger=qu,Er.toLength=Wu,Er.toLower=hh,Er.toNumber=Yu,Er.toSafeInteger=Ju,Er.toString=Zu,Er.toUpper=ph,Er.trim=fh,Er.trimEnd=mh,Er.trimStart=gh,Er.truncate=vh,Er.unescape=yh,Er.uniqueId=ep,Er.upperCase=bh,Er.upperFirst=_h,Er.each=uc,Er.eachRight=dc,Er.first=Js,Mh(Er,function(){var e={};return Oi(Er,(function(t,n){dt.call(Er.prototype,n)||(e[n]=t)})),e}(),{chain:!1}),Er.VERSION=o,wn(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Er[e].placeholder=Er})),wn(["drop","take"],(function(e,t){Nr.prototype[e]=function(n){n=n===i?1:jt(qu(n),0);var r=this.__filtered__&&!t?new Nr(this):this.clone();return r.__filtered__?r.__takeCount__=Ut(n,r.__takeCount__):r.__views__.push({size:Ut(n,$),type:e+(r.__dir__<0?"Right":"")}),r},Nr.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),wn(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=n==I||n==L;Nr.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Ha(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),wn(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Nr.prototype[e]=function(){return this[n](1).value()[0]}})),wn(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Nr.prototype[e]=function(){return this.__filtered__?new Nr(this):this[n](1)}})),Nr.prototype.compact=function(){return this.filter(Rh)},Nr.prototype.find=function(e){return this.filter(e).head()},Nr.prototype.findLast=function(e){return this.reverse().find(e)},Nr.prototype.invokeMap=wo((function(e,t){return"function"==typeof e?new Nr(this):this.map((function(n){return Ki(n,e,t)}))})),Nr.prototype.reject=function(e){return this.filter(Uc(Ha(e)))},Nr.prototype.slice=function(e,t){e=qu(e);var n=this;return n.__filtered__&&(e>0||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)},80783:function(e,t,n){var r=n(45974),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},89687:function(e,t,n){var r=n(64855),i=n(74884),o=i((function(e,t,n){r(e,t,n)}));e.exports=o},23023:function(e,t,n){var r=n(64855),i=n(74884),o=i((function(e,t,n,i){r(e,t,n,i)}));e.exports=o},78225:function(e){var t="Expected a function";function n(e){if("function"!=typeof e)throw new TypeError(t);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)}}e.exports=n},10771:function(e){function t(){}e.exports=t},73451:function(e,t,n){var r=n(61346),i=function(){return r.Date.now()};e.exports=i},93271:function(e,t,n){var r=n(32754),i=n(78225),o=n(87579);function a(e,t){return o(e,i(r(t)))}e.exports=a},87579:function(e,t,n){var r=n(95019),i=n(32754),o=n(31867),a=n(24534);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},92694:function(e,t,n){var r=n(63446),i=n(36036),o=n(72159),a=n(54868);function s(e){return o(e)?r(a(e)):i(e)}e.exports=s},63646:function(e){function t(){return[]}e.exports=t},37376:function(e){function t(){return!1}e.exports=t},32239:function(e,t,n){var r=n(52156),i=n(90016),o="Expected a function";function a(e,t,n){var a=!0,s=!0;if("function"!=typeof e)throw new TypeError(o);return i(n)&&(a="leading"in n?!!n.leading:a,s="trailing"in n?!!n.trailing:s),r(e,t,{leading:a,maxWait:t,trailing:s})}e.exports=a},54257:function(e,t,n){var r=n(25535),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},44118:function(e,t,n){var r=n(54257);function i(e){var t=r(e),n=t%1;return t===t?n?t-n:t:0}e.exports=i},25535:function(e,t,n){var r=n(88023),i=n(90016),o=n(95143),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},77691:function(e,t,n){var r=n(97476),i=n(87396);function o(e){return r(e,i(e))}e.exports=o},26735:function(e,t,n){var r=n(97487);function i(e){return null==e?"":r(e)}e.exports=i},86055:function(e,t,n){var r=n(77292),i=n(52095),o=n(30814),a=n(32754),s=n(86460),l=n(43306),c=n(83945),u=n(17283),d=n(90016),h=n(37726);function p(e,t,n){var p=l(e),f=p||c(e)||h(e);if(t=a(t,4),null==n){var m=e&&e.constructor;n=f?p?new m:[]:d(e)&&u(m)?i(s(e)):{}}return(f?r:o)(e,(function(e,r,i){return t(n,e,r,i)})),n}e.exports=p},17410:function(e,t,n){var r=n(3746);function i(e){return e&&e.length?r(e):[]}e.exports=i},81977:function(e,t,n){var r=n(7034),i=r("toUpperCase");e.exports=i},79898:function(e,t,n){var r=n(24779),i=n(76109),o=n(64442),a=n(2282),s=i((function(e){return o(r(e,a))}));e.exports=s},98580:function(e,t,n){"use strict";const r=n(93282),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},93322:function(e,t,n){"use strict";var r=n(9776);
|
||
/*!
|
||
* The buffer module from node.js, for the browser.
|
||
*
|
||
* @author Feross Aboukhadijeh <https://feross.org>
|
||
* @license MIT
|
||
*/
|
||
const i=n(25859),o=n(19170),a="function"===typeof Symbol&&"function"===typeof Symbol["for"]?Symbol["for"]("nodejs.util.inspect.custom"):null;t.hp=u,t.IS=50;const s=2147483647;function l(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}function c(e){if(e>s)throw new RangeError('The value "'+e+'" is invalid for option "size"');const 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(se(e,ArrayBuffer)||e&&se(e.buffer,ArrayBuffer))return y(e,t,n);if("undefined"!==typeof SharedArrayBuffer&&(se(e,SharedArrayBuffer)||e&&se(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');const r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return u.from(r,t,n);const 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);const n=0|E(e,t);let r=c(n);const i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}function g(e){const t=e.length<0?0:0|_(e.length),n=c(t);for(let r=0;r<t;r+=1)n[r]=255&e[r];return n}function v(e){if(se(e,Uint8Array)){const t=new Uint8Array(e);return y(t.buffer,t.byteOffset,t.byteLength)}return g(e)}function y(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');let r;return r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,u.prototype),r}function b(e){if(u.isBuffer(e)){const t=0|_(e.length),n=c(t);return 0===n.length||e.copy(n,0,0,t),n}return void 0!==e.length?"number"!==typeof e.length||le(e.length)?c(0):g(e):"Buffer"===e.type&&Array.isArray(e.data)?g(e.data):void 0}function _(e){if(e>=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&&0,u.alloc(+e)}function E(e,t){if(u.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||se(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);const n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return ne(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return oe(e).length;default:if(i)return r?-1:ne(e).length;t=(""+t).toLowerCase(),i=!0}}function S(e,t,n){let 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){const 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,le(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){let 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){let r=-1;for(o=n;o<s;o++)if(c(e,o)===c(t,-1===r?0:o-r)){if(-1===r&&(r=o),o-r+1===l)return r*a}else-1!==r&&(o-=o-r),r=-1}else for(n+l>s&&(n=s-l),o=n;o>=0;o--){let n=!0;for(let r=0;r<l;r++)if(c(e,o+r)!==c(t,r)){n=!1;break}if(n)return o}return-1}function N(e,t,n,r){n=Number(n)||0;const i=e.length-n;r?(r=Number(r),r>i&&(r=i)):r=i;const o=t.length;let a;for(r>o/2&&(r=o/2),a=0;a<r;++a){const r=parseInt(t.substr(2*a,2),16);if(le(r))return a;e[n+a]=r}return a}function T(e,t,n,r){return ae(ne(t,e.length-n),e,n,r)}function C(e,t,n,r){return ae(re(t),e,n,r)}function R(e,t,n,r){return ae(oe(t),e,n,r)}function O(e,t,n,r){return ae(ie(t,e.length-n),e,n,r)}function I(e,t,n){return 0===t&&n===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,n))}function D(e,t,n){n=Math.min(e.length,n);const r=[];let i=t;while(i<n){const t=e[i];let o=null,a=t>239?4:t>223?3:t>191?2:1;if(i+a<=n){let n,r,s,l;switch(a){case 1:t<128&&(o=t);break;case 2:n=e[i+1],128===(192&n)&&(l=(31&t)<<6|63&n,l>127&&(o=l));break;case 3:n=e[i+1],r=e[i+2],128===(192&n)&&128===(192&r)&&(l=(15&t)<<12|(63&n)<<6|63&r,l>2047&&(l<55296||l>57343)&&(o=l));break;case 4:n=e[i+1],r=e[i+2],s=e[i+3],128===(192&n)&&128===(192&r)&&128===(192&s)&&(l=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&s,l>65535&&l<1114112&&(o=l))}}null===o?(o=65533,a=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o),i+=a}return P(r)}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(se(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),se(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;let n=e.length,r=t.length;for(let i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},u.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);let n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;const r=u.allocUnsafe(t);let i=0;for(n=0;n<e.length;++n){let t=e[n];if(se(t,Uint8Array))i+t.length>r.length?(u.isBuffer(t)||(t=u.from(t)),t.copy(r,i)):Uint8Array.prototype.set.call(r,t,i);else{if(!u.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(r,i)}i+=t.length}return r},u.byteLength=E,u.prototype._isBuffer=!0,u.prototype.swap16=function(){const e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)x(this,t,t+1);return this},u.prototype.swap32=function(){const e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)x(this,t,t+3),x(this,t+1,t+2);return this},u.prototype.swap64=function(){const e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)x(this,t,t+7),x(this,t+1,t+6),x(this,t+2,t+5),x(this,t+3,t+4);return this},u.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?D(this,0,e):S.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){let e="";const n=t.IS;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},a&&(u.prototype[a]=u.prototype.inspect),u.prototype.compare=function(e,t,n,r,i){if(se(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;let o=i-r,a=n-t;const s=Math.min(o,a),l=this.slice(r,i),c=e.slice(t,n);for(let u=0;u<s;++u)if(l[u]!==c[u]){o=l[u],a=c[u];break}return o<a?-1:a<o?1:0},u.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},u.prototype.indexOf=function(e,t,n){return k(this,e,t,n,!0)},u.prototype.lastIndexOf=function(e,t,n){return k(this,e,t,n,!1)},u.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"===typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const 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");let o=!1;for(;;)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)}};const L=4096;function P(e){const t=e.length;if(t<=L)return String.fromCharCode.apply(String,e);let n="",r=0;while(r<t)n+=String.fromCharCode.apply(String,e.slice(r,r+=L));return n}function M(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function F(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function B(e,t,n){const r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);let i="";for(let o=t;o<n;++o)i+=ce[e[o]];return i}function $(e,t,n){const r=e.slice(t,n);let i="";for(let o=0;o<r.length-1;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function j(e,t,n){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>n)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||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function V(e,t,n,r,i){Q(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,n}function K(e,t,n,r,i){Q(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n+7]=o,o>>=8,e[n+6]=o,o>>=8,e[n+5]=o,o>>=8,e[n+4]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=a,a>>=8,e[n+2]=a,a>>=8,e[n+1]=a,a>>=8,e[n]=a,n+8}function H(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 G(e,t,n,r,i){return t=+t,n>>>=0,i||H(e,t,n,4,34028234663852886e22,-34028234663852886e22),o.write(e,t,n,r,23,4),n+4}function z(e,t,n,r,i){return t=+t,n>>>=0,i||H(e,t,n,8,17976931348623157e292,-17976931348623157e292),o.write(e,t,n,r,52,8),n+8}u.prototype.slice=function(e,t){const 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<e&&(t=e);const r=this.subarray(e,t);return Object.setPrototypeOf(r,u.prototype),r},u.prototype.readUintLE=u.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||j(e,t,this.length);let r=this[e],i=1,o=0;while(++o<t&&(i*=256))r+=this[e+o]*i;return r},u.prototype.readUintBE=u.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||j(e,t,this.length);let 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.readBigUInt64LE=ue((function(e){e>>>=0,J(e,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||Z(e,this.length-8);const r=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,i=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(r)+(BigInt(i)<<BigInt(32))})),u.prototype.readBigUInt64BE=ue((function(e){e>>>=0,J(e,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||Z(e,this.length-8);const r=t*2**24+65536*this[++e]+256*this[++e]+this[++e],i=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<<BigInt(32))+BigInt(i)})),u.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||j(e,t,this.length);let r=this[e],i=1,o=0;while(++o<t&&(i*=256))r+=this[e+o]*i;return i*=128,r>=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);let 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);const 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);const 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.readBigInt64LE=ue((function(e){e>>>=0,J(e,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||Z(e,this.length-8);const r=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)})),u.prototype.readBigInt64BE=ue((function(e){e>>>=0,J(e,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||Z(e,this.length-8);const r=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(r)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+n)})),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){const r=Math.pow(2,8*n)-1;U(this,e,t,n,r,0)}let i=1,o=0;this[t]=255&e;while(++o<n&&(i*=256))this[t+o]=e/i&255;return t+n},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){const r=Math.pow(2,8*n)-1;U(this,e,t,n,r,0)}let i=n-1,o=1;this[t+i]=255&e;while(--i>=0&&(o*=256))this[t+i]=e/o&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.writeBigUInt64LE=ue((function(e,t=0){return V(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),u.prototype.writeBigUInt64BE=ue((function(e,t=0){return K(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);U(this,e,t,n,r-1,-r)}let i=0,o=1,a=0;this[t]=255&e;while(++i<n&&(o*=256))e<0&&0===a&&0!==this[t+i-1]&&(a=1),this[t+i]=(e/o|0)-a&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);U(this,e,t,n,r-1,-r)}let i=n-1,o=1,a=0;this[t+i]=255&e;while(--i>=0&&(o*=256))e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/o|0)-a&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.writeBigInt64LE=ue((function(e,t=0){return V(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),u.prototype.writeBigInt64BE=ue((function(e,t=0){return K(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),u.prototype.writeFloatLE=function(e,t,n){return G(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return G(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return z(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return z(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<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=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<r-n&&(r=e.length-t+n);const i=r-n;return this===e&&"function"===typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),i},u.prototype.fill=function(e,t,n,r){if("string"===typeof e){if("string"===typeof t?(r=t,t=0,n=this.length):"string"===typeof n&&(r=n,n=this.length),void 0!==r&&"string"!==typeof r)throw new TypeError("encoding must be a string");if("string"===typeof r&&!u.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){const t=e.charCodeAt(0);("utf8"===r&&t<128||"latin1"===r)&&(e=t)}}else"number"===typeof e?e&=255:"boolean"===typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;let i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(i=t;i<n;++i)this[i]=e;else{const o=u.isBuffer(e)?e:u.from(e,r),a=o.length;if(0===a)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<n-t;++i)this[i+t]=o[i%a]}return this};const X={};function q(e,t,n){X[e]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function W(e){let t="",n=e.length;const r="-"===e[0]?1:0;for(;n>=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function Y(e,t,n){J(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||Z(t,e.length-(n+1))}function Q(e,t,n,r,i,o){if(e>n||e<t){const r="bigint"===typeof t?"n":"";let i;throw i=o>3?0===t||t===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(o+1)}${r}`:`>= -(2${r} ** ${8*(o+1)-1}${r}) and < 2 ** ${8*(o+1)-1}${r}`:`>= ${t}${r} and <= ${n}${r}`,new X.ERR_OUT_OF_RANGE("value",i,e)}Y(r,i,o)}function J(e,t){if("number"!==typeof e)throw new X.ERR_INVALID_ARG_TYPE(t,"number",e)}function Z(e,t,n){if(Math.floor(e)!==e)throw J(e,n),new X.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new X.ERR_BUFFER_OUT_OF_BOUNDS;throw new X.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${t}`,e)}q("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),q("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),q("ERR_OUT_OF_RANGE",(function(e,t,n){let r=`The value of "${e}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=W(String(n)):"bigint"===typeof n&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=W(i)),i+="n"),r+=` It must be ${t}. Received ${i}`,r}),RangeError);const ee=/[^+/0-9A-Za-z-_]/g;function te(e){if(e=e.split("=")[0],e=e.trim().replace(ee,""),e.length<2)return"";while(e.length%4!==0)e+="=";return e}function ne(e,t){let n;t=t||1/0;const r=e.length;let i=null;const o=[];for(let a=0;a<r;++a){if(n=e.charCodeAt(a),n>55295&&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 re(e){const t=[];for(let n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}function ie(e,t){let n,r,i;const o=[];for(let a=0;a<e.length;++a){if((t-=2)<0)break;n=e.charCodeAt(a),r=n>>8,i=n%256,o.push(i),o.push(r)}return o}function oe(e){return i.toByteArray(te(e))}function ae(e,t,n,r){let i;for(i=0;i<r;++i){if(i+n>=t.length||i>=e.length)break;t[i+n]=e[i]}return i}function se(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function le(e){return e!==e}const ce=function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let i=0;i<16;++i)t[r+i]=e[n]+e[i]}return t}();function ue(e){return"undefined"===typeof BigInt?de:e}function de(){throw new Error("BigInt not supported")}},37952:function(e,t,n){var r="function"===typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=r&&i&&"function"===typeof i.get?i.get:null,a=r&&Map.prototype.forEach,s="function"===typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=s&&l&&"function"===typeof l.get?l.get:null,u=s&&Set.prototype.forEach,d="function"===typeof WeakMap&&WeakMap.prototype,h=d?WeakMap.prototype.has:null,p="function"===typeof WeakSet&&WeakSet.prototype,f=p?WeakSet.prototype.has:null,m="function"===typeof WeakRef&&WeakRef.prototype,g=m?WeakRef.prototype.deref:null,v=Boolean.prototype.valueOf,y=Object.prototype.toString,b=Function.prototype.toString,_=String.prototype.match,w=String.prototype.slice,E=String.prototype.replace,S=String.prototype.toUpperCase,x=String.prototype.toLowerCase,k=RegExp.prototype.test,A=Array.prototype.concat,N=Array.prototype.join,T=Array.prototype.slice,C=Math.floor,R="function"===typeof BigInt?BigInt.prototype.valueOf:null,O=Object.getOwnPropertySymbols,I="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?Symbol.prototype.toString:null,D="function"===typeof Symbol&&"object"===typeof Symbol.iterator,L="function"===typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===D||"symbol")?Symbol.toStringTag:null,P=Object.prototype.propertyIsEnumerable,M=("function"===typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function F(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||k.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"===typeof e){var r=e<0?-C(-e):C(e);if(r!==e){var i=String(r),o=w.call(t,i.length+1);return E.call(i,n,"$&_")+"."+E.call(E.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return E.call(t,n,"$&_")}var B=n(38453),$=B.custom,j=Y($)?$:null;function U(e,t,n){var r="double"===(n.quoteStyle||t)?'"':"'";return r+e+r}function V(e){return E.call(String(e),/"/g,""")}function K(e){return"[object Array]"===ee(e)&&(!L||!("object"===typeof e&&L in e))}function H(e){return"[object Date]"===ee(e)&&(!L||!("object"===typeof e&&L in e))}function G(e){return"[object RegExp]"===ee(e)&&(!L||!("object"===typeof e&&L in e))}function z(e){return"[object Error]"===ee(e)&&(!L||!("object"===typeof e&&L in e))}function X(e){return"[object String]"===ee(e)&&(!L||!("object"===typeof e&&L in e))}function q(e){return"[object Number]"===ee(e)&&(!L||!("object"===typeof e&&L in e))}function W(e){return"[object Boolean]"===ee(e)&&(!L||!("object"===typeof e&&L in e))}function Y(e){if(D)return e&&"object"===typeof e&&e instanceof Symbol;if("symbol"===typeof e)return!0;if(!e||"object"!==typeof e||!I)return!1;try{return I.call(e),!0}catch(t){}return!1}function Q(e){if(!e||"object"!==typeof e||!R)return!1;try{return R.call(e),!0}catch(t){}return!1}e.exports=function e(t,r,i,s){var l=r||{};if(Z(l,"quoteStyle")&&"single"!==l.quoteStyle&&"double"!==l.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Z(l,"maxStringLength")&&("number"===typeof l.maxStringLength?l.maxStringLength<0&&l.maxStringLength!==1/0:null!==l.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var d=!Z(l,"customInspect")||l.customInspect;if("boolean"!==typeof d&&"symbol"!==d)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Z(l,"indent")&&null!==l.indent&&"\t"!==l.indent&&!(parseInt(l.indent,10)===l.indent&&l.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Z(l,"numericSeparator")&&"boolean"!==typeof l.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var h=l.numericSeparator;if("undefined"===typeof t)return"undefined";if(null===t)return"null";if("boolean"===typeof t)return t?"true":"false";if("string"===typeof t)return ce(t,l);if("number"===typeof t){if(0===t)return 1/0/t>0?"0":"-0";var p=String(t);return h?F(t,p):p}if("bigint"===typeof t){var f=String(t)+"n";return h?F(t,f):f}var m="undefined"===typeof l.depth?5:l.depth;if("undefined"===typeof i&&(i=0),i>=m&&m>0&&"object"===typeof t)return K(t)?"[Array]":"[Object]";var g=me(l,i);if("undefined"===typeof s)s=[];else if(ne(s,t)>=0)return"[Circular]";function y(t,n,r){if(n&&(s=T.call(s),s.push(n)),r){var o={depth:l.depth};return Z(l,"quoteStyle")&&(o.quoteStyle=l.quoteStyle),e(t,o,i+1,s)}return e(t,l,i+1,s)}if("function"===typeof t&&!G(t)){var b=te(t),_=ve(t,y);return"[Function"+(b?": "+b:" (anonymous)")+"]"+(_.length>0?" { "+N.call(_,", ")+" }":"")}if(Y(t)){var S=D?E.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):I.call(t);return"object"!==typeof t||D?S:de(S)}if(le(t)){for(var k="<"+x.call(String(t.nodeName)),C=t.attributes||[],O=0;O<C.length;O++)k+=" "+C[O].name+"="+U(V(C[O].value),"double",l);return k+=">",t.childNodes&&t.childNodes.length&&(k+="..."),k+="</"+x.call(String(t.nodeName))+">",k}if(K(t)){if(0===t.length)return"[]";var $=ve(t,y);return g&&!fe($)?"["+ge($,g)+"]":"[ "+N.call($,", ")+" ]"}if(z(t)){var J=ve(t,y);return"cause"in Error.prototype||!("cause"in t)||P.call(t,"cause")?0===J.length?"["+String(t)+"]":"{ ["+String(t)+"] "+N.call(J,", ")+" }":"{ ["+String(t)+"] "+N.call(A.call("[cause]: "+y(t.cause),J),", ")+" }"}if("object"===typeof t&&d){if(j&&"function"===typeof t[j]&&B)return B(t,{depth:m-i});if("symbol"!==d&&"function"===typeof t.inspect)return t.inspect()}if(re(t)){var ue=[];return a&&a.call(t,(function(e,n){ue.push(y(n,t,!0)+" => "+y(e,t))})),pe("Map",o.call(t),ue,g)}if(ae(t)){var ye=[];return u&&u.call(t,(function(e){ye.push(y(e,t))})),pe("Set",c.call(t),ye,g)}if(ie(t))return he("WeakMap");if(se(t))return he("WeakSet");if(oe(t))return he("WeakRef");if(q(t))return de(y(Number(t)));if(Q(t))return de(y(R.call(t)));if(W(t))return de(v.call(t));if(X(t))return de(y(String(t)));if("undefined"!==typeof window&&t===window)return"{ [object Window] }";if("undefined"!==typeof globalThis&&t===globalThis||"undefined"!==typeof n.g&&t===n.g)return"{ [object globalThis] }";if(!H(t)&&!G(t)){var be=ve(t,y),_e=M?M(t)===Object.prototype:t instanceof Object||t.constructor===Object,we=t instanceof Object?"":"null prototype",Ee=!_e&&L&&Object(t)===t&&L in t?w.call(ee(t),8,-1):we?"Object":"",Se=_e||"function"!==typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"",xe=Se+(Ee||we?"["+N.call(A.call([],Ee||[],we||[]),": ")+"] ":"");return 0===be.length?xe+"{}":g?xe+"{"+ge(be,g)+"}":xe+"{ "+N.call(be,", ")+" }"}return String(t)};var J=Object.prototype.hasOwnProperty||function(e){return e in this};function Z(e,t){return J.call(e,t)}function ee(e){return y.call(e)}function te(e){if(e.name)return e.name;var t=_.call(b.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function ne(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function re(e){if(!o||!e||"object"!==typeof e)return!1;try{o.call(e);try{c.call(e)}catch(t){return!0}return e instanceof Map}catch(n){}return!1}function ie(e){if(!h||!e||"object"!==typeof e)return!1;try{h.call(e,h);try{f.call(e,f)}catch(t){return!0}return e instanceof WeakMap}catch(n){}return!1}function oe(e){if(!g||!e||"object"!==typeof e)return!1;try{return g.call(e),!0}catch(t){}return!1}function ae(e){if(!c||!e||"object"!==typeof e)return!1;try{c.call(e);try{o.call(e)}catch(t){return!0}return e instanceof Set}catch(n){}return!1}function se(e){if(!f||!e||"object"!==typeof e)return!1;try{f.call(e,f);try{h.call(e,h)}catch(t){return!0}return e instanceof WeakSet}catch(n){}return!1}function le(e){return!(!e||"object"!==typeof e)&&("undefined"!==typeof HTMLElement&&e instanceof HTMLElement||"string"===typeof e.nodeName&&"function"===typeof e.getAttribute)}function ce(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return ce(w.call(e,0,t.maxStringLength),t)+r}var i=E.call(E.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,ue);return U(i,"single",t)}function ue(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+S.call(t.toString(16))}function de(e){return"Object("+e+")"}function he(e){return e+" { ? }"}function pe(e,t,n,r){var i=r?ge(n,r):N.call(n,", ");return e+" ("+t+") {"+i+"}"}function fe(e){for(var t=0;t<e.length;t++)if(ne(e[t],"\n")>=0)return!1;return!0}function me(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"===typeof e.indent&&e.indent>0))return null;n=N.call(Array(e.indent+1)," ")}return{base:n,prev:N.call(Array(t+1),n)}}function ge(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+N.call(e,","+n)+"\n"+t.prev}function ve(e,t){var n=K(e),r=[];if(n){r.length=e.length;for(var i=0;i<e.length;i++)r[i]=Z(e,i)?t(e[i],e):""}var o,a="function"===typeof O?O(e):[];if(D){o={};for(var s=0;s<a.length;s++)o["$"+a[s]]=a[s]}for(var l in e)Z(e,l)&&(n&&String(Number(l))===l&&l<e.length||D&&o["$"+l]instanceof Symbol||(k.call(/[^\w$]/,l)?r.push(t(l,e)+": "+t(e[l],e)):r.push(l+": "+t(e[l],e))));if("function"===typeof O)for(var c=0;c<a.length;c++)P.call(e,a[c])&&r.push("["+t(a[c])+"]: "+t(e[a[c]],e));return r}},10864:function(e){"use strict";var t=function(e){return e!==e};e.exports=function(e,n){return 0===e&&0===n?1/e===1/n:e===n||!(!t(e)||!t(n))}},93388:function(e,t,n){"use strict";var r=n(87997),i=n(92726),o=n(10864),a=n(92917),s=n(57635),l=i(a(),Object);r(l,{getPolyfill:a,implementation:o,shim:s}),e.exports=l},92917:function(e,t,n){"use strict";var r=n(10864);e.exports=function(){return"function"===typeof Object.is?Object.is:r}},57635:function(e,t,n){"use strict";var r=n(92917),i=n(87997);e.exports=function(){var e=r();return i(Object,{is:e},{is:function(){return Object.is!==e}}),e}},75860:function(e,t,n){"use strict";var r;if(!Object.keys){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,a=n(12116),s=Object.prototype.propertyIsEnumerable,l=!s.call({toString:null},"toString"),c=s.call((function(){}),"prototype"),u=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],d=function(e){var t=e.constructor;return t&&t.prototype===e},h={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},p=function(){if("undefined"===typeof window)return!1;for(var e in window)try{if(!h["$"+e]&&i.call(window,e)&&null!==window[e]&&"object"===typeof window[e])try{d(window[e])}catch(t){return!0}}catch(t){return!0}return!1}(),f=function(e){if("undefined"===typeof window||!p)return d(e);try{return d(e)}catch(t){return!1}};r=function(e){var t=null!==e&&"object"===typeof e,n="[object Function]"===o.call(e),r=a(e),s=t&&"[object String]"===o.call(e),d=[];if(!t&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var h=c&&n;if(s&&e.length>0&&!i.call(e,0))for(var p=0;p<e.length;++p)d.push(String(p));if(r&&e.length>0)for(var m=0;m<e.length;++m)d.push(String(m));else for(var g in e)h&&"prototype"===g||!i.call(e,g)||d.push(String(g));if(l)for(var v=f(e),y=0;y<u.length;++y)v&&"constructor"===u[y]||!i.call(e,u[y])||d.push(u[y]);return d}}e.exports=r},49552:function(e,t,n){"use strict";var r=Array.prototype.slice,i=n(12116),o=Object.keys,a=o?function(e){return o(e)}:n(75860),s=Object.keys;a.shim=function(){if(Object.keys){var e=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);e||(Object.keys=function(e){return i(e)?s(r.call(e)):s(e)})}else Object.keys=a;return Object.keys||a},e.exports=a},12116:function(e){"use strict";var t=Object.prototype.toString;e.exports=function(e){var n=t.call(e),r="[object Arguments]"===n;return r||(r="[object Array]"!==n&&null!==e&&"object"===typeof e&&"number"===typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),r}},25592:function(e,t,n){"use strict";var r=n(49552),i=n(46936)(),o=n(56566),a=Object,s=o("Array.prototype.push"),l=o("Object.prototype.propertyIsEnumerable"),c=i?Object.getOwnPropertySymbols:null;e.exports=function(e,t){if(null==e)throw new TypeError("target must be an object");var n=a(e);if(1===arguments.length)return n;for(var o=1;o<arguments.length;++o){var u=a(arguments[o]),d=r(u),h=i&&(Object.getOwnPropertySymbols||c);if(h)for(var p=h(u),f=0;f<p.length;++f){var m=p[f];l(u,m)&&s(d,m)}for(var g=0;g<d.length;++g){var v=d[g];if(l(u,v)){var y=u[v];n[v]=y}}}return n}},83741:function(e,t,n){"use strict";var r=n(25592),i=function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),n={},r=0;r<t.length;++r)n[t[r]]=t[r];var i=Object.assign({},n),o="";for(var a in i)o+=a;return e!==o},o=function(){if(!Object.assign||!Object.preventExtensions)return!1;var e=Object.preventExtensions({1:2});try{Object.assign(e,"xy")}catch(t){return"y"===e[1]}return!1};e.exports=function(){return Object.assign?i()||o()?r:Object.assign:r}},74481:function(e){"use strict";e.exports=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]},49663:function(e){var t,n,r=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}function s(e){if(n===clearTimeout)return clearTimeout(e);if((n===o||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(function(){try{t="function"===typeof setTimeout?setTimeout:i}catch(e){t=i}try{n="function"===typeof clearTimeout?clearTimeout:o}catch(e){n=o}})();var l,c=[],u=!1,d=-1;function h(){u&&l&&(u=!1,l.length?c=l.concat(c):d=-1,c.length&&p())}function p(){if(!u){var e=a(h);u=!0;var t=c.length;while(t){l=c,c=[];while(++d<t)l&&l[d].run();d=-1,t=c.length}l=null,u=!1,s(e)}}function f(e,t){this.fun=e,this.array=t}function m(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new f(e,t)),1!==c.length||u||a(p)},f.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=m,r.addListener=m,r.once=m,r.off=m,r.removeListener=m,r.removeAllListeners=m,r.emit=m,r.prependListener=m,r.prependOnceListener=m,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},96962:function(e){"use strict";var t=String.prototype.replace,n=/%20/g,r={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports={default:r.RFC3986,formatters:{RFC1738:function(e){return t.call(e,n,"+")},RFC3986:function(e){return String(e)}},RFC1738:r.RFC1738,RFC3986:r.RFC3986}},12150:function(e,t,n){"use strict";var r=n(18123),i=n(14741),o=n(96962);e.exports={formats:o,parse:i,stringify:r}},14741:function(e,t,n){"use strict";var r=n(29431),i=Object.prototype.hasOwnProperty,o=Array.isArray,a={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},l=function(e,t){return e&&"string"===typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},c="utf8=%26%2310003%3B",u="utf8=%E2%9C%93",d=function(e,t){var n,d={},h=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,p=t.parameterLimit===1/0?void 0:t.parameterLimit,f=h.split(t.delimiter,p),m=-1,g=t.charset;if(t.charsetSentinel)for(n=0;n<f.length;++n)0===f[n].indexOf("utf8=")&&(f[n]===u?g="utf-8":f[n]===c&&(g="iso-8859-1"),m=n,n=f.length);for(n=0;n<f.length;++n)if(n!==m){var v,y,b=f[n],_=b.indexOf("]="),w=-1===_?b.indexOf("="):_+1;-1===w?(v=t.decoder(b,a.decoder,g,"key"),y=t.strictNullHandling?null:""):(v=t.decoder(b.slice(0,w),a.decoder,g,"key"),y=r.maybeMap(l(b.slice(w+1),t),(function(e){return t.decoder(e,a.decoder,g,"value")}))),y&&t.interpretNumericEntities&&"iso-8859-1"===g&&(y=s(y)),b.indexOf("[]=")>-1&&(y=o(y)?[y]:y),i.call(d,v)?d[v]=r.combine(d[v],y):d[v]=y}return d},h=function(e,t,n,r){for(var i=r?t:l(t,n),o=e.length-1;o>=0;--o){var a,s=e[o];if("[]"===s&&n.parseArrays)a=[].concat(i);else{a=n.plainObjects?Object.create(null):{};var c="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,u=parseInt(c,10);n.parseArrays||""!==c?!isNaN(u)&&s!==c&&String(u)===c&&u>=0&&n.parseArrays&&u<=n.arrayLimit?(a=[],a[u]=i):"__proto__"!==c&&(a[c]=i):a={0:i}}i=a}return i},p=function(e,t,n,r){if(e){var o=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/,s=/(\[[^[\]]*])/g,l=n.depth>0&&a.exec(o),c=l?o.slice(0,l.index):o,u=[];if(c){if(!n.plainObjects&&i.call(Object.prototype,c)&&!n.allowPrototypes)return;u.push(c)}var d=0;while(n.depth>0&&null!==(l=s.exec(o))&&d<n.depth){if(d+=1,!n.plainObjects&&i.call(Object.prototype,l[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(l[1])}return l&&u.push("["+o.slice(l.index)+"]"),h(u,t,n,r)}},f=function(e){if(!e)return a;if(null!==e.decoder&&void 0!==e.decoder&&"function"!==typeof e.decoder)throw new TypeError("Decoder has to be a function.");if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t="undefined"===typeof e.charset?a.charset:e.charset;return{allowDots:"undefined"===typeof e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"===typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"===typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"===typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"===typeof e.comma?e.comma:a.comma,decoder:"function"===typeof e.decoder?e.decoder:a.decoder,delimiter:"string"===typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"===typeof e.depth||!1===e.depth?+e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"===typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"===typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"===typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}};e.exports=function(e,t){var n=f(t);if(""===e||null===e||"undefined"===typeof e)return n.plainObjects?Object.create(null):{};for(var i="string"===typeof e?d(e,n):e,o=n.plainObjects?Object.create(null):{},a=Object.keys(i),s=0;s<a.length;++s){var l=a[s],c=p(l,i[l],n,"string"===typeof e);o=r.merge(o,c,n)}return!0===n.allowSparse?o:r.compact(o)}},18123:function(e,t,n){"use strict";var r=n(79891),i=n(29431),o=n(96962),a=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},l=Array.isArray,c=Array.prototype.push,u=function(e,t){c.apply(e,l(t)?t:[t])},d=Date.prototype.toISOString,h=o["default"],p={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:i.encode,encodeValuesOnly:!1,format:h,formatter:o.formatters[h],indices:!1,serializeDate:function(e){return d.call(e)},skipNulls:!1,strictNullHandling:!1},f=function(e){return"string"===typeof e||"number"===typeof e||"boolean"===typeof e||"symbol"===typeof e||"bigint"===typeof e},m={},g=function e(t,n,o,a,s,c,d,h,g,v,y,b,_,w,E,S){var x=t,k=S,A=0,N=!1;while(void 0!==(k=k.get(m))&&!N){var T=k.get(t);if(A+=1,"undefined"!==typeof T){if(T===A)throw new RangeError("Cyclic object value");N=!0}"undefined"===typeof k.get(m)&&(A=0)}if("function"===typeof h?x=h(n,x):x instanceof Date?x=y(x):"comma"===o&&l(x)&&(x=i.maybeMap(x,(function(e){return e instanceof Date?y(e):e}))),null===x){if(s)return d&&!w?d(n,p.encoder,E,"key",b):n;x=""}if(f(x)||i.isBuffer(x)){if(d){var C=w?n:d(n,p.encoder,E,"key",b);return[_(C)+"="+_(d(x,p.encoder,E,"value",b))]}return[_(n)+"="+_(String(x))]}var R,O=[];if("undefined"===typeof x)return O;if("comma"===o&&l(x))w&&d&&(x=i.maybeMap(x,d)),R=[{value:x.length>0?x.join(",")||null:void 0}];else if(l(h))R=h;else{var I=Object.keys(x);R=g?I.sort(g):I}for(var D=a&&l(x)&&1===x.length?n+"[]":n,L=0;L<R.length;++L){var P=R[L],M="object"===typeof P&&"undefined"!==typeof P.value?P.value:x[P];if(!c||null!==M){var F=l(x)?"function"===typeof o?o(D,P):D:D+(v?"."+P:"["+P+"]");S.set(t,A);var B=r();B.set(m,S),u(O,e(M,F,o,a,s,c,"comma"===o&&w&&l(x)?null:d,h,g,v,y,b,_,w,E,B))}}return O},v=function(e){if(!e)return p;if(null!==e.encoder&&"undefined"!==typeof e.encoder&&"function"!==typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||p.charset;if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=o["default"];if("undefined"!==typeof e.format){if(!a.call(o.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r=o.formatters[n],i=p.filter;return("function"===typeof e.filter||l(e.filter))&&(i=e.filter),{addQueryPrefix:"boolean"===typeof e.addQueryPrefix?e.addQueryPrefix:p.addQueryPrefix,allowDots:"undefined"===typeof e.allowDots?p.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:p.charsetSentinel,delimiter:"undefined"===typeof e.delimiter?p.delimiter:e.delimiter,encode:"boolean"===typeof e.encode?e.encode:p.encode,encoder:"function"===typeof e.encoder?e.encoder:p.encoder,encodeValuesOnly:"boolean"===typeof e.encodeValuesOnly?e.encodeValuesOnly:p.encodeValuesOnly,filter:i,format:n,formatter:r,serializeDate:"function"===typeof e.serializeDate?e.serializeDate:p.serializeDate,skipNulls:"boolean"===typeof e.skipNulls?e.skipNulls:p.skipNulls,sort:"function"===typeof e.sort?e.sort:null,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:p.strictNullHandling}};e.exports=function(e,t){var n,i,o=e,a=v(t);"function"===typeof a.filter?(i=a.filter,o=i("",o)):l(a.filter)&&(i=a.filter,n=i);var c,d=[];if("object"!==typeof o||null===o)return"";c=t&&t.arrayFormat in s?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var h=s[c];if(t&&"commaRoundTrip"in t&&"boolean"!==typeof t.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var p="comma"===h&&t&&t.commaRoundTrip;n||(n=Object.keys(o)),a.sort&&n.sort(a.sort);for(var f=r(),m=0;m<n.length;++m){var y=n[m];a.skipNulls&&null===o[y]||u(d,g(o[y],y,h,p,a.strictNullHandling,a.skipNulls,a.encode?a.encoder:null,a.filter,a.sort,a.allowDots,a.serializeDate,a.format,a.formatter,a.encodeValuesOnly,a.charset,f))}var b=d.join(a.delimiter),_=!0===a.addQueryPrefix?"?":"";return a.charsetSentinel&&("iso-8859-1"===a.charset?_+="utf8=%26%2310003%3B&":_+="utf8=%E2%9C%93&"),b.length>0?_+b:""}},29431:function(e,t,n){"use strict";var r=n(96962),i=Object.prototype.hasOwnProperty,o=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e){while(e.length>1){var t=e.pop(),n=t.obj[t.prop];if(o(n)){for(var r=[],i=0;i<n.length;++i)"undefined"!==typeof n[i]&&r.push(n[i]);t.obj[t.prop]=r}}},l=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)"undefined"!==typeof e[r]&&(n[r]=e[r]);return n},c=function e(t,n,r){if(!n)return t;if("object"!==typeof n){if(o(t))t.push(n);else{if(!t||"object"!==typeof t)return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!i.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!==typeof t)return[t].concat(n);var a=t;return o(t)&&!o(n)&&(a=l(t,r)),o(t)&&o(n)?(n.forEach((function(n,o){if(i.call(t,o)){var a=t[o];a&&"object"===typeof a&&n&&"object"===typeof n?t[o]=e(a,n,r):t.push(n)}else t[o]=n})),t):Object.keys(n).reduce((function(t,o){var a=n[o];return i.call(t,o)?t[o]=e(t[o],a,r):t[o]=a,t}),a)},u=function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},d=function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(i){return r}},h=function(e,t,n,i,o){if(0===e.length)return e;var s=e;if("symbol"===typeof e?s=Symbol.prototype.toString.call(e):"string"!==typeof e&&(s=String(e)),"iso-8859-1"===n)return escape(s).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var l="",c=0;c<s.length;++c){var u=s.charCodeAt(c);45===u||46===u||95===u||126===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||o===r.RFC1738&&(40===u||41===u)?l+=s.charAt(c):u<128?l+=a[u]:u<2048?l+=a[192|u>>6]+a[128|63&u]:u<55296||u>=57344?l+=a[224|u>>12]+a[128|u>>6&63]+a[128|63&u]:(c+=1,u=65536+((1023&u)<<10|1023&s.charCodeAt(c)),l+=a[240|u>>18]+a[128|u>>12&63]+a[128|u>>6&63]+a[128|63&u])}return l},p=function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var i=t[r],o=i.obj[i.prop],a=Object.keys(o),l=0;l<a.length;++l){var c=a[l],u=o[c];"object"===typeof u&&null!==u&&-1===n.indexOf(u)&&(t.push({obj:o,prop:c}),n.push(u))}return s(t),e},f=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},m=function(e){return!(!e||"object"!==typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},g=function(e,t){return[].concat(e,t)},v=function(e,t){if(o(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)};e.exports={arrayToObject:l,assign:u,combine:g,compact:p,decode:d,encode:h,isBuffer:m,isRegExp:f,maybeMap:v,merge:c}},140:function(e){"use strict";function t(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var n={};function r(e,r,i){function o(e,t,n){return"string"===typeof r?r:r(e,t,n)}i||(i=Error);var a=function(e){function n(t,n,r){return e.call(this,o(t,n,r))||this}return t(n,e),n}(i);a.prototype.name=i.name,a.prototype.code=e,n[e]=a}function i(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map((function(e){return String(e)})),n>2?"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 o(e,t,n){return e.substr(!n||n<0?0:+n,t.length)===t}function a(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)}r("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),r("ERR_INVALID_ARG_TYPE",(function(e,t,n){var r,l;if("string"===typeof t&&o(t,"not ")?(r="must not be",t=t.replace(/^not /,"")):r="must be",a(e," argument"))l="The ".concat(e," ").concat(r," ").concat(i(t,"type"));else{var c=s(e,".")?"property":"argument";l='The "'.concat(e,'" ').concat(c," ").concat(r," ").concat(i(t,"type"))}return l+=". Received type ".concat(typeof n),l}),TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.F=n},65557:function(e,t,n){"use strict";var r=n(49663),i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=u;var o=n(44955),a=n(66143);n(32403)(u,o);for(var s=i(a.prototype),l=0;l<s.length;l++){var c=s[l];u.prototype[c]||(u.prototype[c]=a.prototype[c])}function u(e){if(!(this instanceof u))return new u(e);o.call(this,e),a.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",d)))}function d(){this._writableState.ended||r.nextTick(h,this)}function h(e){e.end()}Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(u.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(u.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(u.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})},17969:function(e,t,n){"use strict";e.exports=i;var r=n(48411);function i(e){if(!(this instanceof i))return new i(e);r.call(this,e)}n(32403)(i,r),i.prototype._transform=function(e,t,n){n(null,e)}},44955:function(e,t,n){"use strict";var r,i=n(49663);e.exports=C,C.ReadableState=T;n(82562).EventEmitter;var o=function(e,t){return e.listeners(t).length},a=n(42980),s=n(87516).Buffer,l=("undefined"!==typeof n.g?n.g:"undefined"!==typeof window?window:"undefined"!==typeof self?self:{}).Uint8Array||function(){};function c(e){return s.from(e)}function u(e){return s.isBuffer(e)||e instanceof l}var d,h=n(96087);d=h&&h.debuglog?h.debuglog("stream"):function(){};var p,f,m,g=n(75702),v=n(80872),y=n(4388),b=y.getHighWaterMark,_=n(140).F,w=_.ERR_INVALID_ARG_TYPE,E=_.ERR_STREAM_PUSH_AFTER_EOF,S=_.ERR_METHOD_NOT_IMPLEMENTED,x=_.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;n(32403)(C,a);var k=v.errorOrDestroy,A=["error","close","destroy","pause","resume"];function N(e,t,n){if("function"===typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}function T(e,t,i){r=r||n(65557),e=e||{},"boolean"!==typeof i&&(i=t instanceof r),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=b(this,e,"readableHighWaterMark",i),this.buffer=new g,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(p||(p=n(54668).I),this.decoder=new p(e.encoding),this.encoding=e.encoding)}function C(e){if(r=r||n(65557),!(this instanceof C))return new C(e);var t=this instanceof r;this._readableState=new T(e,this,t),this.readable=!0,e&&("function"===typeof e.read&&(this._read=e.read),"function"===typeof e.destroy&&(this._destroy=e.destroy)),a.call(this)}function R(e,t,n,r,i){d("readableAddChunk",t);var o,a=e._readableState;if(null===t)a.reading=!1,M(e,a);else if(i||(o=I(a,t)),o)k(e,o);else if(a.objectMode||t&&t.length>0)if("string"===typeof t||a.objectMode||Object.getPrototypeOf(t)===s.prototype||(t=c(t)),r)a.endEmitted?k(e,new x):O(e,a,t,!0);else if(a.ended)k(e,new E);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!n?(t=a.decoder.write(t),a.objectMode||0!==t.length?O(e,a,t,!1):$(e,a)):O(e,a,t,!1)}else r||(a.reading=!1,$(e,a));return!a.ended&&(a.length<a.highWaterMark||0===a.length)}function O(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",n)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&F(e)),$(e,t)}function I(e,t){var n;return u(t)||"string"===typeof t||void 0===t||e.objectMode||(n=new w("chunk",["string","Buffer","Uint8Array"],t)),n}Object.defineProperty(C.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),C.prototype.destroy=v.destroy,C.prototype._undestroy=v.undestroy,C.prototype._destroy=function(e,t){t(e)},C.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"===typeof e&&(t=t||r.defaultEncoding,t!==r.encoding&&(e=s.from(e,t),t=""),n=!0),R(this,e,t,!1,n)},C.prototype.unshift=function(e){return R(this,e,null,!0,!1)},C.prototype.isPaused=function(){return!1===this._readableState.flowing},C.prototype.setEncoding=function(e){p||(p=n(54668).I);var t=new p(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;var r=this._readableState.buffer.head,i="";while(null!==r)i+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var D=1073741824;function L(e){return e>=D?e=D:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function P(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=L(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function M(e,t){if(d("onEofChunk"),!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.sync?F(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,B(e)))}}function F(e){var t=e._readableState;d("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(d("emitReadable",t.flowing),t.emittedReadable=!0,i.nextTick(B,e))}function B(e){var t=e._readableState;d("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,z(e)}function $(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(j,e,t))}function j(e,t){while(!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length)){var n=t.length;if(d("maybeReadMore read 0"),e.read(0),n===t.length)break}t.readingMore=!1}function U(e){return function(){var t=e._readableState;d("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&o(e,"data")&&(t.flowing=!0,z(e))}}function V(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function K(e){d("readable nexttick read 0"),e.read(0)}function H(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(G,e,t))}function G(e,t){d("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),z(e),t.flowing&&!t.reading&&e.read(0)}function z(e){var t=e._readableState;d("flow",t.flowing);while(t.flowing&&null!==e.read());}function X(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n);var n}function q(e){var t=e._readableState;d("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,i.nextTick(W,t,e))}function W(e,t){if(d("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}function Y(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}C.prototype.read=function(e){d("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return d("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?q(this):F(this),null;if(e=P(e,t),0===e&&t.ended)return 0===t.length&&q(this),null;var r,i=t.needReadable;return d("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&(i=!0,d("length less than watermark",i)),t.ended||t.reading?(i=!1,d("reading or ended",i)):i&&(d("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=P(n,t))),r=e>0?X(e,t):null,null===r?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&q(this)),null!==r&&this.emit("data",r),r},C.prototype._read=function(e){k(this,new S("_read()"))},C.prototype.pipe=function(e,t){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=e;break;case 1:r.pipes=[r.pipes,e];break;default:r.pipes.push(e);break}r.pipesCount+=1,d("pipe count=%d opts=%j",r.pipesCount,t);var a=(!t||!1!==t.end)&&e!==i.stdout&&e!==i.stderr,s=a?c:y;function l(e,t){d("onunpipe"),e===n&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,p())}function c(){d("onend"),e.end()}r.endEmitted?i.nextTick(s):n.once("end",s),e.on("unpipe",l);var u=U(n);e.on("drain",u);var h=!1;function p(){d("cleanup"),e.removeListener("close",g),e.removeListener("finish",v),e.removeListener("drain",u),e.removeListener("error",m),e.removeListener("unpipe",l),n.removeListener("end",c),n.removeListener("end",y),n.removeListener("data",f),h=!0,!r.awaitDrain||e._writableState&&!e._writableState.needDrain||u()}function f(t){d("ondata");var i=e.write(t);d("dest.write",i),!1===i&&((1===r.pipesCount&&r.pipes===e||r.pipesCount>1&&-1!==Y(r.pipes,e))&&!h&&(d("false write response, pause",r.awaitDrain),r.awaitDrain++),n.pause())}function m(t){d("onerror",t),y(),e.removeListener("error",m),0===o(e,"error")&&k(e,t)}function g(){e.removeListener("finish",v),y()}function v(){d("onfinish"),e.removeListener("close",g),y()}function y(){d("unpipe"),n.unpipe(e)}return n.on("data",f),N(e,"error",m),e.once("close",g),e.once("finish",v),e.emit("pipe",n),r.flowing||(d("pipe resume"),n.resume()),e},C.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)r[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=Y(t.pipes,e);return-1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},C.prototype.on=function(e,t){var n=a.prototype.on.call(this,e,t),r=this._readableState;return"data"===e?(r.readableListening=this.listenerCount("readable")>0,!1!==r.flowing&&this.resume()):"readable"===e&&(r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.flowing=!1,r.emittedReadable=!1,d("on readable",r.length,r.reading),r.length?F(this):r.reading||i.nextTick(K,this))),n},C.prototype.addListener=C.prototype.on,C.prototype.removeListener=function(e,t){var n=a.prototype.removeListener.call(this,e,t);return"readable"===e&&i.nextTick(V,this),n},C.prototype.removeAllListeners=function(e){var t=a.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||i.nextTick(V,this),t},C.prototype.resume=function(){var e=this._readableState;return e.flowing||(d("resume"),e.flowing=!e.readableListening,H(this,e)),e.paused=!1,this},C.prototype.pause=function(){return d("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(d("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},C.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on("end",(function(){if(d("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){if(d("wrapped data"),n.decoder&&(i=n.decoder.write(i)),(!n.objectMode||null!==i&&void 0!==i)&&(n.objectMode||i&&i.length)){var o=t.push(i);o||(r=!0,e.pause())}})),e)void 0===this[i]&&"function"===typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<A.length;o++)e.on(A[o],this.emit.bind(this,A[o]));return this._read=function(t){d("wrapped _read",t),r&&(r=!1,e.resume())},this},"function"===typeof Symbol&&(C.prototype[Symbol.asyncIterator]=function(){return void 0===f&&(f=n(41818)),f(this)}),Object.defineProperty(C.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(C.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(C.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),C._fromList=X,Object.defineProperty(C.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"===typeof Symbol&&(C.from=function(e,t){return void 0===m&&(m=n(46760)),m(C,e,t)})},48411:function(e,t,n){"use strict";e.exports=u;var r=n(140).F,i=r.ERR_METHOD_NOT_IMPLEMENTED,o=r.ERR_MULTIPLE_CALLBACK,a=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=r.ERR_TRANSFORM_WITH_LENGTH_0,l=n(65557);function c(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(null===r)return this.emit("error",new o);n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function u(e){if(!(this instanceof u))return new u(e);l.call(this,e),this._transformState={afterTransform:c.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"===typeof e.transform&&(this._transform=e.transform),"function"===typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",d)}function d(){var e=this;"function"!==typeof this._flush||this._readableState.destroyed?h(this,null,null):this._flush((function(t,n){h(e,t,n)}))}function h(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new s;if(e._transformState.transforming)throw new a;return e.push(null)}n(32403)(u,l),u.prototype.push=function(e,t){return this._transformState.needTransform=!1,l.prototype.push.call(this,e,t)},u.prototype._transform=function(e,t,n){n(new i("_transform()"))},u.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},u.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},u.prototype._destroy=function(e,t){l.prototype._destroy.call(this,e,(function(e){t(e)}))}},66143:function(e,t,n){"use strict";var r,i=n(49663);function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){G(t,e)}}e.exports=T,T.WritableState=N;var a={deprecate:n(94152)},s=n(42980),l=n(87516).Buffer,c=("undefined"!==typeof n.g?n.g:"undefined"!==typeof window?window:"undefined"!==typeof self?self:{}).Uint8Array||function(){};function u(e){return l.from(e)}function d(e){return l.isBuffer(e)||e instanceof c}var h,p=n(80872),f=n(4388),m=f.getHighWaterMark,g=n(140).F,v=g.ERR_INVALID_ARG_TYPE,y=g.ERR_METHOD_NOT_IMPLEMENTED,b=g.ERR_MULTIPLE_CALLBACK,_=g.ERR_STREAM_CANNOT_PIPE,w=g.ERR_STREAM_DESTROYED,E=g.ERR_STREAM_NULL_VALUES,S=g.ERR_STREAM_WRITE_AFTER_END,x=g.ERR_UNKNOWN_ENCODING,k=p.errorOrDestroy;function A(){}function N(e,t,i){r=r||n(65557),e=e||{},"boolean"!==typeof i&&(i=t instanceof r),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=m(this,e,"writableHighWaterMark",i),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=!1===e.decodeStrings;this.decodeStrings=!a,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){M(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function T(e){r=r||n(65557);var t=this instanceof r;if(!t&&!h.call(T,this))return new T(e);this._writableState=new N(e,this,t),this.writable=!0,e&&("function"===typeof e.write&&(this._write=e.write),"function"===typeof e.writev&&(this._writev=e.writev),"function"===typeof e.destroy&&(this._destroy=e.destroy),"function"===typeof e.final&&(this._final=e.final)),s.call(this)}function C(e,t){var n=new S;k(e,n),i.nextTick(t,n)}function R(e,t,n,r){var o;return null===n?o=new E:"string"===typeof n||t.objectMode||(o=new v("chunk",["string","Buffer"],n)),!o||(k(e,o),i.nextTick(r,o),!1)}function O(e,t,n){return e.objectMode||!1===e.decodeStrings||"string"!==typeof t||(t=l.from(t,n)),t}function I(e,t,n,r,i,o){if(!n){var a=O(t,r,i);r!==a&&(n=!0,i="buffer",r=a)}var s=t.objectMode?1:r.length;t.length+=s;var l=t.length<t.highWaterMark;if(l||(t.needDrain=!0),t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:o,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else D(e,t,!1,s,r,i,o);return l}function D(e,t,n,r,i,o,a){t.writelen=r,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new w("write")):n?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function L(e,t,n,r,o){--t.pendingcb,n?(i.nextTick(o,r),i.nextTick(K,e,t),e._writableState.errorEmitted=!0,k(e,r)):(o(r),e._writableState.errorEmitted=!0,k(e,r),K(e,t))}function P(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function M(e,t){var n=e._writableState,r=n.sync,o=n.writecb;if("function"!==typeof o)throw new b;if(P(n),t)L(e,n,r,t,o);else{var a=j(n)||e.destroyed;a||n.corked||n.bufferProcessing||!n.bufferedRequest||$(e,n),r?i.nextTick(F,e,n,a,o):F(e,n,a,o)}}function F(e,t,n,r){n||B(e,t),t.pendingcb--,r(),K(e,t)}function B(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function $(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,i=new Array(r),a=t.corkedRequestsFree;a.entry=n;var s=0,l=!0;while(n)i[s]=n,n.isBuf||(l=!1),n=n.next,s+=1;i.allBuffers=l,D(e,t,!0,t.length,i,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new o(t),t.bufferedRequestCount=0}else{while(n){var c=n.chunk,u=n.encoding,d=n.callback,h=t.objectMode?1:c.length;if(D(e,t,!1,h,c,u,d),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function j(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function U(e,t){e._final((function(n){t.pendingcb--,n&&k(e,n),t.prefinished=!0,e.emit("prefinish"),K(e,t)}))}function V(e,t){t.prefinished||t.finalCalled||("function"!==typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,i.nextTick(U,e,t)))}function K(e,t){var n=j(t);if(n&&(V(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var r=e._readableState;(!r||r.autoDestroy&&r.endEmitted)&&e.destroy()}return n}function H(e,t,n){t.ending=!0,K(e,t),n&&(t.finished?i.nextTick(n):e.once("finish",n)),t.ended=!0,e.writable=!1}function G(e,t,n){var r=e.entry;e.entry=null;while(r){var i=r.callback;t.pendingcb--,i(n),r=r.next}t.corkedRequestsFree.next=e}n(32403)(T,s),N.prototype.getBuffer=function(){var e=this.bufferedRequest,t=[];while(e)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(N.prototype,"buffer",{get:a.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"===typeof Symbol&&Symbol.hasInstance&&"function"===typeof Function.prototype[Symbol.hasInstance]?(h=Function.prototype[Symbol.hasInstance],Object.defineProperty(T,Symbol.hasInstance,{value:function(e){return!!h.call(this,e)||this===T&&(e&&e._writableState instanceof N)}})):h=function(e){return e instanceof this},T.prototype.pipe=function(){k(this,new _)},T.prototype.write=function(e,t,n){var r=this._writableState,i=!1,o=!r.objectMode&&d(e);return o&&!l.isBuffer(e)&&(e=u(e)),"function"===typeof t&&(n=t,t=null),o?t="buffer":t||(t=r.defaultEncoding),"function"!==typeof n&&(n=A),r.ending?C(this,n):(o||R(this,r,e,n))&&(r.pendingcb++,i=I(this,r,o,e,t,n)),i},T.prototype.cork=function(){this._writableState.corked++},T.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||$(this,e))},T.prototype.setDefaultEncoding=function(e){if("string"===typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new x(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(T.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(T.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),T.prototype._write=function(e,t,n){n(new y("_write()"))},T.prototype._writev=null,T.prototype.end=function(e,t,n){var r=this._writableState;return"function"===typeof e?(n=e,e=null,t=null):"function"===typeof t&&(n=t,t=null),null!==e&&void 0!==e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||H(this,r,n),this},Object.defineProperty(T.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(T.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),T.prototype.destroy=p.destroy,T.prototype._undestroy=p.undestroy,T.prototype._destroy=function(e,t){t(e)}},41818:function(e,t,n){"use strict";var r,i=n(49663);function o(e,t,n){return t=a(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e){var t=s(e,"string");return"symbol"===typeof t?t:String(t)}function s(e,t){if("object"!==typeof e||null===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)}var l=n(93377),c=Symbol("lastResolve"),u=Symbol("lastReject"),d=Symbol("error"),h=Symbol("ended"),p=Symbol("lastPromise"),f=Symbol("handlePromise"),m=Symbol("stream");function g(e,t){return{value:e,done:t}}function v(e){var t=e[c];if(null!==t){var n=e[m].read();null!==n&&(e[p]=null,e[c]=null,e[u]=null,t(g(n,!1)))}}function y(e){i.nextTick(v,e)}function b(e,t){return function(n,r){e.then((function(){t[h]?n(g(void 0,!0)):t[f](n,r)}),r)}}var _=Object.getPrototypeOf((function(){})),w=Object.setPrototypeOf((r={get stream(){return this[m]},next:function(){var e=this,t=this[d];if(null!==t)return Promise.reject(t);if(this[h])return Promise.resolve(g(void 0,!0));if(this[m].destroyed)return new Promise((function(t,n){i.nextTick((function(){e[d]?n(e[d]):t(g(void 0,!0))}))}));var n,r=this[p];if(r)n=new Promise(b(r,this));else{var o=this[m].read();if(null!==o)return Promise.resolve(g(o,!1));n=new Promise(this[f])}return this[p]=n,n}},o(r,Symbol.asyncIterator,(function(){return this})),o(r,"return",(function(){var e=this;return new Promise((function(t,n){e[m].destroy(null,(function(e){e?n(e):t(g(void 0,!0))}))}))})),r),_),E=function(e){var t,n=Object.create(w,(t={},o(t,m,{value:e,writable:!0}),o(t,c,{value:null,writable:!0}),o(t,u,{value:null,writable:!0}),o(t,d,{value:null,writable:!0}),o(t,h,{value:e._readableState.endEmitted,writable:!0}),o(t,f,{value:function(e,t){var r=n[m].read();r?(n[p]=null,n[c]=null,n[u]=null,e(g(r,!1))):(n[c]=e,n[u]=t)},writable:!0}),t));return n[p]=null,l(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=n[u];return null!==t&&(n[p]=null,n[c]=null,n[u]=null,t(e)),void(n[d]=e)}var r=n[c];null!==r&&(n[p]=null,n[c]=null,n[u]=null,r(g(void 0,!0))),n[h]=!0})),e.on("readable",y.bind(null,n)),n};e.exports=E},75702:function(e,t,n){"use strict";function r(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 i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function o(e,t,n){return t=c(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,c(r.key),r)}}function l(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function c(e){var t=u(e,"string");return"symbol"===typeof t?t:String(t)}function u(e,t){if("object"!==typeof e||null===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)}var d=n(87516),h=d.Buffer,p=n(79851),f=p.inspect,m=f&&f.custom||"inspect";function g(e,t,n){h.prototype.copy.call(e,t,n)}e.exports=function(){function e(){a(this,e),this.head=null,this.tail=null,this.length=0}return l(e,[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";var t=this.head,n=""+t.data;while(t=t.next)n+=e+t.data;return n}},{key:"concat",value:function(e){if(0===this.length)return h.alloc(0);var t=h.allocUnsafe(e>>>0),n=this.head,r=0;while(n)g(n.data,t,r),r+=n.data.length,n=n.next;return t}},{key:"consume",value:function(e,t){var n;return e<this.head.data.length?(n=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):n=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),n}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,n=1,r=t.data;e-=r.length;while(t=t.next){var i=t.data,o=e>i.length?i.length:e;if(o===i.length?r+=i:r+=i.slice(0,e),e-=o,0===e){o===i.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++n}return this.length-=n,r}},{key:"_getBuffer",value:function(e){var t=h.allocUnsafe(e),n=this.head,r=1;n.data.copy(t),e-=n.data.length;while(n=n.next){var i=n.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),e-=o,0===e){o===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(o));break}++r}return this.length-=r,t}},{key:m,value:function(e,t){return f(this,i(i({},t),{},{depth:0,customInspect:!1}))}}]),e}()},80872:function(e,t,n){"use strict";var r=n(49663);function i(e,t){var n=this,i=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return i||s?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,r.nextTick(l,this,e)):r.nextTick(l,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?n._writableState?n._writableState.errorEmitted?r.nextTick(a,n):(n._writableState.errorEmitted=!0,r.nextTick(o,n,e)):r.nextTick(o,n,e):t?(r.nextTick(a,n),t(e)):r.nextTick(a,n)})),this)}function o(e,t){l(e,t),a(e)}function a(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function s(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function l(e,t){e.emit("error",t)}function c(e,t){var n=e._readableState,r=e._writableState;n&&n.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit("error",t)}e.exports={destroy:i,undestroy:s,errorOrDestroy:c}},93377:function(e,t,n){"use strict";var r=n(140).F.ERR_STREAM_PREMATURE_CLOSE;function i(e){var t=!1;return function(){if(!t){t=!0;for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];e.apply(this,r)}}}function o(){}function a(e){return e.setHeader&&"function"===typeof e.abort}function s(e,t,n){if("function"===typeof t)return s(e,null,t);t||(t={}),n=i(n||o);var l=t.readable||!1!==t.readable&&e.readable,c=t.writable||!1!==t.writable&&e.writable,u=function(){e.writable||h()},d=e._writableState&&e._writableState.finished,h=function(){c=!1,d=!0,l||n.call(e)},p=e._readableState&&e._readableState.endEmitted,f=function(){l=!1,p=!0,c||n.call(e)},m=function(t){n.call(e,t)},g=function(){var t;return l&&!p?(e._readableState&&e._readableState.ended||(t=new r),n.call(e,t)):c&&!d?(e._writableState&&e._writableState.ended||(t=new r),n.call(e,t)):void 0},v=function(){e.req.on("finish",h)};return a(e)?(e.on("complete",h),e.on("abort",g),e.req?v():e.on("request",v)):c&&!e._writableState&&(e.on("end",u),e.on("close",u)),e.on("end",f),e.on("finish",h),!1!==t.error&&e.on("error",m),e.on("close",g),function(){e.removeListener("complete",h),e.removeListener("abort",g),e.removeListener("request",v),e.req&&e.req.removeListener("finish",h),e.removeListener("end",u),e.removeListener("close",u),e.removeListener("finish",h),e.removeListener("end",f),e.removeListener("error",m),e.removeListener("close",g)}}e.exports=s},46760:function(e){e.exports=function(){throw new Error("Readable.from is not available in the browser")}},72227:function(e,t,n){"use strict";var r;function i(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var o=n(140).F,a=o.ERR_MISSING_ARGS,s=o.ERR_STREAM_DESTROYED;function l(e){if(e)throw e}function c(e){return e.setHeader&&"function"===typeof e.abort}function u(e,t,o,a){a=i(a);var l=!1;e.on("close",(function(){l=!0})),void 0===r&&(r=n(93377)),r(e,{readable:t,writable:o},(function(e){if(e)return a(e);l=!0,a()}));var u=!1;return function(t){if(!l&&!u)return u=!0,c(e)?e.abort():"function"===typeof e.destroy?e.destroy():void a(t||new s("pipe"))}}function d(e){e()}function h(e,t){return e.pipe(t)}function p(e){return e.length?"function"!==typeof e[e.length-1]?l:e.pop():l}function f(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,i=p(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new a("streams");var o=t.map((function(e,n){var a=n<t.length-1,s=n>0;return u(e,a,s,(function(e){r||(r=e),e&&o.forEach(d),a||(o.forEach(d),i(r))}))}));return t.reduce(h)}e.exports=f},4388:function(e,t,n){"use strict";var r=n(140).F.ERR_INVALID_OPT_VALUE;function i(e,t,n){return null!=e.highWaterMark?e.highWaterMark:t?e[n]:null}function o(e,t,n,o){var a=i(t,o,n);if(null!=a){if(!isFinite(a)||Math.floor(a)!==a||a<0){var s=o?n:"highWaterMark";throw new r(s,a)}return Math.floor(a)}return e.objectMode?16:16384}e.exports={getHighWaterMark:o}},42980:function(e,t,n){e.exports=n(82562).EventEmitter},21320:function(e,t,n){t=e.exports=n(44955),t.Stream=t,t.Readable=t,t.Writable=n(66143),t.Duplex=n(65557),t.Transform=n(48411),t.PassThrough=n(17969),t.finished=n(93377),t.pipeline=n(72227)},11384:function(e,t,n){
|
||
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
||
var r=n(87516),i=r.Buffer;function o(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,n){if("number"===typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},a.alloc=function(e,t,n){if("number"!==typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"===typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},a.allocUnsafe=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},76025: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(53210),{safeRe:a,t:s}=n(81421),l=n(88352),c=n(74453),u=n(75953),d=n(22992)},22992: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<this.set.length;n++)if(O(this.set[n],e,this.options))return!0;return!1}}e.exports=r;const i=n(98580),o=new i({max:1e3}),a=n(53210),s=n(76025),l=n(74453),c=n(75953),{safeRe:u,t:d,comparatorTrimReplace:h,tildeTrimReplace:p,caretTrimReplace:f}=n(81421),{FLAG_INCLUDE_PRERELEASE:m,FLAG_LOOSE:g}=n(49635),v=e=>"<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;r<e.length;r++)if(!e[r].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(l(e[n].semver),e[n].semver!==s.ANY&&e[n].semver.prerelease.length>0){const r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0}},75953:function(e,t,n){const r=n(74453),{MAX_LENGTH:i,MAX_SAFE_INTEGER:o}=n(49635),{safeRe:a,t:s}=n(81421),l=n(53210),{compareIdentifiers:c}=n(24738);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<o)return t}return e})):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(r("SemVer.compare",this.version,this.options,e),!(e instanceof u)){if("string"===typeof e&&e===this.version)return 0;e=new u(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof u||(e=new u(e,this.options)),c(this.major,e.major)||c(this.minor,e.minor)||c(this.patch,e.patch)}comparePre(e){if(e instanceof u||(e=new u(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const n=this.prerelease[t],i=e.prerelease[t];if(r("prerelease compare",t,n,i),void 0===n&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===n)return-1;if(n!==i)return c(n,i)}while(++t)}compareBuild(e){e instanceof u||(e=new u(e,this.options));let t=0;do{const n=this.build[t],i=e.build[t];if(r("prerelease compare",t,n,i),void 0===n&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===n)return-1;if(n!==i)return c(n,i)}while(++t)}inc(e,t,n){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,n),this.inc("pre",t,n);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const e=Number(n)?1:0;if(!t&&!1===n)throw new Error("invalid increment argument: identifier is empty");if(0===this.prerelease.length)this.prerelease=[e];else{let r=this.prerelease.length;while(--r>=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},40453:function(e,t,n){const r=n(55951),i=(e,t)=>{const n=r(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null};e.exports=i},88352:function(e,t,n){const r=n(53300),i=n(16816),o=n(11645),a=n(6110),s=n(20234),l=n(31363),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},59491:function(e,t,n){const r=n(75953),i=n(55951),{safeRe:o,t:a}=n(81421),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},79878:function(e,t,n){const r=n(75953),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},73848:function(e,t,n){const r=n(33399),i=(e,t)=>r(e,t,!0);e.exports=i},33399:function(e,t,n){const r=n(75953),i=(e,t,n)=>new r(e,n).compare(new r(t,n));e.exports=i},3097:function(e,t,n){const r=n(55951),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},53300:function(e,t,n){const r=n(33399),i=(e,t,n)=>0===r(e,t,n);e.exports=i},11645:function(e,t,n){const r=n(33399),i=(e,t,n)=>r(e,t,n)>0;e.exports=i},6110:function(e,t,n){const r=n(33399),i=(e,t,n)=>r(e,t,n)>=0;e.exports=i},23232:function(e,t,n){const r=n(75953),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},20234:function(e,t,n){const r=n(33399),i=(e,t,n)=>r(e,t,n)<0;e.exports=i},31363:function(e,t,n){const r=n(33399),i=(e,t,n)=>r(e,t,n)<=0;e.exports=i},9025:function(e,t,n){const r=n(75953),i=(e,t)=>new r(e,t).major;e.exports=i},50997:function(e,t,n){const r=n(75953),i=(e,t)=>new r(e,t).minor;e.exports=i},16816:function(e,t,n){const r=n(33399),i=(e,t,n)=>0!==r(e,t,n);e.exports=i},55951:function(e,t,n){const r=n(75953),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},42014:function(e,t,n){const r=n(75953),i=(e,t)=>new r(e,t).patch;e.exports=i},10952:function(e,t,n){const r=n(55951),i=(e,t)=>{const n=r(e,t);return n&&n.prerelease.length?n.prerelease:null};e.exports=i},50471:function(e,t,n){const r=n(33399),i=(e,t,n)=>r(t,e,n);e.exports=i},20342:function(e,t,n){const r=n(79878),i=(e,t)=>e.sort(((e,n)=>r(n,e,t)));e.exports=i},66553:function(e,t,n){const r=n(22992),i=(e,t,n)=>{try{t=new r(t,n)}catch(i){return!1}return t.test(e)};e.exports=i},63750:function(e,t,n){const r=n(79878),i=(e,t)=>e.sort(((e,n)=>r(e,n,t)));e.exports=i},30470:function(e,t,n){const r=n(55951),i=(e,t)=>{const n=r(e,t);return n?n.version:null};e.exports=i},8374:function(e,t,n){const r=n(81421),i=n(49635),o=n(75953),a=n(24738),s=n(55951),l=n(30470),c=n(40453),u=n(23232),d=n(3097),h=n(9025),p=n(50997),f=n(42014),m=n(10952),g=n(33399),v=n(50471),y=n(73848),b=n(79878),_=n(63750),w=n(20342),E=n(11645),S=n(20234),x=n(53300),k=n(16816),A=n(6110),N=n(31363),T=n(88352),C=n(59491),R=n(76025),O=n(22992),I=n(66553),D=n(89280),L=n(74443),P=n(30785),M=n(19756),F=n(65943),B=n(67394),$=n(23230),j=n(16659),U=n(42163),V=n(234),K=n(87019);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}},49635: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}},74453: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},24738: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:e<n?-1:1},r=(e,t)=>n(t,e);e.exports={compareIdentifiers:n,rcompareIdentifiers:r}},53210:function(e){const t=Object.freeze({loose:!0}),n=Object.freeze({}),r=e=>e?"object"!==typeof e?t:e:n;e.exports=r},81421:function(e,t,n){const{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:i,MAX_LENGTH:o}=n(49635),a=n(74453);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*$")},23230:function(e,t,n){const r=n(67394),i=(e,t,n)=>r(e,t,">",n);e.exports=i},42163:function(e,t,n){const r=n(22992),i=(e,t,n)=>(e=new r(e,n),t=new r(t,n),e.intersects(t,n));e.exports=i},16659:function(e,t,n){const r=n(67394),i=(e,t,n)=>r(e,t,"<",n);e.exports=i},74443:function(e,t,n){const r=n(75953),i=n(22992),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},30785:function(e,t,n){const r=n(75953),i=n(22992),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},19756:function(e,t,n){const r=n(75953),i=n(22992),o=n(11645),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<e.set.length;++i){const t=e.set[i];let a=null;t.forEach((e=>{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},67394:function(e,t,n){const r=n(75953),i=n(76025),{ANY:o}=i,a=n(22992),s=n(66553),l=n(11645),c=n(20234),u=n(31363),d=n(6110),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<t.set.length;++r){const n=t.set[r];let a=null,s=null;if(n.forEach((e=>{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},234:function(e,t,n){const r=n(66553),i=n(33399);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<d.length?u:t}},87019:function(e,t,n){const r=n(22992),i=n(76025),{ANY:o}=i,a=n(66553),s=n(33399),l=(e,t,n={})=>{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},89280:function(e,t,n){const r=n(22992),i=(e,t)=>new r(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")));e.exports=i},65943:function(e,t,n){const r=n(22992),i=(e,t)=>{try{return new r(e,t).range||"*"}catch(n){return null}};e.exports=i},19824:function(e,t,n){"use strict";var r=n(54004),i=n(18114),o=n(8451)(),a=n(22356),s=n(60264),l=r("%Math.floor%");e.exports=function(e,t){if("function"!==typeof e)throw new s("`fn` is not a function");if("number"!==typeof t||t<0||t>4294967295||l(t)!==t)throw new s("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],r=!0,c=!0;if("length"in e&&a){var u=a(e,"length");u&&!u.configurable&&(r=!1),u&&!u.writable&&(c=!1)}return(r||c||!n)&&(o?i(e,"length",t,!0,!0):i(e,"length",t)),e}},79891:function(e,t,n){"use strict";var r=n(54004),i=n(56566),o=n(37952),a=n(60264),s=r("%WeakMap%",!0),l=r("%Map%",!0),c=i("WeakMap.prototype.get",!0),u=i("WeakMap.prototype.set",!0),d=i("WeakMap.prototype.has",!0),h=i("Map.prototype.get",!0),p=i("Map.prototype.set",!0),f=i("Map.prototype.has",!0),m=function(e,t){for(var n,r=e;null!==(n=r.next);r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n},g=function(e,t){var n=m(e,t);return n&&n.value},v=function(e,t,n){var r=m(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}},y=function(e,t){return!!m(e,t)};e.exports=function(){var e,t,n,r={assert:function(e){if(!r.has(e))throw new a("Side channel does not contain "+o(e))},get:function(r){if(s&&r&&("object"===typeof r||"function"===typeof r)){if(e)return c(e,r)}else if(l){if(t)return h(t,r)}else if(n)return g(n,r)},has:function(r){if(s&&r&&("object"===typeof r||"function"===typeof r)){if(e)return d(e,r)}else if(l){if(t)return f(t,r)}else if(n)return y(n,r);return!1},set:function(r,i){s&&r&&("object"===typeof r||"function"===typeof r)?(e||(e=new s),u(e,r,i)):l?(t||(t=new l),p(t,r,i)):(n||(n={key:{},next:null}),v(n,r,i))}};return r}},60307:function(e,t,n){"use strict";var r=n(84241),i=Array.prototype.concat,o=Array.prototype.slice,a=e.exports=function(e){for(var t=[],n=0,a=e.length;n<a;n++){var s=e[n];r(s)?t=i.call(t,o.call(s)):t.push(s)}return t};a.wrap=function(e){return function(){return e(a(arguments))}}},84241:function(e){e.exports=function(e){return!(!e||"string"===typeof e)&&(e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&"String"!==e.constructor.name))}},50829:function(e,t,n){var r=n(59536),i=n(29386),o=n(43199),a=n(68229),s=n(63974),l=t;l.request=function(e,t){e="string"===typeof e?s.parse(e):o(e);var i=-1===n.g.location.protocol.search(/^https?:$/)?"http:":"",a=e.protocol||i,l=e.hostname||e.host,c=e.port,u=e.path||"/";l&&-1!==l.indexOf(":")&&(l="["+l+"]"),e.url=(l?a+"//"+l:"")+(c?":"+c:"")+u,e.method=(e.method||"GET").toUpperCase(),e.headers=e.headers||{};var d=new r(e);return t&&d.on("response",t),d},l.get=function(e,t){var n=l.request(e,t);return n.end(),n},l.ClientRequest=r,l.IncomingMessage=i.IncomingMessage,l.Agent=function(){},l.Agent.defaultMaxSockets=4,l.globalAgent=new l.Agent,l.STATUS_CODES=a,l.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]},58235:function(e,t,n){var r;function i(){if(void 0!==r)return r;if(n.g.XMLHttpRequest){r=new n.g.XMLHttpRequest;try{r.open("GET",n.g.XDomainRequest?"/":"https://example.com")}catch(e){r=null}}else r=null;return r}function o(e){var t=i();if(!t)return!1;try{return t.responseType=e,t.responseType===e}catch(n){}return!1}function a(e){return"function"===typeof e}t.fetch=a(n.g.fetch)&&a(n.g.ReadableStream),t.writableStream=a(n.g.WritableStream),t.abortController=a(n.g.AbortController),t.arraybuffer=t.fetch||o("arraybuffer"),t.msstream=!t.fetch&&o("ms-stream"),t.mozchunkedarraybuffer=!t.fetch&&o("moz-chunked-arraybuffer"),t.overrideMimeType=t.fetch||!!i()&&a(i().overrideMimeType),r=null},59536:function(e,t,n){var r=n(93322)["hp"],i=n(49663),o=n(58235),a=n(32403),s=n(29386),l=n(21320),c=s.IncomingMessage,u=s.readyStates;function d(e,t){return o.fetch&&t?"fetch":o.mozchunkedarraybuffer?"moz-chunked-arraybuffer":o.msstream?"ms-stream":o.arraybuffer&&e?"arraybuffer":"text"}var h=e.exports=function(e){var t,n=this;l.Writable.call(n),n._opts=e,n._body=[],n._headers={},e.auth&&n.setHeader("Authorization","Basic "+r.from(e.auth).toString("base64")),Object.keys(e.headers).forEach((function(t){n.setHeader(t,e.headers[t])}));var i=!0;if("disable-fetch"===e.mode||"requestTimeout"in e&&!o.abortController)i=!1,t=!0;else if("prefer-streaming"===e.mode)t=!1;else if("allow-wrong-content-type"===e.mode)t=!o.overrideMimeType;else{if(e.mode&&"default"!==e.mode&&"prefer-fast"!==e.mode)throw new Error("Invalid value for opts.mode");t=!0}n._mode=d(t,i),n._fetchTimer=null,n._socketTimeout=null,n._socketTimer=null,n.on("finish",(function(){n._onFinish()}))};function p(e){try{var t=e.status;return null!==t&&0!==t}catch(n){return!1}}a(h,l.Writable),h.prototype.setHeader=function(e,t){var n=this,r=e.toLowerCase();-1===f.indexOf(r)&&(n._headers[r]={name:e,value:t})},h.prototype.getHeader=function(e){var t=this._headers[e.toLowerCase()];return t?t.value:null},h.prototype.removeHeader=function(e){var t=this;delete t._headers[e.toLowerCase()]},h.prototype._onFinish=function(){var e=this;if(!e._destroyed){var t=e._opts;"timeout"in t&&0!==t.timeout&&e.setTimeout(t.timeout);var r=e._headers,a=null;"GET"!==t.method&&"HEAD"!==t.method&&(a=new Blob(e._body,{type:(r["content-type"]||{}).value||""}));var s=[];if(Object.keys(r).forEach((function(e){var t=r[e].name,n=r[e].value;Array.isArray(n)?n.forEach((function(e){s.push([t,e])})):s.push([t,n])})),"fetch"===e._mode){var l=null;if(o.abortController){var c=new AbortController;l=c.signal,e._fetchAbortController=c,"requestTimeout"in t&&0!==t.requestTimeout&&(e._fetchTimer=n.g.setTimeout((function(){e.emit("requestTimeout"),e._fetchAbortController&&e._fetchAbortController.abort()}),t.requestTimeout))}n.g.fetch(e._opts.url,{method:e._opts.method,headers:s,body:a||void 0,mode:"cors",credentials:t.withCredentials?"include":"same-origin",signal:l}).then((function(t){e._fetchResponse=t,e._resetTimers(!1),e._connect()}),(function(t){e._resetTimers(!0),e._destroyed||e.emit("error",t)}))}else{var d=e._xhr=new n.g.XMLHttpRequest;try{d.open(e._opts.method,e._opts.url,!0)}catch(h){return void i.nextTick((function(){e.emit("error",h)}))}"responseType"in d&&(d.responseType=e._mode),"withCredentials"in d&&(d.withCredentials=!!t.withCredentials),"text"===e._mode&&"overrideMimeType"in d&&d.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in t&&(d.timeout=t.requestTimeout,d.ontimeout=function(){e.emit("requestTimeout")}),s.forEach((function(e){d.setRequestHeader(e[0],e[1])})),e._response=null,d.onreadystatechange=function(){switch(d.readyState){case u.LOADING:case u.DONE:e._onXHRProgress();break}},"moz-chunked-arraybuffer"===e._mode&&(d.onprogress=function(){e._onXHRProgress()}),d.onerror=function(){e._destroyed||(e._resetTimers(!0),e.emit("error",new Error("XHR error")))};try{d.send(a)}catch(h){return void i.nextTick((function(){e.emit("error",h)}))}}}},h.prototype._onXHRProgress=function(){var e=this;e._resetTimers(!1),p(e._xhr)&&!e._destroyed&&(e._response||e._connect(),e._response._onXHRProgress(e._resetTimers.bind(e)))},h.prototype._connect=function(){var e=this;e._destroyed||(e._response=new c(e._xhr,e._fetchResponse,e._mode,e._resetTimers.bind(e)),e._response.on("error",(function(t){e.emit("error",t)})),e.emit("response",e._response))},h.prototype._write=function(e,t,n){var r=this;r._body.push(e),n()},h.prototype._resetTimers=function(e){var t=this;n.g.clearTimeout(t._socketTimer),t._socketTimer=null,e?(n.g.clearTimeout(t._fetchTimer),t._fetchTimer=null):t._socketTimeout&&(t._socketTimer=n.g.setTimeout((function(){t.emit("timeout")}),t._socketTimeout))},h.prototype.abort=h.prototype.destroy=function(e){var t=this;t._destroyed=!0,t._resetTimers(!0),t._response&&(t._response._destroyed=!0),t._xhr?t._xhr.abort():t._fetchAbortController&&t._fetchAbortController.abort(),e&&t.emit("error",e)},h.prototype.end=function(e,t,n){var r=this;"function"===typeof e&&(n=e,e=void 0),l.Writable.prototype.end.call(r,e,t,n)},h.prototype.setTimeout=function(e,t){var n=this;t&&n.once("timeout",t),n._socketTimeout=e,n._resetTimers(!1)},h.prototype.flushHeaders=function(){},h.prototype.setNoDelay=function(){},h.prototype.setSocketKeepAlive=function(){};var f=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"]},29386:function(e,t,n){var r=n(49663),i=n(93322)["hp"],o=n(58235),a=n(32403),s=n(21320),l=t.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},c=t.IncomingMessage=function(e,t,n,a){var l=this;if(s.Readable.call(l),l._mode=n,l.headers={},l.rawHeaders=[],l.trailers={},l.rawTrailers=[],l.on("end",(function(){r.nextTick((function(){l.emit("close")}))})),"fetch"===n){if(l._fetchResponse=t,l.url=t.url,l.statusCode=t.status,l.statusMessage=t.statusText,t.headers.forEach((function(e,t){l.headers[t.toLowerCase()]=e,l.rawHeaders.push(t,e)})),o.writableStream){var c=new WritableStream({write:function(e){return a(!1),new Promise((function(t,n){l._destroyed?n():l.push(i.from(e))?t():l._resumeFetch=t}))},close:function(){a(!0),l._destroyed||l.push(null)},abort:function(e){a(!0),l._destroyed||l.emit("error",e)}});try{return void t.body.pipeTo(c).catch((function(e){a(!0),l._destroyed||l.emit("error",e)}))}catch(m){}}var u=t.body.getReader();function d(){u.read().then((function(e){l._destroyed||(a(e.done),e.done?l.push(null):(l.push(i.from(e.value)),d()))})).catch((function(e){a(!0),l._destroyed||l.emit("error",e)}))}d()}else{l._xhr=e,l._pos=0,l.url=e.responseURL,l.statusCode=e.status,l.statusMessage=e.statusText;var h=e.getAllResponseHeaders().split(/\r?\n/);if(h.forEach((function(e){var t=e.match(/^([^:]+):\s*(.*)/);if(t){var n=t[1].toLowerCase();"set-cookie"===n?(void 0===l.headers[n]&&(l.headers[n]=[]),l.headers[n].push(t[2])):void 0!==l.headers[n]?l.headers[n]+=", "+t[2]:l.headers[n]=t[2],l.rawHeaders.push(t[1],t[2])}})),l._charset="x-user-defined",!o.overrideMimeType){var p=l.rawHeaders["mime-type"];if(p){var f=p.match(/;\s*charset=([^;])(;|$)/);f&&(l._charset=f[1].toLowerCase())}l._charset||(l._charset="utf-8")}}};a(c,s.Readable),c.prototype._read=function(){var e=this,t=e._resumeFetch;t&&(e._resumeFetch=null,t())},c.prototype._onXHRProgress=function(e){var t=this,r=t._xhr,o=null;switch(t._mode){case"text":if(o=r.responseText,o.length>t._pos){var a=o.substr(t._pos);if("x-user-defined"===t._charset){for(var s=i.alloc(a.length),c=0;c<a.length;c++)s[c]=255&a.charCodeAt(c);t.push(s)}else t.push(a,t._charset);t._pos=o.length}break;case"arraybuffer":if(r.readyState!==l.DONE||!r.response)break;o=r.response,t.push(i.from(new Uint8Array(o)));break;case"moz-chunked-arraybuffer":if(o=r.response,r.readyState!==l.LOADING||!o)break;t.push(i.from(new Uint8Array(o)));break;case"ms-stream":if(o=r.response,r.readyState!==l.LOADING)break;var u=new n.g.MSStreamReader;u.onprogress=function(){u.result.byteLength>t._pos&&(t.push(i.from(new Uint8Array(u.result.slice(t._pos)))),t._pos=u.result.byteLength)},u.onload=function(){e(!0),t.push(null)},u.readAsArrayBuffer(o);break}t._xhr.readyState===l.DONE&&"ms-stream"!==t._mode&&(e(!0),t.push(null))}},54668:function(e,t,n){"use strict";var r=n(11384).Buffer,i=r.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){if(!e)return"utf8";var t;while(1)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function a(e){var t=o(e);if("string"!==typeof t&&(r.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}function s(e){var t;switch(this.encoding=a(e),this.encoding){case"utf16le":this.text=f,this.end=m,t=4;break;case"utf8":this.fillLast=d,t=4;break;case"base64":this.text=g,this.end=v,t=3;break;default:return this.write=y,void(this.end=b)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function l(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function c(e,t,n){var r=t.length-1;if(r<n)return 0;var i=l(t[r]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--r<n||-2===i?0:(i=l(t[r]),i>=0?(i>0&&(e.lastNeed=i-2),i):--r<n||-2===i?0:(i=l(t[r]),i>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0))}function u(e,t,n){if(128!==(192&t[0]))return e.lastNeed=0,"<22>";if(e.lastNeed>1&&t.length>1){if(128!==(192&t[1]))return e.lastNeed=1,"<22>";if(e.lastNeed>2&&t.length>2&&128!==(192&t[2]))return e.lastNeed=2,"<22>"}}function d(e){var t=this.lastTotal-this.lastNeed,n=u(this,e,t);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function h(e,t){var n=c(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)}function p(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"<22>":t}function f(e,t){if((e.length-t)%2===0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function m(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function g(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function v(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function y(e){return e.toString(this.encoding)}function b(e){return e&&e.length?this.write(e):""}t.I=s,s.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(t=this.fillLast(e),void 0===t)return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""},s.prototype.end=p,s.prototype.text=h,s.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},95781:function(e,t,n){var r;/*! https://mths.be/punycode v1.4.1 by @mathias */e=n.nmd(e),function(){t&&t.nodeType,e&&e.nodeType;var i="object"==typeof n.g&&n.g;i.global!==i&&i.window!==i&&i.self;var o,a=2147483647,s=36,l=1,c=26,u=38,d=700,h=72,p=128,f="-",m=/^xn--/,g=/[^\x20-\x7E]/,v=/[\x2E\u3002\uFF0E\uFF61]/g,y={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},b=s-l,_=Math.floor,w=String.fromCharCode;function E(e){throw new RangeError(y[e])}function S(e,t){var n=e.length,r=[];while(n--)r[n]=t(e[n]);return r}function x(e,t){var n=e.split("@"),r="";n.length>1&&(r=n[0]+"@",e=n[1]),e=e.replace(v,".");var i=e.split("."),o=S(i,t).join(".");return r+o}function k(e){var t,n,r=[],i=0,o=e.length;while(i<o)t=e.charCodeAt(i++),t>=55296&&t<=56319&&i<o?(n=e.charCodeAt(i++),56320==(64512&n)?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),i--)):r.push(t);return r}function A(e){return S(e,(function(e){var t="";return e>65535&&(e-=65536,t+=w(e>>>10&1023|55296),e=56320|1023&e),t+=w(e),t})).join("")}function N(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:s}function T(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function C(e,t,n){var r=0;for(e=n?_(e/d):e>>1,e+=_(e/t);e>b*c>>1;r+=s)e=_(e/b);return _(r+(b+1)*e/(e+u))}function R(e){var t,n,r,i,o,u,d,m,g,v,y=[],b=e.length,w=0,S=p,x=h;for(n=e.lastIndexOf(f),n<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&E("not-basic"),y.push(e.charCodeAt(r));for(i=n>0?n+1:0;i<b;){for(o=w,u=1,d=s;;d+=s){if(i>=b&&E("invalid-input"),m=N(e.charCodeAt(i++)),(m>=s||m>_((a-w)/u))&&E("overflow"),w+=m*u,g=d<=x?l:d>=x+c?c:d-x,m<g)break;v=s-g,u>_(a/v)&&E("overflow"),u*=v}t=y.length+1,x=C(w-o,t,0==o),_(w/t)>a-S&&E("overflow"),S+=_(w/t),w%=t,y.splice(w++,0,S)}return A(y)}function O(e){var t,n,r,i,o,u,d,m,g,v,y,b,S,x,A,N=[];for(e=k(e),b=e.length,t=p,n=0,o=h,u=0;u<b;++u)y=e[u],y<128&&N.push(w(y));r=i=N.length,i&&N.push(f);while(r<b){for(d=a,u=0;u<b;++u)y=e[u],y>=t&&y<d&&(d=y);for(S=r+1,d-t>_((a-n)/S)&&E("overflow"),n+=(d-t)*S,t=d,u=0;u<b;++u)if(y=e[u],y<t&&++n>a&&E("overflow"),y==t){for(m=n,g=s;;g+=s){if(v=g<=o?l:g>=o+c?c:g-o,m<v)break;A=m-v,x=s-v,N.push(w(T(v+A%x,0))),m=_(A/x)}N.push(w(T(m,0))),o=C(n,S,r==i),n=0,++r}++n,++t}return N.join("")}function I(e){return x(e,(function(e){return m.test(e)?R(e.slice(4).toLowerCase()):e}))}function D(e){return x(e,(function(e){return g.test(e)?"xn--"+O(e):e}))}o={version:"1.4.1",ucs2:{decode:k,encode:A},decode:R,encode:O,toASCII:D,toUnicode:I},r=function(){return o}.call(t,n,t,e),void 0===r||(e.exports=r)}()},63974:function(e,t,n){"use strict";var r=n(95781);function i(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var o=/^([a-z0-9.+-]+:)/i,a=/:[0-9]*$/,s=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,l=["<",">",'"',"`"," ","\r","\n","\t"],c=["{","}","|","\\","^","`"].concat(l),u=["'"].concat(c),d=["%","/","?",";","#"].concat(u),h=["/","?","#"],p=255,f=/^[+a-z0-9A-Z_-]{0,63}$/,m=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,g={javascript:!0,"javascript:":!0},v={javascript:!0,"javascript:":!0},y={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},b=n(12150);function _(e,t,n){if(e&&"object"===typeof e&&e instanceof i)return e;var r=new i;return r.parse(e,t,n),r}function w(e){return"string"===typeof e&&(e=_(e)),e instanceof i?e.format():i.prototype.format.call(e)}function E(e,t){return _(e,!1,!0).resolve(t)}function S(e,t){return e?_(e,!1,!0).resolveObject(t):t}i.prototype.parse=function(e,t,n){if("string"!==typeof e)throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var i=e.indexOf("?"),a=-1!==i&&i<e.indexOf("#")?"?":"#",l=e.split(a),c=/\\/g;l[0]=l[0].replace(c,"/"),e=l.join(a);var _=e;if(_=_.trim(),!n&&1===e.split("#").length){var w=s.exec(_);if(w)return this.path=_,this.href=_,this.pathname=w[1],w[2]?(this.search=w[2],this.query=t?b.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var E=o.exec(_);if(E){E=E[0];var S=E.toLowerCase();this.protocol=S,_=_.substr(E.length)}if(n||E||_.match(/^\/\/[^@/]+@[^@/]+/)){var x="//"===_.substr(0,2);!x||E&&v[E]||(_=_.substr(2),this.slashes=!0)}if(!v[E]&&(x||E&&!y[E])){for(var k,A,N=-1,T=0;T<h.length;T++){var C=_.indexOf(h[T]);-1!==C&&(-1===N||C<N)&&(N=C)}A=-1===N?_.lastIndexOf("@"):_.lastIndexOf("@",N),-1!==A&&(k=_.slice(0,A),_=_.slice(A+1),this.auth=decodeURIComponent(k)),N=-1;for(T=0;T<d.length;T++){C=_.indexOf(d[T]);-1!==C&&(-1===N||C<N)&&(N=C)}-1===N&&(N=_.length),this.host=_.slice(0,N),_=_.slice(N),this.parseHost(),this.hostname=this.hostname||"";var R="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!R)for(var O=this.hostname.split(/\./),I=(T=0,O.length);T<I;T++){var D=O[T];if(D&&!D.match(f)){for(var L="",P=0,M=D.length;P<M;P++)D.charCodeAt(P)>127?L+="x":L+=D[P];if(!L.match(f)){var F=O.slice(0,T),B=O.slice(T+1),$=D.match(m);$&&(F.push($[1]),B.unshift($[2])),B.length&&(_="/"+B.join(".")+_),this.hostname=F.join(".");break}}}this.hostname.length>p?this.hostname="":this.hostname=this.hostname.toLowerCase(),R||(this.hostname=r.toASCII(this.hostname));var j=this.port?":"+this.port:"",U=this.hostname||"";this.host=U+j,this.href+=this.host,R&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==_[0]&&(_="/"+_))}if(!g[S])for(T=0,I=u.length;T<I;T++){var V=u[T];if(-1!==_.indexOf(V)){var K=encodeURIComponent(V);K===V&&(K=escape(V)),_=_.split(V).join(K)}}var H=_.indexOf("#");-1!==H&&(this.hash=_.substr(H),_=_.slice(0,H));var G=_.indexOf("?");if(-1!==G?(this.search=_.substr(G),this.query=_.substr(G+1),t&&(this.query=b.parse(this.query)),_=_.slice(0,G)):t&&(this.search="",this.query={}),_&&(this.pathname=_),y[S]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){j=this.pathname||"";var z=this.search||"";this.path=j+z}return this.href=this.format(),this},i.prototype.format=function(){var e=this.auth||"";e&&(e=encodeURIComponent(e),e=e.replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",i=!1,o="";this.host?i=e+this.host:this.hostname&&(i=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&"object"===typeof this.query&&Object.keys(this.query).length&&(o=b.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var a=this.search||o&&"?"+o||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||y[t])&&!1!==i?(i="//"+(i||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):i||(i=""),r&&"#"!==r.charAt(0)&&(r="#"+r),a&&"?"!==a.charAt(0)&&(a="?"+a),n=n.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})),a=a.replace("#","%23"),t+i+n+a+r},i.prototype.resolve=function(e){return this.resolveObject(_(e,!1,!0)).format()},i.prototype.resolveObject=function(e){if("string"===typeof e){var t=new i;t.parse(e,!1,!0),e=t}for(var n=new i,r=Object.keys(this),o=0;o<r.length;o++){var a=r[o];n[a]=this[a]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var s=Object.keys(e),l=0;l<s.length;l++){var c=s[l];"protocol"!==c&&(n[c]=e[c])}return y[n.protocol]&&n.hostname&&!n.pathname&&(n.pathname="/",n.path=n.pathname),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!y[e.protocol]){for(var u=Object.keys(e),d=0;d<u.length;d++){var h=u[d];n[h]=e[h]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||v[e.protocol])n.pathname=e.pathname;else{var p=(e.pathname||"").split("/");while(p.length&&!(e.host=p.shift()));e.host||(e.host=""),e.hostname||(e.hostname=""),""!==p[0]&&p.unshift(""),p.length<2&&p.unshift(""),n.pathname=p.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var f=n.pathname||"",m=n.search||"";n.path=f+m}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var g=n.pathname&&"/"===n.pathname.charAt(0),b=e.host||e.pathname&&"/"===e.pathname.charAt(0),_=b||g||n.host&&e.pathname,w=_,E=n.pathname&&n.pathname.split("/")||[],S=(p=e.pathname&&e.pathname.split("/")||[],n.protocol&&!y[n.protocol]);if(S&&(n.hostname="",n.port=null,n.host&&(""===E[0]?E[0]=n.host:E.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===p[0]?p[0]=e.host:p.unshift(e.host)),e.host=null),_=_&&(""===p[0]||""===E[0])),b)n.host=e.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?e.hostname:n.hostname,n.search=e.search,n.query=e.query,E=p;else if(p.length)E||(E=[]),E.pop(),E=E.concat(p),n.search=e.search,n.query=e.query;else if(null!=e.search){if(S){n.host=E.shift(),n.hostname=n.host;var x=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@");x&&(n.auth=x.shift(),n.hostname=x.shift(),n.host=n.hostname)}return n.search=e.search,n.query=e.query,null===n.pathname&&null===n.search||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!E.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var k=E.slice(-1)[0],A=(n.host||e.host||E.length>1)&&("."===k||".."===k)||""===k,N=0,T=E.length;T>=0;T--)k=E[T],"."===k?E.splice(T,1):".."===k?(E.splice(T,1),N++):N&&(E.splice(T,1),N--);if(!_&&!w)for(;N--;N)E.unshift("..");!_||""===E[0]||E[0]&&"/"===E[0].charAt(0)||E.unshift(""),A&&"/"!==E.join("/").substr(-1)&&E.push("");var C=""===E[0]||E[0]&&"/"===E[0].charAt(0);if(S){n.hostname=C?"":E.length?E.shift():"",n.host=n.hostname;x=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@");x&&(n.auth=x.shift(),n.hostname=x.shift(),n.host=n.hostname)}return _=_||n.host&&E.length,_&&!C&&E.unshift(""),E.length>0?n.pathname=E.join("/"):(n.pathname=null,n.path=null),null===n.pathname&&null===n.search||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},i.prototype.parseHost=function(){var e=this.host,t=a.exec(e);t&&(t=t[0],":"!==t&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},t.parse=_,t.resolve=E,t.resolveObject=S,t.format=w,t.Url=i},94152:function(e,t,n){var r=n(9776);function i(e,t){if(o("noDeprecation"))return e;var n=!1;function i(){if(!n){if(o("throwDeprecation"))throw new Error(t);o("traceDeprecation")?r.trace(t):r.warn(t),n=!0}return e.apply(this,arguments)}return i}function o(e){try{if(!n.g.localStorage)return!1}catch(r){return!1}var t=n.g.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}e.exports=i},68084:function(e){e.exports=function(e){return e&&"object"===typeof e&&"function"===typeof e.copy&&"function"===typeof e.fill&&"function"===typeof e.readUInt8}},20943:function(e,t,n){"use strict";var r=n(26215),i=n(79613),o=n(37990),a=n(27779);function s(e){return e.call.bind(e)}var l="undefined"!==typeof BigInt,c="undefined"!==typeof Symbol,u=s(Object.prototype.toString),d=s(Number.prototype.valueOf),h=s(String.prototype.valueOf),p=s(Boolean.prototype.valueOf);if(l)var f=s(BigInt.prototype.valueOf);if(c)var m=s(Symbol.prototype.valueOf);function g(e,t){if("object"!==typeof e)return!1;try{return t(e),!0}catch(n){return!1}}function v(e){return"undefined"!==typeof Promise&&e instanceof Promise||null!==e&&"object"===typeof e&&"function"===typeof e.then&&"function"===typeof e.catch}function y(e){return"undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):a(e)||U(e)}function b(e){return"Uint8Array"===o(e)}function _(e){return"Uint8ClampedArray"===o(e)}function w(e){return"Uint16Array"===o(e)}function E(e){return"Uint32Array"===o(e)}function S(e){return"Int8Array"===o(e)}function x(e){return"Int16Array"===o(e)}function k(e){return"Int32Array"===o(e)}function A(e){return"Float32Array"===o(e)}function N(e){return"Float64Array"===o(e)}function T(e){return"BigInt64Array"===o(e)}function C(e){return"BigUint64Array"===o(e)}function R(e){return"[object Map]"===u(e)}function O(e){return"undefined"!==typeof Map&&(R.working?R(e):e instanceof Map)}function I(e){return"[object Set]"===u(e)}function D(e){return"undefined"!==typeof Set&&(I.working?I(e):e instanceof Set)}function L(e){return"[object WeakMap]"===u(e)}function P(e){return"undefined"!==typeof WeakMap&&(L.working?L(e):e instanceof WeakMap)}function M(e){return"[object WeakSet]"===u(e)}function F(e){return M(e)}function B(e){return"[object ArrayBuffer]"===u(e)}function $(e){return"undefined"!==typeof ArrayBuffer&&(B.working?B(e):e instanceof ArrayBuffer)}function j(e){return"[object DataView]"===u(e)}function U(e){return"undefined"!==typeof DataView&&(j.working?j(e):e instanceof DataView)}t.isArgumentsObject=r,t.isGeneratorFunction=i,t.isTypedArray=a,t.isPromise=v,t.isArrayBufferView=y,t.isUint8Array=b,t.isUint8ClampedArray=_,t.isUint16Array=w,t.isUint32Array=E,t.isInt8Array=S,t.isInt16Array=x,t.isInt32Array=k,t.isFloat32Array=A,t.isFloat64Array=N,t.isBigInt64Array=T,t.isBigUint64Array=C,R.working="undefined"!==typeof Map&&R(new Map),t.isMap=O,I.working="undefined"!==typeof Set&&I(new Set),t.isSet=D,L.working="undefined"!==typeof WeakMap&&L(new WeakMap),t.isWeakMap=P,M.working="undefined"!==typeof WeakSet&&M(new WeakSet),t.isWeakSet=F,B.working="undefined"!==typeof ArrayBuffer&&B(new ArrayBuffer),t.isArrayBuffer=$,j.working="undefined"!==typeof ArrayBuffer&&"undefined"!==typeof DataView&&j(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=U;var V="undefined"!==typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function K(e){return"[object SharedArrayBuffer]"===u(e)}function H(e){return"undefined"!==typeof V&&("undefined"===typeof K.working&&(K.working=K(new V)),K.working?K(e):e instanceof V)}function G(e){return"[object AsyncFunction]"===u(e)}function z(e){return"[object Map Iterator]"===u(e)}function X(e){return"[object Set Iterator]"===u(e)}function q(e){return"[object Generator]"===u(e)}function W(e){return"[object WebAssembly.Module]"===u(e)}function Y(e){return g(e,d)}function Q(e){return g(e,h)}function J(e){return g(e,p)}function Z(e){return l&&g(e,f)}function ee(e){return c&&g(e,m)}function te(e){return Y(e)||Q(e)||J(e)||Z(e)||ee(e)}function ne(e){return"undefined"!==typeof Uint8Array&&($(e)||H(e))}t.isSharedArrayBuffer=H,t.isAsyncFunction=G,t.isMapIterator=z,t.isSetIterator=X,t.isGeneratorObject=q,t.isWebAssemblyCompiledModule=W,t.isNumberObject=Y,t.isStringObject=Q,t.isBooleanObject=J,t.isBigIntObject=Z,t.isSymbolObject=ee,t.isBoxedPrimitive=te,t.isAnyArrayBuffer=ne,["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})}))},10060:function(e,t,n){var r=n(49663),i=n(9776),o=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++)n[t[r]]=Object.getOwnPropertyDescriptor(e,t[r]);return n},a=/%[sdj%]/g;t.format=function(e){if(!k(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(u(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,i=r.length,o=String(e).replace(a,(function(e){if("%%"===e)return"%";if(n>=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(t){return"[Circular]"}default:return e}})),s=r[n];n<i;s=r[++n])E(s)||!C(s)?o+=" "+s:o+=" "+u(s);return o},t.deprecate=function(e,n){if("undefined"!==typeof r&&!0===r.noDeprecation)return e;if("undefined"===typeof r)return function(){return t.deprecate(e,n).apply(this,arguments)};var o=!1;function a(){if(!o){if(r.throwDeprecation)throw new Error(n);r.traceDeprecation?i.trace(n):i.error(n),o=!0}return e.apply(this,arguments)}return a};var s={},l=/^$/;if({NODE_ENV:"production",BASE_URL:"/"}.NODE_DEBUG){var c={NODE_ENV:"production",BASE_URL:"/"}.NODE_DEBUG;c=c.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),l=new RegExp("^"+c+"$","i")}function u(e,n){var r={seen:[],stylize:h};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),w(n)?r.showHidden=n:n&&t._extend(r,n),N(r.showHidden)&&(r.showHidden=!1),N(r.depth)&&(r.depth=2),N(r.colors)&&(r.colors=!1),N(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=d),f(r,e,r.depth)}function d(e,t){var n=u.styles[t];return n?"["+u.colors[n][0]+"m"+e+"["+u.colors[n][1]+"m":e}function h(e,t){return e}function p(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}function f(e,n,r){if(e.customInspect&&n&&I(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,e);return k(i)||(i=f(e,i,r)),i}var o=m(e,n);if(o)return o;var a=Object.keys(n),s=p(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(n)),O(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return g(n);if(0===a.length){if(I(n)){var l=n.name?": "+n.name:"";return e.stylize("[Function"+l+"]","special")}if(T(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(R(n))return e.stylize(Date.prototype.toString.call(n),"date");if(O(n))return g(n)}var c,u="",d=!1,h=["{","}"];if(_(n)&&(d=!0,h=["[","]"]),I(n)){var w=n.name?": "+n.name:"";u=" [Function"+w+"]"}return T(n)&&(u=" "+RegExp.prototype.toString.call(n)),R(n)&&(u=" "+Date.prototype.toUTCString.call(n)),O(n)&&(u=" "+g(n)),0!==a.length||d&&0!=n.length?r<0?T(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),c=d?v(e,n,r,s,a):a.map((function(t){return y(e,n,r,s,t,d)})),e.seen.pop(),b(c,u,h)):h[0]+u+h[1]}function m(e,t){if(N(t))return e.stylize("undefined","undefined");if(k(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return x(t)?e.stylize(""+t,"number"):w(t)?e.stylize(""+t,"boolean"):E(t)?e.stylize("null","null"):void 0}function g(e){return"["+Error.prototype.toString.call(e)+"]"}function v(e,t,n,r,i){for(var o=[],a=0,s=t.length;a<s;++a)B(t,String(a))?o.push(y(e,t,n,r,String(a),!0)):o.push("");return i.forEach((function(i){i.match(/^\d+$/)||o.push(y(e,t,n,r,i,!0))})),o}function y(e,t,n,r,i,o){var a,s,l;if(l=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]},l.get?s=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(s=e.stylize("[Setter]","special")),B(r,i)||(a="["+i+"]"),s||(e.seen.indexOf(l.value)<0?(s=E(n)?f(e,l.value,null):f(e,l.value,n-1),s.indexOf("\n")>-1&&(s=o?s.split("\n").map((function(e){return" "+e})).join("\n").slice(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n"))):s=e.stylize("[Circular]","special")),N(a)){if(o&&i.match(/^\d+$/))return s;a=JSON.stringify(""+i),a.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.slice(1,-1),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function b(e,t,n){var r=e.reduce((function(e,t){return t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0);return r>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}function _(e){return Array.isArray(e)}function w(e){return"boolean"===typeof e}function E(e){return null===e}function S(e){return null==e}function x(e){return"number"===typeof e}function k(e){return"string"===typeof e}function A(e){return"symbol"===typeof e}function N(e){return void 0===e}function T(e){return C(e)&&"[object RegExp]"===L(e)}function C(e){return"object"===typeof e&&null!==e}function R(e){return C(e)&&"[object Date]"===L(e)}function O(e){return C(e)&&("[object Error]"===L(e)||e instanceof Error)}function I(e){return"function"===typeof e}function D(e){return null===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e||"symbol"===typeof e||"undefined"===typeof e}function L(e){return Object.prototype.toString.call(e)}function P(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(e=e.toUpperCase(),!s[e])if(l.test(e)){var n=r.pid;s[e]=function(){var r=t.format.apply(t,arguments);i.error("%s %d: %s",e,n,r)}}else s[e]=function(){};return s[e]},t.inspect=u,u.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=n(20943),t.isArray=_,t.isBoolean=w,t.isNull=E,t.isNullOrUndefined=S,t.isNumber=x,t.isString=k,t.isSymbol=A,t.isUndefined=N,t.isRegExp=T,t.types.isRegExp=T,t.isObject=C,t.isDate=R,t.types.isDate=R,t.isError=O,t.types.isNativeError=O,t.isFunction=I,t.isPrimitive=D,t.isBuffer=n(68084);var M=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function F(){var e=new Date,t=[P(e.getHours()),P(e.getMinutes()),P(e.getSeconds())].join(":");return[e.getDate(),M[e.getMonth()],t].join(" ")}function B(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){i.log("%s - %s",F(),t.format.apply(t,arguments))},t.inherits=n(32403),t._extend=function(e,t){if(!t||!C(t))return e;var n=Object.keys(t),r=n.length;while(r--)e[n[r]]=t[n[r]];return e};var $="undefined"!==typeof Symbol?Symbol("util.promisify.custom"):void 0;function j(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}function U(e){if("function"!==typeof e)throw new TypeError('The "original" argument must be of type Function');function t(){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n]);var i=t.pop();if("function"!==typeof i)throw new TypeError("The last argument must be of type Function");var o=this,a=function(){return i.apply(o,arguments)};e.apply(this,t).then((function(e){r.nextTick(a.bind(null,null,e))}),(function(e){r.nextTick(j.bind(null,e,a))}))}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,o(e)),t}t.promisify=function(e){if("function"!==typeof e)throw new TypeError('The "original" argument must be of type Function');if($&&e[$]){var t=e[$];if("function"!==typeof t)throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,$,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,r=new Promise((function(e,r){t=e,n=r})),i=[],o=0;o<arguments.length;o++)i.push(arguments[o]);i.push((function(e,r){e?n(e):t(r)}));try{e.apply(this,i)}catch(a){n(a)}return r}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),$&&Object.defineProperty(t,$,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,o(e))},t.promisify.custom=$,t.callbackify=U},25443:function(e,t,n){"use strict";n.d(t,{i0:function(){return re},L8:function(){return ne},aH:function(){return te}});var r=n(9274);function i(){return o().__VUE_DEVTOOLS_GLOBAL_HOOK__}function o(){return"undefined"!==typeof navigator&&"undefined"!==typeof window?window:"undefined"!==typeof globalThis?globalThis:{}}const a="function"===typeof Proxy,s="devtools-plugin:setup",l="plugin:settings:set";let c,u;function d(){var e;return void 0!==c||("undefined"!==typeof window&&window.performance?(c=!0,u=window.performance):"undefined"!==typeof globalThis&&(null===(e=globalThis.perf_hooks)||void 0===e?void 0:e.performance)?(c=!0,u=globalThis.perf_hooks.performance):c=!1),c}function h(){return d()?u.now():Date.now()}class p{constructor(e,t){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=t;const n={};if(e.settings)for(const a in e.settings){const t=e.settings[a];n[a]=t.defaultValue}const r=`__vue-devtools-plugin-settings__${e.id}`;let i=Object.assign({},n);try{const e=localStorage.getItem(r),t=JSON.parse(e);Object.assign(i,t)}catch(o){}this.fallbacks={getSettings(){return i},setSettings(e){try{localStorage.setItem(r,JSON.stringify(e))}catch(o){}i=e},now(){return h()}},t&&t.on(l,((e,t)=>{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=ae((function(e,t){var n={};return ie(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=se(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=(ae((function(e,t){var n={};return ie(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=se(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})),ae((function(e,t){var n={};return ie(t).forEach((function(t){var r=t.key,i=t.val;i=e+i,n[r]=function(){if(!e||se(this.$store,"mapGetters",e))return this.$store.getters[i]},n[r].vuex=!0})),n}))),re=ae((function(e,t){var n={};return ie(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=se(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 ie(e){return oe(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 oe(e){return Array.isArray(e)||v(e)}function ae(e){return function(t,n){return"string"!==typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}function se(e,t,n){var r=e._modulesNamespaceMap[n];return r}},37990:function(e,t,n){"use strict";var r=n(6853),i=n(79126),o=n(92726),a=n(56566),s=n(22356),l=a("Object.prototype.toString"),c=n(67349)(),u="undefined"===typeof globalThis?n.g:globalThis,d=i(),h=a("String.prototype.slice"),p=Object.getPrototypeOf,f=a("Array.prototype.indexOf",!0)||function(e,t){for(var n=0;n<e.length;n+=1)if(e[n]===t)return n;return-1},m={__proto__:null};r(d,c&&s&&p?function(e){var t=new u[e];if(Symbol.toStringTag in t){var n=p(t),r=s(n,Symbol.toStringTag);if(!r){var i=p(n);r=s(i,Symbol.toStringTag)}m["$"+e]=o(r.get)}}:function(e){var t=new u[e],n=t.slice||t.set;n&&(m["$"+e]=o(n))});var g=function(e){var t=!1;return r(m,(function(n,r){if(!t)try{"$"+n(e)===r&&(t=h(r,1))}catch(i){}})),t},v=function(e){var t=!1;return r(m,(function(n,r){if(!t)try{n(e),t=h(r,1)}catch(i){}})),t};e.exports=function(e){if(!e||"object"!==typeof e)return!1;if(!c){var t=h(l(e),8,-1);return f(d,t)>-1?t:"Object"===t&&v(e)}return s?g(e):null}},43199:function(e){e.exports=n;var t=Object.prototype.hasOwnProperty;function n(){for(var e={},n=0;n<arguments.length;n++){var r=arguments[n];for(var i in r)t.call(r,i)&&(e[i]=r[i])}return e}},99048: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}}},93282: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;n<i;n++)t.push(arguments[n]);return t}function i(e,t,n){var r=t===e.head?new s(n,null,t,e):new s(n,t,t.next,e);return null===r.next&&(e.tail=r),null===r.prev&&(e.head=r),e.length++,r}function o(e,t){e.tail=new s(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function a(e,t){e.head=new s(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function s(e,t,n,r){if(!(this instanceof s))return new s(e,t,n,r);this.list=r,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,n?(n.prev=this,this.next=n):this.next=null}e.exports=r,r.Node=s,r.create=r,r.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,n=e.prev;return t&&(t.prev=n),n&&(n.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=n),e.list.length--,e.next=null,e.prev=null,e.list=null,t},r.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}},r.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}},r.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)o(this,arguments[e]);return this.length},r.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)a(this,arguments[e]);return this.length},r.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}},r.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}},r.prototype.forEach=function(e,t){t=t||this;for(var n=this.head,r=0;null!==n;r++)e.call(t,n.value,r,this),n=n.next},r.prototype.forEachReverse=function(e,t){t=t||this;for(var n=this.tail,r=this.length-1;null!==n;r--)e.call(t,n.value,r,this),n=n.prev},r.prototype.get=function(e){for(var t=0,n=this.head;null!==n&&t<e;t++)n=n.next;if(t===e&&null!==n)return n.value},r.prototype.getReverse=function(e){for(var t=0,n=this.tail;null!==n&&t<e;t++)n=n.prev;if(t===e&&null!==n)return n.value},r.prototype.map=function(e,t){t=t||this;for(var n=new r,i=this.head;null!==i;)n.push(e.call(t,i.value,this)),i=i.next;return n},r.prototype.mapReverse=function(e,t){t=t||this;for(var n=new r,i=this.tail;null!==i;)n.push(e.call(t,i.value,this)),i=i.prev;return n},r.prototype.reduce=function(e,t){var n,r=this.head;if(arguments.length>1)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(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var i=0,o=this.head;null!==o&&i<e;i++)o=o.next;for(;null!==o&&i<t;i++,o=o.next)n.push(o.value);return n},r.prototype.sliceReverse=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(t<e||t<0)return n;e<0&&(e=0),t>this.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<e;r++)o=o.next;var a=[];for(r=0;o&&r<t;r++)a.push(o.value),o=this.removeNode(o);null===o&&(o=this.tail),o!==this.head&&o!==this.tail&&(o=o.prev);for(r=0;r<n.length;r++)o=i(this,o,n[r]);return a},r.prototype.reverse=function(){for(var e=this.head,t=this.tail,n=e;null!==n;n=n.prev){var r=n.prev;n.prev=n.next,n.next=r}return this.head=t,this.tail=e,this};try{n(99048)(r)}catch(l){}},99086:function(e,t,n){"use strict";e.exports=n.p+"img/icon.42954c0f.svg"},6871:function(e,t,n){"use strict";e.exports=n.p+"img/rancher-logo.920195b3.svg"},43982:function(e,t,n){"use strict";e.exports=n.p+"img/rancher-logo.487fcd1d.svg"},70182:function(e,t,n){"use strict";e.exports=n.p+"img/rancher-logo.788ed883.svg"},7453:function(e,t,n){"use strict";e.exports=n.p+"img/rancher-logo.ef1ab5b0.svg"},33945:function(e,t,n){"use strict";e.exports=n.p+"img/rancher-logo.f190bd21.svg"},16344:function(e,t,n){"use strict";e.exports=n.p+"img/rancher-logo.fd684d42.svg"},90249:function(e,t,n){"use strict";e.exports=n.p+"img/rancher-logo.8d98c901.svg"},85672:function(e,t,n){"use strict";e.exports=n.p+"img/rancher-logo.b8492368.svg"},42166:function(e,t,n){"use strict";e.exports=n.p+"img/generic-catalog.1842a50e.svg"},2134:function(e,t,n){"use strict";e.exports=n.p+"img/banner.00f803a6.svg"},83245:function(e,t,n){"use strict";e.exports=n.p+"img/banner.e66743c3.svg"},66070:function(e,t,n){"use strict";e.exports=n.p+"img/login-landscape.6e1253bb.svg"},21090:function(e,t,n){"use strict";e.exports=n.p+"img/rancher-logo.3680d0eb.svg"},80335:function(e,t,n){"use strict";e.exports=n.p+"img/decoration-cloud-big-white.4229596e.svg"},71186:function(e,t,n){"use strict";e.exports=n.p+"img/decoration-ground.3f64fcbb.svg"},12056:function(e,t,n){"use strict";e.exports=n.p+"img/error-desert-landscape.2a9d44f4.svg"},97957:function(e,t,n){"use strict";e.exports=n.p+"img/half-logo.1bc560ee.svg"},54482:function(e,t,n){"use strict";e.exports=n.p+"img/harvester.0168283e.svg"},40979:function(e,t,n){"use strict";e.exports=n.p+"img/login-landscape.60cd520b.svg"},7137:function(e,t,n){"use strict";e.exports=n.p+"img/rancher-logo.d773077a.svg"},38953:function(e,t,n){"use strict";e.exports=n.p+"img/setup-step-one.7b236b40.svg"},27890:function(e,t,n){"use strict";e.exports=n.p+"img/sunglasses.157dca2a.svg"},75554:function(e,t,n){"use strict";e.exports=n.p+"img/aliyun-black.a9967561.svg"},30024:function(e,t,n){"use strict";e.exports=n.p+"img/aliyun.d05bff3f.svg"},47649:function(e,t,n){"use strict";e.exports=n.p+"img/aliyunecs-black.93dd5b27.svg"},74615:function(e,t,n){"use strict";e.exports=n.p+"img/aliyunecs.b57b715b.svg"},46784:function(e,t,n){"use strict";e.exports=n.p+"img/amazonec2-black.5d49a518.svg"},34578:function(e,t,n){"use strict";e.exports=n.p+"img/amazonec2.259f7435.svg"},15477:function(e,t,n){"use strict";e.exports=n.p+"img/amazoneks-black.e3999509.svg"},8075:function(e,t,n){"use strict";e.exports=n.p+"img/amazoneks.44a8a254.svg"},86495:function(e,t,n){"use strict";e.exports=n.p+"img/aws.988ade4f.svg"},9627:function(e,t,n){"use strict";e.exports=n.p+"img/azure-black.4bcdbe6b.svg"},87357:function(e,t,n){"use strict";e.exports=n.p+"img/azure.7d30d447.svg"},260:function(e,t,n){"use strict";e.exports=n.p+"img/azuread-black.d272db7e.svg"},89766:function(e,t,n){"use strict";e.exports=n.p+"img/azuread.7914bb78.svg"},49802:function(e,t,n){"use strict";e.exports=n.p+"img/azureaks-black.09cdc074.svg"},98752:function(e,t,n){"use strict";e.exports=n.p+"img/azureaks.239d69fb.svg"},16467:function(e,t,n){"use strict";e.exports=n.p+"img/baidu-black.32fb0569.svg"},30405:function(e,t,n){"use strict";e.exports=n.p+"img/baidu.063c3510.svg"},32017:function(e,t,n){"use strict";e.exports=n.p+"img/cloudca-black.2c8fc541.svg"},68391:function(e,t,n){"use strict";e.exports=n.p+"img/cloudca.fb088dd5.svg"},19297:function(e,t,n){"use strict";e.exports=n.p+"img/cloudscale-black.87d94917.svg"},92055:function(e,t,n){"use strict";e.exports=n.p+"img/cloudscale.dd348191.svg"},64929:function(e,t,n){"use strict";e.exports=n.p+"img/custom.2ff19310.svg"},11072:function(e,t,n){"use strict";e.exports=n.p+"img/digitalocean-black.3d5310a1.svg"},64018:function(e,t,n){"use strict";e.exports=n.p+"img/digitalocean.b0aa5786.svg"},66899:function(e,t,n){"use strict";e.exports=n.p+"img/equinix-black.0870820e.svg"},83461:function(e,t,n){"use strict";e.exports=n.p+"img/equinix.c112c186.svg"},25876:function(e,t,n){"use strict";e.exports=n.p+"img/exoscale.af115826.svg"},96282:function(e,t,n){"use strict";e.exports=n.p+"img/gcp.f7a1243c.svg"},73849:function(e,t,n){"use strict";e.exports=n.p+"img/gke-black.64bdd882.svg"},25119:function(e,t,n){"use strict";e.exports=n.p+"img/gke.4c1ecbcd.svg"},19685:function(e,t,n){"use strict";e.exports=n.p+"img/google.789cf860.svg"},42614:function(e,t,n){"use strict";e.exports=n.p+"img/googlegke-black.64bdd882.svg"},52908:function(e,t,n){"use strict";e.exports=n.p+"img/googlegke.4c1ecbcd.svg"},59870:function(e,t,n){"use strict";e.exports=n.p+"img/harvester.0168283e.svg"},23412:function(e,t,n){"use strict";e.exports=n.p+"img/huaweicce-black.d378b855.svg"},63350:function(e,t,n){"use strict";e.exports=n.p+"img/huaweicce.22b4ecea.svg"},5231:function(e,t,n){"use strict";e.exports=n.p+"img/import.ac396542.svg"},4083:function(e,t,n){"use strict";e.exports=n.p+"img/k3s-black.b4765216.svg"},17861:function(e,t,n){"use strict";e.exports=n.p+"img/k3s.f0881505.svg"},6438:function(e,t,n){"use strict";e.exports=n.p+"img/kubernetes-black.2ade6358.svg"},82044:function(e,t,n){"use strict";e.exports=n.p+"img/kubernetes.ac396542.svg"},74093:function(e,t,n){"use strict";e.exports=n.p+"img/linode.642005fe.svg"},49146:function(e,t,n){"use strict";e.exports=n.p+"img/linodelke-black.81aa799d.svg"},83475:function(e,t,n){"use strict";e.exports=n.p+"img/linodelke.642005fe.svg"},96844:function(e,t,n){"use strict";e.exports=n.p+"img/local-cluster.272d4fc9.svg"},63900:function(e,t,n){"use strict";e.exports=n.p+"img/minikube-black.94055a38.svg"},64398:function(e,t,n){"use strict";e.exports=n.p+"img/minikube.117e4a38.svg"},93755:function(e,t,n){"use strict";e.exports=n.p+"img/nutanix.b10c401f.svg"},85445:function(e,t,n){"use strict";e.exports=n.p+"img/oci-black.cd3524de.svg"},88699:function(e,t,n){"use strict";e.exports=n.p+"img/oci.3a81eed0.svg"},34082:function(e,t,n){"use strict";e.exports=n.p+"img/openstack-black.af3ac5a0.svg"},65992:function(e,t,n){"use strict";e.exports=n.p+"img/openstack.475580f8.svg"},75934:function(e,t,n){"use strict";e.exports=n.p+"img/oracle.74aae75e.svg"},11679:function(e,t,n){"use strict";e.exports=n.p+"img/oracleoke-black.ec0a34a2.svg"},19553:function(e,t,n){"use strict";e.exports=n.p+"img/oracleoke.64fac528.svg"},88106:function(e,t,n){"use strict";e.exports=n.p+"img/otc-black.5629758c.svg"},19680:function(e,t,n){"use strict";e.exports=n.p+"img/otc.1b7d926f.svg"},65259:function(e,t,n){"use strict";e.exports=n.p+"img/otccce.1b7d926f.svg"},28770:function(e,t,n){"use strict";e.exports=n.p+"img/outscale.d0d823da.svg"},80919:function(e,t,n){"use strict";e.exports=n.p+"img/ovhcloudmks.612c966f.svg"},95414:function(e,t,n){"use strict";e.exports=n.p+"img/ovhcloudpubliccloud.612c966f.svg"},29114:function(e,t,n){"use strict";e.exports=n.p+"img/packet-black.5fc90c03.svg"},39408:function(e,t,n){"use strict";e.exports=n.p+"img/packet.ef1f45fa.svg"},81516:function(e,t,n){"use strict";e.exports=n.p+"img/pinganyunecs-black.bf0b3440.svg"},73150:function(e,t,n){"use strict";e.exports=n.p+"img/pinganyunecs.b74db865.svg"},93223:function(e,t,n){"use strict";e.exports=n.p+"img/pnap-black.a7948015.svg"},30905:function(e,t,n){"use strict";e.exports=n.p+"img/pnap.81704b7a.svg"},69979:function(e,t,n){"use strict";e.exports=n.p+"img/rackspace-black.0e8f8bc4.svg"},53117:function(e,t,n){"use strict";e.exports=n.p+"img/rackspace.5e8dcb5a.svg"},14762:function(e,t,n){"use strict";e.exports=n.p+"img/rke.a01f31e7.svg"},24852:function(e,t,n){"use strict";e.exports=n.p+"img/rke2.a01f31e7.svg"},21007:function(e,t,n){"use strict";e.exports=n.p+"img/softlayer.5d9a5c2a.svg"},33367:function(e,t,n){"use strict";e.exports=n.p+"img/tencenttke-black.140c30e5.svg"},33609:function(e,t,n){"use strict";e.exports=n.p+"img/tencenttke.42042615.svg"},28235:function(e,t,n){"use strict";e.exports=n.p+"img/vmwarevsphere-black.454d68ed.svg"},40717:function(e,t,n){"use strict";e.exports=n.p+"img/vmwarevsphere.94d59db3.svg"},2889:function(e,t,n){"use strict";e.exports=n.p+"img/activedirectory.0baa2998.svg"},84924:function(e,t,n){"use strict";e.exports=n.p+"img/adfs.6e70726e.svg"},10820:function(e,t,n){"use strict";e.exports=n.p+"img/azuread.774efe5f.svg"},73311:function(e,t,n){"use strict";e.exports=n.p+"img/custom.6f45244d.svg"},88150:function(e,t,n){"use strict";e.exports=n.p+"img/email.b67ceff2.svg"},63220:function(e,t,n){"use strict";e.exports=n.p+"img/freeipa.ef110cc0.svg"},36743:function(e,t,n){"use strict";e.exports=n.p+"img/github.9c864145.svg"},66964:function(e,t,n){"use strict";e.exports=n.p+"img/googleoauth.4619a2a5.svg"},37190:function(e,t,n){"use strict";e.exports=n.p+"img/grafana.2db31bb8.svg"},66112:function(e,t,n){"use strict";e.exports=n.p+"img/jaeger.1c7d1266.svg"},7489:function(e,t,n){"use strict";e.exports=n.p+"img/keycloak.ca7b4848.svg"},46318:function(e,t,n){"use strict";e.exports=n.p+"img/kiali.d0e257dd.svg"},31780:function(e,t,n){"use strict";e.exports=n.p+"img/linux.a96776e5.svg"},45283:function(e,t,n){"use strict";e.exports=n.p+"img/longhorn.4809470b.svg"},68783:function(e,t,n){"use strict";e.exports=n.p+"img/neuvector.513801d3.svg"},35805:function(e,t,n){"use strict";e.exports=n.p+"img/okta.58a2aa35.svg"},60049:function(e,t,n){"use strict";e.exports=n.p+"img/openid.451743dd.svg"},16733:function(e,t,n){"use strict";e.exports=n.p+"img/openldap.59040f23.svg"},84779:function(e,t,n){"use strict";e.exports=n.p+"img/pagerduty.9871fbd3.svg"},9954:function(e,t,n){"use strict";e.exports=n.p+"img/ping.5b5afc6e.svg"},88670:function(e,t,n){"use strict";e.exports=n.p+"img/prometheus.be8ac54d.svg"},2898:function(e,t,n){"use strict";e.exports=n.p+"img/shibboleth.35ea1d68.svg"},78978:function(e,t,n){"use strict";e.exports=n.p+"img/slack.34dfd73f.svg"},38997:function(e,t,n){"use strict";e.exports=n.p+"img/webhook.f86c012b.svg"},93361:function(e,t,n){"use strict";e.exports=n.p+"img/windows.f862ed7d.svg"},88217:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAABjFBMVEVHcEwMMiwJLi4MMiwMMiwNMy0MMysMMiwNNC4MMiwMMiwMMiwMMiwMMiz///8MMix9ko7O1tUQNS+pt7UTODLn6+oNMy2/ycihr63c4eAONC5xh4RHZF/d4uFhenbi5+YrTUdyiIXM1NJsg4AqTEbJ0dAaPjjX3dyRo6C5xMPl6en2+Pjr7u4qS0YgQz0yUk1cdnLAysgPNC6GmZYfQj2TpKF7j4xrgn9vhoJPamZQa2cvUEuQoZ6Nn5xWcW3o7OuKnJk3VlH9/f2ls7Gvu7lMaGO9yMYUODMeQTzN1dTv8fEhRD5Tbmr19/eotrQzU06VpqPI0M/CzMpqgn68x8XS2djs7+5AXlqsubcVOTOerasdQDuYqKYwUUuClpN4jYlje3dUb2tSbWh6jotTbWmXp6X6+/vq7e3P19aSo6H4+fnK0tFBX1oZPTj09fXu8fB8kY41VVBCYFuuu7n+/v40VE9Xcm17kI3W3Nu2wb9IZWC+yMfg5OQ+XFc2VVBZc2+ntbO7xsSZqaY/XVnvk2EjAAAADnRSTlMArxyp8Siw8ifvrq3s8H1RQAIAAAFMSURBVDjLzZNVcwIxEICDH5Vd3B2KFYe6UHd3d3d37x9vrsNAe8Mdb51+D5lJ9stsks0SIpMrkAeFiCFEpkQBlAyRoyDlRCEsSAmW4G8FX2O9qrauwfU9ae/mCE01dsih17Zq0Ar9CUtBiHZ1wE+yVjcdzZOpnOAdBi4DAM4F85SFFQxjUIzIIursDlZYKRoHI8aWTHNUiO/ASfoiepSO/Baqlw2z4WkqbMPpOaauMxir4hjGGb2WCntwhi9PcHV5nAlz0yR7qWCGB3xP+p4DIdwohEKdPcYRdx97TQ8k8DGI+ApxpElaVKqgE0BXeOp9uMfPN8Qb2MIhAAdd9AegWZMXXAdwSx/VfwijiG1qtYlutnnUWk2+Fl6Auw+THiZ4q7m2yx5rfJC/3PPrm6s2w3/4cjxCicapJCJhQUIYweatEBPClEl5G1MiJl+FK1ex1JQuFwAAAABJRU5ErkJggg=="},51421:function(e,t,n){"use strict";e.exports=n.p+"img/favicon.20240f8a.png"},1229:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAAgVBMVEUAAAAkU/8kU/8kU/8kU/8kU/8kU/8kU/8kU/8kU/8kU/8kU/8kU/8kU/8kU/8kU/8kU/8kU/8kU/8kU/8kU/8kU/8kU/8kU/8kU/8kU/8kU/8kU/8kU/8kU/8kU/8kU/8kU/8kU/8kU/8kU/8kU/8kU/8kU/8kU/8kU/8kU/8kU//ULCqVAAAAKnRSTlMAjopHOdr8snNsY1Ae+aq3gEAqCfTyo1kvBOvm4sqglyYgGhbUmXVvNBL6rShDAAAAw0lEQVQ4y83Q2Q6CMBCF4aNYQG3LJpu74jrv/4ACTSEUEi4kxu/6n2RyMKUr+jhaGcthCvcRGr5dwLSmADPFgkOnWcsPUUrJBSnxm1FHfC4Dl4462HBBXX4eBTs66IBlZJjftzZRrAN5FmaQ1Ic6SJA6nufJbRs8pZTHrPnhsa74dhtAIcO3gdiNBIkzErg/COakrQaDU3FQU9leBGWhWbdq0CDilwvn/JqjZ1lf7hljKQatSFv+b/ASpIgAw0JLCTGpD5arSeJmn1I0AAAAAElFTkSuQmCC"},75190:function(e,t,n){"use strict";e.exports=n.p+"img/harvester.20240f8a.png"},50129:function(e,t,n){"use strict";e.exports=n.p+"img/wechat-qr-code.c0468b45.jpg"},20246:function(e){"use strict";e.exports=n},47008:function(e){"use strict";e.exports=t},9274:function(t){"use strict";t.exports=e},38453:function(){},79851:function(){},96087:function(){},79126:function(e,t,n){"use strict";var r=n(74481),i="undefined"===typeof globalThis?n.g:globalThis;e.exports=function(){for(var e=[],t=0;t<r.length;t++)"function"===typeof i[r[t]]&&(e[e.length]=r[t]);return e}},18313:function(e,t,n){var r=n(9776),i={exports:{}};function o(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach((function(t){var n=e[t];"object"!=typeof n||Object.isFrozen(n)||o(n)})),e}i.exports=o,i.exports.default=o;class a{constructor(e){void 0===e.data&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function s(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function l(e,...t){const n=Object.create(null);for(const r in e)n[r]=e[r];return t.forEach((function(e){for(const t in e)n[t]=e[t]})),n}const c="</span>",u=e=>!!e.scope||e.sublanguage&&e.language,d=(e,{prefix:t})=>{if(e.includes(".")){const n=e.split(".");return[`${t}${n.shift()}`,...n.map(((e,t)=>`${e}${"_".repeat(t+1)}`))].join(" ")}return`${t}${e}`};class h{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=s(e)}openNode(e){if(!u(e))return;let t="";t=e.sublanguage?`language-${e.language}`:d(e.scope,{prefix:this.classPrefix}),this.span(t)}closeNode(e){u(e)&&(this.buffer+=c)}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}const p=(e={})=>{const t={children:[]};return Object.assign(t,e),t};class f{constructor(){this.rootNode=p(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const t=p({scope:e});this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){while(this.closeNode());}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){return"string"===typeof t?e.addText(t):t.children&&(e.openNode(t),t.children.forEach((t=>this._walk(e,t))),e.closeNode(t)),e}static _collapse(e){"string"!==typeof e&&e.children&&(e.children.every((e=>"string"===typeof e))?e.children=[e.children.join("")]:e.children.forEach((e=>{f._collapse(e)})))}}class m extends f{constructor(e){super(),this.options=e}addKeyword(e,t){""!==e&&(this.openNode(t),this.addText(e),this.closeNode())}addText(e){""!==e&&this.add(e)}addSublanguage(e,t){const n=e.root;n.sublanguage=!0,n.language=t,this.add(n)}toHTML(){const e=new h(this,this.options);return e.value()}finalize(){return!0}}function g(e){return e?"string"===typeof e?e:e.source:null}function v(e){return _("(?=",e,")")}function y(e){return _("(?:",e,")*")}function b(e){return _("(?:",e,")?")}function _(...e){const t=e.map((e=>g(e))).join("");return t}function w(e){const t=e[e.length-1];return"object"===typeof t&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function E(...e){const t=w(e),n="("+(t.capture?"":"?:")+e.map((e=>g(e))).join("|")+")";return n}function S(e){return new RegExp(e.toString()+"|").exec("").length-1}function x(e,t){const n=e&&e.exec(t);return n&&0===n.index}const k=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function A(e,{joinWith:t}){let n=0;return e.map((e=>{n+=1;const t=n;let r=g(e),i="";while(r.length>0){const e=k.exec(r);if(!e){i+=r;break}i+=r.substring(0,e.index),r=r.substring(e.index+e[0].length),"\\"===e[0][0]&&e[1]?i+="\\"+String(Number(e[1])+t):(i+=e[0],"("===e[0]&&n++)}return i})).map((e=>`(${e})`)).join(t)}const N=/\b\B/,T="[a-zA-Z]\\w*",C="[a-zA-Z_]\\w*",R="\\b\\d+(\\.\\d+)?",O="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",I="\\b(0b[01]+)",D="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",L=(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=_(t,/.*\b/,e.binary,/\b.*/)),l({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(e,t)=>{0!==e.index&&t.ignoreMatch()}},e)},P={begin:"\\\\[\\s\\S]",relevance:0},M={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[P]},F={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[P]},B={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},$=function(e,t,n={}){const r=l({scope:"comment",begin:e,end:t,contains:[]},n);r.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const i=E("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return r.contains.push({begin:_(/[ ]+/,"(",i,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),r},j=$("//","$"),U=$("/\\*","\\*/"),V=$("#","$"),K={scope:"number",begin:R,relevance:0},H={scope:"number",begin:O,relevance:0},G={scope:"number",begin:I,relevance:0},z={begin:/(?=\/[^/\n]*\/)/,contains:[{scope:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[P,{begin:/\[/,end:/\]/,relevance:0,contains:[P]}]}]},X={scope:"title",begin:T,relevance:0},q={scope:"title",begin:C,relevance:0},W={begin:"\\.\\s*"+C,relevance:0},Y=function(e){return Object.assign(e,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})};var Q=Object.freeze({__proto__:null,MATCH_NOTHING_RE:N,IDENT_RE:T,UNDERSCORE_IDENT_RE:C,NUMBER_RE:R,C_NUMBER_RE:O,BINARY_NUMBER_RE:I,RE_STARTERS_RE:D,SHEBANG:L,BACKSLASH_ESCAPE:P,APOS_STRING_MODE:M,QUOTE_STRING_MODE:F,PHRASAL_WORDS_MODE:B,COMMENT:$,C_LINE_COMMENT_MODE:j,C_BLOCK_COMMENT_MODE:U,HASH_COMMENT_MODE:V,NUMBER_MODE:K,C_NUMBER_MODE:H,BINARY_NUMBER_MODE:G,REGEXP_MODE:z,TITLE_MODE:X,UNDERSCORE_TITLE_MODE:q,METHOD_GUARD:W,END_SAME_AS_BEGIN:Y});function J(e,t){const n=e.input[e.index-1];"."===n&&t.ignoreMatch()}function Z(e,t){void 0!==e.className&&(e.scope=e.className,delete e.className)}function ee(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=J,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,void 0===e.relevance&&(e.relevance=0))}function te(e,t){Array.isArray(e.illegal)&&(e.illegal=E(...e.illegal))}function ne(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function re(e,t){void 0===e.relevance&&(e.relevance=1)}const ie=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const n=Object.assign({},e);Object.keys(e).forEach((t=>{delete e[t]})),e.keywords=n.keywords,e.begin=_(n.beforeMatch,v(n.begin)),e.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},e.relevance=0,delete n.beforeMatch},oe=["of","and","for","in","not","or","if","then","parent","list","value"],ae="keyword";function se(e,t,n=ae){const r=Object.create(null);return"string"===typeof e?i(n,e.split(" ")):Array.isArray(e)?i(n,e):Object.keys(e).forEach((function(n){Object.assign(r,se(e[n],t,n))})),r;function i(e,n){t&&(n=n.map((e=>e.toLowerCase()))),n.forEach((function(t){const n=t.split("|");r[n[0]]=[e,le(n[0],n[1])]}))}}function le(e,t){return t?Number(t):ce(e)?0:1}function ce(e){return oe.includes(e.toLowerCase())}const ue={},de=e=>{r.error(e)},he=(e,...t)=>{r.log(`WARN: ${e}`,...t)},pe=(e,t)=>{ue[`${e}/${t}`]||(r.log(`Deprecated as of ${e}. ${t}`),ue[`${e}/${t}`]=!0)},fe=new Error;function me(e,t,{key:n}){let r=0;const i=e[n],o={},a={};for(let s=1;s<=t.length;s++)a[s+r]=i[s],o[s+r]=!0,r+=S(t[s-1]);e[n]=a,e[n]._emit=o,e[n]._multi=!0}function ge(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw de("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),fe;if("object"!==typeof e.beginScope||null===e.beginScope)throw de("beginScope must be object"),fe;me(e,e.begin,{key:"beginScope"}),e.begin=A(e.begin,{joinWith:""})}}function ve(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw de("skip, excludeEnd, returnEnd not compatible with endScope: {}"),fe;if("object"!==typeof e.endScope||null===e.endScope)throw de("endScope must be object"),fe;me(e,e.end,{key:"endScope"}),e.end=A(e.end,{joinWith:""})}}function ye(e){e.scope&&"object"===typeof e.scope&&null!==e.scope&&(e.beginScope=e.scope,delete e.scope)}function be(e){ye(e),"string"===typeof e.beginScope&&(e.beginScope={_wrap:e.beginScope}),"string"===typeof e.endScope&&(e.endScope={_wrap:e.endScope}),ge(e),ve(e)}function _e(e){function t(t,n){return new RegExp(g(t),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(n?"g":""))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(e,t){t.position=this.position++,this.matchIndexes[this.matchAt]=t,this.regexes.push([t,e]),this.matchAt+=S(e)+1}compile(){0===this.regexes.length&&(this.exec=()=>null);const e=this.regexes.map((e=>e[1]));this.matcherRe=t(A(e,{joinWith:"|"}),!0),this.lastIndex=0}exec(e){this.matcherRe.lastIndex=this.lastIndex;const t=this.matcherRe.exec(e);if(!t)return null;const n=t.findIndex(((e,t)=>t>0&&void 0!==e)),r=this.matchIndexes[n];return t.splice(0,n),Object.assign(t,r)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){if(this.multiRegexes[e])return this.multiRegexes[e];const t=new n;return this.rules.slice(e).forEach((([e,n])=>t.addRule(e,n))),t.compile(),this.multiRegexes[e]=t,t}resumingScanAtSamePosition(){return 0!==this.regexIndex}considerAll(){this.regexIndex=0}addRule(e,t){this.rules.push([e,t]),"begin"===t.type&&this.count++}exec(e){const t=this.getMatcher(this.regexIndex);t.lastIndex=this.lastIndex;let n=t.exec(e);if(this.resumingScanAtSamePosition())if(n&&n.index===this.lastIndex);else{const t=this.getMatcher(0);t.lastIndex=this.lastIndex+1,n=t.exec(e)}return n&&(this.regexIndex+=n.position+1,this.regexIndex===this.count&&this.considerAll()),n}}function i(e){const t=new r;return e.contains.forEach((e=>t.addRule(e.begin,{rule:e,type:"begin"}))),e.terminatorEnd&&t.addRule(e.terminatorEnd,{type:"end"}),e.illegal&&t.addRule(e.illegal,{type:"illegal"}),t}function o(n,r){const a=n;if(n.isCompiled)return a;[Z,ne,be,ie].forEach((e=>e(n,r))),e.compilerExtensions.forEach((e=>e(n,r))),n.__beforeBegin=null,[ee,te,re].forEach((e=>e(n,r))),n.isCompiled=!0;let s=null;return"object"===typeof n.keywords&&n.keywords.$pattern&&(n.keywords=Object.assign({},n.keywords),s=n.keywords.$pattern,delete n.keywords.$pattern),s=s||/\w+/,n.keywords&&(n.keywords=se(n.keywords,e.case_insensitive)),a.keywordPatternRe=t(s,!0),r&&(n.begin||(n.begin=/\B|\b/),a.beginRe=t(a.begin),n.end||n.endsWithParent||(n.end=/\B|\b/),n.end&&(a.endRe=t(a.end)),a.terminatorEnd=g(a.end)||"",n.endsWithParent&&r.terminatorEnd&&(a.terminatorEnd+=(n.end?"|":"")+r.terminatorEnd)),n.illegal&&(a.illegalRe=t(n.illegal)),n.contains||(n.contains=[]),n.contains=[].concat(...n.contains.map((function(e){return Ee("self"===e?n:e)}))),n.contains.forEach((function(e){o(e,a)})),n.starts&&o(n.starts,r),a.matcher=i(a),a}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=l(e.classNameAliases||{}),o(e)}function we(e){return!!e&&(e.endsWithParent||we(e.starts))}function Ee(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map((function(t){return l(e,{variants:null},t)}))),e.cachedVariants?e.cachedVariants:we(e)?l(e,{starts:e.starts?l(e.starts):null}):Object.isFrozen(e)?l(e):e}var Se="11.6.0";class xe extends Error{constructor(e,t){super(e),this.name="HTMLInjectionError",this.html=t}}const ke=s,Ae=l,Ne=Symbol("nomatch"),Te=7,Ce=function(e){const t=Object.create(null),n=Object.create(null),o=[];let s=!0;const l="Could not find the language '{}', did you forget to load/include a language module?",c={disableAutodetect:!0,name:"Plain text",contains:[]};let u={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:m};function d(e){return u.noHighlightRe.test(e)}function h(e){let t=e.className+" ";t+=e.parentNode?e.parentNode.className:"";const n=u.languageDetectRe.exec(t);if(n){const t=P(n[1]);return t||(he(l.replace("{}",n[1])),he("Falling back to no-highlight mode for this block.",e)),t?n[1]:"no-highlight"}return t.split(/\s+/).find((e=>d(e)||P(e)))}function p(e,t,n){let r="",i="";"object"===typeof t?(r=e,n=t.ignoreIllegals,i=t.language):(pe("10.7.0","highlight(lang, code, ...args) has been deprecated."),pe("10.7.0","Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"),i=e,r=t),void 0===n&&(n=!0);const o={code:r,language:i};j("before:highlight",o);const a=o.result?o.result:f(o.language,o.code,n);return a.code=o.code,j("after:highlight",a),a}function f(e,n,r,i){const o=Object.create(null);function c(e,t){return e.keywords[t]}function d(){if(!C.keywords)return void O.addText(I);let e=0;C.keywordPatternRe.lastIndex=0;let t=C.keywordPatternRe.exec(I),n="";while(t){n+=I.substring(e,t.index);const r=A.case_insensitive?t[0].toLowerCase():t[0],i=c(C,r);if(i){const[e,a]=i;if(O.addText(n),n="",o[r]=(o[r]||0)+1,o[r]<=Te&&(D+=a),e.startsWith("_"))n+=t[0];else{const n=A.classNameAliases[e]||e;O.addKeyword(t[0],n)}}else n+=t[0];e=C.keywordPatternRe.lastIndex,t=C.keywordPatternRe.exec(I)}n+=I.substring(e),O.addText(n)}function h(){if(""===I)return;let e=null;if("string"===typeof C.subLanguage){if(!t[C.subLanguage])return void O.addText(I);e=f(C.subLanguage,I,!0,R[C.subLanguage]),R[C.subLanguage]=e._top}else e=w(I,C.subLanguage.length?C.subLanguage:null);C.relevance>0&&(D+=e.relevance),O.addSublanguage(e._emitter,e.language)}function p(){null!=C.subLanguage?h():d(),I=""}function m(e,t){let n=1;const r=t.length-1;while(n<=r){if(!e._emit[n]){n++;continue}const r=A.classNameAliases[e[n]]||e[n],i=t[n];r?O.addKeyword(i,r):(I=i,d(),I=""),n++}}function g(e,t){return e.scope&&"string"===typeof e.scope&&O.openNode(A.classNameAliases[e.scope]||e.scope),e.beginScope&&(e.beginScope._wrap?(O.addKeyword(I,A.classNameAliases[e.beginScope._wrap]||e.beginScope._wrap),I=""):e.beginScope._multi&&(m(e.beginScope,t),I="")),C=Object.create(e,{parent:{value:C}}),C}function v(e,t,n){let r=x(e.endRe,n);if(r){if(e["on:end"]){const n=new a(e);e["on:end"](t,n),n.isMatchIgnored&&(r=!1)}if(r){while(e.endsParent&&e.parent)e=e.parent;return e}}if(e.endsWithParent)return v(e.parent,t,n)}function y(e){return 0===C.matcher.regexIndex?(I+=e[0],1):(F=!0,0)}function b(e){const t=e[0],n=e.rule,r=new a(n),i=[n.__beforeBegin,n["on:begin"]];for(const o of i)if(o&&(o(e,r),r.isMatchIgnored))return y(t);return n.skip?I+=t:(n.excludeBegin&&(I+=t),p(),n.returnBegin||n.excludeBegin||(I=t)),g(n,e),n.returnBegin?0:t.length}function _(e){const t=e[0],r=n.substring(e.index),i=v(C,e,r);if(!i)return Ne;const o=C;C.endScope&&C.endScope._wrap?(p(),O.addKeyword(t,C.endScope._wrap)):C.endScope&&C.endScope._multi?(p(),m(C.endScope,e)):o.skip?I+=t:(o.returnEnd||o.excludeEnd||(I+=t),p(),o.excludeEnd&&(I=t));do{C.scope&&O.closeNode(),C.skip||C.subLanguage||(D+=C.relevance),C=C.parent}while(C!==i.parent);return i.starts&&g(i.starts,e),o.returnEnd?0:t.length}function E(){const e=[];for(let t=C;t!==A;t=t.parent)t.scope&&e.unshift(t.scope);e.forEach((e=>O.openNode(e)))}let S={};function k(t,i){const o=i&&i[0];if(I+=t,null==o)return p(),0;if("begin"===S.type&&"end"===i.type&&S.index===i.index&&""===o){if(I+=n.slice(i.index,i.index+1),!s){const t=new Error(`0 width match regex (${e})`);throw t.languageName=e,t.badRule=S.rule,t}return 1}if(S=i,"begin"===i.type)return b(i);if("illegal"===i.type&&!r){const e=new Error('Illegal lexeme "'+o+'" for mode "'+(C.scope||"<unnamed>")+'"');throw e.mode=C,e}if("end"===i.type){const e=_(i);if(e!==Ne)return e}if("illegal"===i.type&&""===o)return 1;if(M>1e5&&M>3*i.index){const e=new Error("potential infinite loop, way more iterations than matches");throw e}return I+=o,o.length}const A=P(e);if(!A)throw de(l.replace("{}",e)),new Error('Unknown language: "'+e+'"');const N=_e(A);let T="",C=i||N;const R={},O=new u.__emitter(u);E();let I="",D=0,L=0,M=0,F=!1;try{for(C.matcher.considerAll();;){M++,F?F=!1:C.matcher.considerAll(),C.matcher.lastIndex=L;const e=C.matcher.exec(n);if(!e)break;const t=n.substring(L,e.index),r=k(t,e);L=e.index+r}return k(n.substring(L)),O.closeAllNodes(),O.finalize(),T=O.toHTML(),{language:e,value:T,relevance:D,illegal:!1,_emitter:O,_top:C}}catch(B){if(B.message&&B.message.includes("Illegal"))return{language:e,value:ke(n),illegal:!0,relevance:0,_illegalBy:{message:B.message,index:L,context:n.slice(L-100,L+100),mode:B.mode,resultSoFar:T},_emitter:O};if(s)return{language:e,value:ke(n),illegal:!1,relevance:0,errorRaised:B,_emitter:O,_top:C};throw B}}function g(e){const t={value:ke(e),illegal:!1,relevance:0,_top:c,_emitter:new u.__emitter(u)};return t._emitter.addText(e),t}function w(e,n){n=n||u.languages||Object.keys(t);const r=g(e),i=n.filter(P).filter(F).map((t=>f(t,e,!1)));i.unshift(r);const o=i.sort(((e,t)=>{if(e.relevance!==t.relevance)return t.relevance-e.relevance;if(e.language&&t.language){if(P(e.language).supersetOf===t.language)return 1;if(P(t.language).supersetOf===e.language)return-1}return 0})),[a,s]=o,l=a;return l.secondBest=s,l}function S(e,t,r){const i=t&&n[t]||r;e.classList.add("hljs"),e.classList.add(`language-${i}`)}function k(e){let t=null;const n=h(e);if(d(n))return;if(j("before:highlightElement",{el:e,language:n}),e.children.length>0&&(u.ignoreUnescapedHTML||(r.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),r.warn("https://github.com/highlightjs/highlight.js/wiki/security"),r.warn("The element with unescaped HTML:"),r.warn(e)),u.throwUnescapedHTML)){const t=new xe("One of your code blocks includes unescaped HTML.",e.innerHTML);throw t}t=e;const i=t.textContent,o=n?p(i,{language:n,ignoreIllegals:!0}):w(i);e.innerHTML=o.value,S(e,n,o.language),e.result={language:o.language,re:o.relevance,relevance:o.relevance},o.secondBest&&(e.secondBest={language:o.secondBest.language,relevance:o.secondBest.relevance}),j("after:highlightElement",{el:e,result:o,text:i})}function A(e){u=Ae(u,e)}const N=()=>{R(),pe("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function T(){R(),pe("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let C=!1;function R(){if("loading"===document.readyState)return void(C=!0);const e=document.querySelectorAll(u.cssSelector);e.forEach(k)}function O(){C&&R()}function I(n,r){let i=null;try{i=r(e)}catch(o){if(de("Language definition for '{}' could not be registered.".replace("{}",n)),!s)throw o;de(o),i=c}i.name||(i.name=n),t[n]=i,i.rawDefinition=r.bind(null,e),i.aliases&&M(i.aliases,{languageName:n})}function D(e){delete t[e];for(const t of Object.keys(n))n[t]===e&&delete n[t]}function L(){return Object.keys(t)}function P(e){return e=(e||"").toLowerCase(),t[e]||t[n[e]]}function M(e,{languageName:t}){"string"===typeof e&&(e=[e]),e.forEach((e=>{n[e.toLowerCase()]=t}))}function F(e){const t=P(e);return t&&!t.disableAutodetect}function B(e){e["before:highlightBlock"]&&!e["before:highlightElement"]&&(e["before:highlightElement"]=t=>{e["before:highlightBlock"](Object.assign({block:t.el},t))}),e["after:highlightBlock"]&&!e["after:highlightElement"]&&(e["after:highlightElement"]=t=>{e["after:highlightBlock"](Object.assign({block:t.el},t))})}function $(e){B(e),o.push(e)}function j(e,t){const n=e;o.forEach((function(e){e[n]&&e[n](t)}))}function U(e){return pe("10.7.0","highlightBlock will be removed entirely in v12.0"),pe("10.7.0","Please use highlightElement now."),k(e)}"undefined"!==typeof window&&window.addEventListener&&window.addEventListener("DOMContentLoaded",O,!1),Object.assign(e,{highlight:p,highlightAuto:w,highlightAll:R,highlightElement:k,highlightBlock:U,configure:A,initHighlighting:N,initHighlightingOnLoad:T,registerLanguage:I,unregisterLanguage:D,listLanguages:L,getLanguage:P,registerAliases:M,autoDetection:F,inherit:Ae,addPlugin:$}),e.debugMode=function(){s=!1},e.safeMode=function(){s=!0},e.versionString=Se,e.regex={concat:_,lookahead:v,either:E,optional:b,anyNumberOfTimes:y};for(const r in Q)"object"===typeof Q[r]&&i.exports(Q[r]);return Object.assign(e,Q),e};var Re=Ce({});e.exports=Re,Re.HighlightJS=Re,Re.default=Re},41921:function(e){function t(e){const t={className:"variable",variants:[{begin:/\$[\w\d#@][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},n="BEGIN END if else while do for in break continue delete next nextfile function func exit|10",r={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/(u|b)?r?'''/,end:/'''/,relevance:10},{begin:/(u|b)?r?"""/,end:/"""/,relevance:10},{begin:/(u|r|ur)'/,end:/'/,relevance:10},{begin:/(u|r|ur)"/,end:/"/,relevance:10},{begin:/(b|br)'/,end:/'/},{begin:/(b|br)"/,end:/"/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]};return{name:"Awk",keywords:{keyword:n},contains:[t,r,e.REGEXP_MODE,e.HASH_COMMENT_MODE,e.NUMBER_MODE]}}e.exports=t},68532:function(e){function t(e){const t=e.regex,n={},r={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[n]}]};Object.assign(n,{className:"variable",variants:[{begin:t.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},r]});const i={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},o={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},a={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,n,i]};i.contains.push(a);const s={className:"",begin:/\\"/},l={className:"string",begin:/'/,end:/'/},c={begin:/\$\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,n]},u=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],d=e.SHEBANG({binary:`(${u.join("|")})`,relevance:10}),h={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},p=["if","then","else","elif","fi","for","while","in","do","done","case","esac","function"],f=["true","false"],m={match:/(\/[a-z._-]+)+/},g=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],v=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","type","typeset","ulimit","unalias"],y=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],b=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:p,literal:f,built_in:[...g,...v,"set","shopt",...y,...b]},contains:[d,e.SHEBANG(),h,c,e.HASH_COMMENT_MODE,o,m,a,s,l,n]}}e.exports=t},24997:function(e){function t(e){const t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",o="<[^<>]+>",a="("+r+"|"+t.optional(i)+"[a-zA-Z_]\\w*"+t.optional(o)+")",s={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},l="\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)",c={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+l+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},u={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},d={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(c,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},h={className:"title",begin:t.optional(i)+e.IDENT_RE,relevance:0},p=t.optional(i)+e.IDENT_RE+"\\s*\\(",f=["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],m=["float","double","signed","unsigned","int","short","long","char","void","_Bool","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal128","const","static","complex","bool","imaginary"],g={keyword:f,type:m,literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},v=[d,s,n,e.C_BLOCK_COMMENT_MODE,u,c],y={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:g,contains:v.concat([{begin:/\(/,end:/\)/,keywords:g,contains:v.concat(["self"]),relevance:0}]),relevance:0},b={begin:"("+a+"[\\*&\\s]+)+"+p,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:g,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:g,relevance:0},{begin:p,returnBegin:!0,contains:[e.inherit(h,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:g,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,c,u,s,{begin:/\(/,end:/\)/,keywords:g,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,c,u,s]}]},s,n,e.C_BLOCK_COMMENT_MODE,d]};return{name:"C",aliases:["h"],keywords:g,disableAutodetect:!0,illegal:"</",contains:[].concat(y,b,v,[d,{begin:e.IDENT_RE+"::",keywords:g},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:d,strings:c,keywords:g}}}e.exports=t},31016:function(e){function t(e){const t="a-zA-Z_\\-!.?+*=<>&'",n="[#]?["+t+"]["+t+"0-9/;:$#]*",r="def defonce defprotocol defstruct defmulti defmethod defn- defn defmacro deftype defrecord",i={$pattern:n,built_in:r+" cond apply if-not if-let if not not= =|0 <|0 >|0 <=|0 >=|0 ==|0 +|0 /|0 *|0 -|0 rem quot neg? pos? delay? symbol? keyword? true? false? integer? empty? coll? list? set? ifn? fn? associative? sequential? sorted? counted? reversible? number? decimal? class? distinct? isa? float? rational? reduced? ratio? odd? even? char? seq? vector? string? map? nil? contains? zero? instance? not-every? not-any? libspec? -> ->> .. . inc compare do dotimes mapcat take remove take-while drop letfn drop-last take-last drop-while while intern condp case reduced cycle split-at split-with repeat replicate iterate range merge zipmap declare line-seq sort comparator sort-by dorun doall nthnext nthrest partition eval doseq await await-for let agent atom send send-off release-pending-sends add-watch mapv filterv remove-watch agent-error restart-agent set-error-handler error-handler set-error-mode! error-mode shutdown-agents quote var fn loop recur throw try monitor-enter monitor-exit macroexpand macroexpand-1 for dosync and or when when-not when-let comp juxt partial sequence memoize constantly complement identity assert peek pop doto proxy first rest cons cast coll last butlast sigs reify second ffirst fnext nfirst nnext meta with-meta ns in-ns create-ns import refer keys select-keys vals key val rseq name namespace promise into transient persistent! conj! assoc! dissoc! pop! disj! use class type num float double short byte boolean bigint biginteger bigdec print-method print-dup throw-if printf format load compile get-in update-in pr pr-on newline flush read slurp read-line subvec with-open memfn time re-find re-groups rand-int rand mod locking assert-valid-fdecl alias resolve ref deref refset swap! reset! set-validator! compare-and-set! alter-meta! reset-meta! commute get-validator alter ref-set ref-history-count ref-min-history ref-max-history ensure sync io! new next conj set! to-array future future-call into-array aset gen-class reduce map filter find empty hash-map hash-set sorted-map sorted-map-by sorted-set sorted-set-by vec vector seq flatten reverse assoc dissoc list disj get union difference intersection extend extend-type extend-protocol int nth delay count concat chunk chunk-buffer chunk-append chunk-first chunk-rest max min dec unchecked-inc-int unchecked-inc unchecked-dec-inc unchecked-dec unchecked-negate unchecked-add-int unchecked-add unchecked-subtract-int unchecked-subtract chunk-next chunk-cons chunked-seq? prn vary-meta lazy-seq spread list* str find-keyword keyword symbol gensym force rationalize"},o={begin:n,relevance:0},a={scope:"number",relevance:0,variants:[{match:/[-+]?0[xX][0-9a-fA-F]+N?/},{match:/[-+]?0[0-7]+N?/},{match:/[-+]?[1-9][0-9]?[rR][0-9a-zA-Z]+N?/},{match:/[-+]?[0-9]+\/[0-9]+N?/},{match:/[-+]?[0-9]+((\.[0-9]*([eE][+-]?[0-9]+)?M?)|([eE][+-]?[0-9]+M?|M))/},{match:/[-+]?([1-9][0-9]*|0)N?/}]},s={scope:"character",variants:[{match:/\\o[0-3]?[0-7]{1,2}/},{match:/\\u[0-9a-fA-F]{4}/},{match:/\\(newline|space|tab|formfeed|backspace|return)/},{match:/\\\S/,relevance:0}]},l={scope:"regex",begin:/#"/,end:/"/,contains:[e.BACKSLASH_ESCAPE]},c=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),u={scope:"punctuation",match:/,/,relevance:0},d=e.COMMENT(";","$",{relevance:0}),h={className:"literal",begin:/\b(true|false|nil)\b/},p={begin:"\\[|(#::?"+n+")?\\{",end:"[\\]\\}]",relevance:0},f={className:"symbol",begin:"[:]{1,2}"+n},m={begin:"\\(",end:"\\)"},g={endsWithParent:!0,relevance:0},v={keywords:i,className:"name",begin:n,relevance:0,starts:g},y=[u,m,s,l,c,d,f,p,a,h,o],b={beginKeywords:r,keywords:{$pattern:n,keyword:r},end:'(\\[|#|\\d|"|:|\\{|\\)|\\(|$)',contains:[{className:"title",begin:n,relevance:0,excludeEnd:!0,endsParent:!0}].concat(y)};return m.contains=[b,v,g],g.contains=y,p.contains=y,{name:"Clojure",aliases:["clj","edn"],illegal:/\S/,contains:[u,m,s,l,c,d,f,p,a,h]}}e.exports=t},7829:function(e){function t(e){const t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",o="<[^<>]+>",a="(?!struct)("+r+"|"+t.optional(i)+"[a-zA-Z_]\\w*"+t.optional(o)+")",s={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},l="\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)",c={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+l+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},u={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},d={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(c,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},h={className:"title",begin:t.optional(i)+e.IDENT_RE,relevance:0},p=t.optional(i)+e.IDENT_RE+"\\s*\\(",f=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],m=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],g=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],v=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],y=["NULL","false","nullopt","nullptr","true"],b=["_Pragma"],_={type:m,keyword:f,literal:y,built_in:b,_type_hints:g},w={className:"function.dispatch",relevance:0,keywords:{_hint:v},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},E=[w,d,s,n,e.C_BLOCK_COMMENT_MODE,u,c],S={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:_,contains:E.concat([{begin:/\(/,end:/\)/,keywords:_,contains:E.concat(["self"]),relevance:0}]),relevance:0},x={className:"function",begin:"("+a+"[\\*&\\s]+)+"+p,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:_,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:_,relevance:0},{begin:p,returnBegin:!0,contains:[h],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[c,u]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:_,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,c,u,s,{begin:/\(/,end:/\)/,keywords:_,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,c,u,s]}]},s,n,e.C_BLOCK_COMMENT_MODE,d]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:_,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(S,x,w,E,[d,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function)\\s*<(?!<)",end:">",keywords:_,contains:["self",s]},{begin:e.IDENT_RE+"::",keywords:_},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}e.exports=t},29490:function(e){function t(e){const t="(_?[ui](8|16|32|64|128))?",n="(_?f(32|64))?",r="[a-zA-Z_]\\w*[!?=]?",i="[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|[=!]~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~|]|//|//=|&[-+*]=?|&\\*\\*|\\[\\][=?]?",o="[A-Za-z_]\\w*(::\\w+)*(\\?|!)?",a={$pattern:r,keyword:"abstract alias annotation as as? asm begin break case class def do else elsif end ensure enum extend for fun if include instance_sizeof is_a? lib macro module next nil? of out pointerof private protected rescue responds_to? return require select self sizeof struct super then type typeof union uninitialized unless until verbatim when while with yield __DIR__ __END_LINE__ __FILE__ __LINE__",literal:"false nil true"},s={className:"subst",begin:/#\{/,end:/\}/,keywords:a},l={className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},c={className:"template-variable",variants:[{begin:"\\{\\{",end:"\\}\\}"},{begin:"\\{%",end:"%\\}"}],keywords:a};function u(e,t){const n=[{begin:e,end:t}];return n[0].contains=n,n}const d={className:"string",contains:[e.BACKSLASH_ESCAPE,s],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:"%[Qwi]?\\(",end:"\\)",contains:u("\\(","\\)")},{begin:"%[Qwi]?\\[",end:"\\]",contains:u("\\[","\\]")},{begin:"%[Qwi]?\\{",end:/\}/,contains:u(/\{/,/\}/)},{begin:"%[Qwi]?<",end:">",contains:u("<",">")},{begin:"%[Qwi]?\\|",end:"\\|"},{begin:/<<-\w+$/,end:/^\s*\w+$/}],relevance:0},h={className:"string",variants:[{begin:"%q\\(",end:"\\)",contains:u("\\(","\\)")},{begin:"%q\\[",end:"\\]",contains:u("\\[","\\]")},{begin:"%q\\{",end:/\}/,contains:u(/\{/,/\}/)},{begin:"%q<",end:">",contains:u("<",">")},{begin:"%q\\|",end:"\\|"},{begin:/<<-'\w+'$/,end:/^\s*\w+$/}],relevance:0},p={begin:"(?!%\\})("+e.RE_STARTERS_RE+"|\\n|\\b(case|if|select|unless|until|when|while)\\b)\\s*",keywords:"case if select unless until when while",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,s],variants:[{begin:"//[a-z]*",relevance:0},{begin:"/(?!\\/)",end:"/[a-z]*"}]}],relevance:0},f={className:"regexp",contains:[e.BACKSLASH_ESCAPE,s],variants:[{begin:"%r\\(",end:"\\)",contains:u("\\(","\\)")},{begin:"%r\\[",end:"\\]",contains:u("\\[","\\]")},{begin:"%r\\{",end:/\}/,contains:u(/\{/,/\}/)},{begin:"%r<",end:">",contains:u("<",">")},{begin:"%r\\|",end:"\\|"}],relevance:0},m={className:"meta",begin:"@\\[",end:"\\]",contains:[e.inherit(e.QUOTE_STRING_MODE,{className:"string"})]},g=[c,d,h,f,p,m,l,e.HASH_COMMENT_MODE,{className:"class",beginKeywords:"class module struct",end:"$|;",illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:o}),{begin:"<"}]},{className:"class",beginKeywords:"lib enum union",end:"$|;",illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:o})]},{beginKeywords:"annotation",end:"$|;",illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:o})],relevance:2},{className:"function",beginKeywords:"def",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:i,endsParent:!0})]},{className:"function",beginKeywords:"fun macro",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:i,endsParent:!0})],relevance:2},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":",contains:[d,{begin:i}],relevance:0},{className:"number",variants:[{begin:"\\b0b([01_]+)"+t},{begin:"\\b0o([0-7_]+)"+t},{begin:"\\b0x([A-Fa-f0-9_]+)"+t},{begin:"\\b([1-9][0-9_]*[0-9]|[0-9])(\\.[0-9][0-9_]*)?([eE]_?[-+]?[0-9_]*)?"+n+"(?!_)"},{begin:"\\b([1-9][0-9_]*|0)"+t}],relevance:0}];return s.contains=g,c.contains=g.slice(1),{name:"Crystal",aliases:["cr"],keywords:a,contains:g}}e.exports=t},30205:function(e){function t(e){const t=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],n=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],r=["default","false","null","true"],i=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],o=["add","alias","and","ascending","async","await","by","descending","equals","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","remove","select","set","unmanaged","value|0","var","when","where","with","yield"],a={keyword:i.concat(o),built_in:t,literal:r},s=e.inherit(e.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),l={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},c={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},u=e.inherit(c,{illegal:/\n/}),d={className:"subst",begin:/\{/,end:/\}/,keywords:a},h=e.inherit(d,{illegal:/\n/}),p={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},e.BACKSLASH_ESCAPE,h]},f={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},d]},m=e.inherit(f,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},h]});d.contains=[f,p,c,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,l,e.C_BLOCK_COMMENT_MODE],h.contains=[m,p,u,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,l,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const g={variants:[f,p,c,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},v={begin:"<",end:">",contains:[{beginKeywords:"in out"},s]},y=e.IDENT_RE+"(<"+e.IDENT_RE+"(\\s*,\\s*"+e.IDENT_RE+")*>)?(\\[\\])?",b={begin:"@"+e.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:a,illegal:/::/,contains:[e.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"\x3c!--|--\x3e"},{begin:"</?",end:">"}]}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},g,l,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},s,v,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[s,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[s,v,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+y+"\\s+)+"+e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:a,contains:[{beginKeywords:n.join(" "),relevance:0},{begin:e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[e.TITLE_MODE,v],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,relevance:0,contains:[g,l,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},b]}}e.exports=t},59618:function(e){function t(e){const t=["base-uri","child-src","connect-src","default-src","font-src","form-action","frame-ancestors","frame-src","img-src","manifest-src","media-src","object-src","plugin-types","report-uri","sandbox","script-src","style-src","trusted-types","unsafe-hashes","worker-src"];return{name:"CSP",case_insensitive:!1,keywords:{$pattern:"[a-zA-Z][a-zA-Z0-9_-]*",keyword:t},contains:[{className:"string",begin:"'",end:"'"},{className:"attribute",begin:"^Content",end:":",excludeEnd:!0}]}}e.exports=t},21871:function(e){const t=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z][A-Za-z0-9_-]*/}}),n=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],r=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],i=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],o=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],a=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse();function s(e){const s=e.regex,l=t(e),c={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},u="and or not only",d=/@-?\w[\w]*(-\w+)*/,h="[a-zA-Z-][a-zA-Z0-9_-]*",p=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[l.BLOCK_COMMENT,c,l.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+h,relevance:0},l.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+i.join("|")+")"},{begin:":(:)?("+o.join("|")+")"}]},l.CSS_VARIABLE,{className:"attribute",begin:"\\b("+a.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[l.BLOCK_COMMENT,l.HEXCOLOR,l.IMPORTANT,l.CSS_NUMBER_MODE,...p,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...p,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},l.FUNCTION_DISPATCH]},{begin:s.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:d},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:u,attribute:r.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...p,l.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+n.join("|")+")\\b"}]}}e.exports=s},97295:function(e){function t(e){const t={className:"subst",variants:[{begin:"\\$[A-Za-z0-9_]+"}]},n={className:"subst",variants:[{begin:/\$\{/,end:/\}/}],keywords:"true false null this is new super"},r={className:"string",variants:[{begin:"r'''",end:"'''"},{begin:'r"""',end:'"""'},{begin:"r'",end:"'",illegal:"\\n"},{begin:'r"',end:'"',illegal:"\\n"},{begin:"'''",end:"'''",contains:[e.BACKSLASH_ESCAPE,t,n]},{begin:'"""',end:'"""',contains:[e.BACKSLASH_ESCAPE,t,n]},{begin:"'",end:"'",illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,t,n]},{begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,t,n]}]};n.contains=[e.C_NUMBER_MODE,r];const i=["Comparable","DateTime","Duration","Function","Iterable","Iterator","List","Map","Match","Object","Pattern","RegExp","Set","Stopwatch","String","StringBuffer","StringSink","Symbol","Type","Uri","bool","double","int","num","Element","ElementList"],o=i.map((e=>`${e}?`)),a=["abstract","as","assert","async","await","break","case","catch","class","const","continue","covariant","default","deferred","do","dynamic","else","enum","export","extends","extension","external","factory","false","final","finally","for","Function","get","hide","if","implements","import","in","inferface","is","late","library","mixin","new","null","on","operator","part","required","rethrow","return","set","show","static","super","switch","sync","this","throw","true","try","typedef","var","void","while","with","yield"],s={keyword:a,built_in:i.concat(o).concat(["Never","Null","dynamic","print","document","querySelector","querySelectorAll","window"]),$pattern:/[A-Za-z][A-Za-z0-9_]*\??/};return{name:"Dart",keywords:s,contains:[r,e.COMMENT(/\/\*\*(?!\/)/,/\*\//,{subLanguage:"markdown",relevance:0}),e.COMMENT(/\/{3,} ?/,/$/,{contains:[{subLanguage:"markdown",begin:".",end:"$",relevance:0}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"class",beginKeywords:"class interface",end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},e.C_NUMBER_MODE,{className:"meta",begin:"@[A-Za-z]+"},{begin:"=>"}]}}e.exports=t},19069:function(e){function t(e){const t=e.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:t.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:t.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}e.exports=t},86072:function(e){function t(e){const t=["from","maintainer","expose","env","arg","user","onbuild","stopsignal"];return{name:"Dockerfile",aliases:["docker"],case_insensitive:!0,keywords:t,contains:[e.HASH_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{beginKeywords:"run cmd entrypoint volume add copy workdir label healthcheck shell",starts:{end:/[^\\]$/,subLanguage:"bash"}}],illegal:"</"}}e.exports=t},69957:function(e){function t(e){const t=e.regex,n="[a-zA-Z_][a-zA-Z0-9_.]*(!|\\?)?",r="[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?",i=["after","alias","and","case","catch","cond","defstruct","defguard","do","else","end","fn","for","if","import","in","not","or","quote","raise","receive","require","reraise","rescue","try","unless","unquote","unquote_splicing","use","when","with|0"],o=["false","nil","true"],a={$pattern:n,keyword:i,literal:o},s={className:"subst",begin:/#\{/,end:/\}/,keywords:a},l={className:"number",begin:"(\\b0o[0-7_]+)|(\\b0b[01_]+)|(\\b0x[0-9a-fA-F_]+)|(-?\\b[0-9][0-9_]*(\\.[0-9_]+([eE][-+]?[0-9]+)?)?)",relevance:0},c=/\\[\s\S]/,u={match:c,scope:"char.escape",relevance:0},d="[/|([{<\"']",h=[{begin:/"/,end:/"/},{begin:/'/,end:/'/},{begin:/\//,end:/\//},{begin:/\|/,end:/\|/},{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/},{begin:/\{/,end:/\}/},{begin:/</,end:/>/}],p=e=>({scope:"char.escape",begin:t.concat(/\\/,e),relevance:0}),f={className:"string",begin:"~[a-z](?="+d+")",contains:h.map((t=>e.inherit(t,{contains:[p(t.end),u,s]})))},m={className:"string",begin:"~[A-Z](?="+d+")",contains:h.map((t=>e.inherit(t,{contains:[p(t.end)]})))},g={className:"regex",variants:[{begin:"~r(?="+d+")",contains:h.map((n=>e.inherit(n,{end:t.concat(n.end,/[uismxfU]{0,7}/),contains:[p(n.end),u,s]})))},{begin:"~R(?="+d+")",contains:h.map((n=>e.inherit(n,{end:t.concat(n.end,/[uismxfU]{0,7}/),contains:[p(n.end)]})))}]},v={className:"string",contains:[e.BACKSLASH_ESCAPE,s],variants:[{begin:/"""/,end:/"""/},{begin:/'''/,end:/'''/},{begin:/~S"""/,end:/"""/,contains:[]},{begin:/~S"/,end:/"/,contains:[]},{begin:/~S'''/,end:/'''/,contains:[]},{begin:/~S'/,end:/'/,contains:[]},{begin:/'/,end:/'/},{begin:/"/,end:/"/}]},y={className:"function",beginKeywords:"def defp defmacro defmacrop",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:n,endsParent:!0})]},b=e.inherit(y,{className:"class",beginKeywords:"defimpl defmodule defprotocol defrecord",end:/\bdo\b|$|;/}),_=[v,g,m,f,e.HASH_COMMENT_MODE,b,y,{begin:"::"},{className:"symbol",begin:":(?![\\s:])",contains:[v,{begin:r}],relevance:0},{className:"symbol",begin:n+":(?!:)",relevance:0},{className:"title.class",begin:/(\b[A-Z][a-zA-Z0-9_]+)/,relevance:0},l,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))"}];return s.contains=_,{name:"Elixir",aliases:["ex","exs"],keywords:a,contains:_}}e.exports=t},65256:function(e){function t(e){const t={variants:[e.COMMENT("--","$"),e.COMMENT(/\{-/,/-\}/,{contains:["self"]})]},n={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},r={begin:"\\(",end:"\\)",illegal:'"',contains:[{className:"type",begin:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},t]},i={begin:/\{/,end:/\}/,contains:r.contains},o={className:"string",begin:"'\\\\?.",end:"'",illegal:"."},a=["let","in","if","then","else","case","of","where","module","import","exposing","type","alias","as","infix","infixl","infixr","port","effect","command","subscription"];return{name:"Elm",keywords:a,contains:[{beginKeywords:"port effect module",end:"exposing",keywords:"port effect module where command subscription exposing",contains:[r,t],illegal:"\\W\\.|;"},{begin:"import",end:"$",keywords:"import as exposing",contains:[r,t],illegal:"\\W\\.|;"},{begin:"type",end:"$",keywords:"type alias",contains:[n,r,i,t]},{beginKeywords:"infix infixl infixr",end:"$",contains:[e.C_NUMBER_MODE,t]},{begin:"port",end:"$",keywords:"port",contains:[t]},o,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,n,e.inherit(e.TITLE_MODE,{begin:"^[_a-z][\\w']*"}),t,{begin:"->|<-"}],illegal:/;/}}e.exports=t},99269:function(e){function t(e){const t="[a-z'][a-zA-Z0-9_']*",n="("+t+":"+t+"|"+t+")",r={keyword:"after and andalso|10 band begin bnot bor bsl bzr bxor case catch cond div end fun if let not of orelse|10 query receive rem try when xor",literal:"false true"},i=e.COMMENT("%","$"),o={className:"number",begin:"\\b(\\d+(_\\d+)*#[a-fA-F0-9]+(_[a-fA-F0-9]+)*|\\d+(_\\d+)*(\\.\\d+(_\\d+)*)?([eE][-+]?\\d+)?)",relevance:0},a={begin:"fun\\s+"+t+"/\\d+"},s={begin:n+"\\(",end:"\\)",returnBegin:!0,relevance:0,contains:[{begin:n,relevance:0},{begin:"\\(",end:"\\)",endsWithParent:!0,returnEnd:!0,relevance:0}]},l={begin:/\{/,end:/\}/,relevance:0},c={begin:"\\b_([A-Z][A-Za-z0-9_]*)?",relevance:0},u={begin:"[A-Z][a-zA-Z0-9_]*",relevance:0},d={begin:"#"+e.UNDERSCORE_IDENT_RE,relevance:0,returnBegin:!0,contains:[{begin:"#"+e.UNDERSCORE_IDENT_RE,relevance:0},{begin:/\{/,end:/\}/,relevance:0}]},h={beginKeywords:"fun receive if try case",end:"end",keywords:r};h.contains=[i,a,e.inherit(e.APOS_STRING_MODE,{className:""}),h,s,e.QUOTE_STRING_MODE,o,l,c,u,d];const p=[i,a,h,s,e.QUOTE_STRING_MODE,o,l,c,u,d];s.contains[1].contains=p,l.contains=p,d.contains[1].contains=p;const f=["-module","-record","-undef","-export","-ifdef","-ifndef","-author","-copyright","-doc","-vsn","-import","-include","-include_lib","-compile","-define","-else","-endif","-file","-behaviour","-behavior","-spec"],m={className:"params",begin:"\\(",end:"\\)",contains:p};return{name:"Erlang",aliases:["erl"],keywords:r,illegal:"(</|\\*=|\\+=|-=|/\\*|\\*/|\\(\\*|\\*\\))",contains:[{className:"function",begin:"^"+t+"\\s*\\(",end:"->",returnBegin:!0,illegal:"\\(|#|//|/\\*|\\\\|:|;",contains:[m,e.inherit(e.TITLE_MODE,{begin:t})],starts:{end:";|\\.",keywords:r,contains:p}},i,{begin:"^-",end:"\\.",relevance:0,excludeEnd:!0,returnBegin:!0,keywords:{$pattern:"-"+e.IDENT_RE,keyword:f.map((e=>`${e}|1.5`)).join(" ")},contains:[m]},o,e.QUOTE_STRING_MODE,d,c,u,l,{begin:/\.$/}]}}e.exports=t},1176:function(e){function t(e){return new RegExp(e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")}function n(e){return e?"string"===typeof e?e:e.source:null}function r(e){return i("(?=",e,")")}function i(...e){const t=e.map((e=>n(e))).join("");return t}function o(e){const t=e[e.length-1];return"object"===typeof t&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function a(...e){const t=o(e),r="("+(t.capture?"":"?:")+e.map((e=>n(e))).join("|")+")";return r}function s(e){const n=["abstract","and","as","assert","base","begin","class","default","delegate","do","done","downcast","downto","elif","else","end","exception","extern","finally","fixed","for","fun","function","global","if","in","inherit","inline","interface","internal","lazy","let","match","member","module","mutable","namespace","new","of","open","or","override","private","public","rec","return","static","struct","then","to","try","type","upcast","use","val","void","when","while","with","yield"],o={scope:"keyword",match:/\b(yield|return|let|do|match|use)!/},s=["if","else","endif","line","nowarn","light","r","i","I","load","time","help","quit"],l=["true","false","null","Some","None","Ok","Error","infinity","infinityf","nan","nanf"],c=["__LINE__","__SOURCE_DIRECTORY__","__SOURCE_FILE__"],u=["bool","byte","sbyte","int8","int16","int32","uint8","uint16","uint32","int","uint","int64","uint64","nativeint","unativeint","decimal","float","double","float32","single","char","string","unit","bigint","option","voption","list","array","seq","byref","exn","inref","nativeptr","obj","outref","voidptr","Result"],d=["not","ref","raise","reraise","dict","readOnlyDict","set","get","enum","sizeof","typeof","typedefof","nameof","nullArg","invalidArg","invalidOp","id","fst","snd","ignore","lock","using","box","unbox","tryUnbox","printf","printfn","sprintf","eprintf","eprintfn","fprintf","fprintfn","failwith","failwithf"],h={keyword:n,literal:l,built_in:d,"variable.constant":c},p=e.COMMENT(/\(\*(?!\))/,/\*\)/,{contains:["self"]}),f={variants:[p,e.C_LINE_COMMENT_MODE]},m=/[a-zA-Z_](\w|')*/,g={scope:"variable",begin:/``/,end:/``/},v=/\B('|\^)/,y={scope:"symbol",variants:[{match:i(v,/``.*?``/)},{match:i(v,e.UNDERSCORE_IDENT_RE)}],relevance:0},b=function({includeEqual:e}){let n;n=e?"!%&*+-/<=>@^|~?":"!%&*+-/<>@^|~?";const o=Array.from(n),s=i("[",...o.map(t),"]"),l=a(s,/\./),c=i(l,r(l)),u=a(i(c,l,"*"),i(s,"+"));return{scope:"operator",match:a(u,/:\?>/,/:\?/,/:>/,/:=/,/::?/,/\$/),relevance:0}},_=b({includeEqual:!0}),w=b({includeEqual:!1}),E=function(t,n){return{begin:i(t,r(i(/\s*/,a(/\w/,/'/,/\^/,/#/,/``/,/\(/,/{\|/)))),beginScope:n,end:r(a(/\n/,/=/)),relevance:0,keywords:e.inherit(h,{type:u}),contains:[f,y,e.inherit(g,{scope:null}),w]}},S=E(/:/,"operator"),x=E(/\bof\b/,"keyword"),k={begin:[/(^|\s+)/,/type/,/\s+/,m],beginScope:{2:"keyword",4:"title.class"},end:r(/\(|=|$/),keywords:h,contains:[f,e.inherit(g,{scope:null}),y,{scope:"operator",match:/<|>/},S]},A={scope:"computation-expression",match:/\b[_a-z]\w*(?=\s*\{)/},N={begin:[/^\s*/,i(/#/,a(...s)),/\b/],beginScope:{2:"meta"},end:r(/\s|$/)},T={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]},C={scope:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE]},R={scope:"string",begin:/@"/,end:/"/,contains:[{match:/""/},e.BACKSLASH_ESCAPE]},O={scope:"string",begin:/"""/,end:/"""/,relevance:2},I={scope:"subst",begin:/\{/,end:/\}/,keywords:h},D={scope:"string",begin:/\$"/,end:/"/,contains:[{match:/\{\{/},{match:/\}\}/},e.BACKSLASH_ESCAPE,I]},L={scope:"string",begin:/(\$@|@\$)"/,end:/"/,contains:[{match:/\{\{/},{match:/\}\}/},{match:/""/},e.BACKSLASH_ESCAPE,I]},P={scope:"string",begin:/\$"""/,end:/"""/,contains:[{match:/\{\{/},{match:/\}\}/},I],relevance:2},M={scope:"string",match:i(/'/,a(/[^\\']/,/\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8})/),/'/)};I.contains=[L,D,R,C,M,o,f,g,S,A,N,T,y,_];const F={variants:[P,L,D,O,R,C,M]};return{name:"F#",aliases:["fs","f#"],keywords:h,illegal:/\/\*/,classNameAliases:{"computation-expression":"keyword"},contains:[o,F,f,g,k,{scope:"meta",begin:/\[</,end:/>\]/,relevance:2,contains:[g,O,R,C,M,T]},x,S,A,N,T,y,_]}}e.exports=s},53496:function(e){function t(e){const t=["true","false","iota","nil"],n=["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"],r=["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],i=["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],o={keyword:i,type:r,literal:t,built_in:n};return{name:"Go",aliases:["golang"],keywords:o,illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",variants:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:"number",variants:[{begin:e.C_NUMBER_RE+"[i]",relevance:1},e.C_NUMBER_MODE]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:o,illegal:/["']/}]}]}}e.exports=t},62673:function(e){function t(e){const t=["task","project","allprojects","subprojects","artifacts","buildscript","configurations","dependencies","repositories","sourceSets","description","delete","from","into","include","exclude","source","classpath","destinationDir","includes","options","sourceCompatibility","targetCompatibility","group","flatDir","doLast","doFirst","flatten","todir","fromdir","ant","def","abstract","break","case","catch","continue","default","do","else","extends","final","finally","for","if","implements","instanceof","native","new","private","protected","public","return","static","switch","synchronized","throw","throws","transient","try","volatile","while","strictfp","package","import","false","null","super","this","true","antlrtask","checkstyle","codenarc","copy","boolean","byte","char","class","double","float","int","interface","long","short","void","compile","runTime","file","fileTree","abs","any","append","asList","asWritable","call","collect","compareTo","count","div","dump","each","eachByte","eachFile","eachLine","every","find","findAll","flatten","getAt","getErr","getIn","getOut","getText","grep","immutable","inject","inspect","intersect","invokeMethods","isCase","join","leftShift","minus","multiply","newInputStream","newOutputStream","newPrintWriter","newReader","newWriter","next","plus","pop","power","previous","print","println","push","putAt","read","readBytes","readLines","reverse","reverseEach","round","size","sort","splitEachLine","step","subMap","times","toInteger","toList","tokenize","upto","waitForOrKill","withPrintWriter","withReader","withStream","withWriter","withWriterAppend","write","writeLine"];return{name:"Gradle",case_insensitive:!0,keywords:t,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.REGEXP_MODE]}}e.exports=t},25028:function(e){function t(e,t={}){return t.variants=e,t}function n(e){const n=e.regex,r="[A-Za-z0-9_$]+",i=t([e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]})]),o={className:"regexp",begin:/~?\/[^\/\n]+\//,contains:[e.BACKSLASH_ESCAPE]},a=t([e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]),s=t([{begin:/"""/,end:/"""/},{begin:/'''/,end:/'''/},{begin:"\\$/",end:"/\\$",relevance:10},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE],{className:"string"}),l={match:[/(class|interface|trait|enum|extends|implements)/,/\s+/,e.UNDERSCORE_IDENT_RE],scope:{1:"keyword",3:"title.class"}},c=["byte","short","char","int","long","boolean","float","double","void"],u=["def","as","in","assert","trait","abstract","static","volatile","transient","public","private","protected","synchronized","final","class","interface","enum","if","else","for","while","switch","case","break","default","continue","throw","throws","try","catch","finally","implements","extends","new","import","package","return","instanceof"];return{name:"Groovy",keywords:{"variable.language":"this super",literal:"true false null",type:c,keyword:u},contains:[e.SHEBANG({binary:"groovy",relevance:10}),i,s,o,a,l,{className:"meta",begin:"@[A-Za-z]+",relevance:0},{className:"attr",begin:r+"[ \t]*:",relevance:0},{begin:/\?/,end:/:/,relevance:0,contains:[i,s,o,a,"self"]},{className:"symbol",begin:"^[ \t]*"+n.lookahead(r+":"),excludeBegin:!0,end:r+":",relevance:0}],illegal:/#|<\//}}e.exports=n},26374:function(e){function t(e){const t=e.regex,n={$pattern:/[\w.\/]+/,built_in:["action","bindattr","collection","component","concat","debugger","each","each-in","get","hash","if","in","input","link-to","loc","log","lookup","mut","outlet","partial","query-params","render","template","textarea","unbound","unless","view","with","yield"]},r={$pattern:/[\w.\/]+/,literal:["true","false","undefined","null"]},i=/""|"[^"]+"/,o=/''|'[^']+'/,a=/\[\]|\[[^\]]+\]/,s=/[^\s!"#%&'()*+,.\/;<=>@\[\\\]^`{|}~]+/,l=/(\.|\/)/,c=t.either(i,o,a,s),u=t.concat(t.optional(/\.|\.\/|\//),c,t.anyNumberOfTimes(t.concat(l,c))),d=t.concat("(",a,"|",s,")(?==)"),h={begin:u},p=e.inherit(h,{keywords:r}),f={begin:/\(/,end:/\)/},m={className:"attr",begin:d,relevance:0,starts:{begin:/=/,end:/=/,starts:{contains:[e.NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,p,f]}}},g={begin:/as\s+\|/,keywords:{keyword:"as"},end:/\|/,contains:[{begin:/\w+/}]},v={contains:[e.NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,g,m,p,f],returnEnd:!0},y=e.inherit(h,{className:"name",keywords:n,starts:e.inherit(v,{end:/\)/})});f.contains=[y];const b=e.inherit(h,{keywords:n,className:"name",starts:e.inherit(v,{end:/\}\}/})}),_=e.inherit(h,{keywords:n,className:"name"}),w=e.inherit(h,{className:"name",keywords:n,starts:e.inherit(v,{end:/\}\}/})}),E={begin:/\\\{\{/,skip:!0},S={begin:/\\\\(?=\{\{)/,skip:!0};return{name:"Handlebars",aliases:["hbs","html.hbs","html.handlebars","htmlbars"],case_insensitive:!0,subLanguage:"xml",contains:[E,S,e.COMMENT(/\{\{!--/,/--\}\}/),e.COMMENT(/\{\{!/,/\}\}/),{className:"template-tag",begin:/\{\{\{\{(?!\/)/,end:/\}\}\}\}/,contains:[b],starts:{end:/\{\{\{\{\//,returnEnd:!0,subLanguage:"xml"}},{className:"template-tag",begin:/\{\{\{\{\//,end:/\}\}\}\}/,contains:[_]},{className:"template-tag",begin:/\{\{#/,end:/\}\}/,contains:[b]},{className:"template-tag",begin:/\{\{(?=else\}\})/,end:/\}\}/,keywords:"else"},{className:"template-tag",begin:/\{\{(?=else if)/,end:/\}\}/,keywords:"else if"},{className:"template-tag",begin:/\{\{\//,end:/\}\}/,contains:[_]},{className:"template-variable",begin:/\{\{\{/,end:/\}\}\}/,contains:[w]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:[w]}]}}e.exports=t},87724:function(e){function t(e){const t={variants:[e.COMMENT("--","$"),e.COMMENT(/\{-/,/-\}/,{contains:["self"]})]},n={className:"meta",begin:/\{-#/,end:/#-\}/},r={className:"meta",begin:"^#",end:"$"},i={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},o={begin:"\\(",end:"\\)",illegal:'"',contains:[n,r,{className:"type",begin:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},e.inherit(e.TITLE_MODE,{begin:"[_a-z][\\w']*"}),t]},a={begin:/\{/,end:/\}/,contains:o.contains},s="([0-9]_*)+",l="([0-9a-fA-F]_*)+",c="([01]_*)+",u="([0-7]_*)+",d={className:"number",relevance:0,variants:[{match:`\\b(${s})(\\.(${s}))?([eE][+-]?(${s}))?\\b`},{match:`\\b0[xX]_*(${l})(\\.(${l}))?([pP][+-]?(${s}))?\\b`},{match:`\\b0[oO](${u})\\b`},{match:`\\b0[bB](${c})\\b`}]};return{name:"Haskell",aliases:["hs"],keywords:"let in if then else case of where do module import hiding qualified type data newtype deriving class instance as default infix infixl infixr foreign export ccall stdcall cplusplus jvm dotnet safe unsafe family forall mdo proc rec",contains:[{beginKeywords:"module",end:"where",keywords:"module where",contains:[o,t],illegal:"\\W\\.|;"},{begin:"\\bimport\\b",end:"$",keywords:"import qualified as hiding",contains:[o,t],illegal:"\\W\\.|;"},{className:"class",begin:"^(\\s*)?(class|instance)\\b",end:"where",keywords:"class family instance where",contains:[i,o,t]},{className:"class",begin:"\\b(data|(new)?type)\\b",end:"$",keywords:"data family type newtype deriving",contains:[n,i,o,a,t]},{beginKeywords:"default",end:"$",contains:[i,o,t]},{beginKeywords:"infix infixl infixr",end:"$",contains:[e.C_NUMBER_MODE,t]},{begin:"\\bforeign\\b",end:"$",keywords:"foreign import export ccall stdcall cplusplus jvm dotnet safe unsafe",contains:[i,e.QUOTE_STRING_MODE,t]},{className:"meta",begin:"#!\\/usr\\/bin\\/env runhaskell",end:"$"},n,r,e.QUOTE_STRING_MODE,d,i,e.inherit(e.TITLE_MODE,{begin:"^[_a-z][\\w']*"}),t,{begin:"->|<-"}]}}e.exports=t},50862:function(e){function t(e){const t=e.regex,n={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:e.NUMBER_RE}]},r=e.COMMENT();r.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const i={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},o={className:"literal",begin:/\bon|off|true|false|yes|no\b/},a={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},s={begin:/\[/,end:/\]/,contains:[r,o,i,a,n,"self"],relevance:0},l=/[A-Za-z0-9_-]+/,c=/"(\\"|[^"])*"/,u=/'[^']*'/,d=t.either(l,c,u),h=t.concat(d,"(\\s*\\.\\s*",d,")*",t.lookahead(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[r,{className:"section",begin:/\[+/,end:/\]+/},{begin:h,className:"attr",starts:{end:/$/,contains:[r,s,o,i,a,n]}}]}}e.exports=t},36022:function(e){var t="[0-9](_*[0-9])*",n=`\\.(${t})`,r="[0-9a-fA-F](_*[0-9a-fA-F])*",i={className:"number",variants:[{begin:`(\\b(${t})((${n})|\\.)?|(${n}))[eE][+-]?(${t})[fFdD]?\\b`},{begin:`\\b(${t})((${n})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${n})[fFdD]?\\b`},{begin:`\\b(${t})[fFdD]\\b`},{begin:`\\b0[xX]((${r})\\.?|(${r})?\\.(${r}))[pP][+-]?(${t})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${r})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function o(e,t,n){return-1===n?"":e.replace(t,(r=>o(e,t,n-1)))}function a(e){const t=e.regex,n="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",r=n+o("(?:<"+n+"~~~(?:\\s*,\\s*"+n+"~~~)*>)?",/~~~/g,2),a=["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed"],s=["super","this"],l=["false","true","null"],c=["char","boolean","long","float","int","byte","short","double"],u={keyword:a,literal:l,type:c,built_in:s},d={className:"meta",begin:"@"+n,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},h={className:"params",begin:/\(/,end:/\)/,keywords:u,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:u,illegal:/<\/|#/,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[e.BACKSLASH_ESCAPE]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,n],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[t.concat(/(?!else)/,n),/\s+/,n,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,n],className:{1:"keyword",3:"title.class"},contains:[h,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+r+"\\s+)",e.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:u,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:u,relevance:0,contains:[d,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,i,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},i,d]}}e.exports=a},39797:function(e){const t="[A-Za-z$_][0-9A-Za-z$_]*",n=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],r=["true","false","null","undefined","NaN","Infinity"],i=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],o=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],a=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],s=["arguments","this","super","console","window","document","localStorage","module","global"],l=[].concat(a,i,o);function c(e){const c=e.regex,u=(e,{after:t})=>{const n="</"+e[0].slice(1),r=e.input.indexOf(n,t);return-1!==r},d=t,h={begin:"<>",end:"</>"},p=/<[A-Za-z0-9\\._:-]+\s*\/>/,f={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(e,t)=>{const n=e[0].length+e.index,r=e.input[n];if("<"===r||","===r)return void t.ignoreMatch();let i;">"===r&&(u(e,{after:n})||t.ignoreMatch());const o=e.input.substring(n);(i=o.match(/^\s+extends\s+/))&&0===i.index&&t.ignoreMatch()}},m={$pattern:t,keyword:n,literal:r,built_in:l,"variable.language":s},g="[0-9](_?[0-9])*",v=`\\.(${g})`,y="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",b={className:"number",variants:[{begin:`(\\b(${y})((${v})|\\.)?|(${v}))[eE][+-]?(${g})\\b`},{begin:`\\b(${y})\\b((${v})\\b|\\.)?|(${v})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},_={className:"subst",begin:"\\$\\{",end:"\\}",keywords:m,contains:[]},w={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,_],subLanguage:"xml"}},E={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,_],subLanguage:"css"}},S={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,_]},x=e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:d+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),k={className:"comment",variants:[x,e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},A=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,w,E,S,b];_.contains=A.concat({begin:/\{/,end:/\}/,keywords:m,contains:["self"].concat(A)});const N=[].concat(k,_.contains),T=N.concat([{begin:/\(/,end:/\)/,keywords:m,contains:["self"].concat(N)}]),C={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:m,contains:T},R={variants:[{match:[/class/,/\s+/,d,/\s+/,/extends/,/\s+/,c.concat(d,"(",c.concat(/\./,d),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,d],scope:{1:"keyword",3:"title.class"}}]},O={relevance:0,match:c.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...i,...o]}},I={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},D={variants:[{match:[/function/,/\s+/,d,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[C],illegal:/%/},L={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function P(e){return c.concat("(?!",e.join("|"),")")}const M={match:c.concat(/\b/,P([...a,"super"]),d,c.lookahead(/\(/)),className:"title.function",relevance:0},F={begin:c.concat(/\./,c.lookahead(c.concat(d,/(?![0-9A-Za-z$_(])/))),end:d,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},B={match:[/get|set/,/\s+/,d,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},C]},$="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",j={match:[/const|var|let/,/\s+/,d,/\s*/,/=\s*/,/(async\s*)?/,c.lookahead($)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[C]};return{name:"Javascript",aliases:["js","jsx","mjs","cjs"],keywords:m,exports:{PARAMS_CONTAINS:T,CLASS_REFERENCE:O},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),I,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,w,E,S,k,b,O,{className:"attr",begin:d+c.lookahead(":"),relevance:0},j,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[k,e.REGEXP_MODE,{className:"function",begin:$,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:m,contains:T}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:h.begin,end:h.end},{match:p},{begin:f.begin,"on:begin":f.isTrulyOpeningTag,end:f.end}],subLanguage:"xml",contains:[{begin:f.begin,end:f.end,skip:!0,contains:["self"]}]}]},D,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[C,e.inherit(e.TITLE_MODE,{begin:d,className:"title.function"})]},{match:/\.\.\./,relevance:0},F,{match:"\\$"+d,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[C]},M,L,R,B,{match:/\$[(.]/}]}}e.exports=c},52912:function(e){function t(e){const t={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},n={match:/[{}[\],:]/,className:"punctuation",relevance:0},r=["true","false","null"],i={scope:"literal",beginKeywords:r.join(" ")};return{name:"JSON",keywords:{literal:r},contains:[t,n,e.QUOTE_STRING_MODE,i,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}e.exports=t},8363:function(e){var t="[0-9](_*[0-9])*",n=`\\.(${t})`,r="[0-9a-fA-F](_*[0-9a-fA-F])*",i={className:"number",variants:[{begin:`(\\b(${t})((${n})|\\.)?|(${n}))[eE][+-]?(${t})[fFdD]?\\b`},{begin:`\\b(${t})((${n})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${n})[fFdD]?\\b`},{begin:`\\b(${t})[fFdD]\\b`},{begin:`\\b0[xX]((${r})\\.?|(${r})?\\.(${r}))[pP][+-]?(${t})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${r})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function o(e){const t={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},n={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},r={className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"@"},o={className:"subst",begin:/\$\{/,end:/\}/,contains:[e.C_NUMBER_MODE]},a={className:"variable",begin:"\\$"+e.UNDERSCORE_IDENT_RE},s={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[a,o]},{begin:"'",end:"'",illegal:/\n/,contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[e.BACKSLASH_ESCAPE,a,o]}]};o.contains.push(s);const l={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+e.UNDERSCORE_IDENT_RE+")?"},c={className:"meta",begin:"@"+e.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[e.inherit(s,{className:"string"}),"self"]}]},u=i,d=e.COMMENT("/\\*","\\*/",{contains:[e.C_BLOCK_COMMENT_MODE]}),h={variants:[{className:"type",begin:e.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},p=h;return p.variants[1].contains=[h],h.variants[1].contains=[p],{name:"Kotlin",aliases:["kt","kts"],keywords:t,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,d,n,r,l,c,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:t,relevance:5,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:t,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[h,e.C_LINE_COMMENT_MODE,d],relevance:0},e.C_LINE_COMMENT_MODE,d,l,c,s,e.C_NUMBER_MODE]},d]},{begin:[/class|interface|trait/,/\s+/,e.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},e.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},l,c]},s,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:"\n"},u]}}e.exports=o},53535:function(e){const t=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z][A-Za-z0-9_-]*/}}),n=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],r=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],i=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],o=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],a=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse(),s=i.concat(o);function l(e){const l=t(e),c=s,u="and or not only",d="[\\w-]+",h="("+d+"|@\\{"+d+"\\})",p=[],f=[],m=function(e){return{className:"string",begin:"~?"+e+".*?"+e}},g=function(e,t,n){return{className:e,begin:t,relevance:n}},v={$pattern:/[a-z-]+/,keyword:u,attribute:r.join(" ")},y={begin:"\\(",end:"\\)",contains:f,keywords:v,relevance:0};f.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,m("'"),m('"'),l.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},l.HEXCOLOR,y,g("variable","@@?"+d,10),g("variable","@\\{"+d+"\\}"),g("built_in","~?`[^`]*?`"),{className:"attribute",begin:d+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},l.IMPORTANT,{beginKeywords:"and not"},l.FUNCTION_DISPATCH);const b=f.concat({begin:/\{/,end:/\}/,contains:p}),_={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(f)},w={begin:h+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},l.CSS_VARIABLE,{className:"attribute",begin:"\\b("+a.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:f}}]},E={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:v,returnEnd:!0,contains:f,relevance:0}},S={className:"variable",variants:[{begin:"@"+d+"\\s*:",relevance:15},{begin:"@"+d}],starts:{end:"[;}]",returnEnd:!0,contains:b}},x={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:h,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:"[<='$\"]",relevance:0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,_,g("keyword","all\\b"),g("variable","@\\{"+d+"\\}"),{begin:"\\b("+n.join("|")+")\\b",className:"selector-tag"},l.CSS_NUMBER_MODE,g("selector-tag",h,0),g("selector-id","#"+h),g("selector-class","\\."+h,0),g("selector-tag","&",0),l.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+i.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+o.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:b},{begin:"!important"},l.FUNCTION_DISPATCH]},k={begin:d+":(:)?"+`(${c.join("|")})`,returnBegin:!0,contains:[x]};return p.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,E,S,k,w,x,_,l.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:"[=>'/<($\"]",contains:p}}e.exports=l},606:function(e){function t(e){const t="[a-zA-Z_\\-+\\*\\/<=>&#][a-zA-Z0-9_\\-+*\\/<=>&#!]*",n="\\|[^]*?\\|",r="(-|\\+)?\\d+(\\.\\d+|\\/\\d+)?((d|e|f|l|s|D|E|F|L|S)(\\+|-)?\\d+)?",i={className:"literal",begin:"\\b(t{1}|nil)\\b"},o={className:"number",variants:[{begin:r,relevance:0},{begin:"#(b|B)[0-1]+(/[0-1]+)?"},{begin:"#(o|O)[0-7]+(/[0-7]+)?"},{begin:"#(x|X)[0-9a-fA-F]+(/[0-9a-fA-F]+)?"},{begin:"#(c|C)\\("+r+" +"+r,end:"\\)"}]},a=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),s=e.COMMENT(";","$",{relevance:0}),l={begin:"\\*",end:"\\*"},c={className:"symbol",begin:"[:&]"+t},u={begin:t,relevance:0},d={begin:n},h={begin:"\\(",end:"\\)",contains:["self",i,a,o,u]},p={contains:[o,a,l,c,h,u],variants:[{begin:"['`]\\(",end:"\\)"},{begin:"\\(quote ",end:"\\)",keywords:{name:"quote"}},{begin:"'"+n}]},f={variants:[{begin:"'"+t},{begin:"#'"+t+"(::"+t+")*"}]},m={begin:"\\(\\s*",end:"\\)"},g={endsWithParent:!0,relevance:0};return m.contains=[{className:"name",variants:[{begin:t,relevance:0},{begin:n}]},g],g.contains=[p,f,m,i,o,a,s,l,c,d,u],{name:"Lisp",illegal:/\S/,contains:[o,e.SHEBANG(),i,a,s,p,f,m,u]}}e.exports=t},99626:function(e){function t(e){const t="\\[=*\\[",n="\\]=*\\]",r={begin:t,end:n,contains:["self"]},i=[e.COMMENT("--(?!"+t+")","$"),e.COMMENT("--"+t,n,{contains:[r],relevance:10})];return{name:"Lua",keywords:{$pattern:e.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:i.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[e.inherit(e.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:i}].concat(i)},e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:t,end:n,contains:[r],relevance:5}])}}e.exports=t},36058:function(e){function t(e){const t={className:"variable",variants:[{begin:"\\$\\("+e.UNDERSCORE_IDENT_RE+"\\)",contains:[e.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},n={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,t]},r={className:"variable",begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"},contains:[t]},i={begin:"^"+e.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},o={className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},a={className:"section",begin:/^[^\s]+:/,end:/$/,contains:[t]};return{name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"},contains:[e.HASH_COMMENT_MODE,t,n,r,i,o,a]}}e.exports=t},8211:function(e){function t(e){const t=e.regex,n={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},r={begin:"^[-\\*]{3,}",end:"$"},i={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},o={className:"bullet",begin:"^[ \t]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},a={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},s=/[A-Za-z][A-Za-z0-9+.-]*/,l={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:t.concat(/\[.+?\]\(/,s,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},c={className:"strong",contains:[],variants:[{begin:/_{2}/,end:/_{2}/},{begin:/\*{2}/,end:/\*{2}/}]},u={className:"emphasis",contains:[],variants:[{begin:/\*(?!\*)/,end:/\*/},{begin:/_(?!_)/,end:/_/,relevance:0}]},d=e.inherit(c,{contains:[]}),h=e.inherit(u,{contains:[]});c.contains.push(h),u.contains.push(d);let p=[n,l];[c,u,d,h].forEach((e=>{e.contains=e.contains.concat(p)})),p=p.concat(c,u);const f={className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:p},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:p}]}]},m={className:"quote",begin:"^>\\s+",contains:p,end:"$"};return{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[f,n,o,c,u,m,i,r,l,a]}}e.exports=t},59732:function(e){function t(e){const t=e.regex,n={className:"variable",variants:[{begin:/\$\d+/},{begin:/\$\{\w+\}/},{begin:t.concat(/[$@]/,e.UNDERSCORE_IDENT_RE)}]},r=["on","off","yes","no","true","false","none","blocked","debug","info","notice","warn","error","crit","select","break","last","permanent","redirect","kqueue","rtsig","epoll","poll","/dev/poll"],i={endsWithParent:!0,keywords:{$pattern:/[a-z_]{2,}|\/dev\/poll/,literal:r},relevance:0,illegal:"=>",contains:[e.HASH_COMMENT_MODE,{className:"string",contains:[e.BACKSLASH_ESCAPE,n],variants:[{begin:/"/,end:/"/},{begin:/'/,end:/'/}]},{begin:"([a-z]+):/",end:"\\s",endsWithParent:!0,excludeEnd:!0,contains:[n]},{className:"regexp",contains:[e.BACKSLASH_ESCAPE,n],variants:[{begin:"\\s\\^",end:"\\s|\\{|;",returnEnd:!0},{begin:"~\\*?\\s+",end:"\\s|\\{|;",returnEnd:!0},{begin:"\\*(\\.[a-z\\-]+)+"},{begin:"([a-z\\-]+\\.)+\\*"}]},{className:"number",begin:"\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b"},{className:"number",begin:"\\b\\d+[kKmMgGdshdwy]?\\b",relevance:0},n]};return{name:"Nginx config",aliases:["nginxconf"],contains:[e.HASH_COMMENT_MODE,{beginKeywords:"upstream location",end:/;|\{/,contains:i.contains,keywords:{section:"upstream location"}},{className:"section",begin:t.concat(e.UNDERSCORE_IDENT_RE+t.lookahead(/\s+\{/)),relevance:0},{begin:t.lookahead(e.UNDERSCORE_IDENT_RE+"\\s"),end:";|\\{",contains:[{className:"attribute",begin:e.UNDERSCORE_IDENT_RE,starts:i}],relevance:0}],illegal:"[^\\s\\}\\{]"}}e.exports=t},37674:function(e){function t(e){const t={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},n=/[a-zA-Z@][a-zA-Z0-9_]*/,r=["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"],i=["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],o=["false","true","FALSE","TRUE","nil","YES","NO","NULL"],a=["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],s={"variable.language":["this","super"],$pattern:n,keyword:i,literal:o,built_in:a,type:r},l={$pattern:n,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:s,illegal:"</",contains:[t,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]}]},{className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),{className:"string",begin:/<.*?>/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+l.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:l,contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"\\."+e.UNDERSCORE_IDENT_RE,relevance:0}]}}e.exports=t},25023:function(e){function t(e){const t=e.regex,n=["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"],r=/[dualxmsipngr]{0,12}/,i={$pattern:/[\w.]+/,keyword:n.join(" ")},o={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:i},a={begin:/->\{/,end:/\}/},s={variants:[{begin:/\$\d/},{begin:t.concat(/[$%@](\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@][^\s\w{]/,relevance:0}]},l=[e.BACKSLASH_ESCAPE,o,s],c=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],u=(e,n,i="\\1")=>{const o="\\1"===i?i:t.concat(i,n);return t.concat(t.concat("(?:",e,")"),n,/(?:\\.|[^\\\/])*?/,o,/(?:\\.|[^\\\/])*?/,i,r)},d=(e,n,i)=>t.concat(t.concat("(?:",e,")"),n,/(?:\\.|[^\\\/])*?/,i,r),h=[s,e.HASH_COMMENT_MODE,e.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),a,{className:"string",contains:l,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},{className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},{begin:"(\\/\\/|"+e.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[e.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:u("s|tr|y",t.either(...c,{capture:!0}))},{begin:u("s|tr|y","\\(","\\)")},{begin:u("s|tr|y","\\[","\\]")},{begin:u("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:d("(?:m|qr)?",/\//,/\//)},{begin:d("m|qr",t.either(...c,{capture:!0}),/\1/)},{begin:d("m|qr",/\(/,/\)/)},{begin:d("m|qr",/\[/,/\]/)},{begin:d("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return o.contains=h,a.contains=h,{name:"Perl",aliases:["pl","pm"],keywords:i,contains:h}}e.exports=t},37243:function(e){function t(e){const t=e.COMMENT("--","$"),n="[a-zA-Z_][a-zA-Z_0-9$]*",r="\\$([a-zA-Z_]?|[a-zA-Z_][a-zA-Z_0-9]*)\\$",i="<<\\s*"+n+"\\s*>>",o="ABORT ALTER ANALYZE BEGIN CALL CHECKPOINT|10 CLOSE CLUSTER COMMENT COMMIT COPY CREATE DEALLOCATE DECLARE DELETE DISCARD DO DROP END EXECUTE EXPLAIN FETCH GRANT IMPORT INSERT LISTEN LOAD LOCK MOVE NOTIFY PREPARE REASSIGN|10 REFRESH REINDEX RELEASE RESET REVOKE ROLLBACK SAVEPOINT SECURITY SELECT SET SHOW START TRUNCATE UNLISTEN|10 UPDATE VACUUM|10 VALUES AGGREGATE COLLATION CONVERSION|10 DATABASE DEFAULT PRIVILEGES DOMAIN TRIGGER EXTENSION FOREIGN WRAPPER|10 TABLE FUNCTION GROUP LANGUAGE LARGE OBJECT MATERIALIZED VIEW OPERATOR CLASS FAMILY POLICY PUBLICATION|10 ROLE RULE SCHEMA SEQUENCE SERVER STATISTICS SUBSCRIPTION SYSTEM TABLESPACE CONFIGURATION DICTIONARY PARSER TEMPLATE TYPE USER MAPPING PREPARED ACCESS METHOD CAST AS TRANSFORM TRANSACTION OWNED TO INTO SESSION AUTHORIZATION INDEX PROCEDURE ASSERTION ALL ANALYSE AND ANY ARRAY ASC ASYMMETRIC|10 BOTH CASE CHECK COLLATE COLUMN CONCURRENTLY|10 CONSTRAINT CROSS DEFERRABLE RANGE DESC DISTINCT ELSE EXCEPT FOR FREEZE|10 FROM FULL HAVING ILIKE IN INITIALLY INNER INTERSECT IS ISNULL JOIN LATERAL LEADING LIKE LIMIT NATURAL NOT NOTNULL NULL OFFSET ON ONLY OR ORDER OUTER OVERLAPS PLACING PRIMARY REFERENCES RETURNING SIMILAR SOME SYMMETRIC TABLESAMPLE THEN TRAILING UNION UNIQUE USING VARIADIC|10 VERBOSE WHEN WHERE WINDOW WITH BY RETURNS INOUT OUT SETOF|10 IF STRICT CURRENT CONTINUE OWNER LOCATION OVER PARTITION WITHIN BETWEEN ESCAPE EXTERNAL INVOKER DEFINER WORK RENAME VERSION CONNECTION CONNECT TABLES TEMP TEMPORARY FUNCTIONS SEQUENCES TYPES SCHEMAS OPTION CASCADE RESTRICT ADD ADMIN EXISTS VALID VALIDATE ENABLE DISABLE REPLICA|10 ALWAYS PASSING COLUMNS PATH REF VALUE OVERRIDING IMMUTABLE STABLE VOLATILE BEFORE AFTER EACH ROW PROCEDURAL ROUTINE NO HANDLER VALIDATOR OPTIONS STORAGE OIDS|10 WITHOUT INHERIT DEPENDS CALLED INPUT LEAKPROOF|10 COST ROWS NOWAIT SEARCH UNTIL ENCRYPTED|10 PASSWORD CONFLICT|10 INSTEAD INHERITS CHARACTERISTICS WRITE CURSOR ALSO STATEMENT SHARE EXCLUSIVE INLINE ISOLATION REPEATABLE READ COMMITTED SERIALIZABLE UNCOMMITTED LOCAL GLOBAL SQL PROCEDURES RECURSIVE SNAPSHOT ROLLUP CUBE TRUSTED|10 INCLUDE FOLLOWING PRECEDING UNBOUNDED RANGE GROUPS UNENCRYPTED|10 SYSID FORMAT DELIMITER HEADER QUOTE ENCODING FILTER OFF FORCE_QUOTE FORCE_NOT_NULL FORCE_NULL COSTS BUFFERS TIMING SUMMARY DISABLE_PAGE_SKIPPING RESTART CYCLE GENERATED IDENTITY DEFERRED IMMEDIATE LEVEL LOGGED UNLOGGED OF NOTHING NONE EXCLUDE ATTRIBUTE USAGE ROUTINES TRUE FALSE NAN INFINITY ",a="SUPERUSER NOSUPERUSER CREATEDB NOCREATEDB CREATEROLE NOCREATEROLE INHERIT NOINHERIT LOGIN NOLOGIN REPLICATION NOREPLICATION BYPASSRLS NOBYPASSRLS ",s="ALIAS BEGIN CONSTANT DECLARE END EXCEPTION RETURN PERFORM|10 RAISE GET DIAGNOSTICS STACKED|10 FOREACH LOOP ELSIF EXIT WHILE REVERSE SLICE DEBUG LOG INFO NOTICE WARNING ASSERT OPEN ",l="BIGINT INT8 BIGSERIAL SERIAL8 BIT VARYING VARBIT BOOLEAN BOOL BOX BYTEA CHARACTER CHAR VARCHAR CIDR CIRCLE DATE DOUBLE PRECISION FLOAT8 FLOAT INET INTEGER INT INT4 INTERVAL JSON JSONB LINE LSEG|10 MACADDR MACADDR8 MONEY NUMERIC DEC DECIMAL PATH POINT POLYGON REAL FLOAT4 SMALLINT INT2 SMALLSERIAL|10 SERIAL2|10 SERIAL|10 SERIAL4|10 TEXT TIME ZONE TIMETZ|10 TIMESTAMP TIMESTAMPTZ|10 TSQUERY|10 TSVECTOR|10 TXID_SNAPSHOT|10 UUID XML NATIONAL NCHAR INT4RANGE|10 INT8RANGE|10 NUMRANGE|10 TSRANGE|10 TSTZRANGE|10 DATERANGE|10 ANYELEMENT ANYARRAY ANYNONARRAY ANYENUM ANYRANGE CSTRING INTERNAL RECORD PG_DDL_COMMAND VOID UNKNOWN OPAQUE REFCURSOR NAME OID REGPROC|10 REGPROCEDURE|10 REGOPER|10 REGOPERATOR|10 REGCLASS|10 REGTYPE|10 REGROLE|10 REGNAMESPACE|10 REGCONFIG|10 REGDICTIONARY|10 ",c=l.trim().split(" ").map((function(e){return e.split("|")[0]})).join("|"),u="CURRENT_TIME CURRENT_TIMESTAMP CURRENT_USER CURRENT_CATALOG|10 CURRENT_DATE LOCALTIME LOCALTIMESTAMP CURRENT_ROLE|10 CURRENT_SCHEMA|10 SESSION_USER PUBLIC ",d="FOUND NEW OLD TG_NAME|10 TG_WHEN|10 TG_LEVEL|10 TG_OP|10 TG_RELID|10 TG_RELNAME|10 TG_TABLE_NAME|10 TG_TABLE_SCHEMA|10 TG_NARGS|10 TG_ARGV|10 TG_EVENT|10 TG_TAG|10 ROW_COUNT RESULT_OID|10 PG_CONTEXT|10 RETURNED_SQLSTATE COLUMN_NAME CONSTRAINT_NAME PG_DATATYPE_NAME|10 MESSAGE_TEXT TABLE_NAME SCHEMA_NAME PG_EXCEPTION_DETAIL|10 PG_EXCEPTION_HINT|10 PG_EXCEPTION_CONTEXT|10 ",h="SQLSTATE SQLERRM|10 SUCCESSFUL_COMPLETION WARNING DYNAMIC_RESULT_SETS_RETURNED IMPLICIT_ZERO_BIT_PADDING NULL_VALUE_ELIMINATED_IN_SET_FUNCTION PRIVILEGE_NOT_GRANTED PRIVILEGE_NOT_REVOKED STRING_DATA_RIGHT_TRUNCATION DEPRECATED_FEATURE NO_DATA NO_ADDITIONAL_DYNAMIC_RESULT_SETS_RETURNED SQL_STATEMENT_NOT_YET_COMPLETE CONNECTION_EXCEPTION CONNECTION_DOES_NOT_EXIST CONNECTION_FAILURE SQLCLIENT_UNABLE_TO_ESTABLISH_SQLCONNECTION SQLSERVER_REJECTED_ESTABLISHMENT_OF_SQLCONNECTION TRANSACTION_RESOLUTION_UNKNOWN PROTOCOL_VIOLATION TRIGGERED_ACTION_EXCEPTION FEATURE_NOT_SUPPORTED INVALID_TRANSACTION_INITIATION LOCATOR_EXCEPTION INVALID_LOCATOR_SPECIFICATION INVALID_GRANTOR INVALID_GRANT_OPERATION INVALID_ROLE_SPECIFICATION DIAGNOSTICS_EXCEPTION STACKED_DIAGNOSTICS_ACCESSED_WITHOUT_ACTIVE_HANDLER CASE_NOT_FOUND CARDINALITY_VIOLATION DATA_EXCEPTION ARRAY_SUBSCRIPT_ERROR CHARACTER_NOT_IN_REPERTOIRE DATETIME_FIELD_OVERFLOW DIVISION_BY_ZERO ERROR_IN_ASSIGNMENT ESCAPE_CHARACTER_CONFLICT INDICATOR_OVERFLOW INTERVAL_FIELD_OVERFLOW INVALID_ARGUMENT_FOR_LOGARITHM INVALID_ARGUMENT_FOR_NTILE_FUNCTION INVALID_ARGUMENT_FOR_NTH_VALUE_FUNCTION INVALID_ARGUMENT_FOR_POWER_FUNCTION INVALID_ARGUMENT_FOR_WIDTH_BUCKET_FUNCTION INVALID_CHARACTER_VALUE_FOR_CAST INVALID_DATETIME_FORMAT INVALID_ESCAPE_CHARACTER INVALID_ESCAPE_OCTET INVALID_ESCAPE_SEQUENCE NONSTANDARD_USE_OF_ESCAPE_CHARACTER INVALID_INDICATOR_PARAMETER_VALUE INVALID_PARAMETER_VALUE INVALID_REGULAR_EXPRESSION INVALID_ROW_COUNT_IN_LIMIT_CLAUSE INVALID_ROW_COUNT_IN_RESULT_OFFSET_CLAUSE INVALID_TABLESAMPLE_ARGUMENT INVALID_TABLESAMPLE_REPEAT INVALID_TIME_ZONE_DISPLACEMENT_VALUE INVALID_USE_OF_ESCAPE_CHARACTER MOST_SPECIFIC_TYPE_MISMATCH NULL_VALUE_NOT_ALLOWED NULL_VALUE_NO_INDICATOR_PARAMETER NUMERIC_VALUE_OUT_OF_RANGE SEQUENCE_GENERATOR_LIMIT_EXCEEDED STRING_DATA_LENGTH_MISMATCH STRING_DATA_RIGHT_TRUNCATION SUBSTRING_ERROR TRIM_ERROR UNTERMINATED_C_STRING ZERO_LENGTH_CHARACTER_STRING FLOATING_POINT_EXCEPTION INVALID_TEXT_REPRESENTATION INVALID_BINARY_REPRESENTATION BAD_COPY_FILE_FORMAT UNTRANSLATABLE_CHARACTER NOT_AN_XML_DOCUMENT INVALID_XML_DOCUMENT INVALID_XML_CONTENT INVALID_XML_COMMENT INVALID_XML_PROCESSING_INSTRUCTION INTEGRITY_CONSTRAINT_VIOLATION RESTRICT_VIOLATION NOT_NULL_VIOLATION FOREIGN_KEY_VIOLATION UNIQUE_VIOLATION CHECK_VIOLATION EXCLUSION_VIOLATION INVALID_CURSOR_STATE INVALID_TRANSACTION_STATE ACTIVE_SQL_TRANSACTION BRANCH_TRANSACTION_ALREADY_ACTIVE HELD_CURSOR_REQUIRES_SAME_ISOLATION_LEVEL INAPPROPRIATE_ACCESS_MODE_FOR_BRANCH_TRANSACTION INAPPROPRIATE_ISOLATION_LEVEL_FOR_BRANCH_TRANSACTION NO_ACTIVE_SQL_TRANSACTION_FOR_BRANCH_TRANSACTION READ_ONLY_SQL_TRANSACTION SCHEMA_AND_DATA_STATEMENT_MIXING_NOT_SUPPORTED NO_ACTIVE_SQL_TRANSACTION IN_FAILED_SQL_TRANSACTION IDLE_IN_TRANSACTION_SESSION_TIMEOUT INVALID_SQL_STATEMENT_NAME TRIGGERED_DATA_CHANGE_VIOLATION INVALID_AUTHORIZATION_SPECIFICATION INVALID_PASSWORD DEPENDENT_PRIVILEGE_DESCRIPTORS_STILL_EXIST DEPENDENT_OBJECTS_STILL_EXIST INVALID_TRANSACTION_TERMINATION SQL_ROUTINE_EXCEPTION FUNCTION_EXECUTED_NO_RETURN_STATEMENT MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED READING_SQL_DATA_NOT_PERMITTED INVALID_CURSOR_NAME EXTERNAL_ROUTINE_EXCEPTION CONTAINING_SQL_NOT_PERMITTED MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED READING_SQL_DATA_NOT_PERMITTED EXTERNAL_ROUTINE_INVOCATION_EXCEPTION INVALID_SQLSTATE_RETURNED NULL_VALUE_NOT_ALLOWED TRIGGER_PROTOCOL_VIOLATED SRF_PROTOCOL_VIOLATED EVENT_TRIGGER_PROTOCOL_VIOLATED SAVEPOINT_EXCEPTION INVALID_SAVEPOINT_SPECIFICATION INVALID_CATALOG_NAME INVALID_SCHEMA_NAME TRANSACTION_ROLLBACK TRANSACTION_INTEGRITY_CONSTRAINT_VIOLATION SERIALIZATION_FAILURE STATEMENT_COMPLETION_UNKNOWN DEADLOCK_DETECTED SYNTAX_ERROR_OR_ACCESS_RULE_VIOLATION SYNTAX_ERROR INSUFFICIENT_PRIVILEGE CANNOT_COERCE GROUPING_ERROR WINDOWING_ERROR INVALID_RECURSION INVALID_FOREIGN_KEY INVALID_NAME NAME_TOO_LONG RESERVED_NAME DATATYPE_MISMATCH INDETERMINATE_DATATYPE COLLATION_MISMATCH INDETERMINATE_COLLATION WRONG_OBJECT_TYPE GENERATED_ALWAYS UNDEFINED_COLUMN UNDEFINED_FUNCTION UNDEFINED_TABLE UNDEFINED_PARAMETER UNDEFINED_OBJECT DUPLICATE_COLUMN DUPLICATE_CURSOR DUPLICATE_DATABASE DUPLICATE_FUNCTION DUPLICATE_PREPARED_STATEMENT DUPLICATE_SCHEMA DUPLICATE_TABLE DUPLICATE_ALIAS DUPLICATE_OBJECT AMBIGUOUS_COLUMN AMBIGUOUS_FUNCTION AMBIGUOUS_PARAMETER AMBIGUOUS_ALIAS INVALID_COLUMN_REFERENCE INVALID_COLUMN_DEFINITION INVALID_CURSOR_DEFINITION INVALID_DATABASE_DEFINITION INVALID_FUNCTION_DEFINITION INVALID_PREPARED_STATEMENT_DEFINITION INVALID_SCHEMA_DEFINITION INVALID_TABLE_DEFINITION INVALID_OBJECT_DEFINITION WITH_CHECK_OPTION_VIOLATION INSUFFICIENT_RESOURCES DISK_FULL OUT_OF_MEMORY TOO_MANY_CONNECTIONS CONFIGURATION_LIMIT_EXCEEDED PROGRAM_LIMIT_EXCEEDED STATEMENT_TOO_COMPLEX TOO_MANY_COLUMNS TOO_MANY_ARGUMENTS OBJECT_NOT_IN_PREREQUISITE_STATE OBJECT_IN_USE CANT_CHANGE_RUNTIME_PARAM LOCK_NOT_AVAILABLE OPERATOR_INTERVENTION QUERY_CANCELED ADMIN_SHUTDOWN CRASH_SHUTDOWN CANNOT_CONNECT_NOW DATABASE_DROPPED SYSTEM_ERROR IO_ERROR UNDEFINED_FILE DUPLICATE_FILE SNAPSHOT_TOO_OLD CONFIG_FILE_ERROR LOCK_FILE_EXISTS FDW_ERROR FDW_COLUMN_NAME_NOT_FOUND FDW_DYNAMIC_PARAMETER_VALUE_NEEDED FDW_FUNCTION_SEQUENCE_ERROR FDW_INCONSISTENT_DESCRIPTOR_INFORMATION FDW_INVALID_ATTRIBUTE_VALUE FDW_INVALID_COLUMN_NAME FDW_INVALID_COLUMN_NUMBER FDW_INVALID_DATA_TYPE FDW_INVALID_DATA_TYPE_DESCRIPTORS FDW_INVALID_DESCRIPTOR_FIELD_IDENTIFIER FDW_INVALID_HANDLE FDW_INVALID_OPTION_INDEX FDW_INVALID_OPTION_NAME FDW_INVALID_STRING_LENGTH_OR_BUFFER_LENGTH FDW_INVALID_STRING_FORMAT FDW_INVALID_USE_OF_NULL_POINTER FDW_TOO_MANY_HANDLES FDW_OUT_OF_MEMORY FDW_NO_SCHEMAS FDW_OPTION_NAME_NOT_FOUND FDW_REPLY_HANDLE FDW_SCHEMA_NOT_FOUND FDW_TABLE_NOT_FOUND FDW_UNABLE_TO_CREATE_EXECUTION FDW_UNABLE_TO_CREATE_REPLY FDW_UNABLE_TO_ESTABLISH_CONNECTION PLPGSQL_ERROR RAISE_EXCEPTION NO_DATA_FOUND TOO_MANY_ROWS ASSERT_FAILURE INTERNAL_ERROR DATA_CORRUPTED INDEX_CORRUPTED ",p="ARRAY_AGG AVG BIT_AND BIT_OR BOOL_AND BOOL_OR COUNT EVERY JSON_AGG JSONB_AGG JSON_OBJECT_AGG JSONB_OBJECT_AGG MAX MIN MODE STRING_AGG SUM XMLAGG CORR COVAR_POP COVAR_SAMP REGR_AVGX REGR_AVGY REGR_COUNT REGR_INTERCEPT REGR_R2 REGR_SLOPE REGR_SXX REGR_SXY REGR_SYY STDDEV STDDEV_POP STDDEV_SAMP VARIANCE VAR_POP VAR_SAMP PERCENTILE_CONT PERCENTILE_DISC ROW_NUMBER RANK DENSE_RANK PERCENT_RANK CUME_DIST NTILE LAG LEAD FIRST_VALUE LAST_VALUE NTH_VALUE NUM_NONNULLS NUM_NULLS ABS CBRT CEIL CEILING DEGREES DIV EXP FLOOR LN LOG MOD PI POWER RADIANS ROUND SCALE SIGN SQRT TRUNC WIDTH_BUCKET RANDOM SETSEED ACOS ACOSD ASIN ASIND ATAN ATAND ATAN2 ATAN2D COS COSD COT COTD SIN SIND TAN TAND BIT_LENGTH CHAR_LENGTH CHARACTER_LENGTH LOWER OCTET_LENGTH OVERLAY POSITION SUBSTRING TREAT TRIM UPPER ASCII BTRIM CHR CONCAT CONCAT_WS CONVERT CONVERT_FROM CONVERT_TO DECODE ENCODE INITCAP LEFT LENGTH LPAD LTRIM MD5 PARSE_IDENT PG_CLIENT_ENCODING QUOTE_IDENT|10 QUOTE_LITERAL|10 QUOTE_NULLABLE|10 REGEXP_MATCH REGEXP_MATCHES REGEXP_REPLACE REGEXP_SPLIT_TO_ARRAY REGEXP_SPLIT_TO_TABLE REPEAT REPLACE REVERSE RIGHT RPAD RTRIM SPLIT_PART STRPOS SUBSTR TO_ASCII TO_HEX TRANSLATE OCTET_LENGTH GET_BIT GET_BYTE SET_BIT SET_BYTE TO_CHAR TO_DATE TO_NUMBER TO_TIMESTAMP AGE CLOCK_TIMESTAMP|10 DATE_PART DATE_TRUNC ISFINITE JUSTIFY_DAYS JUSTIFY_HOURS JUSTIFY_INTERVAL MAKE_DATE MAKE_INTERVAL|10 MAKE_TIME MAKE_TIMESTAMP|10 MAKE_TIMESTAMPTZ|10 NOW STATEMENT_TIMESTAMP|10 TIMEOFDAY TRANSACTION_TIMESTAMP|10 ENUM_FIRST ENUM_LAST ENUM_RANGE AREA CENTER DIAMETER HEIGHT ISCLOSED ISOPEN NPOINTS PCLOSE POPEN RADIUS WIDTH BOX BOUND_BOX CIRCLE LINE LSEG PATH POLYGON ABBREV BROADCAST HOST HOSTMASK MASKLEN NETMASK NETWORK SET_MASKLEN TEXT INET_SAME_FAMILY INET_MERGE MACADDR8_SET7BIT ARRAY_TO_TSVECTOR GET_CURRENT_TS_CONFIG NUMNODE PLAINTO_TSQUERY PHRASETO_TSQUERY WEBSEARCH_TO_TSQUERY QUERYTREE SETWEIGHT STRIP TO_TSQUERY TO_TSVECTOR JSON_TO_TSVECTOR JSONB_TO_TSVECTOR TS_DELETE TS_FILTER TS_HEADLINE TS_RANK TS_RANK_CD TS_REWRITE TSQUERY_PHRASE TSVECTOR_TO_ARRAY TSVECTOR_UPDATE_TRIGGER TSVECTOR_UPDATE_TRIGGER_COLUMN XMLCOMMENT XMLCONCAT XMLELEMENT XMLFOREST XMLPI XMLROOT XMLEXISTS XML_IS_WELL_FORMED XML_IS_WELL_FORMED_DOCUMENT XML_IS_WELL_FORMED_CONTENT XPATH XPATH_EXISTS XMLTABLE XMLNAMESPACES TABLE_TO_XML TABLE_TO_XMLSCHEMA TABLE_TO_XML_AND_XMLSCHEMA QUERY_TO_XML QUERY_TO_XMLSCHEMA QUERY_TO_XML_AND_XMLSCHEMA CURSOR_TO_XML CURSOR_TO_XMLSCHEMA SCHEMA_TO_XML SCHEMA_TO_XMLSCHEMA SCHEMA_TO_XML_AND_XMLSCHEMA DATABASE_TO_XML DATABASE_TO_XMLSCHEMA DATABASE_TO_XML_AND_XMLSCHEMA XMLATTRIBUTES TO_JSON TO_JSONB ARRAY_TO_JSON ROW_TO_JSON JSON_BUILD_ARRAY JSONB_BUILD_ARRAY JSON_BUILD_OBJECT JSONB_BUILD_OBJECT JSON_OBJECT JSONB_OBJECT JSON_ARRAY_LENGTH JSONB_ARRAY_LENGTH JSON_EACH JSONB_EACH JSON_EACH_TEXT JSONB_EACH_TEXT JSON_EXTRACT_PATH JSONB_EXTRACT_PATH JSON_OBJECT_KEYS JSONB_OBJECT_KEYS JSON_POPULATE_RECORD JSONB_POPULATE_RECORD JSON_POPULATE_RECORDSET JSONB_POPULATE_RECORDSET JSON_ARRAY_ELEMENTS JSONB_ARRAY_ELEMENTS JSON_ARRAY_ELEMENTS_TEXT JSONB_ARRAY_ELEMENTS_TEXT JSON_TYPEOF JSONB_TYPEOF JSON_TO_RECORD JSONB_TO_RECORD JSON_TO_RECORDSET JSONB_TO_RECORDSET JSON_STRIP_NULLS JSONB_STRIP_NULLS JSONB_SET JSONB_INSERT JSONB_PRETTY CURRVAL LASTVAL NEXTVAL SETVAL COALESCE NULLIF GREATEST LEAST ARRAY_APPEND ARRAY_CAT ARRAY_NDIMS ARRAY_DIMS ARRAY_FILL ARRAY_LENGTH ARRAY_LOWER ARRAY_POSITION ARRAY_POSITIONS ARRAY_PREPEND ARRAY_REMOVE ARRAY_REPLACE ARRAY_TO_STRING ARRAY_UPPER CARDINALITY STRING_TO_ARRAY UNNEST ISEMPTY LOWER_INC UPPER_INC LOWER_INF UPPER_INF RANGE_MERGE GENERATE_SERIES GENERATE_SUBSCRIPTS CURRENT_DATABASE CURRENT_QUERY CURRENT_SCHEMA|10 CURRENT_SCHEMAS|10 INET_CLIENT_ADDR INET_CLIENT_PORT INET_SERVER_ADDR INET_SERVER_PORT ROW_SECURITY_ACTIVE FORMAT_TYPE TO_REGCLASS TO_REGPROC TO_REGPROCEDURE TO_REGOPER TO_REGOPERATOR TO_REGTYPE TO_REGNAMESPACE TO_REGROLE COL_DESCRIPTION OBJ_DESCRIPTION SHOBJ_DESCRIPTION TXID_CURRENT TXID_CURRENT_IF_ASSIGNED TXID_CURRENT_SNAPSHOT TXID_SNAPSHOT_XIP TXID_SNAPSHOT_XMAX TXID_SNAPSHOT_XMIN TXID_VISIBLE_IN_SNAPSHOT TXID_STATUS CURRENT_SETTING SET_CONFIG BRIN_SUMMARIZE_NEW_VALUES BRIN_SUMMARIZE_RANGE BRIN_DESUMMARIZE_RANGE GIN_CLEAN_PENDING_LIST SUPPRESS_REDUNDANT_UPDATES_TRIGGER LO_FROM_BYTEA LO_PUT LO_GET LO_CREAT LO_CREATE LO_UNLINK LO_IMPORT LO_EXPORT LOREAD LOWRITE GROUPING CAST ",f=p.trim().split(" ").map((function(e){return e.split("|")[0]})).join("|");return{name:"PostgreSQL",aliases:["postgres","postgresql"],supersetOf:"sql",case_insensitive:!0,keywords:{keyword:o+s+a,built_in:u+d+h},illegal:/:==|\W\s*\(\*|(^|\s)\$[a-z]|\{\{|[a-z]:\s*$|\.\.\.|TO:|DO:/,contains:[{className:"keyword",variants:[{begin:/\bTEXT\s*SEARCH\b/},{begin:/\b(PRIMARY|FOREIGN|FOR(\s+NO)?)\s+KEY\b/},{begin:/\bPARALLEL\s+(UNSAFE|RESTRICTED|SAFE)\b/},{begin:/\bSTORAGE\s+(PLAIN|EXTERNAL|EXTENDED|MAIN)\b/},{begin:/\bMATCH\s+(FULL|PARTIAL|SIMPLE)\b/},{begin:/\bNULLS\s+(FIRST|LAST)\b/},{begin:/\bEVENT\s+TRIGGER\b/},{begin:/\b(MAPPING|OR)\s+REPLACE\b/},{begin:/\b(FROM|TO)\s+(PROGRAM|STDIN|STDOUT)\b/},{begin:/\b(SHARE|EXCLUSIVE)\s+MODE\b/},{begin:/\b(LEFT|RIGHT)\s+(OUTER\s+)?JOIN\b/},{begin:/\b(FETCH|MOVE)\s+(NEXT|PRIOR|FIRST|LAST|ABSOLUTE|RELATIVE|FORWARD|BACKWARD)\b/},{begin:/\bPRESERVE\s+ROWS\b/},{begin:/\bDISCARD\s+PLANS\b/},{begin:/\bREFERENCING\s+(OLD|NEW)\b/},{begin:/\bSKIP\s+LOCKED\b/},{begin:/\bGROUPING\s+SETS\b/},{begin:/\b(BINARY|INSENSITIVE|SCROLL|NO\s+SCROLL)\s+(CURSOR|FOR)\b/},{begin:/\b(WITH|WITHOUT)\s+HOLD\b/},{begin:/\bWITH\s+(CASCADED|LOCAL)\s+CHECK\s+OPTION\b/},{begin:/\bEXCLUDE\s+(TIES|NO\s+OTHERS)\b/},{begin:/\bFORMAT\s+(TEXT|XML|JSON|YAML)\b/},{begin:/\bSET\s+((SESSION|LOCAL)\s+)?NAMES\b/},{begin:/\bIS\s+(NOT\s+)?UNKNOWN\b/},{begin:/\bSECURITY\s+LABEL\b/},{begin:/\bSTANDALONE\s+(YES|NO|NO\s+VALUE)\b/},{begin:/\bWITH\s+(NO\s+)?DATA\b/},{begin:/\b(FOREIGN|SET)\s+DATA\b/},{begin:/\bSET\s+(CATALOG|CONSTRAINTS)\b/},{begin:/\b(WITH|FOR)\s+ORDINALITY\b/},{begin:/\bIS\s+(NOT\s+)?DOCUMENT\b/},{begin:/\bXML\s+OPTION\s+(DOCUMENT|CONTENT)\b/},{begin:/\b(STRIP|PRESERVE)\s+WHITESPACE\b/},{begin:/\bNO\s+(ACTION|MAXVALUE|MINVALUE)\b/},{begin:/\bPARTITION\s+BY\s+(RANGE|LIST|HASH)\b/},{begin:/\bAT\s+TIME\s+ZONE\b/},{begin:/\bGRANTED\s+BY\b/},{begin:/\bRETURN\s+(QUERY|NEXT)\b/},{begin:/\b(ATTACH|DETACH)\s+PARTITION\b/},{begin:/\bFORCE\s+ROW\s+LEVEL\s+SECURITY\b/},{begin:/\b(INCLUDING|EXCLUDING)\s+(COMMENTS|CONSTRAINTS|DEFAULTS|IDENTITY|INDEXES|STATISTICS|STORAGE|ALL)\b/},{begin:/\bAS\s+(ASSIGNMENT|IMPLICIT|PERMISSIVE|RESTRICTIVE|ENUM|RANGE)\b/}]},{begin:/\b(FORMAT|FAMILY|VERSION)\s*\(/},{begin:/\bINCLUDE\s*\(/,keywords:"INCLUDE"},{begin:/\bRANGE(?!\s*(BETWEEN|UNBOUNDED|CURRENT|[-0-9]+))/},{begin:/\b(VERSION|OWNER|TEMPLATE|TABLESPACE|CONNECTION\s+LIMIT|PROCEDURE|RESTRICT|JOIN|PARSER|COPY|START|END|COLLATION|INPUT|ANALYZE|STORAGE|LIKE|DEFAULT|DELIMITER|ENCODING|COLUMN|CONSTRAINT|TABLE|SCHEMA)\s*=/},{begin:/\b(PG_\w+?|HAS_[A-Z_]+_PRIVILEGE)\b/,relevance:10},{begin:/\bEXTRACT\s*\(/,end:/\bFROM\b/,returnEnd:!0,keywords:{type:"CENTURY DAY DECADE DOW DOY EPOCH HOUR ISODOW ISOYEAR MICROSECONDS MILLENNIUM MILLISECONDS MINUTE MONTH QUARTER SECOND TIMEZONE TIMEZONE_HOUR TIMEZONE_MINUTE WEEK YEAR"}},{begin:/\b(XMLELEMENT|XMLPI)\s*\(\s*NAME/,keywords:{keyword:"NAME"}},{begin:/\b(XMLPARSE|XMLSERIALIZE)\s*\(\s*(DOCUMENT|CONTENT)/,keywords:{keyword:"DOCUMENT CONTENT"}},{beginKeywords:"CACHE INCREMENT MAXVALUE MINVALUE",end:e.C_NUMBER_RE,returnEnd:!0,keywords:"BY CACHE INCREMENT MAXVALUE MINVALUE"},{className:"type",begin:/\b(WITH|WITHOUT)\s+TIME\s+ZONE\b/},{className:"type",begin:/\bINTERVAL\s+(YEAR|MONTH|DAY|HOUR|MINUTE|SECOND)(\s+TO\s+(MONTH|HOUR|MINUTE|SECOND))?\b/},{begin:/\bRETURNS\s+(LANGUAGE_HANDLER|TRIGGER|EVENT_TRIGGER|FDW_HANDLER|INDEX_AM_HANDLER|TSM_HANDLER)\b/,keywords:{keyword:"RETURNS",type:"LANGUAGE_HANDLER TRIGGER EVENT_TRIGGER FDW_HANDLER INDEX_AM_HANDLER TSM_HANDLER"}},{begin:"\\b("+f+")\\s*\\("},{begin:"\\.("+c+")\\b"},{begin:"\\b("+c+")\\s+PATH\\b",keywords:{keyword:"PATH",type:l.replace("PATH ","")}},{className:"type",begin:"\\b("+c+")\\b"},{className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},{className:"string",begin:"(e|E|u&|U&)'",end:"'",contains:[{begin:"\\\\."}],relevance:10},e.END_SAME_AS_BEGIN({begin:r,end:r,contains:[{subLanguage:["pgsql","perl","python","tcl","r","lua","java","php","ruby","bash","scheme","xml","json"],endsWithParent:!0}]}),{begin:'"',end:'"',contains:[{begin:'""'}]},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,t,{className:"meta",variants:[{begin:"%(ROW)?TYPE",relevance:10},{begin:"\\$\\d+"},{begin:"^#\\w",end:"$"}]},{className:"symbol",begin:i,relevance:10}]}}e.exports=t},3564:function(e){function t(e){const t=e.regex,n=/(?![A-Za-z0-9])(?![$])/,r=t.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,n),i=t.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,n),o={scope:"variable",match:"\\$+"+r},a={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},s={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},l=e.inherit(e.APOS_STRING_MODE,{illegal:null}),c=e.inherit(e.QUOTE_STRING_MODE,{illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(s)}),u=e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*(\w+)\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(s)}),d="[ \t\n]",h={scope:"string",variants:[c,l,u]},p={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},f=["false","null","true"],m=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],g=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],v=e=>{const t=[];return e.forEach((e=>{t.push(e),e.toLowerCase()===e?t.push(e.toUpperCase()):t.push(e.toLowerCase())})),t},y={keyword:m,literal:v(f),built_in:g},b=e=>e.map((e=>e.replace(/\|\d+$/,""))),_={variants:[{match:[/new/,t.concat(d,"+"),t.concat("(?!",b(g).join("\\b|"),"\\b)"),i],scope:{1:"keyword",4:"title.class"}}]},w=t.concat(r,"\\b(?!\\()"),E={variants:[{match:[t.concat(/::/,t.lookahead(/(?!class\b)/)),w],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[i,t.concat(/::/,t.lookahead(/(?!class\b)/)),w],scope:{1:"title.class",3:"variable.constant"}},{match:[i,t.concat("::",t.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[i,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},S={scope:"attr",match:t.concat(r,t.lookahead(":"),t.lookahead(/(?!::)/))},x={relevance:0,begin:/\(/,end:/\)/,keywords:y,contains:[S,o,E,e.C_BLOCK_COMMENT_MODE,h,p,_]},k={relevance:0,match:[/\b/,t.concat("(?!fn\\b|function\\b|",b(m).join("\\b|"),"|",b(g).join("\\b|"),"\\b)"),r,t.concat(d,"*"),t.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[x]};x.contains.push(k);const A=[S,E,e.C_BLOCK_COMMENT_MODE,h,p,_],N={begin:t.concat(/#\[\s*/,i),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:f,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:f,keyword:["new","array"]},contains:["self",...A]},...A,{scope:"meta",match:i}]};return{case_insensitive:!1,keywords:y,contains:[N,e.HASH_COMMENT_MODE,e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:e.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},a,{scope:"variable.language",match:/\$this\b/},o,k,E,{match:[/const/,/\s/,r],scope:{1:"keyword",3:"variable.constant"}},_,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},e.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:y,contains:["self",o,E,e.C_BLOCK_COMMENT_MODE,h,p]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},e.UNDERSCORE_TITLE_MODE]},h,p]}}e.exports=t},44503:function(e){function t(e){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}e.exports=t},96511:function(e){function t(e){const t=["string","char","byte","int","long","bool","decimal","single","double","DateTime","xml","array","hashtable","void"],n="Add|Clear|Close|Copy|Enter|Exit|Find|Format|Get|Hide|Join|Lock|Move|New|Open|Optimize|Pop|Push|Redo|Remove|Rename|Reset|Resize|Search|Select|Set|Show|Skip|Split|Step|Switch|Undo|Unlock|Watch|Backup|Checkpoint|Compare|Compress|Convert|ConvertFrom|ConvertTo|Dismount|Edit|Expand|Export|Group|Import|Initialize|Limit|Merge|Mount|Out|Publish|Restore|Save|Sync|Unpublish|Update|Approve|Assert|Build|Complete|Confirm|Deny|Deploy|Disable|Enable|Install|Invoke|Register|Request|Restart|Resume|Start|Stop|Submit|Suspend|Uninstall|Unregister|Wait|Debug|Measure|Ping|Repair|Resolve|Test|Trace|Connect|Disconnect|Read|Receive|Send|Write|Block|Grant|Protect|Revoke|Unblock|Unprotect|Use|ForEach|Sort|Tee|Where",r="-and|-as|-band|-bnot|-bor|-bxor|-casesensitive|-ccontains|-ceq|-cge|-cgt|-cle|-clike|-clt|-cmatch|-cne|-cnotcontains|-cnotlike|-cnotmatch|-contains|-creplace|-csplit|-eq|-exact|-f|-file|-ge|-gt|-icontains|-ieq|-ige|-igt|-ile|-ilike|-ilt|-imatch|-in|-ine|-inotcontains|-inotlike|-inotmatch|-ireplace|-is|-isnot|-isplit|-join|-le|-like|-lt|-match|-ne|-not|-notcontains|-notin|-notlike|-notmatch|-or|-regex|-replace|-shl|-shr|-split|-wildcard|-xor",i={$pattern:/-?[A-z\.\-]+\b/,keyword:"if else foreach return do while until elseif begin for trap data dynamicparam end break throw param continue finally in switch exit filter try process catch hidden static parameter",built_in:"ac asnp cat cd CFS chdir clc clear clhy cli clp cls clv cnsn compare copy cp cpi cpp curl cvpa dbp del diff dir dnsn ebp echo|0 epal epcsv epsn erase etsn exsn fc fhx fl ft fw gal gbp gc gcb gci gcm gcs gdr gerr ghy gi gin gjb gl gm gmo gp gps gpv group gsn gsnp gsv gtz gu gv gwmi h history icm iex ihy ii ipal ipcsv ipmo ipsn irm ise iwmi iwr kill lp ls man md measure mi mount move mp mv nal ndr ni nmo npssc nsn nv ogv oh popd ps pushd pwd r rbp rcjb rcsn rd rdr ren ri rjb rm rmdir rmo rni rnp rp rsn rsnp rujb rv rvpa rwmi sajb sal saps sasv sbp sc scb select set shcm si sl sleep sls sort sp spjb spps spsv start stz sujb sv swmi tee trcm type wget where wjb write"},o=/\w[\w\d]*((-)[\w\d]+)*/,a={begin:"`[\\s\\S]",relevance:0},s={className:"variable",variants:[{begin:/\$\B/},{className:"keyword",begin:/\$this/},{begin:/\$[\w\d][\w\d_:]*/}]},l={className:"literal",begin:/\$(null|true|false)\b/},c={className:"string",variants:[{begin:/"/,end:/"/},{begin:/@"/,end:/^"@/}],contains:[a,s,{className:"variable",begin:/\$[A-z]/,end:/[^A-z]/}]},u={className:"string",variants:[{begin:/'/,end:/'/},{begin:/@'/,end:/^'@/}]},d={className:"doctag",variants:[{begin:/\.(synopsis|description|example|inputs|outputs|notes|link|component|role|functionality)/},{begin:/\.(parameter|forwardhelptargetname|forwardhelpcategory|remotehelprunspace|externalhelp)\s+\S+/}]},h=e.inherit(e.COMMENT(null,null),{variants:[{begin:/#/,end:/$/},{begin:/<#/,end:/#>/}],contains:[d]}),p={className:"built_in",variants:[{begin:"(".concat(n,")+(-)[\\w\\d]+")}]},f={className:"class",beginKeywords:"class enum",end:/\s*[{]/,excludeEnd:!0,relevance:0,contains:[e.TITLE_MODE]},m={className:"function",begin:/function\s+/,end:/\s*\{|$/,excludeEnd:!0,returnBegin:!0,relevance:0,contains:[{begin:"function",relevance:0,className:"keyword"},{className:"title",begin:o,relevance:0},{begin:/\(/,end:/\)/,className:"params",relevance:0,contains:[s]}]},g={begin:/using\s/,end:/$/,returnBegin:!0,contains:[c,u,{className:"keyword",begin:/(using|assembly|command|module|namespace|type)/}]},v={variants:[{className:"operator",begin:"(".concat(r,")\\b")},{className:"literal",begin:/(-){1,2}[\w\d-]+/,relevance:0}]},y={className:"selector-tag",begin:/@\B/,relevance:0},b={className:"function",begin:/\[.*\]\s*[\w]+[ ]??\(/,end:/$/,returnBegin:!0,relevance:0,contains:[{className:"keyword",begin:"(".concat(i.keyword.toString().replace(/\s/g,"|"),")\\b"),endsParent:!0,relevance:0},e.inherit(e.TITLE_MODE,{endsParent:!0})]},_=[b,h,a,e.NUMBER_MODE,c,u,p,s,l,y],w={begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[].concat("self",_,{begin:"("+t.join("|")+")",className:"built_in",relevance:0},{className:"type",begin:/[\.\w\d]+/,relevance:0})};return b.contains.unshift(w),{name:"PowerShell",aliases:["pwsh","ps","ps1"],case_insensitive:!0,keywords:i,contains:_.concat(f,m,g,v,w)}}e.exports=t},14171:function(e){function t(e){const t="[ \\t\\f]*",n="[ \\t\\f]+",r=t+"[:=]"+t,i=n,o="("+r+"|"+i+")",a="([^\\\\:= \\t\\f\\n]|\\\\.)+",s={end:o,relevance:0,starts:{className:"string",end:/$/,relevance:0,contains:[{begin:"\\\\\\\\"},{begin:"\\\\\\n"}]}};return{name:".properties",disableAutodetect:!0,case_insensitive:!0,illegal:/\S/,contains:[e.COMMENT("^\\s*[!#]","$"),{returnBegin:!0,variants:[{begin:a+r},{begin:a+i}],contains:[{className:"attr",begin:a,endsParent:!0}],starts:s},{className:"attr",begin:a+t+"$"}]}}e.exports=t},89230:function(e){function t(e){const t=["package","import","option","optional","required","repeated","group","oneof"],n=["double","float","int32","int64","uint32","uint64","sint32","sint64","fixed32","fixed64","sfixed32","sfixed64","bool","string","bytes"],r={match:[/(message|enum|service)\s+/,e.IDENT_RE],scope:{1:"keyword",2:"title.class"}};return{name:"Protocol Buffers",keywords:{keyword:t,type:n,literal:["true","false"]},contains:[e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,r,{className:"function",beginKeywords:"rpc",end:/[{;]/,excludeEnd:!0,keywords:"rpc returns"},{begin:/^\s*[A-Z_]+(?=\s*=[^\n]+;$)/}]}}e.exports=t},32772:function(e){function t(e){const t=e.regex,n=/[\p{XID_Start}_]\p{XID_Continue}*/u,r=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],i=["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],o=["__debug__","Ellipsis","False","None","NotImplemented","True"],a=["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"],s={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:r,built_in:i,literal:o,type:a},l={className:"meta",begin:/^(>>>|\.\.\.) /},c={className:"subst",begin:/\{/,end:/\}/,keywords:s,illegal:/#/},u={begin:/\{\{/,relevance:0},d={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,l],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,l],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,l,u,c]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,l,u,c]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,u,c]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,u,c]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},h="[0-9](_?[0-9])*",p=`(\\b(${h}))?\\.(${h})|\\b(${h})\\.`,f=`\\b|${r.join("|")}`,m={className:"number",relevance:0,variants:[{begin:`(\\b(${h})|(${p}))[eE][+-]?(${h})[jJ]?(?=${f})`},{begin:`(${p})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${f})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${f})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${f})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${f})`},{begin:`\\b(${h})[jJ](?=${f})`}]},g={className:"comment",begin:t.lookahead(/# type:/),end:/$/,keywords:s,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},v={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:["self",l,m,d,e.HASH_COMMENT_MODE]}]};return c.contains=[d,m,l],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:s,illegal:/(<\/|->|\?)|=>/,contains:[l,m,{begin:/\bself\b/},{beginKeywords:"if",relevance:0},d,g,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[v]},{variants:[{match:[/\bclass/,/\s+/,n,/\s*/,/\(\s*/,n,/\s*\)/]},{match:[/\bclass/,/\s+/,n]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[m,v,d]}]}}e.exports=t},89038:function(e){function t(e){const t=e.regex,n="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",r=t.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),i=t.concat(r,/(::\w+)*/),o={"variable.constant":["__FILE__","__LINE__"],"variable.language":["self","super"],keyword:["alias","and","attr_accessor","attr_reader","attr_writer","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","include","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield"],built_in:["proc","lambda"],literal:["true","false","nil"]},a={className:"doctag",begin:"@[A-Za-z]+"},s={begin:"#<",end:">"},l=[e.COMMENT("#","$",{contains:[a]}),e.COMMENT("^=begin","^=end",{contains:[a],relevance:10}),e.COMMENT("^__END__",e.MATCH_NOTHING_RE)],c={className:"subst",begin:/#\{/,end:/\}/,keywords:o},u={className:"string",contains:[e.BACKSLASH_ESCAPE,c],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?</,end:/>/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:t.concat(/<<[-~]?'?/,t.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[e.BACKSLASH_ESCAPE,c]})]}]},d="[1-9](_?[0-9])*|0",h="[0-9](_?[0-9])*",p={className:"number",relevance:0,variants:[{begin:`\\b(${d})(\\.(${h}))?([eE][+-]?(${h})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},f={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:o}]},m={variants:[{match:[/class\s+/,i,/\s+<\s+/,i]},{match:[/class\s+/,i]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:o},g={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},v={match:[/def/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[f]},y={relevance:0,match:[i,/\.new[ (]/],scope:{1:"title.class"}},b=[u,m,y,g,v,{begin:e.IDENT_RE+"::"},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[u,{begin:n}],relevance:0},p,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:o},{begin:"("+e.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,c],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(s,l),relevance:0}].concat(s,l);c.contains=b,f.contains=b;const _="[>?]>",w="[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]",E="(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>",S=[{begin:/^\s*=>/,starts:{end:"$",contains:b}},{className:"meta.prompt",begin:"^("+_+"|"+w+"|"+E+")(?=[ ])",starts:{end:"$",keywords:o,contains:b}}];return l.unshift(s),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:o,illegal:/\/\*/,contains:[e.SHEBANG({binary:"ruby"})].concat(S).concat(l).concat(b)}}e.exports=t},66556:function(e){function t(e){const t=e.regex,n={className:"title.function.invoke",relevance:0,begin:t.concat(/\b/,/(?!let\b)/,e.IDENT_RE,t.lookahead(/\s*\(/))},r="([ui](8|16|32|64|128|size)|f(32|64))?",i=["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","unsafe","unsized","use","virtual","where","while","yield"],o=["true","false","Some","None","Ok","Err"],a=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],s=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f32","f64","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:e.IDENT_RE+"!?",type:s,keyword:i,literal:o,built_in:a},illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:["self"]}),e.inherit(e.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{className:"string",variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'\\?(x\w{2}|u\w{4}|U\w{8}|.)'/}]},{className:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*/},{className:"number",variants:[{begin:"\\b0b([01_]+)"+r},{begin:"\\b0o([0-7_]+)"+r},{begin:"\\b0x([A-Fa-f0-9_]+)"+r},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+r}],relevance:0},{begin:[/fn/,/\s+/,e.UNDERSCORE_IDENT_RE],className:{1:"keyword",3:"title.function"}},{className:"meta",begin:"#!?\\[",end:"\\]",contains:[{className:"string",begin:/"/,end:/"/}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,e.UNDERSCORE_IDENT_RE],className:{1:"keyword",3:"keyword",4:"variable"}},{begin:[/for/,/\s+/,e.UNDERSCORE_IDENT_RE,/\s+/,/in/],className:{1:"keyword",3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,e.UNDERSCORE_IDENT_RE],className:{1:"keyword",3:"title.class"}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,e.UNDERSCORE_IDENT_RE],className:{1:"keyword",3:"title.class"}},{begin:e.IDENT_RE+"::",keywords:{keyword:"Self",built_in:a,type:s}},{className:"punctuation",begin:"->"},n]}}e.exports=t},19238:function(e){function t(e){const t=e.regex,n={className:"meta",begin:"@[A-Za-z]+"},r={className:"subst",variants:[{begin:"\\$[A-Za-z0-9_]+"},{begin:/\$\{/,end:/\}/}]},i={className:"string",variants:[{begin:'"""',end:'"""'},{begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:'[a-z]+"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,r]},{className:"string",begin:'[a-z]+"""',end:'"""',contains:[r],relevance:10}]},o={className:"type",begin:"\\b[A-Z][A-Za-z0-9_]*",relevance:0},a={className:"title",begin:/[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/,relevance:0},s={className:"class",beginKeywords:"class object trait type",end:/[:={\[\n;]/,excludeEnd:!0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{beginKeywords:"extends with",relevance:10},{begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[o]},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[o]},a]},l={className:"function",beginKeywords:"def",end:t.lookahead(/[:={\[(\n;]/),contains:[a]},c={begin:[/^\s*/,"extension",/\s+(?=[[(])/],beginScope:{2:"keyword"}},u={begin:[/^\s*/,/end/,/\s+/,/(extension\b)?/],beginScope:{2:"keyword",4:"keyword"}},d=[{match:/\.inline\b/},{begin:/\binline(?=\s)/,keywords:"inline"}],h={begin:[/\(\s*/,/using/,/\s+(?!\))/],beginScope:{2:"keyword"}};return{name:"Scala",keywords:{literal:"true false null",keyword:"type yield lazy override def with val var sealed abstract private trait object if then forSome for while do throw finally protected extends import final return else break new catch super class case package default try this match continue throws implicit export enum given transparent"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,i,o,l,s,e.C_NUMBER_MODE,c,u,...d,h,n]}}e.exports=t},15562:function(e){const t=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z][A-Za-z0-9_-]*/}}),n=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],r=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],i=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],o=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],a=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse();function s(e){const s=t(e),l=o,c=i,u="@[a-z-]+",d="and or not only",h="[a-zA-Z-][a-zA-Z0-9_-]*",p={className:"variable",begin:"(\\$"+h+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,s.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},s.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+n.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+c.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+l.join("|")+")"},p,{begin:/\(/,end:/\)/,contains:[s.CSS_NUMBER_MODE]},s.CSS_VARIABLE,{className:"attribute",begin:"\\b("+a.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[s.BLOCK_COMMENT,p,s.HEXCOLOR,s.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,s.IMPORTANT,s.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:u,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:d,attribute:r.join(" ")},contains:[{begin:u,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},p,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,s.HEXCOLOR,s.CSS_NUMBER_MODE]},s.FUNCTION_DISPATCH]}}e.exports=s},78802:function(e){function t(e){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}e.exports=t},42628:function(e){function t(e){const t=e.regex,n=e.COMMENT("--","$"),r={className:"string",variants:[{begin:/'/,end:/'/,contains:[{begin:/''/}]}]},i={begin:/"/,end:/"/,contains:[{begin:/""/}]},o=["true","false","unknown"],a=["double precision","large object","with timezone","without timezone"],s=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],l=["add","asc","collation","desc","final","first","last","view"],c=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],u=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],d=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],h=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],p=u,f=[...c,...l].filter((e=>!u.includes(e))),m={className:"variable",begin:/@[a-z0-9]+/},g={className:"operator",begin:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},v={begin:t.concat(/\b/,t.either(...p),/\s*\(/),relevance:0,keywords:{built_in:p}};function y(e,{exceptions:t,when:n}={}){const r=n;return t=t||[],e.map((e=>e.match(/\|\d+$/)||t.includes(e)?e:r(e)?`${e}|0`:e))}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:y(f,{when:e=>e.length<3}),literal:o,type:s,built_in:d},contains:[{begin:t.either(...h),relevance:0,keywords:{$pattern:/[\w\.]+/,keyword:f.concat(h),literal:o,type:s}},{className:"type",begin:t.either(...a)},v,m,r,i,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,g]}}e.exports=t},62383:function(e){function t(e){return e?"string"===typeof e?e:e.source:null}function n(e){return r("(?=",e,")")}function r(...e){const n=e.map((e=>t(e))).join("");return n}function i(e){const t=e[e.length-1];return"object"===typeof t&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function o(...e){const n=i(e),r="("+(n.capture?"":"?:")+e.map((e=>t(e))).join("|")+")";return r}const a=e=>r(/\b/,e,/\w$/.test(e)?/\b/:/\B/),s=["Protocol","Type"].map(a),l=["init","self"].map(a),c=["Any","Self"],u=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","break","case","catch","class","continue","convenience","default","defer","deinit","didSet","distributed","do","dynamic","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],d=["false","nil","true"],h=["assignment","associativity","higherThan","left","lowerThan","none","right"],p=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warn_unqualified_access","#warning"],f=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],m=o(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),g=o(m,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),v=r(m,g,"*"),y=o(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),b=o(y,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),_=r(y,b,"*"),w=r(/[A-Z]/,b,"*"),E=["autoclosure",r(/convention\(/,o("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",r(/objc\(/,_,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","testable","UIApplicationMain","unknown","usableFromInline"],S=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function x(e){const t={match:/\s+/,relevance:0},i=e.COMMENT("/\\*","\\*/",{contains:["self"]}),m=[e.C_LINE_COMMENT_MODE,i],y={match:[/\./,o(...s,...l)],className:{2:"keyword"}},x={match:r(/\./,o(...u)),relevance:0},k=u.filter((e=>"string"===typeof e)).concat(["_|0"]),A=u.filter((e=>"string"!==typeof e)).concat(c).map(a),N={variants:[{className:"keyword",match:o(...A,...l)}]},T={$pattern:o(/\b\w+/,/#\w+/),keyword:k.concat(p),literal:d},C=[y,x,N],R={match:r(/\./,o(...f)),relevance:0},O={className:"built_in",match:r(/\b/,o(...f),/(?=\()/)},I=[R,O],D={match:/->/,relevance:0},L={className:"operator",relevance:0,variants:[{match:v},{match:`\\.(\\.|${g})+`}]},P=[D,L],M="([0-9]_*)+",F="([0-9a-fA-F]_*)+",B={className:"number",relevance:0,variants:[{match:`\\b(${M})(\\.(${M}))?([eE][+-]?(${M}))?\\b`},{match:`\\b0x(${F})(\\.(${F}))?([pP][+-]?(${M}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},$=(e="")=>({className:"subst",variants:[{match:r(/\\/,e,/[0\\tnr"']/)},{match:r(/\\/,e,/u\{[0-9a-fA-F]{1,8}\}/)}]}),j=(e="")=>({className:"subst",match:r(/\\/,e,/[\t ]*(?:[\r\n]|\r\n)/)}),U=(e="")=>({className:"subst",label:"interpol",begin:r(/\\/,e,/\(/),end:/\)/}),V=(e="")=>({begin:r(e,/"""/),end:r(/"""/,e),contains:[$(e),j(e),U(e)]}),K=(e="")=>({begin:r(e,/"/),end:r(/"/,e),contains:[$(e),U(e)]}),H={className:"string",variants:[V(),V("#"),V("##"),V("###"),K(),K("#"),K("##"),K("###")]},G={match:r(/`/,_,/`/)},z={className:"variable",match:/\$\d+/},X={className:"variable",match:`\\$${b}+`},q=[G,z,X],W={match:/(@|#(un)?)available/,className:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:S,contains:[...P,B,H]}]}},Y={className:"keyword",match:r(/@/,o(...E))},Q={className:"meta",match:r(/@/,_)},J=[W,Y,Q],Z={match:n(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:r(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,b,"+")},{className:"type",match:w,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:r(/\s+&\s+/,n(w)),relevance:0}]},ee={begin:/</,end:/>/,keywords:T,contains:[...m,...C,...J,D,Z]};Z.contains.push(ee);const te={match:r(_,/\s*:/),keywords:"_|0",relevance:0},ne={begin:/\(/,end:/\)/,relevance:0,keywords:T,contains:["self",te,...m,...C,...I,...P,B,H,...q,...J,Z]},re={begin:/</,end:/>/,contains:[...m,Z]},ie={begin:o(n(r(_,/\s*:/)),n(r(_,/\s+/,_,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:_}]},oe={begin:/\(/,end:/\)/,keywords:T,contains:[ie,...m,...C,...P,B,H,...J,Z,ne],endsParent:!0,illegal:/["']/},ae={match:[/func/,/\s+/,o(G.match,_,v)],className:{1:"keyword",3:"title.function"},contains:[re,oe,t],illegal:[/\[/,/%/]},se={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[re,oe,t],illegal:/\[|%/},le={match:[/operator/,/\s+/,v],className:{1:"keyword",3:"title"}},ce={begin:[/precedencegroup/,/\s+/,w],className:{1:"keyword",3:"title"},contains:[Z],keywords:[...h,...d],end:/}/};for(const n of H.variants){const e=n.contains.find((e=>"interpol"===e.label));e.keywords=T;const t=[...C,...I,...P,B,H,...q];e.contains=[...t,{begin:/\(/,end:/\)/,contains:["self",...t]}]}return{name:"Swift",keywords:T,contains:[...m,ae,se,{beginKeywords:"struct protocol class extension enum actor",end:"\\{",excludeEnd:!0,keywords:T,contains:[e.inherit(e.TITLE_MODE,{className:"title.class",begin:/[A-Za-z$_][\u00C0-\u02B80-9A-Za-z$_]*/}),...C]},le,ce,{beginKeywords:"import",end:/$/,contains:[...m],relevance:0},...C,...I,...P,B,H,...q,...J,Z,ne]}}e.exports=x},2613:function(e){const t="[A-Za-z$_][0-9A-Za-z$_]*",n=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],r=["true","false","null","undefined","NaN","Infinity"],i=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],o=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],a=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],s=["arguments","this","super","console","window","document","localStorage","module","global"],l=[].concat(a,i,o);function c(e){const c=e.regex,u=(e,{after:t})=>{const n="</"+e[0].slice(1),r=e.input.indexOf(n,t);return-1!==r},d=t,h={begin:"<>",end:"</>"},p=/<[A-Za-z0-9\\._:-]+\s*\/>/,f={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(e,t)=>{const n=e[0].length+e.index,r=e.input[n];if("<"===r||","===r)return void t.ignoreMatch();let i;">"===r&&(u(e,{after:n})||t.ignoreMatch());const o=e.input.substring(n);(i=o.match(/^\s+extends\s+/))&&0===i.index&&t.ignoreMatch()}},m={$pattern:t,keyword:n,literal:r,built_in:l,"variable.language":s},g="[0-9](_?[0-9])*",v=`\\.(${g})`,y="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",b={className:"number",variants:[{begin:`(\\b(${y})((${v})|\\.)?|(${v}))[eE][+-]?(${g})\\b`},{begin:`\\b(${y})\\b((${v})\\b|\\.)?|(${v})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},_={className:"subst",begin:"\\$\\{",end:"\\}",keywords:m,contains:[]},w={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,_],subLanguage:"xml"}},E={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,_],subLanguage:"css"}},S={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,_]},x=e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:d+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),k={className:"comment",variants:[x,e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},A=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,w,E,S,b];_.contains=A.concat({begin:/\{/,end:/\}/,keywords:m,contains:["self"].concat(A)});const N=[].concat(k,_.contains),T=N.concat([{begin:/\(/,end:/\)/,keywords:m,contains:["self"].concat(N)}]),C={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:m,contains:T},R={variants:[{match:[/class/,/\s+/,d,/\s+/,/extends/,/\s+/,c.concat(d,"(",c.concat(/\./,d),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,d],scope:{1:"keyword",3:"title.class"}}]},O={relevance:0,match:c.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...i,...o]}},I={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},D={variants:[{match:[/function/,/\s+/,d,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[C],illegal:/%/},L={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function P(e){return c.concat("(?!",e.join("|"),")")}const M={match:c.concat(/\b/,P([...a,"super"]),d,c.lookahead(/\(/)),className:"title.function",relevance:0},F={begin:c.concat(/\./,c.lookahead(c.concat(d,/(?![0-9A-Za-z$_(])/))),end:d,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},B={match:[/get|set/,/\s+/,d,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},C]},$="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",j={match:[/const|var|let/,/\s+/,d,/\s*/,/=\s*/,/(async\s*)?/,c.lookahead($)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[C]};return{name:"Javascript",aliases:["js","jsx","mjs","cjs"],keywords:m,exports:{PARAMS_CONTAINS:T,CLASS_REFERENCE:O},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),I,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,w,E,S,k,b,O,{className:"attr",begin:d+c.lookahead(":"),relevance:0},j,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[k,e.REGEXP_MODE,{className:"function",begin:$,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:m,contains:T}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:h.begin,end:h.end},{match:p},{begin:f.begin,"on:begin":f.isTrulyOpeningTag,end:f.end}],subLanguage:"xml",contains:[{begin:f.begin,end:f.end,skip:!0,contains:["self"]}]}]},D,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[C,e.inherit(e.TITLE_MODE,{begin:d,className:"title.function"})]},{match:/\.\.\./,relevance:0},F,{match:"\\$"+d,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[C]},M,L,R,B,{match:/\$[(.]/}]}}function u(e){const i=c(e),o=t,a=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],u={beginKeywords:"namespace",end:/\{/,excludeEnd:!0,contains:[i.exports.CLASS_REFERENCE]},d={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:a},contains:[i.exports.CLASS_REFERENCE]},h={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},p=["type","namespace","interface","public","private","protected","implements","declare","abstract","readonly","enum","override"],f={$pattern:t,keyword:n.concat(p),literal:r,built_in:l.concat(a),"variable.language":s},m={className:"meta",begin:"@"+o},g=(e,t,n)=>{const r=e.contains.findIndex((e=>e.label===t));if(-1===r)throw new Error("can not find mode to replace");e.contains.splice(r,1,n)};Object.assign(i.keywords,f),i.exports.PARAMS_CONTAINS.push(m),i.contains=i.contains.concat([m,u,d]),g(i,"shebang",e.SHEBANG()),g(i,"use_strict",h);const v=i.contains.find((e=>"func.def"===e.label));return v.relevance=0,Object.assign(i,{name:"TypeScript",aliases:["ts","tsx"]}),i}e.exports=u},60081:function(e){function t(e){const t=e.regex,n=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),r=/[\p{L}0-9._:-]+/u,i={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},o={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},a=e.inherit(o,{begin:/\(/,end:/\)/}),s=e.inherit(e.APOS_STRING_MODE,{className:"string"}),l=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),c={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:r,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[i]},{begin:/'/,end:/'/,contains:[i]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[o,l,s,a,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[o,a,l,s]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},i,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[l]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[c],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[c],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:t.concat(/</,t.lookahead(t.concat(n,t.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:n,relevance:0,starts:c}]},{className:"tag",begin:t.concat(/<\//,t.lookahead(t.concat(n,/>/))),contains:[{className:"name",begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}e.exports=t},36145:function(e){function t(e){const t="true false yes no null",n="[\\w#;/?:@&=+$,.~*'()[\\]]+",r={className:"attr",variants:[{begin:"\\w[\\w :\\/.-]*:(?=[ \t]|$)"},{begin:'"\\w[\\w :\\/.-]*":(?=[ \t]|$)'},{begin:"'\\w[\\w :\\/.-]*':(?=[ \t]|$)"}]},i={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},o={className:"string",relevance:0,variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,i]},a=e.inherit(o,{variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),s="[0-9]{4}(-[0-9][0-9]){0,2}",l="([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?",c="(\\.[0-9]*)?",u="([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?",d={className:"number",begin:"\\b"+s+l+c+u+"\\b"},h={end:",",endsWithParent:!0,excludeEnd:!0,keywords:t,relevance:0},p={begin:/\{/,end:/\}/,contains:[h],illegal:"\\n",relevance:0},f={begin:"\\[",end:"\\]",contains:[h],illegal:"\\n",relevance:0},m=[r,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+n},{className:"type",begin:"!<"+n+">"},{className:"type",begin:"!"+n},{className:"type",begin:"!!"+n},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:t,keywords:{literal:t}},d,{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},p,f,o],g=[...m];return g.pop(),g.push(a),h.contains=g,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:m}}e.exports=t},8330:function(e){"use strict";e.exports=JSON.parse('{"name":"harvester","description":"Rancher UI Extension for Harvester","version":"1.0.2","private":false,"rancher":{"annotations":{"catalog.cattle.io/display-name":"Harvester","catalog.cattle.io/kube-version":">= 1.16.0-0","catalog.cattle.io/rancher-version":">= 2.10.1-0","catalog.cattle.io/ui-extensions-version":">= 3.0.0 < 4.0.0"}},"icon":"https://raw.githubusercontent.com/harvester/harvester-ui-extension/main/pkg/harvester/icon.svg","scripts":{"dev":"./node_modules/.bin/nuxt dev","nuxt":"./node_modules/.bin/nuxt"},"engines":{"node":">=20.0.0"},"devDependencies":{"@vue/cli-plugin-babel":"~5.0.0","@vue/cli-service":"~5.0.0","@vue/cli-plugin-typescript":"~5.0.0"},"browserslist":["> 1%","last 2 versions","not dead"]}')},90771:function(e){"use strict";e.exports=JSON.parse('{"hasStylesheet":"true"}')},34138:function(e){"use strict";e.exports=JSON.parse('{"hasStylesheet":"false"}')},11471:function(e){"use strict";e.exports=JSON.parse('{"hasStylesheet":"false"}')},8389:function(e){"use strict";e.exports=JSON.parse('{"hasStylesheet":"false"}')},14207:function(e){"use strict";e.exports=JSON.parse('{"hasStylesheet":"true"}')}},i={};function o(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={id:e,loaded:!1,exports:{}};return r[e].call(n.exports,n,n.exports,o),n.loaded=!0,n.exports}o.m=r,function(){o.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return o.d(t,{a:t}),t}}(),function(){var e,t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__};o.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"===typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"===typeof n.then)return n}var i=Object.create(null);o.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&r&&n;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((function(e){a[e]=function(){return n[e]}}));return a["default"]=function(){return n},o.d(i,a),i}}(),function(){o.d=function(e,t){for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}}(),function(){o.f={},o.e=function(e){return Promise.all(Object.keys(o.f).reduce((function(t,n){return o.f[n](e,t),t}),[]))}}(),function(){o.u=function(e){return"harvester-1.0.2.umd.min."+({332:"detail",715:"list",739:"edit",829:"csv",902:"formatters",907:"dialog",935:"xterm",973:"promptRemove"}[e]||e)+".js"}}(),function(){o.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){var e={},t="harvester-1.0.2:";o.l=function(n,r,i,a){if(e[n])e[n].push(r);else{var s,l;if(void 0!==i)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var d=c[u];if(d.getAttribute("src")==n||d.getAttribute("data-webpack")==t+i){s=d;break}}s||(l=!0,s=document.createElement("script"),s.charset="utf-8",s.timeout=120,o.nc&&s.setAttribute("nonce",o.nc),s.setAttribute("data-webpack",t+i),s.src=n),e[n]=[r];var h=function(t,r){s.onerror=s.onload=null,clearTimeout(p);var i=e[n];if(delete e[n],s.parentNode&&s.parentNode.removeChild(s),i&&i.forEach((function(e){return e(r)})),t)return t(r)},p=setTimeout(h.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=h.bind(null,s.onerror),s.onload=h.bind(null,s.onload),l&&document.head.appendChild(s)}}}(),function(){o.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}(),function(){o.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e}}(),function(){o.p=""}(),function(){o.b=document.baseURI||self.location.href;var e={917:0};o.f.j=function(t,n){var r=o.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var i=new Promise((function(n,i){r=e[t]=[n,i]}));n.push(r[2]=i);var a=o.p+o.u(t),s=new Error,l=function(n){if(o.o(e,t)&&(r=e[t],0!==r&&(e[t]=void 0),r)){var i=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;s.message="Loading chunk "+t+" failed.\n("+i+": "+a+")",s.name="ChunkLoadError",s.type=i,s.request=a,r[1](s)}};o.l(a,l,"chunk-"+t,t)}};var t=function(t,n){var r,i,a=n[0],s=n[1],l=n[2],c=0;if(a.some((function(t){return 0!==e[t]}))){for(r in s)o.o(s,r)&&(o.m[r]=s[r]);if(l)l(o)}for(t&&t(n);c<a.length;c++)i=a[c],o.o(e,i)&&e[i]&&e[i][0](),e[i]=0},n=("undefined"!==typeof self?self:this)["webpackChunkharvester_1_0_2"]=("undefined"!==typeof self?self:this)["webpackChunkharvester_1_0_2"]||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))}();var a={};return function(){"use strict";if(o.r(a),o.d(a,{default:function(){return dP}}),"undefined"!==typeof window){var e=window.document.currentScript,t=e&&e.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);t&&(o.p=t[1])}function n(e){e.register("detail","harvesterhci.io.host",(()=>Promise.all([o.e(851),o.e(52),o.e(950),o.e(12),o.e(300),o.e(622),o.e(90),o.e(332)]).then(o.bind(o,65268)))),e.register("detail","harvesterhci.io.management.cluster",(()=>Promise.all([o.e(851),o.e(52),o.e(950),o.e(12),o.e(300),o.e(622),o.e(90),o.e(332)]).then(o.bind(o,24777)))),e.register("detail","harvesterhci.io.schedulevmbackup",(()=>Promise.all([o.e(851),o.e(52),o.e(950),o.e(12),o.e(300),o.e(622),o.e(90),o.e(332)]).then(o.bind(o,1948)))),e.register("detail","harvesterhci.io.secret",(()=>Promise.all([o.e(851),o.e(52),o.e(950),o.e(12),o.e(300),o.e(622),o.e(90),o.e(332)]).then(o.bind(o,84735)))),e.register("detail","harvesterhci.io.virtualmachinebackup",(()=>Promise.all([o.e(851),o.e(52),o.e(950),o.e(12),o.e(300),o.e(622),o.e(90),o.e(332)]).then(o.bind(o,19509)))),e.register("detail","harvesterhci.io.virtualmachineimage",(()=>Promise.all([o.e(851),o.e(52),o.e(950),o.e(12),o.e(300),o.e(622),o.e(90),o.e(332)]).then(o.bind(o,99144)))),e.register("detail","harvesterhci.io.vmsnapshot",(()=>Promise.all([o.e(851),o.e(52),o.e(950),o.e(12),o.e(300),o.e(622),o.e(90),o.e(332)]).then(o.bind(o,97072)))),e.register("detail","kubevirt.io.virtualmachine",(()=>Promise.all([o.e(851),o.e(52),o.e(950),o.e(12),o.e(300),o.e(622),o.e(90),o.e(332)]).then(o.bind(o,59544)))),e.register("detail","loadbalancer.harvesterhci.io.ippool",(()=>Promise.all([o.e(851),o.e(52),o.e(950),o.e(12),o.e(300),o.e(622),o.e(90),o.e(332)]).then(o.bind(o,67973)))),e.register("detail","loadbalancer.harvesterhci.io.loadbalancer",(()=>Promise.all([o.e(851),o.e(52),o.e(950),o.e(12),o.e(300),o.e(622),o.e(90),o.e(332)]).then(o.bind(o,55224)))),e.register("detail","network.harvesterhci.io.vlanconfig",(()=>Promise.all([o.e(851),o.e(52),o.e(950),o.e(12),o.e(300),o.e(622),o.e(90),o.e(332)]).then(o.bind(o,27626)))),e.register("edit","harvesterhci.io.addon",(()=>Promise.all([o.e(851),o.e(52),o.e(204),o.e(950),o.e(300),o.e(578),o.e(739)]).then(o.bind(o,81135)))),e.register("edit","harvesterhci.io.cloudtemplate",(()=>Promise.all([o.e(851),o.e(52),o.e(204),o.e(950),o.e(300),o.e(578),o.e(739)]).then(o.bind(o,85019)))),e.register("edit","harvesterhci.io.host",(()=>Promise.all([o.e(851),o.e(52),o.e(204),o.e(950),o.e(300),o.e(578),o.e(739)]).then(o.bind(o,83385)))),e.register("edit","harvesterhci.io.keypair",(()=>Promise.all([o.e(851),o.e(52),o.e(204),o.e(950),o.e(300),o.e(578),o.e(739)]).then(o.bind(o,28355)))),e.register("edit","harvesterhci.io.logging.clusterflow",(()=>Promise.all([o.e(851),o.e(52),o.e(204),o.e(950),o.e(300),o.e(578),o.e(739)]).then(o.bind(o,70675)))),e.register("edit","harvesterhci.io.logging.clusteroutput",(()=>Promise.all([o.e(851),o.e(52),o.e(204),o.e(950),o.e(300),o.e(578),o.e(739)]).then(o.bind(o,17733)))),e.register("edit","harvesterhci.io.logging.flow",(()=>Promise.all([o.e(851),o.e(52),o.e(204),o.e(950),o.e(300),o.e(578),o.e(739)]).then(o.bind(o,65647)))),e.register("edit","harvesterhci.io.logging.output",(()=>Promise.all([o.e(851),o.e(52),o.e(204),o.e(950),o.e(300),o.e(578),o.e(739)]).then(o.bind(o,90986)))),e.register("edit","harvesterhci.io.monitoring.alertmanagerconfig",(()=>Promise.all([o.e(851),o.e(52),o.e(204),o.e(950),o.e(300),o.e(578),o.e(739)]).then(o.bind(o,47579)))),e.register("edit","harvesterhci.io.networkattachmentdefinition",(()=>Promise.all([o.e(851),o.e(52),o.e(204),o.e(950),o.e(300),o.e(578),o.e(739)]).then(o.bind(o,14846)))),e.register("edit","harvesterhci.io.schedulevmbackup",(()=>Promise.all([o.e(851),o.e(52),o.e(204),o.e(950),o.e(300),o.e(578),o.e(739)]).then(o.bind(o,18796)))),e.register("edit","harvesterhci.io.secret",(()=>Promise.all([o.e(851),o.e(52),o.e(204),o.e(950),o.e(300),o.e(578),o.e(739)]).then(o.bind(o,41398)))),e.register("edit","harvesterhci.io.setting",(()=>Promise.all([o.e(851),o.e(52),o.e(204),o.e(950),o.e(300),o.e(578),o.e(739)]).then(o.bind(o,56726)))),e.register("edit","harvesterhci.io.storage",(()=>Promise.all([o.e(851),o.e(52),o.e(204),o.e(950),o.e(300),o.e(578),o.e(739)]).then(o.bind(o,13190)))),e.register("edit","harvesterhci.io.virtualmachinebackup",(()=>Promise.all([o.e(851),o.e(52),o.e(204),o.e(950),o.e(300),o.e(578),o.e(739)]).then(o.bind(o,57717)))),e.register("edit","harvesterhci.io.virtualmachineimage",(()=>Promise.all([o.e(851),o.e(52),o.e(204),o.e(950),o.e(300),o.e(578),o.e(739)]).then(o.bind(o,6173)))),e.register("edit","harvesterhci.io.virtualmachinetemplateversion",(()=>Promise.all([o.e(851),o.e(52),o.e(204),o.e(950),o.e(300),o.e(578),o.e(739)]).then(o.bind(o,35322)))),e.register("edit","harvesterhci.io.vmsnapshot",(()=>Promise.all([o.e(851),o.e(52),o.e(204),o.e(950),o.e(300),o.e(578),o.e(739)]).then(o.bind(o,91128)))),e.register("edit","harvesterhci.io.volume",(()=>Promise.all([o.e(851),o.e(52),o.e(204),o.e(950),o.e(300),o.e(578),o.e(739)]).then(o.bind(o,49293)))),e.register("edit","harvesterhci.io.volumesnapshot",(()=>Promise.all([o.e(851),o.e(52),o.e(204),o.e(950),o.e(300),o.e(578),o.e(739)]).then(o.bind(o,69305)))),e.register("edit","kubevirt.io.virtualmachine",(()=>Promise.all([o.e(851),o.e(52),o.e(204),o.e(950),o.e(300),o.e(578),o.e(739)]).then(o.bind(o,15137)))),e.register("edit","loadbalancer.harvesterhci.io.ippool",(()=>Promise.all([o.e(851),o.e(52),o.e(204),o.e(950),o.e(300),o.e(578),o.e(739)]).then(o.bind(o,59405)))),e.register("edit","loadbalancer.harvesterhci.io.loadbalancer",(()=>Promise.all([o.e(851),o.e(52),o.e(204),o.e(950),o.e(300),o.e(578),o.e(739)]).then(o.bind(o,49464)))),e.register("edit","management.cattle.io.project",(()=>Promise.all([o.e(851),o.e(52),o.e(204),o.e(950),o.e(300),o.e(578),o.e(739)]).then(o.bind(o,36263)))),e.register("edit","network.harvesterhci.io.clusternetwork",(()=>Promise.all([o.e(851),o.e(52),o.e(204),o.e(950),o.e(300),o.e(578),o.e(739)]).then(o.bind(o,87544)))),e.register("edit","network.harvesterhci.io.vlanconfig",(()=>Promise.all([o.e(851),o.e(52),o.e(204),o.e(950),o.e(300),o.e(578),o.e(739)]).then(o.bind(o,56867)))),e.register("list","devices.harvesterhci.io.pcidevice",(()=>Promise.all([o.e(12),o.e(622),o.e(578),o.e(715)]).then(o.bind(o,11590)))),e.register("list","devices.harvesterhci.io.sriovgpudevice",(()=>Promise.all([o.e(12),o.e(622),o.e(578),o.e(715)]).then(o.bind(o,40190)))),e.register("list","devices.harvesterhci.io.sriovnetworkdevice",(()=>Promise.all([o.e(12),o.e(622),o.e(578),o.e(715)]).then(o.bind(o,88426)))),e.register("list","devices.harvesterhci.io.usbdevice",(()=>Promise.all([o.e(12),o.e(622),o.e(578),o.e(715)]).then(o.bind(o,92217)))),e.register("list","devices.harvesterhci.io.vgpudevice",(()=>Promise.all([o.e(12),o.e(622),o.e(578),o.e(715)]).then(o.bind(o,53774)))),e.register("list","harvesterhci.io.addon",(()=>Promise.all([o.e(12),o.e(622),o.e(578),o.e(715)]).then(o.bind(o,33699)))),e.register("list","harvesterhci.io.cloudtemplate",(()=>Promise.all([o.e(12),o.e(622),o.e(578),o.e(715)]).then(o.bind(o,34317)))),e.register("list","harvesterhci.io.dashboard",(()=>Promise.all([o.e(12),o.e(622),o.e(578),o.e(715)]).then(o.bind(o,3607)))),e.register("list","harvesterhci.io.host",(()=>Promise.all([o.e(12),o.e(622),o.e(578),o.e(715)]).then(o.bind(o,97341)))),e.register("list","harvesterhci.io.logging.clusterflow",(()=>Promise.all([o.e(12),o.e(622),o.e(578),o.e(715)]).then(o.bind(o,78646)))),e.register("list","harvesterhci.io.logging.clusteroutput",(()=>Promise.all([o.e(12),o.e(622),o.e(578),o.e(715)]).then(o.bind(o,56497)))),e.register("list","harvesterhci.io.logging.flow",(()=>Promise.all([o.e(12),o.e(622),o.e(578),o.e(715)]).then(o.bind(o,81342)))),e.register("list","harvesterhci.io.logging.output",(()=>Promise.all([o.e(12),o.e(622),o.e(578),o.e(715)]).then(o.bind(o,65391)))),e.register("list","harvesterhci.io.monitoring.alertmanagerconfig",(()=>Promise.all([o.e(12),o.e(622),o.e(578),o.e(715)]).then(o.bind(o,49610)))),e.register("list","harvesterhci.io.networkattachmentdefinition",(()=>Promise.all([o.e(12),o.e(622),o.e(578),o.e(715)]).then(o.bind(o,9470)))),e.register("list","harvesterhci.io.schedulevmbackup",(()=>Promise.all([o.e(12),o.e(622),o.e(578),o.e(715)]).then(o.bind(o,42148)))),e.register("list","harvesterhci.io.secret",(()=>Promise.all([o.e(12),o.e(622),o.e(578),o.e(715)]).then(o.bind(o,60633)))),e.register("list","harvesterhci.io.setting",(()=>Promise.all([o.e(12),o.e(622),o.e(578),o.e(715)]).then(o.bind(o,36441)))),e.register("list","harvesterhci.io.storage",(()=>Promise.all([o.e(12),o.e(622),o.e(578),o.e(715)]).then(o.bind(o,51086)))),e.register("list","harvesterhci.io.virtualmachinebackup",(()=>Promise.all([o.e(12),o.e(622),o.e(578),o.e(715)]).then(o.bind(o,69164)))),e.register("list","harvesterhci.io.virtualmachineimage",(()=>Promise.all([o.e(12),o.e(622),o.e(578),o.e(715)]).then(o.bind(o,95115)))),e.register("list","harvesterhci.io.virtualmachinetemplateversion",(()=>Promise.all([o.e(12),o.e(622),o.e(578),o.e(715)]).then(o.bind(o,59926)))),e.register("list","harvesterhci.io.vmsnapshot",(()=>Promise.all([o.e(12),o.e(622),o.e(578),o.e(715)]).then(o.bind(o,61117)))),e.register("list","harvesterhci.io.volume",(()=>Promise.all([o.e(12),o.e(622),o.e(578),o.e(715)]).then(o.bind(o,61313)))),e.register("list","harvesterhci.io.volumesnapshot",(()=>Promise.all([o.e(12),o.e(622),o.e(578),o.e(715)]).then(o.bind(o,32776)))),e.register("list","kubevirt.io.virtualmachine",(()=>Promise.all([o.e(12),o.e(622),o.e(578),o.e(715)]).then(o.bind(o,29809)))),e.register("list","network.harvesterhci.io.clusternetwork",(()=>Promise.all([o.e(12),o.e(622),o.e(578),o.e(715)]).then(o.bind(o,18144)))),e.register("models","clusterroletemplatebinding",(()=>o(83727))),e.register("models","devices.harvesterhci.io.pcidevice",(()=>o(66529))),e.register("models","devices.harvesterhci.io.sriovgpudevice",(()=>o(13520))),e.register("models","devices.harvesterhci.io.sriovnetworkdevice",(()=>o(75128))),e.register("models","devices.harvesterhci.io.usbdevice",(()=>o(95311))),e.register("models","devices.harvesterhci.io.vgpudevice",(()=>o(46505))),e.register("models","harvester/configmap",(()=>o(24481))),e.register("models","harvester/k8s.cni.cncf.io.networkattachmentdefinition",(()=>o(4987))),e.register("models","harvester/logging.banzaicloud.io.clusterflow",(()=>o(50826))),e.register("models","harvester/logging.banzaicloud.io.clusteroutput",(()=>o(49039))),e.register("models","harvester/logging.banzaicloud.io.flow",(()=>o(40322))),e.register("models","harvester/logging.banzaicloud.io.output",(()=>o(15895))),e.register("models","harvester/management.cattle.io.setting",(()=>o(65073))),e.register("models","harvester/monitoring.coreos.com.alertmanagerconfig",(()=>o(53942))),e.register("models","harvester/namespace",(()=>o(62878))),e.register("models","harvester/node",(()=>o(55285))),e.register("models","harvester/persistentvolumeclaim",(()=>o(15908))),e.register("models","harvester/pod",(()=>o(14426))),e.register("models","harvester/secret",(()=>o(36577))),e.register("models","harvester/snapshot.storage.k8s.io.volumesnapshot",(()=>o(87214))),e.register("models","harvester/storage.k8s.io.storageclass",(()=>o(82877))),e.register("models","harvester",(()=>o(24222))),e.register("models","harvesterhci.io.addon",(()=>o(52528))),e.register("models","harvesterhci.io.blockdevice",(()=>o(46933))),e.register("models","harvesterhci.io.keypair",(()=>o(72193))),e.register("models","harvesterhci.io.schedulevmbackup",(()=>o(26422))),e.register("models","harvesterhci.io.setting",(()=>o(96214))),e.register("models","harvesterhci.io.supportbundle",(()=>o(25661))),e.register("models","harvesterhci.io.upgrade",(()=>o(39334))),e.register("models","harvesterhci.io.upgradelog",(()=>o(25418))),e.register("models","harvesterhci.io.virtualmachinebackup",(()=>o(64778))),e.register("models","harvesterhci.io.virtualmachineimage",(()=>o(38287))),e.register("models","harvesterhci.io.virtualmachinerestore",(()=>o(82680))),e.register("models","harvesterhci.io.virtualmachinetemplate",(()=>o(61746))),e.register("models","harvesterhci.io.virtualmachinetemplateversion",(()=>o(96608))),e.register("models","k8s.cni.cncf.io.networkattachmentdefinition",(()=>o(43842))),e.register("models","kubevirt.io.virtualmachine",(()=>o(50784))),e.register("models","kubevirt.io.virtualmachineinstance",(()=>o(79095))),e.register("models","loadbalancer.harvesterhci.io.ippool",(()=>o(68917))),e.register("models","loadbalancer.harvesterhci.io.loadbalancer",(()=>o(61772))),e.register("models","longhorn.io.node",(()=>o(28433))),e.register("models","metal.harvesterhci.io.inventory",(()=>o(11971))),e.register("models","network.harvesterhci.io.clusternetwork",(()=>o(85696))),e.register("models","network.harvesterhci.io.nodenetwork",(()=>o(88272))),e.register("models","network.harvesterhci.io.vlanconfig",(()=>o(70443))),e.register("models","network.harvesterhci.io.vlanstatus",(()=>o(61715))),e.register("models","schema",(()=>o(30865))),e.register("promptRemove","kubevirt.io.virtualmachine",(()=>o.e(973).then(o.bind(o,51597)))),e.register("l10n","en-us",(()=>o.e(37).then(o.t.bind(o,49037,23)))),e.register("dialog","CloneVmDialog",(()=>o.e(907).then(o.bind(o,4642)))),e.register("dialog","ConfirmRelatedToRemoveDialog",(()=>o.e(907).then(o.bind(o,16996)))),e.register("dialog","DeepCloneVmDialog",(()=>o.e(907).then(o.bind(o,97183)))),e.register("dialog","EnablePciPassthrough",(()=>o.e(907).then(o.bind(o,90059)))),e.register("dialog","EnableSriovDevice",(()=>o.e(907).then(o.bind(o,67038)))),e.register("dialog","EnableUSBPassthrough",(()=>o.e(907).then(o.bind(o,29905)))),e.register("dialog","EnableVGpuDevice",(()=>o.e(907).then(o.bind(o,71524)))),e.register("dialog","HarvesterAddHotplugModal",(()=>o.e(907).then(o.bind(o,2790)))),e.register("dialog","HarvesterBackupModal",(()=>o.e(907).then(o.bind(o,51094)))),e.register("dialog","HarvesterCloneTemplate",(()=>o.e(907).then(o.bind(o,55441)))),e.register("dialog","HarvesterEjectCDROMDialog",(()=>o.e(907).then(o.bind(o,26717)))),e.register("dialog","HarvesterExportImageDialog",(()=>o.e(907).then(o.bind(o,6285)))),e.register("dialog","HarvesterMaintenanceDialog",(()=>o.e(907).then(o.bind(o,24384)))),e.register("dialog","HarvesterMigrationDialog",(()=>o.e(907).then(o.bind(o,21569)))),e.register("dialog","HarvesterQuotaDialog",(()=>o.e(907).then(o.bind(o,59248)))),e.register("dialog","HarvesterRestoreDialog",(()=>o.e(907).then(o.bind(o,58402)))),e.register("dialog","HarvesterSupportBundle",(()=>o.e(907).then(o.bind(o,53953)))),e.register("dialog","HarvesterUnplugVolume",(()=>o.e(907).then(o.bind(o,94968)))),e.register("dialog","HarvesterVMSnapshotDialog",(()=>o.e(907).then(o.bind(o,66690)))),e.register("dialog","HarvesterVlanConfigMigrateDialog",(()=>o.e(907).then(o.bind(o,32082)))),e.register("dialog","MessageBox",(()=>o.e(907).then(o.bind(o,89257)))),e.register("dialog","RestartVMDialog",(()=>o.e(907).then(o.bind(o,80296)))),e.register("dialog","RestoreSnapshotDialog",(()=>o.e(907).then(o.bind(o,63457)))),e.register("dialog","SnapshotDialog",(()=>o.e(907).then(o.bind(o,81825)))),e.register("dialog","VolumeCloneDialog",(()=>o.e(907).then(o.bind(o,27148)))),e.register("formatters","AttachVMWithName",(()=>Promise.all([o.e(851),o.e(950),o.e(12),o.e(90),o.e(902)]).then(o.bind(o,59989)))),e.register("formatters","BackupCreatedFrom",(()=>Promise.all([o.e(851),o.e(950),o.e(12),o.e(90),o.e(902)]).then(o.bind(o,22234)))),e.register("formatters","CloudInitType",(()=>Promise.all([o.e(851),o.e(950),o.e(12),o.e(90),o.e(902)]).then(o.bind(o,32012)))),e.register("formatters","HarvesterBackupProgressBar",(()=>Promise.all([o.e(851),o.e(950),o.e(12),o.e(90),o.e(902)]).then(o.bind(o,13396)))),e.register("formatters","HarvesterBackupTargetValidation",(()=>Promise.all([o.e(851),o.e(950),o.e(12),o.e(90),o.e(902)]).then(o.bind(o,26398)))),e.register("formatters","HarvesterCPUPinning",(()=>Promise.all([o.e(851),o.e(950),o.e(12),o.e(90),o.e(902)]).then(o.bind(o,46e3)))),e.register("formatters","HarvesterCPUUsed",(()=>Promise.all([o.e(851),o.e(950),o.e(12),o.e(90),o.e(902)]).then(o.bind(o,14290)))),e.register("formatters","HarvesterCronExpression",(()=>Promise.all([o.e(851),o.e(950),o.e(12),o.e(90),o.e(902)]).then(o.bind(o,79211)))),e.register("formatters","HarvesterDiskState",(()=>Promise.all([o.e(851),o.e(950),o.e(12),o.e(90),o.e(902)]).then(o.bind(o,12342)))),e.register("formatters","HarvesterHost",(()=>Promise.all([o.e(851),o.e(950),o.e(12),o.e(90),o.e(902)]).then(o.bind(o,18290)))),e.register("formatters","HarvesterIpAddress",(()=>Promise.all([o.e(851),o.e(950),o.e(12),o.e(90),o.e(902)]).then(o.bind(o,24423)))),e.register("formatters","HarvesterListener",(()=>Promise.all([o.e(851),o.e(950),o.e(12),o.e(90),o.e(902)]).then(o.bind(o,52279)))),e.register("formatters","HarvesterMemoryUsed",(()=>Promise.all([o.e(851),o.e(950),o.e(12),o.e(90),o.e(902)]).then(o.bind(o,44599)))),e.register("formatters","HarvesterMigrationState",(()=>Promise.all([o.e(851),o.e(950),o.e(12),o.e(90),o.e(902)]).then(o.bind(o,69760)))),e.register("formatters","HarvesterStorageUsed",(()=>Promise.all([o.e(851),o.e(950),o.e(12),o.e(90),o.e(902)]).then(o.bind(o,20297)))),e.register("formatters","HarvesterVFAddress",(()=>Promise.all([o.e(851),o.e(950),o.e(12),o.e(90),o.e(902)]).then(o.bind(o,93922)))),e.register("formatters","HarvesterVFsNum",(()=>Promise.all([o.e(851),o.e(950),o.e(12),o.e(90),o.e(902)]).then(o.bind(o,22011)))),e.register("formatters","HarvesterVGpuDevices",(()=>Promise.all([o.e(851),o.e(950),o.e(12),o.e(90),o.e(902)]).then(o.bind(o,66810)))),e.register("formatters","HarvesterVmState",(()=>Promise.all([o.e(851),o.e(950),o.e(12),o.e(90),o.e(902)]).then(o.bind(o,98993)))),e.register("formatters","HarvesterVolumeState",(()=>Promise.all([o.e(851),o.e(950),o.e(12),o.e(90),o.e(902)]).then(o.bind(o,5538)))),e.register("formatters","NetworkRouteConnectivity",(()=>Promise.all([o.e(851),o.e(950),o.e(12),o.e(90),o.e(902)]).then(o.bind(o,47385)))),e.register("formatters","RelatedVolumeSnapshotCounts",(()=>Promise.all([o.e(851),o.e(950),o.e(12),o.e(90),o.e(902)]).then(o.bind(o,40179)))),e.register("formatters","SnapshotTargetVolume",(()=>Promise.all([o.e(851),o.e(950),o.e(12),o.e(90),o.e(902)]).then(o.bind(o,67359)))),e.register("formatters","StateWithPopover",(()=>Promise.all([o.e(851),o.e(950),o.e(12),o.e(90),o.e(902)]).then(o.bind(o,12521))))}var r=o(20652),i=o(9274);function s(e,t,n,r,o,a){return(0,i.openBlock)(),(0,i.createElementBlock)("div",null," This is harvester Dashboard. ")}var l=o(32766),c={beforeCreate(){this.$router.replace({name:`${r.KR}-c-cluster-resource`,params:{...this.$router.currentRoute.params,product:r.KR,resource:l.rk.DASHBOARD}})}},u=o(47433);const d=(0,u.A)(c,[["render",s]]);var h=d;const p=e=>((0,i.pushScopeId)("data-v-74e3f663"),e=e(),(0,i.popScopeId)(),e),f={class:"content mt-20"},m={class:"promo"},g={key:0,class:"box mb-20 box-primary"},v={class:"pb-10"},y={class:"pb-10"},b={key:1,class:"row"},_={class:"col span-6 box box-primary"},w=["href"],E=p((()=>(0,i.createElementVNode)("i",{class:"icon icon-external-link"},null,-1))),S={class:"warning"},x={class:"col span-6 box box-primary"},k=["href"],A=p((()=>(0,i.createElementVNode)("i",{class:"icon icon-external-link"},null,-1))),N={class:"warning"},T={class:"community"},C={class:"external"},R={href:"https://www.suse.com/suse-harvester/support-matrix/all-supported-versions",target:"_blank",rel:"noopener noreferrer nofollow"},O=p((()=>(0,i.createElementVNode)("i",{class:"icon icon-external-link"},null,-1))),I={href:"https://www.suse.com/products/harvester/",target:"_blank",rel:"noopener noreferrer nofollow"},D=p((()=>(0,i.createElementVNode)("i",{class:"icon icon-external-link"},null,-1)));function L(e,t,n,r,o,a){const s=(0,i.resolveComponent)("BannerGraphic"),l=(0,i.resolveComponent)("t"),c=(0,i.resolveComponent)("CommunityLinks"),u=(0,i.resolveComponent)("IndentedPanel"),d=(0,i.resolveComponent)("HarvesterSupportBundle");return(0,i.openBlock)(),(0,i.createElementBlock)("div",null,[(0,i.createVNode)(s,{title:e.t(a.title,{},!0)},null,8,["title"]),(0,i.createVNode)(u,null,{default:(0,i.withCtx)((()=>[(0,i.createElementVNode)("div",f,[(0,i.createElementVNode)("div",m,[a.showSupportBundle?((0,i.openBlock)(),(0,i.createElementBlock)("div",g,[(0,i.createElementVNode)("h2",null,(0,i.toDisplayString)(e.t("harvester.modal.bundle.title")),1),(0,i.createElementVNode)("div",null,[(0,i.createElementVNode)("p",v,(0,i.toDisplayString)(e.t("harvester.modal.bundle.titleDescription")),1),(0,i.createElementVNode)("button",{class:"btn role-secondary btn-sm",type:"button",onClick:t[0]||(t[0]=(...e)=>a.open&&a.open(...e))},(0,i.toDisplayString)(e.t("harvester.modal.bundle.title")),1)])])):(0,i.createCommentVNode)("",!0),(0,i.createElementVNode)("div",{class:(0,i.normalizeClass)(["box box-primary",{"mb-20":a.dev}])},[(0,i.createElementVNode)("h2",null,(0,i.toDisplayString)(e.t("harvester.support.kubeconfig.title")),1),(0,i.createElementVNode)("div",null,[(0,i.createElementVNode)("p",y,(0,i.toDisplayString)(e.t("harvester.support.kubeconfig.titleDescription")),1),(0,i.createElementVNode)("button",{class:"btn role-secondary btn-sm",type:"button",onClick:t[1]||(t[1]=t=>e.currentCluster.downloadKubeConfig())},(0,i.toDisplayString)(e.t("harvester.support.kubeconfig.title")),1)])],2),a.dev?((0,i.openBlock)(),(0,i.createElementBlock)("div",b,[(0,i.createElementVNode)("div",_,[(0,i.createElementVNode)("h2",null,[(0,i.createElementVNode)("a",{rel:"nofollow noopener noreferrer",target:"_blank",href:a.rancherLink},[(0,i.createTextVNode)((0,i.toDisplayString)(e.t("harvester.support.internal.rancher.title"))+" ",1),E],8,w)]),(0,i.createElementVNode)("div",null,[(0,i.createElementVNode)("p",S,[(0,i.createVNode)(l,{k:"harvester.support.internal.rancher.titleDescription",raw:!0,url:a.rancherIntegrationLink},null,8,["url"])])])]),(0,i.createElementVNode)("div",x,[(0,i.createElementVNode)("h2",null,[(0,i.createElementVNode)("a",{rel:"nofollow noopener noreferrer",target:"_blank",href:a.longhornLink},[(0,i.createTextVNode)((0,i.toDisplayString)(e.t("harvester.support.internal.longhorn.title"))+" ",1),A],8,k)]),(0,i.createElementVNode)("div",null,[(0,i.createElementVNode)("p",N,[(0,i.createVNode)(l,{k:"harvester.support.internal.longhorn.titleDescription",raw:!0})])])])])):(0,i.createCommentVNode)("",!0)]),(0,i.createElementVNode)("div",T,[(0,i.createVNode)(c,{"link-options":o.options},null,8,["link-options"])]),(0,i.createElementVNode)("div",C,[(0,i.createElementVNode)("a",R,[(0,i.createTextVNode)((0,i.toDisplayString)(e.t("harvester.support.community.learnMore"))+" ",1),O]),(0,i.createTextVNode)(" or "),(0,i.createElementVNode)("a",I,[(0,i.createTextVNode)((0,i.toDisplayString)(e.t("harvester.support.community.pricing"))+" ",1),D])])])])),_:1}),a.showSupportBundle?((0,i.openBlock)(),(0,i.createBlock)(d,{key:0})):(0,i.createCommentVNode)("",!0)])}var P=o(65359),M=o(97538);const F={class:"graphic"},B={key:0,"data-testid":"banner-title-key",class:"title"},$={key:1,"data-testid":"banner-title",class:"title"},j=(0,i.createElementVNode)("i",{class:"icon icon-close"},null,-1),U=[j];function V(e,t,n,r,o,a){const s=(0,i.resolveComponent)("BrandImage"),l=(0,i.resolveComponent)("t"),c=(0,i.resolveDirective)("clean-html");return e.shown?((0,i.openBlock)(),(0,i.createElementBlock)("div",{key:0,class:(0,i.normalizeClass)(["banner-graphic",{small:n.small}])},[(0,i.createElementVNode)("div",F,[(0,i.createVNode)(s,{class:"banner","data-testid":"banner-brand__img","file-name":"banner.svg",draggable:!1})]),n.titleKey?((0,i.openBlock)(),(0,i.createElementBlock)("div",B,[(0,i.createVNode)(l,{k:n.titleKey},null,8,["k"])])):n.title?(0,i.withDirectives)(((0,i.openBlock)(),(0,i.createElementBlock)("h1",$,null,512)),[[c,n.title]]):(0,i.createCommentVNode)("",!0),e.pref?((0,i.openBlock)(),(0,i.createElementBlock)("div",{key:2,class:"close-button","data-testid":"graphic-banner-close",onClick:t[0]||(t[0]=t=>e.hide())},U)):(0,i.createCommentVNode)("",!0)],2)):(0,i.createCommentVNode)("",!0)}var K=o(46257);const H=["src"];function G(e,t,n,r,o,a){return(0,i.openBlock)(),(0,i.createElementBlock)("img",(0,i.mergeProps)(e.$attrs,{src:a.pathToBrandedImage}),null,16,H)}var z=o(25443),X=o(4284),q=o(41890),W={props:{fileName:{type:String,required:!0},dark:{type:Boolean,default:!1},supportCustomLogo:{type:Boolean,default:!1}},data(){const e=this.$store.getters["management/all"](X.Mc.SETTING),t=e?.filter((e=>e.id===q.HG.LOGIN_BACKGROUND_LIGHT))?.[0]?.value,n=e?.filter((e=>e.id===q.HG.LOGIN_BACKGROUND_DARK))?.[0]?.value;return{managementSettings:e,uiLoginBackgroundLight:t,uiLoginBackgroundDark:n}},computed:{...(0,z.L8)({theme:"prefs/theme"}),brand(){const e=this.managementSettings.filter((e=>e.id===q.HG.BRAND))[0]||{};return e.value},uiLogoLight(){const e=this.managementSettings.filter((e=>e.id===q.HG.LOGO_LIGHT))[0]||{};return e.value},uiLogoDark(){const e=this.managementSettings.filter((e=>e.id===q.HG.LOGO_DARK))[0]||{};return e.value},uiBannerLight(){const e=this.managementSettings.filter((e=>e.id===q.HG.BANNER_LIGHT))[0]||{};return e.value},uiBannerDark(){const e=this.managementSettings.filter((e=>e.id===q.HG.BANNER_DARK))[0]||{};return e.value},defaultPathToBrandedImage(){const e="dark"===this.theme?"dark/":"";try{return o(87900)(`./${e}${this.fileName}`)}catch{return o(74752)(`./${this.fileName}`)}},pathToBrandedImage(){if("rancher-logo.svg"===this.fileName||this.supportCustomLogo){if("dark"===this.theme&&this.uiLogoDark)return this.uiLogoDark;if(this.uiLogoLight)return this.uiLogoLight}if("banner.svg"===this.fileName){if("dark"===this.theme&&this.uiBannerDark)return this.uiBannerDark;if(this.uiBannerLight)return this.uiBannerLight}if("login-landscape.svg"===this.fileName){if("dark"===this.theme&&this.uiLoginBackgroundDark)return this.uiLoginBackgroundDark;if(this.uiLoginBackgroundLight)return this.uiLoginBackgroundLight}if(this.brand){if("dark"===this.theme||this.dark)try{return o(4378)(`./${this.brand}/dark/${this.fileName}`)}catch{}try{return o(96817)(`./${this.brand}/${this.fileName}`)}catch{}return this.defaultPathToBrandedImage}return this.defaultPathToBrandedImage}}};const Y=(0,u.A)(W,[["render",G]]);var Q=Y,J={components:{BrandImage:Q},mixins:[K.A],props:{title:{type:String,default:null},titleKey:{type:String,default:null},small:{type:Boolean,default:!1}}};o(98941);const Z=(0,u.A)(J,[["render",V]]);var ee=Z;const te={class:"indented-panel"};function ne(e,t,n,r,o,a){return(0,i.openBlock)(),(0,i.createElementBlock)("div",te,[(0,i.renderSlot)(e.$slots,"default")])}var re={};o(46527);const ie=(0,u.A)(re,[["render",ne]]);var oe=ie;const ae=e=>((0,i.pushScopeId)("data-v-72fd1d89"),e=e(),(0,i.popScopeId)(),e),se={key:0},le=["href"],ce={key:0,class:"support-link"},ue={class:"wechat-modal"},de=ae((()=>(0,i.createElementVNode)("div",{class:"qr-img"},null,-1)));function he(e,t,n,r,o,a){const s=(0,i.resolveComponent)("router-link"),l=(0,i.resolveComponent)("SimpleBox"),c=(0,i.resolveComponent)("app-modal");return a.hasOptions?((0,i.openBlock)(),(0,i.createElementBlock)("div",se,[(0,i.createVNode)(l,{pref:e.pref,"pref-key":e.prefKey},{title:(0,i.withCtx)((()=>[(0,i.createElementVNode)("h2",null,(0,i.toDisplayString)(e.t("customLinks.displayTitle")),1)])),default:(0,i.withCtx)((()=>[((0,i.openBlock)(!0),(0,i.createElementBlock)(i.Fragment,null,(0,i.renderList)(a.options,((e,t)=>((0,i.openBlock)(),(0,i.createElementBlock)("div",{key:t,class:"support-link"},[e.value.startsWith("/")?((0,i.openBlock)(),(0,i.createBlock)(s,{key:0,to:e.value},{default:(0,i.withCtx)((()=>[(0,i.createTextVNode)((0,i.toDisplayString)(e.label),1)])),_:2},1032,["to"])):((0,i.openBlock)(),(0,i.createElementBlock)("a",{key:1,href:e.value,rel:"noopener noreferrer nofollow",target:"_blank"},(0,i.toDisplayString)(e.label),9,le))])))),128)),(0,i.renderSlot)(e.$slots,"default",{},void 0,!0),e.selectedLocaleLabel===e.t("locale.zh-hans")?((0,i.openBlock)(),(0,i.createElementBlock)("div",ce,[(0,i.createElementVNode)("a",{class:"link",onClick:t[0]||(t[0]=(...e)=>a.show&&a.show(...e))},(0,i.toDisplayString)(e.t("footer.wechat.title")),1)])):(0,i.createCommentVNode)("",!0)])),_:3},8,["pref","pref-key"]),o.showWeChatModal?((0,i.openBlock)(),(0,i.createBlock)(c,{key:0,name:"wechat-modal",height:"auto",width:640,onClose:a.close},{default:(0,i.withCtx)((()=>[(0,i.createElementVNode)("div",ue,[(0,i.createElementVNode)("h1",null,(0,i.toDisplayString)(e.t("footer.wechat.modalText")),1),(0,i.createElementVNode)("h1",null,(0,i.toDisplayString)(e.t("footer.wechat.modalText2")),1),de,(0,i.createElementVNode)("div",null,[(0,i.createElementVNode)("button",{class:"btn role-primary",onClick:t[1]||(t[1]=(...e)=>a.close&&a.close(...e))},(0,i.toDisplayString)(e.t("generic.close")),1)])])])),_:1},8,["onClose"])):(0,i.createCommentVNode)("",!0)])):(0,i.createCommentVNode)("",!0)}var pe=o(84036),fe=o(70876),me=o(97389),ge=o(25705),ve=o(68844),ye=o(9776);const be=[{key:"docs",value:ge.M0,enabled:!0},{key:"forums",value:"https://forums.rancher.com/",enabled:!0},{key:"slack",value:"https://slack.rancher.io/",enabled:!0},{key:"issues",value:"https://github.com/rancher/dashboard/issues/new/choose",enabled:!0},{key:"getStarted",value:`${ge.M0}/getting-started/overview`,enabled:!0}],_e={key:"suseCollective",value:"https://susecollective.suse.com/join/prime",enabled:!0},we={key:"commercialSupport",value:"/support",enabled:!0,readonly:!0},Ee={key:"cnforums",value:"https://forums.rancher.cn/",enabled:!0},Se="v1",xe="v1.1";async function ke(e,t,n,r){let i={};try{const t=await e.dispatch("management/find",{type:X.Mc.SETTING,id:q.HG.UI_CUSTOM_LINKS});t.value&&(i=JSON.parse(t.value))}catch(Xs){ye.warn("Could not parse custom link settings",Xs)}if(i?.version?.startsWith(Se)){if(i?.version===Se&&(i.version=xe,i.defaults.includes(_e.key)||i.defaults.push(_e.key)),i.defaults){const e=[...be];(0,me.f$)()&&e.push(_e),e.forEach((e=>{const t=i.defaults.find((t=>t===e.key));e.enabled=!!t})),i.defaults=e}return Ae(i,t,n,r,e)}const o={version:Se,defaults:[...be],custom:[]};(0,me.f$)()&&o.defaults.push(_e);try{const{uiIssuesSetting:t,uiCommunitySetting:n}=await(0,ve.kR)({uiIssuesSetting:e.dispatch("management/find",{type:X.Mc.SETTING,id:q.HG.ISSUES}),uiCommunitySetting:e.dispatch("management/find",{type:X.Mc.SETTING,id:q.HG.COMMUNITY_LINKS})});if("false"===n?.value&&o.defaults.forEach((e=>e.enabled=!1)),t?.value){o.custom.push({label:r?r("customLinks.defaults.issues"):"Issues",value:t.value});const e=o.defaults?.find((e=>"issues"===e.key));e&&(e.enabled=!1,e.readOnly=!0)}}catch(Xs){ye.warn("Could not parse legacy link settings",Xs)}return Ae(o,t,n,r,e)}function Ae(e,t,n,r,i){if(!t&&!n){const t=e.defaults?.find((e=>"commercialSupport"===e.key));t||e.defaults.push(we)}const o=i.getters["i18n/selectedLocaleLabel"];o===r("locale.zh-hans")&&e.defaults.push(Ee),e.defaults=e.defaults.map((e=>({...e,label:r(`'customLinks.defaults.${e.key}`)})));const a=e.custom.reduce(((e,t)=>(e[t.label]=t,e)),{});return e.defaults.forEach((e=>{a[e.label]&&(e.enabled=!1,e.readonly=!0)})),e}var Ne={name:"CommunityLinks",components:{SimpleBox:pe.A,AppModal:fe.A},props:{linkOptions:{type:Object,default:()=>({})},isSupportPage:{type:Boolean,default:!1}},mixins:[K.A],async fetch(){this.links=await ke(this.$store,this.hasSupport,this.isSupportPage,(e=>this.t(e)))},data(){return{links:{},showWeChatModal:!1}},computed:{...(0,z.L8)("i18n",["selectedLocaleLabel"]),hasOptions(){return!!Object.keys(this.options).length||!!Object.keys(this.$slots).length},hasSupport(){return(0,me.f$)()||"true"===this.$store.getters["management/byId"](X.Mc.SETTING,q.HG.SUPPORTED)?.value},options(){if(this.linkOptions&&Object.keys(this.linkOptions).length){const e=[];return Object.keys(this.linkOptions).forEach((t=>{e.push({key:t,label:this.t(t),value:this.linkOptions[t]})})),e}const e=[];return this.links.custom&&e.push(...this.links.custom),this.links.defaults&&e.push(...this.links.defaults.filter((e=>e.enabled))),e}},methods:{show(){this.showWeChatModal=!0},close(){this.showWeChatModal=!1}}};o(50642);const Te=(0,u.A)(Ne,[["render",he],["__scopeId","data-v-72fd1d89"]]);var Ce=Te,Re=o(53953),Oe=o(66242),Ie=o(3791),De={components:{BannerGraphic:ee,IndentedPanel:oe,CommunityLinks:Ce,HarvesterSupportBundle:Re["default"]},data(){return{options:{"footer.docs":"https://docs.harvesterhci.io","footer.forums":"https://forums.rancher.com/c/harvester/","footer.slack":"https://slack.rancher.io","footer.issue":"https://github.com/harvester/harvester/issues/new/choose"}}},computed:{...(0,P.L8)(["currentCluster"]),dev(){try{return this.$store.getters["prefs/get"](M.bc)}catch{return this.$store.getters["prefs/get"](M.IJ)}},title(){return"harvester.support.title"},showSupportBundle(){const e=this.$store.getters["currentProduct"].inStore;return!!this.$store.getters[`${e}/byId`](X.yx,l.rk.SUPPORT_BUNDLE)},internalPrefix(){const e=window.location.host,t=window.location.pathname.replace(this.$route.path,""),n=this.$route?.params;return{host:e,prefix:t,params:n}},rancherLink(){const{host:e,prefix:t,params:n}=this.internalPrefix;return`https://${e}${t}/c/${n.cluster}/explorer`},longhornLink(){const{host:e,params:t}=this.internalPrefix;return`https://${e}/k8s/clusters/${t.cluster}/api/v1/namespaces/longhorn-system/services/http:longhorn-frontend:80/proxy/#/dashboard`},rancherIntegrationLink(){const e=this.$store.getters["harvester-common/getServerVersion"]();return(0,Ie.nn)(Oe.d.RANCHER_INTEGRATION_URL,e)}},methods:{open(){this.$store.commit("harvester-common/toggleBundleModal",!0)}}};o(41158);const Le=(0,u.A)(De,[["render",L],["__scopeId","data-v-74e3f663"]]);var Pe=Le;function Me(e,t,n,r,o,a){const s=(0,i.resolveComponent)("Loading"),l=(0,i.resolveComponent)("SerialConsole");return e.$fetchState.pending?((0,i.openBlock)(),(0,i.createBlock)(s,{key:0})):((0,i.openBlock)(),(0,i.createBlock)(l,{key:1,ref:"serialConsole",value:a.vmi,"onUpdate:value":t[0]||(t[0]=e=>a.vmi=e)},null,8,["value"]))}var Fe=o(82888);const Be={class:"harvester-shell-container"},$e={ref:"xterm",class:"shell-body"};function je(e,t,n,r,o,a){const s=(0,i.resolveComponent)("resize-observer");return(0,i.openBlock)(),(0,i.createElementBlock)("div",Be,[(0,i.createElementVNode)("div",$e,null,512),(0,i.createVNode)(s,{onNotify:a.fit},null,8,["onNotify"])])}var Ue=o(12784),Ve=o.n(Ue),Ke=o(9776);const He=new WeakMap,Ge=new WeakMap;function ze(e){const t=He.get(e);return Ke.assert(null!=t,"'this' is expected an Event object, but got",e),t}function Xe(e){null==e.passiveListener?e.event.cancelable&&(e.canceled=!0,"function"===typeof e.event.preventDefault&&e.event.preventDefault()):"undefined"!==typeof Ke&&"function"===typeof Ke.error&&Ke.error("Unable to preventDefault inside passive event listener invocation.",e.passiveListener)}function qe(e,t){He.set(this,{eventTarget:e,event:t,eventPhase:2,currentTarget:e,canceled:!1,stopped:!1,immediateStopped:!1,passiveListener:null,timeStamp:t.timeStamp||Date.now()}),Object.defineProperty(this,"isTrusted",{value:!1,enumerable:!0});const n=Object.keys(t);for(let r=0;r<n.length;++r){const e=n[r];e in this||Object.defineProperty(this,e,We(e))}}function We(e){return{get(){return ze(this).event[e]},set(t){ze(this).event[e]=t},configurable:!0,enumerable:!0}}function Ye(e){return{value(){const t=ze(this).event;return t[e].apply(t,arguments)},configurable:!0,enumerable:!0}}function Qe(e,t){const n=Object.keys(t);if(0===n.length)return e;function r(t,n){e.call(this,t,n)}r.prototype=Object.create(e.prototype,{constructor:{value:r,configurable:!0,writable:!0}});for(let i=0;i<n.length;++i){const o=n[i];if(!(o in e.prototype)){const e=Object.getOwnPropertyDescriptor(t,o),n="function"===typeof e.value;Object.defineProperty(r.prototype,o,n?Ye(o):We(o))}}return r}function Je(e){if(null==e||e===Object.prototype)return qe;let t=Ge.get(e);return null==t&&(t=Qe(Je(Object.getPrototypeOf(e)),e),Ge.set(e,t)),t}function Ze(e,t){const n=Je(Object.getPrototypeOf(t));return new n(e,t)}function et(e){return ze(e).immediateStopped}function tt(e,t){ze(e).eventPhase=t}function nt(e,t){ze(e).currentTarget=t}function rt(e,t){ze(e).passiveListener=t}qe.prototype={get type(){return ze(this).event.type},get target(){return ze(this).eventTarget},get currentTarget(){return ze(this).currentTarget},composedPath(){const e=ze(this).currentTarget;return null==e?[]:[e]},get NONE(){return 0},get CAPTURING_PHASE(){return 1},get AT_TARGET(){return 2},get BUBBLING_PHASE(){return 3},get eventPhase(){return ze(this).eventPhase},stopPropagation(){const e=ze(this);e.stopped=!0,"function"===typeof e.event.stopPropagation&&e.event.stopPropagation()},stopImmediatePropagation(){const e=ze(this);e.stopped=!0,e.immediateStopped=!0,"function"===typeof e.event.stopImmediatePropagation&&e.event.stopImmediatePropagation()},get bubbles(){return Boolean(ze(this).event.bubbles)},get cancelable(){return Boolean(ze(this).event.cancelable)},preventDefault(){Xe(ze(this))},get defaultPrevented(){return ze(this).canceled},get composed(){return Boolean(ze(this).event.composed)},get timeStamp(){return ze(this).timeStamp},get srcElement(){return ze(this).eventTarget},get cancelBubble(){return ze(this).stopped},set cancelBubble(e){if(!e)return;const t=ze(this);t.stopped=!0,"boolean"===typeof t.event.cancelBubble&&(t.event.cancelBubble=!0)},get returnValue(){return!ze(this).canceled},set returnValue(e){e||Xe(ze(this))},initEvent(){}},Object.defineProperty(qe.prototype,"constructor",{value:qe,configurable:!0,writable:!0}),"undefined"!==typeof window&&"undefined"!==typeof window.Event&&(Object.setPrototypeOf(qe.prototype,window.Event.prototype),Ge.set(window.Event.prototype,qe));const it=new WeakMap,ot=1,at=2,st=3;function lt(e){return null!==e&&"object"===typeof e}function ct(e){const t=it.get(e);if(null==t)throw new TypeError("'this' is expected an EventTarget object, but got another value.");return t}function ut(e){return{get(){const t=ct(this);let n=t.get(e);while(null!=n){if(n.listenerType===st)return n.listener;n=n.next}return null},set(t){"function"===typeof t||lt(t)||(t=null);const n=ct(this);let r=null,i=n.get(e);while(null!=i)i.listenerType===st?null!==r?r.next=i.next:null!==i.next?n.set(e,i.next):n.delete(e):r=i,i=i.next;if(null!==t){const i={listener:t,listenerType:st,passive:!1,once:!1,next:null};null===r?n.set(e,i):r.next=i}},configurable:!0,enumerable:!0}}function dt(e,t){Object.defineProperty(e,`on${t}`,ut(t))}function ht(e){function t(){pt.call(this)}t.prototype=Object.create(pt.prototype,{constructor:{value:t,configurable:!0,writable:!0}});for(let n=0;n<e.length;++n)dt(t.prototype,e[n]);return t}function pt(){if(!(this instanceof pt)){if(1===arguments.length&&Array.isArray(arguments[0]))return ht(arguments[0]);if(arguments.length>0){const e=new Array(arguments.length);for(let t=0;t<arguments.length;++t)e[t]=arguments[t];return ht(e)}throw new TypeError("Cannot call a class as a function")}it.set(this,new Map)}pt.prototype={addEventListener(e,t,n){if(null==t)return;if("function"!==typeof t&&!lt(t))throw new TypeError("'listener' should be a function or an object.");const r=ct(this),i=lt(n),o=i?Boolean(n.capture):Boolean(n),a=o?ot:at,s={listener:t,listenerType:a,passive:i&&Boolean(n.passive),once:i&&Boolean(n.once),next:null};let l=r.get(e);if(void 0===l)return void r.set(e,s);let c=null;while(null!=l){if(l.listener===t&&l.listenerType===a)return;c=l,l=l.next}c.next=s},removeEventListener(e,t,n){if(null==t)return;const r=ct(this),i=lt(n)?Boolean(n.capture):Boolean(n),o=i?ot:at;let a=null,s=r.get(e);while(null!=s){if(s.listener===t&&s.listenerType===o)return void(null!==a?a.next=s.next:null!==s.next?r.set(e,s.next):r.delete(e));a=s,s=s.next}},dispatchEvent(e){if(null==e||"string"!==typeof e.type)throw new TypeError('"event.type" should be a string.');const t=ct(this),n=e.type;let r=t.get(n);if(null==r)return!0;const i=Ze(this,e);let o=null;while(null!=r){if(r.once?null!==o?o.next=r.next:null!==r.next?t.set(n,r.next):t.delete(n):o=r,rt(i,r.passive?r.listener:null),"function"===typeof r.listener)try{r.listener.call(this,i)}catch(qa){"undefined"!==typeof Ke&&"function"===typeof Ke.error&&Ke.error(qa)}else r.listenerType!==st&&"function"===typeof r.listener.handleEvent&&r.listener.handleEvent(i);if(et(i))break;r=r.next}return rt(i,null),tt(i,0),nt(i,null),!i.defaultPrevented}},Object.defineProperty(pt.prototype,"constructor",{value:pt,configurable:!0,writable:!0}),"undefined"!==typeof window&&"undefined"!==typeof window.EventTarget&&Object.setPrototypeOf(pt.prototype,window.EventTarget.prototype);var ft=o(82709),mt=o(23967),gt=o(9776);function vt(e,t,n){return(t=yt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yt(e){var t=bt(e,"string");return"symbol"==typeof t?t:t+""}function bt(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)}let _t=1,wt=!1,Et=!1;const St="ws://",xt="wss://",kt="disconnected",At=(pt.addEventListener,"connecting"),Nt="connected",Tt="closing",Ct="reconnecting",Rt=At,Ot=Nt,It=kt,Dt="message",Lt="frame_timeout",Pt="connect_error",Mt="disconnect_error",Ft="NO_WATCH",Bt="NO_SCHEMA",$t="NO_PERMS",jt="TOO_OLD";class Ut extends pt{constructor(e,t=!0,n=null,r=null,i=null,o=!1){super(),vt(this,"url",void 0),vt(this,"autoReconnect",!0),vt(this,"frameTimeout",35e3),vt(this,"metadata",{}),vt(this,"hasBeenOpen",!1),vt(this,"hasReconnected",!1),vt(this,"protocol",null),vt(this,"maxTries",null),vt(this,"tries",0),vt(this,"idAsTimestamp",!1),vt(this,"socket",null),vt(this,"state",kt),vt(this,"framesReceived",0),vt(this,"frameTimer",void 0),vt(this,"reconnectTimer",void 0),vt(this,"disconnectCallBacks",[]),vt(this,"disconnectedAt",0),vt(this,"closingId",0),vt(this,"autoReconnectUrl",null),this.setUrl(e),this.autoReconnect=t,this.protocol=r,this.maxTries=i,this.idAsTimestamp=o,null!==n&&(this.frameTimeout=n)}setUrl(e){e.match(/wss?:\/\//)||(e=self.location.origin.replace(/^http/,"ws")+e),"https:"===self.location.protocol&&e.startsWith(St)&&(e=xt+e.substr(St.length)),this.url=e}connect(e={}){if(this.socket)return void gt.error("Socket refusing to connect while another socket exists");this.state!==Ct&&(this.state=At),Object.assign(this.metadata,e);const t=this.idAsTimestamp?(new Date).getTime():_t++,n=(0,mt.R_)(this.url,"sockId",t);let r;this._baseLog("connecting",{id:t,url:n.replace(/\?.*/,"")}),this.tries++,r=this.protocol?new WebSocket(n,this.protocol):new WebSocket(n),r.sockId=t,r.metadata=this.metadata,r.onmessage=this._onmessage.bind(this),r.onopen=this._opened.bind(this),r.onerror=this._error.bind(this),r.onclose=this._closed.bind(this),this.socket=r,this.state=At,this.dispatchEvent(new CustomEvent(Rt))}send(e){return!(!this.socket||this.state!==Nt)&&(this.socket.send(e),!0)}disconnect(e){e&&this.disconnectCallBacks.push(e);const t=this,n=new Promise(((e,n)=>{function r(e){n(e),t.removeEventListener(Pt,r)}this.state===kt&&e(),this.addEventListener(Pt,r),this.disconnectCallBacks.push((()=>{this.removeEventListener(Pt,r),e()}))}));return this.autoReconnect=!1,this._close(),n}reconnect(e={}){Object.assign(this.metadata,e),this.state!==At?this.socket?this._close():this.connect(e):this._log("Ignoring reconnect for socket in connecting")}getMetadata(){return this.socket?this.socket.metadata:{}}getId(){return this.socket?this.socket.sockId:0}isConnected(){return this.state===Nt}setAutoReconnect(e){this.autoReconnect=e}setAutoReconnectUrl(e){this.autoReconnectUrl=e}_close(){const e=this.socket;if(e){try{this._log("closing"),this.closingId=e.sockId,e.onopen=null,e.onerror=null,e.onmessage=null,e.close()}catch(Xs){this._log("exception",{e:Xs.toString()})}this.state=Tt}}_opened(){this._log("opened");const e=(new Date).getTime(),t=this.disconnectedAt;let n=0;t&&(n=e-t),this.hasBeenOpen&&(this.hasReconnected=!0),this.hasBeenOpen=!0,this.state=Nt,this.framesReceived=0,this.disconnectedAt=0,this.dispatchEvent(new CustomEvent(Ot,{detail:{tries:this.tries,afterMilliseconds:n}})),this.tries=0,this._resetWatchdog(),clearTimeout(this.reconnectTimer)}_onmessage(e){this._resetWatchdog(),this.tries=0,this.framesReceived++,this.dispatchEvent(new CustomEvent(Dt,{detail:e}))}_resetWatchdog(){clearTimeout(this.frameTimer);const e=this.frameTimeout;e&&this.state===Nt&&(this.frameTimer=setTimeout((()=>{this._log(`watchdog expired after${e}. Closing`),this._close(),this.dispatchEvent(new CustomEvent(Lt))}),e))}_error(){this.closingId=this.socket?this.socket.sockId:0,this._log("error")}_closed(e){const{code:t,reason:n,wasClean:r}=e;this._baseLog("closed",{id:this.closingId||this.socket?.sockId||"unknown",code:t,reason:n,clean:r}),this.closingId=0,this.socket=null,clearTimeout(this.reconnectTimer),clearTimeout(this.frameTimer);const i=this.disconnectCallBacks;while(i.length){const e=i.pop();e&&e.apply(this)}if([Nt,Tt].includes(this.state)&&(Et=!0),this.disconnectedAt||(this.disconnectedAt=(new Date).getTime()),wt||Et)if(this.autoReconnect){if(this.state=Ct,this.maxTries&&this.tries>1&&this.tries<=this.maxTries){const e=new CustomEvent(Pt);this.dispatchEvent(e)}if(this.maxTries&&this.tries>this.maxTries)this._log("closed. Will not reconnect (hit max attempts)"),this.state=kt,this.dispatchEvent(new CustomEvent(Mt));else{const e=()=>{this._log("closed. Attempting to reconnect");const e=Math.max(1e3,Math.min(1e3*this.tries,3e4));this.reconnectTimer=setTimeout((()=>{this.connect()}),e)};this.autoReconnectUrl?this.autoReconnectUrl().then((t=>{this.setUrl(t),e()})).catch((e=>{gt.error("Failed to fetch socket auto reconnect url",e)})):e()}}else this.state=kt;else{this.autoReconnect=!1,this.state=kt;const e=new CustomEvent(Pt,{detail:{isSafari:ft.nr}});this.dispatchEvent(e),wt=!0}this.state===kt?this.dispatchEvent(new CustomEvent(It)):this.state===Ct&&this.dispatchEvent(new CustomEvent(Rt))}_log(e,t){this._baseLog(e,{state:this.state,id:this.socket?.sockId||0,...t})}_baseLog(e,t){const n=[e],r=Object.entries(t||{});n.unshift("Socket "),r.length&&(n.push(" ("),r.forEach((([e,t],r)=>{0!==r&&n.push(", "),n.push(`${e}=${t}`)})),n.push(")")),gt.log(n.join(""))}}var Vt=o(9776),Kt={emits:["close"],props:{value:{type:Object,required:!0}},data(){return{socket:null,terminal:null,fitAddon:null,searchAddon:null,webglAddon:null,isOpen:!1,isOpening:!1,backlog:[],firstTime:!0,queue:[]}},computed:{xtermConfig(){return{allowProposedApi:!0,cursorBlink:!0,useStyle:!0,fontSize:12}}},watch:{queue:{handler:Ve()((async function(e){if(0===e.length)return;const t=await Promise.all(e);(t||[]).forEach((e=>{this.terminal.write(e)})),this.queue=[]}),5)}},beforeUnmount(){this.close()},async mounted(){await this.setupTerminal(),await this.connect()},methods:{async setupTerminal(){const e=getComputedStyle(document.querySelector("body")),t=await o.e(935).then(o.t.bind(o,62213,23)),n=await(0,ve.kR)({fit:o.e(935).then(o.t.bind(o,34462,23)),webgl:o.e(935).then(o.t.bind(o,90382,23)),weblinks:o.e(935).then(o.t.bind(o,72338,23)),search:o.e(935).then(o.t.bind(o,720,23))}),r=new t.Terminal({theme:{background:e.getPropertyValue("--terminal-bg").trim(),cursor:e.getPropertyValue("--terminal-cursor").trim(),foreground:e.getPropertyValue("--terminal-text").trim()},...this.xtermConfig});this.fitAddon=new n.fit.FitAddon,this.searchAddon=new n.search.SearchAddon;try{this.webglAddon=new n.webgl.WebGlAddon}catch(Xs){this.webglAddon=null}r.loadAddon(this.fitAddon),r.loadAddon(this.searchAddon),r.loadAddon(new n.weblinks.WebLinksAddon),r.open(this.$refs.xterm),this.webglAddon&&r.loadAddon(this.webglAddon),this.fit(),this.flush(),r.onData((e=>{const t=this.str2ab(e);this.write(t)})),this.terminal=r},str2ab(e){const t=new TextEncoder;return t.encode(e)},write(e){this.isOpen?this.socket.send(e):this.backlog.push(e)},clear(){this.terminal.clear()},getSocketUrl(){return`${this.value?.getSerialConsolePath}`},async connect(){this.socket&&(await this.socket.disconnect(),this.socket=null,this.terminal.reset());const e=this.getSocketUrl();e&&(this.socket=new Ut(e),this.socket.addEventListener(Rt,(e=>{this.isOpen=!1,this.isOpening=!0})),this.socket.addEventListener(Pt,(e=>{this.isOpen=!1,this.isOpening=!1,Vt.error("Connect Error",e)})),this.socket.addEventListener(Ot,(e=>{this.isOpen=!0,this.isOpening=!1,this.show&&(this.fit(),this.flush()),this.firstTime&&(this.socket.send(this.str2ab("\n")),this.firstTime=!1)})),this.socket.addEventListener(It,(e=>{this.isOpen=!1,this.isOpening=!1,this.$emit("close")})),this.socket.addEventListener(Dt,(e=>{this.queue.push(e.detail.data.text())})),this.socket.connect(),this.terminal.focus())},flush(){const e=this.backlog.slice();this.backlog=[];for(const t of e)this.socket.send(t)},fit(e){if(!this.fitAddon)return;this.fitAddon.fit();const{rows:t,cols:n}=this.fitAddon.proposeDimensions();if(!this.isOpen)return;const r=JSON.stringify({Width:n,Height:t});this.socket.send(this.str2ab(r))},close(){this.socket&&this.socket.disconnect(),this.terminal&&this.terminal.dispose()}}};o(38812);const Ht=(0,u.A)(Kt,[["render",je]]);var Gt=Ht,zt={components:{SerialConsole:Gt,Loading:Fe.A},async fetch(){this.rows=await this.$store.dispatch("harvester/findAll",{type:l.rk.VMI})},data(){return{uid:this.$route.params.uid}},computed:{vmi(){const e=this.$store.getters["harvester/all"](l.rk.VMI)||[],t=e.find((e=>e?.metadata?.ownerReferences?.[0]?.uid===this.uid));return t}},mounted(){window.addEventListener("beforeunload",(()=>{this.$refs.serialConsole.close()}))},head(){return{title:this.vmi?.metadata?.name}}};o(60226);const Xt=(0,u.A)(zt,[["render",Me],["__scopeId","data-v-2efbfdaf"]]);var qt=Xt;function Wt(e,t,n,r,o,a){const s=(0,i.resolveComponent)("Loading"),l=(0,i.resolveComponent)("NovncConsoleWrapper");return e.$fetchState.pending?((0,i.openBlock)(),(0,i.createBlock)(s,{key:0})):((0,i.openBlock)(),(0,i.createBlock)(l,{key:1,ref:"console",value:a.vmi,"onUpdate:value":t[0]||(t[0]=e=>a.vmi=e),class:"novnc-wrapper"},null,8,["value"]))}const Yt=e=>((0,i.pushScopeId)("data-v-55ed4d1a"),e=e(),(0,i.popScopeId)(),e),Qt={id:"app"},Jt={class:"vm-console"},Zt={class:"combination-keys"},en={class:"btn btn-sm bg-primary"},tn={class:"btn btn-sm bg-primary"},nn=Yt((()=>(0,i.createElementVNode)("hr",null,null,-1))),rn=["onClick"],on={key:1};function an(e,t,n,r,o,a){const s=(0,i.resolveComponent)("novnc-console-item"),l=(0,i.resolveComponent)("v-dropdown"),c=(0,i.resolveComponent)("NovncConsoleCustomKeys"),u=(0,i.resolveComponent)("NovncConsole");return(0,i.openBlock)(),(0,i.createElementBlock)("div",Qt,[(0,i.createElementVNode)("div",Jt,[(0,i.createElementVNode)("div",Zt,[(0,i.createVNode)(l,{ref:"popover",placement:"top",trigger:"click",container:!1,onAutoHide:t[0]||(t[0]=e=>o.keysRecord=[])},{popper:(0,i.withCtx)((()=>[(0,i.createVNode)(s,{items:a.keymap,path:o.keysRecord,pos:0,onUpdate:a.update,onSendKeys:a.sendKeys},null,8,["items","path","onUpdate","onSendKeys"])])),default:(0,i.withCtx)((()=>[(0,i.createElementVNode)("button",en,(0,i.toDisplayString)(e.t("harvester.virtualMachine.detail.console.shortcutKeys")),1)])),_:1},512),a.hasSoftRebootAction?((0,i.openBlock)(),(0,i.createElementBlock)("button",{key:0,class:"btn btn-sm bg-primary",onClick:t[1]||(t[1]=(...e)=>a.softReboot&&a.softReboot(...e))},(0,i.toDisplayString)(e.t("harvester.action.softreboot")),1)):(0,i.createCommentVNode)("",!0),o.hideCustomKeysBar?(0,i.createCommentVNode)("",!0):((0,i.openBlock)(),(0,i.createBlock)(l,{key:1,ref:"customKeyPopover",placement:"top",trigger:"click",container:!1},{popper:(0,i.withCtx)((()=>[(0,i.createElementVNode)("div",null,[(0,i.createElementVNode)("button",{class:"btn btn-sm bg-primary",onClick:t[2]||(t[2]=(...e)=>a.showKeysModal&&a.showKeysModal(...e))},(0,i.toDisplayString)(e.t("harvester.virtualMachine.detail.console.management")),1)]),nn,((0,i.openBlock)(!0),(0,i.createElementBlock)(i.Fragment,null,(0,i.renderList)(a.preferredShortcutKeys,((e,t)=>((0,i.openBlock)(),(0,i.createElementBlock)("div",{key:t},[(0,i.createElementVNode)("button",{class:"btn btn-sm bg-primary",onClick:t=>a.sendCustomKeys(e.value)},(0,i.toDisplayString)(e.label),9,rn)])))),128))])),default:(0,i.withCtx)((()=>[(0,i.createElementVNode)("button",tn,(0,i.toDisplayString)(e.t("harvester.virtualMachine.detail.console.customShortcutKeys")),1)])),_:1},512)),o.renderKeysModal?((0,i.openBlock)(),(0,i.createBlock)(c,{key:2,"current-user":o.currentUser,onClose:a.hideKeysModal},null,8,["current-user","onClose"])):(0,i.createCommentVNode)("",!0)]),a.url&&!a.isDown?((0,i.openBlock)(),(0,i.createBlock)(u,{key:0,ref:"novncConsole",url:a.url},null,8,["url"])):(0,i.createCommentVNode)("",!0),a.isDown?((0,i.openBlock)(),(0,i.createElementBlock)("p",on,(0,i.toDisplayString)(e.t("harvester.virtualMachine.detail.console.down")),1)):(0,i.createCommentVNode)("",!0)])])}var sn=o(78359),ln={XK_VoidSymbol:16777215,XK_BackSpace:65288,XK_Tab:65289,XK_Linefeed:65290,XK_Clear:65291,XK_Return:65293,XK_Pause:65299,XK_Scroll_Lock:65300,XK_Sys_Req:65301,XK_Escape:65307,XK_Delete:65535,XK_Multi_key:65312,XK_Codeinput:65335,XK_SingleCandidate:65340,XK_MultipleCandidate:65341,XK_PreviousCandidate:65342,XK_Kanji:65313,XK_Muhenkan:65314,XK_Henkan_Mode:65315,XK_Henkan:65315,XK_Romaji:65316,XK_Hiragana:65317,XK_Katakana:65318,XK_Hiragana_Katakana:65319,XK_Zenkaku:65320,XK_Hankaku:65321,XK_Zenkaku_Hankaku:65322,XK_Touroku:65323,XK_Massyo:65324,XK_Kana_Lock:65325,XK_Kana_Shift:65326,XK_Eisu_Shift:65327,XK_Eisu_toggle:65328,XK_Kanji_Bangou:65335,XK_Zen_Koho:65341,XK_Mae_Koho:65342,XK_Home:65360,XK_Left:65361,XK_Up:65362,XK_Right:65363,XK_Down:65364,XK_Prior:65365,XK_Page_Up:65365,XK_Next:65366,XK_Page_Down:65366,XK_End:65367,XK_Begin:65368,XK_Select:65376,XK_Print:65377,XK_Execute:65378,XK_Insert:65379,XK_Undo:65381,XK_Redo:65382,XK_Menu:65383,XK_Find:65384,XK_Cancel:65385,XK_Help:65386,XK_Break:65387,XK_Mode_switch:65406,XK_script_switch:65406,XK_Num_Lock:65407,XK_KP_Space:65408,XK_KP_Tab:65417,XK_KP_Enter:65421,XK_KP_F1:65425,XK_KP_F2:65426,XK_KP_F3:65427,XK_KP_F4:65428,XK_KP_Home:65429,XK_KP_Left:65430,XK_KP_Up:65431,XK_KP_Right:65432,XK_KP_Down:65433,XK_KP_Prior:65434,XK_KP_Page_Up:65434,XK_KP_Next:65435,XK_KP_Page_Down:65435,XK_KP_End:65436,XK_KP_Begin:65437,XK_KP_Insert:65438,XK_KP_Delete:65439,XK_KP_Equal:65469,XK_KP_Multiply:65450,XK_KP_Add:65451,XK_KP_Separator:65452,XK_KP_Subtract:65453,XK_KP_Decimal:65454,XK_KP_Divide:65455,XK_KP_0:65456,XK_KP_1:65457,XK_KP_2:65458,XK_KP_3:65459,XK_KP_4:65460,XK_KP_5:65461,XK_KP_6:65462,XK_KP_7:65463,XK_KP_8:65464,XK_KP_9:65465,XK_F1:65470,XK_F2:65471,XK_F3:65472,XK_F4:65473,XK_F5:65474,XK_F6:65475,XK_F7:65476,XK_F8:65477,XK_F9:65478,XK_F10:65479,XK_F11:65480,XK_L1:65480,XK_F12:65481,XK_L2:65481,XK_F13:65482,XK_L3:65482,XK_F14:65483,XK_L4:65483,XK_F15:65484,XK_L5:65484,XK_F16:65485,XK_L6:65485,XK_F17:65486,XK_L7:65486,XK_F18:65487,XK_L8:65487,XK_F19:65488,XK_L9:65488,XK_F20:65489,XK_L10:65489,XK_F21:65490,XK_R1:65490,XK_F22:65491,XK_R2:65491,XK_F23:65492,XK_R3:65492,XK_F24:65493,XK_R4:65493,XK_F25:65494,XK_R5:65494,XK_F26:65495,XK_R6:65495,XK_F27:65496,XK_R7:65496,XK_F28:65497,XK_R8:65497,XK_F29:65498,XK_R9:65498,XK_F30:65499,XK_R10:65499,XK_F31:65500,XK_R11:65500,XK_F32:65501,XK_R12:65501,XK_F33:65502,XK_R13:65502,XK_F34:65503,XK_R14:65503,XK_F35:65504,XK_R15:65504,XK_Shift_L:65505,XK_Shift_R:65506,XK_Control_L:65507,XK_Control_R:65508,XK_Caps_Lock:65509,XK_Shift_Lock:65510,XK_Meta_L:65511,XK_Meta_R:65512,XK_Alt_L:65513,XK_Alt_R:65514,XK_Super_L:65515,XK_Super_R:65516,XK_Hyper_L:65517,XK_Hyper_R:65518,XK_ISO_Level3_Shift:65027,XK_ISO_Next_Group:65032,XK_ISO_Prev_Group:65034,XK_ISO_First_Group:65036,XK_ISO_Last_Group:65038,XK_space:32,XK_exclam:33,XK_quotedbl:34,XK_numbersign:35,XK_dollar:36,XK_percent:37,XK_ampersand:38,XK_apostrophe:39,XK_quoteright:39,XK_parenleft:40,XK_parenright:41,XK_asterisk:42,XK_plus:43,XK_comma:44,XK_minus:45,XK_period:46,XK_slash:47,XK_0:48,XK_1:49,XK_2:50,XK_3:51,XK_4:52,XK_5:53,XK_6:54,XK_7:55,XK_8:56,XK_9:57,XK_colon:58,XK_semicolon:59,XK_less:60,XK_equal:61,XK_greater:62,XK_question:63,XK_at:64,XK_A:65,XK_B:66,XK_C:67,XK_D:68,XK_E:69,XK_F:70,XK_G:71,XK_H:72,XK_I:73,XK_J:74,XK_K:75,XK_L:76,XK_M:77,XK_N:78,XK_O:79,XK_P:80,XK_Q:81,XK_R:82,XK_S:83,XK_T:84,XK_U:85,XK_V:86,XK_W:87,XK_X:88,XK_Y:89,XK_Z:90,XK_bracketleft:91,XK_backslash:92,XK_bracketright:93,XK_asciicircum:94,XK_underscore:95,XK_grave:96,XK_quoteleft:96,XK_a:97,XK_b:98,XK_c:99,XK_d:100,XK_e:101,XK_f:102,XK_g:103,XK_h:104,XK_i:105,XK_j:106,XK_k:107,XK_l:108,XK_m:109,XK_n:110,XK_o:111,XK_p:112,XK_q:113,XK_r:114,XK_s:115,XK_t:116,XK_u:117,XK_v:118,XK_w:119,XK_x:120,XK_y:121,XK_z:122,XK_braceleft:123,XK_bar:124,XK_braceright:125,XK_asciitilde:126,XK_nobreakspace:160,XK_exclamdown:161,XK_cent:162,XK_sterling:163,XK_currency:164,XK_yen:165,XK_brokenbar:166,XK_section:167,XK_diaeresis:168,XK_copyright:169,XK_ordfeminine:170,XK_guillemotleft:171,XK_notsign:172,XK_hyphen:173,XK_registered:174,XK_macron:175,XK_degree:176,XK_plusminus:177,XK_twosuperior:178,XK_threesuperior:179,XK_acute:180,XK_mu:181,XK_paragraph:182,XK_periodcentered:183,XK_cedilla:184,XK_onesuperior:185,XK_masculine:186,XK_guillemotright:187,XK_onequarter:188,XK_onehalf:189,XK_threequarters:190,XK_questiondown:191,XK_Agrave:192,XK_Aacute:193,XK_Acircumflex:194,XK_Atilde:195,XK_Adiaeresis:196,XK_Aring:197,XK_AE:198,XK_Ccedilla:199,XK_Egrave:200,XK_Eacute:201,XK_Ecircumflex:202,XK_Ediaeresis:203,XK_Igrave:204,XK_Iacute:205,XK_Icircumflex:206,XK_Idiaeresis:207,XK_ETH:208,XK_Eth:208,XK_Ntilde:209,XK_Ograve:210,XK_Oacute:211,XK_Ocircumflex:212,XK_Otilde:213,XK_Odiaeresis:214,XK_multiply:215,XK_Oslash:216,XK_Ooblique:216,XK_Ugrave:217,XK_Uacute:218,XK_Ucircumflex:219,XK_Udiaeresis:220,XK_Yacute:221,XK_THORN:222,XK_Thorn:222,XK_ssharp:223,XK_agrave:224,XK_aacute:225,XK_acircumflex:226,XK_atilde:227,XK_adiaeresis:228,XK_aring:229,XK_ae:230,XK_ccedilla:231,XK_egrave:232,XK_eacute:233,XK_ecircumflex:234,XK_ediaeresis:235,XK_igrave:236,XK_iacute:237,XK_icircumflex:238,XK_idiaeresis:239,XK_eth:240,XK_ntilde:241,XK_ograve:242,XK_oacute:243,XK_ocircumflex:244,XK_otilde:245,XK_odiaeresis:246,XK_division:247,XK_oslash:248,XK_ooblique:248,XK_ugrave:249,XK_uacute:250,XK_ucircumflex:251,XK_udiaeresis:252,XK_yacute:253,XK_thorn:254,XK_ydiaeresis:255,XK_Hangul:65329,XK_Hangul_Hanja:65332,XK_Hangul_Jeonja:65336,XF86XK_ModeLock:269025025,XF86XK_MonBrightnessUp:269025026,XF86XK_MonBrightnessDown:269025027,XF86XK_KbdLightOnOff:269025028,XF86XK_KbdBrightnessUp:269025029,XF86XK_KbdBrightnessDown:269025030,XF86XK_Standby:269025040,XF86XK_AudioLowerVolume:269025041,XF86XK_AudioMute:269025042,XF86XK_AudioRaiseVolume:269025043,XF86XK_AudioPlay:269025044,XF86XK_AudioStop:269025045,XF86XK_AudioPrev:269025046,XF86XK_AudioNext:269025047,XF86XK_HomePage:269025048,XF86XK_Mail:269025049,XF86XK_Start:269025050,XF86XK_Search:269025051,XF86XK_AudioRecord:269025052,XF86XK_Calculator:269025053,XF86XK_Memo:269025054,XF86XK_ToDoList:269025055,XF86XK_Calendar:269025056,XF86XK_PowerDown:269025057,XF86XK_ContrastAdjust:269025058,XF86XK_RockerUp:269025059,XF86XK_RockerDown:269025060,XF86XK_RockerEnter:269025061,XF86XK_Back:269025062,XF86XK_Forward:269025063,XF86XK_Stop:269025064,XF86XK_Refresh:269025065,XF86XK_PowerOff:269025066,XF86XK_WakeUp:269025067,XF86XK_Eject:269025068,XF86XK_ScreenSaver:269025069,XF86XK_WWW:269025070,XF86XK_Sleep:269025071,XF86XK_Favorites:269025072,XF86XK_AudioPause:269025073,XF86XK_AudioMedia:269025074,XF86XK_MyComputer:269025075,XF86XK_VendorHome:269025076,XF86XK_LightBulb:269025077,XF86XK_Shop:269025078,XF86XK_History:269025079,XF86XK_OpenURL:269025080,XF86XK_AddFavorite:269025081,XF86XK_HotLinks:269025082,XF86XK_BrightnessAdjust:269025083,XF86XK_Finance:269025084,XF86XK_Community:269025085,XF86XK_AudioRewind:269025086,XF86XK_BackForward:269025087,XF86XK_Launch0:269025088,XF86XK_Launch1:269025089,XF86XK_Launch2:269025090,XF86XK_Launch3:269025091,XF86XK_Launch4:269025092,XF86XK_Launch5:269025093,XF86XK_Launch6:269025094,XF86XK_Launch7:269025095,XF86XK_Launch8:269025096,XF86XK_Launch9:269025097,XF86XK_LaunchA:269025098,XF86XK_LaunchB:269025099,XF86XK_LaunchC:269025100,XF86XK_LaunchD:269025101,XF86XK_LaunchE:269025102,XF86XK_LaunchF:269025103,XF86XK_ApplicationLeft:269025104,XF86XK_ApplicationRight:269025105,XF86XK_Book:269025106,XF86XK_CD:269025107,XF86XK_Calculater:269025108,XF86XK_Clear:269025109,XF86XK_Close:269025110,XF86XK_Copy:269025111,XF86XK_Cut:269025112,XF86XK_Display:269025113,XF86XK_DOS:269025114,XF86XK_Documents:269025115,XF86XK_Excel:269025116,XF86XK_Explorer:269025117,XF86XK_Game:269025118,XF86XK_Go:269025119,XF86XK_iTouch:269025120,XF86XK_LogOff:269025121,XF86XK_Market:269025122,XF86XK_Meeting:269025123,XF86XK_MenuKB:269025125,XF86XK_MenuPB:269025126,XF86XK_MySites:269025127,XF86XK_New:269025128,XF86XK_News:269025129,XF86XK_OfficeHome:269025130,XF86XK_Open:269025131,XF86XK_Option:269025132,XF86XK_Paste:269025133,XF86XK_Phone:269025134,XF86XK_Q:269025136,XF86XK_Reply:269025138,XF86XK_Reload:269025139,XF86XK_RotateWindows:269025140,XF86XK_RotationPB:269025141,XF86XK_RotationKB:269025142,XF86XK_Save:269025143,XF86XK_ScrollUp:269025144,XF86XK_ScrollDown:269025145,XF86XK_ScrollClick:269025146,XF86XK_Send:269025147,XF86XK_Spell:269025148,XF86XK_SplitScreen:269025149,XF86XK_Support:269025150,XF86XK_TaskPane:269025151,XF86XK_Terminal:269025152,XF86XK_Tools:269025153,XF86XK_Travel:269025154,XF86XK_UserPB:269025156,XF86XK_User1KB:269025157,XF86XK_User2KB:269025158,XF86XK_Video:269025159,XF86XK_WheelButton:269025160,XF86XK_Word:269025161,XF86XK_Xfer:269025162,XF86XK_ZoomIn:269025163,XF86XK_ZoomOut:269025164,XF86XK_Away:269025165,XF86XK_Messenger:269025166,XF86XK_WebCam:269025167,XF86XK_MailForward:269025168,XF86XK_Pictures:269025169,XF86XK_Music:269025170,XF86XK_Battery:269025171,XF86XK_Bluetooth:269025172,XF86XK_WLAN:269025173,XF86XK_UWB:269025174,XF86XK_AudioForward:269025175,XF86XK_AudioRepeat:269025176,XF86XK_AudioRandomPlay:269025177,XF86XK_Subtitle:269025178,XF86XK_AudioCycleTrack:269025179,XF86XK_CycleAngle:269025180,XF86XK_FrameBack:269025181,XF86XK_FrameForward:269025182,XF86XK_Time:269025183,XF86XK_Select:269025184,XF86XK_View:269025185,XF86XK_TopMenu:269025186,XF86XK_Red:269025187,XF86XK_Green:269025188,XF86XK_Yellow:269025189,XF86XK_Blue:269025190,XF86XK_Suspend:269025191,XF86XK_Hibernate:269025192,XF86XK_TouchpadToggle:269025193,XF86XK_TouchpadOn:269025200,XF86XK_TouchpadOff:269025201,XF86XK_AudioMicMute:269025202,XF86XK_Switch_VT_1:269024769,XF86XK_Switch_VT_2:269024770,XF86XK_Switch_VT_3:269024771,XF86XK_Switch_VT_4:269024772,XF86XK_Switch_VT_5:269024773,XF86XK_Switch_VT_6:269024774,XF86XK_Switch_VT_7:269024775,XF86XK_Switch_VT_8:269024776,XF86XK_Switch_VT_9:269024777,XF86XK_Switch_VT_10:269024778,XF86XK_Switch_VT_11:269024779,XF86XK_Switch_VT_12:269024780,XF86XK_Ungrab:269024800,XF86XK_ClearGrab:269024801,XF86XK_Next_VMode:269024802,XF86XK_Prev_VMode:269024803,XF86XK_LogWindowTree:269024804,XF86XK_LogGrabInfo:269024805};const cn={256:960,257:992,258:451,259:483,260:417,261:433,262:454,263:486,264:710,265:742,266:709,267:741,268:456,269:488,270:463,271:495,272:464,273:496,274:938,275:954,278:972,279:1004,280:458,281:490,282:460,283:492,284:728,285:760,286:683,287:699,288:725,289:757,290:939,291:955,292:678,293:694,294:673,295:689,296:933,297:949,298:975,299:1007,302:967,303:999,304:681,305:697,308:684,309:700,310:979,311:1011,312:930,313:453,314:485,315:934,316:950,317:421,318:437,321:419,322:435,323:465,324:497,325:977,326:1009,327:466,328:498,330:957,331:959,332:978,333:1010,336:469,337:501,338:5052,339:5053,340:448,341:480,342:931,343:947,344:472,345:504,346:422,347:438,348:734,349:766,350:426,351:442,352:425,353:441,354:478,355:510,356:427,357:443,358:940,359:956,360:989,361:1021,362:990,363:1022,364:733,365:765,366:473,367:505,368:475,369:507,370:985,371:1017,376:5054,377:428,378:444,379:431,380:447,381:430,382:446,402:2294,466:16777681,711:439,728:418,729:511,731:434,733:445,901:1966,902:1953,904:1954,905:1955,906:1956,908:1959,910:1960,911:1963,912:1974,913:1985,914:1986,915:1987,916:1988,917:1989,918:1990,919:1991,920:1992,921:1993,922:1994,923:1995,924:1996,925:1997,926:1998,927:1999,928:2e3,929:2001,931:2002,932:2004,933:2005,934:2006,935:2007,936:2008,937:2009,938:1957,939:1961,940:1969,941:1970,942:1971,943:1972,944:1978,945:2017,946:2018,947:2019,948:2020,949:2021,950:2022,951:2023,952:2024,953:2025,954:2026,955:2027,956:2028,957:2029,958:2030,959:2031,960:2032,961:2033,962:2035,963:2034,964:2036,965:2037,966:2038,967:2039,968:2040,969:2041,970:1973,971:1977,972:1975,973:1976,974:1979,1025:1715,1026:1713,1027:1714,1028:1716,1029:1717,1030:1718,1031:1719,1032:1720,1033:1721,1034:1722,1035:1723,1036:1724,1038:1726,1039:1727,1040:1761,1041:1762,1042:1783,1043:1767,1044:1764,1045:1765,1046:1782,1047:1786,1048:1769,1049:1770,1050:1771,1051:1772,1052:1773,1053:1774,1054:1775,1055:1776,1056:1778,1057:1779,1058:1780,1059:1781,1060:1766,1061:1768,1062:1763,1063:1790,1064:1787,1065:1789,1066:1791,1067:1785,1068:1784,1069:1788,1070:1760,1071:1777,1072:1729,1073:1730,1074:1751,1075:1735,1076:1732,1077:1733,1078:1750,1079:1754,1080:1737,1081:1738,1082:1739,1083:1740,1084:1741,1085:1742,1086:1743,1087:1744,1088:1746,1089:1747,1090:1748,1091:1749,1092:1734,1093:1736,1094:1731,1095:1758,1096:1755,1097:1757,1098:1759,1099:1753,1100:1752,1101:1756,1102:1728,1103:1745,1105:1699,1106:1697,1107:1698,1108:1700,1109:1701,1110:1702,1111:1703,1112:1704,1113:1705,1114:1706,1115:1707,1116:1708,1118:1710,1119:1711,1168:1725,1169:1709,1488:3296,1489:3297,1490:3298,1491:3299,1492:3300,1493:3301,1494:3302,1495:3303,1496:3304,1497:3305,1498:3306,1499:3307,1500:3308,1501:3309,1502:3310,1503:3311,1504:3312,1505:3313,1506:3314,1507:3315,1508:3316,1509:3317,1510:3318,1511:3319,1512:3320,1513:3321,1514:3322,1548:1452,1563:1467,1567:1471,1569:1473,1570:1474,1571:1475,1572:1476,1573:1477,1574:1478,1575:1479,1576:1480,1577:1481,1578:1482,1579:1483,1580:1484,1581:1485,1582:1486,1583:1487,1584:1488,1585:1489,1586:1490,1587:1491,1588:1492,1589:1493,1590:1494,1591:1495,1592:1496,1593:1497,1594:1498,1600:1504,1601:1505,1602:1506,1603:1507,1604:1508,1605:1509,1606:1510,1607:1511,1608:1512,1609:1513,1610:1514,1611:1515,1612:1516,1613:1517,1614:1518,1615:1519,1616:1520,1617:1521,1618:1522,3585:3489,3586:3490,3587:3491,3588:3492,3589:3493,3590:3494,3591:3495,3592:3496,3593:3497,3594:3498,3595:3499,3596:3500,3597:3501,3598:3502,3599:3503,3600:3504,3601:3505,3602:3506,3603:3507,3604:3508,3605:3509,3606:3510,3607:3511,3608:3512,3609:3513,3610:3514,3611:3515,3612:3516,3613:3517,3614:3518,3615:3519,3616:3520,3617:3521,3618:3522,3619:3523,3620:3524,3621:3525,3622:3526,3623:3527,3624:3528,3625:3529,3626:3530,3627:3531,3628:3532,3629:3533,3630:3534,3631:3535,3632:3536,3633:3537,3634:3538,3635:3539,3636:3540,3637:3541,3638:3542,3639:3543,3640:3544,3641:3545,3642:3546,3647:3551,3648:3552,3649:3553,3650:3554,3651:3555,3652:3556,3653:3557,3654:3558,3655:3559,3656:3560,3657:3561,3658:3562,3659:3563,3660:3564,3661:3565,3664:3568,3665:3569,3666:3570,3667:3571,3668:3572,3669:3573,3670:3574,3671:3575,3672:3576,3673:3577,8194:2722,8195:2721,8196:2723,8197:2724,8199:2725,8200:2726,8201:2727,8202:2728,8210:2747,8211:2730,8212:2729,8213:1967,8215:3295,8216:2768,8217:2769,8218:2813,8220:2770,8221:2771,8222:2814,8224:2801,8225:2802,8226:2790,8229:2735,8230:2734,8240:2773,8242:2774,8243:2775,8248:2812,8254:1150,8361:3839,8364:8364,8453:2744,8470:1712,8471:2811,8478:2772,8482:2761,8531:2736,8532:2737,8533:2738,8534:2739,8535:2740,8536:2741,8537:2742,8538:2743,8539:2755,8540:2756,8541:2757,8542:2758,8592:2299,8593:2300,8594:2301,8595:2302,8658:2254,8660:2253,8706:2287,8711:2245,8728:3018,8730:2262,8733:2241,8734:2242,8743:2270,8744:2271,8745:2268,8746:2269,8747:2239,8756:2240,8764:2248,8771:2249,8773:16785992,8800:2237,8801:2255,8804:2236,8805:2238,8834:2266,8835:2267,8866:3068,8867:3036,8868:3010,8869:3022,8968:3027,8970:3012,8981:2810,8992:2212,8993:2213,9109:3020,9115:2219,9117:2220,9118:2221,9120:2222,9121:2215,9123:2216,9124:2217,9126:2218,9128:2223,9132:2224,9143:2209,9146:2543,9147:2544,9148:2546,9149:2547,9225:2530,9226:2533,9227:2537,9228:2531,9229:2532,9251:2732,9252:2536,9472:2211,9474:2214,9484:2210,9488:2539,9492:2541,9496:2538,9500:2548,9508:2549,9516:2551,9524:2550,9532:2542,9618:2529,9642:2791,9643:2785,9644:2779,9645:2786,9646:2783,9647:2767,9650:2792,9651:2787,9654:2781,9655:2765,9660:2793,9661:2788,9664:2780,9665:2764,9670:2528,9675:2766,9679:2782,9702:2784,9734:2789,9742:2809,9747:2762,9756:2794,9758:2795,9792:2808,9794:2807,9827:2796,9829:2798,9830:2797,9837:2806,9839:2805,10003:2803,10007:2804,10013:2777,10016:2800,10216:2748,10217:2750,12289:1188,12290:1185,12300:1186,12301:1187,12443:1246,12444:1247,12449:1191,12450:1201,12451:1192,12452:1202,12453:1193,12454:1203,12455:1194,12456:1204,12457:1195,12458:1205,12459:1206,12461:1207,12463:1208,12465:1209,12467:1210,12469:1211,12471:1212,12473:1213,12475:1214,12477:1215,12479:1216,12481:1217,12483:1199,12484:1218,12486:1219,12488:1220,12490:1221,12491:1222,12492:1223,12493:1224,12494:1225,12495:1226,12498:1227,12501:1228,12504:1229,12507:1230,12510:1231,12511:1232,12512:1233,12513:1234,12514:1235,12515:1196,12516:1236,12517:1197,12518:1237,12519:1198,12520:1238,12521:1239,12522:1240,12523:1241,12524:1242,12525:1243,12527:1244,12530:1190,12531:1245,12539:1189,12540:1200};var un={lookup(e){if(e>=32&&e<=255)return e;const t=cn[e];return void 0!==t?t:16777216|e}},dn={8:"Backspace",9:"Tab",10:"NumpadClear",12:"Numpad5",13:"Enter",16:"ShiftLeft",17:"ControlLeft",18:"AltLeft",19:"Pause",20:"CapsLock",21:"Lang1",25:"Lang2",27:"Escape",28:"Convert",29:"NonConvert",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",41:"Select",44:"PrintScreen",45:"Insert",46:"Delete",47:"Help",48:"Digit0",49:"Digit1",50:"Digit2",51:"Digit3",52:"Digit4",53:"Digit5",54:"Digit6",55:"Digit7",56:"Digit8",57:"Digit9",91:"MetaLeft",92:"MetaRight",93:"ContextMenu",95:"Sleep",96:"Numpad0",97:"Numpad1",98:"Numpad2",99:"Numpad3",100:"Numpad4",101:"Numpad5",102:"Numpad6",103:"Numpad7",104:"Numpad8",105:"Numpad9",106:"NumpadMultiply",107:"NumpadAdd",108:"NumpadDecimal",109:"NumpadSubtract",110:"NumpadDecimal",111:"NumpadDivide",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",124:"F13",125:"F14",126:"F15",127:"F16",128:"F17",129:"F18",130:"F19",131:"F20",132:"F21",133:"F22",134:"F23",135:"F24",144:"NumLock",145:"ScrollLock",166:"BrowserBack",167:"BrowserForward",168:"BrowserRefresh",169:"BrowserStop",170:"BrowserSearch",171:"BrowserFavorites",172:"BrowserHome",173:"AudioVolumeMute",174:"AudioVolumeDown",175:"AudioVolumeUp",176:"MediaTrackNext",177:"MediaTrackPrevious",178:"MediaStop",179:"MediaPlayPause",180:"LaunchMail",181:"MediaSelect",182:"LaunchApp1",183:"LaunchApp2",225:"AltRight"},hn={Backspace:"Backspace",AltLeft:"Alt",AltRight:"Alt",CapsLock:"CapsLock",ContextMenu:"ContextMenu",ControlLeft:"Control",ControlRight:"Control",Enter:"Enter",MetaLeft:"Meta",MetaRight:"Meta",ShiftLeft:"Shift",ShiftRight:"Shift",Tab:"Tab",Delete:"Delete",End:"End",Help:"Help",Home:"Home",Insert:"Insert",PageDown:"PageDown",PageUp:"PageUp",ArrowDown:"ArrowDown",ArrowLeft:"ArrowLeft",ArrowRight:"ArrowRight",ArrowUp:"ArrowUp",NumLock:"NumLock",NumpadBackspace:"Backspace",NumpadClear:"Clear",Escape:"Escape",F1:"F1",F2:"F2",F3:"F3",F4:"F4",F5:"F5",F6:"F6",F7:"F7",F8:"F8",F9:"F9",F10:"F10",F11:"F11",F12:"F12",F13:"F13",F14:"F14",F15:"F15",F16:"F16",F17:"F17",F18:"F18",F19:"F19",F20:"F20",F21:"F21",F22:"F22",F23:"F23",F24:"F24",F25:"F25",F26:"F26",F27:"F27",F28:"F28",F29:"F29",F30:"F30",F31:"F31",F32:"F32",F33:"F33",F34:"F34",F35:"F35",PrintScreen:"PrintScreen",ScrollLock:"ScrollLock",Pause:"Pause",BrowserBack:"BrowserBack",BrowserFavorites:"BrowserFavorites",BrowserForward:"BrowserForward",BrowserHome:"BrowserHome",BrowserRefresh:"BrowserRefresh",BrowserSearch:"BrowserSearch",BrowserStop:"BrowserStop",Eject:"Eject",LaunchApp1:"LaunchMyComputer",LaunchApp2:"LaunchCalendar",LaunchMail:"LaunchMail",MediaPlayPause:"MediaPlay",MediaStop:"MediaStop",MediaTrackNext:"MediaTrackNext",MediaTrackPrevious:"MediaTrackPrevious",Power:"Power",Sleep:"Sleep",AudioVolumeDown:"AudioVolumeDown",AudioVolumeMute:"AudioVolumeMute",AudioVolumeUp:"AudioVolumeUp",WakeUp:"WakeUp"};const pn={};function fn(e,t){if(void 0===t)throw new Error('Undefined keysym for key "'+e+'"');if(e in pn)throw new Error('Duplicate entry for key "'+e+'"');pn[e]=[t,t,t,t]}function mn(e,t,n){if(void 0===t)throw new Error('Undefined keysym for key "'+e+'"');if(void 0===n)throw new Error('Undefined keysym for key "'+e+'"');if(e in pn)throw new Error('Duplicate entry for key "'+e+'"');pn[e]=[t,t,n,t]}function gn(e,t,n){if(void 0===t)throw new Error('Undefined keysym for key "'+e+'"');if(void 0===n)throw new Error('Undefined keysym for key "'+e+'"');if(e in pn)throw new Error('Duplicate entry for key "'+e+'"');pn[e]=[t,t,t,n]}mn("Alt",ln.XK_Alt_L,ln.XK_Alt_R),fn("AltGraph",ln.XK_ISO_Level3_Shift),fn("CapsLock",ln.XK_Caps_Lock),mn("Control",ln.XK_Control_L,ln.XK_Control_R),mn("Meta",ln.XK_Super_L,ln.XK_Super_R),fn("NumLock",ln.XK_Num_Lock),fn("ScrollLock",ln.XK_Scroll_Lock),mn("Shift",ln.XK_Shift_L,ln.XK_Shift_R),gn("Enter",ln.XK_Return,ln.XK_KP_Enter),fn("Tab",ln.XK_Tab),gn(" ",ln.XK_space,ln.XK_KP_Space),gn("ArrowDown",ln.XK_Down,ln.XK_KP_Down),gn("ArrowUp",ln.XK_Up,ln.XK_KP_Up),gn("ArrowLeft",ln.XK_Left,ln.XK_KP_Left),gn("ArrowRight",ln.XK_Right,ln.XK_KP_Right),gn("End",ln.XK_End,ln.XK_KP_End),gn("Home",ln.XK_Home,ln.XK_KP_Home),gn("PageDown",ln.XK_Next,ln.XK_KP_Next),gn("PageUp",ln.XK_Prior,ln.XK_KP_Prior),fn("Backspace",ln.XK_BackSpace),gn("Clear",ln.XK_Clear,ln.XK_KP_Begin),fn("Copy",ln.XF86XK_Copy),fn("Cut",ln.XF86XK_Cut),gn("Delete",ln.XK_Delete,ln.XK_KP_Delete),gn("Insert",ln.XK_Insert,ln.XK_KP_Insert),fn("Paste",ln.XF86XK_Paste),fn("Redo",ln.XK_Redo),fn("Undo",ln.XK_Undo),fn("Cancel",ln.XK_Cancel),fn("ContextMenu",ln.XK_Menu),fn("Escape",ln.XK_Escape),fn("Execute",ln.XK_Execute),fn("Find",ln.XK_Find),fn("Help",ln.XK_Help),fn("Pause",ln.XK_Pause),fn("Select",ln.XK_Select),fn("ZoomIn",ln.XF86XK_ZoomIn),fn("ZoomOut",ln.XF86XK_ZoomOut),fn("BrightnessDown",ln.XF86XK_MonBrightnessDown),fn("BrightnessUp",ln.XF86XK_MonBrightnessUp),fn("Eject",ln.XF86XK_Eject),fn("LogOff",ln.XF86XK_LogOff),fn("Power",ln.XF86XK_PowerOff),fn("PowerOff",ln.XF86XK_PowerDown),fn("PrintScreen",ln.XK_Print),fn("Hibernate",ln.XF86XK_Hibernate),fn("Standby",ln.XF86XK_Standby),fn("WakeUp",ln.XF86XK_WakeUp),fn("AllCandidates",ln.XK_MultipleCandidate),fn("Alphanumeric",ln.XK_Eisu_Shift),fn("CodeInput",ln.XK_Codeinput),fn("Compose",ln.XK_Multi_key),fn("Convert",ln.XK_Henkan),fn("GroupFirst",ln.XK_ISO_First_Group),fn("GroupLast",ln.XK_ISO_Last_Group),fn("GroupNext",ln.XK_ISO_Next_Group),fn("GroupPrevious",ln.XK_ISO_Prev_Group),fn("NonConvert",ln.XK_Muhenkan),fn("PreviousCandidate",ln.XK_PreviousCandidate),fn("SingleCandidate",ln.XK_SingleCandidate),fn("HangulMode",ln.XK_Hangul),fn("HanjaMode",ln.XK_Hangul_Hanja),fn("JunjuaMode",ln.XK_Hangul_Jeonja),fn("Eisu",ln.XK_Eisu_toggle),fn("Hankaku",ln.XK_Hankaku),fn("Hiragana",ln.XK_Hiragana),fn("HiraganaKatakana",ln.XK_Hiragana_Katakana),fn("KanaMode",ln.XK_Kana_Shift),fn("KanjiMode",ln.XK_Kanji),fn("Katakana",ln.XK_Katakana),fn("Romaji",ln.XK_Romaji),fn("Zenkaku",ln.XK_Zenkaku),fn("ZenkakuHanaku",ln.XK_Zenkaku_Hankaku),fn("F1",ln.XK_F1),fn("F2",ln.XK_F2),fn("F3",ln.XK_F3),fn("F4",ln.XK_F4),fn("F5",ln.XK_F5),fn("F6",ln.XK_F6),fn("F7",ln.XK_F7),fn("F8",ln.XK_F8),fn("F9",ln.XK_F9),fn("F10",ln.XK_F10),fn("F11",ln.XK_F11),fn("F12",ln.XK_F12),fn("F13",ln.XK_F13),fn("F14",ln.XK_F14),fn("F15",ln.XK_F15),fn("F16",ln.XK_F16),fn("F17",ln.XK_F17),fn("F18",ln.XK_F18),fn("F19",ln.XK_F19),fn("F20",ln.XK_F20),fn("F21",ln.XK_F21),fn("F22",ln.XK_F22),fn("F23",ln.XK_F23),fn("F24",ln.XK_F24),fn("F25",ln.XK_F25),fn("F26",ln.XK_F26),fn("F27",ln.XK_F27),fn("F28",ln.XK_F28),fn("F29",ln.XK_F29),fn("F30",ln.XK_F30),fn("F31",ln.XK_F31),fn("F32",ln.XK_F32),fn("F33",ln.XK_F33),fn("F34",ln.XK_F34),fn("F35",ln.XK_F35),fn("Close",ln.XF86XK_Close),fn("MailForward",ln.XF86XK_MailForward),fn("MailReply",ln.XF86XK_Reply),fn("MailSend",ln.XF86XK_Send),fn("MediaFastForward",ln.XF86XK_AudioForward),fn("MediaPause",ln.XF86XK_AudioPause),fn("MediaPlay",ln.XF86XK_AudioPlay),fn("MediaRecord",ln.XF86XK_AudioRecord),fn("MediaRewind",ln.XF86XK_AudioRewind),fn("MediaStop",ln.XF86XK_AudioStop),fn("MediaTrackNext",ln.XF86XK_AudioNext),fn("MediaTrackPrevious",ln.XF86XK_AudioPrev),fn("New",ln.XF86XK_New),fn("Open",ln.XF86XK_Open),fn("Print",ln.XK_Print),fn("Save",ln.XF86XK_Save),fn("SpellCheck",ln.XF86XK_Spell),fn("AudioVolumeDown",ln.XF86XK_AudioLowerVolume),fn("AudioVolumeUp",ln.XF86XK_AudioRaiseVolume),fn("AudioVolumeMute",ln.XF86XK_AudioMute),fn("MicrophoneVolumeMute",ln.XF86XK_AudioMicMute),fn("LaunchApplication1",ln.XF86XK_MyComputer),fn("LaunchApplication2",ln.XF86XK_Calculator),fn("LaunchCalendar",ln.XF86XK_Calendar),fn("LaunchMail",ln.XF86XK_Mail),fn("LaunchMediaPlayer",ln.XF86XK_AudioMedia),fn("LaunchMusicPlayer",ln.XF86XK_Music),fn("LaunchPhone",ln.XF86XK_Phone),fn("LaunchScreenSaver",ln.XF86XK_ScreenSaver),fn("LaunchSpreadsheet",ln.XF86XK_Excel),fn("LaunchWebBrowser",ln.XF86XK_WWW),fn("LaunchWebCam",ln.XF86XK_WebCam),fn("LaunchWordProcessor",ln.XF86XK_Word),fn("BrowserBack",ln.XF86XK_Back),fn("BrowserFavorites",ln.XF86XK_Favorites),fn("BrowserForward",ln.XF86XK_Forward),fn("BrowserHome",ln.XF86XK_HomePage),fn("BrowserRefresh",ln.XF86XK_Refresh),fn("BrowserSearch",ln.XF86XK_Search),fn("BrowserStop",ln.XF86XK_Stop),fn("Dimmer",ln.XF86XK_BrightnessAdjust),fn("MediaAudioTrack",ln.XF86XK_AudioCycleTrack),fn("RandomToggle",ln.XF86XK_AudioRandomPlay),fn("SplitScreenToggle",ln.XF86XK_SplitScreen),fn("Subtitle",ln.XF86XK_Subtitle),fn("VideoModeNext",ln.XF86XK_Next_VMode),gn("=",ln.XK_equal,ln.XK_KP_Equal),gn("+",ln.XK_plus,ln.XK_KP_Add),gn("-",ln.XK_minus,ln.XK_KP_Subtract),gn("*",ln.XK_asterisk,ln.XK_KP_Multiply),gn("/",ln.XK_slash,ln.XK_KP_Divide),gn(".",ln.XK_period,ln.XK_KP_Decimal),gn(",",ln.XK_comma,ln.XK_KP_Separator),gn("0",ln.XK_0,ln.XK_KP_0),gn("1",ln.XK_1,ln.XK_KP_1),gn("2",ln.XK_2,ln.XK_KP_2),gn("3",ln.XK_3,ln.XK_KP_3),gn("4",ln.XK_4,ln.XK_KP_4),gn("5",ln.XK_5,ln.XK_KP_5),gn("6",ln.XK_6,ln.XK_KP_6),gn("7",ln.XK_7,ln.XK_KP_7),gn("8",ln.XK_8,ln.XK_KP_8),gn("9",ln.XK_9,ln.XK_KP_9);var vn=pn,yn=o(9776);let bn="warn",_n=()=>{},wn=()=>{},En=()=>{},Sn=()=>{};function xn(e){if("undefined"===typeof e?e=bn:bn=e,_n=wn=En=Sn=()=>{},"undefined"!==typeof window.console)switch(e){case"debug":_n=yn.debug.bind(window.console);case"info":wn=yn.info.bind(window.console);case"warn":En=yn.warn.bind(window.console);case"error":Sn=yn.error.bind(window.console);case"none":break;default:throw new window.Error("invalid logging type '"+e+"'")}}xn();let kn="ontouchstart"in document.documentElement||void 0!==document.ontouchstart||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.addEventListener("touchstart",(function e(){kn=!0,window.removeEventListener("touchstart",e,!1)}),!1);let An=10*(window.devicePixelRatio||1),Nn=!1;try{const e=document.createElement("canvas");e.style.cursor='url("data:image/x-icon;base64,AAACAAEACAgAAAIAAgA4AQAAFgAAACgAAAAIAAAAEAAAAAEAIAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAD/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////AAAAAAAAAAAAAAAAAAAAAA==") 2 2, default',0===e.style.cursor.indexOf("url")?(wn("Data URI scheme cursor supported"),Nn=!0):En("Data URI scheme cursor not supported")}catch(hP){Sn("Data URI scheme cursor test exception: "+hP)}const Tn=Nn;let Cn=!1;try{new ImageData(new Uint8ClampedArray(4),1,1),Cn=!0}catch(pP){}const Rn=Cn;let On=!0;try{const e=document.createElement("div");e.style.visibility="hidden",e.style.overflow="scroll",document.body.appendChild(e);const t=document.createElement("div");e.appendChild(t);const n=e.offsetWidth-t.offsetWidth;e.parentNode.removeChild(e),On=0!=n}catch(hP){Sn("Scrollbar test exception: "+hP)}function In(){return navigator&&!!/mac/i.exec(navigator.platform)}function Dn(){return navigator&&!!/win/i.exec(navigator.platform)}function Ln(){return navigator&&(!!/ipad/i.exec(navigator.platform)||!!/iphone/i.exec(navigator.platform)||!!/ipod/i.exec(navigator.platform))}function Pn(){return navigator&&!!/trident/i.exec(navigator.userAgent)}function Mn(){return navigator&&!!/edge/i.exec(navigator.userAgent)}function Fn(){return navigator&&!!/firefox/i.exec(navigator.userAgent)}function Bn(e){if(e.code){switch(e.code){case"OSLeft":return"MetaLeft";case"OSRight":return"MetaRight"}return e.code}if("keypress"!==e.type&&e.keyCode in dn){let t=dn[e.keyCode];if(In()&&"ContextMenu"===t&&(t="MetaRight"),2===e.location)switch(t){case"ShiftLeft":return"ShiftRight";case"ControlLeft":return"ControlRight";case"AltLeft":return"AltRight"}if(3===e.location)switch(t){case"Delete":return"NumpadDecimal";case"Insert":return"Numpad0";case"End":return"Numpad1";case"ArrowDown":return"Numpad2";case"PageDown":return"Numpad3";case"ArrowLeft":return"Numpad4";case"ArrowRight":return"Numpad6";case"Home":return"Numpad7";case"ArrowUp":return"Numpad8";case"PageUp":return"Numpad9";case"Enter":return"NumpadEnter"}return t}return"Unidentified"}function $n(e){if(void 0!==e.key){switch(e.key){case"Spacebar":return" ";case"Esc":return"Escape";case"Scroll":return"ScrollLock";case"Win":return"Meta";case"Apps":return"ContextMenu";case"Up":return"ArrowUp";case"Left":return"ArrowLeft";case"Right":return"ArrowRight";case"Down":return"ArrowDown";case"Del":return"Delete";case"Divide":return"/";case"Multiply":return"*";case"Subtract":return"-";case"Add":return"+";case"Decimal":return e.char}switch(e.key){case"OS":return"Meta";case"LaunchMyComputer":return"LaunchApplication1";case"LaunchCalculator":return"LaunchApplication2"}switch(e.key){case"UIKeyInputUpArrow":return"ArrowUp";case"UIKeyInputDownArrow":return"ArrowDown";case"UIKeyInputLeftArrow":return"ArrowLeft";case"UIKeyInputRightArrow":return"ArrowRight";case"UIKeyInputEscape":return"Escape"}if("\0"===e.key&&"NumpadDecimal"===e.code)return"Delete";if(!Pn()&&!Mn())return e.key;if(1!==e.key.length&&"Unidentified"!==e.key)return e.key}const t=Bn(e);return t in hn?hn[t]:e.charCode?String.fromCharCode(e.charCode):"Unidentified"}function jn(e){const t=$n(e);if("Unidentified"===t)return null;if(t in vn){let n=e.location;if("Meta"===t&&0===n&&(n=2),"Clear"===t&&3===n){let t=Bn(e);"NumLock"===t&&(n=0)}if((void 0===n||n>3)&&(n=0),"Meta"===t){let t=Bn(e);if("AltLeft"===t)return ln.XK_Meta_L;if("AltRight"===t)return ln.XK_Meta_R}if("Clear"===t){let t=Bn(e);if("NumLock"===t)return ln.XK_Num_Lock}return vn[t][n]}if(1!==t.length)return null;const n=t.charCodeAt();return n?un.lookup(n):null}const Un={key:0},Vn={class:"main-layout error"},Kn={class:"text-center"},Hn={class:"text-secondary mt-20"},Gn={key:1},zn={class:"main-layout"},Xn={class:"text-center"},qn={class:"text-secondary mt-20"},Wn={ref:"view"};function Yn(e,t,n,r,o,a){const s=(0,i.resolveComponent)("BrandImage");return(0,i.openBlock)(),(0,i.createElementBlock)("div",null,[o.connected&&o.disconnected?((0,i.openBlock)(),(0,i.createElementBlock)("div",Un,[(0,i.createElementVNode)("main",Vn,[(0,i.createElementVNode)("div",Kn,[(0,i.createVNode)(s,{"file-name":"error-desert-landscape.svg",width:"900",height:"300"}),(0,i.createElementVNode)("h1",null,(0,i.toDisplayString)(e.t("generic.notification.title.warning")),1),(0,i.createElementVNode)("h2",Hn,(0,i.toDisplayString)(e.t("vncConsole.error.message")),1)])])])):(0,i.createCommentVNode)("",!0),o.reconnecting?((0,i.openBlock)(),(0,i.createElementBlock)("div",Gn,[(0,i.createElementVNode)("main",zn,[(0,i.createElementVNode)("div",Xn,[(0,i.createElementVNode)("h2",qn,(0,i.toDisplayString)(e.t("vncConsole.reconnecting.message"))+":"+(0,i.toDisplayString)(o.retryTimes)+" of "+(0,i.toDisplayString)(o.maximumRetryTimes),1)])])])):(0,i.createCommentVNode)("",!0),(0,i.createElementVNode)("div",Wn,null,512)])}function Qn(e){return e>>>0}function Jn(e){return 0|e}function Zn(e,t=!1){try{return decodeURIComponent(escape(e))}catch(Xs){if(Xs instanceof URIError&&t)return e;throw Xs}}function er(e){return unescape(encodeURIComponent(e))}function tr(e,t,n){const r=n.getBoundingClientRect();let i={x:0,y:0};return e<r.left?i.x=0:e>=r.right?i.x=r.width-1:i.x=e-r.left,t<r.top?i.y=0:t>=r.bottom?i.y=r.height-1:i.y=t-r.top,i}function nr(e){e.stopPropagation(),e.preventDefault()}let rr=!1,ir=null;function or(e){if(rr)return;const t=new e.constructor(e.type,e);rr=!0,document.captureElement?document.captureElement.dispatchEvent(t):ir.dispatchEvent(t),rr=!1,e.stopPropagation(),t.defaultPrevented&&e.preventDefault(),"mouseup"===e.type&&cr()}function ar(){const e=document.getElementById("noVNC_mouse_capture_elem");e.style.cursor=window.getComputedStyle(document.captureElement).cursor}document.captureElement=null;const sr=new MutationObserver(ar);function lr(e){if(e.setCapture)e.setCapture(),document.captureElement=e,e.addEventListener("mouseup",cr);else{cr();let t=document.getElementById("noVNC_mouse_capture_elem");null===t&&(t=document.createElement("div"),t.id="noVNC_mouse_capture_elem",t.style.position="fixed",t.style.top="0px",t.style.left="0px",t.style.width="100%",t.style.height="100%",t.style.zIndex=1e4,t.style.display="none",document.body.appendChild(t),t.addEventListener("contextmenu",or),t.addEventListener("mousemove",or),t.addEventListener("mouseup",or)),document.captureElement=e,sr.observe(e,{attributes:!0}),ar(),t.style.display="",window.addEventListener("mousemove",or),window.addEventListener("mouseup",or)}}function cr(){if(document.releaseCapture)document.releaseCapture(),document.captureElement=null;else{if(!document.captureElement)return;ir=document.captureElement,document.captureElement=null,sr.disconnect();const e=document.getElementById("noVNC_mouse_capture_elem");e.style.display="none",window.removeEventListener("mousemove",or),window.removeEventListener("mouseup",or)}}class ur{constructor(){this._listeners=new Map}addEventListener(e,t){this._listeners.has(e)||this._listeners.set(e,new Set),this._listeners.get(e).add(t)}removeEventListener(e,t){this._listeners.has(e)&&this._listeners.get(e).delete(t)}dispatchEvent(e){return!this._listeners.has(e.type)||(this._listeners.get(e.type).forEach((t=>t.call(this,e))),!e.defaultPrevented)}}var dr={toBase64Table:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".split(""),base64Pad:"=",encode(e){let t="";const n=e.length,r=n%3;for(let o=0;o<n-2;o+=3)t+=this.toBase64Table[e[o]>>2],t+=this.toBase64Table[((3&e[o])<<4)+(e[o+1]>>4)],t+=this.toBase64Table[((15&e[o+1])<<2)+(e[o+2]>>6)],t+=this.toBase64Table[63&e[o+2]];const i=n-r;return 2===r?(t+=this.toBase64Table[e[i]>>2],t+=this.toBase64Table[((3&e[i])<<4)+(e[i+1]>>4)],t+=this.toBase64Table[(15&e[i+1])<<2],t+=this.toBase64Table[64]):1===r&&(t+=this.toBase64Table[e[i]>>2],t+=this.toBase64Table[(3&e[i])<<4],t+=this.toBase64Table[64],t+=this.toBase64Table[64]),t},toBinaryTable:[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,0,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,-1,-1,-1,-1,-1],decode(e,t=0){let n=e.indexOf("=")-t;n<0&&(n=e.length-t);const r=3*(n>>2)+Math.floor(n%4/1.5),i=new Array(r);let o=0,a=0;for(let s=0,l=t;l<e.length;l++){const t=this.toBinaryTable[127&e.charCodeAt(l)],n=e.charAt(l)===this.base64Pad;-1!==t?(a=a<<6|t,o+=6,o>=8&&(o-=8,n||(i[s++]=a>>o&255),a&=(1<<o)-1)):Sn("Illegal character code "+e.charCodeAt(l)+" at position "+l)}if(o){const e=new Error("Corrupted base64 string");throw e.name="Base64-Error",e}return i}};class hr{constructor(e){if(this._drawCtx=null,this._renderQ=[],this._flushing=!1,this._fbWidth=0,this._fbHeight=0,this._prevDrawStyle="",this._tile=null,this._tile16x16=null,this._tileX=0,this._tileY=0,_n(">> Display.constructor"),this._target=e,!this._target)throw new Error("Target must be set");if("string"===typeof this._target)throw new Error("target must be a DOM element");if(!this._target.getContext)throw new Error("no getContext method");if(this._targetCtx=this._target.getContext("2d"),this._viewportLoc={x:0,y:0,w:this._target.width,h:this._target.height},this._backbuffer=document.createElement("canvas"),this._drawCtx=this._backbuffer.getContext("2d"),this._damageBounds={left:0,top:0,right:this._backbuffer.width,bottom:this._backbuffer.height},_n("User Agent: "+navigator.userAgent),!("createImageData"in this._drawCtx))throw new Error("Canvas does not support createImageData");this._tile16x16=this._drawCtx.createImageData(16,16),_n("<< Display.constructor"),this._scale=1,this._clipViewport=!1,this.onflush=()=>{}}get scale(){return this._scale}set scale(e){this._rescale(e)}get clipViewport(){return this._clipViewport}set clipViewport(e){this._clipViewport=e;const t=this._viewportLoc;this.viewportChangeSize(t.w,t.h),this.viewportChangePos(0,0)}get width(){return this._fbWidth}get height(){return this._fbHeight}viewportChangePos(e,t){const n=this._viewportLoc;e=Math.floor(e),t=Math.floor(t),this._clipViewport||(e=-n.w,t=-n.h);const r=n.x+n.w-1,i=n.y+n.h-1;e<0&&n.x+e<0&&(e=-n.x),r+e>=this._fbWidth&&(e-=r+e-this._fbWidth+1),n.y+t<0&&(t=-n.y),i+t>=this._fbHeight&&(t-=i+t-this._fbHeight+1),0===e&&0===t||(_n("viewportChange deltaX: "+e+", deltaY: "+t),n.x+=e,n.y+=t,this._damage(n.x,n.y,n.w,n.h),this.flip())}viewportChangeSize(e,t){this._clipViewport&&"undefined"!==typeof e&&"undefined"!==typeof t||(_n("Setting viewport to full display region"),e=this._fbWidth,t=this._fbHeight),e=Math.floor(e),t=Math.floor(t),e>this._fbWidth&&(e=this._fbWidth),t>this._fbHeight&&(t=this._fbHeight);const n=this._viewportLoc;if(n.w!==e||n.h!==t){n.w=e,n.h=t;const r=this._target;r.width=e,r.height=t,this.viewportChangePos(0,0),this._damage(n.x,n.y,n.w,n.h),this.flip(),this._rescale(this._scale)}}absX(e){return 0===this._scale?0:Jn(e/this._scale+this._viewportLoc.x)}absY(e){return 0===this._scale?0:Jn(e/this._scale+this._viewportLoc.y)}resize(e,t){this._prevDrawStyle="",this._fbWidth=e,this._fbHeight=t;const n=this._backbuffer;if(n.width!==e||n.height!==t){let r=null;n.width>0&&n.height>0&&(r=this._drawCtx.getImageData(0,0,n.width,n.height)),n.width!==e&&(n.width=e),n.height!==t&&(n.height=t),r&&this._drawCtx.putImageData(r,0,0)}const r=this._viewportLoc;this.viewportChangeSize(r.w,r.h),this.viewportChangePos(0,0)}_damage(e,t,n,r){e<this._damageBounds.left&&(this._damageBounds.left=e),t<this._damageBounds.top&&(this._damageBounds.top=t),e+n>this._damageBounds.right&&(this._damageBounds.right=e+n),t+r>this._damageBounds.bottom&&(this._damageBounds.bottom=t+r)}flip(e){if(0===this._renderQ.length||e){let e=this._damageBounds.left,t=this._damageBounds.top,n=this._damageBounds.right-e,r=this._damageBounds.bottom-t,i=e-this._viewportLoc.x,o=t-this._viewportLoc.y;i<0&&(n+=i,e-=i,i=0),o<0&&(r+=o,t-=o,o=0),i+n>this._viewportLoc.w&&(n=this._viewportLoc.w-i),o+r>this._viewportLoc.h&&(r=this._viewportLoc.h-o),n>0&&r>0&&this._targetCtx.drawImage(this._backbuffer,e,t,n,r,i,o,n,r),this._damageBounds.left=this._damageBounds.top=65535,this._damageBounds.right=this._damageBounds.bottom=0}else this._renderQPush({type:"flip"})}pending(){return this._renderQ.length>0}flush(){0===this._renderQ.length?this.onflush():this._flushing=!0}fillRect(e,t,n,r,i,o){0===this._renderQ.length||o?(this._setFillColor(i),this._drawCtx.fillRect(e,t,n,r),this._damage(e,t,n,r)):this._renderQPush({type:"fill",x:e,y:t,width:n,height:r,color:i})}copyImage(e,t,n,r,i,o,a){0===this._renderQ.length||a?(this._drawCtx.mozImageSmoothingEnabled=!1,this._drawCtx.webkitImageSmoothingEnabled=!1,this._drawCtx.msImageSmoothingEnabled=!1,this._drawCtx.imageSmoothingEnabled=!1,this._drawCtx.drawImage(this._backbuffer,e,t,i,o,n,r,i,o),this._damage(n,r,i,o)):this._renderQPush({type:"copy",oldX:e,oldY:t,x:n,y:r,width:i,height:o})}imageRect(e,t,n,r,i,o){if(0===n||0===r)return;const a=new Image;a.src="data: "+i+";base64,"+dr.encode(o),this._renderQPush({type:"img",img:a,x:e,y:t,width:n,height:r})}startTile(e,t,n,r,i){this._tileX=e,this._tileY=t,this._tile=16===n&&16===r?this._tile16x16:this._drawCtx.createImageData(n,r);const o=i[2],a=i[1],s=i[0],l=this._tile.data;for(let c=0;c<n*r*4;c+=4)l[c]=o,l[c+1]=a,l[c+2]=s,l[c+3]=255}subTile(e,t,n,r,i){const o=i[2],a=i[1],s=i[0],l=e+n,c=t+r,u=this._tile.data,d=this._tile.width;for(let h=t;h<c;h++)for(let t=e;t<l;t++){const e=4*(t+h*d);u[e]=o,u[e+1]=a,u[e+2]=s,u[e+3]=255}}finishTile(){this._drawCtx.putImageData(this._tile,this._tileX,this._tileY),this._damage(this._tileX,this._tileY,this._tile.width,this._tile.height)}blitImage(e,t,n,r,i,o,a){if(0===this._renderQ.length||a)this._bgrxImageData(e,t,n,r,i,o);else{const o=new Uint8Array(n*r*4);o.set(new Uint8Array(i.buffer,0,o.length)),this._renderQPush({type:"blit",data:o,x:e,y:t,width:n,height:r})}}blitRgbImage(e,t,n,r,i,o,a){if(0===this._renderQ.length||a)this._rgbImageData(e,t,n,r,i,o);else{const o=new Uint8Array(n*r*3);o.set(new Uint8Array(i.buffer,0,o.length)),this._renderQPush({type:"blitRgb",data:o,x:e,y:t,width:n,height:r})}}blitRgbxImage(e,t,n,r,i,o,a){if(0===this._renderQ.length||a)this._rgbxImageData(e,t,n,r,i,o);else{const o=new Uint8Array(n*r*4);o.set(new Uint8Array(i.buffer,0,o.length)),this._renderQPush({type:"blitRgbx",data:o,x:e,y:t,width:n,height:r})}}drawImage(e,t,n){this._drawCtx.drawImage(e,t,n),this._damage(t,n,e.width,e.height)}autoscale(e,t){let n;if(0===e||0===t)n=0;else{const r=this._viewportLoc,i=e/t,o=r.w/r.h;n=o>=i?e/r.w:t/r.h}this._rescale(n)}_rescale(e){this._scale=e;const t=this._viewportLoc,n=e*t.w+"px",r=e*t.h+"px";this._target.style.width===n&&this._target.style.height===r||(this._target.style.width=n,this._target.style.height=r)}_setFillColor(e){const t="rgb("+e[2]+","+e[1]+","+e[0]+")";t!==this._prevDrawStyle&&(this._drawCtx.fillStyle=t,this._prevDrawStyle=t)}_rgbImageData(e,t,n,r,i,o){const a=this._drawCtx.createImageData(n,r),s=a.data;for(let l=0,c=o;l<n*r*4;l+=4,c+=3)s[l]=i[c],s[l+1]=i[c+1],s[l+2]=i[c+2],s[l+3]=255;this._drawCtx.putImageData(a,e,t),this._damage(e,t,a.width,a.height)}_bgrxImageData(e,t,n,r,i,o){const a=this._drawCtx.createImageData(n,r),s=a.data;for(let l=0,c=o;l<n*r*4;l+=4,c+=4)s[l]=i[c+2],s[l+1]=i[c+1],s[l+2]=i[c],s[l+3]=255;this._drawCtx.putImageData(a,e,t),this._damage(e,t,a.width,a.height)}_rgbxImageData(e,t,n,r,i,o){let a;Rn?a=new ImageData(new Uint8ClampedArray(i.buffer,i.byteOffset,n*r*4),n,r):(a=this._drawCtx.createImageData(n,r),a.data.set(new Uint8ClampedArray(i.buffer,i.byteOffset,n*r*4))),this._drawCtx.putImageData(a,e,t),this._damage(e,t,a.width,a.height)}_renderQPush(e){this._renderQ.push(e),1===this._renderQ.length&&this._scanRenderQ()}_resumeRenderQ(){this.removeEventListener("load",this._noVNCDisplay._resumeRenderQ),this._noVNCDisplay._scanRenderQ()}_scanRenderQ(){let e=!0;while(e&&this._renderQ.length>0){const t=this._renderQ[0];switch(t.type){case"flip":this.flip(!0);break;case"copy":this.copyImage(t.oldX,t.oldY,t.x,t.y,t.width,t.height,!0);break;case"fill":this.fillRect(t.x,t.y,t.width,t.height,t.color,!0);break;case"blit":this.blitImage(t.x,t.y,t.width,t.height,t.data,0,!0);break;case"blitRgb":this.blitRgbImage(t.x,t.y,t.width,t.height,t.data,0,!0);break;case"blitRgbx":this.blitRgbxImage(t.x,t.y,t.width,t.height,t.data,0,!0);break;case"img":if(t.img.complete&&0!==t.img.width&&0!==t.img.height){if(t.img.width!==t.width||t.img.height!==t.height)return void Sn("Decoded image has incorrect dimensions. Got "+t.img.width+"x"+t.img.height+". Expected "+t.width+"x"+t.height+".");this.drawImage(t.img,t.x,t.y)}else t.img._noVNCDisplay=this,t.img.addEventListener("load",this._resumeRenderQ),e=!1;break}e&&this._renderQ.shift()}0===this._renderQ.length&&this._flushing&&(this._flushing=!1,this.onflush())}}function pr(e,t,n,r,i){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+r),i);else for(var o=0;o<r;o++)e[i+o]=t[n+o]}var fr=Uint8Array,mr=Uint16Array,gr=Int32Array;function vr(e,t,n,r){var i=65535&e,o=e>>>16&65535,a=0;while(0!==n){a=n>2e3?2e3:n,n-=a;do{i=i+t[r++]|0,o=o+i|0}while(--a);i%=65521,o%=65521}return i|o<<16}function yr(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}yr();var br=30,_r=12;function wr(e,t){var n,r,i,o,a,s,l,c,u,d,h,p,f,m,g,v,y,b,_,w,E,S,x,k,A;n=e.state,r=e.next_in,k=e.input,i=r+(e.avail_in-5),o=e.next_out,A=e.output,a=o-(t-e.avail_out),s=o+(e.avail_out-257),l=n.dmax,c=n.wsize,u=n.whave,d=n.wnext,h=n.window,p=n.hold,f=n.bits,m=n.lencode,g=n.distcode,v=(1<<n.lenbits)-1,y=(1<<n.distbits)-1;e:do{f<15&&(p+=k[r++]<<f,f+=8,p+=k[r++]<<f,f+=8),b=m[p&v];t:for(;;){if(_=b>>>24,p>>>=_,f-=_,_=b>>>16&255,0===_)A[o++]=65535&b;else{if(!(16&_)){if(0===(64&_)){b=m[(65535&b)+(p&(1<<_)-1)];continue t}if(32&_){n.mode=_r;break e}e.msg="invalid literal/length code",n.mode=br;break e}w=65535&b,_&=15,_&&(f<_&&(p+=k[r++]<<f,f+=8),w+=p&(1<<_)-1,p>>>=_,f-=_),f<15&&(p+=k[r++]<<f,f+=8,p+=k[r++]<<f,f+=8),b=g[p&y];n:for(;;){if(_=b>>>24,p>>>=_,f-=_,_=b>>>16&255,!(16&_)){if(0===(64&_)){b=g[(65535&b)+(p&(1<<_)-1)];continue n}e.msg="invalid distance code",n.mode=br;break e}if(E=65535&b,_&=15,f<_&&(p+=k[r++]<<f,f+=8,f<_&&(p+=k[r++]<<f,f+=8)),E+=p&(1<<_)-1,E>l){e.msg="invalid distance too far back",n.mode=br;break e}if(p>>>=_,f-=_,_=o-a,E>_){if(_=E-_,_>u&&n.sane){e.msg="invalid distance too far back",n.mode=br;break e}if(S=0,x=h,0===d){if(S+=c-_,_<w){w-=_;do{A[o++]=h[S++]}while(--_);S=o-E,x=A}}else if(d<_){if(S+=c+d-_,_-=d,_<w){w-=_;do{A[o++]=h[S++]}while(--_);if(S=0,d<w){_=d,w-=_;do{A[o++]=h[S++]}while(--_);S=o-E,x=A}}}else if(S+=d-_,_<w){w-=_;do{A[o++]=h[S++]}while(--_);S=o-E,x=A}while(w>2)A[o++]=x[S++],A[o++]=x[S++],A[o++]=x[S++],w-=3;w&&(A[o++]=x[S++],w>1&&(A[o++]=x[S++]))}else{S=o-E;do{A[o++]=A[S++],A[o++]=A[S++],A[o++]=A[S++],w-=3}while(w>2);w&&(A[o++]=A[S++],w>1&&(A[o++]=A[S++]))}break}}break}}while(r<i&&o<s);w=f>>3,r-=w,f-=w<<3,p&=(1<<f)-1,e.next_in=r,e.next_out=o,e.avail_in=r<i?i-r+5:5-(r-i),e.avail_out=o<s?s-o+257:257-(o-s),n.hold=p,n.bits=f}var Er=15,Sr=852,xr=592,kr=0,Ar=1,Nr=2,Tr=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],Cr=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],Rr=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],Or=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];function Ir(e,t,n,r,i,o,a,s){var l,c,u,d,h,p,f,m,g,v=s.bits,y=0,b=0,_=0,w=0,E=0,S=0,x=0,k=0,A=0,N=0,T=null,C=0,R=new mr(Er+1),O=new mr(Er+1),I=null,D=0;for(y=0;y<=Er;y++)R[y]=0;for(b=0;b<r;b++)R[t[n+b]]++;for(E=v,w=Er;w>=1;w--)if(0!==R[w])break;if(E>w&&(E=w),0===w)return i[o++]=20971520,i[o++]=20971520,s.bits=1,0;for(_=1;_<w;_++)if(0!==R[_])break;for(E<_&&(E=_),k=1,y=1;y<=Er;y++)if(k<<=1,k-=R[y],k<0)return-1;if(k>0&&(e===kr||1!==w))return-1;for(O[1]=0,y=1;y<Er;y++)O[y+1]=O[y]+R[y];for(b=0;b<r;b++)0!==t[n+b]&&(a[O[t[n+b]]++]=b);if(e===kr?(T=I=a,p=19):e===Ar?(T=Tr,C-=257,I=Cr,D-=257,p=256):(T=Rr,I=Or,p=-1),N=0,b=0,y=_,h=o,S=E,x=0,u=-1,A=1<<E,d=A-1,e===Ar&&A>Sr||e===Nr&&A>xr)return 1;for(;;){f=y-x,a[b]<p?(m=0,g=a[b]):a[b]>p?(m=I[D+a[b]],g=T[C+a[b]]):(m=96,g=0),l=1<<y-x,c=1<<S,_=c;do{c-=l,i[h+(N>>x)+c]=f<<24|m<<16|g}while(0!==c);l=1<<y-1;while(N&l)l>>=1;if(0!==l?(N&=l-1,N+=l):N=0,b++,0===--R[y]){if(y===w)break;y=t[n+a[b]]}if(y>E&&(N&d)!==u){0===x&&(x=E),h+=_,S=y-x,k=1<<S;while(S+x<w){if(k-=R[S+x],k<=0)break;S++,k<<=1}if(A+=1<<S,e===Ar&&A>Sr||e===Nr&&A>xr)return 1;u=N&d,i[u]=E<<24|S<<16|h-o}}return 0!==N&&(i[h+N]=y-x<<24|64<<16),s.bits=E,0}var Dr=0,Lr=1,Pr=2;const Mr=4,Fr=5,Br=6,$r=0,jr=1,Ur=2,Vr=-2,Kr=-3,Hr=-4,Gr=-5,zr=8;var Xr=1,qr=2,Wr=3,Yr=4,Qr=5,Jr=6,Zr=7,ei=8,ti=9,ni=10,ri=11,ii=12,oi=13,ai=14,si=15,li=16,ci=17,ui=18,di=19,hi=20,pi=21,fi=22,mi=23,gi=24,vi=25,yi=26,bi=27,_i=28,wi=29,Ei=30,Si=31,xi=32,ki=852,Ai=592,Ni=15,Ti=Ni;function Ci(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function Ri(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new mr(320),this.work=new mr(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function Oi(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=Xr,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new gr(ki),t.distcode=t.distdyn=new gr(Ai),t.sane=1,t.back=-1,$r):Vr}function Ii(e){var t;return e&&e.state?(t=e.state,t.wsize=0,t.whave=0,t.wnext=0,Oi(e)):Vr}function Di(e,t){var n,r;return e&&e.state?(r=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?Vr:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,Ii(e))):Vr}function Li(e,t){var n,r;return e?(r=new Ri,e.state=r,r.window=null,n=Di(e,t),n!==$r&&(e.state=null),n):Vr}function Pi(e){return Li(e,Ti)}var Mi,Fi,Bi=!0;function $i(e){if(Bi){var t;Mi=new gr(512),Fi=new gr(32),t=0;while(t<144)e.lens[t++]=8;while(t<256)e.lens[t++]=9;while(t<280)e.lens[t++]=7;while(t<288)e.lens[t++]=8;Ir(Lr,e.lens,0,288,Mi,0,e.work,{bits:9}),t=0;while(t<32)e.lens[t++]=5;Ir(Pr,e.lens,0,32,Fi,0,e.work,{bits:5}),Bi=!1}e.lencode=Mi,e.lenbits=9,e.distcode=Fi,e.distbits=5}function ji(e,t,n,r){var i,o=e.state;return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new fr(o.wsize)),r>=o.wsize?(pr(o.window,t,n-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):(i=o.wsize-o.wnext,i>r&&(i=r),pr(o.window,t,n-r,i,o.wnext),r-=i,r?(pr(o.window,t,n-r,r,0),o.wnext=r,o.whave=o.wsize):(o.wnext+=i,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=i))),0}function Ui(e,t){var n,r,i,o,a,s,l,c,u,d,h,p,f,m,g,v,y,b,_,w,E,S,x,k,A=0,N=new fr(4),T=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return Vr;n=e.state,n.mode===ii&&(n.mode=oi),a=e.next_out,i=e.output,l=e.avail_out,o=e.next_in,r=e.input,s=e.avail_in,c=n.hold,u=n.bits,d=s,h=l,S=$r;e:for(;;)switch(n.mode){case Xr:if(0===n.wrap){n.mode=oi;break}while(u<16){if(0===s)break e;s--,c+=r[o++]<<u,u+=8}if(2&n.wrap&&35615===c){n.check=0,N[0]=255&c,N[1]=c>>>8&255,n.check=yr(n.check,N,2,0),c=0,u=0,n.mode=qr;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&c)<<8)+(c>>8))%31){e.msg="incorrect header check",n.mode=Ei;break}if((15&c)!==zr){e.msg="unknown compression method",n.mode=Ei;break}if(c>>>=4,u-=4,E=8+(15&c),0===n.wbits)n.wbits=E;else if(E>n.wbits){e.msg="invalid window size",n.mode=Ei;break}n.dmax=1<<E,e.adler=n.check=1,n.mode=512&c?ni:ii,c=0,u=0;break;case qr:while(u<16){if(0===s)break e;s--,c+=r[o++]<<u,u+=8}if(n.flags=c,(255&n.flags)!==zr){e.msg="unknown compression method",n.mode=Ei;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=Ei;break}n.head&&(n.head.text=c>>8&1),512&n.flags&&(N[0]=255&c,N[1]=c>>>8&255,n.check=yr(n.check,N,2,0)),c=0,u=0,n.mode=Wr;case Wr:while(u<32){if(0===s)break e;s--,c+=r[o++]<<u,u+=8}n.head&&(n.head.time=c),512&n.flags&&(N[0]=255&c,N[1]=c>>>8&255,N[2]=c>>>16&255,N[3]=c>>>24&255,n.check=yr(n.check,N,4,0)),c=0,u=0,n.mode=Yr;case Yr:while(u<16){if(0===s)break e;s--,c+=r[o++]<<u,u+=8}n.head&&(n.head.xflags=255&c,n.head.os=c>>8),512&n.flags&&(N[0]=255&c,N[1]=c>>>8&255,n.check=yr(n.check,N,2,0)),c=0,u=0,n.mode=Qr;case Qr:if(1024&n.flags){while(u<16){if(0===s)break e;s--,c+=r[o++]<<u,u+=8}n.length=c,n.head&&(n.head.extra_len=c),512&n.flags&&(N[0]=255&c,N[1]=c>>>8&255,n.check=yr(n.check,N,2,0)),c=0,u=0}else n.head&&(n.head.extra=null);n.mode=Jr;case Jr:if(1024&n.flags&&(p=n.length,p>s&&(p=s),p&&(n.head&&(E=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),pr(n.head.extra,r,o,p,E)),512&n.flags&&(n.check=yr(n.check,r,p,o)),s-=p,o+=p,n.length-=p),n.length))break e;n.length=0,n.mode=Zr;case Zr:if(2048&n.flags){if(0===s)break e;p=0;do{E=r[o+p++],n.head&&E&&n.length<65536&&(n.head.name+=String.fromCharCode(E))}while(E&&p<s);if(512&n.flags&&(n.check=yr(n.check,r,p,o)),s-=p,o+=p,E)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=ei;case ei:if(4096&n.flags){if(0===s)break e;p=0;do{E=r[o+p++],n.head&&E&&n.length<65536&&(n.head.comment+=String.fromCharCode(E))}while(E&&p<s);if(512&n.flags&&(n.check=yr(n.check,r,p,o)),s-=p,o+=p,E)break e}else n.head&&(n.head.comment=null);n.mode=ti;case ti:if(512&n.flags){while(u<16){if(0===s)break e;s--,c+=r[o++]<<u,u+=8}if(c!==(65535&n.check)){e.msg="header crc mismatch",n.mode=Ei;break}c=0,u=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=ii;break;case ni:while(u<32){if(0===s)break e;s--,c+=r[o++]<<u,u+=8}e.adler=n.check=Ci(c),c=0,u=0,n.mode=ri;case ri:if(0===n.havedict)return e.next_out=a,e.avail_out=l,e.next_in=o,e.avail_in=s,n.hold=c,n.bits=u,Ur;e.adler=n.check=1,n.mode=ii;case ii:if(t===Fr||t===Br)break e;case oi:if(n.last){c>>>=7&u,u-=7&u,n.mode=bi;break}while(u<3){if(0===s)break e;s--,c+=r[o++]<<u,u+=8}switch(n.last=1&c,c>>>=1,u-=1,3&c){case 0:n.mode=ai;break;case 1:if($i(n),n.mode=hi,t===Br){c>>>=2,u-=2;break e}break;case 2:n.mode=ci;break;case 3:e.msg="invalid block type",n.mode=Ei}c>>>=2,u-=2;break;case ai:c>>>=7&u,u-=7&u;while(u<32){if(0===s)break e;s--,c+=r[o++]<<u,u+=8}if((65535&c)!==(c>>>16^65535)){e.msg="invalid stored block lengths",n.mode=Ei;break}if(n.length=65535&c,c=0,u=0,n.mode=si,t===Br)break e;case si:n.mode=li;case li:if(p=n.length,p){if(p>s&&(p=s),p>l&&(p=l),0===p)break e;pr(i,r,o,p,a),s-=p,o+=p,l-=p,a+=p,n.length-=p;break}n.mode=ii;break;case ci:while(u<14){if(0===s)break e;s--,c+=r[o++]<<u,u+=8}if(n.nlen=257+(31&c),c>>>=5,u-=5,n.ndist=1+(31&c),c>>>=5,u-=5,n.ncode=4+(15&c),c>>>=4,u-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=Ei;break}n.have=0,n.mode=ui;case ui:while(n.have<n.ncode){while(u<3){if(0===s)break e;s--,c+=r[o++]<<u,u+=8}n.lens[T[n.have++]]=7&c,c>>>=3,u-=3}while(n.have<19)n.lens[T[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,x={bits:n.lenbits},S=Ir(Dr,n.lens,0,19,n.lencode,0,n.work,x),n.lenbits=x.bits,S){e.msg="invalid code lengths set",n.mode=Ei;break}n.have=0,n.mode=di;case di:while(n.have<n.nlen+n.ndist){for(;;){if(A=n.lencode[c&(1<<n.lenbits)-1],g=A>>>24,v=A>>>16&255,y=65535&A,g<=u)break;if(0===s)break e;s--,c+=r[o++]<<u,u+=8}if(y<16)c>>>=g,u-=g,n.lens[n.have++]=y;else{if(16===y){k=g+2;while(u<k){if(0===s)break e;s--,c+=r[o++]<<u,u+=8}if(c>>>=g,u-=g,0===n.have){e.msg="invalid bit length repeat",n.mode=Ei;break}E=n.lens[n.have-1],p=3+(3&c),c>>>=2,u-=2}else if(17===y){k=g+3;while(u<k){if(0===s)break e;s--,c+=r[o++]<<u,u+=8}c>>>=g,u-=g,E=0,p=3+(7&c),c>>>=3,u-=3}else{k=g+7;while(u<k){if(0===s)break e;s--,c+=r[o++]<<u,u+=8}c>>>=g,u-=g,E=0,p=11+(127&c),c>>>=7,u-=7}if(n.have+p>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=Ei;break}while(p--)n.lens[n.have++]=E}}if(n.mode===Ei)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=Ei;break}if(n.lenbits=9,x={bits:n.lenbits},S=Ir(Lr,n.lens,0,n.nlen,n.lencode,0,n.work,x),n.lenbits=x.bits,S){e.msg="invalid literal/lengths set",n.mode=Ei;break}if(n.distbits=6,n.distcode=n.distdyn,x={bits:n.distbits},S=Ir(Pr,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,x),n.distbits=x.bits,S){e.msg="invalid distances set",n.mode=Ei;break}if(n.mode=hi,t===Br)break e;case hi:n.mode=pi;case pi:if(s>=6&&l>=258){e.next_out=a,e.avail_out=l,e.next_in=o,e.avail_in=s,n.hold=c,n.bits=u,wr(e,h),a=e.next_out,i=e.output,l=e.avail_out,o=e.next_in,r=e.input,s=e.avail_in,c=n.hold,u=n.bits,n.mode===ii&&(n.back=-1);break}for(n.back=0;;){if(A=n.lencode[c&(1<<n.lenbits)-1],g=A>>>24,v=A>>>16&255,y=65535&A,g<=u)break;if(0===s)break e;s--,c+=r[o++]<<u,u+=8}if(v&&0===(240&v)){for(b=g,_=v,w=y;;){if(A=n.lencode[w+((c&(1<<b+_)-1)>>b)],g=A>>>24,v=A>>>16&255,y=65535&A,b+g<=u)break;if(0===s)break e;s--,c+=r[o++]<<u,u+=8}c>>>=b,u-=b,n.back+=b}if(c>>>=g,u-=g,n.back+=g,n.length=y,0===v){n.mode=yi;break}if(32&v){n.back=-1,n.mode=ii;break}if(64&v){e.msg="invalid literal/length code",n.mode=Ei;break}n.extra=15&v,n.mode=fi;case fi:if(n.extra){k=n.extra;while(u<k){if(0===s)break e;s--,c+=r[o++]<<u,u+=8}n.length+=c&(1<<n.extra)-1,c>>>=n.extra,u-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=mi;case mi:for(;;){if(A=n.distcode[c&(1<<n.distbits)-1],g=A>>>24,v=A>>>16&255,y=65535&A,g<=u)break;if(0===s)break e;s--,c+=r[o++]<<u,u+=8}if(0===(240&v)){for(b=g,_=v,w=y;;){if(A=n.distcode[w+((c&(1<<b+_)-1)>>b)],g=A>>>24,v=A>>>16&255,y=65535&A,b+g<=u)break;if(0===s)break e;s--,c+=r[o++]<<u,u+=8}c>>>=b,u-=b,n.back+=b}if(c>>>=g,u-=g,n.back+=g,64&v){e.msg="invalid distance code",n.mode=Ei;break}n.offset=y,n.extra=15&v,n.mode=gi;case gi:if(n.extra){k=n.extra;while(u<k){if(0===s)break e;s--,c+=r[o++]<<u,u+=8}n.offset+=c&(1<<n.extra)-1,c>>>=n.extra,u-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=Ei;break}n.mode=vi;case vi:if(0===l)break e;if(p=h-l,n.offset>p){if(p=n.offset-p,p>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=Ei;break}p>n.wnext?(p-=n.wnext,f=n.wsize-p):f=n.wnext-p,p>n.length&&(p=n.length),m=n.window}else m=i,f=a-n.offset,p=n.length;p>l&&(p=l),l-=p,n.length-=p;do{i[a++]=m[f++]}while(--p);0===n.length&&(n.mode=pi);break;case yi:if(0===l)break e;i[a++]=n.length,l--,n.mode=pi;break;case bi:if(n.wrap){while(u<32){if(0===s)break e;s--,c|=r[o++]<<u,u+=8}if(h-=l,e.total_out+=h,n.total+=h,h&&(e.adler=n.check=n.flags?yr(n.check,i,h,a-h):vr(n.check,i,h,a-h)),h=l,(n.flags?c:Ci(c))!==n.check){e.msg="incorrect data check",n.mode=Ei;break}c=0,u=0}n.mode=_i;case _i:if(n.wrap&&n.flags){while(u<32){if(0===s)break e;s--,c+=r[o++]<<u,u+=8}if(c!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=Ei;break}c=0,u=0}n.mode=wi;case wi:S=jr;break e;case Ei:S=Kr;break e;case Si:return Hr;case xi:default:return Vr}return e.next_out=a,e.avail_out=l,e.next_in=o,e.avail_in=s,n.hold=c,n.bits=u,(n.wsize||h!==e.avail_out&&n.mode<Ei&&(n.mode<bi||t!==Mr))&&ji(e,e.output,e.next_out,h-e.avail_out)?(n.mode=Si,Hr):(d-=e.avail_in,h-=e.avail_out,e.total_in+=d,e.total_out+=h,n.total+=h,n.wrap&&h&&(e.adler=n.check=n.flags?yr(n.check,i,h,e.next_out-h):vr(n.check,i,h,e.next_out-h)),e.data_type=n.bits+(n.last?64:0)+(n.mode===ii?128:0)+(n.mode===hi||n.mode===si?256:0),(0===d&&0===h||t===Mr)&&S===$r&&(S=Gr),S)}function Vi(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}class Ki{constructor(){this.strm=new Vi,this.chunkSize=102400,this.strm.output=new Uint8Array(this.chunkSize),this.windowBits=5,Pi(this.strm,this.windowBits)}setInput(e){e?(this.strm.input=e,this.strm.avail_in=this.strm.input.length,this.strm.next_in=0):(this.strm.input=null,this.strm.avail_in=0,this.strm.next_in=0)}inflate(e){e>this.chunkSize&&(this.chunkSize=e,this.strm.output=new Uint8Array(this.chunkSize)),this.strm.next_out=0,this.strm.avail_out=e;let t=Ui(this.strm,0);if(t<0)throw new Error("zlib inflate failed");if(this.strm.next_out!=e)throw new Error("Incomplete zlib block");return new Uint8Array(this.strm.output.buffer,0,this.strm.next_out)}reset(){Ii(this.strm)}}var Hi=4,Gi=0,zi=1,Xi=2;function qi(e){var t=e.length;while(--t>=0)e[t]=0}var Wi=0,Yi=1,Qi=2,Ji=3,Zi=258,eo=29,to=256,no=to+1+eo,ro=30,io=19,oo=2*no+1,ao=15,so=16,lo=7,co=256,uo=16,ho=17,po=18,fo=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],mo=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],go=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],vo=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],yo=512,bo=new Array(2*(no+2));qi(bo);var _o=new Array(2*ro);qi(_o);var wo=new Array(yo);qi(wo);var Eo=new Array(Zi-Ji+1);qi(Eo);var So=new Array(eo);qi(So);var xo,ko,Ao,No=new Array(ro);function To(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}function Co(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function Ro(e){return e<256?wo[e]:wo[256+(e>>>7)]}function Oo(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function Io(e,t,n){e.bi_valid>so-n?(e.bi_buf|=t<<e.bi_valid&65535,Oo(e,e.bi_buf),e.bi_buf=t>>so-e.bi_valid,e.bi_valid+=n-so):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function Do(e,t,n){Io(e,n[2*t],n[2*t+1])}function Lo(e,t){var n=0;do{n|=1&e,e>>>=1,n<<=1}while(--t>0);return n>>>1}function Po(e){16===e.bi_valid?(Oo(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}function Mo(e,t){var n,r,i,o,a,s,l=t.dyn_tree,c=t.max_code,u=t.stat_desc.static_tree,d=t.stat_desc.has_stree,h=t.stat_desc.extra_bits,p=t.stat_desc.extra_base,f=t.stat_desc.max_length,m=0;for(o=0;o<=ao;o++)e.bl_count[o]=0;for(l[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<oo;n++)r=e.heap[n],o=l[2*l[2*r+1]+1]+1,o>f&&(o=f,m++),l[2*r+1]=o,r>c||(e.bl_count[o]++,a=0,r>=p&&(a=h[r-p]),s=l[2*r],e.opt_len+=s*(o+a),d&&(e.static_len+=s*(u[2*r+1]+a)));if(0!==m){do{o=f-1;while(0===e.bl_count[o])o--;e.bl_count[o]--,e.bl_count[o+1]+=2,e.bl_count[f]--,m-=2}while(m>0);for(o=f;0!==o;o--){r=e.bl_count[o];while(0!==r)i=e.heap[--n],i>c||(l[2*i+1]!==o&&(e.opt_len+=(o-l[2*i+1])*l[2*i],l[2*i+1]=o),r--)}}}function Fo(e,t,n){var r,i,o=new Array(ao+1),a=0;for(r=1;r<=ao;r++)o[r]=a=a+n[r-1]<<1;for(i=0;i<=t;i++){var s=e[2*i+1];0!==s&&(e[2*i]=Lo(o[s]++,s))}}function Bo(){var e,t,n,r,i,o=new Array(ao+1);for(n=0,r=0;r<eo-1;r++)for(So[r]=n,e=0;e<1<<fo[r];e++)Eo[n++]=r;for(Eo[n-1]=r,i=0,r=0;r<16;r++)for(No[r]=i,e=0;e<1<<mo[r];e++)wo[i++]=r;for(i>>=7;r<ro;r++)for(No[r]=i<<7,e=0;e<1<<mo[r]-7;e++)wo[256+i++]=r;for(t=0;t<=ao;t++)o[t]=0;e=0;while(e<=143)bo[2*e+1]=8,e++,o[8]++;while(e<=255)bo[2*e+1]=9,e++,o[9]++;while(e<=279)bo[2*e+1]=7,e++,o[7]++;while(e<=287)bo[2*e+1]=8,e++,o[8]++;for(Fo(bo,no+1,o),e=0;e<ro;e++)_o[2*e+1]=5,_o[2*e]=Lo(e,5);xo=new To(bo,fo,to+1,no,ao),ko=new To(_o,mo,0,ro,ao),Ao=new To(new Array(0),go,0,io,lo)}function $o(e){var t;for(t=0;t<no;t++)e.dyn_ltree[2*t]=0;for(t=0;t<ro;t++)e.dyn_dtree[2*t]=0;for(t=0;t<io;t++)e.bl_tree[2*t]=0;e.dyn_ltree[2*co]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function jo(e){e.bi_valid>8?Oo(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function Uo(e,t,n,r){jo(e),r&&(Oo(e,n),Oo(e,~n)),pr(e.pending_buf,e.window,t,n,e.pending),e.pending+=n}function Vo(e,t,n,r){var i=2*t,o=2*n;return e[i]<e[o]||e[i]===e[o]&&r[t]<=r[n]}function Ko(e,t,n){var r=e.heap[n],i=n<<1;while(i<=e.heap_len){if(i<e.heap_len&&Vo(t,e.heap[i+1],e.heap[i],e.depth)&&i++,Vo(t,r,e.heap[i],e.depth))break;e.heap[n]=e.heap[i],n=i,i<<=1}e.heap[n]=r}function Ho(e,t,n){var r,i,o,a,s=0;if(0!==e.last_lit)do{r=e.pending_buf[e.d_buf+2*s]<<8|e.pending_buf[e.d_buf+2*s+1],i=e.pending_buf[e.l_buf+s],s++,0===r?Do(e,i,t):(o=Eo[i],Do(e,o+to+1,t),a=fo[o],0!==a&&(i-=So[o],Io(e,i,a)),r--,o=Ro(r),Do(e,o,n),a=mo[o],0!==a&&(r-=No[o],Io(e,r,a)))}while(s<e.last_lit);Do(e,co,t)}function Go(e,t){var n,r,i,o=t.dyn_tree,a=t.stat_desc.static_tree,s=t.stat_desc.has_stree,l=t.stat_desc.elems,c=-1;for(e.heap_len=0,e.heap_max=oo,n=0;n<l;n++)0!==o[2*n]?(e.heap[++e.heap_len]=c=n,e.depth[n]=0):o[2*n+1]=0;while(e.heap_len<2)i=e.heap[++e.heap_len]=c<2?++c:0,o[2*i]=1,e.depth[i]=0,e.opt_len--,s&&(e.static_len-=a[2*i+1]);for(t.max_code=c,n=e.heap_len>>1;n>=1;n--)Ko(e,o,n);i=l;do{n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],Ko(e,o,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,o[2*i]=o[2*n]+o[2*r],e.depth[i]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,o[2*n+1]=o[2*r+1]=i,e.heap[1]=i++,Ko(e,o,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],Mo(e,t),Fo(o,c,e.bl_count)}function zo(e,t,n){var r,i,o=-1,a=t[1],s=0,l=7,c=4;for(0===a&&(l=138,c=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)i=a,a=t[2*(r+1)+1],++s<l&&i===a||(s<c?e.bl_tree[2*i]+=s:0!==i?(i!==o&&e.bl_tree[2*i]++,e.bl_tree[2*uo]++):s<=10?e.bl_tree[2*ho]++:e.bl_tree[2*po]++,s=0,o=i,0===a?(l=138,c=3):i===a?(l=6,c=3):(l=7,c=4))}function Xo(e,t,n){var r,i,o=-1,a=t[1],s=0,l=7,c=4;for(0===a&&(l=138,c=3),r=0;r<=n;r++)if(i=a,a=t[2*(r+1)+1],!(++s<l&&i===a)){if(s<c)do{Do(e,i,e.bl_tree)}while(0!==--s);else 0!==i?(i!==o&&(Do(e,i,e.bl_tree),s--),Do(e,uo,e.bl_tree),Io(e,s-3,2)):s<=10?(Do(e,ho,e.bl_tree),Io(e,s-3,3)):(Do(e,po,e.bl_tree),Io(e,s-11,7));s=0,o=i,0===a?(l=138,c=3):i===a?(l=6,c=3):(l=7,c=4)}}function qo(e){var t;for(zo(e,e.dyn_ltree,e.l_desc.max_code),zo(e,e.dyn_dtree,e.d_desc.max_code),Go(e,e.bl_desc),t=io-1;t>=3;t--)if(0!==e.bl_tree[2*vo[t]+1])break;return e.opt_len+=3*(t+1)+5+5+4,t}function Wo(e,t,n,r){var i;for(Io(e,t-257,5),Io(e,n-1,5),Io(e,r-4,4),i=0;i<r;i++)Io(e,e.bl_tree[2*vo[i]+1],3);Xo(e,e.dyn_ltree,t-1),Xo(e,e.dyn_dtree,n-1)}function Yo(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return Gi;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return zi;for(t=32;t<to;t++)if(0!==e.dyn_ltree[2*t])return zi;return Gi}qi(No);var Qo=!1;function Jo(e){Qo||(Bo(),Qo=!0),e.l_desc=new Co(e.dyn_ltree,xo),e.d_desc=new Co(e.dyn_dtree,ko),e.bl_desc=new Co(e.bl_tree,Ao),e.bi_buf=0,e.bi_valid=0,$o(e)}function Zo(e,t,n,r){Io(e,(Wi<<1)+(r?1:0),3),Uo(e,t,n,!0)}function ea(e){Io(e,Yi<<1,3),Do(e,co,bo),Po(e)}function ta(e,t,n,r){var i,o,a=0;e.level>0?(e.strm.data_type===Xi&&(e.strm.data_type=Yo(e)),Go(e,e.l_desc),Go(e,e.d_desc),a=qo(e),i=e.opt_len+3+7>>>3,o=e.static_len+3+7>>>3,o<=i&&(i=o)):i=o=n+5,n+4<=i&&-1!==t?Zo(e,t,n,r):e.strategy===Hi||o===i?(Io(e,(Yi<<1)+(r?1:0),3),Ho(e,bo,_o)):(Io(e,(Qi<<1)+(r?1:0),3),Wo(e,e.l_desc.max_code+1,e.d_desc.max_code+1,a+1),Ho(e,e.dyn_ltree,e.dyn_dtree)),$o(e),r&&jo(e)}function na(e,t,n){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(Eo[n]+to+1)]++,e.dyn_dtree[2*Ro(t)]++),e.last_lit===e.lit_bufsize-1}var ra={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"};const ia=0,oa=1,aa=3,sa=4,la=5,ca=0,ua=1,da=-2,ha=-5,pa=-1,fa=1,ma=2,ga=3,va=4,ya=0,ba=2,_a=8;var wa,Ea=9,Sa=15,xa=8,ka=29,Aa=256,Na=Aa+1+ka,Ta=30,Ca=19,Ra=2*Na+1,Oa=15,Ia=3,Da=258,La=Da+Ia+1,Pa=32,Ma=42,Fa=69,Ba=73,$a=91,ja=103,Ua=113,Va=666,Ka=1,Ha=2,Ga=3,za=4,Xa=3;function qa(e,t){return e.msg=ra[t],t}function Wa(e){return(e<<1)-(e>4?9:0)}function Ya(e){var t=e.length;while(--t>=0)e[t]=0}function Qa(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(pr(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function Ja(e,t){ta(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,Qa(e.strm)}function Za(e,t){e.pending_buf[e.pending++]=t}function es(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function ts(e,t,n,r){var i=e.avail_in;return i>r&&(i=r),0===i?0:(e.avail_in-=i,pr(t,e.input,e.next_in,i,n),1===e.state.wrap?e.adler=vr(e.adler,t,i,n):2===e.state.wrap&&(e.adler=yr(e.adler,t,i,n)),e.next_in+=i,e.total_in+=i,i)}function ns(e,t){var n,r,i=e.max_chain_length,o=e.strstart,a=e.prev_length,s=e.nice_match,l=e.strstart>e.w_size-La?e.strstart-(e.w_size-La):0,c=e.window,u=e.w_mask,d=e.prev,h=e.strstart+Da,p=c[o+a-1],f=c[o+a];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(n=t,c[n+a]===f&&c[n+a-1]===p&&c[n]===c[o]&&c[++n]===c[o+1]){o+=2,n++;do{}while(c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&o<h);if(r=Da-(h-o),o=h-Da,r>a){if(e.match_start=t,a=r,r>=s)break;p=c[o+a-1],f=c[o+a]}}}while((t=d[t&u])>l&&0!==--i);return a<=e.lookahead?a:e.lookahead}function rs(e){var t,n,r,i,o,a=e.w_size;do{if(i=e.window_size-e.lookahead-e.strstart,e.strstart>=a+(a-La)){pr(e.window,e.window,a,a,0),e.match_start-=a,e.strstart-=a,e.block_start-=a,n=e.hash_size,t=n;do{r=e.head[--t],e.head[t]=r>=a?r-a:0}while(--n);n=a,t=n;do{r=e.prev[--t],e.prev[t]=r>=a?r-a:0}while(--n);i+=a}if(0===e.strm.avail_in)break;if(n=ts(e.strm,e.window,e.strstart+e.lookahead,i),e.lookahead+=n,e.lookahead+e.insert>=Ia){o=e.strstart-e.insert,e.ins_h=e.window[o],e.ins_h=(e.ins_h<<e.hash_shift^e.window[o+1])&e.hash_mask;while(e.insert)if(e.ins_h=(e.ins_h<<e.hash_shift^e.window[o+Ia-1])&e.hash_mask,e.prev[o&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=o,o++,e.insert--,e.lookahead+e.insert<Ia)break}}while(e.lookahead<La&&0!==e.strm.avail_in)}function is(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(rs(e),0===e.lookahead&&t===ia)return Ka;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,Ja(e,!1),0===e.strm.avail_out))return Ka;if(e.strstart-e.block_start>=e.w_size-La&&(Ja(e,!1),0===e.strm.avail_out))return Ka}return e.insert=0,t===sa?(Ja(e,!0),0===e.strm.avail_out?Ga:za):(e.strstart>e.block_start&&(Ja(e,!1),e.strm.avail_out),Ka)}function os(e,t){for(var n,r;;){if(e.lookahead<La){if(rs(e),e.lookahead<La&&t===ia)return Ka;if(0===e.lookahead)break}if(n=0,e.lookahead>=Ia&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+Ia-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-La&&(e.match_length=ns(e,n)),e.match_length>=Ia)if(r=na(e,e.strstart-e.match_start,e.match_length-Ia),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=Ia){e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+Ia-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(0!==--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else r=na(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(Ja(e,!1),0===e.strm.avail_out))return Ka}return e.insert=e.strstart<Ia-1?e.strstart:Ia-1,t===sa?(Ja(e,!0),0===e.strm.avail_out?Ga:za):e.last_lit&&(Ja(e,!1),0===e.strm.avail_out)?Ka:Ha}function as(e,t){for(var n,r,i;;){if(e.lookahead<La){if(rs(e),e.lookahead<La&&t===ia)return Ka;if(0===e.lookahead)break}if(n=0,e.lookahead>=Ia&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+Ia-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=Ia-1,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-La&&(e.match_length=ns(e,n),e.match_length<=5&&(e.strategy===fa||e.match_length===Ia&&e.strstart-e.match_start>4096)&&(e.match_length=Ia-1)),e.prev_length>=Ia&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-Ia,r=na(e,e.strstart-1-e.prev_match,e.prev_length-Ia),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+Ia-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!==--e.prev_length);if(e.match_available=0,e.match_length=Ia-1,e.strstart++,r&&(Ja(e,!1),0===e.strm.avail_out))return Ka}else if(e.match_available){if(r=na(e,0,e.window[e.strstart-1]),r&&Ja(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return Ka}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=na(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<Ia-1?e.strstart:Ia-1,t===sa?(Ja(e,!0),0===e.strm.avail_out?Ga:za):e.last_lit&&(Ja(e,!1),0===e.strm.avail_out)?Ka:Ha}function ss(e,t){for(var n,r,i,o,a=e.window;;){if(e.lookahead<=Da){if(rs(e),e.lookahead<=Da&&t===ia)return Ka;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=Ia&&e.strstart>0&&(i=e.strstart-1,r=a[i],r===a[++i]&&r===a[++i]&&r===a[++i])){o=e.strstart+Da;do{}while(r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&i<o);e.match_length=Da-(o-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=Ia?(n=na(e,1,e.match_length-Ia),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=na(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(Ja(e,!1),0===e.strm.avail_out))return Ka}return e.insert=0,t===sa?(Ja(e,!0),0===e.strm.avail_out?Ga:za):e.last_lit&&(Ja(e,!1),0===e.strm.avail_out)?Ka:Ha}function ls(e,t){for(var n;;){if(0===e.lookahead&&(rs(e),0===e.lookahead)){if(t===ia)return Ka;break}if(e.match_length=0,n=na(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(Ja(e,!1),0===e.strm.avail_out))return Ka}return e.insert=0,t===sa?(Ja(e,!0),0===e.strm.avail_out?Ga:za):e.last_lit&&(Ja(e,!1),0===e.strm.avail_out)?Ka:Ha}function cs(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}function us(e){e.window_size=2*e.w_size,Ya(e.head),e.max_lazy_match=wa[e.level].max_lazy,e.good_match=wa[e.level].good_length,e.nice_match=wa[e.level].nice_length,e.max_chain_length=wa[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=Ia-1,e.match_available=0,e.ins_h=0}function ds(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=_a,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new mr(2*Ra),this.dyn_dtree=new mr(2*(2*Ta+1)),this.bl_tree=new mr(2*(2*Ca+1)),Ya(this.dyn_ltree),Ya(this.dyn_dtree),Ya(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new mr(Oa+1),this.heap=new mr(2*Na+1),Ya(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new mr(2*Na+1),Ya(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function hs(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=ba,t=e.state,t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?Ma:Ua,e.adler=2===t.wrap?0:1,t.last_flush=ia,Jo(t),ca):qa(e,da)}function ps(e){var t=hs(e);return t===ca&&us(e.state),t}function fs(e,t,n,r,i,o){if(!e)return da;var a=1;if(t===pa&&(t=6),r<0?(a=0,r=-r):r>15&&(a=2,r-=16),i<1||i>Ea||n!==_a||r<8||r>15||t<0||t>9||o<0||o>va)return qa(e,da);8===r&&(r=9);var s=new ds;return e.state=s,s.strm=e,s.wrap=a,s.gzhead=null,s.w_bits=r,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=i+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+Ia-1)/Ia),s.window=new fr(2*s.w_size),s.head=new mr(s.hash_size),s.prev=new mr(s.w_size),s.lit_bufsize=1<<i+6,s.pending_buf_size=4*s.lit_bufsize,s.pending_buf=new fr(s.pending_buf_size),s.d_buf=1*s.lit_bufsize,s.l_buf=3*s.lit_bufsize,s.level=t,s.strategy=o,s.method=n,ps(e)}function ms(e,t){return fs(e,t,_a,Sa,xa,ya)}function gs(e,t){var n,r,i,o;if(!e||!e.state||t>la||t<0)return e?qa(e,da):da;if(r=e.state,!e.output||!e.input&&0!==e.avail_in||r.status===Va&&t!==sa)return qa(e,0===e.avail_out?ha:da);if(r.strm=e,n=r.last_flush,r.last_flush=t,r.status===Ma)if(2===r.wrap)e.adler=0,Za(r,31),Za(r,139),Za(r,8),r.gzhead?(Za(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),Za(r,255&r.gzhead.time),Za(r,r.gzhead.time>>8&255),Za(r,r.gzhead.time>>16&255),Za(r,r.gzhead.time>>24&255),Za(r,9===r.level?2:r.strategy>=ma||r.level<2?4:0),Za(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(Za(r,255&r.gzhead.extra.length),Za(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(e.adler=yr(e.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=Fa):(Za(r,0),Za(r,0),Za(r,0),Za(r,0),Za(r,0),Za(r,9===r.level?2:r.strategy>=ma||r.level<2?4:0),Za(r,Xa),r.status=Ua);else{var a=_a+(r.w_bits-8<<4)<<8,s=-1;s=r.strategy>=ma||r.level<2?0:r.level<6?1:6===r.level?2:3,a|=s<<6,0!==r.strstart&&(a|=Pa),a+=31-a%31,r.status=Ua,es(r,a),0!==r.strstart&&(es(r,e.adler>>>16),es(r,65535&e.adler)),e.adler=1}if(r.status===Fa)if(r.gzhead.extra){i=r.pending;while(r.gzindex<(65535&r.gzhead.extra.length)){if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>i&&(e.adler=yr(e.adler,r.pending_buf,r.pending-i,i)),Qa(e),i=r.pending,r.pending===r.pending_buf_size))break;Za(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++}r.gzhead.hcrc&&r.pending>i&&(e.adler=yr(e.adler,r.pending_buf,r.pending-i,i)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=Ba)}else r.status=Ba;if(r.status===Ba)if(r.gzhead.name){i=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>i&&(e.adler=yr(e.adler,r.pending_buf,r.pending-i,i)),Qa(e),i=r.pending,r.pending===r.pending_buf_size)){o=1;break}o=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,Za(r,o)}while(0!==o);r.gzhead.hcrc&&r.pending>i&&(e.adler=yr(e.adler,r.pending_buf,r.pending-i,i)),0===o&&(r.gzindex=0,r.status=$a)}else r.status=$a;if(r.status===$a)if(r.gzhead.comment){i=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>i&&(e.adler=yr(e.adler,r.pending_buf,r.pending-i,i)),Qa(e),i=r.pending,r.pending===r.pending_buf_size)){o=1;break}o=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,Za(r,o)}while(0!==o);r.gzhead.hcrc&&r.pending>i&&(e.adler=yr(e.adler,r.pending_buf,r.pending-i,i)),0===o&&(r.status=ja)}else r.status=ja;if(r.status===ja&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&Qa(e),r.pending+2<=r.pending_buf_size&&(Za(r,255&e.adler),Za(r,e.adler>>8&255),e.adler=0,r.status=Ua)):r.status=Ua),0!==r.pending){if(Qa(e),0===e.avail_out)return r.last_flush=-1,ca}else if(0===e.avail_in&&Wa(t)<=Wa(n)&&t!==sa)return qa(e,ha);if(r.status===Va&&0!==e.avail_in)return qa(e,ha);if(0!==e.avail_in||0!==r.lookahead||t!==ia&&r.status!==Va){var l=r.strategy===ma?ls(r,t):r.strategy===ga?ss(r,t):wa[r.level].func(r,t);if(l!==Ga&&l!==za||(r.status=Va),l===Ka||l===Ga)return 0===e.avail_out&&(r.last_flush=-1),ca;if(l===Ha&&(t===oa?ea(r):t!==la&&(Zo(r,0,0,!1),t===aa&&(Ya(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),Qa(e),0===e.avail_out))return r.last_flush=-1,ca}return t!==sa?ca:r.wrap<=0?ua:(2===r.wrap?(Za(r,255&e.adler),Za(r,e.adler>>8&255),Za(r,e.adler>>16&255),Za(r,e.adler>>24&255),Za(r,255&e.total_in),Za(r,e.total_in>>8&255),Za(r,e.total_in>>16&255),Za(r,e.total_in>>24&255)):(es(r,e.adler>>>16),es(r,65535&e.adler)),Qa(e),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?ca:ua)}wa=[new cs(0,0,0,0,is),new cs(4,4,8,4,os),new cs(4,5,16,8,os),new cs(4,6,32,32,os),new cs(4,4,16,16,as),new cs(8,16,32,32,as),new cs(8,16,128,128,as),new cs(8,32,128,256,as),new cs(32,128,258,1024,as),new cs(32,258,258,4096,as)];class vs{constructor(){this.strm=new Vi,this.chunkSize=102400,this.outputBuffer=new Uint8Array(this.chunkSize),this.windowBits=5,ms(this.strm,this.windowBits)}deflate(e){this.strm.input=e,this.strm.avail_in=this.strm.input.length,this.strm.next_in=0,this.strm.output=this.outputBuffer,this.strm.avail_out=this.chunkSize,this.strm.next_out=0;let t=gs(this.strm,aa),n=new Uint8Array(this.strm.output.buffer,0,this.strm.next_out);if(t<0)throw new Error("zlib deflate failed");if(this.strm.avail_in>0){let e=[n],r=n.length;do{if(this.strm.output=new Uint8Array(this.chunkSize),this.strm.next_out=0,this.strm.avail_out=this.chunkSize,t=gs(this.strm,aa),t<0)throw new Error("zlib deflate failed");let n=new Uint8Array(this.strm.output.buffer,0,this.strm.next_out);r+=n.length,e.push(n)}while(this.strm.avail_in>0);let i=new Uint8Array(r),o=0;for(let t=0;t<e.length;t++)i.set(e[t],o),o+=e[t].length;n=i}return this.strm.input=null,this.strm.avail_in=0,this.strm.next_in=0,n}}class ys{constructor(e){this._target=e||null,this._keyDownList={},this._pendingKey=null,this._altGrArmed=!1,this._eventHandlers={keyup:this._handleKeyUp.bind(this),keydown:this._handleKeyDown.bind(this),keypress:this._handleKeyPress.bind(this),blur:this._allKeysUp.bind(this),checkalt:this._checkAlt.bind(this)},this.onkeyevent=()=>{}}_sendKeyEvent(e,t,n){if(n)this._keyDownList[t]=e;else{if(!(t in this._keyDownList))return;delete this._keyDownList[t]}_n("onkeyevent "+(n?"down":"up")+", keysym: "+e,", code: "+t),this.onkeyevent(e,t,n)}_getKeyCode(e){const t=Bn(e);if("Unidentified"!==t)return t;if(e.keyCode&&"keypress"!==e.type&&229!==e.keyCode)return"Platform"+e.keyCode;if(e.keyIdentifier){if("U+"!==e.keyIdentifier.substr(0,2))return e.keyIdentifier;const t=parseInt(e.keyIdentifier.substr(2),16),n=String.fromCharCode(t).toUpperCase();return"Platform"+n.charCodeAt()}return"Unidentified"}_handleKeyDown(e){const t=this._getKeyCode(e);let n=jn(e);if(this._altGrArmed&&(this._altGrArmed=!1,clearTimeout(this._altGrTimeout),"AltRight"===t&&e.timeStamp-this._altGrCtrlTime<50?n=ln.XK_ISO_Level3_Shift:this._sendKeyEvent(ln.XK_Control_L,"ControlLeft",!0)),"Unidentified"===t)return n&&(this._sendKeyEvent(n,t,!0),this._sendKeyEvent(n,t,!1)),void nr(e);if(In()||Ln())switch(n){case ln.XK_Super_L:n=ln.XK_Alt_L;break;case ln.XK_Super_R:n=ln.XK_Super_L;break;case ln.XK_Alt_L:n=ln.XK_Mode_switch;break;case ln.XK_Alt_R:n=ln.XK_ISO_Level3_Shift;break}return t in this._keyDownList&&(n=this._keyDownList[t]),(In()||Ln())&&"CapsLock"===t?(this._sendKeyEvent(ln.XK_Caps_Lock,"CapsLock",!0),this._sendKeyEvent(ln.XK_Caps_Lock,"CapsLock",!1),void nr(e)):n||e.key&&!Pn()&&!Mn()?(this._pendingKey=null,nr(e),"ControlLeft"===t&&Dn()&&!("ControlLeft"in this._keyDownList)?(this._altGrArmed=!0,this._altGrTimeout=setTimeout(this._handleAltGrTimeout.bind(this),100),void(this._altGrCtrlTime=e.timeStamp)):void this._sendKeyEvent(n,t,!0)):(this._pendingKey=t,void setTimeout(this._handleKeyPressTimeout.bind(this),10,e))}_handleKeyPress(e){if(nr(e),null===this._pendingKey)return;let t=this._getKeyCode(e);const n=jn(e);"Unidentified"!==t&&t!=this._pendingKey||(t=this._pendingKey,this._pendingKey=null,n?this._sendKeyEvent(n,t,!0):wn("keypress with no keysym:",e))}_handleKeyPressTimeout(e){if(null===this._pendingKey)return;let t;const n=this._pendingKey;if(this._pendingKey=null,e.keyCode>=48&&e.keyCode<=57)t=e.keyCode;else if(e.keyCode>=65&&e.keyCode<=90){let n=String.fromCharCode(e.keyCode);n=e.shiftKey?n.toUpperCase():n.toLowerCase(),t=n.charCodeAt()}else t=0;this._sendKeyEvent(t,n,!0)}_handleKeyUp(e){nr(e);const t=this._getKeyCode(e);if(this._altGrArmed&&(this._altGrArmed=!1,clearTimeout(this._altGrTimeout),this._sendKeyEvent(ln.XK_Control_L,"ControlLeft",!0)),(In()||Ln())&&"CapsLock"===t)return this._sendKeyEvent(ln.XK_Caps_Lock,"CapsLock",!0),void this._sendKeyEvent(ln.XK_Caps_Lock,"CapsLock",!1);this._sendKeyEvent(this._keyDownList[t],t,!1),!Dn()||"ShiftLeft"!==t&&"ShiftRight"!==t||("ShiftRight"in this._keyDownList&&this._sendKeyEvent(this._keyDownList["ShiftRight"],"ShiftRight",!1),"ShiftLeft"in this._keyDownList&&this._sendKeyEvent(this._keyDownList["ShiftLeft"],"ShiftLeft",!1))}_handleAltGrTimeout(){this._altGrArmed=!1,clearTimeout(this._altGrTimeout),this._sendKeyEvent(ln.XK_Control_L,"ControlLeft",!0)}_allKeysUp(){_n(">> Keyboard.allKeysUp");for(let e in this._keyDownList)this._sendKeyEvent(this._keyDownList[e],e,!1);_n("<< Keyboard.allKeysUp")}_checkAlt(e){if(e.skipCheckAlt)return;if(e.altKey)return;const t=this._target,n=this._keyDownList;["AltLeft","AltRight"].forEach((e=>{if(!(e in n))return;const r=new KeyboardEvent("keyup",{key:n[e],code:e});r.skipCheckAlt=!0,t.dispatchEvent(r)}))}grab(){if(this._target.addEventListener("keydown",this._eventHandlers.keydown),this._target.addEventListener("keyup",this._eventHandlers.keyup),this._target.addEventListener("keypress",this._eventHandlers.keypress),window.addEventListener("blur",this._eventHandlers.blur),Dn()&&Fn()){const e=this._eventHandlers.checkalt;["mousedown","mouseup","mousemove","wheel","touchstart","touchend","touchmove","keydown","keyup"].forEach((t=>document.addEventListener(t,e,{capture:!0,passive:!0})))}}ungrab(){if(Dn()&&Fn()){const e=this._eventHandlers.checkalt;["mousedown","mouseup","mousemove","wheel","touchstart","touchend","touchmove","keydown","keyup"].forEach((t=>document.removeEventListener(t,e)))}this._target.removeEventListener("keydown",this._eventHandlers.keydown),this._target.removeEventListener("keyup",this._eventHandlers.keyup),this._target.removeEventListener("keypress",this._eventHandlers.keypress),window.removeEventListener("blur",this._eventHandlers.blur),this._allKeysUp()}}const bs=0,_s=1,ws=2,Es=4,Ss=8,xs=16,ks=32,As=64,Ns=127,Ts=50,Cs=90,Rs=250,Os=1e3,Is=1e3,Ds=50;class Ls{constructor(){this._target=null,this._state=Ns,this._tracked=[],this._ignored=[],this._waitingRelease=!1,this._releaseStart=0,this._longpressTimeoutId=null,this._twoTouchTimeoutId=null,this._boundEventHandler=this._eventHandler.bind(this)}attach(e){this.detach(),this._target=e,this._target.addEventListener("touchstart",this._boundEventHandler),this._target.addEventListener("touchmove",this._boundEventHandler),this._target.addEventListener("touchend",this._boundEventHandler),this._target.addEventListener("touchcancel",this._boundEventHandler)}detach(){this._target&&(this._stopLongpressTimeout(),this._stopTwoTouchTimeout(),this._target.removeEventListener("touchstart",this._boundEventHandler),this._target.removeEventListener("touchmove",this._boundEventHandler),this._target.removeEventListener("touchend",this._boundEventHandler),this._target.removeEventListener("touchcancel",this._boundEventHandler),this._target=null)}_eventHandler(e){let t;switch(e.stopPropagation(),e.preventDefault(),e.type){case"touchstart":t=this._touchStart;break;case"touchmove":t=this._touchMove;break;case"touchend":case"touchcancel":t=this._touchEnd;break}for(let n=0;n<e.changedTouches.length;n++){let r=e.changedTouches[n];t.call(this,r.identifier,r.clientX,r.clientY)}}_touchStart(e,t,n){if(this._hasDetectedGesture()||this._state===bs)this._ignored.push(e);else{if(this._tracked.length>0&&Date.now()-this._tracked[0].started>Rs)return this._state=bs,void this._ignored.push(e);if(this._waitingRelease)return this._state=bs,void this._ignored.push(e);switch(this._tracked.push({id:e,started:Date.now(),active:!0,firstX:t,firstY:n,lastX:t,lastY:n,angle:0}),this._tracked.length){case 1:this._startLongpressTimeout();break;case 2:this._state&=~(_s|Ss|xs),this._stopLongpressTimeout();break;case 3:this._state&=~(ws|ks|As);break;default:this._state=bs}}}_touchMove(e,t,n){let r=this._tracked.find((t=>t.id===e));if(void 0===r)return;r.lastX=t,r.lastY=n;let i=t-r.firstX,o=n-r.firstY;if(r.firstX===r.lastX&&r.firstY===r.lastY||(r.angle=180*Math.atan2(o,i)/Math.PI),!this._hasDetectedGesture()){if(Math.hypot(i,o)<Ts)return;if(this._state&=~(_s|ws|Es|xs),this._stopLongpressTimeout(),1!==this._tracked.length&&(this._state&=~Ss),2!==this._tracked.length&&(this._state&=~(ks|As)),2===this._tracked.length){let t=this._tracked.find((t=>t.id!==e)),n=Math.hypot(t.firstX-t.lastX,t.firstY-t.lastY);if(n>Ts){let e=Math.abs(r.angle-t.angle);e=Math.abs((e+180)%360-180),this._state&=e>Cs?~ks:~As,this._isTwoTouchTimeoutRunning()&&this._stopTwoTouchTimeout()}else this._isTwoTouchTimeoutRunning()||this._startTwoTouchTimeout()}if(!this._hasDetectedGesture())return;this._pushEvent("gesturestart")}this._pushEvent("gesturemove")}_touchEnd(e,t,n){if(-1!==this._ignored.indexOf(e))return this._ignored.splice(this._ignored.indexOf(e),1),void(0===this._ignored.length&&0===this._tracked.length&&(this._state=Ns,this._waitingRelease=!1));if(!this._hasDetectedGesture()&&this._isTwoTouchTimeoutRunning()&&(this._stopTwoTouchTimeout(),this._state=bs),!this._hasDetectedGesture()&&(this._state&=~(Ss|ks|As),this._state&=~xs,this._stopLongpressTimeout(),!this._waitingRelease))switch(this._releaseStart=Date.now(),this._waitingRelease=!0,this._tracked.length){case 1:this._state&=~(ws|Es);break;case 2:this._state&=~(_s|Es);break}if(this._waitingRelease){Date.now()-this._releaseStart>Rs&&(this._state=bs),this._tracked.some((e=>Date.now()-e.started>Os))&&(this._state=bs);let t=this._tracked.find((t=>t.id===e));if(t.active=!1,this._hasDetectedGesture())this._pushEvent("gesturestart");else if(this._state!==bs)return}this._hasDetectedGesture()&&this._pushEvent("gestureend");for(let r=0;r<this._tracked.length;r++)this._tracked[r].active&&this._ignored.push(this._tracked[r].id);this._tracked=[],this._state=bs,-1!==this._ignored.indexOf(e)&&this._ignored.splice(this._ignored.indexOf(e),1),0===this._ignored.length&&(this._state=Ns,this._waitingRelease=!1)}_hasDetectedGesture(){return this._state!==bs&&(!(this._state&this._state-1)&&!(this._state&(_s|ws|Es)&&this._tracked.some((e=>e.active))))}_startLongpressTimeout(){this._stopLongpressTimeout(),this._longpressTimeoutId=setTimeout((()=>this._longpressTimeout()),Is)}_stopLongpressTimeout(){clearTimeout(this._longpressTimeoutId),this._longpressTimeoutId=null}_longpressTimeout(){if(this._hasDetectedGesture())throw new Error("A longpress gesture failed, conflict with a different gesture");this._state=xs,this._pushEvent("gesturestart")}_startTwoTouchTimeout(){this._stopTwoTouchTimeout(),this._twoTouchTimeoutId=setTimeout((()=>this._twoTouchTimeout()),Ds)}_stopTwoTouchTimeout(){clearTimeout(this._twoTouchTimeoutId),this._twoTouchTimeoutId=null}_isTwoTouchTimeoutRunning(){return null!==this._twoTouchTimeoutId}_twoTouchTimeout(){if(0===this._tracked.length)throw new Error("A pinch or two drag gesture failed, no tracked touches");let e=this._getAverageMovement(),t=Math.abs(e.x),n=Math.abs(e.y),r=this._getAverageDistance(),i=Math.abs(Math.hypot(r.first.x,r.first.y)-Math.hypot(r.last.x,r.last.y));this._state=n<i&&t<i?As:ks,this._pushEvent("gesturestart"),this._pushEvent("gesturemove")}_pushEvent(e){let t={type:this._stateToGesture(this._state)},n=this._getPosition(),r=n.last;switch("gesturestart"===e&&(r=n.first),this._state){case ks:case As:r=n.first;break}if(t["clientX"]=r.x,t["clientY"]=r.y,this._state===As){let n=this._getAverageDistance();"gesturestart"===e?(t["magnitudeX"]=n.first.x,t["magnitudeY"]=n.first.y):(t["magnitudeX"]=n.last.x,t["magnitudeY"]=n.last.y)}else if(this._state===ks)if("gesturestart"===e)t["magnitudeX"]=0,t["magnitudeY"]=0;else{let e=this._getAverageMovement();t["magnitudeX"]=e.x,t["magnitudeY"]=e.y}let i=new CustomEvent(e,{detail:t});this._target.dispatchEvent(i)}_stateToGesture(e){switch(e){case _s:return"onetap";case ws:return"twotap";case Es:return"threetap";case Ss:return"drag";case xs:return"longpress";case ks:return"twodrag";case As:return"pinch"}throw new Error("Unknown gesture state: "+e)}_getPosition(){if(0===this._tracked.length)throw new Error("Failed to get gesture position, no tracked touches");let e=this._tracked.length,t=0,n=0,r=0,i=0;for(let o=0;o<this._tracked.length;o++)t+=this._tracked[o].firstX,n+=this._tracked[o].firstY,r+=this._tracked[o].lastX,i+=this._tracked[o].lastY;return{first:{x:t/e,y:n/e},last:{x:r/e,y:i/e}}}_getAverageMovement(){if(0===this._tracked.length)throw new Error("Failed to get gesture movement, no tracked touches");let e,t;e=t=0;let n=this._tracked.length;for(let r=0;r<this._tracked.length;r++)e+=this._tracked[r].lastX-this._tracked[r].firstX,t+=this._tracked[r].lastY-this._tracked[r].firstY;return{x:e/n,y:t/n}}_getAverageDistance(){if(0===this._tracked.length)throw new Error("Failed to get gesture distance, no tracked touches");let e=this._tracked[0],t=this._tracked[this._tracked.length-1],n=Math.abs(t.firstX-e.firstX),r=Math.abs(t.firstY-e.firstY),i=Math.abs(t.lastX-e.lastX),o=Math.abs(t.lastY-e.lastY);return{first:{x:n,y:r},last:{x:i,y:o}}}}const Ps=!Tn||kn;class Ms{constructor(){this._target=null,this._canvas=document.createElement("canvas"),Ps&&(this._canvas.style.position="fixed",this._canvas.style.zIndex="65535",this._canvas.style.pointerEvents="none",this._canvas.style.visibility="hidden"),this._position={x:0,y:0},this._hotSpot={x:0,y:0},this._eventHandlers={mouseover:this._handleMouseOver.bind(this),mouseleave:this._handleMouseLeave.bind(this),mousemove:this._handleMouseMove.bind(this),mouseup:this._handleMouseUp.bind(this)}}attach(e){if(this._target&&this.detach(),this._target=e,Ps){document.body.appendChild(this._canvas);const e={capture:!0,passive:!0};this._target.addEventListener("mouseover",this._eventHandlers.mouseover,e),this._target.addEventListener("mouseleave",this._eventHandlers.mouseleave,e),this._target.addEventListener("mousemove",this._eventHandlers.mousemove,e),this._target.addEventListener("mouseup",this._eventHandlers.mouseup,e)}this.clear()}detach(){if(this._target){if(Ps){const e={capture:!0,passive:!0};this._target.removeEventListener("mouseover",this._eventHandlers.mouseover,e),this._target.removeEventListener("mouseleave",this._eventHandlers.mouseleave,e),this._target.removeEventListener("mousemove",this._eventHandlers.mousemove,e),this._target.removeEventListener("mouseup",this._eventHandlers.mouseup,e),document.body.removeChild(this._canvas)}this._target=null}}change(e,t,n,r,i){if(0===r||0===i)return void this.clear();this._position.x=this._position.x+this._hotSpot.x-t,this._position.y=this._position.y+this._hotSpot.y-n,this._hotSpot.x=t,this._hotSpot.y=n;let o,a=this._canvas.getContext("2d");this._canvas.width=r,this._canvas.height=i;try{o=new ImageData(new Uint8ClampedArray(e),r,i)}catch(pP){o=a.createImageData(r,i),o.data.set(new Uint8ClampedArray(e))}if(a.clearRect(0,0,r,i),a.putImageData(o,0,0),Ps)this._updatePosition();else{let e=this._canvas.toDataURL();this._target.style.cursor="url("+e+")"+t+" "+n+", default"}}clear(){this._target.style.cursor="none",this._canvas.width=0,this._canvas.height=0,this._position.x=this._position.x+this._hotSpot.x,this._position.y=this._position.y+this._hotSpot.y,this._hotSpot.x=0,this._hotSpot.y=0}move(e,t){if(!Ps)return;window.visualViewport?(this._position.x=e+window.visualViewport.offsetLeft,this._position.y=t+window.visualViewport.offsetTop):(this._position.x=e,this._position.y=t),this._updatePosition();let n=document.elementFromPoint(e,t);this._updateVisibility(n)}_handleMouseOver(e){this._handleMouseMove(e)}_handleMouseLeave(e){this._updateVisibility(e.relatedTarget)}_handleMouseMove(e){this._updateVisibility(e.target),this._position.x=e.clientX-this._hotSpot.x,this._position.y=e.clientY-this._hotSpot.y,this._updatePosition()}_handleMouseUp(e){let t=document.elementFromPoint(e.clientX,e.clientY);this._updateVisibility(t),this._captureIsActive()&&window.setTimeout((()=>{this._target&&(t=document.elementFromPoint(e.clientX,e.clientY),this._updateVisibility(t))}),0)}_showCursor(){"hidden"===this._canvas.style.visibility&&(this._canvas.style.visibility="")}_hideCursor(){"hidden"!==this._canvas.style.visibility&&(this._canvas.style.visibility="hidden")}_shouldShowCursor(e){return!!e&&(e===this._target||!!this._target.contains(e)&&"none"===window.getComputedStyle(e).cursor)}_updateVisibility(e){this._captureIsActive()&&(e=document.captureElement),this._shouldShowCursor(e)?this._showCursor():this._hideCursor()}_updatePosition(){this._canvas.style.left=this._position.x+"px",this._canvas.style.top=this._position.y+"px"}_captureIsActive(){return document.captureElement&&document.documentElement.contains(document.captureElement)}}const Fs=!1,Bs=41943040;class $s{constructor(){this._websocket=null,this._rQi=0,this._rQlen=0,this._rQbufferSize=4194304,this._rQ=null,this._sQbufferSize=10240,this._sQlen=0,this._sQ=null,this._eventHandlers={message:()=>{},open:()=>{},close:()=>{},error:()=>{}}}get sQ(){return this._sQ}get rQ(){return this._rQ}get rQi(){return this._rQi}set rQi(e){this._rQi=e}get rQlen(){return this._rQlen-this._rQi}rQpeek8(){return this._rQ[this._rQi]}rQskipBytes(e){this._rQi+=e}rQshift8(){return this._rQshift(1)}rQshift16(){return this._rQshift(2)}rQshift32(){return this._rQshift(4)}_rQshift(e){let t=0;for(let n=e-1;n>=0;n--)t+=this._rQ[this._rQi++]<<8*n;return t}rQshiftStr(e){"undefined"===typeof e&&(e=this.rQlen);let t="";for(let n=0;n<e;n+=4096){let r=this.rQshiftBytes(Math.min(4096,e-n));t+=String.fromCharCode.apply(null,r)}return t}rQshiftBytes(e){return"undefined"===typeof e&&(e=this.rQlen),this._rQi+=e,new Uint8Array(this._rQ.buffer,this._rQi-e,e)}rQshiftTo(e,t){void 0===t&&(t=this.rQlen),e.set(new Uint8Array(this._rQ.buffer,this._rQi,t)),this._rQi+=t}rQslice(e,t=this.rQlen){return new Uint8Array(this._rQ.buffer,this._rQi+e,t-e)}rQwait(e,t,n){if(this.rQlen<t){if(n){if(this._rQi<n)throw new Error("rQwait cannot backup "+n+" bytes");this._rQi-=n}return!0}return!1}flush(){this._sQlen>0&&this._websocket.readyState===WebSocket.OPEN&&(this._websocket.send(this._encodeMessage()),this._sQlen=0)}send(e){this._sQ.set(e,this._sQlen),this._sQlen+=e.length,this.flush()}sendString(e){this.send(e.split("").map((e=>e.charCodeAt(0))))}off(e){this._eventHandlers[e]=()=>{}}on(e,t){this._eventHandlers[e]=t}_allocateBuffers(){this._rQ=new Uint8Array(this._rQbufferSize),this._sQ=new Uint8Array(this._sQbufferSize)}init(){this._allocateBuffers(),this._rQi=0,this._websocket=null}open(e,t){this.init(),this._websocket=new WebSocket(e,t),this._websocket.binaryType="arraybuffer",this._websocket.onmessage=this._recvMessage.bind(this),this._websocket.onopen=()=>{_n(">> WebSock.onopen"),this._websocket.protocol&&wn("Server choose sub-protocol: "+this._websocket.protocol),this._eventHandlers.open(),_n("<< WebSock.onopen")},this._websocket.onclose=e=>{_n(">> WebSock.onclose"),this._eventHandlers.close(e),_n("<< WebSock.onclose")},this._websocket.onerror=e=>{_n(">> WebSock.onerror: "+e),this._eventHandlers.error(e),_n("<< WebSock.onerror: "+e)}}close(){this._websocket&&(this._websocket.readyState!==WebSocket.OPEN&&this._websocket.readyState!==WebSocket.CONNECTING||(wn("Closing WebSocket connection"),this._websocket.close()),this._websocket.onmessage=()=>{})}_encodeMessage(){return new Uint8Array(this._sQ.buffer,0,this._sQlen)}_expandCompactRQ(e){const t=8*(this._rQlen-this._rQi+e),n=this._rQbufferSize<t;if(n&&(this._rQbufferSize=Math.max(2*this._rQbufferSize,t)),this._rQbufferSize>Bs&&(this._rQbufferSize=Bs,this._rQbufferSize-this.rQlen<e))throw new Error("Receive Queue buffer exceeded "+Bs+" bytes, and the new message could not fit");if(n){const e=this._rQ.buffer;this._rQ=new Uint8Array(this._rQbufferSize),this._rQ.set(new Uint8Array(e,this._rQi,this._rQlen-this._rQi))}else Fs?this._rQ.copyWithin(0,this._rQi,this._rQlen):this._rQ.set(new Uint8Array(this._rQ.buffer,this._rQi,this._rQlen-this._rQi));this._rQlen=this._rQlen-this._rQi,this._rQi=0}_DecodeMessage(e){const t=new Uint8Array(e);t.length>this._rQbufferSize-this._rQlen&&this._expandCompactRQ(t.length),this._rQ.set(t,this._rQlen),this._rQlen+=t.length}_recvMessage(e){this._DecodeMessage(e.data),this.rQlen>0?(this._eventHandlers.message(),this._rQlen==this._rQi&&(this._rQlen=0,this._rQi=0)):_n("Ignoring empty message")}}const js=[13,16,10,23,0,4,2,27,14,5,20,9,22,18,11,3,25,7,15,6,26,19,12,1,40,51,30,36,46,54,29,39,50,44,32,47,43,48,38,55,33,52,45,41,49,35,28,31],Us=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],Vs=0;let Ks,Hs,Gs,zs,Xs,qs;Ks=65536,Hs=1<<24,Gs=Ks|Hs,zs=4,Xs=1024,qs=zs|Xs;const Ws=[Gs|Xs,0|Vs,Ks|Vs,Gs|qs,Gs|zs,Ks|qs,Vs|zs,Ks|Vs,Vs|Xs,Gs|Xs,Gs|qs,Vs|Xs,Hs|qs,Gs|zs,Hs|Vs,Vs|zs,Vs|qs,Hs|Xs,Hs|Xs,Ks|Xs,Ks|Xs,Gs|Vs,Gs|Vs,Hs|qs,Ks|zs,Hs|zs,Hs|zs,Ks|zs,0|Vs,Vs|qs,Ks|qs,Hs|Vs,Ks|Vs,Gs|qs,Vs|zs,Gs|Vs,Gs|Xs,Hs|Vs,Hs|Vs,Vs|Xs,Gs|zs,Ks|Vs,Ks|Xs,Hs|zs,Vs|Xs,Vs|zs,Hs|qs,Ks|qs,Gs|qs,Ks|zs,Gs|Vs,Hs|qs,Hs|zs,Vs|qs,Ks|qs,Gs|Xs,Vs|qs,Hs|Xs,Hs|Xs,0|Vs,Ks|zs,Ks|Xs,0|Vs,Gs|zs];Ks=1<<20,Hs=1<<31,Gs=Ks|Hs,zs=32,Xs=32768,qs=zs|Xs;const Ys=[Gs|qs,Hs|Xs,Vs|Xs,Ks|qs,Ks|Vs,Vs|zs,Gs|zs,Hs|qs,Hs|zs,Gs|qs,Gs|Xs,Hs|Vs,Hs|Xs,Ks|Vs,Vs|zs,Gs|zs,Ks|Xs,Ks|zs,Hs|qs,0|Vs,Hs|Vs,Vs|Xs,Ks|qs,Gs|Vs,Ks|zs,Hs|zs,0|Vs,Ks|Xs,Vs|qs,Gs|Xs,Gs|Vs,Vs|qs,0|Vs,Ks|qs,Gs|zs,Ks|Vs,Hs|qs,Gs|Vs,Gs|Xs,Vs|Xs,Gs|Vs,Hs|Xs,Vs|zs,Gs|qs,Ks|qs,Vs|zs,Vs|Xs,Hs|Vs,Vs|qs,Gs|Xs,Ks|Vs,Hs|zs,Ks|zs,Hs|qs,Hs|zs,Ks|zs,Ks|Xs,0|Vs,Hs|Xs,Vs|qs,Hs|Vs,Gs|zs,Gs|qs,Ks|Xs];Ks=1<<17,Hs=1<<27,Gs=Ks|Hs,zs=8,Xs=512,qs=zs|Xs;const Qs=[Vs|qs,Gs|Xs,0|Vs,Gs|zs,Hs|Xs,0|Vs,Ks|qs,Hs|Xs,Ks|zs,Hs|zs,Hs|zs,Ks|Vs,Gs|qs,Ks|zs,Gs|Vs,Vs|qs,Hs|Vs,Vs|zs,Gs|Xs,Vs|Xs,Ks|Xs,Gs|Vs,Gs|zs,Ks|qs,Hs|qs,Ks|Xs,Ks|Vs,Hs|qs,Vs|zs,Gs|qs,Vs|Xs,Hs|Vs,Gs|Xs,Hs|Vs,Ks|zs,Vs|qs,Ks|Vs,Gs|Xs,Hs|Xs,0|Vs,Vs|Xs,Ks|zs,Gs|qs,Hs|Xs,Hs|zs,Vs|Xs,0|Vs,Gs|zs,Hs|qs,Ks|Vs,Hs|Vs,Gs|qs,Vs|zs,Ks|qs,Ks|Xs,Hs|zs,Gs|Vs,Hs|qs,Vs|qs,Gs|Vs,Ks|qs,Vs|zs,Gs|zs,Ks|Xs];Ks=8192,Hs=1<<23,Gs=Ks|Hs,zs=1,Xs=128,qs=zs|Xs;const Js=[Gs|zs,Ks|qs,Ks|qs,Vs|Xs,Gs|Xs,Hs|qs,Hs|zs,Ks|zs,0|Vs,Gs|Vs,Gs|Vs,Gs|qs,Vs|qs,0|Vs,Hs|Xs,Hs|zs,Vs|zs,Ks|Vs,Hs|Vs,Gs|zs,Vs|Xs,Hs|Vs,Ks|zs,Ks|Xs,Hs|qs,Vs|zs,Ks|Xs,Hs|Xs,Ks|Vs,Gs|Xs,Gs|qs,Vs|qs,Hs|Xs,Hs|zs,Gs|Vs,Gs|qs,Vs|qs,0|Vs,0|Vs,Gs|Vs,Ks|Xs,Hs|Xs,Hs|qs,Vs|zs,Gs|zs,Ks|qs,Ks|qs,Vs|Xs,Gs|qs,Vs|qs,Vs|zs,Ks|Vs,Hs|zs,Ks|zs,Gs|Xs,Hs|qs,Ks|zs,Ks|Xs,Hs|Vs,Gs|zs,Vs|Xs,Hs|Vs,Ks|Vs,Gs|Xs];Ks=1<<25,Hs=1<<30,Gs=Ks|Hs,zs=256,Xs=1<<19,qs=zs|Xs;const Zs=[Vs|zs,Ks|qs,Ks|Xs,Gs|zs,Vs|Xs,Vs|zs,Hs|Vs,Ks|Xs,Hs|qs,Vs|Xs,Ks|zs,Hs|qs,Gs|zs,Gs|Xs,Vs|qs,Hs|Vs,Ks|Vs,Hs|Xs,Hs|Xs,0|Vs,Hs|zs,Gs|qs,Gs|qs,Ks|zs,Gs|Xs,Hs|zs,0|Vs,Gs|Vs,Ks|qs,Ks|Vs,Gs|Vs,Vs|qs,Vs|Xs,Gs|zs,Vs|zs,Ks|Vs,Hs|Vs,Ks|Xs,Gs|zs,Hs|qs,Ks|zs,Hs|Vs,Gs|Xs,Ks|qs,Hs|qs,Vs|zs,Ks|Vs,Gs|Xs,Gs|qs,Vs|qs,Gs|Vs,Gs|qs,Ks|Xs,0|Vs,Hs|Xs,Gs|Vs,Vs|qs,Ks|zs,Hs|zs,Vs|Xs,0|Vs,Hs|Xs,Ks|qs,Hs|zs];Ks=1<<22,Hs=1<<29,Gs=Ks|Hs,zs=16,Xs=16384,qs=zs|Xs;const el=[Hs|zs,Gs|Vs,Vs|Xs,Gs|qs,Gs|Vs,Vs|zs,Gs|qs,Ks|Vs,Hs|Xs,Ks|qs,Ks|Vs,Hs|zs,Ks|zs,Hs|Xs,Hs|Vs,Vs|qs,0|Vs,Ks|zs,Hs|qs,Vs|Xs,Ks|Xs,Hs|qs,Vs|zs,Gs|zs,Gs|zs,0|Vs,Ks|qs,Gs|Xs,Vs|qs,Ks|Xs,Gs|Xs,Hs|Vs,Hs|Xs,Vs|zs,Gs|zs,Ks|Xs,Gs|qs,Ks|Vs,Vs|qs,Hs|zs,Ks|Vs,Hs|Xs,Hs|Vs,Vs|qs,Hs|zs,Gs|qs,Ks|Xs,Gs|Vs,Ks|qs,Gs|Xs,0|Vs,Gs|zs,Vs|zs,Vs|Xs,Gs|Vs,Ks|qs,Vs|Xs,Ks|zs,Hs|qs,0|Vs,Gs|Xs,Hs|Vs,Ks|zs,Hs|qs];Ks=1<<21,Hs=1<<26,Gs=Ks|Hs,zs=2,Xs=2048,qs=zs|Xs;const tl=[Ks|Vs,Gs|zs,Hs|qs,0|Vs,Vs|Xs,Hs|qs,Ks|qs,Gs|Xs,Gs|qs,Ks|Vs,0|Vs,Hs|zs,Vs|zs,Hs|Vs,Gs|zs,Vs|qs,Hs|Xs,Ks|qs,Ks|zs,Hs|Xs,Hs|zs,Gs|Vs,Gs|Xs,Ks|zs,Gs|Vs,Vs|Xs,Vs|qs,Gs|qs,Ks|Xs,Vs|zs,Hs|Vs,Ks|Xs,Hs|Vs,Ks|Xs,Ks|Vs,Hs|qs,Hs|qs,Gs|zs,Gs|zs,Vs|zs,Ks|zs,Hs|Vs,Hs|Xs,Ks|Vs,Gs|Xs,Vs|qs,Ks|qs,Gs|Xs,Vs|qs,Hs|zs,Gs|qs,Gs|Vs,Ks|Xs,0|Vs,Vs|zs,Gs|qs,0|Vs,Ks|qs,Gs|Vs,Vs|Xs,Hs|zs,Hs|Xs,Vs|Xs,Ks|zs];Ks=1<<18,Hs=1<<28,Gs=Ks|Hs,zs=64,Xs=4096,qs=zs|Xs;const nl=[Hs|qs,Vs|Xs,Ks|Vs,Gs|qs,Hs|Vs,Hs|qs,Vs|zs,Hs|Vs,Ks|zs,Gs|Vs,Gs|qs,Ks|Xs,Gs|Xs,Ks|qs,Vs|Xs,Vs|zs,Gs|Vs,Hs|zs,Hs|Xs,Vs|qs,Ks|Xs,Ks|zs,Gs|zs,Gs|Xs,Vs|qs,0|Vs,0|Vs,Gs|zs,Hs|zs,Hs|Xs,Ks|qs,Ks|Vs,Ks|qs,Ks|Vs,Gs|Xs,Vs|Xs,Vs|zs,Gs|zs,Vs|Xs,Ks|qs,Hs|Xs,Vs|zs,Hs|zs,Gs|Vs,Gs|zs,Hs|Vs,Ks|Vs,Hs|qs,0|Vs,Gs|qs,Ks|zs,Hs|zs,Gs|Vs,Hs|Xs,Hs|qs,0|Vs,Gs|qs,Ks|Xs,Ks|Xs,Vs|qs,Vs|qs,Ks|zs,Hs|Vs,Gs|Xs];class rl{constructor(e){this.keys=[];const t=[],n=[],r=[];for(let i=0,o=56;i<56;++i,o-=8){o+=o<-5?65:o<-3?31:o<-1?63:27===o?35:0;const n=7&o;t[i]=0!==(e[o>>>3]&1<<n)?1:0}for(let i=0;i<16;++i){const e=i<<1,o=e+1;r[e]=r[o]=0;for(let r=28;r<59;r+=28)for(let e=r-28;e<r;++e){const o=e+Us[i];n[e]=o<r?t[o]:t[o-28]}for(let t=0;t<24;++t)0!==n[js[t]]&&(r[e]|=1<<23-t),0!==n[js[t+24]]&&(r[o]|=1<<23-t)}for(let i=0,o=0,a=0;i<16;++i){const e=r[o++],t=r[o++];this.keys[a]=(16515072&e)<<6,this.keys[a]|=(4032&e)<<10,this.keys[a]|=(16515072&t)>>>10,this.keys[a]|=(4032&t)>>>6,++a,this.keys[a]=(258048&e)<<12,this.keys[a]|=(63&e)<<16,this.keys[a]|=(258048&t)>>>4,this.keys[a]|=63&t,++a}}enc8(e){const t=e.slice();let n,r,i,o=0;n=t[o++]<<24|t[o++]<<16|t[o++]<<8|t[o++],r=t[o++]<<24|t[o++]<<16|t[o++]<<8|t[o++],i=252645135&(n>>>4^r),r^=i,n^=i<<4,i=65535&(n>>>16^r),r^=i,n^=i<<16,i=858993459&(r>>>2^n),n^=i,r^=i<<2,i=16711935&(r>>>8^n),n^=i,r^=i<<8,r=r<<1|r>>>31&1,i=2863311530&(n^r),n^=i,r^=i,n=n<<1|n>>>31&1;for(let a=0,s=0;a<8;++a){i=r<<28|r>>>4,i^=this.keys[s++];let e=tl[63&i];e|=Zs[i>>>8&63],e|=Qs[i>>>16&63],e|=Ws[i>>>24&63],i=r^this.keys[s++],e|=nl[63&i],e|=el[i>>>8&63],e|=Js[i>>>16&63],e|=Ys[i>>>24&63],n^=e,i=n<<28|n>>>4,i^=this.keys[s++],e=tl[63&i],e|=Zs[i>>>8&63],e|=Qs[i>>>16&63],e|=Ws[i>>>24&63],i=n^this.keys[s++],e|=nl[63&i],e|=el[i>>>8&63],e|=Js[i>>>16&63],e|=Ys[i>>>24&63],r^=e}for(r=r<<31|r>>>1,i=2863311530&(n^r),n^=i,r^=i,n=n<<31|n>>>1,i=16711935&(n>>>8^r),r^=i,n^=i<<8,i=858993459&(n>>>2^r),r^=i,n^=i<<2,i=65535&(r>>>16^n),n^=i,r^=i<<16,i=252645135&(r>>>4^n),n^=i,r^=i<<4,i=[r,n],o=0;o<8;o++)t[o]=(i[o>>>2]>>>8*(3-o%4))%256,t[o]<0&&(t[o]+=256);return t}encrypt(e){return this.enc8(e.slice(0,8)).concat(this.enc8(e.slice(8,16)))}}var il={Again:57349,AltLeft:56,AltRight:57400,ArrowDown:57424,ArrowLeft:57419,ArrowRight:57421,ArrowUp:57416,AudioVolumeDown:57390,AudioVolumeMute:57376,AudioVolumeUp:57392,Backquote:41,Backslash:43,Backspace:14,BracketLeft:26,BracketRight:27,BrowserBack:57450,BrowserFavorites:57446,BrowserForward:57449,BrowserHome:57394,BrowserRefresh:57447,BrowserSearch:57445,BrowserStop:57448,CapsLock:58,Comma:51,ContextMenu:57437,ControlLeft:29,ControlRight:57373,Convert:121,Copy:57464,Cut:57404,Delete:57427,Digit0:11,Digit1:2,Digit2:3,Digit3:4,Digit4:5,Digit5:6,Digit6:7,Digit7:8,Digit8:9,Digit9:10,Eject:57469,End:57423,Enter:28,Equal:13,Escape:1,F1:59,F10:68,F11:87,F12:88,F13:93,F14:94,F15:95,F16:85,F17:57347,F18:57463,F19:57348,F2:60,F20:90,F21:116,F22:57465,F23:109,F24:111,F3:61,F4:62,F5:63,F6:64,F7:65,F8:66,F9:67,Find:57409,Help:57461,Hiragana:119,Home:57415,Insert:57426,IntlBackslash:86,IntlRo:115,IntlYen:125,KanaMode:112,Katakana:120,KeyA:30,KeyB:48,KeyC:46,KeyD:32,KeyE:18,KeyF:33,KeyG:34,KeyH:35,KeyI:23,KeyJ:36,KeyK:37,KeyL:38,KeyM:50,KeyN:49,KeyO:24,KeyP:25,KeyQ:16,KeyR:19,KeyS:31,KeyT:20,KeyU:22,KeyV:47,KeyW:17,KeyX:45,KeyY:21,KeyZ:44,Lang3:120,Lang4:119,Lang5:118,LaunchApp1:57451,LaunchApp2:57377,LaunchMail:57452,MediaPlayPause:57378,MediaSelect:57453,MediaStop:57380,MediaTrackNext:57369,MediaTrackPrevious:57360,MetaLeft:57435,MetaRight:57436,Minus:12,NonConvert:123,NumLock:69,Numpad0:82,Numpad1:79,Numpad2:80,Numpad3:81,Numpad4:75,Numpad5:76,Numpad6:77,Numpad7:71,Numpad8:72,Numpad9:73,NumpadAdd:78,NumpadComma:126,NumpadDecimal:83,NumpadDivide:57397,NumpadEnter:57372,NumpadEqual:89,NumpadMultiply:55,NumpadParenLeft:57462,NumpadParenRight:57467,NumpadSubtract:74,Open:100,PageDown:57425,PageUp:57417,Paste:101,Pause:57414,Period:52,Power:57438,PrintScreen:84,Props:57350,Quote:40,ScrollLock:70,Semicolon:39,ShiftLeft:42,ShiftRight:54,Slash:53,Sleep:57439,Space:57,Suspend:57381,Tab:15,Undo:57351,WakeUp:57443};const ol={encodingRaw:0,encodingCopyRect:1,encodingRRE:2,encodingHextile:5,encodingTight:7,encodingTightPNG:-260,pseudoEncodingQualityLevel9:-23,pseudoEncodingQualityLevel0:-32,pseudoEncodingDesktopSize:-223,pseudoEncodingLastRect:-224,pseudoEncodingCursor:-239,pseudoEncodingQEMUExtendedKeyEvent:-258,pseudoEncodingDesktopName:-307,pseudoEncodingExtendedDesktopSize:-308,pseudoEncodingXvp:-309,pseudoEncodingFence:-312,pseudoEncodingContinuousUpdates:-313,pseudoEncodingCompressLevel9:-247,pseudoEncodingCompressLevel0:-256,pseudoEncodingVMwareCursor:1464686180,pseudoEncodingExtendedClipboard:3231835598};o(4979);class al{constructor(){this._lines=0}decodeRect(e,t,n,r,i,o,a){0===this._lines&&(this._lines=r);const s=8==a?1:4,l=n*s;if(i.rQwait("RAW",l))return!1;const c=t+(r-this._lines),u=Math.min(this._lines,Math.floor(i.rQlen/l));let d=i.rQ,h=i.rQi;if(8==a){const e=n*u,t=new Uint8Array(4*e);for(let n=0;n<e;n++)t[4*n+0]=255*(3&d[h+n])/3,t[4*n+1]=255*(d[h+n]>>2&3)/3,t[4*n+2]=255*(d[h+n]>>4&3)/3,t[4*n+4]=0;d=t,h=0}return o.blitImage(e,c,n,u,d,h),i.rQskipBytes(u*l),this._lines-=u,!(this._lines>0)}}class sl{decodeRect(e,t,n,r,i,o,a){if(i.rQwait("COPYRECT",4))return!1;let s=i.rQshift16(),l=i.rQshift16();return o.copyImage(s,l,e,t,n,r),!0}}class ll{constructor(){this._subrects=0}decodeRect(e,t,n,r,i,o,a){if(0===this._subrects){if(i.rQwait("RRE",8))return!1;this._subrects=i.rQshift32();let a=i.rQshiftBytes(4);o.fillRect(e,t,n,r,a)}while(this._subrects>0){if(i.rQwait("RRE",12))return!1;let n=i.rQshiftBytes(4),r=i.rQshift16(),a=i.rQshift16(),s=i.rQshift16(),l=i.rQshift16();o.fillRect(e+r,t+a,s,l,n),this._subrects--}return!0}}class cl{constructor(){this._tiles=0,this._lastsubencoding=0}decodeRect(e,t,n,r,i,o,a){0===this._tiles&&(this._tilesX=Math.ceil(n/16),this._tilesY=Math.ceil(r/16),this._totalTiles=this._tilesX*this._tilesY,this._tiles=this._totalTiles);while(this._tiles>0){let a=1;if(i.rQwait("HEXTILE",a))return!1;let s=i.rQ,l=i.rQi,c=s[l];if(c>30)throw new Error("Illegal hextile subencoding (subencoding: "+c+")");const u=this._totalTiles-this._tiles,d=u%this._tilesX,h=Math.floor(u/this._tilesX),p=e+16*d,f=t+16*h,m=Math.min(16,e+n-p),g=Math.min(16,t+r-f);if(1&c)a+=m*g*4;else if(2&c&&(a+=4),4&c&&(a+=4),8&c){if(a++,i.rQwait("HEXTILE",a))return!1;let e=s[l+a-1];a+=16&c?6*e:2*e}if(i.rQwait("HEXTILE",a))return!1;if(l++,0===c)1&this._lastsubencoding?_n(" Ignoring blank after RAW"):o.fillRect(p,f,m,g,this._background);else if(1&c)o.blitImage(p,f,m,g,s,l),l+=a-1;else{if(2&c&&(this._background=[s[l],s[l+1],s[l+2],s[l+3]],l+=4),4&c&&(this._foreground=[s[l],s[l+1],s[l+2],s[l+3]],l+=4),o.startTile(p,f,m,g,this._background),8&c){let e=s[l];l++;for(let t=0;t<e;t++){let e;16&c?(e=[s[l],s[l+1],s[l+2],s[l+3]],l+=4):e=this._foreground;const t=s[l];l++;const n=t>>4,r=15&t,i=s[l];l++;const a=1+(i>>4),u=1+(15&i);o.subTile(n,r,a,u,e)}}o.finishTile()}i.rQi=l,this._lastsubencoding=c,this._tiles--}return!0}}class ul{constructor(){this._ctl=null,this._filter=null,this._numColors=0,this._palette=new Uint8Array(1024),this._len=0,this._zlibs=[];for(let e=0;e<4;e++)this._zlibs[e]=new Ki}decodeRect(e,t,n,r,i,o,a){if(null===this._ctl){if(i.rQwait("TIGHT compression-control",1))return!1;this._ctl=i.rQshift8();for(let e=0;e<4;e++)this._ctl>>e&1&&(this._zlibs[e].reset(),wn("Reset zlib stream "+e));this._ctl=this._ctl>>4}let s;if(8===this._ctl)s=this._fillRect(e,t,n,r,i,o,a);else if(9===this._ctl)s=this._jpegRect(e,t,n,r,i,o,a);else if(10===this._ctl)s=this._pngRect(e,t,n,r,i,o,a);else{if(0!=(128&this._ctl))throw new Error("Illegal tight compression received (ctl: "+this._ctl+")");s=this._basicRect(this._ctl,e,t,n,r,i,o,a)}return s&&(this._ctl=null),s}_fillRect(e,t,n,r,i,o,a){if(i.rQwait("TIGHT",3))return!1;const s=i.rQi,l=i.rQ;return o.fillRect(e,t,n,r,[l[s+2],l[s+1],l[s]],!1),i.rQskipBytes(3),!0}_jpegRect(e,t,n,r,i,o,a){let s=this._readData(i);return null!==s&&(o.imageRect(e,t,n,r,"image/jpeg",s),!0)}_pngRect(e,t,n,r,i,o,a){throw new Error("PNG received in standard Tight rect")}_basicRect(e,t,n,r,i,o,a,s){if(null===this._filter)if(4&e){if(o.rQwait("TIGHT",1))return!1;this._filter=o.rQshift8()}else this._filter=0;let l,c=3&e;switch(this._filter){case 0:l=this._copyFilter(c,t,n,r,i,o,a,s);break;case 1:l=this._paletteFilter(c,t,n,r,i,o,a,s);break;case 2:l=this._gradientFilter(c,t,n,r,i,o,a,s);break;default:throw new Error("Illegal tight filter received (ctl: "+this._filter+")")}return l&&(this._filter=null),l}_copyFilter(e,t,n,r,i,o,a,s){const l=r*i*3;let c;if(l<12){if(o.rQwait("TIGHT",l))return!1;c=o.rQshiftBytes(l)}else{if(c=this._readData(o),null===c)return!1;this._zlibs[e].setInput(c),c=this._zlibs[e].inflate(l),this._zlibs[e].setInput(null)}return a.blitRgbImage(t,n,r,i,c,0,!1),!0}_paletteFilter(e,t,n,r,i,o,a,s){if(0===this._numColors){if(o.rQwait("TIGHT palette",1))return!1;const e=o.rQpeek8()+1,t=3*e;if(o.rQwait("TIGHT palette",1+t))return!1;this._numColors=e,o.rQskipBytes(1),o.rQshiftTo(this._palette,t)}const l=this._numColors<=2?1:8,c=Math.floor((r*l+7)/8),u=c*i;let d;if(u<12){if(o.rQwait("TIGHT",u))return!1;d=o.rQshiftBytes(u)}else{if(d=this._readData(o),null===d)return!1;this._zlibs[e].setInput(d),d=this._zlibs[e].inflate(u),this._zlibs[e].setInput(null)}return 2==this._numColors?this._monoRect(t,n,r,i,d,this._palette,a):this._paletteRect(t,n,r,i,d,this._palette,a),this._numColors=0,!0}_monoRect(e,t,n,r,i,o,a){const s=this._getScratchBuffer(n*r*4),l=Math.floor((n+7)/8),c=Math.floor(n/8);for(let u=0;u<r;u++){let e,t,r;for(r=0;r<c;r++)for(let a=7;a>=0;a--)e=4*(u*n+8*r+7-a),t=3*(i[u*l+r]>>a&1),s[e]=o[t],s[e+1]=o[t+1],s[e+2]=o[t+2],s[e+3]=255;for(let a=7;a>=8-n%8;a--)e=4*(u*n+8*r+7-a),t=3*(i[u*l+r]>>a&1),s[e]=o[t],s[e+1]=o[t+1],s[e+2]=o[t+2],s[e+3]=255}a.blitRgbxImage(e,t,n,r,s,0,!1)}_paletteRect(e,t,n,r,i,o,a){const s=this._getScratchBuffer(n*r*4),l=n*r*4;for(let c=0,u=0;c<l;c+=4,u++){const e=3*i[u];s[c]=o[e],s[c+1]=o[e+1],s[c+2]=o[e+2],s[c+3]=255}a.blitRgbxImage(e,t,n,r,s,0,!1)}_gradientFilter(e,t,n,r,i,o,a,s){throw new Error("Gradient filter not implemented")}_readData(e){if(0===this._len){if(e.rQwait("TIGHT",3))return null;let t;t=e.rQshift8(),this._len=127&t,128&t&&(t=e.rQshift8(),this._len|=(127&t)<<7,128&t&&(t=e.rQshift8(),this._len|=t<<14))}if(e.rQwait("TIGHT",this._len))return null;let t=e.rQshiftBytes(this._len);return this._len=0,t}_getScratchBuffer(e){return(!this._scratchBuffer||this._scratchBuffer.length<e)&&(this._scratchBuffer=new Uint8Array(e)),this._scratchBuffer}}class dl extends ul{_pngRect(e,t,n,r,i,o,a){let s=this._readData(i);return null!==s&&(o.imageRect(e,t,n,r,"image/png",s),!0)}_basicRect(e,t,n,r,i,o,a,s){throw new Error("BasicCompression received in TightPNG rect")}}const hl=3,pl="rgb(40, 40, 40)",fl=17,ml=50,gl=19,vl=75,yl=50,bl=1e3,_l=50,wl=1,El=1<<24,Sl=1<<25,xl=1<<26,kl=1<<27,Al=1<<28;class Nl extends ur{constructor(e,t,n){if(!e)throw new Error("Must specify target");if(!t)throw new Error("Must specify URL");super(),this._target=e,this._url=t,n=n||{},this._rfbCredentials=n.credentials||{},this._shared=!("shared"in n)||!!n.shared,this._repeaterID=n.repeaterID||"",this._wsProtocols=n.wsProtocols||[],this._rfbConnectionState="",this._rfbInitState="",this._rfbAuthScheme=-1,this._rfbCleanDisconnect=!0,this._rfbVersion=0,this._rfbMaxVersion=3.8,this._rfbTightVNC=!1,this._rfbVeNCryptState=0,this._rfbXvpVer=0,this._fbWidth=0,this._fbHeight=0,this._fbName="",this._capabilities={power:!1},this._supportsFence=!1,this._supportsContinuousUpdates=!1,this._enabledContinuousUpdates=!1,this._supportsSetDesktopSize=!1,this._screenID=0,this._screenFlags=0,this._qemuExtKeyEventSupported=!1,this._clipboardText=null,this._clipboardServerCapabilitiesActions={},this._clipboardServerCapabilitiesFormats={},this._sock=null,this._display=null,this._flushing=!1,this._keyboard=null,this._gestures=null,this._disconnTimer=null,this._resizeTimeout=null,this._mouseMoveTimer=null,this._decoders={},this._FBU={rects:0,x:0,y:0,width:0,height:0,encoding:null},this._mousePos={},this._mouseButtonMask=0,this._mouseLastMoveTime=0,this._viewportDragging=!1,this._viewportDragPos={},this._viewportHasMoved=!1,this._accumulatedWheelDeltaX=0,this._accumulatedWheelDeltaY=0,this._gestureLastTapTime=null,this._gestureFirstDoubleTapEv=null,this._gestureLastMagnitudeX=0,this._gestureLastMagnitudeY=0,this._eventHandlers={focusCanvas:this._focusCanvas.bind(this),windowResize:this._windowResize.bind(this),handleMouse:this._handleMouse.bind(this),handleWheel:this._handleWheel.bind(this),handleGesture:this._handleGesture.bind(this)},_n(">> RFB.constructor"),this._screen=document.createElement("div"),this._screen.style.display="flex",this._screen.style.width="100%",this._screen.style.height="100%",this._screen.style.overflow="auto",this._screen.style.background=pl,this._canvas=document.createElement("canvas"),this._canvas.style.margin="auto",this._canvas.style.outline="none",this._canvas.style.flexShrink="0",this._canvas.width=0,this._canvas.height=0,this._canvas.tabIndex=-1,this._screen.appendChild(this._canvas),this._cursor=new Ms,this._cursorImage=Nl.cursors.none,this._decoders[ol.encodingRaw]=new al,this._decoders[ol.encodingCopyRect]=new sl,this._decoders[ol.encodingRRE]=new ll,this._decoders[ol.encodingHextile]=new cl,this._decoders[ol.encodingTight]=new ul,this._decoders[ol.encodingTightPNG]=new dl;try{this._display=new hr(this._canvas)}catch(hP){throw Sn("Display exception: "+hP),hP}this._display.onflush=this._onFlush.bind(this),this._keyboard=new ys(this._canvas),this._keyboard.onkeyevent=this._handleKeyEvent.bind(this),this._gestures=new Ls,this._sock=new $s,this._sock.on("message",(()=>{this._handleMessage()})),this._sock.on("open",(()=>{"connecting"===this._rfbConnectionState&&""===this._rfbInitState?(this._rfbInitState="ProtocolVersion",_n("Starting VNC handshake")):this._fail("Unexpected server connection while "+this._rfbConnectionState)})),this._sock.on("close",(e=>{_n("WebSocket on-close event");let t="";switch(e.code&&(t="(code: "+e.code,e.reason&&(t+=", reason: "+e.reason),t+=")"),this._rfbConnectionState){case"connecting":this._fail("Connection closed "+t);break;case"connected":this._updateConnectionState("disconnecting"),this._updateConnectionState("disconnected");break;case"disconnecting":this._updateConnectionState("disconnected");break;case"disconnected":this._fail("Unexpected server disconnect when already disconnected "+t);break;default:this._fail("Unexpected server disconnect before connecting "+t);break}this._sock.off("close")})),this._sock.on("error",(e=>En("WebSocket on-error event"))),setTimeout(this._updateConnectionState.bind(this,"connecting")),_n("<< RFB.constructor"),this.dragViewport=!1,this.focusOnClick=!0,this._viewOnly=!1,this._clipViewport=!1,this._scaleViewport=!1,this._resizeSession=!1,this._showDotCursor=!1,void 0!==n.showDotCursor&&(En("Specifying showDotCursor as a RFB constructor argument is deprecated"),this._showDotCursor=n.showDotCursor),this._qualityLevel=6,this._compressionLevel=2}get viewOnly(){return this._viewOnly}set viewOnly(e){this._viewOnly=e,"connecting"!==this._rfbConnectionState&&"connected"!==this._rfbConnectionState||(e?this._keyboard.ungrab():this._keyboard.grab())}get capabilities(){return this._capabilities}get touchButton(){return 0}set touchButton(e){En("Using old API!")}get clipViewport(){return this._clipViewport}set clipViewport(e){this._clipViewport=e,this._updateClip()}get scaleViewport(){return this._scaleViewport}set scaleViewport(e){this._scaleViewport=e,e&&this._clipViewport&&this._updateClip(),this._updateScale(),!e&&this._clipViewport&&this._updateClip()}get resizeSession(){return this._resizeSession}set resizeSession(e){this._resizeSession=e,e&&this._requestRemoteResize()}get showDotCursor(){return this._showDotCursor}set showDotCursor(e){this._showDotCursor=e,this._refreshCursor()}get background(){return this._screen.style.background}set background(e){this._screen.style.background=e}get qualityLevel(){return this._qualityLevel}set qualityLevel(e){!Number.isInteger(e)||e<0||e>9?Sn("qualityLevel must be an integer between 0 and 9"):this._qualityLevel!==e&&(this._qualityLevel=e,"connected"===this._rfbConnectionState&&this._sendEncodings())}get compressionLevel(){return this._compressionLevel}set compressionLevel(e){!Number.isInteger(e)||e<0||e>9?Sn("compressionLevel must be an integer between 0 and 9"):this._compressionLevel!==e&&(this._compressionLevel=e,"connected"===this._rfbConnectionState&&this._sendEncodings())}disconnect(){this._updateConnectionState("disconnecting"),this._sock.off("error"),this._sock.off("message"),this._sock.off("open")}sendCredentials(e){this._rfbCredentials=e,setTimeout(this._initMsg.bind(this),0)}sendCtrlAltDel(){"connected"!==this._rfbConnectionState||this._viewOnly||(wn("Sending Ctrl-Alt-Del"),this.sendKey(ln.XK_Control_L,"ControlLeft",!0),this.sendKey(ln.XK_Alt_L,"AltLeft",!0),this.sendKey(ln.XK_Delete,"Delete",!0),this.sendKey(ln.XK_Delete,"Delete",!1),this.sendKey(ln.XK_Alt_L,"AltLeft",!1),this.sendKey(ln.XK_Control_L,"ControlLeft",!1))}machineShutdown(){this._xvpOp(1,2)}machineReboot(){this._xvpOp(1,3)}machineReset(){this._xvpOp(1,4)}sendKey(e,t,n){if("connected"!==this._rfbConnectionState||this._viewOnly)return;if(void 0===n)return this.sendKey(e,t,!0),void this.sendKey(e,t,!1);const r=il[t];if(this._qemuExtKeyEventSupported&&r)e=e||0,wn("Sending key ("+(n?"down":"up")+"): keysym "+e+", scancode "+r),Nl.messages.QEMUExtendedKeyEvent(this._sock,e,n,r);else{if(!e)return;wn("Sending keysym ("+(n?"down":"up")+"): "+e),Nl.messages.keyEvent(this._sock,e,n?1:0)}}focus(){this._canvas.focus()}blur(){this._canvas.blur()}clipboardPasteFrom(e){if("connected"===this._rfbConnectionState&&!this._viewOnly)if(this._clipboardServerCapabilitiesFormats[wl]&&this._clipboardServerCapabilitiesActions[kl])this._clipboardText=e,Nl.messages.extendedClipboardNotify(this._sock,[wl]);else{let t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);Nl.messages.clientCutText(this._sock,t)}}_connect(){_n(">> RFB.connect"),wn("connecting to "+this._url);try{this._sock.open(this._url,this._wsProtocols)}catch(Xs){"SyntaxError"===Xs.name?this._fail("Invalid host or port ("+Xs+")"):this._fail("Error when opening socket ("+Xs+")")}this._target.appendChild(this._screen),this._gestures.attach(this._canvas),this._cursor.attach(this._canvas),this._refreshCursor(),window.addEventListener("resize",this._eventHandlers.windowResize),this._canvas.addEventListener("mousedown",this._eventHandlers.focusCanvas),this._canvas.addEventListener("touchstart",this._eventHandlers.focusCanvas),this._canvas.addEventListener("mousedown",this._eventHandlers.handleMouse),this._canvas.addEventListener("mouseup",this._eventHandlers.handleMouse),this._canvas.addEventListener("mousemove",this._eventHandlers.handleMouse),this._canvas.addEventListener("click",this._eventHandlers.handleMouse),this._canvas.addEventListener("contextmenu",this._eventHandlers.handleMouse),this._canvas.addEventListener("wheel",this._eventHandlers.handleWheel),this._canvas.addEventListener("gesturestart",this._eventHandlers.handleGesture),this._canvas.addEventListener("gesturemove",this._eventHandlers.handleGesture),this._canvas.addEventListener("gestureend",this._eventHandlers.handleGesture),_n("<< RFB.connect")}_disconnect(){_n(">> RFB.disconnect"),this._cursor.detach(),this._canvas.removeEventListener("gesturestart",this._eventHandlers.handleGesture),this._canvas.removeEventListener("gesturemove",this._eventHandlers.handleGesture),this._canvas.removeEventListener("gestureend",this._eventHandlers.handleGesture),this._canvas.removeEventListener("wheel",this._eventHandlers.handleWheel),this._canvas.removeEventListener("mousedown",this._eventHandlers.handleMouse),this._canvas.removeEventListener("mouseup",this._eventHandlers.handleMouse),this._canvas.removeEventListener("mousemove",this._eventHandlers.handleMouse),this._canvas.removeEventListener("click",this._eventHandlers.handleMouse),this._canvas.removeEventListener("contextmenu",this._eventHandlers.handleMouse),this._canvas.removeEventListener("mousedown",this._eventHandlers.focusCanvas),this._canvas.removeEventListener("touchstart",this._eventHandlers.focusCanvas),window.removeEventListener("resize",this._eventHandlers.windowResize),this._keyboard.ungrab(),this._gestures.detach(),this._sock.close();try{this._target.removeChild(this._screen)}catch(Xs){if("NotFoundError"!==Xs.name)throw Xs}clearTimeout(this._resizeTimeout),clearTimeout(this._mouseMoveTimer),_n("<< RFB.disconnect")}_focusCanvas(e){this.focusOnClick&&this.focus()}_setDesktopName(e){this._fbName=e,this.dispatchEvent(new CustomEvent("desktopname",{detail:{name:this._fbName}}))}_windowResize(e){window.requestAnimationFrame((()=>{this._updateClip(),this._updateScale()})),this._resizeSession&&(clearTimeout(this._resizeTimeout),this._resizeTimeout=setTimeout(this._requestRemoteResize.bind(this),500))}_updateClip(){const e=this._display.clipViewport;let t=this._clipViewport;if(this._scaleViewport&&(t=!1),e!==t&&(this._display.clipViewport=t),t){const e=this._screenSize();this._display.viewportChangeSize(e.w,e.h),this._fixScrollbars()}}_updateScale(){if(this._scaleViewport){const e=this._screenSize();this._display.autoscale(e.w,e.h)}else this._display.scale=1;this._fixScrollbars()}_requestRemoteResize(){if(clearTimeout(this._resizeTimeout),this._resizeTimeout=null,!this._resizeSession||this._viewOnly||!this._supportsSetDesktopSize)return;const e=this._screenSize();Nl.messages.setDesktopSize(this._sock,Math.floor(e.w),Math.floor(e.h),this._screenID,this._screenFlags),_n("Requested new desktop size: "+e.w+"x"+e.h)}_screenSize(){let e=this._screen.getBoundingClientRect();return{w:e.width,h:e.height}}_fixScrollbars(){const e=this._screen.style.overflow;this._screen.style.overflow="hidden",this._screen.getBoundingClientRect(),this._screen.style.overflow=e}_updateConnectionState(e){const t=this._rfbConnectionState;if(e!==t)if("disconnected"!==t){switch(e){case"connected":if("connecting"!==t)return void Sn("Bad transition to connected state, previous connection state: "+t);break;case"disconnected":if("disconnecting"!==t)return void Sn("Bad transition to disconnected state, previous connection state: "+t);break;case"connecting":if(""!==t)return void Sn("Bad transition to connecting state, previous connection state: "+t);break;case"disconnecting":if("connected"!==t&&"connecting"!==t)return void Sn("Bad transition to disconnecting state, previous connection state: "+t);break;default:return void Sn("Unknown connection state: "+e)}switch(this._rfbConnectionState=e,_n("New state '"+e+"', was '"+t+"'."),this._disconnTimer&&"disconnecting"!==e&&(_n("Clearing disconnect timer"),clearTimeout(this._disconnTimer),this._disconnTimer=null,this._sock.off("close")),e){case"connecting":this._connect();break;case"connected":this.dispatchEvent(new CustomEvent("connect",{detail:{}}));break;case"disconnecting":this._disconnect(),this._disconnTimer=setTimeout((()=>{Sn("Disconnection timed out."),this._updateConnectionState("disconnected")}),1e3*hl);break;case"disconnected":this.dispatchEvent(new CustomEvent("disconnect",{detail:{clean:this._rfbCleanDisconnect}}));break}}else Sn("Tried changing state of a disconnected RFB object");else _n("Already in state '"+e+"', ignoring")}_fail(e){switch(this._rfbConnectionState){case"disconnecting":Sn("Failed when disconnecting: "+e);break;case"connected":Sn("Failed while connected: "+e);break;case"connecting":Sn("Failed when connecting: "+e);break;default:Sn("RFB failure: "+e);break}return this._rfbCleanDisconnect=!1,this._updateConnectionState("disconnecting"),this._updateConnectionState("disconnected"),!1}_setCapability(e,t){this._capabilities[e]=t,this.dispatchEvent(new CustomEvent("capabilities",{detail:{capabilities:this._capabilities}}))}_handleMessage(){if(0!==this._sock.rQlen)switch(this._rfbConnectionState){case"disconnected":Sn("Got data while disconnected");break;case"connected":while(1){if(this._flushing)break;if(!this._normalMsg())break;if(0===this._sock.rQlen)break}break;default:this._initMsg();break}else En("handleMessage called on an empty receive queue")}_handleKeyEvent(e,t,n){this.sendKey(e,t,n)}_handleMouse(e){if("click"===e.type&&e.target!==this._canvas)return;if(e.stopPropagation(),e.preventDefault(),"click"===e.type||"contextmenu"===e.type)return;let t=tr(e.clientX,e.clientY,this._canvas);switch(e.type){case"mousedown":lr(this._canvas),this._handleMouseButton(t.x,t.y,!0,1<<e.button);break;case"mouseup":this._handleMouseButton(t.x,t.y,!1,1<<e.button);break;case"mousemove":this._handleMouseMove(t.x,t.y);break}}_handleMouseButton(e,t,n,r){if(this.dragViewport){if(n&&!this._viewportDragging)return this._viewportDragging=!0,this._viewportDragPos={x:e,y:t},void(this._viewportHasMoved=!1);if(this._viewportDragging=!1,this._viewportHasMoved)return;this._sendMouse(e,t,r)}null!==this._mouseMoveTimer&&(clearTimeout(this._mouseMoveTimer),this._mouseMoveTimer=null,this._sendMouse(e,t,this._mouseButtonMask)),n?this._mouseButtonMask|=r:this._mouseButtonMask&=~r,this._sendMouse(e,t,this._mouseButtonMask)}_handleMouseMove(e,t){if(this._viewportDragging){const n=this._viewportDragPos.x-e,r=this._viewportDragPos.y-t;(this._viewportHasMoved||Math.abs(n)>An||Math.abs(r)>An)&&(this._viewportHasMoved=!0,this._viewportDragPos={x:e,y:t},this._display.viewportChangePos(n,r))}else if(this._mousePos={x:e,y:t},null==this._mouseMoveTimer){const n=Date.now()-this._mouseLastMoveTime;n>fl?(this._sendMouse(e,t,this._mouseButtonMask),this._mouseLastMoveTime=Date.now()):this._mouseMoveTimer=setTimeout((()=>{this._handleDelayedMouseMove()}),fl-n)}}_handleDelayedMouseMove(){this._mouseMoveTimer=null,this._sendMouse(this._mousePos.x,this._mousePos.y,this._mouseButtonMask),this._mouseLastMoveTime=Date.now()}_sendMouse(e,t,n){"connected"===this._rfbConnectionState&&(this._viewOnly||Nl.messages.pointerEvent(this._sock,this._display.absX(e),this._display.absY(t),n))}_handleWheel(e){if("connected"!==this._rfbConnectionState)return;if(this._viewOnly)return;e.stopPropagation(),e.preventDefault();let t=tr(e.clientX,e.clientY,this._canvas),n=e.deltaX,r=e.deltaY;0!==e.deltaMode&&(n*=gl,r*=gl),this._accumulatedWheelDeltaX+=n,this._accumulatedWheelDeltaY+=r,Math.abs(this._accumulatedWheelDeltaX)>=ml&&(this._accumulatedWheelDeltaX<0?(this._handleMouseButton(t.x,t.y,!0,32),this._handleMouseButton(t.x,t.y,!1,32)):this._accumulatedWheelDeltaX>0&&(this._handleMouseButton(t.x,t.y,!0,64),this._handleMouseButton(t.x,t.y,!1,64)),this._accumulatedWheelDeltaX=0),Math.abs(this._accumulatedWheelDeltaY)>=ml&&(this._accumulatedWheelDeltaY<0?(this._handleMouseButton(t.x,t.y,!0,8),this._handleMouseButton(t.x,t.y,!1,8)):this._accumulatedWheelDeltaY>0&&(this._handleMouseButton(t.x,t.y,!0,16),this._handleMouseButton(t.x,t.y,!1,16)),this._accumulatedWheelDeltaY=0)}_fakeMouseMove(e,t,n){this._handleMouseMove(t,n),this._cursor.move(e.detail.clientX,e.detail.clientY)}_handleTapEvent(e,t){let n=tr(e.detail.clientX,e.detail.clientY,this._canvas);if(null!==this._gestureLastTapTime&&Date.now()-this._gestureLastTapTime<bl&&this._gestureFirstDoubleTapEv.detail.type===e.detail.type){let t=this._gestureFirstDoubleTapEv.detail.clientX-e.detail.clientX,r=this._gestureFirstDoubleTapEv.detail.clientY-e.detail.clientY,i=Math.hypot(t,r);i<_l?n=tr(this._gestureFirstDoubleTapEv.detail.clientX,this._gestureFirstDoubleTapEv.detail.clientY,this._canvas):this._gestureFirstDoubleTapEv=e}else this._gestureFirstDoubleTapEv=e;this._gestureLastTapTime=Date.now(),this._fakeMouseMove(this._gestureFirstDoubleTapEv,n.x,n.y),this._handleMouseButton(n.x,n.y,!0,t),this._handleMouseButton(n.x,n.y,!1,t)}_handleGesture(e){let t,n=tr(e.detail.clientX,e.detail.clientY,this._canvas);switch(e.type){case"gesturestart":switch(e.detail.type){case"onetap":this._handleTapEvent(e,1);break;case"twotap":this._handleTapEvent(e,4);break;case"threetap":this._handleTapEvent(e,2);break;case"drag":this._fakeMouseMove(e,n.x,n.y),this._handleMouseButton(n.x,n.y,!0,1);break;case"longpress":this._fakeMouseMove(e,n.x,n.y),this._handleMouseButton(n.x,n.y,!0,4);break;case"twodrag":this._gestureLastMagnitudeX=e.detail.magnitudeX,this._gestureLastMagnitudeY=e.detail.magnitudeY,this._fakeMouseMove(e,n.x,n.y);break;case"pinch":this._gestureLastMagnitudeX=Math.hypot(e.detail.magnitudeX,e.detail.magnitudeY),this._fakeMouseMove(e,n.x,n.y);break}break;case"gesturemove":switch(e.detail.type){case"onetap":case"twotap":case"threetap":break;case"drag":case"longpress":this._fakeMouseMove(e,n.x,n.y);break;case"twodrag":this._fakeMouseMove(e,n.x,n.y);while(e.detail.magnitudeY-this._gestureLastMagnitudeY>yl)this._handleMouseButton(n.x,n.y,!0,8),this._handleMouseButton(n.x,n.y,!1,8),this._gestureLastMagnitudeY+=yl;while(e.detail.magnitudeY-this._gestureLastMagnitudeY<-yl)this._handleMouseButton(n.x,n.y,!0,16),this._handleMouseButton(n.x,n.y,!1,16),this._gestureLastMagnitudeY-=yl;while(e.detail.magnitudeX-this._gestureLastMagnitudeX>yl)this._handleMouseButton(n.x,n.y,!0,32),this._handleMouseButton(n.x,n.y,!1,32),this._gestureLastMagnitudeX+=yl;while(e.detail.magnitudeX-this._gestureLastMagnitudeX<-yl)this._handleMouseButton(n.x,n.y,!0,64),this._handleMouseButton(n.x,n.y,!1,64),this._gestureLastMagnitudeX-=yl;break;case"pinch":if(this._fakeMouseMove(e,n.x,n.y),t=Math.hypot(e.detail.magnitudeX,e.detail.magnitudeY),Math.abs(t-this._gestureLastMagnitudeX)>vl){this._handleKeyEvent(ln.XK_Control_L,"ControlLeft",!0);while(t-this._gestureLastMagnitudeX>vl)this._handleMouseButton(n.x,n.y,!0,8),this._handleMouseButton(n.x,n.y,!1,8),this._gestureLastMagnitudeX+=vl;while(t-this._gestureLastMagnitudeX<-vl)this._handleMouseButton(n.x,n.y,!0,16),this._handleMouseButton(n.x,n.y,!1,16),this._gestureLastMagnitudeX-=vl}this._handleKeyEvent(ln.XK_Control_L,"ControlLeft",!1);break}break;case"gestureend":switch(e.detail.type){case"onetap":case"twotap":case"threetap":case"pinch":case"twodrag":break;case"drag":this._fakeMouseMove(e,n.x,n.y),this._handleMouseButton(n.x,n.y,!1,1);break;case"longpress":this._fakeMouseMove(e,n.x,n.y),this._handleMouseButton(n.x,n.y,!1,4);break}break}}_negotiateProtocolVersion(){if(this._sock.rQwait("version",12))return!1;const e=this._sock.rQshiftStr(12).substr(4,7);wn("Server ProtocolVersion: "+e);let t=0;switch(e){case"000.000":t=1;break;case"003.003":case"003.006":case"003.889":this._rfbVersion=3.3;break;case"003.007":this._rfbVersion=3.7;break;case"003.008":case"004.000":case"004.001":case"005.000":this._rfbVersion=3.8;break;default:return this._fail("Invalid server version "+e)}if(t){let e="ID:"+this._repeaterID;while(e.length<250)e+="\0";return this._sock.sendString(e),!0}this._rfbVersion>this._rfbMaxVersion&&(this._rfbVersion=this._rfbMaxVersion);const n="00"+parseInt(this._rfbVersion,10)+".00"+10*this._rfbVersion%10;this._sock.sendString("RFB "+n+"\n"),_n("Sent ProtocolVersion: "+n),this._rfbInitState="Security"}_negotiateSecurity(){function e(e,t){for(let n=0;n<t.length;n++)if(t[n]===e)return!0;return!1}if(this._rfbVersion>=3.7){const t=this._sock.rQshift8();if(this._sock.rQwait("security type",t,1))return!1;if(0===t)return this._rfbInitState="SecurityReason",this._securityContext="no security types",this._securityStatus=1,this._initMsg();const n=this._sock.rQshiftBytes(t);if(_n("Server security types: "+n),e(1,n))this._rfbAuthScheme=1;else if(e(22,n))this._rfbAuthScheme=22;else if(e(16,n))this._rfbAuthScheme=16;else if(e(2,n))this._rfbAuthScheme=2;else{if(!e(19,n))return this._fail("Unsupported security types (types: "+n+")");this._rfbAuthScheme=19}this._sock.send([this._rfbAuthScheme])}else{if(this._sock.rQwait("security scheme",4))return!1;if(this._rfbAuthScheme=this._sock.rQshift32(),0==this._rfbAuthScheme)return this._rfbInitState="SecurityReason",this._securityContext="authentication scheme",this._securityStatus=1,this._initMsg()}return this._rfbInitState="Authentication",_n("Authenticating using scheme: "+this._rfbAuthScheme),this._initMsg()}_handleSecurityReason(){if(this._sock.rQwait("reason length",4))return!1;const e=this._sock.rQshift32();let t="";if(e>0){if(this._sock.rQwait("reason",e,4))return!1;t=this._sock.rQshiftStr(e)}return""!==t?(this.dispatchEvent(new CustomEvent("securityfailure",{detail:{status:this._securityStatus,reason:t}})),this._fail("Security negotiation failed on "+this._securityContext+" (reason: "+t+")")):(this.dispatchEvent(new CustomEvent("securityfailure",{detail:{status:this._securityStatus}})),this._fail("Security negotiation failed on "+this._securityContext))}_negotiateXvpAuth(){if(void 0===this._rfbCredentials.username||void 0===this._rfbCredentials.password||void 0===this._rfbCredentials.target)return this.dispatchEvent(new CustomEvent("credentialsrequired",{detail:{types:["username","password","target"]}})),!1;const e=String.fromCharCode(this._rfbCredentials.username.length)+String.fromCharCode(this._rfbCredentials.target.length)+this._rfbCredentials.username+this._rfbCredentials.target;return this._sock.sendString(e),this._rfbAuthScheme=2,this._negotiateAuthentication()}_negotiateVeNCryptAuth(){if(0==this._rfbVeNCryptState){if(this._sock.rQwait("vencrypt version",2))return!1;const e=this._sock.rQshift8(),t=this._sock.rQshift8();if(0!=e||2!=t)return this._fail("Unsupported VeNCrypt version "+e+"."+t);this._sock.send([0,2]),this._rfbVeNCryptState=1}if(1==this._rfbVeNCryptState){if(this._sock.rQwait("vencrypt ack",1))return!1;const e=this._sock.rQshift8();if(0!=e)return this._fail("VeNCrypt failure "+e);this._rfbVeNCryptState=2}if(2==this._rfbVeNCryptState){if(this._sock.rQwait("vencrypt subtypes length",1))return!1;const e=this._sock.rQshift8();if(e<1)return this._fail("VeNCrypt subtypes empty");this._rfbVeNCryptSubtypesLength=e,this._rfbVeNCryptState=3}if(3==this._rfbVeNCryptState){if(this._sock.rQwait("vencrypt subtypes",4*this._rfbVeNCryptSubtypesLength))return!1;const e=[];for(let t=0;t<this._rfbVeNCryptSubtypesLength;t++)e.push(this._sock.rQshift32());if(-1==e.indexOf(256))return this._fail("VeNCrypt Plain subtype not offered by server");this._sock.send([0,0,1,0]),this._rfbVeNCryptState=4}if(4==this._rfbVeNCryptState){if(!this._rfbCredentials.username||!this._rfbCredentials.password)return this.dispatchEvent(new CustomEvent("credentialsrequired",{detail:{types:["username","password"]}})),!1;const e=er(this._rfbCredentials.username),t=er(this._rfbCredentials.password);return this._sock.send([0,0,0,e.length]),this._sock.send([0,0,0,t.length]),this._sock.sendString(e),this._sock.sendString(t),this._rfbInitState="SecurityResult",!0}}_negotiateStdVNCAuth(){if(this._sock.rQwait("auth challenge",16))return!1;if(void 0===this._rfbCredentials.password)return this.dispatchEvent(new CustomEvent("credentialsrequired",{detail:{types:["password"]}})),!1;const e=Array.prototype.slice.call(this._sock.rQshiftBytes(16)),t=Nl.genDES(this._rfbCredentials.password,e);return this._sock.send(t),this._rfbInitState="SecurityResult",!0}_negotiateTightUnixAuth(){return void 0===this._rfbCredentials.username||void 0===this._rfbCredentials.password?(this.dispatchEvent(new CustomEvent("credentialsrequired",{detail:{types:["username","password"]}})),!1):(this._sock.send([0,0,0,this._rfbCredentials.username.length]),this._sock.send([0,0,0,this._rfbCredentials.password.length]),this._sock.sendString(this._rfbCredentials.username),this._sock.sendString(this._rfbCredentials.password),this._rfbInitState="SecurityResult",!0)}_negotiateTightTunnels(e){const t={0:{vendor:"TGHT",signature:"NOTUNNEL"}},n={};for(let r=0;r<e;r++){const e=this._sock.rQshift32(),t=this._sock.rQshiftStr(4),r=this._sock.rQshiftStr(8);n[e]={vendor:t,signature:r}}return _n("Server Tight tunnel types: "+n),n[1]&&"SICR"===n[1].vendor&&"SCHANNEL"===n[1].signature&&(_n("Detected Siemens server. Assuming NOTUNNEL support."),n[0]={vendor:"TGHT",signature:"NOTUNNEL"}),n[0]?n[0].vendor!=t[0].vendor||n[0].signature!=t[0].signature?this._fail("Client's tunnel type had the incorrect vendor or signature"):(_n("Selected tunnel type: "+t[0]),this._sock.send([0,0,0,0]),!1):this._fail("Server wanted tunnels, but doesn't support the notunnel type")}_negotiateTightAuth(){if(!this._rfbTightVNC){if(this._sock.rQwait("num tunnels",4))return!1;const e=this._sock.rQshift32();if(e>0&&this._sock.rQwait("tunnel capabilities",16*e,4))return!1;if(this._rfbTightVNC=!0,e>0)return this._negotiateTightTunnels(e),!1}if(this._sock.rQwait("sub auth count",4))return!1;const e=this._sock.rQshift32();if(0===e)return this._rfbInitState="SecurityResult",!0;if(this._sock.rQwait("sub auth capabilities",16*e,4))return!1;const t={STDVNOAUTH__:1,STDVVNCAUTH_:2,TGHTULGNAUTH:129},n=[];for(let r=0;r<e;r++){this._sock.rQshift32();const e=this._sock.rQshiftStr(12);n.push(e)}_n("Server Tight authentication types: "+n);for(let r in t)if(-1!=n.indexOf(r))switch(this._sock.send([0,0,0,t[r]]),_n("Selected authentication type: "+r),r){case"STDVNOAUTH__":return this._rfbInitState="SecurityResult",!0;case"STDVVNCAUTH_":return this._rfbAuthScheme=2,this._initMsg();case"TGHTULGNAUTH":return this._rfbAuthScheme=129,this._initMsg();default:return this._fail("Unsupported tiny auth scheme (scheme: "+r+")")}return this._fail("No supported sub-auth types!")}_negotiateAuthentication(){switch(this._rfbAuthScheme){case 1:return this._rfbVersion>=3.8?(this._rfbInitState="SecurityResult",!0):(this._rfbInitState="ClientInitialisation",this._initMsg());case 22:return this._negotiateXvpAuth();case 2:return this._negotiateStdVNCAuth();case 16:return this._negotiateTightAuth();case 19:return this._negotiateVeNCryptAuth();case 129:return this._negotiateTightUnixAuth();default:return this._fail("Unsupported auth scheme (scheme: "+this._rfbAuthScheme+")")}}_handleSecurityResult(){if(this._sock.rQwait("VNC auth response ",4))return!1;const e=this._sock.rQshift32();return 0===e?(this._rfbInitState="ClientInitialisation",_n("Authentication OK"),this._initMsg()):this._rfbVersion>=3.8?(this._rfbInitState="SecurityReason",this._securityContext="security result",this._securityStatus=e,this._initMsg()):(this.dispatchEvent(new CustomEvent("securityfailure",{detail:{status:e}})),this._fail("Security handshake failed"))}_negotiateServerInit(){if(this._sock.rQwait("server initialization",24))return!1;const e=this._sock.rQshift16(),t=this._sock.rQshift16(),n=this._sock.rQshift8(),r=this._sock.rQshift8(),i=this._sock.rQshift8(),o=this._sock.rQshift8(),a=this._sock.rQshift16(),s=this._sock.rQshift16(),l=this._sock.rQshift16(),c=this._sock.rQshift8(),u=this._sock.rQshift8(),d=this._sock.rQshift8();this._sock.rQskipBytes(3);const h=this._sock.rQshift32();if(this._sock.rQwait("server init name",h,24))return!1;let p=this._sock.rQshiftStr(h);if(p=Zn(p,!0),this._rfbTightVNC){if(this._sock.rQwait("TightVNC extended server init header",8,24+h))return!1;const e=this._sock.rQshift16(),t=this._sock.rQshift16(),n=this._sock.rQshift16();this._sock.rQskipBytes(2);const r=16*(e+t+n);if(this._sock.rQwait("TightVNC extended server init header",r,32+h))return!1;this._sock.rQskipBytes(16*e),this._sock.rQskipBytes(16*t),this._sock.rQskipBytes(16*n)}return wn("Screen: "+e+"x"+t+", bpp: "+n+", depth: "+r+", bigEndian: "+i+", trueColor: "+o+", redMax: "+a+", greenMax: "+s+", blueMax: "+l+", redShift: "+c+", greenShift: "+u+", blueShift: "+d),this._setDesktopName(p),this._resize(e,t),this._viewOnly||this._keyboard.grab(),this._fbDepth=24,"Intel(r) AMT KVM"===this._fbName&&(En("Intel AMT KVM only supports 8/16 bit depths. Using low color mode."),this._fbDepth=8),Nl.messages.pixelFormat(this._sock,this._fbDepth,!0),this._sendEncodings(),Nl.messages.fbUpdateRequest(this._sock,!1,0,0,this._fbWidth,this._fbHeight),this._updateConnectionState("connected"),!0}_sendEncodings(){const e=[];e.push(ol.encodingCopyRect),24==this._fbDepth&&(e.push(ol.encodingTight),e.push(ol.encodingTightPNG),e.push(ol.encodingHextile),e.push(ol.encodingRRE)),e.push(ol.encodingRaw),e.push(ol.pseudoEncodingQualityLevel0+this._qualityLevel),e.push(ol.pseudoEncodingCompressLevel0+this._compressionLevel),e.push(ol.pseudoEncodingDesktopSize),e.push(ol.pseudoEncodingLastRect),e.push(ol.pseudoEncodingQEMUExtendedKeyEvent),e.push(ol.pseudoEncodingExtendedDesktopSize),e.push(ol.pseudoEncodingXvp),e.push(ol.pseudoEncodingFence),e.push(ol.pseudoEncodingContinuousUpdates),e.push(ol.pseudoEncodingDesktopName),e.push(ol.pseudoEncodingExtendedClipboard),24==this._fbDepth&&(e.push(ol.pseudoEncodingVMwareCursor),e.push(ol.pseudoEncodingCursor)),Nl.messages.clientEncodings(this._sock,e)}_initMsg(){switch(this._rfbInitState){case"ProtocolVersion":return this._negotiateProtocolVersion();case"Security":return this._negotiateSecurity();case"Authentication":return this._negotiateAuthentication();case"SecurityResult":return this._handleSecurityResult();case"SecurityReason":return this._handleSecurityReason();case"ClientInitialisation":return this._sock.send([this._shared?1:0]),this._rfbInitState="ServerInitialisation",!0;case"ServerInitialisation":return this._negotiateServerInit();default:return this._fail("Unknown init state (state: "+this._rfbInitState+")")}}_handleSetColourMapMsg(){return _n("SetColorMapEntries"),this._fail("Unexpected SetColorMapEntries message")}_handleServerCutText(){if(_n("ServerCutText"),this._sock.rQwait("ServerCutText header",7,1))return!1;this._sock.rQskipBytes(3);let e=this._sock.rQshift32();if(e=Jn(e),this._sock.rQwait("ServerCutText content",Math.abs(e),8))return!1;if(e>=0){const t=this._sock.rQshiftStr(e);if(this._viewOnly)return!0;this.dispatchEvent(new CustomEvent("clipboard",{detail:{text:t}}))}else{e=Math.abs(e);const t=this._sock.rQshift32();let n=65535&t,r=4278190080&t,i=!!(r&El);if(i){this._clipboardServerCapabilitiesFormats={},this._clipboardServerCapabilitiesActions={};for(let t=0;t<=15;t++){let e=1<<t;n&e&&(this._clipboardServerCapabilitiesFormats[e]=!0,this._sock.rQshift32())}for(let t=24;t<=31;t++){let e=1<<t;this._clipboardServerCapabilitiesActions[e]=!!(r&e)}let e=[El,Sl,xl,kl,Al];Nl.messages.extendedClipboardCaps(this._sock,e,{extendedClipboardFormatText:0})}else if(r===Sl){if(this._viewOnly)return!0;null!=this._clipboardText&&this._clipboardServerCapabilitiesActions[Al]&&n&wl&&Nl.messages.extendedClipboardProvide(this._sock,[wl],[this._clipboardText])}else if(r===xl){if(this._viewOnly)return!0;this._clipboardServerCapabilitiesActions[kl]&&(null!=this._clipboardText?Nl.messages.extendedClipboardNotify(this._sock,[wl]):Nl.messages.extendedClipboardNotify(this._sock,[]))}else if(r===kl){if(this._viewOnly)return!0;this._clipboardServerCapabilitiesActions[Sl]&&n&wl&&Nl.messages.extendedClipboardRequest(this._sock,[wl])}else{if(r!==Al)return this._fail("Unexpected action in extended clipboard message: "+r);{if(this._viewOnly)return!0;if(!(n&wl))return!0;this._clipboardText=null;let t=this._sock.rQshiftBytes(e-4),r=new Ki,i=null;r.setInput(t);for(let e=0;e<=15;e++){let t=1<<e;if(n&t){let e=0,n=r.inflate(4);e|=n[0]<<24,e|=n[1]<<16,e|=n[2]<<8,e|=n[3];let o=r.inflate(e);t===wl&&(i=o)}}if(r.setInput(null),null!==i){let e="";for(let t=0;t<i.length;t++)e+=String.fromCharCode(i[t]);i=e,i=Zn(i),i.length>0&&"\0"===i.charAt(i.length-1)&&(i=i.slice(0,-1)),i=i.replace("\r\n","\n"),this.dispatchEvent(new CustomEvent("clipboard",{detail:{text:i}}))}}}}return!0}_handleServerFenceMsg(){if(this._sock.rQwait("ServerFence header",8,1))return!1;this._sock.rQskipBytes(3);let e=this._sock.rQshift32(),t=this._sock.rQshift8();if(this._sock.rQwait("ServerFence payload",t,9))return!1;t>64&&(En("Bad payload length ("+t+") in fence response"),t=64);const n=this._sock.rQshiftStr(t);return this._supportsFence=!0,e&1<<31?(e&=3,Nl.messages.clientFence(this._sock,e,n),!0):this._fail("Unexpected fence response")}_handleXvpMsg(){if(this._sock.rQwait("XVP version and message",3,1))return!1;this._sock.rQskipBytes(1);const e=this._sock.rQshift8(),t=this._sock.rQshift8();switch(t){case 0:Sn("XVP Operation Failed");break;case 1:this._rfbXvpVer=e,wn("XVP extensions enabled (version "+this._rfbXvpVer+")"),this._setCapability("power",!0);break;default:this._fail("Illegal server XVP message (msg: "+t+")");break}return!0}_normalMsg(){let e,t,n;switch(e=this._FBU.rects>0?0:this._sock.rQshift8(),e){case 0:return n=this._framebufferUpdate(),n&&!this._enabledContinuousUpdates&&Nl.messages.fbUpdateRequest(this._sock,!0,0,0,this._fbWidth,this._fbHeight),n;case 1:return this._handleSetColourMapMsg();case 2:return _n("Bell"),this.dispatchEvent(new CustomEvent("bell",{detail:{}})),!0;case 3:return this._handleServerCutText();case 150:return t=!this._supportsContinuousUpdates,this._supportsContinuousUpdates=!0,this._enabledContinuousUpdates=!1,t&&(this._enabledContinuousUpdates=!0,this._updateContinuousUpdates(),wn("Enabling continuous updates.")),!0;case 248:return this._handleServerFenceMsg();case 250:return this._handleXvpMsg();default:return this._fail("Unexpected server message (type "+e+")"),_n("sock.rQslice(0, 30): "+this._sock.rQslice(0,30)),!0}}_onFlush(){this._flushing=!1,this._sock.rQlen>0&&this._handleMessage()}_framebufferUpdate(){if(0===this._FBU.rects){if(this._sock.rQwait("FBU header",3,1))return!1;if(this._sock.rQskipBytes(1),this._FBU.rects=this._sock.rQshift16(),this._display.pending())return this._flushing=!0,this._display.flush(),!1}while(this._FBU.rects>0){if(null===this._FBU.encoding){if(this._sock.rQwait("rect header",12))return!1;const e=this._sock.rQshiftBytes(12);this._FBU.x=(e[0]<<8)+e[1],this._FBU.y=(e[2]<<8)+e[3],this._FBU.width=(e[4]<<8)+e[5],this._FBU.height=(e[6]<<8)+e[7],this._FBU.encoding=parseInt((e[8]<<24)+(e[9]<<16)+(e[10]<<8)+e[11],10)}if(!this._handleRect())return!1;this._FBU.rects--,this._FBU.encoding=null}return this._display.flip(),!0}_handleRect(){switch(this._FBU.encoding){case ol.pseudoEncodingLastRect:return this._FBU.rects=1,!0;case ol.pseudoEncodingVMwareCursor:return this._handleVMwareCursor();case ol.pseudoEncodingCursor:return this._handleCursor();case ol.pseudoEncodingQEMUExtendedKeyEvent:try{const e=document.createEvent("keyboardEvent");void 0!==e.code&&(this._qemuExtKeyEventSupported=!0)}catch(qa){}return!0;case ol.pseudoEncodingDesktopName:return this._handleDesktopName();case ol.pseudoEncodingDesktopSize:return this._resize(this._FBU.width,this._FBU.height),!0;case ol.pseudoEncodingExtendedDesktopSize:return this._handleExtendedDesktopSize();default:return this._handleDataRect()}}_handleVMwareCursor(){const e=this._FBU.x,t=this._FBU.y,n=this._FBU.width,r=this._FBU.height;if(this._sock.rQwait("VMware cursor encoding",1))return!1;const i=this._sock.rQshift8();let o;this._sock.rQshift8();const a=4;if(0==i){const e=-256;if(o=new Array(n*r*a),this._sock.rQwait("VMware cursor classic encoding",n*r*a*2,2))return!1;let t=new Array(n*r);for(let o=0;o<n*r;o++)t[o]=this._sock.rQshift32();let i=new Array(n*r);for(let o=0;o<n*r;o++)i[o]=this._sock.rQshift32();for(let s=0;s<n*r;s++)if(0==t[s]){let e=i[s],t=e>>8&255,n=e>>16&255,r=e>>24&255;o[s*a]=t,o[s*a+1]=n,o[s*a+2]=r,o[s*a+3]=255}else(t[s]&e)==e?0==i[s]?(o[s*a]=0,o[s*a+1]=0,o[s*a+2]=0,o[s*a+3]=0):(i[s],o[s*a]=0,o[s*a+1]=0,o[s*a+2]=0,o[s*a+3]=255):(o[s*a]=0,o[s*a+1]=0,o[s*a+2]=0,o[s*a+3]=255)}else{if(1!=i)return En("The given cursor type is not supported: "+i+" given."),!1;if(this._sock.rQwait("VMware cursor alpha encoding",n*r*4,2))return!1;o=new Array(n*r*a);for(let e=0;e<n*r;e++){let t=this._sock.rQshift32();o[4*e]=t>>24&255,o[4*e+1]=t>>16&255,o[4*e+2]=t>>8&255,o[4*e+3]=255&t}}return this._updateCursor(o,e,t,n,r),!0}_handleCursor(){const e=this._FBU.x,t=this._FBU.y,n=this._FBU.width,r=this._FBU.height,i=n*r*4,o=Math.ceil(n/8)*r;let a=i+o;if(this._sock.rQwait("cursor encoding",a))return!1;const s=this._sock.rQshiftBytes(i),l=this._sock.rQshiftBytes(o);let c=new Uint8Array(n*r*4),u=0;for(let d=0;d<r;d++)for(let e=0;e<n;e++){let t=d*Math.ceil(n/8)+Math.floor(e/8),r=l[t]<<e%8&128?255:0;c[u]=s[u+2],c[u+1]=s[u+1],c[u+2]=s[u],c[u+3]=r,u+=4}return this._updateCursor(c,e,t,n,r),!0}_handleDesktopName(){if(this._sock.rQwait("DesktopName",4))return!1;let e=this._sock.rQshift32();if(this._sock.rQwait("DesktopName",e,4))return!1;let t=this._sock.rQshiftStr(e);return t=Zn(t,!0),this._setDesktopName(t),!0}_handleExtendedDesktopSize(){if(this._sock.rQwait("ExtendedDesktopSize",4))return!1;const e=this._sock.rQpeek8();let t=4+16*e;if(this._sock.rQwait("ExtendedDesktopSize",t))return!1;const n=!this._supportsSetDesktopSize;this._supportsSetDesktopSize=!0,n&&this._requestRemoteResize(),this._sock.rQskipBytes(1),this._sock.rQskipBytes(3);for(let r=0;r<e;r+=1)0===r?(this._screenID=this._sock.rQshiftBytes(4),this._sock.rQskipBytes(2),this._sock.rQskipBytes(2),this._sock.rQskipBytes(2),this._sock.rQskipBytes(2),this._screenFlags=this._sock.rQshiftBytes(4)):this._sock.rQskipBytes(16);if(1===this._FBU.x&&0!==this._FBU.y){let e="";switch(this._FBU.y){case 1:e="Resize is administratively prohibited";break;case 2:e="Out of resources";break;case 3:e="Invalid screen layout";break;default:e="Unknown reason";break}En("Server did not accept the resize request: "+e)}else this._resize(this._FBU.width,this._FBU.height);return!0}_handleDataRect(){let e=this._decoders[this._FBU.encoding];if(!e)return this._fail("Unsupported encoding (encoding: "+this._FBU.encoding+")"),!1;try{return e.decodeRect(this._FBU.x,this._FBU.y,this._FBU.width,this._FBU.height,this._sock,this._display,this._fbDepth)}catch(qa){return this._fail("Error decoding rect: "+qa),!1}}_updateContinuousUpdates(){this._enabledContinuousUpdates&&Nl.messages.enableContinuousUpdates(this._sock,!0,0,0,this._fbWidth,this._fbHeight)}_resize(e,t){this._fbWidth=e,this._fbHeight=t,this._display.resize(this._fbWidth,this._fbHeight),this._updateClip(),this._updateScale(),this._updateContinuousUpdates()}_xvpOp(e,t){this._rfbXvpVer<e||(wn("Sending XVP operation "+t+" (version "+e+")"),Nl.messages.xvpOp(this._sock,e,t))}_updateCursor(e,t,n,r,i){this._cursorImage={rgbaPixels:e,hotx:t,hoty:n,w:r,h:i},this._refreshCursor()}_shouldShowDotCursor(){if(!this._showDotCursor)return!1;for(let e=3;e<this._cursorImage.rgbaPixels.length;e+=4)if(this._cursorImage.rgbaPixels[e])return!1;return!0}_refreshCursor(){if("connecting"!==this._rfbConnectionState&&"connected"!==this._rfbConnectionState)return;const e=this._shouldShowDotCursor()?Nl.cursors.dot:this._cursorImage;this._cursor.change(e.rgbaPixels,e.hotx,e.hoty,e.w,e.h)}static genDES(e,t){const n=e.split("").map((e=>e.charCodeAt(0)));return new rl(n).encrypt(t)}}Nl.messages={keyEvent(e,t,n){const r=e._sQ,i=e._sQlen;r[i]=4,r[i+1]=n,r[i+2]=0,r[i+3]=0,r[i+4]=t>>24,r[i+5]=t>>16,r[i+6]=t>>8,r[i+7]=t,e._sQlen+=8,e.flush()},QEMUExtendedKeyEvent(e,t,n,r){function i(e){const t=r>>8,n=255&r;return 224===t&&n<127?128|n:e}const o=e._sQ,a=e._sQlen;o[a]=255,o[a+1]=0,o[a+2]=n>>8,o[a+3]=n,o[a+4]=t>>24,o[a+5]=t>>16,o[a+6]=t>>8,o[a+7]=t;const s=i(r);o[a+8]=s>>24,o[a+9]=s>>16,o[a+10]=s>>8,o[a+11]=s,e._sQlen+=12,e.flush()},pointerEvent(e,t,n,r){const i=e._sQ,o=e._sQlen;i[o]=5,i[o+1]=r,i[o+2]=t>>8,i[o+3]=t,i[o+4]=n>>8,i[o+5]=n,e._sQlen+=6,e.flush()},_buildExtendedClipboardFlags(e,t){let n=new Uint8Array(4),r=0,i=0;for(let o=0;o<e.length;o++)i|=e[o];for(let o=0;o<t.length;o++)r|=t[o];return n[0]=i>>24,n[1]=0,n[2]=0,n[3]=r,n},extendedClipboardProvide(e,t,n){let r=new vs,i=[];for(let s=0;s<t.length;s++){if(t[s]!=wl)throw new Error("Unsupported extended clipboard format for Provide message.");n[s]=n[s].replace(/\r\n|\r|\n/gm,"\r\n");let e=er(n[s]+"\0");i.push(e.length>>24&255,e.length>>16&255,e.length>>8&255,255&e.length);for(let t=0;t<e.length;t++)i.push(e.charCodeAt(t))}let o=r.deflate(new Uint8Array(i)),a=new Uint8Array(4+o.length);a.set(Nl.messages._buildExtendedClipboardFlags([Al],t)),a.set(o,4),Nl.messages.clientCutText(e,a,!0)},extendedClipboardNotify(e,t){let n=Nl.messages._buildExtendedClipboardFlags([kl],t);Nl.messages.clientCutText(e,n,!0)},extendedClipboardRequest(e,t){let n=Nl.messages._buildExtendedClipboardFlags([Sl],t);Nl.messages.clientCutText(e,n,!0)},extendedClipboardCaps(e,t,n){let r=Object.keys(n),i=new Uint8Array(4+4*r.length);r.map((e=>parseInt(e))),r.sort(((e,t)=>e-t)),i.set(Nl.messages._buildExtendedClipboardFlags(t,[]));let o=4;for(let a=0;a<r.length;a++)i[o]=n[r[a]]>>24,i[o+1]=n[r[a]]>>16,i[o+2]=n[r[a]]>>8,i[o+3]=n[r[a]]|0,o+=4,i[3]|=1<<r[a];Nl.messages.clientCutText(e,i,!0)},clientCutText(e,t,n=!1){const r=e._sQ,i=e._sQlen;let o;r[i]=6,r[i+1]=0,r[i+2]=0,r[i+3]=0,o=n?Qn(-t.length):t.length,r[i+4]=o>>24,r[i+5]=o>>16,r[i+6]=o>>8,r[i+7]=o,e._sQlen+=8;let a=0,s=t.length;while(s>0){let n=Math.min(s,e._sQbufferSize-e._sQlen);for(let i=0;i<n;i++)r[e._sQlen+i]=t[a+i];e._sQlen+=n,e.flush(),s-=n,a+=n}},setDesktopSize(e,t,n,r,i){const o=e._sQ,a=e._sQlen;o[a]=251,o[a+1]=0,o[a+2]=t>>8,o[a+3]=t,o[a+4]=n>>8,o[a+5]=n,o[a+6]=1,o[a+7]=0,o[a+8]=r>>24,o[a+9]=r>>16,o[a+10]=r>>8,o[a+11]=r,o[a+12]=0,o[a+13]=0,o[a+14]=0,o[a+15]=0,o[a+16]=t>>8,o[a+17]=t,o[a+18]=n>>8,o[a+19]=n,o[a+20]=i>>24,o[a+21]=i>>16,o[a+22]=i>>8,o[a+23]=i,e._sQlen+=24,e.flush()},clientFence(e,t,n){const r=e._sQ,i=e._sQlen;r[i]=248,r[i+1]=0,r[i+2]=0,r[i+3]=0,r[i+4]=t>>24,r[i+5]=t>>16,r[i+6]=t>>8,r[i+7]=t;const o=n.length;r[i+8]=o;for(let a=0;a<o;a++)r[i+9+a]=n.charCodeAt(a);e._sQlen+=9+o,e.flush()},enableContinuousUpdates(e,t,n,r,i,o){const a=e._sQ,s=e._sQlen;a[s]=150,a[s+1]=t,a[s+2]=n>>8,a[s+3]=n,a[s+4]=r>>8,a[s+5]=r,a[s+6]=i>>8,a[s+7]=i,a[s+8]=o>>8,a[s+9]=o,e._sQlen+=10,e.flush()},pixelFormat(e,t,n){const r=e._sQ,i=e._sQlen;let o;o=t>16?32:t>8?16:8;const a=Math.floor(t/3);r[i]=0,r[i+1]=0,r[i+2]=0,r[i+3]=0,r[i+4]=o,r[i+5]=t,r[i+6]=0,r[i+7]=n?1:0,r[i+8]=0,r[i+9]=(1<<a)-1,r[i+10]=0,r[i+11]=(1<<a)-1,r[i+12]=0,r[i+13]=(1<<a)-1,r[i+14]=2*a,r[i+15]=1*a,r[i+16]=0*a,r[i+17]=0,r[i+18]=0,r[i+19]=0,e._sQlen+=20,e.flush()},clientEncodings(e,t){const n=e._sQ,r=e._sQlen;n[r]=2,n[r+1]=0,n[r+2]=t.length>>8,n[r+3]=t.length;let i=r+4;for(let o=0;o<t.length;o++){const e=t[o];n[i]=e>>24,n[i+1]=e>>16,n[i+2]=e>>8,n[i+3]=e,i+=4}e._sQlen+=i-r,e.flush()},fbUpdateRequest(e,t,n,r,i,o){const a=e._sQ,s=e._sQlen;"undefined"===typeof n&&(n=0),"undefined"===typeof r&&(r=0),a[s]=3,a[s+1]=t?1:0,a[s+2]=n>>8&255,a[s+3]=255&n,a[s+4]=r>>8&255,a[s+5]=255&r,a[s+6]=i>>8&255,a[s+7]=255&i,a[s+8]=o>>8&255,a[s+9]=255&o,e._sQlen+=10,e.flush()},xvpOp(e,t,n){const r=e._sQ,i=e._sQlen;r[i]=250,r[i+1]=0,r[i+2]=t,r[i+3]=n,e._sQlen+=4,e.flush()}},Nl.cursors={none:{rgbaPixels:new Uint8Array,w:0,h:0,hotx:0,hoty:0},dot:{rgbaPixels:new Uint8Array([255,255,255,255,0,0,0,255,255,255,255,255,0,0,0,255,0,0,0,0,0,0,0,255,255,255,255,255,0,0,0,255,255,255,255,255]),w:3,h:3,hotx:1,hoty:1}};var Tl={props:{url:{type:String,default:""}},components:{BrandImage:Q},data(){return{rfb:null,connected:!1,disconnected:!1,reconnectDelay:3e3,reconnecting:!1,maximumRetryTimes:10,retryTimes:0,setTimeout:null}},mounted(){this.$nextTick((()=>{this.connect()}))},beforeUnmount(){this.clearTimeout()},methods:{connect(){const e=new Nl(this.$refs.view,this.url);e.addEventListener("connect",(()=>{this.clearTimeout(),this.connected=!0,this.retryTimes=0,this.reconnecting=!1})),e.addEventListener("disconnect",(e=>{this.clearTimeout(),this.disconnected=!0,this.rfb=null,this.reconnect()})),this.rfb=e},reconnect(){if(this.retryTimes>=this.maximumRetryTimes)return this.reconnecting=!1,this.connected=!0,void(this.disconnected=!0);this.retryTimes+=1,this.reconnecting=!0,this.connected=!1,this.disconnected=!1,this.setTimeout=setTimeout((()=>{this.connect()}),this.reconnectDelay)},clearTimeout(){this.setTimeout&&clearTimeout(this.setTimeout)},disconnect(){this.rfb.disconnect()},ctrlAltDelete(){this.rfb.sendCtrlAltDel()},sendKey(e,t,n){this.rfb.sendKey(e,t,n)}}};o(49608);const Cl=(0,u.A)(Tl,[["render",Yn],["__scopeId","data-v-56da10be"]]);var Rl=Cl;const Ol={class:"list-unstyled dropdown combination-keys__container"},Il=["onClick"],Dl=["onClick"];function Ll(e,t,n,r,o,a){const s=(0,i.resolveComponent)("novnc-console-item",!0),l=(0,i.resolveComponent)("v-dropdown");return(0,i.openBlock)(),(0,i.createElementBlock)("ul",Ol,[((0,i.openBlock)(!0),(0,i.createElementBlock)(i.Fragment,null,(0,i.renderList)(n.items,((e,t)=>((0,i.openBlock)(),(0,i.createElementBlock)("li",{key:t},[e.keys?((0,i.openBlock)(),(0,i.createBlock)(l,{key:0,placement:"right-start",trigger:"click",container:!1},{popper:(0,i.withCtx)((()=>[(0,i.createVNode)(s,{items:e.keys,path:n.path,pos:n.pos+1,onUpdate:a.addKeys,onSendKeys:a.sendKeys},null,8,["items","path","pos","onUpdate","onSendKeys"])])),default:(0,i.withCtx)((()=>[(0,i.createElementVNode)("span",{class:(0,i.normalizeClass)([{open:a.getOpenStatus(t,n.pos)},"p-10 hand"]),onClick:e=>a.addKeys({key:t,pos:n.pos})},(0,i.toDisplayString)(e.label),11,Il)])),_:2},1024)):((0,i.openBlock)(),(0,i.createElementBlock)("span",{key:1,class:"p-10 hand",onClick:e=>a.keysDown(t,n.pos)},(0,i.toDisplayString)(e.label),9,Dl))])))),128))])}var Pl={name:"NovncConsoleItem",emits:["send-keys","update"],props:{items:{type:Object,required:!0,default:()=>({})},path:{type:Array,required:!0,default:()=>[]},pos:{type:Number,required:!0,default:0}},methods:{keysDown(e,t){this.addKeys({key:e,pos:t}),this.$emit("send-keys")},addKeys({key:e,pos:t}){this.$emit("update",{key:e,pos:t})},sendKeys(){this.$emit("send-keys")},getOpenStatus(e,t){return this.path[t]===e}}};o(83301);const Ml=(0,u.A)(Pl,[["render",Ll],["__scopeId","data-v-11c334cb"]]);var Fl=Ml;const Bl=e=>((0,i.pushScopeId)("data-v-7821dcb9"),e=e(),(0,i.popScopeId)(),e),$l={class:"row"},jl={class:"col span-12"},Ul={class:"row"},Vl={class:"col span-12"},Kl=["disabled"],Hl=Bl((()=>(0,i.createElementVNode)("hr",null,null,-1))),Gl={class:"displayed-keys mt-20"},zl={class:"text-default-text"},Xl={class:"displayed-banners"},ql={class:"actions"};function Wl(e,t,n,r,o,a){const s=(0,i.resolveComponent)("t"),l=(0,i.resolveComponent)("Banner"),c=(0,i.resolveComponent)("AsyncButton"),u=(0,i.resolveComponent)("ModalWithCard"),d=(0,i.resolveDirective)("clean-html");return(0,i.openBlock)(),(0,i.createBlock)(u,{name:"recordShortcutKeys",width:550},{title:(0,i.withCtx)((()=>[(0,i.createVNode)(s,{k:"harvester.virtualMachine.detail.console.customShortcutKeys"})])),content:(0,i.withCtx)((()=>[(0,i.createElementVNode)("div",$l,[(0,i.createElementVNode)("div",jl,[(0,i.createVNode)(l,{color:"info"},{default:(0,i.withCtx)((()=>[(0,i.withDirectives)((0,i.createElementVNode)("span",null,null,512),[[d,a.keysRecordFormat]])])),_:1})])]),(0,i.createElementVNode)("div",Ul,[(0,i.createElementVNode)("div",Vl,[(0,i.createElementVNode)("button",{class:"btn bg-primary",onClick:t[0]||(t[0]=(...e)=>a.toggleRecording&&a.toggleRecording(...e))},[(0,i.createVNode)(s,{k:a.recordButton},null,8,["k"]),(0,i.createElementVNode)("i",{class:(0,i.normalizeClass)(["icon icon-fw",o.isRecording?"icon-dot-open":"icon-dot"])},null,2)]),(0,i.createElementVNode)("button",{disabled:!a.canAdd,class:"btn bg-primary",onClick:t[1]||(t[1]=(...e)=>a.addShortcutKey&&a.addShortcutKey(...e))},[(0,i.createVNode)(s,{k:"generic.add"})],8,Kl)])]),Hl,(0,i.createElementVNode)("div",Gl,[(0,i.withDirectives)((0,i.createElementVNode)("h4",zl,null,512),[[d,e.t("harvester.virtualMachine.detail.console.record.preferredKeys")]]),(0,i.createElementVNode)("div",Xl,[((0,i.openBlock)(!0),(0,i.createElementBlock)(i.Fragment,null,(0,i.renderList)(a.displayedKeys,((e,t)=>((0,i.openBlock)(),(0,i.createBlock)(l,{key:t},{default:(0,i.withCtx)((()=>[(0,i.withDirectives)((0,i.createElementVNode)("span",null,null,512),[[d,e]])])),_:2},1024)))),128))])])])),footer:(0,i.withCtx)((()=>[(0,i.createElementVNode)("div",ql,[(0,i.createElementVNode)("button",{class:"btn role-secondary mr-20",onClick:t[2]||(t[2]=(0,i.withModifiers)(((...e)=>a.closeRecordingModal&&a.closeRecordingModal(...e)),["prevent"]))},[(0,i.createVNode)(s,{k:"generic.close"})]),(0,i.createVNode)(c,{mode:"done",onClick:a.saveKeys},null,8,["onClick"])])])),_:1})}var Yl=o(52167),Ql=o(1804),Jl=o(6624);const Zl="prefered-shortcut-keys";var ec={name:"NovncConsoleCustomKeys",emits:["close"],components:{ModalWithCard:Jl.A,Banner:Yl.A,AsyncButton:Ql.A},data(){return{keysRecord:[],addedShortcutKeys:[],preferredShortcutKeys:[],isRecording:!1}},computed:{savedShortcutKeys(){const e=this.$store.getters["management/all"](X.m4.PREFERENCE),t=e?.[0]?.data?.[Zl];let n=[];if(!t)return n;try{n=JSON.parse(t)}catch(qa){this.$store.dispatch("growl/fromError",{title:this.t("generic.notification.title.error",{name:this.t("harvester.virtualMachine.detail.console.customShortcutKeys")}),err:qa},{root:!0})}return n},displayedKeys(){const e=this.addedShortcutKeys.concat(this.preferredShortcutKeys).map((e=>{const t=e.map((e=>` <code>${e.key.charAt(0).toUpperCase()+e.key.slice(1)}</code>`));return t.join(",")}));return e},recordButton(){return this.isRecording?"harvester.virtualMachine.detail.console.record.stop":"harvester.virtualMachine.detail.console.record.start"},keysRecordFormat(){if(!this.isRecording&&0===this.keysRecord.length)return this.t("harvester.virtualMachine.detail.console.record.tips");const e=this.keysRecord.map((e=>` <code>${e.key.charAt(0).toUpperCase()+e.key.slice(1)}</code>`));return`Keys: ${e.join(",")}`},canAdd(){const e=this.keysRecord.length>0;let t=[].concat(this.preferredShortcutKeys,this.addedShortcutKeys);return!!e&&(t.push(this.keysRecord),t=t.map((e=>{const t=e.map((e=>e.key));return t.join(",")})),t.length===new Set(t).size)}},watch:{savedShortcutKeys:{handler(){this.preferredShortcutKeys=[].concat(this.savedShortcutKeys)||[]},immediate:!0}},methods:{closeRecordingModal(){window.removeEventListener("keydown",this.handleShortcut),this.$emit("close")},toggleRecording(){this.isRecording=!this.isRecording,this.isRecording?(this.keysRecord=[],window.addEventListener("keydown",this.handleShortcut)):window.removeEventListener("keydown",this.handleShortcut)},handleShortcut(e){e.preventDefault();const{key:t,keyCode:n,code:r,location:i,charCode:o}=e;this.keysRecord.push({key:t,keyCode:n,code:r,location:i,charCode:o})},addShortcutKey(){this.addedShortcutKeys.push([].concat(this.keysRecord))},removeKey(e){const t=e.replace(/(\s*)<code>|<\/code>/g,"").replace(/\s*,\s*/g,",");this.addedShortcutKeys=this.addedShortcutKeys.filter((e=>{const n=e.map((e=>e.key.charAt(0).toUpperCase()+e.key.slice(1))).join(",");return n!==t})),this.preferredShortcutKeys=this.preferredShortcutKeys.filter((e=>{const n=e.map((e=>e.key.charAt(0).toUpperCase()+e.key.slice(1))).join(",");return n!==t}))},async saveKeys(e){const t=[].concat(this.preferredShortcutKeys,this.addedShortcutKeys),n=this.$store.getters["management/all"](X.m4.PREFERENCE)?.[0];try{n.data[Zl]=JSON.stringify(t),await n.save(),this.closeRecordingModal(),e(!0)}catch(qa){e(!1)}}}};o(72001);const tc=(0,u.A)(ec,[["render",Wl],["__scopeId","data-v-7821dcb9"]]);var nc=tc;const rc="prefered-shortcut-keys",ic={ControlLeft:{label:"Ctrl",value:ln.XK_Control_L},AltLeft:{label:"Alt",value:ln.XK_Alt_L}},oc={Delete:{label:"Del",value:ln.XK_Delete},PrintScreen:{label:"Print Screen",value:ln.XK_Print}},ac={KeyN:{label:"N",value:ln.XK_n},KeyT:{label:"T",value:ln.XK_t},KeyW:{label:"W",value:ln.XK_w},KeyY:{label:"Y",value:ln.XK_y}},sc={F1:{label:"F1",value:ln.XK_F1},F2:{label:"F2",value:ln.XK_F2},F3:{label:"F3",value:ln.XK_F3},F4:{label:"F4",value:ln.XK_F4},F5:{label:"F5",value:ln.XK_F5},F6:{label:"F6",value:ln.XK_F6},F7:{label:"F7",value:ln.XK_F7},F8:{label:"F8",value:ln.XK_F8},F9:{label:"F9",value:ln.XK_F9},F10:{label:"F10",value:ln.XK_F10},F11:{label:"F11",value:ln.XK_F11},F12:{label:"F12",value:ln.XK_F12}};var lc={name:"NovncConsoleWrapper",components:{NovncConsole:Rl,NovncConsoleItem:Fl,NovncConsoleCustomKeys:nc},async fetch(){const e={vmResource:this.$store.dispatch("harvester/find",{type:l.rk.VM,id:this.value.id})},t=await(0,ve.kR)(e);this.vmResource=t.vmResource},props:{value:{type:Object,required:!0,default:()=>({})}},data(){return{keysRecord:[],vmResource:{},renderKeysModal:!1,currentUser:null,hideCustomKeysBar:!1}},computed:{savedShortcutKeys(){const e=this.$store.getters["management/all"](X.m4.PREFERENCE),t=e?.[0]?.data?.[rc];let n=[];if(!e?.[0]?.data)return this.hideCustomKeysBar=!0,n;if(!t)return n;try{n=JSON.parse(t)}catch(qa){this.$store.dispatch("growl/fromError",{title:this.t("generic.notification.title.error",{name:(0,sn.ZD)(this.value.metadata.name)}),err:qa},{root:!0})}return n},isDown(){return this.isEmpty(this.value)},url(){const e=`${window.location.hostname}:${window.location.port}`;return`wss://${e}${this.value?.getVMIApiPath}`},allKeys(){return{...ic,...oc,...ac,...sc}},keymap(){const e={...ic,PrintScreen:oc.PrintScreen,...sc};return e.AltLeft.keys={PrintScreen:oc.PrintScreen,...sc},e.ControlLeft.keys={AltLeft:{...Object.assign(ic.AltLeft,{}),keys:{Delete:oc.Delete}},...ac},e},hasSoftRebootAction(){return!!this.vmResource?.actions?.softreboot},preferredShortcutKeys(){return(this.savedShortcutKeys||[]).map((e=>({label:e.map((e=>e.key.charAt(0).toUpperCase()+e.key.slice(1))).join("+"),value:e})))}},methods:{isEmpty(e){return void 0!==e&&0===Object.keys(e).length},close(){this.$refs.novncConsole.disconnect()},update({key:e,pos:t}){this.keysRecord.splice(t,this.keysRecord.length-t,e)},sendKeys(){this.keysRecord.forEach((e=>{this.$refs.novncConsole.sendKey(this.allKeys[e].value,e,!0)})),this.keysRecord.reverse().forEach((e=>{this.$refs.novncConsole.sendKey(this.allKeys[e].value,e,!1)})),this.$refs.popover.isOpen=!1,this.keysRecord=[]},sendCustomKeys(e){const t=[].concat(e);t.forEach((e=>{this.$refs.novncConsole.sendKey(jn(e),Bn(e),!0)})),t.reverse().forEach((e=>{this.$refs.novncConsole.sendKey(jn(e),Bn(e),!1)}))},softReboot(){this.vmResource.softrebootVM()},showKeysModal(){this.renderKeysModal=!0},hideKeysModal(){this.renderKeysModal=!1}}};o(42596);const cc=(0,u.A)(lc,[["render",an],["__scopeId","data-v-55ed4d1a"]]);var uc=cc,dc={components:{NovncConsoleWrapper:uc,Loading:Fe.A},async fetch(){this.rows=await this.$store.dispatch("harvester/findAll",{type:l.rk.VMI})},data(){return{uid:this.$route.params.uid}},computed:{vmi(){const e=this.$store.getters["harvester/all"](l.rk.VMI)||[],t=e.find((e=>e?.metadata?.ownerReferences?.[0]?.uid===this.uid));return t}},mounted(){window.addEventListener("beforeunload",(()=>{this.$refs.console.close()}))},head(){return{title:this.vmi?.metadata?.name}}};o(9252);const hc=(0,u.A)(dc,[["render",Wt]]);var pc=hc;function fc(e,t,n,r,o,a){const s=(0,i.resolveComponent)("ResourceList");return(0,i.openBlock)(),(0,i.createBlock)(s)}const mc={key:2,class:"outlet"},gc={key:1};function vc(e,t,n,r,o,a){const s=(0,i.resolveComponent)("IconMessage"),l=(0,i.resolveComponent)("Masthead"),c=(0,i.resolveComponent)("ExtensionPanel"),u=(0,i.resolveComponent)("ResourceTable");return e.namespaceFilterRequired?((0,i.openBlock)(),(0,i.createBlock)(s,{key:0,vertical:!0,subtle:!1,icon:"icon-filter_alt"},{message:(0,i.withCtx)((()=>[(0,i.createTextVNode)((0,i.toDisplayString)(e.t("resourceList.nsFiltering")),1)])),_:1})):e.paginationNsFilterRequired?((0,i.openBlock)(),(0,i.createBlock)(s,{key:1,vertical:!0,subtle:!1,icon:"icon-filter_alt"},{message:(0,i.withCtx)((()=>[(0,i.createTextVNode)((0,i.toDisplayString)(e.t("resourceList.nsFilteringGeneric")),1)])),_:1})):((0,i.openBlock)(),(0,i.createElementBlock)("div",mc,[o.showMasthead?((0,i.openBlock)(),(0,i.createBlock)(l,{key:0,"type-display":o.customTypeDisplay,schema:o.schema,resource:o.resource,"show-incremental-loading-indicator":a.showIncrementalLoadingIndicator,"load-resources":o.loadResources,"load-indeterminate":o.loadIndeterminate},{extraActions:(0,i.withCtx)((()=>[(0,i.renderSlot)(e.$slots,"extraActions",{},void 0,!0)])),_:3},8,["type-display","schema","resource","show-incremental-loading-indicator","load-resources","load-indeterminate"])):(0,i.createCommentVNode)("",!0),(0,i.createVNode)(c,{resource:{},type:o.extensionType,location:o.extensionLocation},null,8,["type","location"]),o.hasListComponent?((0,i.openBlock)(),(0,i.createElementBlock)("div",gc,[((0,i.openBlock)(),(0,i.createBlock)((0,i.resolveDynamicComponent)(e.listComponent),(0,i.mergeProps)({"incremental-loading-indicator":a.showIncrementalLoadingIndicator,rows:e.rows},e.$data),null,16,["incremental-loading-indicator","rows"]))])):((0,i.openBlock)(),(0,i.createBlock)(u,{key:2,schema:o.schema,rows:e.rows,"alt-loading":e.canPaginate,loading:e.loading,headers:a.headers,"group-by":a.groupBy,"has-advanced-filtering":n.hasAdvancedFiltering,"adv-filter-hide-labels-as-cols":n.advFilterHideLabelsAsCols,"adv-filter-prevent-filtering-labels":n.advFilterPreventFilteringLabels,"use-query-params-for-simple-filtering":o.useQueryParamsForSimpleFiltering,"force-update-live-and-delayed":e.forceUpdateLiveAndDelayed,"external-pagination-enabled":e.canPaginate,"external-pagination-result":e.paginationResult,onPaginationChanged:e.paginationChanged},null,8,["schema","rows","alt-loading","loading","headers","group-by","has-advanced-filtering","adv-filter-hide-labels-as-cols","adv-filter-prevent-filtering-labels","use-query-params-for-simple-filtering","force-update-live-and-delayed","external-pagination-enabled","external-pagination-result","onPaginationChanged"]))]))}var yc=o(27166),bc=o(82768),_c=o(76781),wc=o(66442);const Ec="ResourceList";var Sc=o(89687),xc=o.n(Sc),kc=o(90626),Ac=o(3196),Nc=o(96122),Tc=o(33781),Cc=o(76291),Rc=o(18573),Oc=o(61972),Ic=o(9776);const Dc="all",Lc="merge",Pc="multi",Mc="none",Fc=15,Bc=15,$c=10;async function jc(e,t,n,r){if(n.url.includes(kc.QF)||n.url.includes(kc.lm)){const[i,o,a,...s]=n.url.split("/"),l=s.join("/"),c=o===kc.lm,u=l?"getSpoofedInstance":"getSpoofedInstances",d=e[`${t}/all`](X.yx),h=await e[`type-map/${u}`](a,r,l),p=c?(0,Ac.mH)(d,a,h):h;return l&&!c?p:{data:p}}}async function Uc(e,t=!0){const{getters:n,dispatch:r,commit:i,rootGetters:o}=e,a=await r("findAll",{type:X.yx,opt:{url:"schemas",load:!1}}),s=o["type-map/allSpoofedSchemas"];Array.isArray(a.data)?a.data=a.data.concat(s):Array.isArray(a)&&(a.data=a.concat(s)),a.data.forEach(Rc.w),i("loadAll",{ctx:e,type:X.yx,data:a.data,revision:a.revision}),!1!==t&&r("watch",{type:X.yx,revision:a.revision});const l=n.all(X.yx);return l}const Vc=(e,t,n)=>n.namespaced?e.matching(t,null,n.namespaced,{skipSelector:!0}):e.all(t);var Kc={request(){throw new Error("Not Implemented")},loadSchemas:Uc,async loadDataPage(e,{type:t,opt:n}){const{getters:r,commit:i,dispatch:o}=e;t=r.normalizeType(t),r.typeRegistered(t)||i("registerType",t);const a=r["loadCounter"](t);try{const s=await o("request",{opt:n,type:t}),l=r["loadCounter"](t);if(a!==l)return;i("loadAdd",{ctx:e,type:t,data:s.data}),s.pagination?.next?o("loadDataPage",{type:t,opt:{...n,url:s.pagination?.next}}):(n.hasManualRefresh&&o("resource-fetch/updateManualRefreshIsLoading",!1,{root:!0}),n.namespaced?i("setHaveNamespace",{type:t,namespace:n.namespaced}):i("setHaveAll",{type:t}))}catch(Xs){return n.hasManualRefresh&&o("resource-fetch/updateManualRefreshIsLoading",!1,{root:!0}),Promise.reject(Xs)}},async findAll(e,{type:t,opt:n}){const{getters:r,commit:i,dispatch:o,rootGetters:a}=e;if(n=n||{},t=r.normalizeType(t),r.typeRegistered(t)||i("registerType",t),!n.force&&(r["haveAll"](t)||r["haveAllNamespace"](t,n.namespaced))){if(!1!==n.watch){const e={type:t,revision:"",namespace:n.watchNamespace||n.namespaced};o("watch",e)}return Vc(r,t,n)}let s=void 0===n.load?Dc:n.load;!1!==n.load&&n.load!==Mc||(s=Mc);const l=a["type-map/optionsFor"](t);Ic.log(`Find All: [${e.state.config.namespace}] ${t}`),n=n||{},n.url=r.urlFor(t,null,n),n.stream=!1!==n.stream&&s!==Mc,n.depaginate=(0,Oc.Ng)(l?.depaginate,{ctx:e,args:{type:t,opt:n}});let c,u=!1;n.incremental&&(i("incrementLoadCounter",t),n.hasManualRefresh&&o("resource-fetch/updateManualRefreshIsLoading",!0,{root:!0}),c={...n,url:(0,mt.R_)(n.url,"limit",`${n.incremental}`)},n.url=(0,mt.R_)(n.url,"limit","100"),u=!0,n.force&&i("forgetType",t));let d,h,p=!1,f=[];n.onData=function(n){if(p){if(f.push(n),f.length>10){const t=f;f=[],i("loadMulti",{ctx:e,data:t})}}else i("forgetAll",{type:t}),p=!0,h=n};try{!n.incremental&&n.hasManualRefresh&&o("resource-fetch/updateManualRefreshIsLoading",!0,{root:!0});const a=await o("request",{opt:n,type:t});if(p){f.length&&(i("loadMulti",{ctx:e,data:f}),f=[]),i("loadedAll",{type:t});const n=r.all(t);a.finishDeferred(n),d=h}else d=a}catch(Xs){return!n.incremental&&n.hasManualRefresh&&o("resource-fetch/updateManualRefreshIsLoading",!1,{root:!0}),Promise.reject(Xs)}if(s===Mc)return!n.incremental&&n.hasManualRefresh&&o("resource-fetch/updateManualRefreshIsLoading",!1,{root:!0}),d;if(d.data&&(s===Pc?i("loadMulti",{ctx:e,data:d.data}):s===Lc?i("loadMerge",{ctx:e,type:t,data:d.data,existing:!0}):i("loadAll",{ctx:e,type:t,data:d.data,revision:d.revision,skipHaveAll:u,namespace:n.namespaced,pagination:n.pagination?{request:n.pagination,result:{count:d.count,pages:d.pages,timestamp:(new Date).getTime()}}:void 0}),n.incremental&&o("loadDataPage",{type:t,opt:c})),!1!==n.watch){const e={type:t,revision:d.revision,namespace:n.watchNamespace||n.namespaced,force:!0===n.forceWatch};o("watch",e)}const m=Vc(r,t,n);return!n.incremental&&n.hasManualRefresh&&o("resource-fetch/updateManualRefreshIsLoading",!1,{root:!0}),Cc.A.gcUpdateLastAccessed(e,t),m},async findPage(e,{type:t,opt:n}){const{getters:r,commit:i,dispatch:o}=e;if(n=n||{},!n.pagination)return void Ic.error("Attempting to find a page for a resource but no pagination settings supplied",t);if(t=r.normalizeType(t),r.typeRegistered(t)||i("registerType",t),!n.force&&r["havePaginatedPage"](t,n))return Vc(r,t,n);let a;Ic.log(`Find Page: [${e.state.config.namespace}] ${t}. Page: ${n.pagination.page}. Size: ${n.pagination.pageSize}`),n=n||{},n.url=r.urlFor(t,null,n);try{n.hasManualRefresh&&o("resource-fetch/updateManualRefreshIsLoading",!0,{root:!0}),a=await o("request",{opt:n,type:t})}catch(Xs){return n.hasManualRefresh&&o("resource-fetch/updateManualRefreshIsLoading",!1,{root:!0}),Promise.reject(Xs)}i("loadPage",{ctx:e,type:t,data:a.data,pagination:n.pagination?{request:{namespace:n.namespaced,pagination:n.pagination},result:{count:a.count,pages:a.pages||Math.ceil(a.count/(n.pagination.pageSize||Number.MAX_SAFE_INTEGER)),timestamp:(new Date).getTime()}}:void 0});const s=Vc(r,t,n);return n.hasManualRefresh&&o("resource-fetch/updateManualRefreshIsLoading",!1,{root:!0}),Cc.A.gcUpdateLastAccessed(e,t),s},async findMatching(e,{type:t,selector:n,opt:r,namespace:i}){const{getters:o,commit:a,dispatch:s,rootGetters:l}=e;if(r=r||{},Ic.log(`Find Matching: [${e.state.config.namespace}] ${t}`,n),t=o.normalizeType(t),o.typeRegistered(t)||a("registerType",t),!0!==r.force&&o["haveSelector"](t,n))return o.matching(t,n,i);const c=l["type-map/optionsFor"](t);r=r||{},r.labelSelector=n,r.url=o.urlFor(t,null,r),r.depaginate=(0,Oc.Ng)(c?.depaginate,{ctx:e,args:{type:t,opt:r}});const u=await s("request",{opt:r,type:t});return!1===r.load?u.data:(a("loadSelector",{ctx:e,type:t,entries:u.data,selector:n,revision:u.revision}),!1!==r.watch&&s("watch",{type:t,selector:n,revision:u.revision,force:!0===r.forceWatch}),Cc.A.gcUpdateLastAccessed(e,t),o.matching(t,n,i))},async find(e,{type:t,id:n,opt:r}){if(!n)return void Ic.error("Attempting to find a resource with no id",t,n);const{getters:i,dispatch:o}=e;let a;if(r=r||{},t=(0,Tc.AZ)(t),Ic.log(`Find: [${e.state.config.namespace}] ${t} ${n}`),!0!==r.force&&(a=i.byId(t,n),a))return a;r=r||{},r.url=i.urlFor(t,n,r);const s=await o("request",{opt:r,type:t});if(await o("load",{data:s}),!1!==r.watch){const e={type:t,id:n,namespace:r.namespaced,revision:"undefined"!==typeof r.revision?r.revision:s?.metadata?.resourceVersion,force:!0===r.forceWatch},i=n.indexOf("/");i>0&&(e.namespace=n.substr(0,i),e.id=n.substr(i+1)),o("watch",e)}return a=i.byId(t,n),Cc.A.gcUpdateLastAccessed(e,t),a},load(e,{data:t,existing:n}){const{getters:r,commit:i}=e;let o=(0,Tc.AZ)(t.type);r.typeRegistered(o)||i("registerType",o),t.baseType&&t.baseType!==t.type&&(o=(0,Tc.AZ)(t.baseType),r.typeRegistered(o)||i("registerType",o)),o===X.yx&&(0,Rc.w)(t);const a=r.keyFieldForType(o),s=t?.[a]||n?.[a];if(s)return i("load",{ctx:e,data:t,existing:n}),o===X.yx&&i("type-map/schemaChanged",null,{root:!0}),r["byId"](o,s);Ic.warn("Attempting to load a resource with no id",t,n)},loadMulti(e,t){const{commit:n}=e;n("loadMulti",{data:t,ctx:e})},batchChanges(e,t){const{commit:n}=e;n("batchChanges",{ctx:e,batch:t})},loadAll(e,{type:t,data:n}){const{commit:r}=e;r("loadAll",{ctx:e,type:t,data:n})},create(e,t){return(0,Nc.L8)(e,t)},createMany(e,t){return t.map((t=>(0,Nc.L8)(e,t)))},async createPopulated(e,t){let n=null;const r=e.getters["schemaFor"](t.type);return r&&(r.fetchResourceFields&&await r.fetchResourceFields(),n=e.getters["defaultFor"](t.type,r)),xc()(n,t),(0,Nc.L8)(e,n)},clone(e,{resource:t}={}){return(0,Nc.L8)(e,t.toJSON(),!0)},forgetType({commit:e,dispatch:t,state:n},r){n.started.filter((e=>e.type===r)).forEach((e=>t("unwatch",e))),e("forgetType",r)},promptRemove({commit:e,state:t},n){e("action-menu/togglePromptRemove",n,{root:!0})},promptModal({commit:e,state:t},n){e("action-menu/togglePromptModal",n,{root:!0})},resourceAction({getters:e,dispatch:t},{resource:n,actionName:r,body:i,opt:o}){throw new Error("Not Implemented")},collectionAction({getters:e,dispatch:t},{type:n,actionName:r,body:i,opt:o}){throw new Error("Not Implemented")},cleanForNew(e,t){throw new Error("Not Implemented")},createNamespace(e,t){throw new Error("Not Implemented")},cleanForDiff(e,t){throw new Error("Not Implemented")},cleanForDetail(e,t){return t},cleanForDownload(e,t){return t},async waitForSchema({getters:e,dispatch:t},{type:n}){let r=Fc,i=null;while(!i&&r>0)i=e["schemaFor"](n,!1,!1),i||(r===$c&&Ic.warn(`Schema for ${n} not available... retrying...`),await new Promise((e=>setTimeout(e,1e3))),r--);0===r&&(Ic.warn(`Schema for ${n} still unavailable... loading schemas again...`),await t("loadSchemas",!0))},async waitForHaveAll({getters:e},{type:t,throwError:n=!1,attempts:r=Bc}){let i=r,o=null;while(!o&&i>0)o=e["haveAll"](t),o||(i===$c&&Ic.warn(`wait for all of ${t} continuing...`),await new Promise((e=>setTimeout(e,1e3))),i--);if(0===i&&n)throw new Error(`Failed to wait for all of ${t}`)},incrementLoadCounter({commit:e},t){e("incrementLoadCounter",t)},garbageCollect(e,t){return Cc.A.garbageCollect(e,t)},gcResetStore({state:e}){Cc.A.gcResetStore(e)}},Hc=o(9776);const Gc=async(e,t,n,r=!0)=>{let i;try{i=await e.dispatch("management/find",{type:X.Mc.SETTING,id:t})}catch{const o=e.getters["management/schemaFor"](X.Mc.SETTING),a=o.linkFor("collection");i=await e.dispatch("management/create",{type:X.Mc.SETTING,metadata:{name:t},value:n,default:n||""}),r&&await i.save({url:a})}return i},zc=e=>{const t=e["management/byId"](X.Mc.SETTING,q.HG.UI_PERFORMANCE);let n={};if(t?.value)try{n=JSON.parse(t.value)}catch(Xs){Hc.warn("ui-performance setting contains invalid data")}const r=Object.assign({},q.$8);return Object.assign(r,n||{})};class Xc{isApplicable(e){return Array.isArray(e.namespaced)}isEnabled(e){var t;const n=e["currentProduct"];if("cluster"!==(null===n||void 0===n?void 0:n.inStore))return!1;if(null===n||void 0===n?void 0:n.showWorkspaceSwitcher)return!1;const r=zc(e);return!!(null===(t=r.forceNsFilterV2)||void 0===t?void 0:t.enabled)}checkAndCreateParam(e){return this.isApplicable(e)?this.createParam(e.namespaced):""}createParam(e){if(!e||!e.length)return"";const t=e.reduce(((e,t)=>{const n=t.replace(wc.os,"").replace(wc.tA,"");return n.startsWith("-")?e.exclude.push(t.substring(1,t.length)):e.include.push(n),e}),{include:[],exclude:[]});let n="";return t.include.length&&(n=`${Xc.param}=${t.include.join(",")}`),t.exclude.length&&(n=`${Xc.param}!=${t.exclude.join(",")}`),n}}Xc.param="projectsornamespaces";var qc=new Xc,Wc={data(){return{forceUpdateLiveAndDelayed:0}},computed:{...(0,z.L8)(["currentProduct","currentCluster","namespaceFilters"]),namespaceFilterRequired(){return this.__namespaceRequired&&!this.__validFilter},namespaceFilter(){return this.__namespaceRequired?this.__validFilter:""},__validFilter(){const e=this.namespaceFilters.length&&this.namespaceFilters.every((e=>e.startsWith(wc.EF)||e.startsWith(wc.xs)));return e?this.namespaceFilters:null},__namespaceRequired(){return!!qc.isEnabled(this.$store.getters)&&this.__areResourcesNamespaced},__areResourcesNamespaced(){return"cluster"===this.currentProduct.inStore&&(this.loadResources||[]).every((e=>{const t=this.$store.getters["cluster/schemaFor"](e);return t?.attributes?.namespaced}))}},watch:{async namespaceFilter(e){e&&(this.$options.name!==Ec&&this.$fetch&&await this.$fetch(),this.forceUpdateLiveAndDelayed=(new Date).getTime())}}},Yc=o(24759),Qc=o(65852),Jc=o(31165);class Zc{constructor(){this.validNsProjectFilters=[wc.tj,wc.Rc,wc.bE,wc.Rc,wc.T6.NAMESPACE,wc.T6.PROJECT,wc.x8,wc.TD]}getSettings({rootGetters:e}){const t=zc(e);return t.serverPagination}isSteveCacheEnabled({rootGetters:e}){var t;return null===(t=e["features/get"])||void 0===t?void 0:t.call(e,Jc.Vw)}isEnabled({rootGetters:e},t){var n;if(!this.isSteveCacheEnabled({rootGetters:e}))return!1;const r=this.getSettings({rootGetters:e});if(!(null===r||void 0===r?void 0:r.enabled))return!1;if(!t)return!1;const i=null===(n=r.stores)||void 0===n?void 0:n[t.store];if(!i)return!1;if(!t.resource)return!0;if(i.resources.enableAll)return!0;if(!t.resource.id)return!1;const o=!e["type-map/configuredHeaders"](t.resource.id)&&!e["type-map/configuredPaginationHeaders"](t.resource.id)&&!e["type-map/hasCustomList"](t.resource.id);return!(!i.resources.enableSome.generic||!o)||!!i.resources.enableSome.enabled.includes(t.resource.id)}validateNsProjectFilters(e){return null===e||void 0===e?void 0:e.every((e=>this.validateNsProjectFilter(e)))}validateNsProjectFilter(e){return!(!e.startsWith(wc.os)&&!e.startsWith(wc.tA))||this.validNsProjectFilters.includes(e)}paginationFilterEqual(e,t){return e.param===t.param&&e.equals===t.equals&&(0,Yc.yI)(e.fields,t.fields,!0)}paginationFiltersEqual(e,t){if(e&&(null===e||void 0===e?void 0:e.length)!==(null===t||void 0===t?void 0:t.length))return!1;for(let n=0;n<e.length;n++)if(!this.paginationFilterEqual(e[n],t[n]))return!1;return!0}paginationEqual(e,t){const{filters:n=[],sort:r=[],projectsOrNamespaces:i=[],...o}=e||{},{filters:a=[],sort:s=[],projectsOrNamespaces:l=[],...c}=t||{};return(0,Qc.n4)(o,c)&&this.paginationFiltersEqual(n,a)&&this.paginationFiltersEqual(i,l)&&(0,Yc.yI)(r,s,!0)}}var eu=new Zc,tu=o(52156),nu=o.n(tu),ru=o(80989),iu=o(9776);class ou{handlePrefAndSettingFilter(e,t,n){return e.reduce(((e,r)=>{const i=!t&&r.isObscure,o=!!n&&r.isSystem;return(i||o)&&e.push(ru.eY.createSingleField({field:"metadata.namespace",value:r.name,equals:!1})),e}),[])}handleSystemOrUserFilter(e,t,n){const r=e.filter((e=>e.isSystem));return t?[ru.eY.createMultipleFields(r.map((e=>new ru.Js({field:"metadata.namespace",value:e.name}))))]:r.map((e=>ru.eY.createSingleField({field:"metadata.namespace",value:e.name,equals:!1})))}handleSelectionFilter(e,t){const n=[new ru.B6({projectOrNamespace:e})];return t?{projectsOrNamespaces:n,filters:e.filter((e=>e.startsWith(wc.tA))).map((e=>ru.eY.createSingleField({field:"metadata.namespace",value:e.replace(wc.tA,""),equals:!1})))}:{projectsOrNamespaces:n,filters:[]}}}class au extends ou{convertArrayPath(e){return e.startsWith("metadata.fields.")?`metadata.fields[${e.substring(16)}]`:e}createSortForPagination(e){return this.convertArrayPath(e)}createParamsFromNsFilter({allNamespaces:e,selection:t,isAllNamespaces:n,isLocalCluster:r,showDynamicRancherNamespaces:i,productHidesSystemNamespaces:o}){if(n&&i&&!o)return{projectsOrNamespaces:[],filters:[]};let a=[],s=[];i&&!o||(s=this.handlePrefAndSettingFilter(e,i,o));const l=t[0]===wc.Rc,c=t[0]===wc.bE;if(1===t.length&&(l||c))s.push(...this.handleSystemOrUserFilter(e,l,c));else{const e=this.handleSelectionFilter(t,r);a=e.projectsOrNamespaces,s.push(...e.filters)}return{projectsOrNamespaces:a,filters:s}}createParamsForPagination(e,t){var n,r;if(!t.pagination)return;const i=[],o=this.convertPaginationParams(e,t.pagination.projectsOrNamespaces);if(o&&i.push(o),t.pagination.page&&i.push(`page=${t.pagination.page}`),t.pagination.pageSize&&i.push(`pagesize=${t.pagination.pageSize}`),null===(n=t.pagination.sort)||void 0===n?void 0:n.length){const n={checked:new Array,invalid:new Array},r=t.pagination.sort.map((t=>(this.validateField(n,e,t.field),`${t.asc?"":"-"}${this.convertArrayPath(t.field)}`))).join(",");i.push(`sort=${r}`),n.invalid.length&&iu.warn(`Pagination API does not support sorting '${e.id}' by the requested fields: ${(0,Yc.sb)(n.invalid).join(", ")}`)}if(null===(r=t.pagination.filters)||void 0===r?void 0:r.length){const n=this.convertPaginationParams(e,t.pagination.filters);n&&i.push(n)}return i.join("&")}validateField(e,t,n){n&&(e.checked.includes(n)||(e.checked.push(n),[au.VALID_FIELDS[""],au.VALID_FIELDS[t.id]].find((e=>null===e||void 0===e?void 0:e.find((e=>e.startsWith?!!n.startsWith(e.field)||void 0:n===e.field))))||(null===t||void 0===t?void 0:t.attributes.columns.find((e=>e.field.replace("$.","").replace("[",".").replace("]","")===n)))||e.invalid.push(n)))}convertPaginationParams(e,t=[]){const n={checked:new Array,invalid:new Array},r=t.filter((e=>!!e.fields.length)).map((t=>{const r=t.fields.map((t=>{if(t.field){this.validateField(n,e,t.field);const r=t.exact?`'${t.value}'`:t.value;return`${this.convertArrayPath(t.field)}${t.equals?"=":"!="}${r}`}return t.value})).join(",");return`${t.param}${t.equals?"=":"!="}${r}`})),i=r.reduce(((e,t)=>(e[t]=!0,e)),{}),o=Object.keys(i).join("&");return n.invalid.length&&iu.warn(`Pagination API does not support filtering '${e.id}' by the requested fields: ${(0,Yc.sb)(n.invalid).join(", ")}`),o}}au.VALID_FIELDS={"":[{field:"metadata.name"},{field:"metadata.namespace"},{field:"metadata.creationTimestamp"}],[X.NW]:[{field:"status.nodeInfo.kubeletVersion"},{field:"status.nodeInfo.operatingSystem"}],[X.Sm]:[{field:"spec.containers.image"},{field:"spec.nodeName"}],[X.Mc.NODE]:[{field:"status.nodeName"}],[X.K5]:[{field:"metadata.labels[harvesterhci.io/cloud-init-template]"}],[X.CU]:[{field:"metadata.labels[field.cattle.io/projectId]"}]};var su=new au,lu={data(){return{forceUpdateLiveAndDelayed:0,pPagination:null,debouncedSetPagination:nu()(this.setPagination,50),requestFilters:{filters:[],projectsOrNamespaces:[]}}},methods:{setPagination(e){e&&(this.pPagination=e)},paginationChanged(e){const t=e.filter.searchQuery?e.filter.searchFields.map((t=>new ru.Js({field:t,value:e.filter.searchQuery,exact:!1}))):[],n=new ru.gR({page:e.page,pageSize:e.perPage,sort:e.sort?.map((t=>({field:t,asc:!e.descending}))),projectsOrNamespaces:this.requestFilters.projectsOrNamespaces,filters:[new ru.eY({fields:t}),...this.requestFilters.filters]});this.debouncedSetPagination(n)},namespaceFilterChanged(e){if(!this.canPaginate||!this.schema?.attributes?.namespaced)return;const{projectsOrNamespaces:t,filters:n}=su.createParamsFromNsFilter({allNamespaces:this.$store.getters[`${this.currentProduct?.inStore}/all`](X.CU),selection:e,isAllNamespaces:this.isAllNamespaces,isLocalCluster:this.$store.getters["currentCluster"].isLocal,showDynamicRancherNamespaces:this.showDynamicRancherNamespaces,productHidesSystemNamespaces:this.productHidesSystemNamespaces});this.requestFilters.filters=n,this.requestFilters.projectsOrNamespaces=t,this.pPagination&&this.debouncedSetPagination({...this.pPagination})},paginationEqual(e,t){return!!e.page&&!!eu.paginationEqual(e,t)}},computed:{...(0,z.L8)(["currentProduct","isAllNamespaces"]),namespaceFilters(){return this.$store.getters["namespaceFilters"]},paginationNsFilterRequired(){return this.canPaginate&&!this.__validPaginationNsFilter},__validPaginationNsFilter(){return eu.validateNsProjectFilters(this.namespaceFilters)},isResourceList(){return!!this.hasListComponent},pagination(){if(!this.isResourceList)return this.canPaginate?this.pPagination:""},canPaginate(){if(!this.isResourceList)return this.resource&&this.$store.getters[`${this.currentProduct?.inStore}/paginationEnabled`]?.(this.resource.id||this.resource)},paginationResult(){if(!this.isResourceList&&this.canPaginate)return this.havePaginated?.result},havePaginated(){if(!this.isResourceList)return this.$store.getters[`${this.currentProduct?.inStore}/havePage`](this.resource)},productHidesSystemNamespaces(){return this.currentProduct?.hideSystemResources},showDynamicRancherNamespaces(){return this.$store.getters["prefs/get"](M.Pz)}},watch:{rows(e){this.canPaginate&&this.pagination&&!this.isResourceList&&this.pagination.page>1&&0===e.length&&this.setPagination({...this.pagination,page:this.pagination.page-1})},namespaceFilters:{immediate:!0,async handler(e,t){if(!this.canPaginate||!this.schema?.attributes?.namespaced)return;if(this.isResourceList)return;const n=!e||0===e.length||e[0]===wc.tj,r=!t||0===t.length||t[0]===wc.tj;if(n&&r){const e=this.isAllNamespaces&&(!this.showDynamicRancherNamespaces||this.productHidesSystemNamespaces);if(!e)return}1===e.length&&[wc.x8,wc.TD].includes(e[0])||this.namespaceFilterChanged(e)}},async pagination(e,t){this.canPaginate&&(this.isResourceList||e&&this.$options.name!==Ec&&this.$fetch&&!this.paginationEqual(e,t)&&(await this.$fetch(!1),this.forceUpdateLiveAndDelayed=(new Date).getTime()))},async paginationResult(e,t){this.fetchPageSecondaryResources&&e&&e.timestamp!==t?.timestamp&&await this.fetchPageSecondaryResources()}}},cu=o(9776);const uu=4;var du={mixins:[Wc,lu],inheritAttrs:!1,data(){const e=this.$store.getters["management/byId"](X.Mc.SETTING,q.HG.UI_PERFORMANCE);let t={};if(e&&e.value)try{t=JSON.parse(e.value)}catch(Xs){cu.warn("ui-performance setting contains invalid data")}else t=q.$8;return{perfConfig:t,init:!1,multipleResources:[],loadResources:[this.resource],hasManualRefresh:!1,watch:!0,isTooManyItemsToAutoUpdate:!1,force:!1,incremental:!1,fetchedResourceType:[],paginating:null}},beforeUnmount(){this.init&&(this.$store.dispatch("resource-fetch/clearData"),this.fetchedResourceType.forEach((e=>{this.$store.dispatch(`${e.currStore}/incrementLoadCounter`,e.type)})))},computed:{...(0,z.L8)({refreshFlag:"resource-fetch/refreshFlag"}),rows(){const e=this.fetchedResourceType.find((e=>e.type===this.resource));return e?this.$store.getters[`${e.currStore}/all`](this.resource):[]},loading(){return this.canPaginate?this.paginating:!this.rows.length&&this.$fetchState.pending}},watch:{async refreshFlag(e){this.init&&e&&(await this.$fetch(),this.canPaginate&&this.fetchPageSecondaryResources&&this.fetchPageSecondaryResources(!0))}},methods:{$initializeFetchData(e,t=[],n){if(!this.init){const r=n||this.$store.getters["currentStore"]();this.__gatherResourceFetchData(e,t,r),this.watch||(this.force=!0),this.isTooManyItemsToAutoUpdate&&(this.hasManualRefresh=!0)}},$fetchType(e,t=[],n){const r=n||this.$store.getters["currentStore"]();this.$initializeFetchData(e,t,r),this.fetchedResourceType.find((t=>t.type===e))||this.fetchedResourceType.push({type:e,currStore:r});const i=this.$store.getters[`${r}/schemaFor`](e);if(this.canPaginate){if(!this.pagination)return;const t={hasManualRefresh:this.hasManualRefresh,pagination:{...this.pagination},force:null!==this.paginating};this["paginating"]=!0;const n=this;return this.$store.dispatch(`${r}/findPage`,{type:e,opt:t}).finally((()=>n["paginating"]=!1))}let o=0;if(this.incremental){const t=this.__getCountForResources([e],this.namespaceFilter,r);o=Math.ceil(t/uu)}const a={incremental:o,watch:this.watch,force:this.force,hasManualRefresh:this.hasManualRefresh};return i?.attributes?.namespaced&&(a.namespaced=this.namespaceFilter),this.$store.dispatch(`${r}/findAll`,{type:e,opt:a})},__getCountForResources(e,t,n){const r=n||this.$store.getters["currentStore"]();return e.reduce(((e,n)=>e+this.__getCountForResource(n,t,r)),0)},__getCountForResource(e,t,n){const r=this.$store.getters[`${n}/all`](X.i2)[0]?.counts[`${e}`],i=t&&r?.namespaces?r?.namespaces[t]?.count:r?.summary?.count;return i||0},__gatherResourceFetchData(e,t,n){this.init=!0;const r=this.perfConfig?.manualRefresh?.enabled,i=parseInt(this.perfConfig?.manualRefresh?.threshold||"0",10),o=this.perfConfig?.incrementalLoading?.enabled,a=parseInt(this.perfConfig?.incrementalLoading?.threshold||"0",10);this.multipleResources=t;let s=0,l=!0,c=!1,u=!1;const d=this.multipleResources.length?this.multipleResources:[e];s=this.__getCountForResources(d,this.namespaceFilter,n),r&&s>=i?(l=!1,c=!0):this.canPaginate&&(c=!0),u=o&&a>0&&s>=a,this.$store.dispatch("resource-fetch/updateIsTooManyItems",c),this.watch=l,this.isTooManyItemsToAutoUpdate=c,this.incremental=u}}};const hu={class:"message"};function pu(e,t,n,r,o,a){return(0,i.openBlock)(),(0,i.createElementBlock)("div",{class:(0,i.normalizeClass)(["message-icon",{vertical:n.vertical,subtle:n.subtle}])},[(0,i.createElementVNode)("i",{class:(0,i.normalizeClass)(["icon",{[n.icon]:!0,[n.iconState]:!!n.iconState}])},null,2),(0,i.createElementVNode)("div",hu,[(0,i.renderSlot)(e.$slots,"message",{},(()=>[n.messageKey?((0,i.openBlock)(),(0,i.createElementBlock)(i.Fragment,{key:0},[(0,i.createTextVNode)((0,i.toDisplayString)(e.t(n.messageKey)),1)],64)):((0,i.openBlock)(),(0,i.createElementBlock)(i.Fragment,{key:1},[(0,i.createTextVNode)((0,i.toDisplayString)(n.message),1)],64))]),!0)])],2)}var fu={props:{vertical:{type:Boolean,default:!1},icon:{type:String,required:!0},iconState:{type:String,default:null},message:{type:String,default:null},messageKey:{type:String,default:null},subtle:{type:Boolean,default:!1}}};o(58383);const mu=(0,u.A)(fu,[["render",pu],["__scopeId","data-v-14eacf66"]]);var gu=mu,vu=o(99855);const yu={key:0};function bu(e,t,n,r,o,a){return o.extensionData.length?((0,i.openBlock)(),(0,i.createElementBlock)("div",yu,[((0,i.openBlock)(!0),(0,i.createElementBlock)(i.Fragment,null,(0,i.renderList)(o.extensionData,((e,t)=>((0,i.openBlock)(),(0,i.createElementBlock)("div",{key:`extensionData${n.location}${t}`},[((0,i.openBlock)(),(0,i.createBlock)((0,i.resolveDynamicComponent)(e.component),{resource:n.resource},null,8,["resource"]))])))),128))])):(0,i.createCommentVNode)("",!0)}var _u=o(37255),wu={name:"ExtensionPanel",props:{resource:{type:Object,default:()=>({})},type:{type:String,default:""},location:{type:String,default:""}},data(){return{extensionData:(0,_u.A)(this,this.type,this.location,this.$route)}}};const Eu=(0,u.A)(wu,[["render",bu]]);var Su=Eu,xu={name:Ec,components:{Loading:Fe.A,ResourceTable:yc.A,Masthead:bc.A,ResourceLoadingIndicator:_c.A,IconMessage:gu,ExtensionPanel:Su},mixins:[du],props:{hasAdvancedFiltering:{type:Boolean,default:!1},advFilterHideLabelsAsCols:{type:Boolean,default:!1},advFilterPreventFilteringLabels:{type:Boolean,default:!1}},async fetch(){const e=this.$store,t=this.resource,n=this.schema;if(this.hasListComponent){const e=this.listComponent,n=await e.__asyncLoader();if(n?.typeDisplay&&(this.customTypeDisplay=n.typeDisplay.apply(this)),n?.fetch&&(this.componentWillFetch=!0),n?.$loadingResources){const{loadResources:e,loadIndeterminate:r}=n?.$loadingResources(this.$route,this.$store);this.loadResources=e||[t],this.loadIndeterminate=r||!1}}if(!this.componentWillFetch){if(!n)return void e.dispatch("loadingError",new Error(this.t("nav.failWhale.resourceListNotFound",{resource:t},!0)));this.namespaceFilterRequired||this.canPaginate&&!this.refreshFlag||await this.$fetchType(t)}},data(){const e=this.$store.getters,t={...this.$route.params},n=t.resource,r=e["type-map/hasCustomList"](n),i=e["currentStore"](n),o=e[`${i}/schemaFor`](n),a=e["type-map/optionsFor"](n).showListMasthead;return{inStore:i,schema:o,hasListComponent:r,showMasthead:void 0===a||a,resource:n,extensionType:vu.c7.PANEL,extensionLocation:vu.W7.RESOURCE_LIST,loadResources:[n],componentWillFetch:!1,manualRefreshInit:!1,watch:!1,force:!1,customTypeDisplay:null,loadIndeterminate:!1,useQueryParamsForSimpleFiltering:!0}},computed:{headers(){return this.hasListComponent||!this.schema?[]:this.$store.getters["type-map/headersFor"](this.schema,this.canPaginate)},groupBy(){return this.$store.getters["type-map/groupByFor"](this.schema)},showIncrementalLoadingIndicator(){return this.perfConfig?.incrementalLoading?.enabled}},watch:{namespaceFilter(e,t){if(e&&!this.componentWillFetch){if((0,Yc.P1)(e,t))return;this.$fetchType(this.resource)}},pagination(e,t){!e||this.componentWillFetch||this.paginationEqual(e,t)||this.$fetchType(this.resource)},rows(e){this.pagination&&this.pagination.page>1&&0===e.length&&this.setPagination({...this.pagination,page:this.pagination.page-1})}},created(){let e=!1;const t=this.$route.params.resource,n=this.$store.getters["type-map/hasCustomList"](t);n&&(e=this.$store.getters["type-map/importList"](t)),this.listComponent=e}};o(34180);const ku=(0,u.A)(xu,[["render",vc],["__scopeId","data-v-1bcb2bdb"]]);var Au=ku,Nu={name:"HarvesterResourcedList",components:{ResourceList:Au}};const Tu=(0,u.A)(Nu,[["render",fc]]);var Cu=Tu;const Ru={key:1},Ou={class:"mb-20"},Iu={class:"row mb-20"},Du={class:"col span-6"},Lu={class:"mt-20 mb-5 pb-5"},Pu={class:"text-label"},Mu={class:"row mt-10 mb-20"},Fu={key:0,class:"row mb-20"},Bu={class:"col logo-container span-6"},$u={class:"mb-10"},ju={class:"text-muted"},Uu=["src"],Vu={class:"col logo-container span-6"},Ku={class:"mb-10"},Hu={class:"text-muted"},Gu=["src"],zu={class:"mt-20 mb-5 pb-5"},Xu={class:"text-label"},qu={class:"row mt-10 mb-20"},Wu={key:1,class:"row mb-20"},Yu={class:"col logo-container span-12"},Qu={class:"mb-10"},Ju={class:"text-muted"},Zu=["src"],ed={class:"mt-40 mb-5 pb-0"},td={class:"text-label"},nd={class:"row mt-20"},rd={key:2,class:"row mt-20 mb-20"},id={class:"mt-40 mb-5 pb-0"},od={class:"text-label"},ad={class:"row mt-20"},sd={key:3,class:"row mt-20 mb-20"},ld={class:"col link-example"},cd={key:0};function ud(e,t,n,r,o,a){const s=(0,i.resolveComponent)("Loading"),l=(0,i.resolveComponent)("TypeDescription"),c=(0,i.resolveComponent)("LabeledInput"),u=(0,i.resolveComponent)("Checkbox"),d=(0,i.resolveComponent)("FileSelector"),h=(0,i.resolveComponent)("SimpleBox"),p=(0,i.resolveComponent)("ColorInput"),f=(0,i.resolveComponent)("Banner"),m=(0,i.resolveComponent)("AsyncButton");return e.$fetchState.pending?((0,i.openBlock)(),(0,i.createBlock)(s,{key:0})):((0,i.openBlock)(),(0,i.createElementBlock)("div",Ru,[(0,i.createElementVNode)("h1",Ou,(0,i.toDisplayString)(e.t("branding.label")),1),(0,i.createVNode)(l,{resource:"branding"}),(0,i.createElementVNode)("div",null,[(0,i.createElementVNode)("div",Iu,[(0,i.createElementVNode)("div",Du,[(0,i.createVNode)(c,{value:o.uiPLSetting.value,"onUpdate:value":t[0]||(t[0]=e=>o.uiPLSetting.value=e),label:e.t("branding.uiPL.label"),mode:a.mode,maxlength:100},null,8,["value","label","mode"])])]),(0,i.createElementVNode)("h3",Lu,(0,i.toDisplayString)(e.t("branding.logos.label")),1),(0,i.createElementVNode)("label",Pu,(0,i.toDisplayString)(e.t("branding.logos.tip",{},!0)),1),(0,i.createElementVNode)("div",Mu,[(0,i.createVNode)(u,{value:o.customizeLogo,"onUpdate:value":t[1]||(t[1]=e=>o.customizeLogo=e),label:e.t("branding.logos.useCustom"),mode:a.mode},null,8,["value","label","mode"])]),o.customizeLogo?((0,i.openBlock)(),(0,i.createElementBlock)("div",Fu,[(0,i.createElementVNode)("div",Bu,[(0,i.createElementVNode)("div",$u,[(0,i.createVNode)(d,{"byte-limit":2e4,"read-as-data-url":!0,class:"role-secondary",label:e.t("branding.logos.uploadLight"),mode:a.mode,onError:a.setError,onSelected:t[2]||(t[2]=e=>a.updateLogo(e,"uiLogoLight"))},null,8,["label","mode","onError"])]),o.uiLogoLight||o.uiLogoDark?((0,i.openBlock)(),(0,i.createBlock)(h,{key:0,class:"theme-light mb-10"},{default:(0,i.withCtx)((()=>[(0,i.createElementVNode)("label",ju,(0,i.toDisplayString)(e.t("branding.logos.lightPreview")),1),(0,i.createElementVNode)("img",{class:"logo-preview",src:o.uiLogoLight?o.uiLogoLight:o.uiLogoDark},null,8,Uu)])),_:1})):(0,i.createCommentVNode)("",!0)]),(0,i.createElementVNode)("div",Vu,[(0,i.createElementVNode)("div",Ku,[(0,i.createVNode)(d,{"byte-limit":2e4,"read-as-data-url":!0,class:"role-secondary",label:e.t("branding.logos.uploadDark"),mode:a.mode,onError:a.setError,onSelected:t[3]||(t[3]=e=>a.updateLogo(e,"uiLogoDark"))},null,8,["label","mode","onError"])]),o.uiLogoDark||o.uiLogoLight?((0,i.openBlock)(),(0,i.createBlock)(h,{key:0,class:"theme-dark mb-10"},{default:(0,i.withCtx)((()=>[(0,i.createElementVNode)("label",Hu,(0,i.toDisplayString)(e.t("branding.logos.darkPreview")),1),(0,i.createElementVNode)("img",{class:"logo-preview",src:o.uiLogoDark?o.uiLogoDark:o.uiLogoLight},null,8,Gu)])),_:1})):(0,i.createCommentVNode)("",!0)])])):(0,i.createCommentVNode)("",!0),(0,i.createElementVNode)("h3",zu,(0,i.toDisplayString)(e.t("branding.favicon.label")),1),(0,i.createElementVNode)("label",Xu,(0,i.toDisplayString)(e.t("branding.favicon.tip",{},!0)),1),(0,i.createElementVNode)("div",qu,[(0,i.createVNode)(u,{value:o.customizeFavicon,"onUpdate:value":t[4]||(t[4]=e=>o.customizeFavicon=e),label:e.t("branding.favicon.useCustom"),mode:a.mode},null,8,["value","label","mode"])]),o.customizeFavicon?((0,i.openBlock)(),(0,i.createElementBlock)("div",Wu,[(0,i.createElementVNode)("div",Yu,[(0,i.createElementVNode)("div",Qu,[(0,i.createVNode)(d,{"byte-limit":2e4,"read-as-data-url":!0,class:"role-secondary",label:e.t("branding.favicon.upload"),mode:a.mode,onError:a.setError,onSelected:t[5]||(t[5]=e=>a.updateLogo(e,"uiFavicon"))},null,8,["label","mode","onError"])]),o.uiFavicon?((0,i.openBlock)(),(0,i.createBlock)(h,{key:0},{default:(0,i.withCtx)((()=>[(0,i.createElementVNode)("label",Ju,(0,i.toDisplayString)(e.t("branding.favicon.preview")),1),(0,i.createElementVNode)("img",{class:"logo-preview",src:o.uiFavicon},null,8,Zu)])),_:1})):(0,i.createCommentVNode)("",!0)])])):(0,i.createCommentVNode)("",!0),(0,i.createElementVNode)("h3",ed,(0,i.toDisplayString)(e.t("branding.color.label")),1),(0,i.createElementVNode)("label",td,(0,i.toDisplayString)(e.t("branding.color.tip",{},!0)),1),(0,i.createElementVNode)("div",nd,[(0,i.createVNode)(u,{value:o.customizeColor,"onUpdate:value":t[6]||(t[6]=e=>o.customizeColor=e),label:e.t("branding.color.useCustom"),mode:a.mode},null,8,["value","label","mode"])]),o.customizeColor?((0,i.openBlock)(),(0,i.createElementBlock)("div",rd,[(0,i.createVNode)(p,{value:o.uiColor,"onUpdate:value":t[7]||(t[7]=e=>o.uiColor=e),"component-testid":"primary"},null,8,["value"])])):(0,i.createCommentVNode)("",!0),(0,i.createElementVNode)("h3",id,(0,i.toDisplayString)(e.t("branding.linkColor.label")),1),(0,i.createElementVNode)("label",od,(0,i.toDisplayString)(e.t("branding.linkColor.tip",{},!0)),1),(0,i.createElementVNode)("div",ad,[(0,i.createVNode)(u,{value:o.customizeLinkColor,"onUpdate:value":t[8]||(t[8]=e=>o.customizeLinkColor=e),label:e.t("branding.linkColor.useCustom"),mode:a.mode},null,8,["value","label","mode"])]),o.customizeLinkColor?((0,i.openBlock)(),(0,i.createElementBlock)("div",sd,[(0,i.createVNode)(p,{value:o.uiLinkColor,"onUpdate:value":t[9]||(t[9]=e=>o.uiLinkColor=e),class:"col","component-testid":"link"},null,8,["value"]),(0,i.createElementVNode)("span",ld,[(0,i.createElementVNode)("a",{style:(0,i.normalizeStyle)(a.customLinkColor)},(0,i.toDisplayString)(e.t("branding.linkColor.example")),5)])])):(0,i.createCommentVNode)("",!0)]),((0,i.openBlock)(!0),(0,i.createElementBlock)(i.Fragment,null,(0,i.renderList)(o.errors,((e,t)=>((0,i.openBlock)(),(0,i.createBlock)(f,{key:t,color:"error",label:e},null,8,["label"])))),128)),"edit"===a.mode?((0,i.openBlock)(),(0,i.createElementBlock)("div",cd,[(0,i.createVNode)(m,{"component-testid":"branding-apply",class:"pull-right mt-20",mode:"apply",onClick:a.save},null,8,["onClick"])])):(0,i.createCommentVNode)("",!0)]))}var dd=o(53512);const hd=["data-testid"],pd={class:"text-label"},fd=["data-testid"],md=["disabled","value"],gd={class:"text-muted color-value"};function vd(e,t,n,r,o,a){const s=(0,i.resolveComponent)("t");return(0,i.openBlock)(),(0,i.createElementBlock)("div",{class:(0,i.normalizeClass)(["color-input",{[n.mode]:n.mode,disabled:a.isDisabled}]),"data-testid":n.componentTestid+"-color-input"},[(0,i.createElementVNode)("label",pd,[n.labelKey?((0,i.openBlock)(),(0,i.createBlock)(s,{key:0,k:n.labelKey,raw:!0},null,8,["k"])):(0,i.createCommentVNode)("",!0),(0,i.createTextVNode)((0,i.toDisplayString)(n.label),1)]),(0,i.createElementVNode)("div",{"data-testid":n.componentTestid+"-color-input_preview-container",class:"preview-container",onClick:t[1]||(t[1]=(0,i.withModifiers)((t=>e.$refs.input.click(t)),["stop"]))},[(0,i.createElementVNode)("span",{style:(0,i.normalizeStyle)({"background-color":a.inputValue}),class:"color-display"},[(0,i.createElementVNode)("input",{ref:"input",type:"color",disabled:a.isDisabled,value:a.inputValue,onInput:t[0]||(t[0]=t=>e.$emit("update:value",t.target.value))},null,40,md)],4),(0,i.createElementVNode)("span",gd,(0,i.toDisplayString)(a.inputValue),1)],8,fd)],10,hd)}var yd=o(75040),bd={emits:["update:value"],props:{value:{type:String,default:""},defaultValue:{type:String,default:""},label:{type:String,default:null},labelKey:{type:String,default:null},mode:{type:String,validator(e){return[yd.G5,yd.nW].includes(e)},default:yd.G5},componentTestid:{type:String,default:"color-input"},disabled:{type:Boolean,default:!1}},data(){return{viewMode:yd.nW,editMode:yd.G5}},computed:{inputValue(){return this.value?this.value:this.defaultValue},isDisabled(){const e=this.disabled;return this.mode!==this.editMode||e}},mounted(){this.$emit("update:value",this.inputValue)}};o(38086);const _d=(0,u.A)(bd,[["render",vd],["__scopeId","data-v-6e5011f1"]]);var wd=_d,Ed=o(91073),Sd=o(3276),xd=o(58782),kd=o(58832);let Ad=!1;function Nd(e){const t=e.getters["management/byId"](X.Mc.SETTING,q.HG.FAVICON),n=e.getters["management/byId"](X.Mc.SETTING,q.HG.BRAND),r=Cd(document.head.getElementsByTagName("link"));if(r){let e;"suse"===n?.value?e=o(1229):"csp"===n?.value?e=o(88217):"harvester"===n?.value&&(e=o(51421)),r.href=t?.value||e||Rd,Ad=!0}}function Td(){const e=Cd(document.head.getElementsByTagName("link"));return e?e.href:""}function Cd(e){for(let t=0;t<e.length;t++){const n=e[t];if(n.rel?.includes("icon"))return n}}const Rd=Td(),Od=o(70465);var Id={components:{LabeledInput:dd.o,Checkbox:Sd.S,FileSelector:xd.A,Loading:Fe.A,SimpleBox:pe.A,AsyncButton:Ql.A,Banner:kd.l,ColorInput:wd,TypeDescription:Ed.A},async fetch(){const e=await(0,ve.kR)({uiPLSetting:this.$store.dispatch("management/find",{type:X.Mc.SETTING,id:q.HG.PL}),uiLogoDarkSetting:Gc(this.$store,q.HG.LOGO_DARK,""),uiLogoLightSetting:Gc(this.$store,q.HG.LOGO_LIGHT,""),uiColorSetting:Gc(this.$store,q.HG.PRIMARY_COLOR,""),uiLinkColorSetting:Gc(this.$store,q.HG.LINK_COLOR,""),uiFaviconSetting:Gc(this.$store,q.HG.FAVICON,"")});if(Object.assign(this,e),e.uiLogoDarkSetting.value)try{this.uiLogoDark=e.uiLogoDarkSetting.value,this.customizeLogo=!0}catch{}if(e.uiLogoLightSetting.value)try{this.uiLogoLight=e.uiLogoLightSetting.value,this.customizeLogo=!0}catch{}if(e.uiFaviconSetting.value)try{this.uiFavicon=e.uiFaviconSetting.value,this.customizeFavicon=!0}catch{}e.uiColorSetting.value&&(this.uiColor=Od(e.uiColorSetting.value).hex(),this.customizeColor=!0),e.uiLinkColorSetting.value&&(this.uiLinkColor=Od(e.uiLinkColorSetting.value).hex(),this.customizeLinkColor=!0)},data(){return{vendor:(0,ge.f7)(),uiPLSetting:{},uiLogoDarkSetting:{},uiLogoDark:"",uiLogoLightSetting:{},uiLogoLight:"",customizeLogo:!1,uiFaviconSetting:{},uiFavicon:"",customizeFavicon:!1,uiColorSetting:{},uiColor:null,customizeColor:!1,uiLinkColorSetting:{},uiLinkColor:null,customizeLinkColor:!1,errors:[]}},computed:{mode(){const e=this.$store.getters["management/schemaFor"](X.Mc.SETTING);return e?.resourceMethods?.includes("PUT")?yd.G5:yd.nW},customLinkColor(){return{color:this.uiLinkColor}}},mounted(){let e=getComputedStyle(document.body).getPropertyValue("--primary"),t=getComputedStyle(document.body).getPropertyValue("--link");const n=document.querySelector(".suse");n&&(e=getComputedStyle(n).getPropertyValue("--primary"),t=getComputedStyle(n).getPropertyValue("--link")),this.uiColor=this.uiColor||e.trim(),this.uiLinkColor=this.uiLinkColor||t.trim()},methods:{updateLogo(e,t){this[t]=e},setError(e){this.errors=[],this.errors.push(e)},async save(e){this.uiPLSetting.value=this.uiPLSetting.value.replaceAll(/[\<>&=#()"]/gm,""),this.customizeLogo?(this.uiLogoLightSetting.value=this.uiLogoLight,this.uiLogoDarkSetting.value=this.uiLogoDark):(this.uiLogoLightSetting.value="",this.uiLogoDarkSetting.value=""),this.customizeFavicon?this.uiFaviconSetting.value=this.uiFavicon:this.uiFaviconSetting.value="",this.customizeColor?this.uiColorSetting.value=Od(this.uiColor).rgb().string():this.uiColorSetting.value=null,this.customizeLinkColor?this.uiLinkColorSetting.value=Od(this.uiLinkColor).rgb().string():this.uiLinkColorSetting.value=null,this.errors=[];try{await Promise.all([this.uiPLSetting.save(),this.uiLogoDarkSetting.save(),this.uiLogoLightSetting.save(),this.uiColorSetting.save(),this.uiLinkColorSetting.save(),this.uiFaviconSetting.save()]),this.uiPLSetting.value!==this.vendor&&(0,ge.xc)(this.uiPLSetting.value),Nd(this.$store),e(!0)}catch(qa){this.errors.push(qa),e(!1)}}}};o(39324);const Dd=(0,u.A)(Id,[["render",ud],["__scopeId","data-v-a1b83c20"]]);var Ld=Dd;function Pd(e,t,n,r,o,a){const s=(0,i.resolveComponent)("ResourceDetail");return(0,i.openBlock)(),(0,i.createBlock)(s)}const Md={key:1},Fd={key:1,id:"cru-errors",class:"cru__errors"},Bd=["data-testid"],$d=["data-testid"],jd=["data-testid"],Ud=["data-testid"];function Vd(e,t,n,r,o,a){const s=(0,i.resolveComponent)("Loading"),l=(0,i.resolveComponent)("DetailTop"),c=(0,i.resolveComponent)("Masthead"),u=(0,i.resolveComponent)("Banner"),d=(0,i.resolveComponent)("ForceDirectedTreeChart"),h=(0,i.resolveComponent)("ResourceYaml"),p=(0,i.resolveDirective)("shortkey");return e.$fetchState.pending||o.notFound?((0,i.openBlock)(),(0,i.createBlock)(s,{key:0})):((0,i.openBlock)(),(0,i.createElementBlock)("div",Md,[e.showMasthead?((0,i.openBlock)(),(0,i.createBlock)(c,{key:0,resource:o.resourceType,value:o.liveModel,mode:o.mode,"real-mode":a.realMode,as:o.as,"has-graph":o.hasGraph,"has-detail":o.hasCustomDetail,"has-edit":o.hasCustomEdit,"can-view-yaml":o.canViewYaml,"resource-subtype":o.resourceSubtype,"parent-route-override":n.parentRouteOverride,"store-override":n.storeOverride},{default:(0,i.withCtx)((()=>[a.isView&&a.isDetail?((0,i.openBlock)(),(0,i.createBlock)(l,{key:0,value:o.liveModel},null,8,["value"])):(0,i.createCommentVNode)("",!0)])),_:1},8,["resource","value","mode","real-mode","as","has-graph","has-detail","has-edit","can-view-yaml","resource-subtype","parent-route-override","store-override"])):(0,i.createCommentVNode)("",!0),a.hasErrors?((0,i.openBlock)(),(0,i.createElementBlock)("div",Fd,[((0,i.openBlock)(!0),(0,i.createElementBlock)(i.Fragment,null,(0,i.renderList)(o.errors,((e,t)=>((0,i.openBlock)(),(0,i.createBlock)(u,{key:t,color:"error","data-testid":`error-banner${t}`,label:a.stringify(a.mappedErrors[e].message),icon:a.mappedErrors[e].icon,closable:!0,onClose:e=>a.closeError(t)},null,8,["data-testid","label","icon","onClose"])))),128))])):(0,i.createCommentVNode)("",!0),a.isGraph&&o.canViewChart?((0,i.openBlock)(),(0,i.createBlock)(d,{key:2,data:o.chartData,"fdc-config":e.getGraphConfig},null,8,["data","fdc-config"])):a.isYaml?((0,i.openBlock)(),(0,i.createBlock)(h,{key:3,ref:"resourceyaml",value:o.value,mode:o.mode,yaml:o.yaml,"offer-preview":a.offerPreview,"done-route":e.doneRoute,"done-override":o.value?o.value.doneOverride:null,"onUpdate:value":t[0]||(t[0]=t=>e.$emit("input",t)),onError:t[1]||(t[1]=e=>o.errors.push(e))},null,8,["value","mode","yaml","offer-preview","done-route","done-override"])):((0,i.openBlock)(),(0,i.createBlock)((0,i.resolveDynamicComponent)(a.showComponent),(0,i.mergeProps)({key:4,ref:"comp",value:o.value,"onUpdate:value":t[2]||(t[2]=e=>o.value=e)},e.$data,{"done-params":e.doneParams,"done-route":e.doneRoute,mode:o.mode,"initial-value":o.initialModel,"live-value":o.liveModel,"real-mode":a.realMode,"onUpdate:value":t[3]||(t[3]=t=>e.$emit("input",t)),onSetSubtype:a.setSubtype}),null,16,["value","done-params","done-route","mode","initial-value","live-value","real-mode","onSetSubtype"])),a.isView?(0,i.withDirectives)(((0,i.openBlock)(),(0,i.createElementBlock)("button",{key:5,"data-testid":n.componentTestid+"-detail",class:"hide",onShortkey:t[4]||(t[4]=e=>a.keyAction("goToDetail"))},null,40,Bd)),[[p,["shift","d"],void 0,{once:!0}]]):(0,i.createCommentVNode)("",!0),a.isView?(0,i.withDirectives)(((0,i.openBlock)(),(0,i.createElementBlock)("button",{key:6,"data-testid":n.componentTestid+"-config",class:"hide",onShortkey:t[5]||(t[5]=e=>a.keyAction("goToViewConfig"))},null,40,$d)),[[p,["shift","c"],void 0,{once:!0}]]):(0,i.createCommentVNode)("",!0),a.isView?(0,i.withDirectives)(((0,i.openBlock)(),(0,i.createElementBlock)("button",{key:7,"data-testid":n.componentTestid+"-yaml",class:"hide",onShortkey:t[6]||(t[6]=e=>a.keyAction("goToViewYaml"))},null,40,jd)),[[p,["shift","y"],void 0,{once:!0}]]):(0,i.createCommentVNode)("",!0),a.isView?(0,i.withDirectives)(((0,i.openBlock)(),(0,i.createElementBlock)("button",{key:8,"data-testid":n.componentTestid+"-edit",class:"hide",onShortkey:t[7]||(t[7]=e=>a.keyAction("goToEdit"))},null,40,Ud)),[[p,["shift","e"],void 0,{once:!0}]]):(0,i.createCommentVNode)("",!0)]))}var Kd=o(58331),Hd=o(90736);const Gd=e=>((0,i.pushScopeId)("data-v-0f4333f4"),e=e(),(0,i.popScopeId)(),e),zd={class:"masthead"},Xd={class:"title"},qd={class:"primaryheader"},Wd={key:3},Yd={key:4},Qd={key:7,class:"masthead-istio"},Jd={class:"icon icon-sm icon-istio"},Zd=["href"],eh=Gd((()=>(0,i.createElementVNode)("i",{class:"icon icon-external-link"},null,-1))),th=[eh],nh={key:0,class:"subheader"},rh={key:0},ih={key:1},oh={key:2},ah={key:1},sh={key:3},lh={key:4},ch={class:"live-data"},uh={class:"actions-container align-start"},dh={class:"actions"},hh=["disabled"],ph=Gd((()=>(0,i.createElementVNode)("i",{class:"icon icon-actions"},null,-1))),fh=[ph];function mh(e,t,n,r,o,a){const s=(0,i.resolveComponent)("TabTitle"),l=(0,i.resolveComponent)("router-link"),c=(0,i.resolveComponent)("t"),u=(0,i.resolveComponent)("BadgeState"),d=(0,i.resolveComponent)("LiveDate"),h=(0,i.resolveComponent)("ButtonGroup"),p=(0,i.resolveComponent)("ExtensionPanel"),f=(0,i.resolveComponent)("Banner"),m=(0,i.resolveDirective)("clean-tooltip");return(0,i.openBlock)(),(0,i.createElementBlock)("div",zd,[(0,i.createElementVNode)("header",null,[(0,i.createElementVNode)("div",Xd,[(0,i.createElementVNode)("div",qd,[(0,i.createElementVNode)("h1",null,[a.isCreate?((0,i.openBlock)(),(0,i.createBlock)(s,{key:0,showChild:!1},{default:(0,i.withCtx)((()=>[(0,i.createTextVNode)((0,i.toDisplayString)(a.parent.displayName),1)])),_:1})):((0,i.openBlock)(),(0,i.createBlock)(s,{key:1,showChild:!1},{default:(0,i.withCtx)((()=>[(0,i.createTextVNode)((0,i.toDisplayString)(a.displayName),1)])),_:1})),a.location?((0,i.openBlock)(),(0,i.createBlock)(l,{key:2,to:a.location},{default:(0,i.withCtx)((()=>[(0,i.createTextVNode)((0,i.toDisplayString)(a.parent.displayName)+": ",1)])),_:1},8,["to"])):((0,i.openBlock)(),(0,i.createElementBlock)("span",Wd,(0,i.toDisplayString)(a.parent.displayName)+":",1)),n.value?.detailPageHeaderActionOverride&&n.value?.detailPageHeaderActionOverride(n.realMode)?((0,i.openBlock)(),(0,i.createElementBlock)("span",Yd,(0,i.toDisplayString)(n.value?.detailPageHeaderActionOverride(n.realMode)),1)):((0,i.openBlock)(),(0,i.createBlock)(c,{key:5,class:"masthead-resource-title",k:"resourceDetail.header."+n.realMode,subtype:n.resourceSubtype,name:a.displayName,escapehtml:!1},null,8,["k","subtype","name"])),!a.isCreate&&a.parent.showState?((0,i.openBlock)(),(0,i.createBlock)(u,{key:6,class:"masthead-state",value:n.value},null,8,["value"])):(0,i.createCommentVNode)("",!0),!a.isCreate&&n.value.injectionEnabled?((0,i.openBlock)(),(0,i.createElementBlock)("span",Qd,[(0,i.withDirectives)((0,i.createElementVNode)("i",Jd,null,512),[[m,e.t("projectNamespaces.isIstioInjectionEnabled")]])])):(0,i.createCommentVNode)("",!0),a.dev&&a.resourceExternalLink?(0,i.withDirectives)(((0,i.openBlock)(),(0,i.createElementBlock)("a",{key:8,class:"resource-external",rel:"nofollow noopener noreferrer",target:"_blank",href:a.resourceExternalLink.url},th,8,Zd)),[[m,e.t(a.resourceExternalLink.tipsKey||"generic.resourceExternalLinkTips")]]):(0,i.createCommentVNode)("",!0)])]),a.isCreate?(0,i.createCommentVNode)("",!0):((0,i.openBlock)(),(0,i.createElementBlock)("div",nh,[a.isNamespace&&a.project?((0,i.openBlock)(),(0,i.createElementBlock)("span",rh,[(0,i.createTextVNode)((0,i.toDisplayString)(e.t("resourceDetail.masthead.project"))+": ",1),(0,i.createVNode)(l,{to:a.project.detailLocation},{default:(0,i.withCtx)((()=>[(0,i.createTextVNode)((0,i.toDisplayString)(a.project.nameDisplay),1)])),_:1},8,["to"])])):a.isWorkspace?((0,i.openBlock)(),(0,i.createElementBlock)("span",ih,[(0,i.createTextVNode)((0,i.toDisplayString)(e.t("resourceDetail.masthead.workspace"))+": ",1),(0,i.createVNode)(l,{to:a.workspaceLocation},{default:(0,i.withCtx)((()=>[(0,i.createTextVNode)((0,i.toDisplayString)(a.namespace),1)])),_:1},8,["to"])])):a.namespace&&!a.hasMultipleNamespaces?((0,i.openBlock)(),(0,i.createElementBlock)("span",oh,[(0,i.createTextVNode)((0,i.toDisplayString)(e.t("resourceDetail.masthead.namespace"))+": ",1),a.hideNamespaceLocation?((0,i.openBlock)(),(0,i.createElementBlock)("span",ah,(0,i.toDisplayString)(a.namespace),1)):((0,i.openBlock)(),(0,i.createBlock)(l,{key:0,to:a.namespaceLocation,"data-testid":"masthead-subheader-namespace"},{default:(0,i.withCtx)((()=>[(0,i.createTextVNode)((0,i.toDisplayString)(a.namespace),1)])),_:1},8,["to"]))])):(0,i.createCommentVNode)("",!0),a.parent.showAge?((0,i.openBlock)(),(0,i.createElementBlock)("span",sh,[(0,i.createTextVNode)((0,i.toDisplayString)(e.t("resourceDetail.masthead.age"))+": ",1),(0,i.createVNode)(d,{class:"live-date",value:n.value.creationTimestamp},null,8,["value"])])):(0,i.createCommentVNode)("",!0),n.value.showPodRestarts?((0,i.openBlock)(),(0,i.createElementBlock)("span",lh,[(0,i.createTextVNode)((0,i.toDisplayString)(e.t("resourceDetail.masthead.restartCount"))+":",1),(0,i.createElementVNode)("span",ch,(0,i.toDisplayString)(n.value.restartCount),1)])):(0,i.createCommentVNode)("",!0)]))]),(0,i.renderSlot)(e.$slots,"right",{},(()=>[(0,i.createElementVNode)("div",uh,[(0,i.createElementVNode)("div",dh,[a.detailsAction&&a.currentView===o.DETAIL_VIEW&&a.isView?((0,i.openBlock)(),(0,i.createElementBlock)("button",{key:0,type:"button",class:"btn role-primary actions mr-10",disabled:!a.detailsAction.enabled,onClick:t[0]||(t[0]=(...e)=>a.invokeDetailsAction&&a.invokeDetailsAction(...e))},(0,i.toDisplayString)(a.detailsAction.label),9,hh)):(0,i.createCommentVNode)("",!0),a.showSensitiveToggle?((0,i.openBlock)(),(0,i.createBlock)(h,{key:1,value:!!a.hideSensitiveData,"icon-size":"lg",options:a.sensitiveOptions,class:"mr-10","onUpdate:value":a.toggleSensitiveData},null,8,["value","options","onUpdate:value"])):(0,i.createCommentVNode)("",!0),a.viewOptions&&a.isView?((0,i.openBlock)(),(0,i.createBlock)(h,{key:2,value:a.currentView,"onUpdate:value":t[1]||(t[1]=e=>a.currentView=e),options:a.viewOptions,class:"mr-10"},null,8,["value","options"])):(0,i.createCommentVNode)("",!0),a.isView?((0,i.openBlock)(),(0,i.createElementBlock)("button",{key:3,ref:"actions","data-testid":"masthead-action-menu","aria-haspopup":"true",type:"button",class:"btn role-multi-action actions",onClick:t[2]||(t[2]=(...e)=>a.showActions&&a.showActions(...e))},fh,512)):(0,i.createCommentVNode)("",!0)])])]),!0)]),(0,i.createVNode)(p,{resource:n.value,type:o.extensionType,location:o.extensionLocation},null,8,["resource","type","location"]),a.banner&&a.isView&&!a.parent.hideBanner?((0,i.openBlock)(),(0,i.createBlock)(f,{key:0,class:"state-banner mb-10",color:a.banner.color,label:a.banner.message},null,8,["color","label"])):(0,i.createCommentVNode)("",!0),a.managedWarning.show?((0,i.openBlock)(),(0,i.createBlock)(f,{key:1,color:"warning",class:"mb-20",label:e.t("resourceDetail.masthead.managedWarning",a.managedWarning)},null,8,["label"])):(0,i.createCommentVNode)("",!0),(0,i.renderSlot)(e.$slots,"default",{},void 0,!0)])}var gh=o(71445),vh=o(70104),yh=o(63465),bh=o(37386),_h=o(79260);var wh=o(65505);const Eh="fleet";var Sh=o(60324),xh={name:"MastheadResourceDetail",components:{BadgeState:yh.j,Banner:kd.l,ButtonGroup:vh.A,ExtensionPanel:Su,TabTitle:Sh.A},props:{value:{type:Object,default:()=>({})},mode:{type:String,default:"create"},realMode:{type:String,default:"create"},as:{type:String,default:yd.zD},hasGraph:{type:Boolean,default:!1},hasDetail:{type:Boolean,default:!1},hasEdit:{type:Boolean,default:!1},storeOverride:{type:String,default:null},resource:{type:String,default:null},resourceSubtype:{type:String,default:null},parentRouteOverride:{type:String,default:null},canViewYaml:{type:Boolean,default:!1}},data(){return{DETAIL_VIEW:yd.fS,extensionType:vu.c7.PANEL,extensionLocation:vu.W7.DETAILS_MASTHEAD}},computed:{dev(){return this.$store.getters["prefs/dev"]},schema(){const e=this.storeOverride||this.$store.getters["currentStore"](this.resource);return this.$store.getters[`${e}/schemaFor`](this.resource)},isView(){return this.mode===yd.nW},isEdit(){return this.mode===yd.G5},isCreate(){return this.mode===yd.YQ},isNamespace(){return this.schema?.id===X.CU},isProject(){return this.schema?.id===X.Mc.PROJECT},isProjectHelmChart(){return this.schema?.id===X.fj.PROJECTHELMCHART},hasMultipleNamespaces(){return!!this.value.namespaces},namespace(){return this.value?.metadata?.namespace?this.value?.metadata?.namespace:null},detailsAction(){return this.value?.detailsAction},shouldHifenize(){return("view"===this.mode||"edit"===this.mode)&&this.resourceSubtype?.length&&this.value?.nameDisplay?.length},namespaceLocation(){return this.isNamespace?null:this.value.namespaceLocation||{name:"c-cluster-product-resource-id",params:{cluster:this.$route.params.cluster,product:this.$store.getters["productId"],resource:X.CU,id:this.$route.params.namespace}}},isWorkspace(){return this.$store.getters["productId"]===Eh&&!!this.value?.metadata?.namespace},workspaceLocation(){return{name:"c-cluster-product-resource-id",params:{cluster:this.$route.params.cluster,product:this.$store.getters["productId"],resource:X.Hs.WORKSPACE,id:this.$route.params.namespace}}},project(){if(this.isNamespace){const e=this.$store.getters["currentCluster"];if(e){const t=(this.value?.metadata?.labels||{})[gh.yl];return this.$store.getters["management/byId"](X.Mc.PROJECT,`${e.id}/${t}`)}}return null},banner(){if(this.value?.stateObj?.error){const e=this.t("resourceDetail.masthead.defaultBannerMessage.error",void 0,!0);return{color:"error",message:this.value.stateObj.message||e}}if(this.value?.spec?.paused)return{color:"info",message:this.t("asyncButton.pause.description")};if(this.value?.stateObj?.transitioning){const e=this.t("resourceDetail.masthead.defaultBannerMessage.transitioning",void 0,!0);return{color:"info",message:this.value.stateObj.message||e}}return null},parent(){const e=this.value?.parentNameOverride||this.$store.getters["type-map/labelFor"](this.schema),t=this.$store.getters["currentProduct"].name,n={name:"c-cluster-product-resource",params:{resource:this.resource,product:t}},r=this.value?.parentLocationOverride||n;this.parentRouteOverride&&(r.name=this.parentRouteOverride);const i=this.$store.getters["type-map/optionsFor"](this.resource),o={displayName:e,location:r,...i};return o},hideSensitiveData(){return this.$store.getters["prefs/get"](M.qv)},sensitiveOptions(){return[{tooltipKey:"resourceDetail.masthead.sensitive.hide",icon:"icon-hide",value:!0},{tooltipKey:"resourceDetail.masthead.sensitive.show",icon:"icon-show",value:!1}]},viewOptions(){const e=[];return this.hasDetail&&e.push({labelKey:"resourceDetail.masthead.detail",value:yd.fS}),this.hasEdit&&!1!==this.parent?.showConfigView&&e.push({labelKey:"resourceDetail.masthead.config",value:yd.au}),this.hasGraph&&e.push({labelKey:"resourceDetail.masthead.graph",value:yd.Yq}),this.canViewYaml&&e.push({labelKey:"resourceDetail.masthead.yaml",value:yd.zD}),e.length<2?null:e},currentView:{get(){return this.as},set(e){switch(e){case yd.fS:this.$router.applyQuery({[yd.g]:yd.xz,[yd.AS]:yd.xz});break;case yd.au:this.$router.applyQuery({[yd.g]:yd.xz,[yd.AS]:yd.au});break;case yd.Yq:this.$router.applyQuery({[yd.g]:yd.xz,[yd.AS]:yd.Yq});break;case yd.zD:this.$router.applyQuery({[yd.g]:yd.xz,[yd.AS]:yd.zD});break}}},showSensitiveToggle(){return!!this.value.hasSensitiveData&&this.mode===yd.nW&&this.as!==yd.zD},managedWarning(){const{value:e}=this,t=e?.metadata?.labels||{},n=t[gh.pS.MANAGED_BY]||"",r=t[gh.pS.MANAGED_NAME]||t[gh.pS.INSTANCE]||"";return{show:this.mode===yd.G5&&!!n,type:e?.kind||"",hasName:r?"yes":"no",appName:r,managedBy:n}},displayName(){let e=this.value.nameDisplay;return this.isProjectHelmChart&&(e=this.value.projectDisplayName),this.shouldHifenize?` - ${e}`:e},location(){const{parent:e}=this;return e?.location},hideNamespaceLocation(){return this.$store.getters["currentProduct"].hideNamespaceLocation||null===this.value.namespaceLocation},resourceExternalLink(){return this.value.resourceExternalLink}},methods:{get:Qc.Jt,showActions(){this.$store.commit("action-menu/show",{resources:this.value,elem:this.$refs.actions})},toggleSensitiveData(e){this.$store.dispatch("prefs/set",{key:M.qv,value:!!e})},invokeDetailsAction(){const e=this.detailsAction;if(e){const t=this.value[e.action];t&&t.apply(this.value,[])}}}};o(4633);const kh=(0,u.A)(xh,[["render",mh],["__scopeId","data-v-0f4333f4"]]);var Ah=kh;const Nh={key:0,class:"labels"},Th={class:"label"},Ch={key:1,class:"description"},Rh={class:"label"},Oh={class:"content"},Ih={key:2},Dh={class:"label"},Lh={key:1},Ph={key:3,class:"labels"},Mh={class:"tags"},Fh={class:"label"},Bh={key:1},$h={key:0},jh={key:2},Uh={key:4,class:"annotations"},Vh={class:"label"},Kh={key:0};function Hh(e,t,n,r,o,a){const s=(0,i.resolveComponent)("router-link"),l=(0,i.resolveComponent)("Tag"),c=(0,i.resolveComponent)("DetailText"),u=(0,i.resolveComponent)("ExtensionPanel"),d=(0,i.resolveDirective)("clean-tooltip");return(0,i.openBlock)(),(0,i.createElementBlock)("div",{class:(0,i.normalizeClass)(["detail-top",{empty:a.isEmpty}])},[a.hasNamespaces?((0,i.openBlock)(),(0,i.createElementBlock)("div",Nh,[(0,i.createElementVNode)("span",Th,(0,i.toDisplayString)(e.t("resourceDetail.detailTop.namespaces"))+": ",1),(0,i.createElementVNode)("span",null,[((0,i.openBlock)(!0),(0,i.createElementBlock)(i.Fragment,null,(0,i.renderList)(a.namespaces,(e=>((0,i.openBlock)(),(0,i.createBlock)(s,{key:e.name,to:e.detailLocation,class:"namespaceLinkList"},{default:(0,i.withCtx)((()=>[(0,i.createTextVNode)((0,i.toDisplayString)(e.name),1)])),_:2},1032,["to"])))),128))])])):(0,i.createCommentVNode)("",!0),a.description?((0,i.openBlock)(),(0,i.createElementBlock)("div",Ch,[(0,i.createElementVNode)("span",Rh,(0,i.toDisplayString)(e.t("resourceDetail.detailTop.description"))+": ",1),(0,i.createElementVNode)("span",Oh,(0,i.toDisplayString)(a.description),1)])):(0,i.createCommentVNode)("",!0),a.hasDetails?((0,i.openBlock)(),(0,i.createElementBlock)("div",Ih,[((0,i.openBlock)(!0),(0,i.createElementBlock)(i.Fragment,null,(0,i.renderList)(a.details,((e,t)=>((0,i.openBlock)(),(0,i.createElementBlock)("div",{key:t,class:"details"},[((0,i.openBlock)(!0),(0,i.createElementBlock)(i.Fragment,null,(0,i.renderList)(e,((e,t)=>((0,i.openBlock)(),(0,i.createElementBlock)("div",{key:t,class:"detail"},[(0,i.createElementVNode)("span",Dh,(0,i.toDisplayString)(e.label)+": ",1),e.formatter?((0,i.openBlock)(),(0,i.createBlock)((0,i.resolveDynamicComponent)(e.formatter),(0,i.mergeProps)({key:0,value:e.content},e.formatterOpts),null,16,["value"])):((0,i.openBlock)(),(0,i.createElementBlock)("span",Lh,(0,i.toDisplayString)(e.content),1))])))),128))])))),128))])):(0,i.createCommentVNode)("",!0),a.hasLabels?((0,i.openBlock)(),(0,i.createElementBlock)("div",Ph,[(0,i.createElementVNode)("div",Mh,[(0,i.createElementVNode)("span",Fh,(0,i.toDisplayString)(e.t("resourceDetail.detailTop.labels"))+": ",1),((0,i.openBlock)(!0),(0,i.createElementBlock)(i.Fragment,null,(0,i.renderList)(a.labels,((e,t)=>((0,i.openBlock)(),(0,i.createBlock)(l,{key:t},{default:(0,i.withCtx)((()=>[a.internalIcons[t]?((0,i.openBlock)(),(0,i.createElementBlock)("i",{key:0,class:(0,i.normalizeClass)(["icon",a.internalIcons[t]])},null,2)):(0,i.createCommentVNode)("",!0),a.internalTooltips[t]?(0,i.withDirectives)(((0,i.openBlock)(),(0,i.createElementBlock)("span",Bh,[(0,i.createElementVNode)("span",null,(0,i.toDisplayString)(a.internalTooltips[t]?a.internalTooltips[t]:t),1),o.showAllLabels?((0,i.openBlock)(),(0,i.createElementBlock)("span",$h,": "+(0,i.toDisplayString)(t),1)):(0,i.createCommentVNode)("",!0)])),[[d,e?`${t} : ${e}`:t]]):((0,i.openBlock)(),(0,i.createElementBlock)("span",jh,(0,i.toDisplayString)(e?`${t} : ${e}`:t),1))])),_:2},1024)))),128)),a.showFilteredSystemLabels?((0,i.openBlock)(),(0,i.createElementBlock)("a",{key:0,href:"#",class:"detail-top__label-button",onClick:t[0]||(t[0]=(0,i.withModifiers)(((...e)=>a.toggleLabels&&a.toggleLabels(...e)),["prevent"]))},(0,i.toDisplayString)(e.t("resourceDetail.detailTop."+(o.showAllLabels?"hideLabels":"showLabels"))),1)):(0,i.createCommentVNode)("",!0)])])):(0,i.createCommentVNode)("",!0),a.hasAnnotations?((0,i.openBlock)(),(0,i.createElementBlock)("div",Uh,[(0,i.createElementVNode)("span",Vh,(0,i.toDisplayString)(e.t("resourceDetail.detailTop.annotations"))+": ",1),(0,i.createElementVNode)("a",{href:"#",onClick:t[1]||(t[1]=(0,i.withModifiers)(((...e)=>a.toggleAnnotations&&a.toggleAnnotations(...e)),["prevent"]))},(0,i.toDisplayString)(e.t("resourceDetail.detailTop."+(o.annotationsVisible?"hideAnnotations":"showAnnotations"),{annotations:a.annotationCount})),1),o.annotationsVisible?((0,i.openBlock)(),(0,i.createElementBlock)("div",Kh,[((0,i.openBlock)(!0),(0,i.createElementBlock)(i.Fragment,null,(0,i.renderList)(a.annotations,((e,t)=>((0,i.openBlock)(),(0,i.createBlock)(c,{key:t,class:"annotation",value:e,label:t},null,8,["value","label"])))),128))])):(0,i.createCommentVNode)("",!0)])):(0,i.createCommentVNode)("",!0),(0,i.createVNode)(u,{resource:n.value,type:o.extensionType,location:o.extensionLocation},null,8,["resource","type","location"])],2)}var Gh=o(93410),zh=o(15510),Xh=o.n(zh),qh=o(88474),Wh={components:{DetailText:qh.A,Tag:Gh.A,ExtensionPanel:Su},props:{value:{type:Object,default:()=>({})},moreDetails:{type:Array,default:()=>[]},tooltips:{type:Object,default:()=>({})},icons:{type:Object,default:()=>({})}},data(){return{extensionType:vu.c7.PANEL,extensionLocation:vu.W7.DETAIL_TOP,annotationsVisible:!1,showAllLabels:!1,view:yd.nW}},computed:{namespaces(){return(this.value?.namespaces||[]).map((e=>({name:e?.metadata?.name,detailLocation:e.detailLocation})))},details(){const e=[...this.moreDetails||[],...this.value?.details||[]].filter((e=>e.separator||!!`${e.content}`&&void 0!==e.content&&null!==e.content)),t=[];let n=[];return e.forEach((e=>{e.separator?(t.push(n),n=[]):n.push(e)})),n.length&&t.push(n),t},labels(){return this.showAllLabels||!this.showFilteredSystemLabels?this.value?.labels||{}:this.value?.filteredSystemLabels},internalTooltips(){return this.value?.detailTopTooltips||this.tooltips},internalIcons(){return this.value?.detailTopIcons||this.icons},annotations(){return this.value?.annotations||{}},description(){return this.value?.description},hasDetails(){return!Xh()(this.details)},hasLabels(){return!Xh()(this.labels)},hasAnnotations(){return!Xh()(this.annotations)},hasDescription(){return!Xh()(this.description)},hasNamespaces(){return!Xh()(this.namespaces)},annotationCount(){return Object.keys(this.annotations||{}).length},isEmpty(){const e=this.hasDetails||this.hasLabels||this.hasAnnotations||this.hasDescription||this.hasNamespaces;return!e},showFilteredSystemLabels(){if(this.value?.labels&&this.value?.filteredSystemLabels){const e=Object.keys(this.value.labels).length,t=Object.keys(this.value.filteredSystemLabels).length;return e!==t}return!1}},methods:{toggleLabels(){this.showAllLabels=!this.showAllLabels},toggleAnnotations(e){this.annotationsVisible=!this.annotationsVisible}}};o(38222);const Yh=(0,u.A)(Wh,[["render",Hh]]);var Qh=Yh;const Jh={class:"chart-container","data-testid":"gitrepo_graph"},Zh={key:0,class:"loading-container"},ep=(0,i.createElementVNode)("i",{class:"mt-10 icon-spinner icon-spin"},null,-1),tp=(0,i.createElementVNode)("div",{id:"tree"},null,-1),np={class:"more-info-container"},rp={class:"more-info"},ip={class:"more-info-item-label"},op={key:1},ap={key:0},sp={key:1},lp={key:2,class:"align-middle"},cp={key:3,class:"single-error",colspan:"2"},up={key:4};function dp(e,t,n,r,o,a){const s=(0,i.resolveComponent)("router-link"),l=(0,i.resolveComponent)("BadgeState");return(0,i.openBlock)(),(0,i.createElementBlock)("div",null,[(0,i.createElementVNode)("div",Jh,[o.isChartFirstRenderAnimationFinished?(0,i.createCommentVNode)("",!0):((0,i.openBlock)(),(0,i.createElementBlock)("div",Zh,[(0,i.withDirectives)((0,i.createElementVNode)("p",null,(0,i.toDisplayString)(e.t("fleet.fdc.loadingChart")),513),[[i.vShow,!o.isChartFirstRendered]]),(0,i.withDirectives)((0,i.createElementVNode)("p",null,(0,i.toDisplayString)(e.t("fleet.fdc.renderingChart")),513),[[i.vShow,o.isChartFirstRendered&&!o.isChartFirstRenderAnimationFinished]]),ep])),tp,(0,i.createElementVNode)("div",np,[(0,i.createElementVNode)("div",rp,[(0,i.createElementVNode)("table",null,[((0,i.openBlock)(!0),(0,i.createElementBlock)(i.Fragment,null,(0,i.renderList)(o.moreInfo,((t,n)=>((0,i.openBlock)(),(0,i.createElementBlock)("tr",{key:n},["single-error"!==t.type?((0,i.openBlock)(),(0,i.createElementBlock)("td",{key:0,class:(0,i.normalizeClass)({"align-middle":"state-badge"===t.type})},[(0,i.createElementVNode)("span",ip,(0,i.toDisplayString)(e.t(t.labelKey))+":",1)],2)):(0,i.createCommentVNode)("",!0),"title-link"===t.type?((0,i.openBlock)(),(0,i.createElementBlock)("td",op,[t.valueObj.detailLocation?((0,i.openBlock)(),(0,i.createElementBlock)("span",ap,[(0,i.createVNode)(s,{to:t.valueObj.detailLocation},{default:(0,i.withCtx)((()=>[(0,i.createTextVNode)((0,i.toDisplayString)(t.valueObj.id),1)])),_:2},1032,["to"])])):((0,i.openBlock)(),(0,i.createElementBlock)("span",sp,(0,i.toDisplayString)(t.valueObj.id),1))])):"state-badge"===t.type?((0,i.openBlock)(),(0,i.createElementBlock)("td",lp,[(0,i.createElementVNode)("span",null,[(0,i.createVNode)(l,{color:`bg-${t.valueObj.stateColor}`,label:t.valueObj.stateLabel,class:"state-bagde"},null,8,["color","label"])])])):(0,i.createCommentVNode)("",!0),"single-error"===t.type?((0,i.openBlock)(),(0,i.createElementBlock)("td",cp,[(0,i.createElementVNode)("p",null,(0,i.toDisplayString)(t.value),1)])):((0,i.openBlock)(),(0,i.createElementBlock)("td",up,(0,i.toDisplayString)(t.value),1))])))),128))])])])])])}function hp(){}function pp(e){return null==e?hp:function(){return this.querySelector(e)}}function fp(e){"function"!==typeof e&&(e=pp(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o,a,s=t[i],l=s.length,c=r[i]=new Array(l),u=0;u<l;++u)(o=s[u])&&(a=e.call(o,o.__data__,u,s))&&("__data__"in o&&(a.__data__=o.__data__),c[u]=a);return new cm(r,this._parents)}function mp(e){return null==e?[]:Array.isArray(e)?e:Array.from(e)}function gp(){return[]}function vp(e){return null==e?gp:function(){return this.querySelectorAll(e)}}function yp(e){return function(){return mp(e.apply(this,arguments))}}function bp(e){e="function"===typeof e?yp(e):vp(e);for(var t=this._groups,n=t.length,r=[],i=[],o=0;o<n;++o)for(var a,s=t[o],l=s.length,c=0;c<l;++c)(a=s[c])&&(r.push(e.call(a,a.__data__,c,s)),i.push(a));return new cm(r,i)}function _p(e){return function(){return this.matches(e)}}function wp(e){return function(t){return t.matches(e)}}var Ep=Array.prototype.find;function Sp(e){return function(){return Ep.call(this.children,e)}}function xp(){return this.firstElementChild}function kp(e){return this.select(null==e?xp:Sp("function"===typeof e?e:wp(e)))}var Ap=Array.prototype.filter;function Np(){return Array.from(this.children)}function Tp(e){return function(){return Ap.call(this.children,e)}}function Cp(e){return this.selectAll(null==e?Np:Tp("function"===typeof e?e:wp(e)))}function Rp(e){"function"!==typeof e&&(e=_p(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o,a=t[i],s=a.length,l=r[i]=[],c=0;c<s;++c)(o=a[c])&&e.call(o,o.__data__,c,a)&&l.push(o);return new cm(r,this._parents)}function Op(e){return new Array(e.length)}function Ip(){return new cm(this._enter||this._groups.map(Op),this._parents)}function Dp(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function Lp(e){return function(){return e}}function Pp(e,t,n,r,i,o){for(var a,s=0,l=t.length,c=o.length;s<c;++s)(a=t[s])?(a.__data__=o[s],r[s]=a):n[s]=new Dp(e,o[s]);for(;s<l;++s)(a=t[s])&&(i[s]=a)}function Mp(e,t,n,r,i,o,a){var s,l,c,u=new Map,d=t.length,h=o.length,p=new Array(d);for(s=0;s<d;++s)(l=t[s])&&(p[s]=c=a.call(l,l.__data__,s,t)+"",u.has(c)?i[s]=l:u.set(c,l));for(s=0;s<h;++s)c=a.call(e,o[s],s,o)+"",(l=u.get(c))?(r[s]=l,l.__data__=o[s],u.delete(c)):n[s]=new Dp(e,o[s]);for(s=0;s<d;++s)(l=t[s])&&u.get(p[s])===l&&(i[s]=l)}function Fp(e){return e.__data__}function Bp(e,t){if(!arguments.length)return Array.from(this,Fp);var n=t?Mp:Pp,r=this._parents,i=this._groups;"function"!==typeof e&&(e=Lp(e));for(var o=i.length,a=new Array(o),s=new Array(o),l=new Array(o),c=0;c<o;++c){var u=r[c],d=i[c],h=d.length,p=$p(e.call(u,u&&u.__data__,c,r)),f=p.length,m=s[c]=new Array(f),g=a[c]=new Array(f),v=l[c]=new Array(h);n(u,d,m,g,v,p,t);for(var y,b,_=0,w=0;_<f;++_)if(y=m[_]){_>=w&&(w=_+1);while(!(b=g[w])&&++w<f);y._next=b||null}}return a=new cm(a,r),a._enter=s,a._exit=l,a}function $p(e){return"object"===typeof e&&"length"in e?e:Array.from(e)}function jp(){return new cm(this._exit||this._groups.map(Op),this._parents)}function Up(e,t,n){var r=this.enter(),i=this,o=this.exit();return"function"===typeof e?(r=e(r),r&&(r=r.selection())):r=r.append(e+""),null!=t&&(i=t(i),i&&(i=i.selection())),null==n?o.remove():n(o),r&&i?r.merge(i).order():i}function Vp(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,o=r.length,a=Math.min(i,o),s=new Array(i),l=0;l<a;++l)for(var c,u=n[l],d=r[l],h=u.length,p=s[l]=new Array(h),f=0;f<h;++f)(c=u[f]||d[f])&&(p[f]=c);for(;l<i;++l)s[l]=n[l];return new cm(s,this._parents)}function Kp(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r,i=e[t],o=i.length-1,a=i[o];--o>=0;)(r=i[o])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this}function Hp(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=Gp);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var a,s=n[o],l=s.length,c=i[o]=new Array(l),u=0;u<l;++u)(a=s[u])&&(c[u]=a);c.sort(t)}return new cm(i,this._parents).order()}function Gp(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function zp(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Xp(){return Array.from(this)}function qp(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null}function Wp(){let e=0;for(const t of this)++e;return e}function Yp(){return!this.node()}function Qp(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i,o=t[n],a=0,s=o.length;a<s;++a)(i=o[a])&&e.call(i,i.__data__,a,o);return this}Dp.prototype={constructor:Dp,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};var Jp="http://www.w3.org/1999/xhtml",Zp={svg:"http://www.w3.org/2000/svg",xhtml:Jp,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function ef(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),Zp.hasOwnProperty(t)?{space:Zp[t],local:e}:e}function tf(e){return function(){this.removeAttribute(e)}}function nf(e){return function(){this.removeAttributeNS(e.space,e.local)}}function rf(e,t){return function(){this.setAttribute(e,t)}}function of(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function af(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function sf(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function lf(e,t){var n=ef(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==t?n.local?nf:tf:"function"===typeof t?n.local?sf:af:n.local?of:rf)(n,t))}function cf(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function uf(e){return function(){this.style.removeProperty(e)}}function df(e,t,n){return function(){this.style.setProperty(e,t,n)}}function hf(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function pf(e,t,n){return arguments.length>1?this.each((null==t?uf:"function"===typeof t?hf:df)(e,t,null==n?"":n)):ff(this.node(),e)}function ff(e,t){return e.style.getPropertyValue(t)||cf(e).getComputedStyle(e,null).getPropertyValue(t)}function mf(e){return function(){delete this[e]}}function gf(e,t){return function(){this[e]=t}}function vf(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function yf(e,t){return arguments.length>1?this.each((null==t?mf:"function"===typeof t?vf:gf)(e,t)):this.node()[e]}function bf(e){return e.trim().split(/^|\s+/)}function _f(e){return e.classList||new wf(e)}function wf(e){this._node=e,this._names=bf(e.getAttribute("class")||"")}function Ef(e,t){var n=_f(e),r=-1,i=t.length;while(++r<i)n.add(t[r])}function Sf(e,t){var n=_f(e),r=-1,i=t.length;while(++r<i)n.remove(t[r])}function xf(e){return function(){Ef(this,e)}}function kf(e){return function(){Sf(this,e)}}function Af(e,t){return function(){(t.apply(this,arguments)?Ef:Sf)(this,e)}}function Nf(e,t){var n=bf(e+"");if(arguments.length<2){var r=_f(this.node()),i=-1,o=n.length;while(++i<o)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"===typeof t?Af:t?xf:kf)(n,t))}function Tf(){this.textContent=""}function Cf(e){return function(){this.textContent=e}}function Rf(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}function Of(e){return arguments.length?this.each(null==e?Tf:("function"===typeof e?Rf:Cf)(e)):this.node().textContent}function If(){this.innerHTML=""}function Df(e){return function(){this.innerHTML=e}}function Lf(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}function Pf(e){return arguments.length?this.each(null==e?If:("function"===typeof e?Lf:Df)(e)):this.node().innerHTML}function Mf(){this.nextSibling&&this.parentNode.appendChild(this)}function Ff(){return this.each(Mf)}function Bf(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function $f(){return this.each(Bf)}function jf(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===Jp&&t.documentElement.namespaceURI===Jp?t.createElement(e):t.createElementNS(n,e)}}function Uf(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Vf(e){var t=ef(e);return(t.local?Uf:jf)(t)}function Kf(e){var t="function"===typeof e?e:Vf(e);return this.select((function(){return this.appendChild(t.apply(this,arguments))}))}function Hf(){return null}function Gf(e,t){var n="function"===typeof e?e:Vf(e),r=null==t?Hf:"function"===typeof t?t:pp(t);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))}function zf(){var e=this.parentNode;e&&e.removeChild(this)}function Xf(){return this.each(zf)}function qf(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Wf(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Yf(e){return this.select(e?Wf:qf)}function Qf(e){return arguments.length?this.property("__data__",e):this.node().__data__}function Jf(e){return function(t){e.call(this,t,this.__data__)}}function Zf(e){return e.trim().split(/^|\s+/).map((function(e){var t="",n=e.indexOf(".");return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}}))}function em(e){return function(){var t=this.__on;if(t){for(var n,r=0,i=-1,o=t.length;r<o;++r)n=t[r],e.type&&n.type!==e.type||n.name!==e.name?t[++i]=n:this.removeEventListener(n.type,n.listener,n.options);++i?t.length=i:delete this.__on}}}function tm(e,t,n){return function(){var r,i=this.__on,o=Jf(t);if(i)for(var a=0,s=i.length;a<s;++a)if((r=i[a]).type===e.type&&r.name===e.name)return this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=o,r.options=n),void(r.value=t);this.addEventListener(e.type,o,n),r={type:e.type,name:e.name,value:t,listener:o,options:n},i?i.push(r):this.__on=[r]}}function nm(e,t,n){var r,i,o=Zf(e+""),a=o.length;if(!(arguments.length<2)){for(s=t?tm:em,r=0;r<a;++r)this.each(s(o[r],t,n));return this}var s=this.node().__on;if(s)for(var l,c=0,u=s.length;c<u;++c)for(r=0,l=s[c];r<a;++r)if((i=o[r]).type===l.type&&i.name===l.name)return l.value}function rm(e,t,n){var r=cf(e),i=r.CustomEvent;"function"===typeof i?i=new i(t,n):(i=r.document.createEvent("Event"),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function im(e,t){return function(){return rm(this,e,t)}}function om(e,t){return function(){return rm(this,e,t.apply(this,arguments))}}function am(e,t){return this.each(("function"===typeof t?om:im)(e,t))}function*sm(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r,i=e[t],o=0,a=i.length;o<a;++o)(r=i[o])&&(yield r)}wf.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};var lm=[null];function cm(e,t){this._groups=e,this._parents=t}function um(){return new cm([[document.documentElement]],lm)}function dm(){return this}cm.prototype=um.prototype={constructor:cm,select:fp,selectAll:bp,selectChild:kp,selectChildren:Cp,filter:Rp,data:Bp,enter:Ip,exit:jp,join:Up,merge:Vp,selection:dm,order:Kp,sort:Hp,call:zp,nodes:Xp,node:qp,size:Wp,empty:Yp,each:Qp,attr:lf,style:pf,property:yf,classed:Nf,text:Of,html:Pf,raise:Ff,lower:$f,append:Kf,insert:Gf,remove:Xf,clone:Yf,datum:Qf,on:nm,dispatch:am,[Symbol.iterator]:sm};var hm=um,pm={value:()=>{}};function fm(){for(var e,t=0,n=arguments.length,r={};t<n;++t){if(!(e=arguments[t]+"")||e in r||/[\s.]/.test(e))throw new Error("illegal type: "+e);r[e]=[]}return new mm(r)}function mm(e){this._=e}function gm(e,t){return e.trim().split(/^|\s+/).map((function(e){var n="",r=e.indexOf(".");if(r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:n}}))}function vm(e,t){for(var n,r=0,i=e.length;r<i;++r)if((n=e[r]).name===t)return n.value}function ym(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=pm,e=e.slice(0,r).concat(e.slice(r+1));break}return null!=n&&e.push({name:t,value:n}),e}mm.prototype=fm.prototype={constructor:mm,on:function(e,t){var n,r=this._,i=gm(e+"",r),o=-1,a=i.length;if(!(arguments.length<2)){if(null!=t&&"function"!==typeof t)throw new Error("invalid callback: "+t);while(++o<a)if(n=(e=i[o]).type)r[n]=ym(r[n],e.name,t);else if(null==t)for(n in r)r[n]=ym(r[n],e.name,null);return this}while(++o<a)if((n=(e=i[o]).type)&&(n=vm(r[n],e.name)))return n},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new mm(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var n,r,i=new Array(n),o=0;o<n;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(r=this._[e],o=0,n=r.length;o<n;++o)r[o].value.apply(t,i)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],i=0,o=r.length;i<o;++i)r[i].value.apply(t,n)}};var bm,_m,wm=fm,Em=0,Sm=0,xm=0,km=1e3,Am=0,Nm=0,Tm=0,Cm="object"===typeof performance&&performance.now?performance:Date,Rm="object"===typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Om(){return Nm||(Rm(Im),Nm=Cm.now()+Tm)}function Im(){Nm=0}function Dm(){this._call=this._time=this._next=null}function Lm(e,t,n){var r=new Dm;return r.restart(e,t,n),r}function Pm(){Om(),++Em;var e,t=bm;while(t)(e=Nm-t._time)>=0&&t._call.call(void 0,e),t=t._next;--Em}function Mm(){Nm=(Am=Cm.now())+Tm,Em=Sm=0;try{Pm()}finally{Em=0,Bm(),Nm=0}}function Fm(){var e=Cm.now(),t=e-Am;t>km&&(Tm-=t,Am=e)}function Bm(){var e,t,n=bm,r=1/0;while(n)n._call?(r>n._time&&(r=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:bm=t);_m=e,$m(r)}function $m(e){if(!Em){Sm&&(Sm=clearTimeout(Sm));var t=e-Nm;t>24?(e<1/0&&(Sm=setTimeout(Mm,e-Cm.now()-Tm)),xm&&(xm=clearInterval(xm))):(xm||(Am=Cm.now(),xm=setInterval(Fm,km)),Em=1,Rm(Mm))}}function jm(e,t,n){var r=new Dm;return t=null==t?0:+t,r.restart((n=>{r.stop(),e(n+t)}),t,n),r}Dm.prototype=Lm.prototype={constructor:Dm,restart:function(e,t,n){if("function"!==typeof e)throw new TypeError("callback is not a function");n=(null==n?Om():+n)+(null==t?0:+t),this._next||_m===this||(_m?_m._next=this:bm=this,_m=this),this._call=e,this._time=n,$m()},stop:function(){this._call&&(this._call=null,this._time=1/0,$m())}};var Um=wm("start","end","cancel","interrupt"),Vm=[],Km=0,Hm=1,Gm=2,zm=3,Xm=4,qm=5,Wm=6;function Ym(e,t,n,r,i,o){var a=e.__transition;if(a){if(n in a)return}else e.__transition={};eg(e,n,{name:t,index:r,group:i,on:Um,tween:Vm,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:Km})}function Qm(e,t){var n=Zm(e,t);if(n.state>Km)throw new Error("too late; already scheduled");return n}function Jm(e,t){var n=Zm(e,t);if(n.state>zm)throw new Error("too late; already running");return n}function Zm(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function eg(e,t,n){var r,i=e.__transition;function o(e){n.state=Hm,n.timer.restart(a,n.delay,n.time),n.delay<=e&&a(e-n.delay)}function a(o){var c,u,d,h;if(n.state!==Hm)return l();for(c in i)if(h=i[c],h.name===n.name){if(h.state===zm)return jm(a);h.state===Xm?(h.state=Wm,h.timer.stop(),h.on.call("interrupt",e,e.__data__,h.index,h.group),delete i[c]):+c<t&&(h.state=Wm,h.timer.stop(),h.on.call("cancel",e,e.__data__,h.index,h.group),delete i[c])}if(jm((function(){n.state===zm&&(n.state=Xm,n.timer.restart(s,n.delay,n.time),s(o))})),n.state=Gm,n.on.call("start",e,e.__data__,n.index,n.group),n.state===Gm){for(n.state=zm,r=new Array(d=n.tween.length),c=0,u=-1;c<d;++c)(h=n.tween[c].value.call(e,e.__data__,n.index,n.group))&&(r[++u]=h);r.length=u+1}}function s(t){var i=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(l),n.state=qm,1),o=-1,a=r.length;while(++o<a)r[o].call(e,i);n.state===qm&&(n.on.call("end",e,e.__data__,n.index,n.group),l())}function l(){for(var r in n.state=Wm,n.timer.stop(),delete i[t],i)return;delete e.__transition}i[t]=n,n.timer=Lm(o,0,n.time)}function tg(e,t){var n,r,i,o=e.__transition,a=!0;if(o){for(i in t=null==t?null:t+"",o)(n=o[i]).name===t?(r=n.state>Gm&&n.state<qm,n.state=Wm,n.timer.stop(),n.on.call(r?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete o[i]):a=!1;a&&delete e.__transition}}function ng(e){return this.each((function(){tg(this,e)}))}function rg(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var ig,og=180/Math.PI,ag={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function sg(e,t,n,r,i,o){var a,s,l;return(a=Math.sqrt(e*e+t*t))&&(e/=a,t/=a),(l=e*n+t*r)&&(n-=e*l,r-=t*l),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,l/=s),e*r<t*n&&(e=-e,t=-t,l=-l,a=-a),{translateX:i,translateY:o,rotate:Math.atan2(t,e)*og,skewX:Math.atan(l)*og,scaleX:a,scaleY:s}}function lg(e){const t=new("function"===typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?ag:sg(t.a,t.b,t.c,t.d,t.e,t.f)}function cg(e){return null==e?ag:(ig||(ig=document.createElementNS("http://www.w3.org/2000/svg","g")),ig.setAttribute("transform",e),(e=ig.transform.baseVal.consolidate())?(e=e.matrix,sg(e.a,e.b,e.c,e.d,e.e,e.f)):ag)}function ug(e,t,n,r){function i(e){return e.length?e.pop()+" ":""}function o(e,r,i,o,a,s){if(e!==i||r!==o){var l=a.push("translate(",null,t,null,n);s.push({i:l-4,x:rg(e,i)},{i:l-2,x:rg(r,o)})}else(i||o)&&a.push("translate("+i+t+o+n)}function a(e,t,n,o){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),o.push({i:n.push(i(n)+"rotate(",null,r)-2,x:rg(e,t)})):t&&n.push(i(n)+"rotate("+t+r)}function s(e,t,n,o){e!==t?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:rg(e,t)}):t&&n.push(i(n)+"skewX("+t+r)}function l(e,t,n,r,o,a){if(e!==n||t!==r){var s=o.push(i(o)+"scale(",null,",",null,")");a.push({i:s-4,x:rg(e,n)},{i:s-2,x:rg(t,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}return function(t,n){var r=[],i=[];return t=e(t),n=e(n),o(t.translateX,t.translateY,n.translateX,n.translateY,r,i),a(t.rotate,n.rotate,r,i),s(t.skewX,n.skewX,r,i),l(t.scaleX,t.scaleY,n.scaleX,n.scaleY,r,i),t=n=null,function(e){var t,n=-1,o=i.length;while(++n<o)r[(t=i[n]).i]=t.x(e);return r.join("")}}}var dg=ug(lg,"px, ","px)","deg)"),hg=ug(cg,", ",")",")");function pg(e,t){var n,r;return function(){var i=Jm(this,e),o=i.tween;if(o!==n){r=n=o;for(var a=0,s=r.length;a<s;++a)if(r[a].name===t){r=r.slice(),r.splice(a,1);break}}i.tween=r}}function fg(e,t,n){var r,i;if("function"!==typeof n)throw new Error;return function(){var o=Jm(this,e),a=o.tween;if(a!==r){i=(r=a).slice();for(var s={name:t,value:n},l=0,c=i.length;l<c;++l)if(i[l].name===t){i[l]=s;break}l===c&&i.push(s)}o.tween=i}}function mg(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r,i=Zm(this.node(),n).tween,o=0,a=i.length;o<a;++o)if((r=i[o]).name===e)return r.value;return null}return this.each((null==t?pg:fg)(n,e,t))}function gg(e,t,n){var r=e._id;return e.each((function(){var e=Jm(this,r);(e.value||(e.value={}))[t]=n.apply(this,arguments)})),function(e){return Zm(e,r).value[t]}}function vg(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function yg(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function bg(){}var _g=.7,wg=1/_g,Eg="\\s*([+-]?\\d+)\\s*",Sg="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",xg="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",kg=/^#([0-9a-f]{3,8})$/,Ag=new RegExp(`^rgb\\(${Eg},${Eg},${Eg}\\)$`),Ng=new RegExp(`^rgb\\(${xg},${xg},${xg}\\)$`),Tg=new RegExp(`^rgba\\(${Eg},${Eg},${Eg},${Sg}\\)$`),Cg=new RegExp(`^rgba\\(${xg},${xg},${xg},${Sg}\\)$`),Rg=new RegExp(`^hsl\\(${Sg},${xg},${xg}\\)$`),Og=new RegExp(`^hsla\\(${Sg},${xg},${xg},${Sg}\\)$`),Ig={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Dg(){return this.rgb().formatHex()}function Lg(){return this.rgb().formatHex8()}function Pg(){return Yg(this).formatHsl()}function Mg(){return this.rgb().formatRgb()}function Fg(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=kg.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Bg(t):3===n?new Vg(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?$g(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?$g(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=Ag.exec(e))?new Vg(t[1],t[2],t[3],1):(t=Ng.exec(e))?new Vg(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Tg.exec(e))?$g(t[1],t[2],t[3],t[4]):(t=Cg.exec(e))?$g(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Rg.exec(e))?Wg(t[1],t[2]/100,t[3]/100,1):(t=Og.exec(e))?Wg(t[1],t[2]/100,t[3]/100,t[4]):Ig.hasOwnProperty(e)?Bg(Ig[e]):"transparent"===e?new Vg(NaN,NaN,NaN,0):null}function Bg(e){return new Vg(e>>16&255,e>>8&255,255&e,1)}function $g(e,t,n,r){return r<=0&&(e=t=n=NaN),new Vg(e,t,n,r)}function jg(e){return e instanceof bg||(e=Fg(e)),e?(e=e.rgb(),new Vg(e.r,e.g,e.b,e.opacity)):new Vg}function Ug(e,t,n,r){return 1===arguments.length?jg(e):new Vg(e,t,n,null==r?1:r)}function Vg(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Kg(){return`#${qg(this.r)}${qg(this.g)}${qg(this.b)}`}function Hg(){return`#${qg(this.r)}${qg(this.g)}${qg(this.b)}${qg(255*(isNaN(this.opacity)?1:this.opacity))}`}function Gg(){const e=zg(this.opacity);return`${1===e?"rgb(":"rgba("}${Xg(this.r)}, ${Xg(this.g)}, ${Xg(this.b)}${1===e?")":`, ${e})`}`}function zg(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Xg(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function qg(e){return e=Xg(e),(e<16?"0":"")+e.toString(16)}function Wg(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Jg(e,t,n,r)}function Yg(e){if(e instanceof Jg)return new Jg(e.h,e.s,e.l,e.opacity);if(e instanceof bg||(e=Fg(e)),!e)return new Jg;if(e instanceof Jg)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(a=t===o?(n-r)/s+6*(n<r):n===o?(r-t)/s+2:(t-n)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new Jg(a,s,l,e.opacity)}function Qg(e,t,n,r){return 1===arguments.length?Yg(e):new Jg(e,t,n,null==r?1:r)}function Jg(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Zg(e){return e=(e||0)%360,e<0?e+360:e}function ev(e){return Math.max(0,Math.min(1,e||0))}function tv(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}function nv(e,t,n,r,i){var o=e*e,a=o*e;return((1-3*e+3*o-a)*t+(4-6*o+3*a)*n+(1+3*e+3*o-3*a)*r+a*i)/6}function rv(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),i=e[r],o=e[r+1],a=r>0?e[r-1]:2*i-o,s=r<t-1?e[r+2]:2*o-i;return nv((n-r/t)*t,a,i,o,s)}}function iv(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),i=e[(r+t-1)%t],o=e[r%t],a=e[(r+1)%t],s=e[(r+2)%t];return nv((n-r/t)*t,i,o,a,s)}}vg(bg,Fg,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Dg,formatHex:Dg,formatHex8:Lg,formatHsl:Pg,formatRgb:Mg,toString:Mg}),vg(Vg,Ug,yg(bg,{brighter(e){return e=null==e?wg:Math.pow(wg,e),new Vg(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?_g:Math.pow(_g,e),new Vg(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Vg(Xg(this.r),Xg(this.g),Xg(this.b),zg(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Kg,formatHex:Kg,formatHex8:Hg,formatRgb:Gg,toString:Gg})),vg(Jg,Qg,yg(bg,{brighter(e){return e=null==e?wg:Math.pow(wg,e),new Jg(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?_g:Math.pow(_g,e),new Jg(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Vg(tv(e>=240?e-240:e+120,i,r),tv(e,i,r),tv(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Jg(Zg(this.h),ev(this.s),ev(this.l),zg(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=zg(this.opacity);return`${1===e?"hsl(":"hsla("}${Zg(this.h)}, ${100*ev(this.s)}%, ${100*ev(this.l)}%${1===e?")":`, ${e})`}`}}));var ov=e=>()=>e;function av(e,t){return function(n){return e+n*t}}function sv(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function lv(e){return 1===(e=+e)?cv:function(t,n){return n-t?sv(t,n,e):ov(isNaN(t)?n:t)}}function cv(e,t){var n=t-e;return n?av(e,n):ov(isNaN(e)?t:e)}var uv=function e(t){var n=lv(t);function r(e,t){var r=n((e=Ug(e)).r,(t=Ug(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=cv(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function dv(e){return function(t){var n,r,i=t.length,o=new Array(i),a=new Array(i),s=new Array(i);for(n=0;n<i;++n)r=Ug(t[n]),o[n]=r.r||0,a[n]=r.g||0,s[n]=r.b||0;return o=e(o),a=e(a),s=e(s),r.opacity=1,function(e){return r.r=o(e),r.g=a(e),r.b=s(e),r+""}}}dv(rv),dv(iv);var hv=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,pv=new RegExp(hv.source,"g");function fv(e){return function(){return e}}function mv(e){return function(t){return e(t)+""}}function gv(e,t){var n,r,i,o=hv.lastIndex=pv.lastIndex=0,a=-1,s=[],l=[];e+="",t+="";while((n=hv.exec(e))&&(r=pv.exec(t)))(i=r.index)>o&&(i=t.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,l.push({i:a,x:rg(n,r)})),o=pv.lastIndex;return o<t.length&&(i=t.slice(o),s[a]?s[a]+=i:s[++a]=i),s.length<2?l[0]?mv(l[0].x):fv(t):(t=l.length,function(e){for(var n,r=0;r<t;++r)s[(n=l[r]).i]=n.x(e);return s.join("")})}function vv(e,t){var n;return("number"===typeof t?rg:t instanceof Fg?uv:(n=Fg(t))?(t=n,uv):gv)(e,t)}function yv(e){return function(){this.removeAttribute(e)}}function bv(e){return function(){this.removeAttributeNS(e.space,e.local)}}function _v(e,t,n){var r,i,o=n+"";return function(){var a=this.getAttribute(e);return a===o?null:a===r?i:i=t(r=a,n)}}function wv(e,t,n){var r,i,o=n+"";return function(){var a=this.getAttributeNS(e.space,e.local);return a===o?null:a===r?i:i=t(r=a,n)}}function Ev(e,t,n){var r,i,o;return function(){var a,s,l=n(this);if(null!=l)return a=this.getAttribute(e),s=l+"",a===s?null:a===r&&s===i?o:(i=s,o=t(r=a,l));this.removeAttribute(e)}}function Sv(e,t,n){var r,i,o;return function(){var a,s,l=n(this);if(null!=l)return a=this.getAttributeNS(e.space,e.local),s=l+"",a===s?null:a===r&&s===i?o:(i=s,o=t(r=a,l));this.removeAttributeNS(e.space,e.local)}}function xv(e,t){var n=ef(e),r="transform"===n?hg:vv;return this.attrTween(e,"function"===typeof t?(n.local?Sv:Ev)(n,r,gg(this,"attr."+e,t)):null==t?(n.local?bv:yv)(n):(n.local?wv:_v)(n,r,t))}function kv(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function Av(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function Nv(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&Av(e,i)),n}return i._value=t,i}function Tv(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&kv(e,i)),n}return i._value=t,i}function Cv(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!==typeof t)throw new Error;var r=ef(e);return this.tween(n,(r.local?Nv:Tv)(r,t))}function Rv(e,t){return function(){Qm(this,e).delay=+t.apply(this,arguments)}}function Ov(e,t){return t=+t,function(){Qm(this,e).delay=t}}function Iv(e){var t=this._id;return arguments.length?this.each(("function"===typeof e?Rv:Ov)(t,e)):Zm(this.node(),t).delay}function Dv(e,t){return function(){Jm(this,e).duration=+t.apply(this,arguments)}}function Lv(e,t){return t=+t,function(){Jm(this,e).duration=t}}function Pv(e){var t=this._id;return arguments.length?this.each(("function"===typeof e?Dv:Lv)(t,e)):Zm(this.node(),t).duration}function Mv(e,t){if("function"!==typeof t)throw new Error;return function(){Jm(this,e).ease=t}}function Fv(e){var t=this._id;return arguments.length?this.each(Mv(t,e)):Zm(this.node(),t).ease}function Bv(e,t){return function(){var n=t.apply(this,arguments);if("function"!==typeof n)throw new Error;Jm(this,e).ease=n}}function $v(e){if("function"!==typeof e)throw new Error;return this.each(Bv(this._id,e))}function jv(e){"function"!==typeof e&&(e=_p(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o,a=t[i],s=a.length,l=r[i]=[],c=0;c<s;++c)(o=a[c])&&e.call(o,o.__data__,c,a)&&l.push(o);return new my(r,this._parents,this._name,this._id)}function Uv(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,i=n.length,o=Math.min(r,i),a=new Array(r),s=0;s<o;++s)for(var l,c=t[s],u=n[s],d=c.length,h=a[s]=new Array(d),p=0;p<d;++p)(l=c[p]||u[p])&&(h[p]=l);for(;s<r;++s)a[s]=t[s];return new my(a,this._parents,this._name,this._id)}function Vv(e){return(e+"").trim().split(/^|\s+/).every((function(e){var t=e.indexOf(".");return t>=0&&(e=e.slice(0,t)),!e||"start"===e}))}function Kv(e,t,n){var r,i,o=Vv(t)?Qm:Jm;return function(){var a=o(this,e),s=a.on;s!==r&&(i=(r=s).copy()).on(t,n),a.on=i}}function Hv(e,t){var n=this._id;return arguments.length<2?Zm(this.node(),n).on.on(e):this.each(Kv(n,e,t))}function Gv(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function zv(){return this.on("end.remove",Gv(this._id))}function Xv(e){var t=this._name,n=this._id;"function"!==typeof e&&(e=pp(e));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a<i;++a)for(var s,l,c=r[a],u=c.length,d=o[a]=new Array(u),h=0;h<u;++h)(s=c[h])&&(l=e.call(s,s.__data__,h,c))&&("__data__"in s&&(l.__data__=s.__data__),d[h]=l,Ym(d[h],t,n,h,d,Zm(s,n)));return new my(o,this._parents,t,n)}function qv(e){var t=this._name,n=this._id;"function"!==typeof e&&(e=vp(e));for(var r=this._groups,i=r.length,o=[],a=[],s=0;s<i;++s)for(var l,c=r[s],u=c.length,d=0;d<u;++d)if(l=c[d]){for(var h,p=e.call(l,l.__data__,d,c),f=Zm(l,n),m=0,g=p.length;m<g;++m)(h=p[m])&&Ym(h,t,n,m,p,f);o.push(p),a.push(l)}return new my(o,a,t,n)}var Wv=hm.prototype.constructor;function Yv(){return new Wv(this._groups,this._parents)}function Qv(e,t){var n,r,i;return function(){var o=ff(this,e),a=(this.style.removeProperty(e),ff(this,e));return o===a?null:o===n&&a===r?i:i=t(n=o,r=a)}}function Jv(e){return function(){this.style.removeProperty(e)}}function Zv(e,t,n){var r,i,o=n+"";return function(){var a=ff(this,e);return a===o?null:a===r?i:i=t(r=a,n)}}function ey(e,t,n){var r,i,o;return function(){var a=ff(this,e),s=n(this),l=s+"";return null==s&&(this.style.removeProperty(e),l=s=ff(this,e)),a===l?null:a===r&&l===i?o:(i=l,o=t(r=a,s))}}function ty(e,t){var n,r,i,o,a="style."+t,s="end."+a;return function(){var l=Jm(this,e),c=l.on,u=null==l.value[a]?o||(o=Jv(t)):void 0;c===n&&i===u||(r=(n=c).copy()).on(s,i=u),l.on=r}}function ny(e,t,n){var r="transform"===(e+="")?dg:vv;return null==t?this.styleTween(e,Qv(e,r)).on("end.style."+e,Jv(e)):"function"===typeof t?this.styleTween(e,ey(e,r,gg(this,"style."+e,t))).each(ty(this._id,e)):this.styleTween(e,Zv(e,r,t),n).on("end.style."+e,null)}function ry(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function iy(e,t,n){var r,i;function o(){var o=t.apply(this,arguments);return o!==i&&(r=(i=o)&&ry(e,o,n)),r}return o._value=t,o}function oy(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==t)return this.tween(r,null);if("function"!==typeof t)throw new Error;return this.tween(r,iy(e,t,null==n?"":n))}function ay(e){return function(){this.textContent=e}}function sy(e){return function(){var t=e(this);this.textContent=null==t?"":t}}function ly(e){return this.tween("text","function"===typeof e?sy(gg(this,"text",e)):ay(null==e?"":e+""))}function cy(e){return function(t){this.textContent=e.call(this,t)}}function uy(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&cy(r)),t}return r._value=e,r}function dy(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(null==e)return this.tween(t,null);if("function"!==typeof e)throw new Error;return this.tween(t,uy(e))}function hy(){for(var e=this._name,t=this._id,n=vy(),r=this._groups,i=r.length,o=0;o<i;++o)for(var a,s=r[o],l=s.length,c=0;c<l;++c)if(a=s[c]){var u=Zm(a,t);Ym(a,e,n,c,s,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new my(r,this._parents,e,n)}function py(){var e,t,n=this,r=n._id,i=n.size();return new Promise((function(o,a){var s={value:a},l={value:function(){0===--i&&o()}};n.each((function(){var n=Jm(this,r),i=n.on;i!==e&&(t=(e=i).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(l)),n.on=t})),0===i&&o()}))}var fy=0;function my(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function gy(e){return hm().transition(e)}function vy(){return++fy}var yy=hm.prototype;function by(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}my.prototype=gy.prototype={constructor:my,select:Xv,selectAll:qv,selectChild:yy.selectChild,selectChildren:yy.selectChildren,filter:jv,merge:Uv,selection:Yv,transition:hy,call:yy.call,nodes:yy.nodes,node:yy.node,size:yy.size,empty:yy.empty,each:yy.each,on:Hv,attr:xv,attrTween:Cv,style:ny,styleTween:oy,text:ly,textTween:dy,remove:zv,tween:mg,delay:Iv,duration:Pv,ease:Fv,easeVarying:$v,end:py,[Symbol.iterator]:yy[Symbol.iterator]};var _y={time:null,delay:0,duration:250,ease:by};function wy(e,t){var n;while(!(n=e.__transition)||!(n=n[t]))if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return n}function Ey(e){var t,n;e instanceof my?(t=e._id,e=e._name):(t=vy(),(n=_y).time=Om(),e=null==e?null:e+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var a,s=r[o],l=s.length,c=0;c<l;++c)(a=s[c])&&Ym(a,e,t,c,s,n||wy(a,t));return new my(r,this._parents,e,t)}hm.prototype.interrupt=ng,hm.prototype.transition=Ey;const{abs:Sy,max:xy,min:ky}=Math;function Ay(e){return[+e[0],+e[1]]}function Ny(e){return[Ay(e[0]),Ay(e[1])]}["w","e"].map(Ty),["n","s"].map(Ty),["n","w","e","s","nw","ne","sw","se"].map(Ty);function Ty(e){return{type:e}}var Cy={value:()=>{}};function Ry(){for(var e,t=0,n=arguments.length,r={};t<n;++t){if(!(e=arguments[t]+"")||e in r||/[\s.]/.test(e))throw new Error("illegal type: "+e);r[e]=[]}return new Oy(r)}function Oy(e){this._=e}function Iy(e,t){return e.trim().split(/^|\s+/).map((function(e){var n="",r=e.indexOf(".");if(r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:n}}))}function Dy(e,t){for(var n,r=0,i=e.length;r<i;++r)if((n=e[r]).name===t)return n.value}function Ly(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=Cy,e=e.slice(0,r).concat(e.slice(r+1));break}return null!=n&&e.push({name:t,value:n}),e}Oy.prototype=Ry.prototype={constructor:Oy,on:function(e,t){var n,r=this._,i=Iy(e+"",r),o=-1,a=i.length;if(!(arguments.length<2)){if(null!=t&&"function"!==typeof t)throw new Error("invalid callback: "+t);while(++o<a)if(n=(e=i[o]).type)r[n]=Ly(r[n],e.name,t);else if(null==t)for(n in r)r[n]=Ly(r[n],e.name,null);return this}while(++o<a)if((n=(e=i[o]).type)&&(n=Dy(r[n],e.name)))return n},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new Oy(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var n,r,i=new Array(n),o=0;o<n;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(r=this._[e],o=0,n=r.length;o<n;++o)r[o].value.apply(t,i)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],i=0,o=r.length;i<o;++i)r[i].value.apply(t,n)}};var Py=Ry;function My(){}function Fy(e){return null==e?My:function(){return this.querySelector(e)}}function By(e){"function"!==typeof e&&(e=Fy(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o,a,s=t[i],l=s.length,c=r[i]=new Array(l),u=0;u<l;++u)(o=s[u])&&(a=e.call(o,o.__data__,u,s))&&("__data__"in o&&(a.__data__=o.__data__),c[u]=a);return new I_(r,this._parents)}function $y(e){return null==e?[]:Array.isArray(e)?e:Array.from(e)}function jy(){return[]}function Uy(e){return null==e?jy:function(){return this.querySelectorAll(e)}}function Vy(e){return function(){return $y(e.apply(this,arguments))}}function Ky(e){e="function"===typeof e?Vy(e):Uy(e);for(var t=this._groups,n=t.length,r=[],i=[],o=0;o<n;++o)for(var a,s=t[o],l=s.length,c=0;c<l;++c)(a=s[c])&&(r.push(e.call(a,a.__data__,c,s)),i.push(a));return new I_(r,i)}function Hy(e){return function(){return this.matches(e)}}function Gy(e){return function(t){return t.matches(e)}}var zy=Array.prototype.find;function Xy(e){return function(){return zy.call(this.children,e)}}function qy(){return this.firstElementChild}function Wy(e){return this.select(null==e?qy:Xy("function"===typeof e?e:Gy(e)))}var Yy=Array.prototype.filter;function Qy(){return Array.from(this.children)}function Jy(e){return function(){return Yy.call(this.children,e)}}function Zy(e){return this.selectAll(null==e?Qy:Jy("function"===typeof e?e:Gy(e)))}function eb(e){"function"!==typeof e&&(e=Hy(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o,a=t[i],s=a.length,l=r[i]=[],c=0;c<s;++c)(o=a[c])&&e.call(o,o.__data__,c,a)&&l.push(o);return new I_(r,this._parents)}function tb(e){return new Array(e.length)}function nb(){return new I_(this._enter||this._groups.map(tb),this._parents)}function rb(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function ib(e){return function(){return e}}function ob(e,t,n,r,i,o){for(var a,s=0,l=t.length,c=o.length;s<c;++s)(a=t[s])?(a.__data__=o[s],r[s]=a):n[s]=new rb(e,o[s]);for(;s<l;++s)(a=t[s])&&(i[s]=a)}function ab(e,t,n,r,i,o,a){var s,l,c,u=new Map,d=t.length,h=o.length,p=new Array(d);for(s=0;s<d;++s)(l=t[s])&&(p[s]=c=a.call(l,l.__data__,s,t)+"",u.has(c)?i[s]=l:u.set(c,l));for(s=0;s<h;++s)c=a.call(e,o[s],s,o)+"",(l=u.get(c))?(r[s]=l,l.__data__=o[s],u.delete(c)):n[s]=new rb(e,o[s]);for(s=0;s<d;++s)(l=t[s])&&u.get(p[s])===l&&(i[s]=l)}function sb(e){return e.__data__}function lb(e,t){if(!arguments.length)return Array.from(this,sb);var n=t?ab:ob,r=this._parents,i=this._groups;"function"!==typeof e&&(e=ib(e));for(var o=i.length,a=new Array(o),s=new Array(o),l=new Array(o),c=0;c<o;++c){var u=r[c],d=i[c],h=d.length,p=cb(e.call(u,u&&u.__data__,c,r)),f=p.length,m=s[c]=new Array(f),g=a[c]=new Array(f),v=l[c]=new Array(h);n(u,d,m,g,v,p,t);for(var y,b,_=0,w=0;_<f;++_)if(y=m[_]){_>=w&&(w=_+1);while(!(b=g[w])&&++w<f);y._next=b||null}}return a=new I_(a,r),a._enter=s,a._exit=l,a}function cb(e){return"object"===typeof e&&"length"in e?e:Array.from(e)}function ub(){return new I_(this._exit||this._groups.map(tb),this._parents)}function db(e,t,n){var r=this.enter(),i=this,o=this.exit();return"function"===typeof e?(r=e(r),r&&(r=r.selection())):r=r.append(e+""),null!=t&&(i=t(i),i&&(i=i.selection())),null==n?o.remove():n(o),r&&i?r.merge(i).order():i}function hb(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,o=r.length,a=Math.min(i,o),s=new Array(i),l=0;l<a;++l)for(var c,u=n[l],d=r[l],h=u.length,p=s[l]=new Array(h),f=0;f<h;++f)(c=u[f]||d[f])&&(p[f]=c);for(;l<i;++l)s[l]=n[l];return new I_(s,this._parents)}function pb(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r,i=e[t],o=i.length-1,a=i[o];--o>=0;)(r=i[o])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this}function fb(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=mb);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var a,s=n[o],l=s.length,c=i[o]=new Array(l),u=0;u<l;++u)(a=s[u])&&(c[u]=a);c.sort(t)}return new I_(i,this._parents).order()}function mb(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function gb(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function vb(){return Array.from(this)}function yb(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null}function bb(){let e=0;for(const t of this)++e;return e}function _b(){return!this.node()}function wb(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i,o=t[n],a=0,s=o.length;a<s;++a)(i=o[a])&&e.call(i,i.__data__,a,o);return this}rb.prototype={constructor:rb,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};var Eb="http://www.w3.org/1999/xhtml",Sb={svg:"http://www.w3.org/2000/svg",xhtml:Eb,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function xb(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),Sb.hasOwnProperty(t)?{space:Sb[t],local:e}:e}function kb(e){return function(){this.removeAttribute(e)}}function Ab(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Nb(e,t){return function(){this.setAttribute(e,t)}}function Tb(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Cb(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function Rb(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function Ob(e,t){var n=xb(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==t?n.local?Ab:kb:"function"===typeof t?n.local?Rb:Cb:n.local?Tb:Nb)(n,t))}function Ib(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Db(e){return function(){this.style.removeProperty(e)}}function Lb(e,t,n){return function(){this.style.setProperty(e,t,n)}}function Pb(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function Mb(e,t,n){return arguments.length>1?this.each((null==t?Db:"function"===typeof t?Pb:Lb)(e,t,null==n?"":n)):Fb(this.node(),e)}function Fb(e,t){return e.style.getPropertyValue(t)||Ib(e).getComputedStyle(e,null).getPropertyValue(t)}function Bb(e){return function(){delete this[e]}}function $b(e,t){return function(){this[e]=t}}function jb(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function Ub(e,t){return arguments.length>1?this.each((null==t?Bb:"function"===typeof t?jb:$b)(e,t)):this.node()[e]}function Vb(e){return e.trim().split(/^|\s+/)}function Kb(e){return e.classList||new Hb(e)}function Hb(e){this._node=e,this._names=Vb(e.getAttribute("class")||"")}function Gb(e,t){var n=Kb(e),r=-1,i=t.length;while(++r<i)n.add(t[r])}function zb(e,t){var n=Kb(e),r=-1,i=t.length;while(++r<i)n.remove(t[r])}function Xb(e){return function(){Gb(this,e)}}function qb(e){return function(){zb(this,e)}}function Wb(e,t){return function(){(t.apply(this,arguments)?Gb:zb)(this,e)}}function Yb(e,t){var n=Vb(e+"");if(arguments.length<2){var r=Kb(this.node()),i=-1,o=n.length;while(++i<o)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"===typeof t?Wb:t?Xb:qb)(n,t))}function Qb(){this.textContent=""}function Jb(e){return function(){this.textContent=e}}function Zb(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}function e_(e){return arguments.length?this.each(null==e?Qb:("function"===typeof e?Zb:Jb)(e)):this.node().textContent}function t_(){this.innerHTML=""}function n_(e){return function(){this.innerHTML=e}}function r_(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}function i_(e){return arguments.length?this.each(null==e?t_:("function"===typeof e?r_:n_)(e)):this.node().innerHTML}function o_(){this.nextSibling&&this.parentNode.appendChild(this)}function a_(){return this.each(o_)}function s_(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function l_(){return this.each(s_)}function c_(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===Eb&&t.documentElement.namespaceURI===Eb?t.createElement(e):t.createElementNS(n,e)}}function u_(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function d_(e){var t=xb(e);return(t.local?u_:c_)(t)}function h_(e){var t="function"===typeof e?e:d_(e);return this.select((function(){return this.appendChild(t.apply(this,arguments))}))}function p_(){return null}function f_(e,t){var n="function"===typeof e?e:d_(e),r=null==t?p_:"function"===typeof t?t:Fy(t);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))}function m_(){var e=this.parentNode;e&&e.removeChild(this)}function g_(){return this.each(m_)}function v_(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function y_(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function b_(e){return this.select(e?y_:v_)}function __(e){return arguments.length?this.property("__data__",e):this.node().__data__}function w_(e){return function(t){e.call(this,t,this.__data__)}}function E_(e){return e.trim().split(/^|\s+/).map((function(e){var t="",n=e.indexOf(".");return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}}))}function S_(e){return function(){var t=this.__on;if(t){for(var n,r=0,i=-1,o=t.length;r<o;++r)n=t[r],e.type&&n.type!==e.type||n.name!==e.name?t[++i]=n:this.removeEventListener(n.type,n.listener,n.options);++i?t.length=i:delete this.__on}}}function x_(e,t,n){return function(){var r,i=this.__on,o=w_(t);if(i)for(var a=0,s=i.length;a<s;++a)if((r=i[a]).type===e.type&&r.name===e.name)return this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=o,r.options=n),void(r.value=t);this.addEventListener(e.type,o,n),r={type:e.type,name:e.name,value:t,listener:o,options:n},i?i.push(r):this.__on=[r]}}function k_(e,t,n){var r,i,o=E_(e+""),a=o.length;if(!(arguments.length<2)){for(s=t?x_:S_,r=0;r<a;++r)this.each(s(o[r],t,n));return this}var s=this.node().__on;if(s)for(var l,c=0,u=s.length;c<u;++c)for(r=0,l=s[c];r<a;++r)if((i=o[r]).type===l.type&&i.name===l.name)return l.value}function A_(e,t,n){var r=Ib(e),i=r.CustomEvent;"function"===typeof i?i=new i(t,n):(i=r.document.createEvent("Event"),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function N_(e,t){return function(){return A_(this,e,t)}}function T_(e,t){return function(){return A_(this,e,t.apply(this,arguments))}}function C_(e,t){return this.each(("function"===typeof t?T_:N_)(e,t))}function*R_(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r,i=e[t],o=0,a=i.length;o<a;++o)(r=i[o])&&(yield r)}Hb.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};var O_=[null];function I_(e,t){this._groups=e,this._parents=t}function D_(){return new I_([[document.documentElement]],O_)}function L_(){return this}I_.prototype=D_.prototype={constructor:I_,select:By,selectAll:Ky,selectChild:Wy,selectChildren:Zy,filter:eb,data:lb,enter:nb,exit:ub,join:db,merge:hb,selection:L_,order:pb,sort:fb,call:gb,nodes:vb,node:yb,size:bb,empty:_b,each:wb,attr:Ob,style:Mb,property:Ub,classed:Yb,text:e_,html:i_,raise:a_,lower:l_,append:h_,insert:f_,remove:g_,clone:b_,datum:__,on:k_,dispatch:C_,[Symbol.iterator]:R_};var P_=D_;function M_(e){return"string"===typeof e?new I_([[document.querySelector(e)]],[document.documentElement]):new I_([[e]],O_)}function F_(e){let t;while(t=e.sourceEvent)e=t;return e}function B_(e,t){if(e=F_(e),void 0===t&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}if(t.getBoundingClientRect){var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}const $_={passive:!1},j_={capture:!0,passive:!1};function U_(e){e.stopImmediatePropagation()}function V_(e){e.preventDefault(),e.stopImmediatePropagation()}function K_(e){var t=e.document.documentElement,n=M_(e).on("dragstart.drag",V_,j_);"onselectstart"in t?n.on("selectstart.drag",V_,j_):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function H_(e,t){var n=e.document.documentElement,r=M_(e).on("dragstart.drag",null);t&&(r.on("click.drag",V_,j_),setTimeout((function(){r.on("click.drag",null)}),0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}var G_=e=>()=>e;function z_(e,{sourceEvent:t,subject:n,target:r,identifier:i,active:o,x:a,y:s,dx:l,dy:c,dispatch:u}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:i,enumerable:!0,configurable:!0},active:{value:o,enumerable:!0,configurable:!0},x:{value:a,enumerable:!0,configurable:!0},y:{value:s,enumerable:!0,configurable:!0},dx:{value:l,enumerable:!0,configurable:!0},dy:{value:c,enumerable:!0,configurable:!0},_:{value:u}})}function X_(e){return!e.ctrlKey&&!e.button}function q_(){return this.parentNode}function W_(e,t){return null==t?{x:e.x,y:e.y}:t}function Y_(){return navigator.maxTouchPoints||"ontouchstart"in this}function Q_(){var e,t,n,r,i=X_,o=q_,a=W_,s=Y_,l={},c=Py("start","drag","end"),u=0,d=0;function h(e){e.on("mousedown.drag",p).filter(s).on("touchstart.drag",g).on("touchmove.drag",v,$_).on("touchend.drag touchcancel.drag",y).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function p(a,s){if(!r&&i.call(this,a,s)){var l=b(this,o.call(this,a,s),a,s,"mouse");l&&(M_(a.view).on("mousemove.drag",f,j_).on("mouseup.drag",m,j_),K_(a.view),U_(a),n=!1,e=a.clientX,t=a.clientY,l("start",a))}}function f(r){if(V_(r),!n){var i=r.clientX-e,o=r.clientY-t;n=i*i+o*o>d}l.mouse("drag",r)}function m(e){M_(e.view).on("mousemove.drag mouseup.drag",null),H_(e.view,n),V_(e),l.mouse("end",e)}function g(e,t){if(i.call(this,e,t)){var n,r,a=e.changedTouches,s=o.call(this,e,t),l=a.length;for(n=0;n<l;++n)(r=b(this,s,e,t,a[n].identifier,a[n]))&&(U_(e),r("start",e,a[n]))}}function v(e){var t,n,r=e.changedTouches,i=r.length;for(t=0;t<i;++t)(n=l[r[t].identifier])&&(V_(e),n("drag",e,r[t]))}function y(e){var t,n,i=e.changedTouches,o=i.length;for(r&&clearTimeout(r),r=setTimeout((function(){r=null}),500),t=0;t<o;++t)(n=l[i[t].identifier])&&(U_(e),n("end",e,i[t]))}function b(e,t,n,r,i,o){var s,d,p,f=c.copy(),m=B_(o||n,t);if(null!=(p=a.call(e,new z_("beforestart",{sourceEvent:n,target:h,identifier:i,active:u,x:m[0],y:m[1],dx:0,dy:0,dispatch:f}),r)))return s=p.x-m[0]||0,d=p.y-m[1]||0,function n(o,a,c){var g,v=m;switch(o){case"start":l[i]=n,g=u++;break;case"end":delete l[i],--u;case"drag":m=B_(c||a,t),g=u;break}f.call(o,e,new z_(o,{sourceEvent:a,subject:p,target:h,identifier:i,active:g,x:m[0]+s,y:m[1]+d,dx:m[0]-v[0],dy:m[1]-v[1],dispatch:f}),r)}}return h.filter=function(e){return arguments.length?(i="function"===typeof e?e:G_(!!e),h):i},h.container=function(e){return arguments.length?(o="function"===typeof e?e:G_(e),h):o},h.subject=function(e){return arguments.length?(a="function"===typeof e?e:G_(e),h):a},h.touchable=function(e){return arguments.length?(s="function"===typeof e?e:G_(!!e),h):s},h.on=function(){var e=c.on.apply(c,arguments);return e===c?h:e},h.clickDistance=function(e){return arguments.length?(d=(e=+e)*e,h):Math.sqrt(d)},h}function J_(e,t){var n,r=1;function i(){var i,o,a=n.length,s=0,l=0;for(i=0;i<a;++i)o=n[i],s+=o.x,l+=o.y;for(s=(s/a-e)*r,l=(l/a-t)*r,i=0;i<a;++i)o=n[i],o.x-=s,o.y-=l}return null==e&&(e=0),null==t&&(t=0),i.initialize=function(e){n=e},i.x=function(t){return arguments.length?(e=+t,i):e},i.y=function(e){return arguments.length?(t=+e,i):t},i.strength=function(e){return arguments.length?(r=+e,i):r},i}function Z_(e){const t=+this._x.call(null,e),n=+this._y.call(null,e);return ew(this.cover(t,n),t,n,e)}function ew(e,t,n,r){if(isNaN(t)||isNaN(n))return e;var i,o,a,s,l,c,u,d,h,p=e._root,f={data:r},m=e._x0,g=e._y0,v=e._x1,y=e._y1;if(!p)return e._root=f,e;while(p.length)if((c=t>=(o=(m+v)/2))?m=o:v=o,(u=n>=(a=(g+y)/2))?g=a:y=a,i=p,!(p=p[d=u<<1|c]))return i[d]=f,e;if(s=+e._x.call(null,p.data),l=+e._y.call(null,p.data),t===s&&n===l)return f.next=p,i?i[d]=f:e._root=f,e;do{i=i?i[d]=new Array(4):e._root=new Array(4),(c=t>=(o=(m+v)/2))?m=o:v=o,(u=n>=(a=(g+y)/2))?g=a:y=a}while((d=u<<1|c)===(h=(l>=a)<<1|s>=o));return i[h]=p,i[d]=f,e}function tw(e){var t,n,r,i,o=e.length,a=new Array(o),s=new Array(o),l=1/0,c=1/0,u=-1/0,d=-1/0;for(n=0;n<o;++n)isNaN(r=+this._x.call(null,t=e[n]))||isNaN(i=+this._y.call(null,t))||(a[n]=r,s[n]=i,r<l&&(l=r),r>u&&(u=r),i<c&&(c=i),i>d&&(d=i));if(l>u||c>d)return this;for(this.cover(l,c).cover(u,d),n=0;n<o;++n)ew(this,a[n],s[n],e[n]);return this}function nw(e,t){if(isNaN(e=+e)||isNaN(t=+t))return this;var n=this._x0,r=this._y0,i=this._x1,o=this._y1;if(isNaN(n))i=(n=Math.floor(e))+1,o=(r=Math.floor(t))+1;else{var a,s,l=i-n||1,c=this._root;while(n>e||e>=i||r>t||t>=o)switch(s=(t<r)<<1|e<n,a=new Array(4),a[s]=c,c=a,l*=2,s){case 0:i=n+l,o=r+l;break;case 1:n=i-l,o=r+l;break;case 2:i=n+l,r=o-l;break;case 3:n=i-l,r=o-l;break}this._root&&this._root.length&&(this._root=c)}return this._x0=n,this._y0=r,this._x1=i,this._y1=o,this}function rw(){var e=[];return this.visit((function(t){if(!t.length)do{e.push(t.data)}while(t=t.next)})),e}function iw(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}function ow(e,t,n,r,i){this.node=e,this.x0=t,this.y0=n,this.x1=r,this.y1=i}function aw(e,t,n){var r,i,o,a,s,l,c,u=this._x0,d=this._y0,h=this._x1,p=this._y1,f=[],m=this._root;m&&f.push(new ow(m,u,d,h,p)),null==n?n=1/0:(u=e-n,d=t-n,h=e+n,p=t+n,n*=n);while(l=f.pop())if(!(!(m=l.node)||(i=l.x0)>h||(o=l.y0)>p||(a=l.x1)<u||(s=l.y1)<d))if(m.length){var g=(i+a)/2,v=(o+s)/2;f.push(new ow(m[3],g,v,a,s),new ow(m[2],i,v,g,s),new ow(m[1],g,o,a,v),new ow(m[0],i,o,g,v)),(c=(t>=v)<<1|e>=g)&&(l=f[f.length-1],f[f.length-1]=f[f.length-1-c],f[f.length-1-c]=l)}else{var y=e-+this._x.call(null,m.data),b=t-+this._y.call(null,m.data),_=y*y+b*b;if(_<n){var w=Math.sqrt(n=_);u=e-w,d=t-w,h=e+w,p=t+w,r=m.data}}return r}function sw(e){if(isNaN(o=+this._x.call(null,e))||isNaN(a=+this._y.call(null,e)))return this;var t,n,r,i,o,a,s,l,c,u,d,h,p=this._root,f=this._x0,m=this._y0,g=this._x1,v=this._y1;if(!p)return this;if(p.length)while(1){if((c=o>=(s=(f+g)/2))?f=s:g=s,(u=a>=(l=(m+v)/2))?m=l:v=l,t=p,!(p=p[d=u<<1|c]))return this;if(!p.length)break;(t[d+1&3]||t[d+2&3]||t[d+3&3])&&(n=t,h=d)}while(p.data!==e)if(r=p,!(p=p.next))return this;return(i=p.next)&&delete p.next,r?(i?r.next=i:delete r.next,this):t?(i?t[d]=i:delete t[d],(p=t[0]||t[1]||t[2]||t[3])&&p===(t[3]||t[2]||t[1]||t[0])&&!p.length&&(n?n[h]=p:this._root=p),this):(this._root=i,this)}function lw(e){for(var t=0,n=e.length;t<n;++t)this.remove(e[t]);return this}function cw(){return this._root}function uw(){var e=0;return this.visit((function(t){if(!t.length)do{++e}while(t=t.next)})),e}function dw(e){var t,n,r,i,o,a,s=[],l=this._root;l&&s.push(new ow(l,this._x0,this._y0,this._x1,this._y1));while(t=s.pop())if(!e(l=t.node,r=t.x0,i=t.y0,o=t.x1,a=t.y1)&&l.length){var c=(r+o)/2,u=(i+a)/2;(n=l[3])&&s.push(new ow(n,c,u,o,a)),(n=l[2])&&s.push(new ow(n,r,u,c,a)),(n=l[1])&&s.push(new ow(n,c,i,o,u)),(n=l[0])&&s.push(new ow(n,r,i,c,u))}return this}function hw(e){var t,n=[],r=[];this._root&&n.push(new ow(this._root,this._x0,this._y0,this._x1,this._y1));while(t=n.pop()){var i=t.node;if(i.length){var o,a=t.x0,s=t.y0,l=t.x1,c=t.y1,u=(a+l)/2,d=(s+c)/2;(o=i[0])&&n.push(new ow(o,a,s,u,d)),(o=i[1])&&n.push(new ow(o,u,s,l,d)),(o=i[2])&&n.push(new ow(o,a,d,u,c)),(o=i[3])&&n.push(new ow(o,u,d,l,c))}r.push(t)}while(t=r.pop())e(t.node,t.x0,t.y0,t.x1,t.y1);return this}function pw(e){return e[0]}function fw(e){return arguments.length?(this._x=e,this):this._x}function mw(e){return e[1]}function gw(e){return arguments.length?(this._y=e,this):this._y}function vw(e,t,n){var r=new yw(null==t?pw:t,null==n?mw:n,NaN,NaN,NaN,NaN);return null==e?r:r.addAll(e)}function yw(e,t,n,r,i,o){this._x=e,this._y=t,this._x0=n,this._y0=r,this._x1=i,this._y1=o,this._root=void 0}function bw(e){var t={data:e.data},n=t;while(e=e.next)n=n.next={data:e.data};return t}z_.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};var _w=vw.prototype=yw.prototype;function ww(e){return function(){return e}}function Ew(e){return 1e-6*(e()-.5)}function Sw(e){return e.x+e.vx}function xw(e){return e.y+e.vy}function kw(e){var t,n,r,i=1,o=1;function a(){for(var e,a,l,c,u,d,h,p=t.length,f=0;f<o;++f)for(a=vw(t,Sw,xw).visitAfter(s),e=0;e<p;++e)l=t[e],d=n[l.index],h=d*d,c=l.x+l.vx,u=l.y+l.vy,a.visit(m);function m(e,t,n,o,a){var s=e.data,p=e.r,f=d+p;if(!s)return t>c+f||o<c-f||n>u+f||a<u-f;if(s.index>l.index){var m=c-s.x-s.vx,g=u-s.y-s.vy,v=m*m+g*g;v<f*f&&(0===m&&(m=Ew(r),v+=m*m),0===g&&(g=Ew(r),v+=g*g),v=(f-(v=Math.sqrt(v)))/v*i,l.vx+=(m*=v)*(f=(p*=p)/(h+p)),l.vy+=(g*=v)*f,s.vx-=m*(f=1-f),s.vy-=g*f)}}}function s(e){if(e.data)return e.r=n[e.data.index];for(var t=e.r=0;t<4;++t)e[t]&&e[t].r>e.r&&(e.r=e[t].r)}function l(){if(t){var r,i,o=t.length;for(n=new Array(o),r=0;r<o;++r)i=t[r],n[i.index]=+e(i,r,t)}}return"function"!==typeof e&&(e=ww(null==e?1:+e)),a.initialize=function(e,n){t=e,r=n,l()},a.iterations=function(e){return arguments.length?(o=+e,a):o},a.strength=function(e){return arguments.length?(i=+e,a):i},a.radius=function(t){return arguments.length?(e="function"===typeof t?t:ww(+t),l(),a):e},a}function Aw(e){return e.index}function Nw(e,t){var n=e.get(t);if(!n)throw new Error("node not found: "+t);return n}function Tw(e){var t,n,r,i,o,a,s=Aw,l=d,c=ww(30),u=1;function d(e){return 1/Math.min(i[e.source.index],i[e.target.index])}function h(r){for(var i=0,s=e.length;i<u;++i)for(var l,c,d,h,p,f,m,g=0;g<s;++g)l=e[g],c=l.source,d=l.target,h=d.x+d.vx-c.x-c.vx||Ew(a),p=d.y+d.vy-c.y-c.vy||Ew(a),f=Math.sqrt(h*h+p*p),f=(f-n[g])/f*r*t[g],h*=f,p*=f,d.vx-=h*(m=o[g]),d.vy-=p*m,c.vx+=h*(m=1-m),c.vy+=p*m}function p(){if(r){var a,l,c=r.length,u=e.length,d=new Map(r.map(((e,t)=>[s(e,t,r),e])));for(a=0,i=new Array(c);a<u;++a)l=e[a],l.index=a,"object"!==typeof l.source&&(l.source=Nw(d,l.source)),"object"!==typeof l.target&&(l.target=Nw(d,l.target)),i[l.source.index]=(i[l.source.index]||0)+1,i[l.target.index]=(i[l.target.index]||0)+1;for(a=0,o=new Array(u);a<u;++a)l=e[a],o[a]=i[l.source.index]/(i[l.source.index]+i[l.target.index]);t=new Array(u),f(),n=new Array(u),m()}}function f(){if(r)for(var n=0,i=e.length;n<i;++n)t[n]=+l(e[n],n,e)}function m(){if(r)for(var t=0,i=e.length;t<i;++t)n[t]=+c(e[t],t,e)}return null==e&&(e=[]),h.initialize=function(e,t){r=e,a=t,p()},h.links=function(t){return arguments.length?(e=t,p(),h):e},h.id=function(e){return arguments.length?(s=e,h):s},h.iterations=function(e){return arguments.length?(u=+e,h):u},h.strength=function(e){return arguments.length?(l="function"===typeof e?e:ww(+e),f(),h):l},h.distance=function(e){return arguments.length?(c="function"===typeof e?e:ww(+e),m(),h):c},h}_w.copy=function(){var e,t,n=new yw(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return n;if(!r.length)return n._root=bw(r),n;e=[{source:r,target:n._root=new Array(4)}];while(r=e.pop())for(var i=0;i<4;++i)(t=r.source[i])&&(t.length?e.push({source:t,target:r.target[i]=new Array(4)}):r.target[i]=bw(t));return n},_w.add=Z_,_w.addAll=tw,_w.cover=nw,_w.data=rw,_w.extent=iw,_w.find=aw,_w.remove=sw,_w.removeAll=lw,_w.root=cw,_w.size=uw,_w.visit=dw,_w.visitAfter=hw,_w.x=fw,_w.y=gw;var Cw={value:()=>{}};function Rw(){for(var e,t=0,n=arguments.length,r={};t<n;++t){if(!(e=arguments[t]+"")||e in r||/[\s.]/.test(e))throw new Error("illegal type: "+e);r[e]=[]}return new Ow(r)}function Ow(e){this._=e}function Iw(e,t){return e.trim().split(/^|\s+/).map((function(e){var n="",r=e.indexOf(".");if(r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:n}}))}function Dw(e,t){for(var n,r=0,i=e.length;r<i;++r)if((n=e[r]).name===t)return n.value}function Lw(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=Cw,e=e.slice(0,r).concat(e.slice(r+1));break}return null!=n&&e.push({name:t,value:n}),e}Ow.prototype=Rw.prototype={constructor:Ow,on:function(e,t){var n,r=this._,i=Iw(e+"",r),o=-1,a=i.length;if(!(arguments.length<2)){if(null!=t&&"function"!==typeof t)throw new Error("invalid callback: "+t);while(++o<a)if(n=(e=i[o]).type)r[n]=Lw(r[n],e.name,t);else if(null==t)for(n in r)r[n]=Lw(r[n],e.name,null);return this}while(++o<a)if((n=(e=i[o]).type)&&(n=Dw(r[n],e.name)))return n},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new Ow(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var n,r,i=new Array(n),o=0;o<n;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(r=this._[e],o=0,n=r.length;o<n;++o)r[o].value.apply(t,i)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],i=0,o=r.length;i<o;++i)r[i].value.apply(t,n)}};var Pw,Mw,Fw=Rw,Bw=0,$w=0,jw=0,Uw=1e3,Vw=0,Kw=0,Hw=0,Gw="object"===typeof performance&&performance.now?performance:Date,zw="object"===typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Xw(){return Kw||(zw(qw),Kw=Gw.now()+Hw)}function qw(){Kw=0}function Ww(){this._call=this._time=this._next=null}function Yw(e,t,n){var r=new Ww;return r.restart(e,t,n),r}function Qw(){Xw(),++Bw;var e,t=Pw;while(t)(e=Kw-t._time)>=0&&t._call.call(void 0,e),t=t._next;--Bw}function Jw(){Kw=(Vw=Gw.now())+Hw,Bw=$w=0;try{Qw()}finally{Bw=0,eE(),Kw=0}}function Zw(){var e=Gw.now(),t=e-Vw;t>Uw&&(Hw-=t,Vw=e)}function eE(){var e,t,n=Pw,r=1/0;while(n)n._call?(r>n._time&&(r=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:Pw=t);Mw=e,tE(r)}function tE(e){if(!Bw){$w&&($w=clearTimeout($w));var t=e-Kw;t>24?(e<1/0&&($w=setTimeout(Jw,e-Gw.now()-Hw)),jw&&(jw=clearInterval(jw))):(jw||(Vw=Gw.now(),jw=setInterval(Zw,Uw)),Bw=1,zw(Jw))}}Ww.prototype=Yw.prototype={constructor:Ww,restart:function(e,t,n){if("function"!==typeof e)throw new TypeError("callback is not a function");n=(null==n?Xw():+n)+(null==t?0:+t),this._next||Mw===this||(Mw?Mw._next=this:Pw=this,Mw=this),this._call=e,this._time=n,tE()},stop:function(){this._call&&(this._call=null,this._time=1/0,tE())}};const nE=1664525,rE=1013904223,iE=4294967296;function oE(){let e=1;return()=>(e=(nE*e+rE)%iE)/iE}function aE(e){return e.x}function sE(e){return e.y}var lE=10,cE=Math.PI*(3-Math.sqrt(5));function uE(e){var t,n=1,r=.001,i=1-Math.pow(r,1/300),o=0,a=.6,s=new Map,l=Yw(d),c=Fw("tick","end"),u=oE();function d(){h(),c.call("tick",t),n<r&&(l.stop(),c.call("end",t))}function h(r){var l,c,u=e.length;void 0===r&&(r=1);for(var d=0;d<r;++d)for(n+=(o-n)*i,s.forEach((function(e){e(n)})),l=0;l<u;++l)c=e[l],null==c.fx?c.x+=c.vx*=a:(c.x=c.fx,c.vx=0),null==c.fy?c.y+=c.vy*=a:(c.y=c.fy,c.vy=0);return t}function p(){for(var t,n=0,r=e.length;n<r;++n){if(t=e[n],t.index=n,null!=t.fx&&(t.x=t.fx),null!=t.fy&&(t.y=t.fy),isNaN(t.x)||isNaN(t.y)){var i=lE*Math.sqrt(.5+n),o=n*cE;t.x=i*Math.cos(o),t.y=i*Math.sin(o)}(isNaN(t.vx)||isNaN(t.vy))&&(t.vx=t.vy=0)}}function f(t){return t.initialize&&t.initialize(e,u),t}return null==e&&(e=[]),p(),t={tick:h,restart:function(){return l.restart(d),t},stop:function(){return l.stop(),t},nodes:function(n){return arguments.length?(e=n,p(),s.forEach(f),t):e},alpha:function(e){return arguments.length?(n=+e,t):n},alphaMin:function(e){return arguments.length?(r=+e,t):r},alphaDecay:function(e){return arguments.length?(i=+e,t):+i},alphaTarget:function(e){return arguments.length?(o=+e,t):o},velocityDecay:function(e){return arguments.length?(a=1-e,t):1-a},randomSource:function(e){return arguments.length?(u=e,s.forEach(f),t):u},force:function(e,n){return arguments.length>1?(null==n?s.delete(e):s.set(e,f(n)),t):s.get(e)},find:function(t,n,r){var i,o,a,s,l,c=0,u=e.length;for(null==r?r=1/0:r*=r,c=0;c<u;++c)s=e[c],i=t-s.x,o=n-s.y,a=i*i+o*o,a<r&&(l=s,r=a);return l},on:function(e,n){return arguments.length>1?(c.on(e,n),t):c.on(e)}}}function dE(){var e,t,n,r,i,o=ww(-30),a=1,s=1/0,l=.81;function c(n){var i,o=e.length,a=vw(e,aE,sE).visitAfter(d);for(r=n,i=0;i<o;++i)t=e[i],a.visit(h)}function u(){if(e){var t,n,r=e.length;for(i=new Array(r),t=0;t<r;++t)n=e[t],i[n.index]=+o(n,t,e)}}function d(e){var t,n,r,o,a,s=0,l=0;if(e.length){for(r=o=a=0;a<4;++a)(t=e[a])&&(n=Math.abs(t.value))&&(s+=t.value,l+=n,r+=n*t.x,o+=n*t.y);e.x=r/l,e.y=o/l}else{t=e,t.x=t.data.x,t.y=t.data.y;do{s+=i[t.data.index]}while(t=t.next)}e.value=s}function h(e,o,c,u){if(!e.value)return!0;var d=e.x-t.x,h=e.y-t.y,p=u-o,f=d*d+h*h;if(p*p/l<f)return f<s&&(0===d&&(d=Ew(n),f+=d*d),0===h&&(h=Ew(n),f+=h*h),f<a&&(f=Math.sqrt(a*f)),t.vx+=d*e.value*r/f,t.vy+=h*e.value*r/f),!0;if(!(e.length||f>=s)){(e.data!==t||e.next)&&(0===d&&(d=Ew(n),f+=d*d),0===h&&(h=Ew(n),f+=h*h),f<a&&(f=Math.sqrt(a*f)));do{e.data!==t&&(p=i[e.data.index]*r/f,t.vx+=d*p,t.vy+=h*p)}while(e=e.next)}}return c.initialize=function(t,r){e=t,n=r,u()},c.strength=function(e){return arguments.length?(o="function"===typeof e?e:ww(+e),u(),c):o},c.distanceMin=function(e){return arguments.length?(a=e*e,c):Math.sqrt(a)},c.distanceMax=function(e){return arguments.length?(s=e*e,c):Math.sqrt(s)},c.theta=function(e){return arguments.length?(l=e*e,c):Math.sqrt(l)},c}function hE(e){var t=0,n=e.children,r=n&&n.length;if(r)while(--r>=0)t+=n[r].value;else t=1;e.value=t}function pE(){return this.eachAfter(hE)}function fE(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this}function mE(e,t){var n,r,i=this,o=[i],a=-1;while(i=o.pop())if(e.call(t,i,++a,this),n=i.children)for(r=n.length-1;r>=0;--r)o.push(n[r]);return this}function gE(e,t){var n,r,i,o=this,a=[o],s=[],l=-1;while(o=a.pop())if(s.push(o),n=o.children)for(r=0,i=n.length;r<i;++r)a.push(n[r]);while(o=s.pop())e.call(t,o,++l,this);return this}function vE(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r}function yE(e){return this.eachAfter((function(t){var n=+e(t.data)||0,r=t.children,i=r&&r.length;while(--i>=0)n+=r[i].value;t.value=n}))}function bE(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))}function _E(e){var t=this,n=wE(t,e),r=[t];while(t!==n)t=t.parent,r.push(t);var i=r.length;while(e!==n)r.splice(i,0,e),e=e.parent;return r}function wE(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;e=n.pop(),t=r.pop();while(e===t)i=e,e=n.pop(),t=r.pop();return i}function EE(){var e=this,t=[e];while(e=e.parent)t.push(e);return t}function SE(){return Array.from(this)}function xE(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e}function kE(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n})})),t}function*AE(){var e,t,n,r,i=this,o=[i];do{e=o.reverse(),o=[];while(i=e.pop())if(yield i,t=i.children)for(n=0,r=t.length;n<r;++n)o.push(t[n])}while(o.length)}function NE(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=RE)):void 0===t&&(t=CE);var n,r,i,o,a,s=new DE(e),l=[s];while(n=l.pop())if((i=t(n.data))&&(a=(i=Array.from(i)).length))for(n.children=i,o=a-1;o>=0;--o)l.push(r=i[o]=new DE(i[o])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(IE)}function TE(){return NE(this).eachBefore(OE)}function CE(e){return e.children}function RE(e){return Array.isArray(e)?e[1]:null}function OE(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function IE(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function DE(e){this.data=e,this.depth=this.height=0,this.parent=null}DE.prototype=NE.prototype={constructor:DE,count:pE,each:fE,eachAfter:gE,eachBefore:mE,find:vE,sum:yE,sort:bE,path:_E,ancestors:EE,descendants:SE,leaves:xE,links:kE,copy:TE,[Symbol.iterator]:AE};var LE,PE,ME=0,FE=0,BE=0,$E=1e3,jE=0,UE=0,VE=0,KE="object"===typeof performance&&performance.now?performance:Date,HE="object"===typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function GE(){return UE||(HE(zE),UE=KE.now()+VE)}function zE(){UE=0}function XE(){this._call=this._time=this._next=null}function qE(e,t,n){var r=new XE;return r.restart(e,t,n),r}function WE(){GE(),++ME;var e,t=LE;while(t)(e=UE-t._time)>=0&&t._call.call(void 0,e),t=t._next;--ME}function YE(){UE=(jE=KE.now())+VE,ME=FE=0;try{WE()}finally{ME=0,JE(),UE=0}}function QE(){var e=KE.now(),t=e-jE;t>$E&&(VE-=t,jE=e)}function JE(){var e,t,n=LE,r=1/0;while(n)n._call?(r>n._time&&(r=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:LE=t);PE=e,ZE(r)}function ZE(e){if(!ME){FE&&(FE=clearTimeout(FE));var t=e-UE;t>24?(e<1/0&&(FE=setTimeout(YE,e-KE.now()-VE)),BE&&(BE=clearInterval(BE))):(BE||(jE=KE.now(),BE=setInterval(QE,$E)),ME=1,HE(YE))}}function eS(e,t,n){var r=new XE;return t=null==t?0:+t,r.restart((n=>{r.stop(),e(n+t)}),t,n),r}XE.prototype=qE.prototype={constructor:XE,restart:function(e,t,n){if("function"!==typeof e)throw new TypeError("callback is not a function");n=(null==n?GE():+n)+(null==t?0:+t),this._next||PE===this||(PE?PE._next=this:LE=this,PE=this),this._call=e,this._time=n,ZE()},stop:function(){this._call&&(this._call=null,this._time=1/0,ZE())}};var tS=Py("start","end","cancel","interrupt"),nS=[],rS=0,iS=1,oS=2,aS=3,sS=4,lS=5,cS=6;function uS(e,t,n,r,i,o){var a=e.__transition;if(a){if(n in a)return}else e.__transition={};fS(e,n,{name:t,index:r,group:i,on:tS,tween:nS,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:rS})}function dS(e,t){var n=pS(e,t);if(n.state>rS)throw new Error("too late; already scheduled");return n}function hS(e,t){var n=pS(e,t);if(n.state>aS)throw new Error("too late; already running");return n}function pS(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function fS(e,t,n){var r,i=e.__transition;function o(e){n.state=iS,n.timer.restart(a,n.delay,n.time),n.delay<=e&&a(e-n.delay)}function a(o){var c,u,d,h;if(n.state!==iS)return l();for(c in i)if(h=i[c],h.name===n.name){if(h.state===aS)return eS(a);h.state===sS?(h.state=cS,h.timer.stop(),h.on.call("interrupt",e,e.__data__,h.index,h.group),delete i[c]):+c<t&&(h.state=cS,h.timer.stop(),h.on.call("cancel",e,e.__data__,h.index,h.group),delete i[c])}if(eS((function(){n.state===aS&&(n.state=sS,n.timer.restart(s,n.delay,n.time),s(o))})),n.state=oS,n.on.call("start",e,e.__data__,n.index,n.group),n.state===oS){for(n.state=aS,r=new Array(d=n.tween.length),c=0,u=-1;c<d;++c)(h=n.tween[c].value.call(e,e.__data__,n.index,n.group))&&(r[++u]=h);r.length=u+1}}function s(t){var i=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(l),n.state=lS,1),o=-1,a=r.length;while(++o<a)r[o].call(e,i);n.state===lS&&(n.on.call("end",e,e.__data__,n.index,n.group),l())}function l(){for(var r in n.state=cS,n.timer.stop(),delete i[t],i)return;delete e.__transition}i[t]=n,n.timer=qE(o,0,n.time)}function mS(e,t){var n,r,i,o=e.__transition,a=!0;if(o){for(i in t=null==t?null:t+"",o)(n=o[i]).name===t?(r=n.state>oS&&n.state<lS,n.state=cS,n.timer.stop(),n.on.call(r?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete o[i]):a=!1;a&&delete e.__transition}}function gS(e){return this.each((function(){mS(this,e)}))}function vS(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var yS,bS=180/Math.PI,_S={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function wS(e,t,n,r,i,o){var a,s,l;return(a=Math.sqrt(e*e+t*t))&&(e/=a,t/=a),(l=e*n+t*r)&&(n-=e*l,r-=t*l),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,l/=s),e*r<t*n&&(e=-e,t=-t,l=-l,a=-a),{translateX:i,translateY:o,rotate:Math.atan2(t,e)*bS,skewX:Math.atan(l)*bS,scaleX:a,scaleY:s}}function ES(e){const t=new("function"===typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?_S:wS(t.a,t.b,t.c,t.d,t.e,t.f)}function SS(e){return null==e?_S:(yS||(yS=document.createElementNS("http://www.w3.org/2000/svg","g")),yS.setAttribute("transform",e),(e=yS.transform.baseVal.consolidate())?(e=e.matrix,wS(e.a,e.b,e.c,e.d,e.e,e.f)):_S)}function xS(e,t,n,r){function i(e){return e.length?e.pop()+" ":""}function o(e,r,i,o,a,s){if(e!==i||r!==o){var l=a.push("translate(",null,t,null,n);s.push({i:l-4,x:vS(e,i)},{i:l-2,x:vS(r,o)})}else(i||o)&&a.push("translate("+i+t+o+n)}function a(e,t,n,o){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),o.push({i:n.push(i(n)+"rotate(",null,r)-2,x:vS(e,t)})):t&&n.push(i(n)+"rotate("+t+r)}function s(e,t,n,o){e!==t?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:vS(e,t)}):t&&n.push(i(n)+"skewX("+t+r)}function l(e,t,n,r,o,a){if(e!==n||t!==r){var s=o.push(i(o)+"scale(",null,",",null,")");a.push({i:s-4,x:vS(e,n)},{i:s-2,x:vS(t,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}return function(t,n){var r=[],i=[];return t=e(t),n=e(n),o(t.translateX,t.translateY,n.translateX,n.translateY,r,i),a(t.rotate,n.rotate,r,i),s(t.skewX,n.skewX,r,i),l(t.scaleX,t.scaleY,n.scaleX,n.scaleY,r,i),t=n=null,function(e){var t,n=-1,o=i.length;while(++n<o)r[(t=i[n]).i]=t.x(e);return r.join("")}}}var kS=xS(ES,"px, ","px)","deg)"),AS=xS(SS,", ",")",")");function NS(e,t){var n,r;return function(){var i=hS(this,e),o=i.tween;if(o!==n){r=n=o;for(var a=0,s=r.length;a<s;++a)if(r[a].name===t){r=r.slice(),r.splice(a,1);break}}i.tween=r}}function TS(e,t,n){var r,i;if("function"!==typeof n)throw new Error;return function(){var o=hS(this,e),a=o.tween;if(a!==r){i=(r=a).slice();for(var s={name:t,value:n},l=0,c=i.length;l<c;++l)if(i[l].name===t){i[l]=s;break}l===c&&i.push(s)}o.tween=i}}function CS(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r,i=pS(this.node(),n).tween,o=0,a=i.length;o<a;++o)if((r=i[o]).name===e)return r.value;return null}return this.each((null==t?NS:TS)(n,e,t))}function RS(e,t,n){var r=e._id;return e.each((function(){var e=hS(this,r);(e.value||(e.value={}))[t]=n.apply(this,arguments)})),function(e){return pS(e,r).value[t]}}function OS(e,t,n,r,i){var o=e*e,a=o*e;return((1-3*e+3*o-a)*t+(4-6*o+3*a)*n+(1+3*e+3*o-3*a)*r+a*i)/6}function IS(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),i=e[r],o=e[r+1],a=r>0?e[r-1]:2*i-o,s=r<t-1?e[r+2]:2*o-i;return OS((n-r/t)*t,a,i,o,s)}}function DS(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),i=e[(r+t-1)%t],o=e[r%t],a=e[(r+1)%t],s=e[(r+2)%t];return OS((n-r/t)*t,i,o,a,s)}}var LS=e=>()=>e;function PS(e,t){return function(n){return e+n*t}}function MS(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function FS(e){return 1===(e=+e)?BS:function(t,n){return n-t?MS(t,n,e):LS(isNaN(t)?n:t)}}function BS(e,t){var n=t-e;return n?PS(e,n):LS(isNaN(e)?t:e)}var $S=function e(t){var n=FS(t);function r(e,t){var r=n((e=Ug(e)).r,(t=Ug(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=BS(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function jS(e){return function(t){var n,r,i=t.length,o=new Array(i),a=new Array(i),s=new Array(i);for(n=0;n<i;++n)r=Ug(t[n]),o[n]=r.r||0,a[n]=r.g||0,s[n]=r.b||0;return o=e(o),a=e(a),s=e(s),r.opacity=1,function(e){return r.r=o(e),r.g=a(e),r.b=s(e),r+""}}}jS(IS),jS(DS);var US=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,VS=new RegExp(US.source,"g");function KS(e){return function(){return e}}function HS(e){return function(t){return e(t)+""}}function GS(e,t){var n,r,i,o=US.lastIndex=VS.lastIndex=0,a=-1,s=[],l=[];e+="",t+="";while((n=US.exec(e))&&(r=VS.exec(t)))(i=r.index)>o&&(i=t.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,l.push({i:a,x:vS(n,r)})),o=VS.lastIndex;return o<t.length&&(i=t.slice(o),s[a]?s[a]+=i:s[++a]=i),s.length<2?l[0]?HS(l[0].x):KS(t):(t=l.length,function(e){for(var n,r=0;r<t;++r)s[(n=l[r]).i]=n.x(e);return s.join("")})}function zS(e,t){var n;return("number"===typeof t?vS:t instanceof Fg?$S:(n=Fg(t))?(t=n,$S):GS)(e,t)}function XS(e){return function(){this.removeAttribute(e)}}function qS(e){return function(){this.removeAttributeNS(e.space,e.local)}}function WS(e,t,n){var r,i,o=n+"";return function(){var a=this.getAttribute(e);return a===o?null:a===r?i:i=t(r=a,n)}}function YS(e,t,n){var r,i,o=n+"";return function(){var a=this.getAttributeNS(e.space,e.local);return a===o?null:a===r?i:i=t(r=a,n)}}function QS(e,t,n){var r,i,o;return function(){var a,s,l=n(this);if(null!=l)return a=this.getAttribute(e),s=l+"",a===s?null:a===r&&s===i?o:(i=s,o=t(r=a,l));this.removeAttribute(e)}}function JS(e,t,n){var r,i,o;return function(){var a,s,l=n(this);if(null!=l)return a=this.getAttributeNS(e.space,e.local),s=l+"",a===s?null:a===r&&s===i?o:(i=s,o=t(r=a,l));this.removeAttributeNS(e.space,e.local)}}function ZS(e,t){var n=xb(e),r="transform"===n?AS:zS;return this.attrTween(e,"function"===typeof t?(n.local?JS:QS)(n,r,RS(this,"attr."+e,t)):null==t?(n.local?qS:XS)(n):(n.local?YS:WS)(n,r,t))}function ex(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function tx(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function nx(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&tx(e,i)),n}return i._value=t,i}function rx(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&ex(e,i)),n}return i._value=t,i}function ix(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!==typeof t)throw new Error;var r=xb(e);return this.tween(n,(r.local?nx:rx)(r,t))}function ox(e,t){return function(){dS(this,e).delay=+t.apply(this,arguments)}}function ax(e,t){return t=+t,function(){dS(this,e).delay=t}}function sx(e){var t=this._id;return arguments.length?this.each(("function"===typeof e?ox:ax)(t,e)):pS(this.node(),t).delay}function lx(e,t){return function(){hS(this,e).duration=+t.apply(this,arguments)}}function cx(e,t){return t=+t,function(){hS(this,e).duration=t}}function ux(e){var t=this._id;return arguments.length?this.each(("function"===typeof e?lx:cx)(t,e)):pS(this.node(),t).duration}function dx(e,t){if("function"!==typeof t)throw new Error;return function(){hS(this,e).ease=t}}function hx(e){var t=this._id;return arguments.length?this.each(dx(t,e)):pS(this.node(),t).ease}function px(e,t){return function(){var n=t.apply(this,arguments);if("function"!==typeof n)throw new Error;hS(this,e).ease=n}}function fx(e){if("function"!==typeof e)throw new Error;return this.each(px(this._id,e))}function mx(e){"function"!==typeof e&&(e=Hy(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o,a=t[i],s=a.length,l=r[i]=[],c=0;c<s;++c)(o=a[c])&&e.call(o,o.__data__,c,a)&&l.push(o);return new Hx(r,this._parents,this._name,this._id)}function gx(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,i=n.length,o=Math.min(r,i),a=new Array(r),s=0;s<o;++s)for(var l,c=t[s],u=n[s],d=c.length,h=a[s]=new Array(d),p=0;p<d;++p)(l=c[p]||u[p])&&(h[p]=l);for(;s<r;++s)a[s]=t[s];return new Hx(a,this._parents,this._name,this._id)}function vx(e){return(e+"").trim().split(/^|\s+/).every((function(e){var t=e.indexOf(".");return t>=0&&(e=e.slice(0,t)),!e||"start"===e}))}function yx(e,t,n){var r,i,o=vx(t)?dS:hS;return function(){var a=o(this,e),s=a.on;s!==r&&(i=(r=s).copy()).on(t,n),a.on=i}}function bx(e,t){var n=this._id;return arguments.length<2?pS(this.node(),n).on.on(e):this.each(yx(n,e,t))}function _x(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function wx(){return this.on("end.remove",_x(this._id))}function Ex(e){var t=this._name,n=this._id;"function"!==typeof e&&(e=Fy(e));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a<i;++a)for(var s,l,c=r[a],u=c.length,d=o[a]=new Array(u),h=0;h<u;++h)(s=c[h])&&(l=e.call(s,s.__data__,h,c))&&("__data__"in s&&(l.__data__=s.__data__),d[h]=l,uS(d[h],t,n,h,d,pS(s,n)));return new Hx(o,this._parents,t,n)}function Sx(e){var t=this._name,n=this._id;"function"!==typeof e&&(e=Uy(e));for(var r=this._groups,i=r.length,o=[],a=[],s=0;s<i;++s)for(var l,c=r[s],u=c.length,d=0;d<u;++d)if(l=c[d]){for(var h,p=e.call(l,l.__data__,d,c),f=pS(l,n),m=0,g=p.length;m<g;++m)(h=p[m])&&uS(h,t,n,m,p,f);o.push(p),a.push(l)}return new Hx(o,a,t,n)}var xx=P_.prototype.constructor;function kx(){return new xx(this._groups,this._parents)}function Ax(e,t){var n,r,i;return function(){var o=Fb(this,e),a=(this.style.removeProperty(e),Fb(this,e));return o===a?null:o===n&&a===r?i:i=t(n=o,r=a)}}function Nx(e){return function(){this.style.removeProperty(e)}}function Tx(e,t,n){var r,i,o=n+"";return function(){var a=Fb(this,e);return a===o?null:a===r?i:i=t(r=a,n)}}function Cx(e,t,n){var r,i,o;return function(){var a=Fb(this,e),s=n(this),l=s+"";return null==s&&(this.style.removeProperty(e),l=s=Fb(this,e)),a===l?null:a===r&&l===i?o:(i=l,o=t(r=a,s))}}function Rx(e,t){var n,r,i,o,a="style."+t,s="end."+a;return function(){var l=hS(this,e),c=l.on,u=null==l.value[a]?o||(o=Nx(t)):void 0;c===n&&i===u||(r=(n=c).copy()).on(s,i=u),l.on=r}}function Ox(e,t,n){var r="transform"===(e+="")?kS:zS;return null==t?this.styleTween(e,Ax(e,r)).on("end.style."+e,Nx(e)):"function"===typeof t?this.styleTween(e,Cx(e,r,RS(this,"style."+e,t))).each(Rx(this._id,e)):this.styleTween(e,Tx(e,r,t),n).on("end.style."+e,null)}function Ix(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function Dx(e,t,n){var r,i;function o(){var o=t.apply(this,arguments);return o!==i&&(r=(i=o)&&Ix(e,o,n)),r}return o._value=t,o}function Lx(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==t)return this.tween(r,null);if("function"!==typeof t)throw new Error;return this.tween(r,Dx(e,t,null==n?"":n))}function Px(e){return function(){this.textContent=e}}function Mx(e){return function(){var t=e(this);this.textContent=null==t?"":t}}function Fx(e){return this.tween("text","function"===typeof e?Mx(RS(this,"text",e)):Px(null==e?"":e+""))}function Bx(e){return function(t){this.textContent=e.call(this,t)}}function $x(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&Bx(r)),t}return r._value=e,r}function jx(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(null==e)return this.tween(t,null);if("function"!==typeof e)throw new Error;return this.tween(t,$x(e))}function Ux(){for(var e=this._name,t=this._id,n=zx(),r=this._groups,i=r.length,o=0;o<i;++o)for(var a,s=r[o],l=s.length,c=0;c<l;++c)if(a=s[c]){var u=pS(a,t);uS(a,e,n,c,s,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new Hx(r,this._parents,e,n)}function Vx(){var e,t,n=this,r=n._id,i=n.size();return new Promise((function(o,a){var s={value:a},l={value:function(){0===--i&&o()}};n.each((function(){var n=hS(this,r),i=n.on;i!==e&&(t=(e=i).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(l)),n.on=t})),0===i&&o()}))}var Kx=0;function Hx(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function Gx(e){return P_().transition(e)}function zx(){return++Kx}var Xx=P_.prototype;function qx(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}Hx.prototype=Gx.prototype={constructor:Hx,select:Ex,selectAll:Sx,selectChild:Xx.selectChild,selectChildren:Xx.selectChildren,filter:mx,merge:gx,selection:kx,transition:Ux,call:Xx.call,nodes:Xx.nodes,node:Xx.node,size:Xx.size,empty:Xx.empty,each:Xx.each,on:bx,attr:ZS,attrTween:ix,style:Ox,styleTween:Lx,text:Fx,textTween:jx,remove:wx,tween:CS,delay:sx,duration:ux,ease:hx,easeVarying:fx,end:Vx,[Symbol.iterator]:Xx[Symbol.iterator]};var Wx={time:null,delay:0,duration:250,ease:qx};function Yx(e,t){var n;while(!(n=e.__transition)||!(n=n[t]))if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return n}function Qx(e){var t,n;e instanceof Hx?(t=e._id,e=e._name):(t=zx(),(n=Wx).time=GE(),e=null==e?null:e+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var a,s=r[o],l=s.length,c=0;c<l;++c)(a=s[c])&&uS(a,e,t,c,s,n||Yx(a,t));return new Hx(r,this._parents,e,t)}P_.prototype.interrupt=gS,P_.prototype.transition=Qx;var Jx={value:()=>{}};function Zx(){for(var e,t=0,n=arguments.length,r={};t<n;++t){if(!(e=arguments[t]+"")||e in r||/[\s.]/.test(e))throw new Error("illegal type: "+e);r[e]=[]}return new ek(r)}function ek(e){this._=e}function tk(e,t){return e.trim().split(/^|\s+/).map((function(e){var n="",r=e.indexOf(".");if(r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:n}}))}function nk(e,t){for(var n,r=0,i=e.length;r<i;++r)if((n=e[r]).name===t)return n.value}function rk(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=Jx,e=e.slice(0,r).concat(e.slice(r+1));break}return null!=n&&e.push({name:t,value:n}),e}ek.prototype=Zx.prototype={constructor:ek,on:function(e,t){var n,r=this._,i=tk(e+"",r),o=-1,a=i.length;if(!(arguments.length<2)){if(null!=t&&"function"!==typeof t)throw new Error("invalid callback: "+t);while(++o<a)if(n=(e=i[o]).type)r[n]=rk(r[n],e.name,t);else if(null==t)for(n in r)r[n]=rk(r[n],e.name,null);return this}while(++o<a)if((n=(e=i[o]).type)&&(n=nk(r[n],e.name)))return n},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new ek(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var n,r,i=new Array(n),o=0;o<n;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(r=this._[e],o=0,n=r.length;o<n;++o)r[o].value.apply(t,i)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],i=0,o=r.length;i<o;++i)r[i].value.apply(t,n)}};var ik=Zx;function ok(){}function ak(e){return null==e?ok:function(){return this.querySelector(e)}}function sk(e){"function"!==typeof e&&(e=ak(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o,a,s=t[i],l=s.length,c=r[i]=new Array(l),u=0;u<l;++u)(o=s[u])&&(a=e.call(o,o.__data__,u,s))&&("__data__"in o&&(a.__data__=o.__data__),c[u]=a);return new tN(r,this._parents)}function lk(e){return null==e?[]:Array.isArray(e)?e:Array.from(e)}function ck(){return[]}function uk(e){return null==e?ck:function(){return this.querySelectorAll(e)}}function dk(e){return function(){return lk(e.apply(this,arguments))}}function hk(e){e="function"===typeof e?dk(e):uk(e);for(var t=this._groups,n=t.length,r=[],i=[],o=0;o<n;++o)for(var a,s=t[o],l=s.length,c=0;c<l;++c)(a=s[c])&&(r.push(e.call(a,a.__data__,c,s)),i.push(a));return new tN(r,i)}function pk(e){return function(){return this.matches(e)}}function fk(e){return function(t){return t.matches(e)}}var mk=Array.prototype.find;function gk(e){return function(){return mk.call(this.children,e)}}function vk(){return this.firstElementChild}function yk(e){return this.select(null==e?vk:gk("function"===typeof e?e:fk(e)))}var bk=Array.prototype.filter;function _k(){return Array.from(this.children)}function wk(e){return function(){return bk.call(this.children,e)}}function Ek(e){return this.selectAll(null==e?_k:wk("function"===typeof e?e:fk(e)))}function Sk(e){"function"!==typeof e&&(e=pk(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o,a=t[i],s=a.length,l=r[i]=[],c=0;c<s;++c)(o=a[c])&&e.call(o,o.__data__,c,a)&&l.push(o);return new tN(r,this._parents)}function xk(e){return new Array(e.length)}function kk(){return new tN(this._enter||this._groups.map(xk),this._parents)}function Ak(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function Nk(e){return function(){return e}}function Tk(e,t,n,r,i,o){for(var a,s=0,l=t.length,c=o.length;s<c;++s)(a=t[s])?(a.__data__=o[s],r[s]=a):n[s]=new Ak(e,o[s]);for(;s<l;++s)(a=t[s])&&(i[s]=a)}function Ck(e,t,n,r,i,o,a){var s,l,c,u=new Map,d=t.length,h=o.length,p=new Array(d);for(s=0;s<d;++s)(l=t[s])&&(p[s]=c=a.call(l,l.__data__,s,t)+"",u.has(c)?i[s]=l:u.set(c,l));for(s=0;s<h;++s)c=a.call(e,o[s],s,o)+"",(l=u.get(c))?(r[s]=l,l.__data__=o[s],u.delete(c)):n[s]=new Ak(e,o[s]);for(s=0;s<d;++s)(l=t[s])&&u.get(p[s])===l&&(i[s]=l)}function Rk(e){return e.__data__}function Ok(e,t){if(!arguments.length)return Array.from(this,Rk);var n=t?Ck:Tk,r=this._parents,i=this._groups;"function"!==typeof e&&(e=Nk(e));for(var o=i.length,a=new Array(o),s=new Array(o),l=new Array(o),c=0;c<o;++c){var u=r[c],d=i[c],h=d.length,p=Ik(e.call(u,u&&u.__data__,c,r)),f=p.length,m=s[c]=new Array(f),g=a[c]=new Array(f),v=l[c]=new Array(h);n(u,d,m,g,v,p,t);for(var y,b,_=0,w=0;_<f;++_)if(y=m[_]){_>=w&&(w=_+1);while(!(b=g[w])&&++w<f);y._next=b||null}}return a=new tN(a,r),a._enter=s,a._exit=l,a}function Ik(e){return"object"===typeof e&&"length"in e?e:Array.from(e)}function Dk(){return new tN(this._exit||this._groups.map(xk),this._parents)}function Lk(e,t,n){var r=this.enter(),i=this,o=this.exit();return"function"===typeof e?(r=e(r),r&&(r=r.selection())):r=r.append(e+""),null!=t&&(i=t(i),i&&(i=i.selection())),null==n?o.remove():n(o),r&&i?r.merge(i).order():i}function Pk(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,o=r.length,a=Math.min(i,o),s=new Array(i),l=0;l<a;++l)for(var c,u=n[l],d=r[l],h=u.length,p=s[l]=new Array(h),f=0;f<h;++f)(c=u[f]||d[f])&&(p[f]=c);for(;l<i;++l)s[l]=n[l];return new tN(s,this._parents)}function Mk(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r,i=e[t],o=i.length-1,a=i[o];--o>=0;)(r=i[o])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this}function Fk(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=Bk);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var a,s=n[o],l=s.length,c=i[o]=new Array(l),u=0;u<l;++u)(a=s[u])&&(c[u]=a);c.sort(t)}return new tN(i,this._parents).order()}function Bk(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function $k(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function jk(){return Array.from(this)}function Uk(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null}function Vk(){let e=0;for(const t of this)++e;return e}function Kk(){return!this.node()}function Hk(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i,o=t[n],a=0,s=o.length;a<s;++a)(i=o[a])&&e.call(i,i.__data__,a,o);return this}Ak.prototype={constructor:Ak,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};var Gk="http://www.w3.org/1999/xhtml",zk={svg:"http://www.w3.org/2000/svg",xhtml:Gk,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Xk(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),zk.hasOwnProperty(t)?{space:zk[t],local:e}:e}function qk(e){return function(){this.removeAttribute(e)}}function Wk(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Yk(e,t){return function(){this.setAttribute(e,t)}}function Qk(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Jk(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function Zk(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function eA(e,t){var n=Xk(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==t?n.local?Wk:qk:"function"===typeof t?n.local?Zk:Jk:n.local?Qk:Yk)(n,t))}function tA(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function nA(e){return function(){this.style.removeProperty(e)}}function rA(e,t,n){return function(){this.style.setProperty(e,t,n)}}function iA(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function oA(e,t,n){return arguments.length>1?this.each((null==t?nA:"function"===typeof t?iA:rA)(e,t,null==n?"":n)):aA(this.node(),e)}function aA(e,t){return e.style.getPropertyValue(t)||tA(e).getComputedStyle(e,null).getPropertyValue(t)}function sA(e){return function(){delete this[e]}}function lA(e,t){return function(){this[e]=t}}function cA(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function uA(e,t){return arguments.length>1?this.each((null==t?sA:"function"===typeof t?cA:lA)(e,t)):this.node()[e]}function dA(e){return e.trim().split(/^|\s+/)}function hA(e){return e.classList||new pA(e)}function pA(e){this._node=e,this._names=dA(e.getAttribute("class")||"")}function fA(e,t){var n=hA(e),r=-1,i=t.length;while(++r<i)n.add(t[r])}function mA(e,t){var n=hA(e),r=-1,i=t.length;while(++r<i)n.remove(t[r])}function gA(e){return function(){fA(this,e)}}function vA(e){return function(){mA(this,e)}}function yA(e,t){return function(){(t.apply(this,arguments)?fA:mA)(this,e)}}function bA(e,t){var n=dA(e+"");if(arguments.length<2){var r=hA(this.node()),i=-1,o=n.length;while(++i<o)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"===typeof t?yA:t?gA:vA)(n,t))}function _A(){this.textContent=""}function wA(e){return function(){this.textContent=e}}function EA(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}function SA(e){return arguments.length?this.each(null==e?_A:("function"===typeof e?EA:wA)(e)):this.node().textContent}function xA(){this.innerHTML=""}function kA(e){return function(){this.innerHTML=e}}function AA(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}function NA(e){return arguments.length?this.each(null==e?xA:("function"===typeof e?AA:kA)(e)):this.node().innerHTML}function TA(){this.nextSibling&&this.parentNode.appendChild(this)}function CA(){return this.each(TA)}function RA(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function OA(){return this.each(RA)}function IA(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===Gk&&t.documentElement.namespaceURI===Gk?t.createElement(e):t.createElementNS(n,e)}}function DA(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function LA(e){var t=Xk(e);return(t.local?DA:IA)(t)}function PA(e){var t="function"===typeof e?e:LA(e);return this.select((function(){return this.appendChild(t.apply(this,arguments))}))}function MA(){return null}function FA(e,t){var n="function"===typeof e?e:LA(e),r=null==t?MA:"function"===typeof t?t:ak(t);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))}function BA(){var e=this.parentNode;e&&e.removeChild(this)}function $A(){return this.each(BA)}function jA(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function UA(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function VA(e){return this.select(e?UA:jA)}function KA(e){return arguments.length?this.property("__data__",e):this.node().__data__}function HA(e){return function(t){e.call(this,t,this.__data__)}}function GA(e){return e.trim().split(/^|\s+/).map((function(e){var t="",n=e.indexOf(".");return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}}))}function zA(e){return function(){var t=this.__on;if(t){for(var n,r=0,i=-1,o=t.length;r<o;++r)n=t[r],e.type&&n.type!==e.type||n.name!==e.name?t[++i]=n:this.removeEventListener(n.type,n.listener,n.options);++i?t.length=i:delete this.__on}}}function XA(e,t,n){return function(){var r,i=this.__on,o=HA(t);if(i)for(var a=0,s=i.length;a<s;++a)if((r=i[a]).type===e.type&&r.name===e.name)return this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=o,r.options=n),void(r.value=t);this.addEventListener(e.type,o,n),r={type:e.type,name:e.name,value:t,listener:o,options:n},i?i.push(r):this.__on=[r]}}function qA(e,t,n){var r,i,o=GA(e+""),a=o.length;if(!(arguments.length<2)){for(s=t?XA:zA,r=0;r<a;++r)this.each(s(o[r],t,n));return this}var s=this.node().__on;if(s)for(var l,c=0,u=s.length;c<u;++c)for(r=0,l=s[c];r<a;++r)if((i=o[r]).type===l.type&&i.name===l.name)return l.value}function WA(e,t,n){var r=tA(e),i=r.CustomEvent;"function"===typeof i?i=new i(t,n):(i=r.document.createEvent("Event"),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function YA(e,t){return function(){return WA(this,e,t)}}function QA(e,t){return function(){return WA(this,e,t.apply(this,arguments))}}function JA(e,t){return this.each(("function"===typeof t?QA:YA)(e,t))}function*ZA(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r,i=e[t],o=0,a=i.length;o<a;++o)(r=i[o])&&(yield r)}pA.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};var eN=[null];function tN(e,t){this._groups=e,this._parents=t}function nN(){return new tN([[document.documentElement]],eN)}function rN(){return this}tN.prototype=nN.prototype={constructor:tN,select:sk,selectAll:hk,selectChild:yk,selectChildren:Ek,filter:Sk,data:Ok,enter:kk,exit:Dk,join:Lk,merge:Pk,selection:rN,order:Mk,sort:Fk,call:$k,nodes:jk,node:Uk,size:Vk,empty:Kk,each:Hk,attr:eA,style:oA,property:uA,classed:bA,text:SA,html:NA,raise:CA,lower:OA,append:PA,insert:FA,remove:$A,clone:VA,datum:KA,on:qA,dispatch:JA,[Symbol.iterator]:ZA};var iN=nN;function oN(e){return"string"===typeof e?new tN([[document.querySelector(e)]],[document.documentElement]):new tN([[e]],eN)}const aN={capture:!0,passive:!1};function sN(e){e.preventDefault(),e.stopImmediatePropagation()}function lN(e){var t=e.document.documentElement,n=oN(e).on("dragstart.drag",sN,aN);"onselectstart"in t?n.on("selectstart.drag",sN,aN):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function cN(e,t){var n=e.document.documentElement,r=oN(e).on("dragstart.drag",null);t&&(r.on("click.drag",sN,aN),setTimeout((function(){r.on("click.drag",null)}),0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}var uN=1e-12;function dN(e){return((e=Math.exp(e))+1/e)/2}function hN(e){return((e=Math.exp(e))-1/e)/2}function pN(e){return((e=Math.exp(2*e))-1)/(e+1)}var fN=function e(t,n,r){function i(e,i){var o,a,s=e[0],l=e[1],c=e[2],u=i[0],d=i[1],h=i[2],p=u-s,f=d-l,m=p*p+f*f;if(m<uN)a=Math.log(h/c)/t,o=function(e){return[s+e*p,l+e*f,c*Math.exp(t*e*a)]};else{var g=Math.sqrt(m),v=(h*h-c*c+r*m)/(2*c*n*g),y=(h*h-c*c-r*m)/(2*h*n*g),b=Math.log(Math.sqrt(v*v+1)-v),_=Math.log(Math.sqrt(y*y+1)-y);a=(_-b)/t,o=function(e){var r=e*a,i=dN(b),o=c/(n*g)*(i*pN(t*r+b)-hN(b));return[s+o*p,l+o*f,c*i/dN(t*r+b)]}}return o.duration=1e3*a*t/Math.SQRT2,o}return i.rho=function(t){var n=Math.max(.001,+t),r=n*n,i=r*r;return e(n,r,i)},i}(Math.SQRT2,2,4);function mN(e){let t;while(t=e.sourceEvent)e=t;return e}function gN(e,t){if(e=mN(e),void 0===t&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}if(t.getBoundingClientRect){var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}var vN,yN,bN=0,_N=0,wN=0,EN=1e3,SN=0,xN=0,kN=0,AN="object"===typeof performance&&performance.now?performance:Date,NN="object"===typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function TN(){return xN||(NN(CN),xN=AN.now()+kN)}function CN(){xN=0}function RN(){this._call=this._time=this._next=null}function ON(e,t,n){var r=new RN;return r.restart(e,t,n),r}function IN(){TN(),++bN;var e,t=vN;while(t)(e=xN-t._time)>=0&&t._call.call(void 0,e),t=t._next;--bN}function DN(){xN=(SN=AN.now())+kN,bN=_N=0;try{IN()}finally{bN=0,PN(),xN=0}}function LN(){var e=AN.now(),t=e-SN;t>EN&&(kN-=t,SN=e)}function PN(){var e,t,n=vN,r=1/0;while(n)n._call?(r>n._time&&(r=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:vN=t);yN=e,MN(r)}function MN(e){if(!bN){_N&&(_N=clearTimeout(_N));var t=e-xN;t>24?(e<1/0&&(_N=setTimeout(DN,e-AN.now()-kN)),wN&&(wN=clearInterval(wN))):(wN||(SN=AN.now(),wN=setInterval(LN,EN)),bN=1,NN(DN))}}function FN(e,t,n){var r=new RN;return t=null==t?0:+t,r.restart((n=>{r.stop(),e(n+t)}),t,n),r}RN.prototype=ON.prototype={constructor:RN,restart:function(e,t,n){if("function"!==typeof e)throw new TypeError("callback is not a function");n=(null==n?TN():+n)+(null==t?0:+t),this._next||yN===this||(yN?yN._next=this:vN=this,yN=this),this._call=e,this._time=n,MN()},stop:function(){this._call&&(this._call=null,this._time=1/0,MN())}};var BN=ik("start","end","cancel","interrupt"),$N=[],jN=0,UN=1,VN=2,KN=3,HN=4,GN=5,zN=6;function XN(e,t,n,r,i,o){var a=e.__transition;if(a){if(n in a)return}else e.__transition={};QN(e,n,{name:t,index:r,group:i,on:BN,tween:$N,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:jN})}function qN(e,t){var n=YN(e,t);if(n.state>jN)throw new Error("too late; already scheduled");return n}function WN(e,t){var n=YN(e,t);if(n.state>KN)throw new Error("too late; already running");return n}function YN(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function QN(e,t,n){var r,i=e.__transition;function o(e){n.state=UN,n.timer.restart(a,n.delay,n.time),n.delay<=e&&a(e-n.delay)}function a(o){var c,u,d,h;if(n.state!==UN)return l();for(c in i)if(h=i[c],h.name===n.name){if(h.state===KN)return FN(a);h.state===HN?(h.state=zN,h.timer.stop(),h.on.call("interrupt",e,e.__data__,h.index,h.group),delete i[c]):+c<t&&(h.state=zN,h.timer.stop(),h.on.call("cancel",e,e.__data__,h.index,h.group),delete i[c])}if(FN((function(){n.state===KN&&(n.state=HN,n.timer.restart(s,n.delay,n.time),s(o))})),n.state=VN,n.on.call("start",e,e.__data__,n.index,n.group),n.state===VN){for(n.state=KN,r=new Array(d=n.tween.length),c=0,u=-1;c<d;++c)(h=n.tween[c].value.call(e,e.__data__,n.index,n.group))&&(r[++u]=h);r.length=u+1}}function s(t){var i=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(l),n.state=GN,1),o=-1,a=r.length;while(++o<a)r[o].call(e,i);n.state===GN&&(n.on.call("end",e,e.__data__,n.index,n.group),l())}function l(){for(var r in n.state=zN,n.timer.stop(),delete i[t],i)return;delete e.__transition}i[t]=n,n.timer=ON(o,0,n.time)}function JN(e,t){var n,r,i,o=e.__transition,a=!0;if(o){for(i in t=null==t?null:t+"",o)(n=o[i]).name===t?(r=n.state>VN&&n.state<GN,n.state=zN,n.timer.stop(),n.on.call(r?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete o[i]):a=!1;a&&delete e.__transition}}function ZN(e){return this.each((function(){JN(this,e)}))}function eT(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var tT,nT=180/Math.PI,rT={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function iT(e,t,n,r,i,o){var a,s,l;return(a=Math.sqrt(e*e+t*t))&&(e/=a,t/=a),(l=e*n+t*r)&&(n-=e*l,r-=t*l),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,l/=s),e*r<t*n&&(e=-e,t=-t,l=-l,a=-a),{translateX:i,translateY:o,rotate:Math.atan2(t,e)*nT,skewX:Math.atan(l)*nT,scaleX:a,scaleY:s}}function oT(e){const t=new("function"===typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?rT:iT(t.a,t.b,t.c,t.d,t.e,t.f)}function aT(e){return null==e?rT:(tT||(tT=document.createElementNS("http://www.w3.org/2000/svg","g")),tT.setAttribute("transform",e),(e=tT.transform.baseVal.consolidate())?(e=e.matrix,iT(e.a,e.b,e.c,e.d,e.e,e.f)):rT)}function sT(e,t,n,r){function i(e){return e.length?e.pop()+" ":""}function o(e,r,i,o,a,s){if(e!==i||r!==o){var l=a.push("translate(",null,t,null,n);s.push({i:l-4,x:eT(e,i)},{i:l-2,x:eT(r,o)})}else(i||o)&&a.push("translate("+i+t+o+n)}function a(e,t,n,o){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),o.push({i:n.push(i(n)+"rotate(",null,r)-2,x:eT(e,t)})):t&&n.push(i(n)+"rotate("+t+r)}function s(e,t,n,o){e!==t?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:eT(e,t)}):t&&n.push(i(n)+"skewX("+t+r)}function l(e,t,n,r,o,a){if(e!==n||t!==r){var s=o.push(i(o)+"scale(",null,",",null,")");a.push({i:s-4,x:eT(e,n)},{i:s-2,x:eT(t,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}return function(t,n){var r=[],i=[];return t=e(t),n=e(n),o(t.translateX,t.translateY,n.translateX,n.translateY,r,i),a(t.rotate,n.rotate,r,i),s(t.skewX,n.skewX,r,i),l(t.scaleX,t.scaleY,n.scaleX,n.scaleY,r,i),t=n=null,function(e){var t,n=-1,o=i.length;while(++n<o)r[(t=i[n]).i]=t.x(e);return r.join("")}}}var lT=sT(oT,"px, ","px)","deg)"),cT=sT(aT,", ",")",")");function uT(e,t){var n,r;return function(){var i=WN(this,e),o=i.tween;if(o!==n){r=n=o;for(var a=0,s=r.length;a<s;++a)if(r[a].name===t){r=r.slice(),r.splice(a,1);break}}i.tween=r}}function dT(e,t,n){var r,i;if("function"!==typeof n)throw new Error;return function(){var o=WN(this,e),a=o.tween;if(a!==r){i=(r=a).slice();for(var s={name:t,value:n},l=0,c=i.length;l<c;++l)if(i[l].name===t){i[l]=s;break}l===c&&i.push(s)}o.tween=i}}function hT(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r,i=YN(this.node(),n).tween,o=0,a=i.length;o<a;++o)if((r=i[o]).name===e)return r.value;return null}return this.each((null==t?uT:dT)(n,e,t))}function pT(e,t,n){var r=e._id;return e.each((function(){var e=WN(this,r);(e.value||(e.value={}))[t]=n.apply(this,arguments)})),function(e){return YN(e,r).value[t]}}function fT(e,t,n,r,i){var o=e*e,a=o*e;return((1-3*e+3*o-a)*t+(4-6*o+3*a)*n+(1+3*e+3*o-3*a)*r+a*i)/6}function mT(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),i=e[r],o=e[r+1],a=r>0?e[r-1]:2*i-o,s=r<t-1?e[r+2]:2*o-i;return fT((n-r/t)*t,a,i,o,s)}}function gT(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),i=e[(r+t-1)%t],o=e[r%t],a=e[(r+1)%t],s=e[(r+2)%t];return fT((n-r/t)*t,i,o,a,s)}}var vT=e=>()=>e;function yT(e,t){return function(n){return e+n*t}}function bT(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function _T(e){return 1===(e=+e)?wT:function(t,n){return n-t?bT(t,n,e):vT(isNaN(t)?n:t)}}function wT(e,t){var n=t-e;return n?yT(e,n):vT(isNaN(e)?t:e)}var ET=function e(t){var n=_T(t);function r(e,t){var r=n((e=Ug(e)).r,(t=Ug(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=wT(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function ST(e){return function(t){var n,r,i=t.length,o=new Array(i),a=new Array(i),s=new Array(i);for(n=0;n<i;++n)r=Ug(t[n]),o[n]=r.r||0,a[n]=r.g||0,s[n]=r.b||0;return o=e(o),a=e(a),s=e(s),r.opacity=1,function(e){return r.r=o(e),r.g=a(e),r.b=s(e),r+""}}}ST(mT),ST(gT);var xT=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,kT=new RegExp(xT.source,"g");function AT(e){return function(){return e}}function NT(e){return function(t){return e(t)+""}}function TT(e,t){var n,r,i,o=xT.lastIndex=kT.lastIndex=0,a=-1,s=[],l=[];e+="",t+="";while((n=xT.exec(e))&&(r=kT.exec(t)))(i=r.index)>o&&(i=t.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,l.push({i:a,x:eT(n,r)})),o=kT.lastIndex;return o<t.length&&(i=t.slice(o),s[a]?s[a]+=i:s[++a]=i),s.length<2?l[0]?NT(l[0].x):AT(t):(t=l.length,function(e){for(var n,r=0;r<t;++r)s[(n=l[r]).i]=n.x(e);return s.join("")})}function CT(e,t){var n;return("number"===typeof t?eT:t instanceof Fg?ET:(n=Fg(t))?(t=n,ET):TT)(e,t)}function RT(e){return function(){this.removeAttribute(e)}}function OT(e){return function(){this.removeAttributeNS(e.space,e.local)}}function IT(e,t,n){var r,i,o=n+"";return function(){var a=this.getAttribute(e);return a===o?null:a===r?i:i=t(r=a,n)}}function DT(e,t,n){var r,i,o=n+"";return function(){var a=this.getAttributeNS(e.space,e.local);return a===o?null:a===r?i:i=t(r=a,n)}}function LT(e,t,n){var r,i,o;return function(){var a,s,l=n(this);if(null!=l)return a=this.getAttribute(e),s=l+"",a===s?null:a===r&&s===i?o:(i=s,o=t(r=a,l));this.removeAttribute(e)}}function PT(e,t,n){var r,i,o;return function(){var a,s,l=n(this);if(null!=l)return a=this.getAttributeNS(e.space,e.local),s=l+"",a===s?null:a===r&&s===i?o:(i=s,o=t(r=a,l));this.removeAttributeNS(e.space,e.local)}}function MT(e,t){var n=Xk(e),r="transform"===n?cT:CT;return this.attrTween(e,"function"===typeof t?(n.local?PT:LT)(n,r,pT(this,"attr."+e,t)):null==t?(n.local?OT:RT)(n):(n.local?DT:IT)(n,r,t))}function FT(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function BT(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function $T(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&BT(e,i)),n}return i._value=t,i}function jT(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&FT(e,i)),n}return i._value=t,i}function UT(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!==typeof t)throw new Error;var r=Xk(e);return this.tween(n,(r.local?$T:jT)(r,t))}function VT(e,t){return function(){qN(this,e).delay=+t.apply(this,arguments)}}function KT(e,t){return t=+t,function(){qN(this,e).delay=t}}function HT(e){var t=this._id;return arguments.length?this.each(("function"===typeof e?VT:KT)(t,e)):YN(this.node(),t).delay}function GT(e,t){return function(){WN(this,e).duration=+t.apply(this,arguments)}}function zT(e,t){return t=+t,function(){WN(this,e).duration=t}}function XT(e){var t=this._id;return arguments.length?this.each(("function"===typeof e?GT:zT)(t,e)):YN(this.node(),t).duration}function qT(e,t){if("function"!==typeof t)throw new Error;return function(){WN(this,e).ease=t}}function WT(e){var t=this._id;return arguments.length?this.each(qT(t,e)):YN(this.node(),t).ease}function YT(e,t){return function(){var n=t.apply(this,arguments);if("function"!==typeof n)throw new Error;WN(this,e).ease=n}}function QT(e){if("function"!==typeof e)throw new Error;return this.each(YT(this._id,e))}function JT(e){"function"!==typeof e&&(e=pk(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o,a=t[i],s=a.length,l=r[i]=[],c=0;c<s;++c)(o=a[c])&&e.call(o,o.__data__,c,a)&&l.push(o);return new NC(r,this._parents,this._name,this._id)}function ZT(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,i=n.length,o=Math.min(r,i),a=new Array(r),s=0;s<o;++s)for(var l,c=t[s],u=n[s],d=c.length,h=a[s]=new Array(d),p=0;p<d;++p)(l=c[p]||u[p])&&(h[p]=l);for(;s<r;++s)a[s]=t[s];return new NC(a,this._parents,this._name,this._id)}function eC(e){return(e+"").trim().split(/^|\s+/).every((function(e){var t=e.indexOf(".");return t>=0&&(e=e.slice(0,t)),!e||"start"===e}))}function tC(e,t,n){var r,i,o=eC(t)?qN:WN;return function(){var a=o(this,e),s=a.on;s!==r&&(i=(r=s).copy()).on(t,n),a.on=i}}function nC(e,t){var n=this._id;return arguments.length<2?YN(this.node(),n).on.on(e):this.each(tC(n,e,t))}function rC(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function iC(){return this.on("end.remove",rC(this._id))}function oC(e){var t=this._name,n=this._id;"function"!==typeof e&&(e=ak(e));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a<i;++a)for(var s,l,c=r[a],u=c.length,d=o[a]=new Array(u),h=0;h<u;++h)(s=c[h])&&(l=e.call(s,s.__data__,h,c))&&("__data__"in s&&(l.__data__=s.__data__),d[h]=l,XN(d[h],t,n,h,d,YN(s,n)));return new NC(o,this._parents,t,n)}function aC(e){var t=this._name,n=this._id;"function"!==typeof e&&(e=uk(e));for(var r=this._groups,i=r.length,o=[],a=[],s=0;s<i;++s)for(var l,c=r[s],u=c.length,d=0;d<u;++d)if(l=c[d]){for(var h,p=e.call(l,l.__data__,d,c),f=YN(l,n),m=0,g=p.length;m<g;++m)(h=p[m])&&XN(h,t,n,m,p,f);o.push(p),a.push(l)}return new NC(o,a,t,n)}var sC=iN.prototype.constructor;function lC(){return new sC(this._groups,this._parents)}function cC(e,t){var n,r,i;return function(){var o=aA(this,e),a=(this.style.removeProperty(e),aA(this,e));return o===a?null:o===n&&a===r?i:i=t(n=o,r=a)}}function uC(e){return function(){this.style.removeProperty(e)}}function dC(e,t,n){var r,i,o=n+"";return function(){var a=aA(this,e);return a===o?null:a===r?i:i=t(r=a,n)}}function hC(e,t,n){var r,i,o;return function(){var a=aA(this,e),s=n(this),l=s+"";return null==s&&(this.style.removeProperty(e),l=s=aA(this,e)),a===l?null:a===r&&l===i?o:(i=l,o=t(r=a,s))}}function pC(e,t){var n,r,i,o,a="style."+t,s="end."+a;return function(){var l=WN(this,e),c=l.on,u=null==l.value[a]?o||(o=uC(t)):void 0;c===n&&i===u||(r=(n=c).copy()).on(s,i=u),l.on=r}}function fC(e,t,n){var r="transform"===(e+="")?lT:CT;return null==t?this.styleTween(e,cC(e,r)).on("end.style."+e,uC(e)):"function"===typeof t?this.styleTween(e,hC(e,r,pT(this,"style."+e,t))).each(pC(this._id,e)):this.styleTween(e,dC(e,r,t),n).on("end.style."+e,null)}function mC(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function gC(e,t,n){var r,i;function o(){var o=t.apply(this,arguments);return o!==i&&(r=(i=o)&&mC(e,o,n)),r}return o._value=t,o}function vC(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==t)return this.tween(r,null);if("function"!==typeof t)throw new Error;return this.tween(r,gC(e,t,null==n?"":n))}function yC(e){return function(){this.textContent=e}}function bC(e){return function(){var t=e(this);this.textContent=null==t?"":t}}function _C(e){return this.tween("text","function"===typeof e?bC(pT(this,"text",e)):yC(null==e?"":e+""))}function wC(e){return function(t){this.textContent=e.call(this,t)}}function EC(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&wC(r)),t}return r._value=e,r}function SC(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(null==e)return this.tween(t,null);if("function"!==typeof e)throw new Error;return this.tween(t,EC(e))}function xC(){for(var e=this._name,t=this._id,n=CC(),r=this._groups,i=r.length,o=0;o<i;++o)for(var a,s=r[o],l=s.length,c=0;c<l;++c)if(a=s[c]){var u=YN(a,t);XN(a,e,n,c,s,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new NC(r,this._parents,e,n)}function kC(){var e,t,n=this,r=n._id,i=n.size();return new Promise((function(o,a){var s={value:a},l={value:function(){0===--i&&o()}};n.each((function(){var n=WN(this,r),i=n.on;i!==e&&(t=(e=i).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(l)),n.on=t})),0===i&&o()}))}var AC=0;function NC(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function TC(e){return iN().transition(e)}function CC(){return++AC}var RC=iN.prototype;function OC(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}NC.prototype=TC.prototype={constructor:NC,select:oC,selectAll:aC,selectChild:RC.selectChild,selectChildren:RC.selectChildren,filter:JT,merge:ZT,selection:lC,transition:xC,call:RC.call,nodes:RC.nodes,node:RC.node,size:RC.size,empty:RC.empty,each:RC.each,on:nC,attr:MT,attrTween:UT,style:fC,styleTween:vC,text:_C,textTween:SC,remove:iC,tween:hT,delay:HT,duration:XT,ease:WT,easeVarying:QT,end:kC,[Symbol.iterator]:RC[Symbol.iterator]};var IC={time:null,delay:0,duration:250,ease:OC};function DC(e,t){var n;while(!(n=e.__transition)||!(n=n[t]))if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return n}function LC(e){var t,n;e instanceof NC?(t=e._id,e=e._name):(t=CC(),(n=IC).time=TN(),e=null==e?null:e+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var a,s=r[o],l=s.length,c=0;c<l;++c)(a=s[c])&&XN(a,e,t,c,s,n||DC(a,t));return new NC(r,this._parents,e,t)}iN.prototype.interrupt=ZN,iN.prototype.transition=LC;var PC=e=>()=>e;function MC(e,{sourceEvent:t,target:n,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function FC(e,t,n){this.k=e,this.x=t,this.y=n}FC.prototype={constructor:FC,scale:function(e){return 1===e?this:new FC(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new FC(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var BC=new FC(1,0,0);function $C(e){while(!e.__zoom)if(!(e=e.parentNode))return BC;return e.__zoom}function jC(e){e.stopImmediatePropagation()}function UC(e){e.preventDefault(),e.stopImmediatePropagation()}function VC(e){return(!e.ctrlKey||"wheel"===e.type)&&!e.button}function KC(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function HC(){return this.__zoom||BC}function GC(e){return-e.deltaY*(1===e.deltaMode?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function zC(){return navigator.maxTouchPoints||"ontouchstart"in this}function XC(e,t,n){var r=e.invertX(t[0][0])-n[0][0],i=e.invertX(t[1][0])-n[1][0],o=e.invertY(t[0][1])-n[0][1],a=e.invertY(t[1][1])-n[1][1];return e.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a))}function qC(){var e,t,n,r=VC,i=KC,o=XC,a=GC,s=zC,l=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],u=250,d=fN,h=ik("start","zoom","end"),p=500,f=150,m=0,g=10;function v(e){e.property("__zoom",HC).on("wheel.zoom",x,{passive:!1}).on("mousedown.zoom",k).on("dblclick.zoom",A).filter(s).on("touchstart.zoom",N).on("touchmove.zoom",T).on("touchend.zoom touchcancel.zoom",C).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function y(e,t){return t=Math.max(l[0],Math.min(l[1],t)),t===e.k?e:new FC(t,e.x,e.y)}function b(e,t,n){var r=t[0]-n[0]*e.k,i=t[1]-n[1]*e.k;return r===e.x&&i===e.y?e:new FC(e.k,r,i)}function _(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function w(e,t,n,r){e.on("start.zoom",(function(){E(this,arguments).event(r).start()})).on("interrupt.zoom end.zoom",(function(){E(this,arguments).event(r).end()})).tween("zoom",(function(){var e=this,o=arguments,a=E(e,o).event(r),s=i.apply(e,o),l=null==n?_(s):"function"===typeof n?n.apply(e,o):n,c=Math.max(s[1][0]-s[0][0],s[1][1]-s[0][1]),u=e.__zoom,h="function"===typeof t?t.apply(e,o):t,p=d(u.invert(l).concat(c/u.k),h.invert(l).concat(c/h.k));return function(e){if(1===e)e=h;else{var t=p(e),n=c/t[2];e=new FC(n,l[0]-t[0]*n,l[1]-t[1]*n)}a.zoom(null,e)}}))}function E(e,t,n){return!n&&e.__zooming||new S(e,t)}function S(e,t){this.that=e,this.args=t,this.active=0,this.sourceEvent=null,this.extent=i.apply(e,t),this.taps=0}function x(e,...t){if(r.apply(this,arguments)){var n=E(this,t).event(e),i=this.__zoom,s=Math.max(l[0],Math.min(l[1],i.k*Math.pow(2,a.apply(this,arguments)))),u=gN(e);if(n.wheel)n.mouse[0][0]===u[0]&&n.mouse[0][1]===u[1]||(n.mouse[1]=i.invert(n.mouse[0]=u)),clearTimeout(n.wheel);else{if(i.k===s)return;n.mouse=[u,i.invert(u)],JN(this),n.start()}UC(e),n.wheel=setTimeout(d,f),n.zoom("mouse",o(b(y(i,s),n.mouse[0],n.mouse[1]),n.extent,c))}function d(){n.wheel=null,n.end()}}function k(e,...t){if(!n&&r.apply(this,arguments)){var i=e.currentTarget,a=E(this,t,!0).event(e),s=oN(e.view).on("mousemove.zoom",h,!0).on("mouseup.zoom",p,!0),l=gN(e,i),u=e.clientX,d=e.clientY;lN(e.view),jC(e),a.mouse=[l,this.__zoom.invert(l)],JN(this),a.start()}function h(e){if(UC(e),!a.moved){var t=e.clientX-u,n=e.clientY-d;a.moved=t*t+n*n>m}a.event(e).zoom("mouse",o(b(a.that.__zoom,a.mouse[0]=gN(e,i),a.mouse[1]),a.extent,c))}function p(e){s.on("mousemove.zoom mouseup.zoom",null),cN(e.view,a.moved),UC(e),a.event(e).end()}}function A(e,...t){if(r.apply(this,arguments)){var n=this.__zoom,a=gN(e.changedTouches?e.changedTouches[0]:e,this),s=n.invert(a),l=n.k*(e.shiftKey?.5:2),d=o(b(y(n,l),a,s),i.apply(this,t),c);UC(e),u>0?oN(this).transition().duration(u).call(w,d,a,e):oN(this).call(v.transform,d,a,e)}}function N(n,...i){if(r.apply(this,arguments)){var o,a,s,l,c=n.touches,u=c.length,d=E(this,i,n.changedTouches.length===u).event(n);for(jC(n),a=0;a<u;++a)s=c[a],l=gN(s,this),l=[l,this.__zoom.invert(l),s.identifier],d.touch0?d.touch1||d.touch0[2]===l[2]||(d.touch1=l,d.taps=0):(d.touch0=l,o=!0,d.taps=1+!!e);e&&(e=clearTimeout(e)),o&&(d.taps<2&&(t=l[0],e=setTimeout((function(){e=null}),p)),JN(this),d.start())}}function T(e,...t){if(this.__zooming){var n,r,i,a,s=E(this,t).event(e),l=e.changedTouches,u=l.length;for(UC(e),n=0;n<u;++n)r=l[n],i=gN(r,this),s.touch0&&s.touch0[2]===r.identifier?s.touch0[0]=i:s.touch1&&s.touch1[2]===r.identifier&&(s.touch1[0]=i);if(r=s.that.__zoom,s.touch1){var d=s.touch0[0],h=s.touch0[1],p=s.touch1[0],f=s.touch1[1],m=(m=p[0]-d[0])*m+(m=p[1]-d[1])*m,g=(g=f[0]-h[0])*g+(g=f[1]-h[1])*g;r=y(r,Math.sqrt(m/g)),i=[(d[0]+p[0])/2,(d[1]+p[1])/2],a=[(h[0]+f[0])/2,(h[1]+f[1])/2]}else{if(!s.touch0)return;i=s.touch0[0],a=s.touch0[1]}s.zoom("touch",o(b(r,i,a),s.extent,c))}}function C(e,...r){if(this.__zooming){var i,o,a=E(this,r).event(e),s=e.changedTouches,l=s.length;for(jC(e),n&&clearTimeout(n),n=setTimeout((function(){n=null}),p),i=0;i<l;++i)o=s[i],a.touch0&&a.touch0[2]===o.identifier?delete a.touch0:a.touch1&&a.touch1[2]===o.identifier&&delete a.touch1;if(a.touch1&&!a.touch0&&(a.touch0=a.touch1,delete a.touch1),a.touch0)a.touch0[1]=this.__zoom.invert(a.touch0[0]);else if(a.end(),2===a.taps&&(o=gN(o,this),Math.hypot(t[0]-o[0],t[1]-o[1])<g)){var c=oN(this).on("dblclick.zoom");c&&c.apply(this,arguments)}}}return v.transform=function(e,t,n,r){var i=e.selection?e.selection():e;i.property("__zoom",HC),e!==i?w(e,t,n,r):i.interrupt().each((function(){E(this,arguments).event(r).start().zoom(null,"function"===typeof t?t.apply(this,arguments):t).end()}))},v.scaleBy=function(e,t,n,r){v.scaleTo(e,(function(){var e=this.__zoom.k,n="function"===typeof t?t.apply(this,arguments):t;return e*n}),n,r)},v.scaleTo=function(e,t,n,r){v.transform(e,(function(){var e=i.apply(this,arguments),r=this.__zoom,a=null==n?_(e):"function"===typeof n?n.apply(this,arguments):n,s=r.invert(a),l="function"===typeof t?t.apply(this,arguments):t;return o(b(y(r,l),a,s),e,c)}),n,r)},v.translateBy=function(e,t,n,r){v.transform(e,(function(){return o(this.__zoom.translate("function"===typeof t?t.apply(this,arguments):t,"function"===typeof n?n.apply(this,arguments):n),i.apply(this,arguments),c)}),null,r)},v.translateTo=function(e,t,n,r,a){v.transform(e,(function(){var e=i.apply(this,arguments),a=this.__zoom,s=null==r?_(e):"function"===typeof r?r.apply(this,arguments):r;return o(BC.translate(s[0],s[1]).scale(a.k).translate("function"===typeof t?-t.apply(this,arguments):-t,"function"===typeof n?-n.apply(this,arguments):-n),e,c)}),r,a)},S.prototype={event:function(e){return e&&(this.sourceEvent=e),this},start:function(){return 1===++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(e,t){return this.mouse&&"mouse"!==e&&(this.mouse[1]=t.invert(this.mouse[0])),this.touch0&&"touch"!==e&&(this.touch0[1]=t.invert(this.touch0[0])),this.touch1&&"touch"!==e&&(this.touch1[1]=t.invert(this.touch1[0])),this.that.__zoom=t,this.emit("zoom"),this},end:function(){return 0===--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(e){var t=oN(this.that).datum();h.call(e,this.that,new MC(e,{sourceEvent:this.sourceEvent,target:v,type:e,transform:this.that.__zoom,dispatch:h}),t)}},v.wheelDelta=function(e){return arguments.length?(a="function"===typeof e?e:PC(+e),v):a},v.filter=function(e){return arguments.length?(r="function"===typeof e?e:PC(!!e),v):r},v.touchable=function(e){return arguments.length?(s="function"===typeof e?e:PC(!!e),v):s},v.extent=function(e){return arguments.length?(i="function"===typeof e?e:PC([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),v):i},v.scaleExtent=function(e){return arguments.length?(l[0]=+e[0],l[1]=+e[1],v):[l[0],l[1]]},v.translateExtent=function(e){return arguments.length?(c[0][0]=+e[0][0],c[1][0]=+e[1][0],c[0][1]=+e[0][1],c[1][1]=+e[1][1],v):[[c[0][0],c[0][1]],[c[1][0],c[1][1]]]},v.constrain=function(e){return arguments.length?(o=e,v):o},v.duration=function(e){return arguments.length?(u=+e,v):u},v.interpolate=function(e){return arguments.length?(d=e,v):d},v.on=function(){var e=h.on.apply(h,arguments);return e===h?v:e},v.clickDistance=function(e){return arguments.length?(m=(e=+e)*e,v):Math.sqrt(m)},v.tapDistance=function(e){return arguments.length?(g=+e,v):g},v}$C.prototype=FC.prototype;const WC=e=>`<defs>\n\x3c!-- GIT REPO ICON --\x3e\n<svg id="git" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 96 96" style="enable-background:new 0 0 96 96" xml:space="preserve"><path class="st0" d="M92.138 43.888 52.018 3.77a5.918 5.918 0 0 0-8.369 0l-8.33 8.332L45.887 22.67a7.025 7.025 0 0 1 7.23 1.684 7.031 7.031 0 0 1 1.67 7.275l10.185 10.185a7.03 7.03 0 0 1 7.275 1.67 7.04 7.04 0 0 1 0 9.958 7.042 7.042 0 0 1-11.492-7.658l-9.5-9.499v24.997a7.09 7.09 0 0 1 1.861 1.331 7.042 7.042 0 1 1-7.65-1.537V35.849a7.04 7.04 0 0 1-3.822-9.234l-10.418-10.42-27.51 27.508a5.921 5.921 0 0 0 0 8.371l40.121 40.118a5.919 5.919 0 0 0 8.37 0l39.93-39.932a5.92 5.92 0 0 0 0-8.37z"/></svg>\n\x3c!-- GENERIC BUNDLE ICON --\x3e\n<svg id="bundle" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" fill="#FFF"><path d="M16 3.2C8.931 3.2 3.2 8.931 3.2 16S8.931 28.8 16 28.8 28.8 23.069 28.8 16 23.069 3.2 16 3.2zm0 22.4c-5.302 0-9.6-4.298-9.6-9.6s4.298-9.6 9.6-9.6 9.6 4.298 9.6 9.6a9.6 9.6 0 0 1-9.6 9.6z"/><path d="m24.086 16-6.232-1.348.917-1.424-1.424.917-1.348-6.232-1.348 6.232-1.424-.917.917 1.424L7.912 16l6.232 1.348-.917 1.424 1.424-.917 1.348 6.232 1.348-6.232 1.424.917-.917-1.424L24.086 16zM16 16.814a.814.814 0 1 1 0-1.628.814.814 0 0 1 0 1.628z"/></svg>\n\x3c!-- HELM BUNDLE ICON --\x3e\n<svg id="helm" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 500 500"><defs><style>.cls-1{fill:#fff}</style></defs><path class="cls-1" d="M136.53 121.135c-.573-.543-1.195-1.127-1.81-1.718-12.617-12.121-22.382-26.136-28.28-42.702-1.65-4.636-2.897-9.365-2.675-14.359.02-.473.02-.949.052-1.422.445-6.446 4.759-9.703 11.058-8.176a27.325 27.325 0 0 1 5.732 2.196c6.89 3.456 12.506 8.564 17.67 14.166A112.527 112.527 0 0 1 160 102.55a8.296 8.296 0 0 0 .39.86c.07.13.222.213.559.52a176.357 176.357 0 0 1 81.02-24.861c-.177-.876-.282-1.546-.448-2.2a112.494 112.494 0 0 1-2.653-36.957 84.075 84.075 0 0 1 4.445-21.764 31.326 31.326 0 0 1 5.476-10.17 15.687 15.687 0 0 1 3.164-2.822 7.026 7.026 0 0 1 8.032-.056 17.279 17.279 0 0 1 5.84 6.731 53.054 53.054 0 0 1 5.263 14.677 112.505 112.505 0 0 1 2.122 33.004 95.598 95.598 0 0 1-3.49 19.91c7.121 1.312 14.21 2.33 21.147 3.978a186.38 186.38 0 0 1 20.44 6.003 188.317 188.317 0 0 1 19.77 8.57c6.346 3.163 12.386 6.94 18.718 10.537.206-.433.505-.95.706-1.502a108.66 108.66 0 0 1 32.901-46.762 37.758 37.758 0 0 1 11.822-6.883 17.246 17.246 0 0 1 3.679-.845c6.264-.717 8.893 3.224 9.356 7.932a29.944 29.944 0 0 1-.774 10.354 87.906 87.906 0 0 1-10.73 24.688c-6.79 10.972-14.85 20.855-25.093 28.83-.302.236-.568.519-1.08.99a177.78 177.78 0 0 1 26.593 30.883 10.962 10.962 0 0 1-1.689.298c-10.595.015-21.19-.019-31.786.046a4.004 4.004 0 0 1-3.172-1.69 147.875 147.875 0 0 0-88.178-46.549 143.359 143.359 0 0 0-30.28-1.169 146.407 146.407 0 0 0-82.537 31.81 140.067 140.067 0 0 0-16.976 15.843 4.728 4.728 0 0 1-3.863 1.757c-10.121-.07-20.242-.035-30.363-.035h-2.152c.618-2.408 6.84-10.938 13.883-18.553 5.252-5.679 10.817-11.07 16.468-16.818ZM394.53 347.912a176.639 176.639 0 0 1-23.974 27.164l1.862 1.55a108.315 108.315 0 0 1 33.683 48.146 34.618 34.618 0 0 1 2.202 14.42 14.885 14.885 0 0 1-.748 3.692 7.208 7.208 0 0 1-8.157 5.023 22.233 22.233 0 0 1-6.763-2.006 51.232 51.232 0 0 1-9.182-5.815 107.592 107.592 0 0 1-32.936-46.707c-.187-.514-.392-1.02-.722-1.877a194.65 194.65 0 0 1-25.012 14.008 181.67 181.67 0 0 1-26.687 9.724 187.556 187.556 0 0 1-28.305 5.388c.168.84.265 1.51.438 2.16a109.172 109.172 0 0 1 2.97 36.442 80.804 80.804 0 0 1-4.422 22.478 78.25 78.25 0 0 1-4.165 8.744 13.39 13.39 0 0 1-2.339 2.971c-3.98 4.11-8.732 4.144-12.611-.074a27.28 27.28 0 0 1-3.907-5.617c-3.077-5.776-4.66-12.056-5.791-18.46a116.863 116.863 0 0 1-1.36-26.465 94.48 94.48 0 0 1 2.885-19.186c.14-.532.268-1.07.372-1.61.026-.137-.064-.297-.171-.738a176.121 176.121 0 0 1-80.969-24.994c-.41.91-.762 1.675-1.101 2.446a110.477 110.477 0 0 1-30.901 41.42 38.16 38.16 0 0 1-12.047 6.96 12.09 12.09 0 0 1-6.516.7 7.119 7.119 0 0 1-5.403-4.49c-1.416-3.424-1.165-6.985-.684-10.517a55.453 55.453 0 0 1 4.307-14.25 112.5 112.5 0 0 1 26.512-37.763c.459-.435.93-.857 1.38-1.3a3.76 3.76 0 0 0 .366-.655 178.905 178.905 0 0 1-28.47-31.317c.985-.08 1.644-.18 2.303-.18 10.514-.01 21.029.027 31.543-.044a4.706 4.706 0 0 1 3.703 1.626 146.946 146.946 0 0 0 39.403 28.885 139.947 139.947 0 0 0 49.704 14.774q70.68 6.87 121.6-42.854a7.646 7.646 0 0 1 5.992-2.444c9.802.121 19.605.05 29.408.05h2.534ZM350.736 197.762c2.787 0 5.47.189 8.115-.05 2.995-.271 5.139.8 7.323 2.813 12.613 11.622 25.357 23.1 38.059 34.627.638.58 1.29 1.144 2.11 1.87.764-.657 1.481-1.243 2.165-1.865q19.638-17.878 39.248-35.787a5.448 5.448 0 0 1 4.204-1.646c3.218.13 6.446.038 9.84.038V303.13c-1.722.504-24.875.604-27.638.061V249.83l-.537-.254-27.238 24.841-27.458-24.736-.524.192c-.023 4.454-.008 8.908-.01 13.362q-.005 6.64-.001 13.28v26.871h-27.428c-.514-1.773-.753-99.662-.23-105.623ZM97.634 197.882h27.264c.55 1.753.658 102.972.094 105.525H97.705c-.15-6.703-.048-13.384-.067-20.061-.018-6.623-.004-13.245-.004-20.04H63.847v39.741c-2.06.615-25.334.674-27.648.123V197.894h27.538v37.19c1.968.568 30.924.673 33.872.129.009-2.978.02-6.027.024-9.076q.007-4.744.001-9.487v-18.768ZM157.576 303.368V198.195c1.617-.53 61.545-.736 65.462-.205v22.414c-.879.063-1.786.184-2.693.185q-16.008.02-32.017.009h-2.968v17.433h33.347v23.192h-33.049c-.553 1.985-.705 15.817-.256 19.646.845.057 1.75.17 2.655.17q16.01.019 32.018.009h2.97v22.32ZM254.283 303.409c-.5-2.823-.4-103.602.097-105.518h27.162v77.765c1.172.06 2.092.149 3.011.15q16.128.014 32.256.006h2.908v27.597Z"/></svg>\n\x3c!-- RESOURCE DEPLOYMENT ICON --\x3e\n<svg id="deployment" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M24.01 20.027v2h-24v-2h4v-1a2.006 2.006 0 0 1-2-2v-10a2.006 2.006 0 0 1 2-2h1.996v2H4.01v10h16v-10h-2.004v-2h2.004a2.006 2.006 0 0 1 2 2l-.01 10a1.997 1.997 0 0 1-1.99 2v1Zm-9-6.012-3-3-3 3h2v2.01h2v-2.01Zm.995-7.991a4 4 0 1 1-4-4 4.001 4.001 0 0 1 4 4Zm-4.4 2.96v-.56a.802.802 0 0 1-.8-.8v-.4L9.06 5.479a2.958 2.958 0 0 0 2.545 3.505Zm2.658-1.007a2.977 2.977 0 0 0-1.068-4.704.797.797 0 0 1-.79.75h-.8v.8a.401.401 0 0 1-.4.4h-.8v.8h2.4a.401.401 0 0 1 .4.4v1.2h.4a.787.787 0 0 1 .658.354Z" fill="#fff"/></svg>\n\x3c!-- NODE ICON --\x3e\n<svg id="node" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="#fff"><circle cx="12" cy="3" r="1"/><circle cx="20" cy="8" r="1"/><circle cx="20" cy="16" r="1"/><circle cx="4" cy="8" r="1"/><circle cx="4" cy="16" r="1"/><path d="M20 14v-4a1.992 1.992 0 0 1-1.481-3.333l-4.783-2.69a1.983 1.983 0 0 1-3.472 0l-4.783 2.69A1.992 1.992 0 0 1 4 10v4a1.992 1.992 0 0 1 1.481 3.333l4.783 2.69a1.991 1.991 0 0 1 1.236-.952v-5.142a2 2 0 1 1 1 0v5.142a1.991 1.991 0 0 1 1.236.953l4.783-2.69A1.992 1.992 0 0 1 20 14Z"/><circle cx="12" cy="21" r="1"/><circle cx="12" cy="12" r="1"/></g></svg>\n\x3c!-- RESOURCE OTHER ICON --\x3e\n<svg id="other" xmlns="http://www.w3.org/2000/svg" width="32" height="32" fill="#FFF"><path d="M27.476 10.22H14.83l-1.558-3.115a1.327 1.327 0 0 0-1.184-.732H4.522c-.731 0-1.324.593-1.324 1.324v16.606c0 .731.593 1.324 1.324 1.324h22.953c.731 0 1.324-.593 1.324-1.324v-12.76c0-.731-.593-1.324-1.324-1.324z"/></svg>\n</defs>\n<use id="customIcon" href="#${e}" fill="#fff" />`;var YC={name:"ForceDirectedTreeChart",components:{BadgeState:yh.j},props:{data:{type:[Array,Object],required:!0},fdcConfig:{type:Object,required:!0}},data(){return{dataWatcher:void 0,parsedInfo:void 0,root:void 0,allNodesData:void 0,allLinks:void 0,rootNode:void 0,node:void 0,link:void 0,svg:void 0,zoom:void 0,simulation:void 0,isChartFirstRendered:!1,isChartFirstRenderAnimationFinished:!1,moreInfo:{}}},methods:{watcherFunction(e){if(e.length)if(this.isChartFirstRendered){const e=this.fdcConfig.parseData(this.data),t=this.flatten(e);let n=!1;t.forEach((e=>{const t=this.allNodesData.findIndex((t=>e.matchingId===t.data.matchingId));t>-1&&this.allNodesData[t].data.state!==e.state&&(this.allNodesData[t].data.state=e.state,this.allNodesData[t].data.stateLabel=e.stateLabel,this.allNodesData[t].data.stateColor=e.stateColor,n=!0,this.allNodesData[t].data.active&&this.setDetailsInfo(this.allNodesData[t].data,!1))})),n&&this.updateChart(!1,!1)}else this.parsedInfo=this.fdcConfig.parseData(this.data),this.setDetailsInfo(this.parsedInfo,!1),this.parsedInfo.active=!0,this.renderChart(),this.updateChart(!0,!0),this.isChartFirstRendered=!0},renderChart(){this.zoom=qC().scaleExtent([1/8,16]).on("zoom",this.zoomed);const e=BC.scale(1).translate(0,0);this.rootNode=this.svg.append("g").attr("class","root-node"),this.svg.call(this.zoom),this.svg.call(this.zoom.transform,e),this.simulation=uE().force("charge",dE().strength(this.fdcConfig.simulationParams.fdcStrength).distanceMax(this.fdcConfig.simulationParams.fdcDistanceMax)).force("collision",kw(this.fdcConfig.simulationParams.fdcForceCollide)).force("center",J_(this.fdcConfig.chartWidth/2,this.fdcConfig.chartHeight/2)).alphaDecay(this.fdcConfig.simulationParams.fdcAlphaDecay).on("tick",this.ticked).on("end",(()=>{this.isChartFirstRenderAnimationFinished||(this.zoomFit(),this.isChartFirstRenderAnimationFinished=!0)}))},updateChart(e,t){e&&(this.root=NE(this.parsedInfo)),t&&(this.allNodesData=this.flatten(this.root),this.allLinks=this.root.links()),this.link=this.rootNode.selectAll(".link").data(this.allLinks,(e=>e.target.id)),this.link.exit().remove();const n=this.link.enter().append("line").attr("class","link").style("opacity","0.2").style("stroke-width",4);this.link=n.merge(this.link),this.node=this.rootNode.selectAll(".node").data(this.allNodesData,(e=>e.id)).attr("class",this.mainNodeClass),this.node.exit().remove();const r=this.node.enter().append("g").attr("class",this.mainNodeClass).style("opacity",1).on("click",((e,t)=>{this.setDetailsInfo(t.data,!0)})).call(Q_().on("start",this.dragStarted).on("drag",this.dragging).on("end",this.dragEnded));r.append("circle").attr("r",this.setNodeRadius),r.append("circle").attr("r",(e=>this.setNodeRadius(e)-5)).attr("class","node-hover-layer"),r.append("svg").html((e=>{const t=this.fdcConfig.fetchNodeIcon(e);return WC(t)})).attr("x",this.nodeImagePosition).attr("y",this.nodeImagePosition).attr("height",this.nodeImageSize).attr("width",this.nodeImageSize),this.node=r.merge(this.node),this.simulation.nodes(this.allNodesData),this.simulation.force("link",Tw().id((e=>e.id)).distance(100).links(this.allLinks))},mainNodeClass(e){const t=e.data?.state?e.data.state.toLowerCase():"unkown_status",n=["node"];_h.xj[t]&&_h.xj[t].color?n.push(`node-${_h.xj[t].color}`):n.push("node-default-fill"),e.data?.active&&n.push("active");const r=this.fdcConfig.extendNodeClass(e).concat(n);return r.join(" ")},setNodeRadius(e){const{radius:t}=this.fdcConfig.nodeDimensions(e);return t},nodeImageSize(e){const{size:t}=this.fdcConfig.nodeDimensions(e);return t},nodeImagePosition(e){const{position:t}=this.fdcConfig.nodeDimensions(e);return t},setDetailsInfo(e,t){this.moreInfo=Object.assign([],this.fdcConfig.infoDetails(e)),t&&(this.allNodesData.forEach(((t,n)=>{t.data.matchingId===e.matchingId?this.allNodesData[n].data.active=!0:this.allNodesData[n].data.active=!1})),this.updateChart(!1,!1))},zoomFit(){const e=M_(".root-node"),t=30,n=e.node().getBoundingClientRect(),r=e.node().getBBox(),i=e.node().parentElement,o=i.clientWidth,a=i.clientHeight,s=n.width,l=n.height,c=r.x+s/2,u=r.y+l/2;if(0===s||0===l)return;const d=1/Math.max(s/(o-t),l/(a-t)),h=[o/2-d*c,a/2-d*u],p=BC.translate(h[0],h[1]).scale(d);this.svg.call(this.zoom.transform,p)},ticked(){this.link.attr("x1",(e=>e.source.x)).attr("y1",(e=>e.source.y)).attr("x2",(e=>e.target.x)).attr("y2",(e=>e.target.y)),this.node.attr("transform",(e=>`translate(${e.x}, ${e.y})`))},dragStarted(e,t){e.active||this.simulation.alphaTarget(.3).restart(),t.fx=t.x,t.fy=t.y},dragging(e,t){t.fx=e.x,t.fy=e.y},dragEnded(e,t){e.active||this.simulation.alphaTarget(0),t.fx=void 0,t.fy=void 0},zoomed(e){this.rootNode.attr("transform",e.transform)},flatten(e){const t=[];let n=0;function r(e){e.children&&e.children.forEach(r),e.id?++n:e.id=++n,t.push(e)}return r(e),t}},mounted(){this.svg=M_("#tree").append("svg").attr("viewBox",`0 0 ${this.fdcConfig.chartWidth} ${this.fdcConfig.chartHeight}`).attr("preserveAspectRatio","none"),this.dataWatcher=this.$watch(this.fdcConfig.watcherProp,(function(e){this.watcherFunction(e)}),{deep:!0,immediate:!0})},unmounted(){this.dataWatcher()}};o(61159);const QC=(0,u.A)(YC,[["render",dp]]);var JC=QC;o(98983),o(93786),o(9776);const ZC=(e,t)=>{const n={};for(const[r,i]of Object.entries(e)){const e=t.getters[`${i.inStoreType}/schemaFor`](i.type),o=i.schemaValidator?i.schemaValidator(e):!!e;o&&(n[r]=t.dispatch(`${i.inStoreType}/findAll`,{type:i.type,opt:i.opt}))}return(0,ve.kR)(n)};var eR=o(71898);function tR(e){return e.query?.mode===yd.HC?yd.HC:e.params?.id?e.query.mode||yd.nW:yd.YQ}async function nR(e,t){let n;const r={headers:{accept:"application/yaml"}};return t.hasLink("view")&&(n=(await t.followLink("view",r)).data),t.cleanForDownload(n)}var rR={emits:["input"],components:{Loading:Fe.A,DetailTop:Qh,ForceDirectedTreeChart:JC,ResourceYaml:Hd.A,Masthead:Ah,IconMessage:gu,Banner:kd.l},mixins:[Kd.A],props:{storeOverride:{type:String,default:null},resourceOverride:{type:String,default:null},parentRouteOverride:{type:String,default:null},componentTestid:{type:String,default:"resource-details"},errorsMap:{type:Object,default:null}},async fetch(){const e=this.$store,t=this.$route,n=t.params;let r=this.resourceOverride||n.resource;const i=this.storeOverride||e.getters["currentStore"](r),o=this.realMode;let{namespace:a,id:s}=n;const l=[yd.dT,yd.HC,yd.wZ].includes(o)?yd.YQ:o,c=e.getters["type-map/hasGraph"](r),u=!!c,d=e.getters["type-map/hasCustomDetail"](r,s),h=e.getters["type-map/hasCustomEdit"](r,s),p=e.getters[`${i}/all`](X.yx),f=t.query[yd.AS];let m,g=!1;m=l!==yd.nW||!d||f&&f!==yd.fS?l===yd.nW&&u&&f===yd.Yq?yd.Yq:!h||f&&f!==yd.au?yd.zD:yd.au:yd.fS,this.as=m;const v=e.getters["type-map/optionsFor"](r);this.showMasthead=![yd.YQ,yd.G5].includes(l)||v.resourceEditMasthead;const y=v.canYaml;v.resource&&(r=v.resource);const b=e.getters[`${i}/schemaFor`](r);let _,w,E,S;if(o===yd.YQ||o===yd.HC){a||(a=e.getters["defaultNamespace"]);const t={type:r};b?.attributes?.namespaced&&(t.metadata={namespace:a}),E=await e.dispatch(`${i}/create`,t),w=await e.dispatch(`${i}/clone`,{resource:E}),_=await e.dispatch(`${i}/clone`,{resource:E}),!0===_.forceYaml&&(m=yd.zD,this.as=m),m===yd.zD&&(b?.fetchResourceFields&&await b.fetchResourceFields(),S=(0,Ac.mH)(p,r,t))}else{if(m===yd.Yq){const e=await ZC({cluster:{inStoreType:"management",type:X.Hs.CLUSTER},bundle:{inStoreType:"management",type:X.Hs.BUNDLE,opt:{excludeFields:["metadata.managedFields","spec.resources"]}},bundleDeployment:{inStoreType:"management",type:X.Hs.BUNDLE_DEPLOYMENT}},this.$store);this.canViewChart=e.cluster&&e.bundle&&e.bundleDeployment}let t=s;b.attributes?.namespaced&&a&&(t=`${a}/${t}`);try{E=await e.dispatch(`${i}/find`,{type:r,id:t,opt:{watch:!0}})}catch(Xs){404!==Xs.status&&403!==Xs.status||e.dispatch("loadingError",new Error(this.t("nav.failWhale.resourceIdNotFound",{resource:r,fqid:t},!0))),E={},g=t}try{_=o===yd.nW?E:await e.dispatch(`${i}/clone`,{resource:E}),w=await e.dispatch(`${i}/clone`,{resource:E}),m===yd.zD&&(S=await nR(this.$store,E))}catch(Xs){this.errors.push(Xs)}if(m===yd.zD)try{S=await nR(this.$store,E)}catch(Xs){this.errors.push(Xs)}m===yd.Yq&&(this.chartData=E),[yd.dT,yd.HC,yd.wZ].includes(o)&&(_.cleanForNew(),S=_.cleanYaml(S,o))}try{_=await e.dispatch(`${i}/cleanForDetail`,_)}catch(Xs){this.errors.push(Xs)}const x={hasGraph:u,getGraphConfig:c,hasCustomDetail:d,hasCustomEdit:h,canViewYaml:y,resourceType:r,as:m,yaml:S,initialModel:w,liveModel:E,mode:l,value:_,notFound:g};for(const k in x)this[k]=x[k];this.mode===yd.YQ&&this.value.applyDefaults(this,o)},data(){return{chartData:null,resourceSubtype:null,hasGraph:null,hasCustomDetail:null,hasCustomEdit:null,resourceType:null,asYaml:null,yaml:null,liveModel:null,initialModel:null,mode:null,as:null,value:null,model:null,notFound:null,canViewChart:!0,canViewYaml:null,errors:[]}},computed:{realMode(){const e=tR(this.$route);return e},isView(){return this.mode===yd.nW},isYaml(){return this.as===yd.zD},isDetail(){return this.as===yd.fS},isGraph(){return this.as===yd.Yq},offerPreview(){return this.as===yd.zD&&[yd.G5,yd.dT,yd.HC,yd.wZ].includes(this.mode)},showComponent(){switch(this.as){case yd.fS:return this.detailComponent;case yd.au:return this.editComponent}return null},hasErrors(){return this.errors?.length&&Array.isArray(this.errors)},mappedErrors(){return this.errors?this.errorsMap||this.errors.reduce(((e,t)=>({...e,[t]:{message:t?.data?.message||t,icon:null}})),{}):{}}},watch:{$route(e,t){if(e.name!==t.name)return;const n=(0,Qc.o8)(e.query),r=(0,Qc.o8)(t.query);delete n[yd.$y],delete r[yd.$y],this.isView||(delete n[yd.AS],delete r[yd.AS]);const i=Object.keys((0,Qc.Ui)(n,r));(i.includes(yd.g)||i.includes(yd.AS))&&this.$fetch()},async"value.metadata.resourceVersion"(e,t){this.mode===yd.nW&&this.as===yd.zD&&e&&t&&e!==t&&(this.yaml=await nR(this.$store,this.liveModel))}},created(){const e=this.$route.params.id,t=this.resourceOverride||this.$route.params.resource,n=this.$store.getters["type-map/optionsFor"](t),r=n.resourceDetail||n.resource||t,i=n.resourceEdit||n.resource||t;this.detailComponent=this.$store.getters["type-map/importDetail"](r,e),this.editComponent=this.$store.getters["type-map/importEdit"](i,e)},methods:{stringify:eR.As,setSubtype(e){this.resourceSubtype=e},keyAction(e){const t=this.liveModel;t?.[e]&&t[e]()},closeError(e){this.errors=this.errors.filter(((t,n)=>n!==e))}}};o(50096);const iR=(0,u.A)(rR,[["render",Vd],["__scopeId","data-v-616baa75"]]);var oR=iR,aR={name:"HarvesterResourceCreate",components:{ResourceDetail:oR}};const sR=(0,u.A)(aR,[["render",Pd]]);var lR=sR;function cR(e,t,n,r,o,a){const s=(0,i.resolveComponent)("ResourceDetail");return(0,i.openBlock)(),(0,i.createBlock)(s)}var uR={name:"HarvesterResourcedId",components:{ResourceDetail:oR}};const dR=(0,u.A)(uR,[["render",cR]]);var hR=dR;function pR(e,t,n,r,o,a){const s=(0,i.resolveComponent)("ResourceDetail");return(0,i.openBlock)(),(0,i.createBlock)(s)}var fR={name:"HarvesterResourcedNamespaceId",components:{ResourceDetail:oR}};const mR=(0,u.A)(fR,[["render",pR]]);var gR=mR;const vR={key:0,id:"air-gap"},yR={class:"mb-20"},bR={key:0},_R={key:2,class:"chooseFile"};function wR(e,t,n,r,o,a){const s=(0,i.resolveComponent)("RadioGroup"),l=(0,i.resolveComponent)("UpgradeInfo"),c=(0,i.resolveComponent)("LabeledInput"),u=(0,i.resolveComponent)("Checkbox"),d=(0,i.resolveComponent)("LabeledSelect"),h=(0,i.resolveComponent)("CruResource");return o.value?((0,i.openBlock)(),(0,i.createElementBlock)("div",vR,[(0,i.createElementVNode)("h3",yR,(0,i.toDisplayString)(e.t("harvester.upgradePage.osUpgrade")),1),(0,i.createVNode)(h,{"done-route":a.doneRoute,resource:o.value,mode:"create",errors:o.errors,"can-yaml":!1,"finish-button-mode":"upgrade","cancel-event":!0,onFinish:a.save,onCancel:a.done},{default:(0,i.withCtx)((()=>[(0,i.createVNode)(s,{value:o.imageSource,"onUpdate:value":t[0]||(t[0]=e=>o.imageSource=e),class:"image-group",name:"image",options:[o.IMAGE_METHOD.NEW,o.IMAGE_METHOD.EXIST],labels:[e.t("harvester.upgradePage.uploadNew"),e.t("harvester.upgradePage.selectExisting")]},null,8,["value","options","labels"]),(0,i.createVNode)(l),a.uploadImage?((0,i.openBlock)(),(0,i.createElementBlock)("div",bR,[(0,i.createVNode)(c,{modelValue:o.imageValue.spec.displayName,"onUpdate:modelValue":t[1]||(t[1]=e=>o.imageValue.spec.displayName=e),modelModifiers:{trim:!0},class:"mb-20","label-key":"harvester.fields.name",required:""},null,8,["modelValue"]),(0,i.createVNode)(c,{value:o.imageValue.spec.checksum,"onUpdate:value":t[2]||(t[2]=e=>o.imageValue.spec.checksum=e),class:"mb-10","label-key":"harvester.setting.upgrade.checksum"},null,8,["value"]),a.canEnableLogging?((0,i.openBlock)(),(0,i.createBlock)(u,{key:0,value:o.enableLogging,"onUpdate:value":t[3]||(t[3]=e=>o.enableLogging=e),class:"check mb-20",type:"checkbox",label:e.t("harvester.upgradePage.enableLogging")},null,8,["value","label"])):(0,i.createCommentVNode)("",!0),(0,i.createVNode)(s,{value:o.sourceType,"onUpdate:value":t[4]||(t[4]=e=>o.sourceType=e),class:"mb-20 image-group",name:"sourceType",options:["upload","download"],labels:[e.t("harvester.image.sourceType.upload"),e.t("harvester.image.sourceType.download")]},null,8,["value","labels"]),"download"===o.sourceType?((0,i.openBlock)(),(0,i.createBlock)(c,{key:1,modelValue:o.imageValue.spec.url,"onUpdate:modelValue":t[5]||(t[5]=e=>o.imageValue.spec.url=e),modelModifiers:{trim:!0},class:"labeled-input--tooltip",required:"","label-key":"harvester.image.url"},null,8,["modelValue"])):((0,i.openBlock)(),(0,i.createElementBlock)("div",_R,[(0,i.createElementVNode)("button",{type:"button",class:"btn role-primary",onClick:t[7]||(t[7]=(...e)=>a.selectFile&&a.selectFile(...e))},[(0,i.createTextVNode)((0,i.toDisplayString)(e.t("harvester.image.uploadFile"))+" ",1),(0,i.withDirectives)((0,i.createElementVNode)("input",{id:"file",ref:"file",type:"file",accept:".iso",onChange:t[6]||(t[6]=e=>a.handleFileUpload())},null,544),[[i.vShow,!1]])]),(0,i.createElementVNode)("span",{class:(0,i.normalizeClass)([{"text-muted":!a.fileName},"ml-20"])},(0,i.toDisplayString)(a.fileName?a.fileName:e.t("harvester.generic.noFileChosen")),3)]))])):((0,i.openBlock)(),(0,i.createBlock)(d,{key:1,value:o.imageId,"onUpdate:value":t[8]||(t[8]=e=>o.imageId=e),options:a.osImageOptions,required:"",class:"mb-20","label-key":"harvester.fields.image"},null,8,["value","options"]))])),_:1},8,["done-route","resource","errors","onFinish","onCancel"])])):(0,i.createCommentVNode)("",!0)}var ER=o(66210),SR=o(83328),xR=o(70052),kR=o(2602),AR=o(91806);const NR={NEW:"new",EXIST:"exist"},TR="download",CR="upload";var RR={name:"HarvesterAirgapUpgrade",components:{Checkbox:Sd.S,CruResource:ER.A,LabeledSelect:xR.A,LabeledInput:dd.o,RadioGroup:SR.z,UpgradeInfo:AR.A},inheritAttrs:!1,async fetch(){await this.$store.dispatch("harvester/findAll",{type:l.rk.IMAGE});const e=await this.$store.dispatch("harvester/create",{type:l.rk.UPGRADE,metadata:{generateName:"hvst-upgrade-",namespace:"harvester-system"},spec:{image:""}}),t=await this.$store.dispatch("harvester/create",{type:l.rk.IMAGE,metadata:{name:"",namespace:"harvester-system",generateName:"image-",annotations:{}},spec:{sourceType:CR,displayName:"",checksum:""}});this.value=e,this.imageValue=t},data(){return{value:null,file:{},imageId:"",imageSource:NR.NEW,sourceType:CR,imageValue:null,errors:[],enableLogging:!0,IMAGE_METHOD:NR}},computed:{doneRoute(){return`${r.KR}-c-cluster-resource`},osImageOptions(){return this.$store.getters["harvester/all"](l.rk.IMAGE).filter((e=>e.isOSImage)).map((e=>({label:e.spec.displayName,value:e.id,disabled:!e.isReady})))},uploadImage(){return this.imageSource===NR.NEW},fileName(){return this.file?.name||""},canEnableLogging(){return this.$store.getters["harvester/schemaFor"](l.rk.UPGRADE_LOG)}},methods:{done(){this.$router.push({name:this.doneRoute,params:{resource:l.rk.SETTING,product:"harvester"}})},async save(e){let t=null;if(this.errors=[],!this.imageValue.spec.displayName&&this.uploadImage)return this.errors.push(this.$store.getters["i18n/t"]("validation.required",{key:this.t("generic.name")})),void e(!1);try{if(this.imageSource===NR.NEW){if(this.imageValue.metadata.annotations[kR.r.OS_UPGRADE_IMAGE]="True",this.sourceType===CR){this.imageValue.spec.sourceType=CR;const n=this.file;if(!n.name)return this.errors.push(this.$store.getters["i18n/t"]("harvester.setting.upgrade.selectExitImage")),void e(!1);this.imageValue.spec.url="",this.imageValue.metadata.annotations[kR.r.IMAGE_NAME]=n.name,t=await this.imageValue.save(),t.uploadImage(n)}else if(this.sourceType===TR){if(this.imageValue.spec.sourceType=TR,!this.imageValue.spec.url)return this.errors.push(this.$store.getters["i18n/t"]("harvester.setting.upgrade.imageUrl")),void e(!1);t=await this.imageValue.save()}this.value.spec.image=t.id}else if(this.imageSource===NR.EXIST){if(!this.imageId)return void this.errors.push(this.$store.getters["i18n/t"]("harvester.setting.upgrade.chooseFile"));this.value.spec.image=this.imageId}this.canEnableLogging&&(this.value.spec.logEnabled=this.enableLogging),await this.value.save(),this.done(),e(!0)}catch(Xs){this.errors=(0,eR.rz)(Xs),e(!1)}},handleFileUpload(){this.file=this.$refs.file.files[0]},selectFile(){this.$refs.file.value=null,this.$refs.file.click()}},watch:{"imageValue.spec.url":{handler(e){const t=e?.split("/")?.pop(),n=t?.split(".")||[],r=n?.pop()?.toLowerCase();n.length>1&&"iso"===r&&!this.imageValue.spec.displayName&&(this.imageValue.spec.displayName=t)},deep:!0},file(e){!this.imageValue.spec.displayName&&e.name&&(this.imageValue.spec.displayName=e.name)}}};o(74811);const OR=(0,u.A)(RR,[["render",wR],["__scopeId","data-v-f88eec4a"]]);var IR=OR;function DR(e,t,n,r,o,a){const s=(0,i.resolveComponent)("Members");return(0,i.openBlock)(),(0,i.createBlock)(s,(0,i.mergeProps)({"create-location-override":a.createLocationOverride},e.$attrs),null,16,["create-location-override"])}const LR={class:"project-members"},PR={key:0,class:"row mb-10 cluster-add"};function MR(e,t,n,r,o,a){const s=(0,i.resolveComponent)("Masthead"),l=(0,i.resolveComponent)("Banner"),c=(0,i.resolveComponent)("router-link"),u=(0,i.resolveComponent)("ResourceTable"),d=(0,i.resolveComponent)("Tab"),h=(0,i.resolveComponent)("Tabbed");return(0,i.openBlock)(),(0,i.createElementBlock)("div",LR,[(0,i.createVNode)(s,{schema:o.schema,resource:o.resource,"favorite-resource":o.VIRTUAL_TYPES.CLUSTER_MEMBERS,"create-location":o.createLocation,"create-button-label":e.t("members.createActionLabel"),"is-creatable":!1,"type-display":e.t("members.clusterAndProject")},null,8,["schema","resource","favorite-resource","create-location","create-button-label","type-display"]),a.isLocal?((0,i.openBlock)(),(0,i.createBlock)(l,{key:0,color:"error",label:e.t("members.localClusterWarning")},null,8,["label"])):(0,i.createCommentVNode)("",!0),(0,i.createVNode)(h,null,{default:(0,i.withCtx)((()=>[(0,i.createVNode)(d,{name:"cluster-membership",label:e.t("members.clusterMembership")},{default:(0,i.withCtx)((()=>[a.canEditClusterMembers?((0,i.openBlock)(),(0,i.createElementBlock)("div",PR,[(0,i.createVNode)(c,{to:o.createLocation,class:"btn role-primary pull-right"},{default:(0,i.withCtx)((()=>[(0,i.createTextVNode)((0,i.toDisplayString)(e.t("members.createActionLabel")),1)])),_:1},8,["to"])])):(0,i.createCommentVNode)("",!0),(0,i.createVNode)(u,{schema:o.schema,headers:o.headers,rows:a.filteredClusterRoleTemplateBindings,groupable:!0,"show-grouping":!0,namespaced:!1,loading:e.$fetchState.pending||!e.currentCluster||o.loadingClusterBindings,"sub-search":"subSearch","sub-fields":["nameDisplay"]},null,8,["schema","headers","rows","loading"])])),_:1},8,["label"])])),_:1})])}var FR=o(35244),BR=o(12327),$R={name:"Members",components:{Banner:Yl.A,Masthead:bc.A,ResourceTable:yc.A,Tabbed:FR.A,Tab:BR.A},props:{createLocationOverride:{type:Object,default:()=>({name:"c-cluster-product-resource-create",params:{resource:X.Mc.CLUSTER_ROLE_TEMPLATE_BINDING}})}},async fetch(){const e=this.$store.getters["rancher/schemaFor"](X.k$.CLUSTER_ROLE_TEMPLATE_BINDING),t=this.$store.getters["rancher/schemaFor"](X.k$.PROJECT_ROLE_TEMPLATE_BINDING);this["normanClusterRTBSchema"]=e,this["normanProjectRTBSchema"]=t,e&&Promise.all([this.$store.dispatch("rancher/findAll",{type:X.k$.CLUSTER_ROLE_TEMPLATE_BINDING},{root:!0}),this.$store.dispatch("management/findAll",{type:X.Mc.CLUSTER_ROLE_TEMPLATE_BINDING})]).then((([e])=>{this["normanClusterRoleTemplateBindings"]=e,this.loadingClusterBindings=!1})),t&&this.$store.dispatch("rancher/findAll",{type:X.k$.PROJECT_ROLE_TEMPLATE_BINDING},{root:!0}).then((e=>{this["projectRoleTemplateBindings"]=e,this.loadingProjectBindings=!1}));const n={normanPrincipals:this.$store.dispatch("rancher/findAll",{type:X.k$.PRINCIPAL}),mgmt:this.$store.dispatch("management/findAll",{type:X.Mc.USER}),mgmtRoleTemplates:this.$store.dispatch("management/findAll",{type:X.Mc.ROLE_TEMPLATE})};await(0,ve.kR)(n)},data(){return{schema:this.$store.getters["management/schemaFor"](X.Mc.CLUSTER_ROLE_TEMPLATE_BINDING),headers:[bh.c4,bh.nv,bh.z7,bh.K],createLocation:{...this.createLocationOverride,params:{...this.createLocationOverride.params,cluster:this.$store.getters["currentCluster"].id}},resource:X.Mc.CLUSTER_ROLE_TEMPLATE_BINDING,normanClusterRTBSchema:null,normanProjectRTBSchema:null,normanClusterRoleTemplateBindings:[],projectRoleTemplateBindings:[],VIRTUAL_TYPES:X.cG,projectRoleTemplateColumns:[bh.c4,{name:"member",labeKey:"generic.name",value:"principalId",formatter:"Principal"},{name:"role",labelKey:"tableHeaders.role",value:"roleTemplate.nameDisplay"}],loadingProjectBindings:!0,loadingClusterBindings:!0}},computed:{...(0,P.L8)(["currentCluster"]),clusterRoleTemplateBindings(){return this.normanClusterRoleTemplateBindings.map((e=>e.clusterroletemplatebinding))},filteredClusterRoleTemplateBindings(){return this.clusterRoleTemplateBindings.filter((e=>e?.clusterName===this.$store.getters["currentCluster"].id))},isLocal(){return this.$store.getters["currentCluster"].isLocal},canEditClusterMembers(){return this.normanClusterRTBSchema?.collectionMethods.find((e=>"post"===e.toLowerCase()))}}};o(32464);const jR=(0,u.A)($R,[["render",MR],["__scopeId","data-v-fa2c9f40"]]);var UR=jR,VR={components:{Members:UR},inheritAttrs:!1,computed:{createLocationOverride(){return{name:`${r.KR}-c-cluster-resource-create`,params:{product:r.KR,cluster:this.$store.getters["currentCluster"]?.id,resource:X.Mc.CLUSTER_ROLE_TEMPLATE_BINDING}}}}};const KR=(0,u.A)(VR,[["render",DR]]);var HR=KR;function GR(e,t,n,r,o,a){const s=(0,i.resolveComponent)("ExplorerProjectsNamespaces");return(0,i.openBlock)(),(0,i.createBlock)(s,(0,i.mergeProps)(e.$attrs,{"create-project-location-override":o.createProjectLocation,"create-namespace-location-override":o.createNamespaceLocation}),null,16,["create-project-location-override","create-namespace-location-override"])}const zR={class:"project-namespaces outlet"},XR={class:"group-tab"},qR={class:"project-name"},WR={key:0,class:"description text-muted text-small"},YR={class:"right"},QR={key:0},JR={key:1,class:"text-muted"},ZR={class:"namespace-name"},eO={key:1},tO={key:2,class:"icon icon-istio ml-5"},nO={key:3,class:"icon icon-lock ml-5"},rO={class:"main-row"},iO=["colspan"],oO={class:"main-row"},aO=["colspan"];function sO(e,t,n,r,o,a){const s=(0,i.resolveComponent)("router-link"),l=(0,i.resolveComponent)("Masthead"),c=(0,i.resolveComponent)("ExtensionPanel"),u=(0,i.resolveComponent)("ButtonMultiAction"),d=(0,i.resolveComponent)("ResourceTable"),h=(0,i.resolveComponent)("MoveModal"),p=(0,i.resolveDirective)("clean-html"),f=(0,i.resolveDirective)("trim-whitespace"),m=(0,i.resolveDirective)("clean-tooltip");return(0,i.openBlock)(),(0,i.createElementBlock)("div",zR,[(0,i.createVNode)(l,{schema:o.projectSchema,"type-display":e.t("projectNamespaces.label"),resource:o.MANAGEMENT.PROJECT,"favorite-resource":o.VIRTUAL_TYPES.PROJECT_NAMESPACES,"create-location":a.createProjectLocation,"create-button-label":e.t("projectNamespaces.createProject"),"show-incremental-loading-indicator":a.showIncrementalLoadingIndicator,"load-resources":o.loadResources,"load-indeterminate":o.loadIndeterminate},(0,i.createSlots)({_:2},[a.showCreateNsButton?{name:"extraActions",fn:(0,i.withCtx)((()=>[(0,i.createVNode)(s,{to:a.createNamespaceLocationFlatList(),class:"btn role-primary mr-10","data-testid":"create_project_namespaces"},{default:(0,i.withCtx)((()=>[(0,i.createTextVNode)((0,i.toDisplayString)(e.t("projectNamespaces.createNamespace")),1)])),_:1},8,["to"])])),key:"0"}:void 0]),1032,["schema","type-display","resource","favorite-resource","create-location","create-button-label","show-incremental-loading-indicator","load-resources","load-indeterminate"]),(0,i.createVNode)(c,{resource:{},type:o.extensionType,location:o.extensionLocation},null,8,["type","location"]),(0,i.createVNode)(d,(0,i.mergeProps)({ref:"table"},{...e.$attrs,class:null},{class:"table project-namespaces-table",schema:o.schema,headers:a.headers,rows:a.filteredRows,groupable:!0,"sort-generation-fn":a.sortGenerationFn,loading:a.loading,"group-tooltip":"resourceTable.groupBy.project","key-field":"_key"}),(0,i.createSlots)({"group-by":(0,i.withCtx)((t=>[(0,i.createElementVNode)("div",{class:(0,i.normalizeClass)(["project-bar",{"has-description":a.projectDescription(t.group)}])},[(0,i.withDirectives)(((0,i.openBlock)(),(0,i.createElementBlock)("div",XR,[(0,i.withDirectives)((0,i.createElementVNode)("div",qR,null,512),[[p,a.projectLabel(t.group)]]),a.projectDescription(t.group)?((0,i.openBlock)(),(0,i.createElementBlock)("div",WR,(0,i.toDisplayString)(a.projectDescription(t.group)),1)):(0,i.createCommentVNode)("",!0)])),[[f]]),(0,i.createElementVNode)("div",YR,[a.isNamespaceCreatable&&(a.canSeeProjectlessNamespaces||t.group.key!==a.notInProjectKey)?((0,i.openBlock)(),(0,i.createBlock)(s,{key:0,class:"create-namespace btn btn-sm role-secondary mr-5",to:a.createNamespaceLocation(t.group)},{default:(0,i.withCtx)((()=>[(0,i.createTextVNode)((0,i.toDisplayString)(e.t("projectNamespaces.createNamespace")),1)])),_:2},1032,["to"])):(0,i.createCommentVNode)("",!0),(0,i.createVNode)(u,{class:"project-action mr-10",borderless:!0,invisible:!a.showProjectActionButton(t.group),onClick:e=>a.showProjectAction(e,t.group)},null,8,["invisible","onClick"])])],2)])),"cell:project":(0,i.withCtx)((({row:e})=>[e.project?((0,i.openBlock)(),(0,i.createElementBlock)("span",QR,(0,i.toDisplayString)(e.project.nameDisplay),1)):((0,i.openBlock)(),(0,i.createElementBlock)("span",JR,"–"))])),"cell:name":(0,i.withCtx)((({row:t})=>[(0,i.createElementVNode)("div",ZR,[t.detailLocation&&!t.hideDetailLocation?((0,i.openBlock)(),(0,i.createBlock)(s,{key:0,to:t.detailLocation},{default:(0,i.withCtx)((()=>[(0,i.createTextVNode)((0,i.toDisplayString)(t.name),1)])),_:2},1032,["to"])):((0,i.openBlock)(),(0,i.createElementBlock)("span",eO,(0,i.toDisplayString)(t.name),1)),t.injectionEnabled?(0,i.withDirectives)(((0,i.openBlock)(),(0,i.createElementBlock)("i",tO,null,512)),[[m,e.t("projectNamespaces.isIstioInjectionEnabled")]]):(0,i.createCommentVNode)("",!0),t.hasSystemLabels?(0,i.withDirectives)(((0,i.openBlock)(),(0,i.createElementBlock)("i",nO,null,512)),[[m,a.getPsaTooltip(t)]]):(0,i.createCommentVNode)("",!0)])])),"main-row:fake-empty":(0,i.withCtx)((({fullColspan:t})=>[(0,i.createElementVNode)("tr",oO,[(0,i.createElementVNode)("td",{class:"empty text-center",colspan:t},(0,i.toDisplayString)(e.t("projectNamespaces.noProjectNoNamespaces")),9,aO)])])),_:2},[(0,i.renderList)(a.projectsWithoutNamespaces,((t,n)=>({name:a.slotName(t),fn:(0,i.withCtx)((({fullColspan:t})=>[(0,i.createElementVNode)("tr",rO,[(0,i.createElementVNode)("td",{class:"empty text-center",colspan:t},(0,i.toDisplayString)(e.t("projectNamespaces.noNamespaces")),9,iO)])]))})))]),1040,["schema","headers","rows","sort-generation-fn","loading"]),(0,i.createVNode)(h,{onMoving:a.clearSelection},null,8,["onMoving"])])}const lO={class:"text-default-text"},cO={class:"namespaces"};function uO(e,t,n,r,o,a){const s=(0,i.resolveComponent)("Loading"),l=(0,i.resolveComponent)("LabeledSelect"),c=(0,i.resolveComponent)("AsyncButton"),u=(0,i.resolveComponent)("Card"),d=(0,i.resolveComponent)("app-modal");return o.showModal?((0,i.openBlock)(),(0,i.createBlock)(d,{key:0,class:"move-modal",name:o.modalName,width:440,height:"auto",onClose:a.close},{default:(0,i.withCtx)((()=>[e.$fetchState.pending?((0,i.openBlock)(),(0,i.createBlock)(s,{key:0})):((0,i.openBlock)(),(0,i.createBlock)(u,{key:1,class:"move-modal-card","show-highlight-border":!1},{title:(0,i.withCtx)((()=>[(0,i.createElementVNode)("h4",lO,(0,i.toDisplayString)(e.t("moveModal.title")),1)])),body:(0,i.withCtx)((()=>[(0,i.createElementVNode)("div",null,[(0,i.createTextVNode)((0,i.toDisplayString)(e.t("moveModal.description"))+" ",1),(0,i.createElementVNode)("ul",cO,[((0,i.openBlock)(!0),(0,i.createElementBlock)(i.Fragment,null,(0,i.renderList)(e.toMove,((e,t)=>((0,i.openBlock)(),(0,i.createElementBlock)("li",{key:t},(0,i.toDisplayString)(e.nameDisplay),1)))),128))])]),(0,i.createVNode)(l,{value:o.targetProject,"onUpdate:value":t[0]||(t[0]=e=>o.targetProject=e),options:a.projectOptions,label:e.t("moveModal.targetProject")},null,8,["value","options","label"])])),actions:(0,i.withCtx)((()=>[(0,i.createElementVNode)("button",{class:"btn role-secondary",onClick:t[1]||(t[1]=(...e)=>a.close&&a.close(...e))},(0,i.toDisplayString)(e.t("generic.cancel")),1),(0,i.createVNode)(c,{"action-label":e.t("moveModal.moveButtonLabel"),class:"btn bg-primary ml-10",disabled:!o.targetProject,onClick:a.move},null,8,["action-label","disabled","onClick"])])),_:1}))])),_:1},8,["name","onClose"])):(0,i.createCommentVNode)("",!0)}var dO=o(27666),hO={emits:["moving"],components:{AsyncButton:Ql.A,Card:dO.Z,LabeledSelect:xR.A,Loading:Fe.A,AppModal:fe.A},async fetch(){this.projects=await this.$store.dispatch("management/findAll",{type:X.Mc.PROJECT})},data(){return{modalName:"move-modal",projects:[],targetProject:null,showModal:!1}},computed:{...(0,z.aH)("action-menu",["showPromptMove","toMove"]),...(0,z.L8)(["currentCluster"]),excludedProjects(){return this.toMove.filter((e=>!!e.project)).map((e=>e.project.shortId))},projectOptions(){return this.projects.reduce(((e,t)=>(this.excludedProjects.includes(t.shortId)||t.spec?.clusterName!==this.currentCluster.id||e.push({value:t.shortId,label:t.nameDisplay}),e)),[])}},watch:{showPromptMove(e){this.showModal=!!e}},methods:{close(){this.$store.commit("action-menu/togglePromptMove")},async move(e){const t=this.$store.getters["currentCluster"],n=`${t.id}:${this.targetProject}`,r=this.toMove.map((e=>(e.setLabel(gh.yl,this.targetProject),e.setAnnotation(gh.yl,n),e.save())));try{this.$emit("moving"),await Promise.all(r),e(!0),this.targetProject=null,this.close()}catch(pP){e(!1)}}}};o(27235);const pO=(0,u.A)(hO,[["render",uO]]);var fO=pO,mO=o(57415),gO=o(94807),vO=o.n(gO),yO=o(76250),bO={name:"ListProjectNamespace",components:{ExtensionPanel:Su,Masthead:bc.A,MoveModal:fO,ResourceTable:yc.A,ButtonMultiAction:mO.A},mixins:[du],props:{createProjectLocationOverride:{type:Object,default:()=>null},createNamespaceLocationOverride:{type:Object,default:()=>null}},async fetch(){const e=this.$store.getters["currentStore"](X.CU);this.harvesterResourceQuotaSchema=this.$store.getters[`${e}/schemaFor`](X.rk.RESOURCE_QUOTA),this.schema=this.$store.getters[`${e}/schemaFor`](X.CU),this.projectSchema=this.$store.getters["management/schemaFor"](X.Mc.PROJECT),this.schema&&(await this.$fetchType(X.CU),this.projects=await this.$store.dispatch("management/findAll",{type:X.Mc.PROJECT,opt:{force:!0}}))},data(){return{loadResources:[X.CU],loadIndeterminate:!0,harvesterResourceQuotaSchema:null,schema:null,projects:[],projectSchema:null,extensionType:vu.c7.PANEL,extensionLocation:vu.W7.RESOURCE_LIST,MANAGEMENT:X.Mc,VIRTUAL_TYPES:X.cG,defaultCreateProjectLocation:{name:"c-cluster-product-resource-create",params:{product:this.$store.getters["currentProduct"].name,resource:X.Mc.PROJECT}}}},computed:{...(0,z.L8)(["currentCluster","currentProduct"]),namespaces(){const e=this.$store.getters["currentStore"](X.CU);return this.$store.getters[`${e}/all`](X.CU)},loading(){return!(!this.currentCluster||this.namespaces.length)&&this.$fetchState.pending},showIncrementalLoadingIndicator(){return this.perfConfig?.incrementalLoading?.enabled},isNamespaceCreatable(){return(this.schema?.collectionMethods||[]).includes("POST")},isHarvester(){return this.$store.getters["currentProduct"].inStore===yO.T},headers(){const e=[bh.c4,bh.o_];if("none"===this.groupPreference){const t={name:"project",label:this.t("tableHeaders.project"),value:"project.nameDisplay",sort:["projectNameSort","nameSort"]};e.push(t)}return this.isHarvester&&this.harvesterResourceQuotaSchema&&e.push(bh.Si),e.push(bh.K),e},projectIdsWithNamespaces(){const e=this.rows.map((e=>e.projectId)).filter((e=>e));return(0,Yc.sb)(e)},clusterProjects(){const e=this.currentCluster.id,t=this.$store.getters["management/all"](X.Mc.PROJECT);if(this.currentProduct?.customNamespaceFilter&&this.currentProduct?.inStore&&this.$store.getters[`${this.currentProduct.inStore}/filterProject`])return this.$store.getters[`${this.currentProduct.inStore}/filterProject`];const n=t.filter((t=>t.spec.clusterName===e));return n},projectsWithoutNamespaces(){return this.activeProjects.filter((e=>!this.projectIdsWithNamespaces.find((t=>e?.id?.endsWith(`/${t}`)))))},rowsWithFakeNamespaces(){const e=this.projectsWithoutNamespaces.map((e=>({groupByLabel:`resourceTable.groupLabel.notInAProject-${e.id}`,isFake:!0,mainRowKey:e.id,nameDisplay:e.spec?.displayName,project:e,availableActions:[]})));return this.showMockNotInProjectGroup&&e.push({groupByLabel:this.t("resourceTable.groupLabel.notInAProject"),mainRowKey:"fake-empty"}),[...this.rows,...e]},createProjectLocation(){return this.createProjectLocationOverride||this.defaultCreateProjectLocation},groupPreference:(0,M.AN)(M.EI),activeNamespaceFilters(){return this.$store.getters["activeNamespaceFilters"]},activeProjectFilters(){const e={};for(const t of this.activeNamespaceFilters){const[n,r]=t.split("://",2);"project"===n&&(e[r]=!0)}return e},activeProjects(){const e=this.$store.getters["activeNamespaceFilters"];return e.includes(wc.pF)&&0===Object.keys(this.activeProjectFilters).length?[]:this.userIsFilteringForSpecificNamespaceOrProject()?this.clusterProjects.filter((e=>{const t=e.id.split("/")[1];return!!this.activeProjectFilters[t]})):this.clusterProjects},activeNamespaces(){const e=this.$store.getters["namespaces"]();return this.namespaces.filter((t=>!!e[t.metadata.name]))},filteredRows(){return"none"===this.groupPreference?this.rows:this.rowsWithFakeNamespaces},rows(){let e;try{e=this.$store.getters["prefs/get"](M.Pz)}catch{e=this.$store.getters["prefs/get"](M.IJ)}return e?this.activeNamespaces:this.activeNamespaces.filter((e=>{const t=this.$store.getters["systemNamespaces"].includes(e.metadata.name),n=e.isSystem||e.isFleetManaged||t;return!this.currentProduct?.hideSystemResources||!n}))},canSeeProjectlessNamespaces(){return this.currentCluster.canUpdate},showMockNotInProjectGroup(){if(!this.canSeeProjectlessNamespaces)return!1;const e=!this.rows.some((e=>!e.project)),t=this.userIsFilteringForSpecificNamespaceOrProject();return!t&&e},notInProjectKey(){return this.$store.getters["i18n/t"]("resourceTable.groupLabel.notInAProject")},showCreateNsButton(){return"namespace"!==this.groupPreference}},methods:{getPsaTooltip(e){const t=e.psaTooltipsDescription,n=Object.values(t).sort().map((e=>`<li>${e}</li>`)).join(""),r=`<p>${this.t("podSecurityAdmission.name")}: </p>`;return`${r}<ul class="psa-tooltip">${n}</ul>`},userIsFilteringForSpecificNamespaceOrProject(){const e=this.$store.getters["namespaceFilters"];for(let t=0;t<e.length;t++){const n=e[t],r=n.split("://")[0];if("ns"===r||"project"===r)return!0}return!1},slotName(e){return`main-row:${e.id}`},createNamespaceLocation(e){const t=e.rows[0].project,n=this.createNamespaceLocationOverride?{...this.createNamespaceLocationOverride}:{name:"c-cluster-product-resource-create",params:{product:this.$store.getters["currentProduct"].name,resource:X.CU}};return n.query={[yd.iJ]:t?.metadata.name},n},createNamespaceLocationFlatList(){const e=this.createNamespaceLocationOverride?{...this.createNamespaceLocationOverride}:{name:"c-cluster-product-resource-create",params:{product:this.$store.getters["currentProduct"]?.name,resource:X.CU}};return e.query={[yd._N]:!0},e},showProjectAction(e,t){const n=t.rows[0].project;this.$store.commit("action-menu/show",{resources:[n],elem:e.target})},showProjectActionButton(e){const t=e.rows[0].project;return!!t},projectLabel(e){const t=e.rows[0];return t.isFake?vO().sanitize(this.t("resourceTable.groupLabel.project",{name:t.project?.nameDisplay},!0),{ALLOWED_TAGS:["span"]}):t.groupByLabel},projectDescription(e){const t=e.rows[0].project;return t?.description},clearSelection(){this.$refs.table.clearSelection()},sortGenerationFn(){const e=(0,yc.S)(this.schema,this.$store);return e+(this.showMockNotInProjectGroup?"-mock":"")}}};o(42958),o(19264);const _O=(0,u.A)(bO,[["render",sO],["__scopeId","data-v-e66e1d56"]]);var wO=_O,EO={components:{ExplorerProjectsNamespaces:wO},data(){return{createProjectLocation:{name:`${r.KR}-c-cluster-resource-create`,params:{product:r.KR,cluster:this.$store.getters["currentCluster"]?.id,resource:X.Mc.PROJECT}},createNamespaceLocation:{name:`${r.KR}-c-cluster-resource-create`,params:{product:r.KR,resource:X.CU}}}}};const SO=(0,u.A)(EO,[["render",GR]]);var xO=SO;const kO=e=>((0,i.pushScopeId)("data-v-a0fecebc"),e=e(),(0,i.popScopeId)(),e),AO={class:"header"},NO={class:"title"},TO={class:"primaryheader"},CO={class:"actions-container"},RO={class:"actions"},OO=kO((()=>(0,i.createElementVNode)("i",{class:"icon icon-actions"},null,-1))),IO=[OO];function DO(e,t,n,r,o,a){const s=(0,i.resolveComponent)("ButtonGroup"),l=(0,i.resolveComponent)("ResourceYaml"),c=(0,i.resolveComponent)("ReceiverConfig"),u=(0,i.resolveComponent)("ActionMenu");return(0,i.openBlock)(),(0,i.createElementBlock)("div",null,[(0,i.createElementVNode)("header",AO,[(0,i.createElementVNode)("div",NO,[(0,i.createElementVNode)("div",TO,[(0,i.createElementVNode)("h1",null,(0,i.toDisplayString)(a.heading),1)])]),(0,i.createElementVNode)("div",CO,[(0,i.createElementVNode)("div",RO,[o.viewOptions&&a.mode===o.view?((0,i.openBlock)(),(0,i.createBlock)(s,{key:0,value:a.currentView,options:o.viewOptions,"onUpdate:value":a.handleButtonGroupClick},null,8,["value","options","onUpdate:value"])):(0,i.createCommentVNode)("",!0),a.mode===o.view?((0,i.openBlock)(),(0,i.createElementBlock)("button",{key:1,ref:"actions","aria-haspopup":"true",type:"button",class:"btn role-multi-action actions",onClick:t[0]||(t[0]=(...e)=>a.handleReceiverActionMenuClick&&a.handleReceiverActionMenuClick(...e))},IO,512)):(0,i.createCommentVNode)("",!0)])])]),a.currentView===o.yaml&&o.alertmanagerConfigResource?((0,i.openBlock)(),(0,i.createBlock)(l,{key:0,ref:"resourceyaml",value:o.alertmanagerConfigResource,mode:a.mode,"initial-yaml-for-diff":null,yaml:a.resourceYaml,"offer-preview":a.mode===o.edit,"done-route":JSON.stringify(a.redirectToReceiverDetail(o.receiverName)),"done-override":o.alertmanagerConfigDetailRoute,"apply-hooks":o.alertmanagerConfigResource.applyHooks,onError:t[1]||(t[1]=t=>e.$emit("error",t))},null,8,["value","mode","yaml","offer-preview","done-route","done-override","apply-hooks"])):(0,i.createCommentVNode)("",!0),a.currentView!==o.config&&a.currentView!==o.detail||!o.alertmanagerConfigResource?(0,i.createCommentVNode)("",!0):((0,i.openBlock)(),(0,i.createBlock)(c,{key:1,value:o.receiverValue,mode:a.mode,"alertmanager-config-id":o.alertmanagerConfigId,"alertmanager-config-resource":o.alertmanagerConfigResource,"save-override":a.saveOverride},null,8,["value","mode","alertmanager-config-id","alertmanager-config-resource","save-override"])),(0,i.createVNode)(u,{"custom-actions":a.receiverActions,open:o.receiverActionMenuIsOpen,"use-custom-target-element":!0,"custom-target-element":o.actionMenuTargetElement,"custom-target-event":o.actionMenuTargetEvent,onClose:t[2]||(t[2]=e=>o.receiverActionMenuIsOpen=!1),onGoToEdit:a.goToEdit,onGoToEditYaml:a.goToEditYaml,onPromptRemove:a.promptRemove},null,8,["custom-actions","open","custom-target-element","custom-target-event","onGoToEdit","onGoToEditYaml","onPromptRemove"])])}var LO=o(49826);const PO={class:"row mb-10"},MO={class:"col span-6"},FO={class:"box-container create-resource-container"},BO=["onClick"],$O={class:"left"},jO={class:"logo"},UO=["src"],VO={class:"name ml-10"},KO={key:0,class:"right"},HO={key:1};function GO(e,t,n,r,o,a){const s=(0,i.resolveComponent)("LabeledInput"),l=(0,i.resolveComponent)("t"),c=(0,i.resolveComponent)("Tab"),u=(0,i.resolveComponent)("YamlEditor"),d=(0,i.resolveComponent)("ArrayListGrouped"),h=(0,i.resolveComponent)("Tabbed"),p=(0,i.resolveComponent)("CruResource");return(0,i.openBlock)(),(0,i.createBlock)(p,{class:"receiver","done-route":n.alertmanagerConfigResource._detailLocation,mode:n.mode,resource:n.alertmanagerConfigResource,subtypes:[],"can-yaml":!0,errors:e.errors,"cancel-event":!0,"validation-passed":e.fvFormIsValid,onError:t[2]||(t[2]=t=>e.errors=t),onFinish:n.saveOverride,onCancel:a.redirectAfterCancel},{default:(0,i.withCtx)((()=>[(0,i.createElementVNode)("div",PO,[(0,i.createElementVNode)("div",MO,[(0,i.createVNode)(s,{value:n.value.name,"onUpdate:value":t[0]||(t[0]=e=>n.value.name=e),"is-disabled":a.receiverNameDisabled,label:e.t("generic.name"),required:!0,mode:n.mode,rules:e.fvGetAndReportPathRules("name"),"data-testid":"v2-monitoring-receiver-name"},null,8,["value","is-disabled","label","mode","rules"])])]),(0,i.createVNode)(h,{ref:"tabbed","side-tabs":!0,"default-tab":"overview",onChanged:a.tabChanged},{default:(0,i.withCtx)((()=>[(0,i.createVNode)(c,{label:e.t("generic.overview"),weight:o.receiverTypes.length,name:"overview"},{default:(0,i.withCtx)((()=>[(0,i.createElementVNode)("div",FO,[((0,i.openBlock)(!0),(0,i.createElementBlock)(i.Fragment,null,(0,i.renderList)(o.receiverTypes,((e,t)=>((0,i.openBlock)(),(0,i.createElementBlock)("div",{key:t,class:"mb-10 subtype-banner","primary-color-var":"--primary-color",onClick:t=>a.navigateTo(e)},[(0,i.createElementVNode)("div",$O,[(0,i.createElementVNode)("div",jO,[(0,i.createElementVNode)("img",{src:e.logo},null,8,UO)]),(0,i.createElementVNode)("h4",VO,[(0,i.createVNode)(l,{k:e.label},null,8,["k"])])]),"custom"!==e.name?((0,i.openBlock)(),(0,i.createElementBlock)("div",KO,(0,i.toDisplayString)(a.getCount(e)),1)):(0,i.createCommentVNode)("",!0)],8,BO)))),128))])])),_:1},8,["label","weight"]),((0,i.openBlock)(!0),(0,i.createElementBlock)(i.Fragment,null,(0,i.renderList)(o.receiverTypes,((r,s)=>((0,i.openBlock)(),(0,i.createBlock)(c,{key:s,label:e.t(r.label),name:r.name,weight:o.receiverTypes.length-s},{default:(0,i.withCtx)((()=>["custom"===r.name?((0,i.openBlock)(),(0,i.createBlock)(u,{key:0,ref_for:!0,ref:"customEditor",value:e.suffixYaml,"onUpdate:value":t[1]||(t[1]=t=>e.suffixYaml=t),scrolling:!1,"editor-mode":a.editorMode},null,8,["value","editor-mode"])):((0,i.openBlock)(),(0,i.createElementBlock)("div",HO,[(0,i.createVNode)(d,{value:n.value[r.key],"onUpdate:value":e=>n.value[r.key]=e,class:"namespace-list",mode:n.mode,"default-add-value":{},"add-label":e.t("monitoringReceiver.addButton",{type:e.t(r.label)})},{default:(0,i.withCtx)((e=>[((0,i.openBlock)(),(0,i.createBlock)((0,i.resolveDynamicComponent)(a.getComponent(r.name)),{value:e.row.value,mode:n.mode,namespace:a.alertmanagerConfigNamespace},null,8,["value","mode","namespace"]))])),_:2},1032,["value","onUpdate:value","mode","add-label"])]))])),_:2},1032,["label","name","weight"])))),128))])),_:1},8,["onChanged"])])),_:1},8,["done-route","mode","resource","errors","validation-passed","onFinish","onCancel"])}var zO=o(4373),XO=o(89893),qO=o(81357),WO=o(20246),YO=o.n(WO),QO=o(82162),JO=o(53551),ZO=o(75889);const eI=[{name:"slack",label:"monitoringReceiver.slack.label",title:"monitoringReceiver.slack.title",info:"monitoringReceiver.slack.info",key:"slackConfigs",logo:o(78978)},{name:"email",label:"monitoringReceiver.email.label",title:"monitoringReceiver.email.title",key:"emailConfigs",logo:o(88150)},{name:"pagerduty",label:"monitoringReceiver.pagerduty.label",title:"monitoringReceiver.pagerduty.title",info:"monitoringReceiver.pagerduty.info",key:"pagerdutyConfigs",logo:o(84779)},{name:"opsgenie",label:"monitoringReceiver.opsgenie.label",title:"monitoringReceiver.opsgenie.title",key:"opsgenieConfigs",logo:o(88150)},{name:"webhook",label:"monitoringReceiver.webhook.label",title:"monitoringReceiver.webhook.title",key:"webhookConfigs",logo:o(38997)},{name:"custom",label:"monitoringReceiver.custom.label",title:"monitoringReceiver.custom.title",info:"monitoringReceiver.custom.info",key:"webhookConfigs",logo:o(73311)}];var tI={components:{ArrayListGrouped:zO.A,Banner:kd.l,ButtonDropdown:QO.A,CruResource:ER.A,LabeledInput:dd.o,Loading:Fe.A,Tabbed:FR.A,Tab:BR.A,YamlEditor:XO.A},props:{value:{type:Object,default:()=>({})},mode:{type:String,default:""},alertmanagerConfigResource:{type:Object,required:!0},alertmanagerConfigId:{type:String,required:!0},saveOverride:{type:Function,required:!0}},mixins:[qO.A,JO.A],inheritAttrs:!1,async fetch(){const{receiverSchema:e}=await(0,ZO.ER)(this.$store);if(!e)throw new Error("Can't render the form because the AlertmanagerConfig schema, or it's definitions, is not loaded yet.");const t=Object.keys(e.resourceFields),n={};Object.keys(this.value).forEach((e=>{t.includes(e)||(n[e]=this.value[e])}));let r=YO().dump(n);"{}"===r.trim()&&(r=""),this.expectedFields=t,this.suffixYaml=r},data(e){const t={},n=this.$route.query.mode;return n===yd.YQ&&eI.forEach((e=>{t[e.key]=t[e.key]||[]})),{create:yd.YQ,EDITOR_MODES:XO.j,fileFound:!1,receiverTypes:eI,view:yd.nW,yamlError:"",fvFormRuleSets:[{path:"name",rules:["required","duplicateName"]}],fvReportedValidationPaths:["value"]}},mounted(){this.mode===this.create&&(this.alertmanagerConfigResource.spec.receivers||(this.alertmanagerConfigResource.spec.receivers=[]),this.alertmanagerConfigResource.spec.receivers.push(this.value))},computed:{editorMode(){return this.$route.query.mode===yd.nW?XO.j.VIEW_CODE:XO.j.EDIT_CODE},alertmanagerConfigNamespace(){return this.alertmanagerConfigResource?.metadata?.namespace||""},receiverNameDisabled(){return this.$route.query.mode===yd.nW},fvExtraRules(){return{duplicateName:()=>{const e=this.alertmanagerConfigResource.spec.receivers,t=e.map((e=>e.name)),n=new Set(t);if(e.length!==n.size)return this.$store.getters["i18n/t"]("monitoring.alerting.validation.duplicatedReceiverName",{name:this.value.name})}}}},watch:{suffixYaml(e){try{Object.keys(this.value).forEach((e=>{this.expectedFields.includes(e)||delete this.value[e]}));const t=YO().load(e);Object.assign(this.value,t),this.yamlError=""}catch(pP){this.yamlError=`There was a problem parsing the Custom Config: ${pP}`}}},methods:{getComponent(e){return o(20833)(`./${e}`).default},navigateTo(e){this.$refs.tabbed.select(e.name)},getCount(e){const t=this.value?.[e.key]||[];return t.length},tabChanged({tab:e}){window.scrollTop=0,"custom"===e.name&&this.$nextTick((()=>{this.$refs.customEditor&&(this.$refs.customEditor[0].refresh(),this.$refs.customEditor[0].focus())}))},redirectAfterCancel(){this.$router.push(this.alertmanagerConfigResource._detailLocation)},createAddOptions(e){return e.addOptions.map()},setError(e){this.errors=e?[e]:[]}}};o(54834);const nI=(0,u.A)(tI,[["render",GO]]);var rI=nI,iI={name:"AlertmanagerConfigReceiverCreateEdit",components:{ActionMenu:LO.A,ButtonGroup:vh.A,ReceiverConfig:rI,ResourceYaml:Hd.A},async fetch(){const e=this.$store.getters["currentProduct"].inStore;this.receiverName=this.$route.query.receiverName;const t=this.$route.params.alertmanagerconfigid,n=await this.$store.dispatch(`${e}/find`,{type:X.Rp.ALERTMANAGERCONFIG,id:t}),r=await this.$store.dispatch(`${e}/clone`,{resource:n}),i=this.$route.query.mode;if(i!==yd.YQ){const e=(r.spec.receivers||[]).find((e=>e.name===this.receiverName));e&&(this.receiverValue=e)}this.alertmanagerConfigId=r.id,this.alertmanagerConfigResource=r,this.alertmanagerConfigDetailRoute=r._detailLocation},data(){return{actionMenuTargetElement:null,actionMenuTargetEvent:null,alertmanagerConfigId:"",alertmanagerConfigResource:null,alertmanagerConfigDetailRoute:null,config:yd.au,create:yd.YQ,detail:yd.fS,edit:yd.G5,receiverActionMenuIsOpen:!1,receiverName:"",receiverValue:{},showPreview:!1,view:yd.nW,viewOptions:[{labelKey:"resourceDetail.masthead.config",value:"config"},{labelKey:"resourceDetail.masthead.yaml",value:yd.zD}],yaml:yd.zD}},computed:{currentView(){return this.$route.query.currentView},receiverActions(){const e=this.alertmanagerConfigResource?.availableActions;return e?this.alertmanagerConfigResource.getReceiverActions(e):[]},resourceYaml(){const e=this.alertmanagerConfigResource,t=this.$store.getters["currentStore"](e),n=this.$store.getters[`${t}/all`](X.yx),r=(0,Qc.o8)(e),i=(0,Ac.mH)(n,X.Rp.ALERTMANAGERCONFIG,r);return i},mode(){return this.$route.query.mode},editorMode(){return this.mode===this.view?XO.j.VIEW_CODE:this.showPreview?XO.j.DIFF_CODE:XO.j.EDIT_CODE},heading(){switch(this.$route.query.mode){case this.create:return this.t("monitoring.alertmanagerConfig.receiverFormNames.create");case this.edit:return this.currentView===this.yaml||this.$route.query.as===this.yaml?this.t("monitoring.alertmanagerConfig.receiverFormNames.editYaml"):this.t("monitoring.alertmanagerConfig.receiverFormNames.edit");default:return this.t("monitoring.alertmanagerConfig.receiverFormNames.detail")}}},methods:{saveOverride(e){if(this.alertmanagerConfigResource.yamlError)return this.alertmanagerConfigResource.errors=this.alertmanagerConfigResource.errors||[],this.alertmanagerConfigResource.errors.push(this.alertmanagerConfigResource.yamlError),void e(!1);this.alertmanagerConfigResource.save(...arguments),this.redirectToAlertmanagerConfigDetail()},handleButtonGroupClick(e){e===this.yaml&&this.goToEditYaml(this.view),e===this.config&&this.goToEdit(this.view)},toggleReceiverActionMenu(){this.receiverActionMenuIsOpen=!this.receiverActionMenuIsOpen},handleReceiverActionMenuClick(e){this.actionMenuTargetElement=this.$refs.actions,this.actionMenuTargetEvent=e,this.toggleReceiverActionMenu()},goToEdit(){this.$router.push(this.alertmanagerConfigResource.getEditReceiverConfigRoute(this.receiverValue.name,yd.G5))},goToEditYaml(){this.$router.push(this.alertmanagerConfigResource.getEditReceiverYamlRoute(this.receiverValue.name,yd.G5))},promptRemove(e){const t=e.route.query.receiverName,n=this.alertmanagerConfigResource.spec.receivers||[],r=n.filter((e=>e.name!==t));this.alertmanagerConfigResource.spec.receivers=r,this.alertmanagerConfigResource.save(...arguments),this.$router.push(this.alertmanagerConfigResource._detailLocation)},redirectToReceiverDetail(e){return this.alertmanagerConfigResource.getReceiverDetailLink(e)},redirectToAlertmanagerConfigDetail(){const e=this.alertmanagerConfigResource._detailLocation;this.$router.push(e)}}};o(56554);const oI=(0,u.A)(iI,[["render",DO],["__scopeId","data-v-a0fecebc"]]);var aI=oI;const sI={class:"dashboard-root"},lI={class:"dashboard-content"},cI={class:"main-layout"},uI={class:"logo"},dI={class:"tagline"},hI={class:"description"},pI={class:"tagline"},fI={class:"tagline"};function mI(e,t,n,r,o,a){const s=(0,i.resolveComponent)("BrandImage"),l=(0,i.resolveDirective)("clean-html");return(0,i.openBlock)(),(0,i.createElementBlock)("div",sI,[(0,i.createElementVNode)("div",lI,[(0,i.createElementVNode)("main",cI,[(0,i.createElementVNode)("div",uI,[(0,i.createVNode)(s,{"file-name":"harvester.png",height:"64"})]),(0,i.createElementVNode)("div",dI,[(0,i.createElementVNode)("div",hI,(0,i.toDisplayString)(e.t("unsupported.description")),1)]),(0,i.createElementVNode)("div",pI,[(0,i.withDirectives)((0,i.createElementVNode)("div",null,null,512),[[l,e.t("unsupported.serverVersion",{serverVersion:a.serverVersion},!0)]])]),(0,i.createElementVNode)("div",fI,[(0,i.withDirectives)((0,i.createElementVNode)("div",null,null,512),[[l,e.t("unsupported.learnMore",{},!0)]])])])])])}var gI={components:{BrandImage:Q},computed:{serverVersion(){const e=this.$store.getters["harvester-common/getServerVersion"]()||"";return e.replace("v","")}}};o(29056);const vI=(0,u.A)(gI,[["render",mI],["__scopeId","data-v-140c2578"]]);var yI=vI;const bI=[{route:{name:`${r.KR}-c-cluster-unsupported-standalone`,path:"/:product",component:yI},parent:"blank"},{route:{name:`${r.KR}-c-cluster-unsupported`,path:"/:product",component:yI},parent:"plain"},{name:`${r.KR}-c-cluster-support`,path:"/:product/c/:cluster/support",component:Pe},{route:{name:`${r.KR}-c-cluster-console-uid-serial`,path:"/:product/c/:cluster/console/:uid/serial",component:qt},parent:"blank"},{route:{name:`${r.KR}-c-cluster-console-uid-vnc`,path:"/:product/c/:cluster/console/:uid/vnc",component:pc},parent:"blank"},{name:`${r.KR}-c-cluster-airgapupgrade`,path:"/:product/c/:cluster/airgapupgrade",component:IR},{name:`${r.KR}-c-cluster-brand`,path:"/:product/c/:cluster/brand",component:Ld},{name:`${r.KR}-c-cluster-alertmanagerconfig-alertmanagerconfigid-receiver`,path:"/:product/c/:cluster/alertmanagerconfig/:alertmanagerconfigid/receiver",component:aI},{name:`${r.KR}-c-cluster-members`,path:"/:product/c/:cluster/members",component:HR},{name:`${r.KR}-c-cluster`,path:"/:product/c/:cluster",component:h},{name:`${r.KR}-c-cluster-projectsnamespaces`,path:"/:product/c/:cluster/projectsnamespaces",component:xO},{name:`${r.KR}-c-cluster-resource`,path:"/:product/c/:cluster/:resource",component:Cu},{name:`${r.KR}-c-cluster-resource-create`,path:"/:product/c/:cluster/:resource/create",component:lR},{name:`${r.KR}-c-cluster-resource-id`,path:"/:product/c/:cluster/:resource/:id",component:hR},{name:`${r.KR}-c-cluster-resource-namespace-id`,path:"/:product/c/:cluster/:resource/:namespace/:id",component:gR}];var _I=bI,wI=o(52225),EI=o.n(wI);const SI=function(){return{latestBundleId:"",bundlePending:!1,showBundleModal:!1,bundlePercentage:0,uploadingImages:[],uploadingImageError:{}}},xI={setLatestBundleId(e,t){e.latestBundleId=t},setBundlePending(e,t){e.bundlePending=t},toggleBundleModal(e,t){e.showBundleModal=t},setBundlePercentage(e,t){e.bundlePercentage=t},uploadStart(e,t){e.uploadingImages.push(t)},uploadError(e,{name:t,message:n}){e.uploadingImageError[t]=n},uploadEnd(e,t){const n=e.uploadingImages.filter((e=>e!==t));e["uploadingImages"]=n}},kI={getBundleId(e){return e.latestBundleId},isBundlePending(e){return e.bundlePending},isShowBundleModal(e){return e.showBundleModal},getBundlePercentage(e){return e.bundlePercentage},uploadingImages(e){return e.uploadingImages},uploadingImageError(e){return t=>e.uploadingImageError[t]},getServerVersion:(e,t,n,r)=>()=>{const e=r["harvester/byId"](l.rk.SETTING,"server-version")?.value;return(0,Ie.HF)(e)},getFeatureEnabled:(e,t,n,r)=>(e,t)=>{const n=t||r["harvester/byId"](l.rk.SETTING,"server-version")?.value;return(0,Ie.at)(e,n)},getHarvesterClusterUrl:(e,t,n,r)=>e=>{if(r["isMultiCluster"]){const t=r["clusterId"],n=`/k8s/clusters/${t}/${e}`;return`${n}`}return e}},AI={async bundleProgress({state:e,dispatch:t,commit:n,rootGetters:r}){const i=EI()(window.history.href),o=e.latestBundleId;let a=await t("harvester/find",{type:l.rk.SUPPORT_BUNDLE,id:o},{root:!0});const s=r["i18n/t"];let c=0;await n("setBundlePending",!0);const u=setInterval((async()=>{if(c+=1,c%3===0&&(a=await t("harvester/find",{type:l.rk.SUPPORT_BUNDLE,id:o,opt:{force:!0}},{root:!0})),"ready"!==a.bundleState){a=r["harvester/byId"](l.rk.SUPPORT_BUNDLE,o);const e=a.precent;if(n("setBundlePercentage",e),a?.bundleMessage){const e=a?.bundleMessage;t("growl/fromError",{title:s("generic.notification.title.error"),err:e},{root:!0}),clearInterval(u),n("setBundlePending",!1),n("toggleBundleModal",!1)}}else{const e=o.split("/")[1];if(n("setBundlePercentage",1),setTimeout((()=>{n("toggleBundleModal",!1),n("setBundlePending",!1),n("setBundlePercentage",0)}),600),r["isMultiCluster"]){const t=r["clusterId"],n=`/k8s/clusters/${t}`;window.location.href=`${i.origin}${n}/v1/harvester/supportbundles/${e}/download`}else window.location.href=`${i.origin}/v1/harvester/supportbundles/${e}/download`;clearInterval(u)}}),1e3)}},NI=()=>({state:SI,getters:{...kI},mutations:{...xI},actions:{...AI}}),TI={namespace:`${r.KR}-common`,isClusterStore:!1};var CI={specifics:NI(),config:TI},RI=o(58899),OI=o(89422),II=o(67354),DI=o(9776);const LI=(e,t)=>(n,r,i)=>{i=i||{},n=t.normalizeType(n);let o,a=i.url;if(!a){if(o=t.schemaFor(n),!o)throw new Error(`Unknown schema for type: ${n}`);if(a=o.links.collection,!a)throw new Error(`You don't have permission to list this type: ${n}`);r&&(a+=`/${r}`)}if(!a.startsWith("/")&&!a.startsWith("http")){const t=e.config.baseUrl.replace(/\/$/,"");a=`${t}/${a}`}return a=t.urlOptions(a,i,o),a};function PI(e,t){if(!e.namespaced||!e.byNamespace||null===t||null===e.count)return e.count;let n=0;for(const r of t)n+=e.byNamespace[r]?.count||0;return n}var MI={all:(e,t,n)=>r=>(r=t.normalizeType(r),t.typeRegistered(r)||(DI.warn(`All of ${r} is not loaded yet`),OI.Ay.registerType(e,r)),Cc.A.gcUpdateLastAccessed({state:e,getters:t,rootState:n},r),e.types[r].list),matching:(e,t,n)=>(r,i,o,a={skipSelector:!1})=>{let s=t["all"](r);return o&&"string"===typeof o&&(s=s.filter((e=>e.namespace===o))),Cc.A.gcUpdateLastAccessed({state:e,getters:t,rootState:n},r),a.skipSelector?s:s.filter((e=>(0,RI.cK)(e,i)))},byId:(e,t,n)=>(r,i)=>{r=t.normalizeType(r);const o=e.types[r];if(o)return Cc.A.gcUpdateLastAccessed({state:e,getters:t,rootState:n},r),o.map.get(i)},pathExistsInSchema:(e,t)=>(e,t)=>!1,schema:(e,t)=>n=>{n=t.normalizeType(n);const r=e.types[X.yx],i=t.keyFieldForType(X.yx);return r.list.find((e=>{const r=t.normalizeType(e[i]);return r===n||r.endsWith(`.${n}`)}))},schemaName:(e,t)=>n=>{n=t.normalizeType(n);const r=e.types[X.yx],i=t.keyFieldForType(X.yx),o=r.list.find((e=>{const r=t.normalizeType(e[i]);return r===n||r.endsWith(`.${n}`)}));if(!o)return;const a=Array.isArray(o)?o:[o],s=a.map((e=>e[i])).sort(((e,t)=>e.length-t.length));return s[0]?s[0]:n},schemaFor:(e,t)=>(n,r=!1,i=!0)=>{const o=e.types[X.yx];if(n=t.normalizeType(n),!o){if(i)throw new Error("Schemas aren't loaded yet");return null}const a=o.map.get(n);if(!a&&r){const e=t.schemaName(n);if(e)return t.schemaFor(e)}return a},defaultFor:(e,t)=>(e,n,r=null)=>{let i;if(r)if(n.requiresResourceFields)i=r[e]?.resourceFields||{};else{const n=t["schemaFor"](e);i=n?.resourceFields||{}}else r=n.schemaDefinitions||{},i=n.resourceFields||{};const o={};for(const a in i){const e=i[a];if(!e)continue;const s=(0,Ac.fs)(e.type),l=(0,Ac.Cd)("map",s,e),c=(0,Ac.Cd)("array",s,e),u=(0,Ac.Cd)("reference",s);l||"map"===s||"json"===s?o[a]=t.defaultFor(s,n,r):c||"array"===s?o[a]=[]:u?o[a]=void 0:Ac.xs.includes(s)?"undefined"===typeof e["default"]?o[a]=void 0:o[a]=e["default"]:o[a]=t.defaultFor(s,n,r)}return o},canList:(e,t)=>e=>{const n=t.schemaFor(e);return n&&n.hasLink("collection")},typeRegistered:(e,t)=>n=>(n=t.normalizeType(n),!!e.types[n]),typeEntry:(e,t)=>n=>(n=t.normalizeType(n),e.types[n]),haveAll:(e,t)=>n=>{n=t.normalizeType(n);const r=e.types[n];return r&&r.haveAll||!1},haveAllNamespace:(e,t)=>(n,r)=>{if(!r)return!1;n=t.normalizeType(n);const i=e.types[n];return!!i&&i.haveNamespace===r},havePaginatedPage:(e,t)=>(n,r)=>{if(!r.pagination)return!1;n=t.normalizeType(n);const i=e.types[n];if(i?.havePage){const{namespace:e,pagination:t}=i.havePage.request,{namespace:n,pagination:o}={namespace:r.namespaced,pagination:r.pagination};return i.havePage&&e===n&&eu.paginationEqual(t,o)}return!1},haveNamespace:(e,t)=>n=>(n=t.normalizeType(n),e.types[n]?.haveNamespace||null),havePage:(e,t)=>n=>(n=t.normalizeType(n),e.types[n]?.havePage||null),haveSelector:(e,t)=>(n,r)=>{n=t.normalizeType(n);const i=e.types[n];return i&&i.haveSelector[r]||!1},normalizeType:()=>e=>(0,Tc.AZ)(e),keyFieldForType:()=>e=>(0,Tc.BZ)(e),urlFor:LI,urlOptions:()=>(e,t,n)=>e,storeName:e=>e.config.namespace,defaultModel:()=>()=>{},classify:(e,t,n)=>t=>(0,II.$)(e.config.namespace,t?.type,t?.metadata?.name,n)||_h.Ay,cleanResource:()=>(e,t)=>t,isClusterStore:e=>e.config.isClusterStore,loadCounter:(e,t)=>n=>(n=t.normalizeType(n),e.types[n]?e.types[n].loadCounter:0),gcIgnoreTypes:()=>({}),count:(e,t,n,r)=>e=>{let n=e;const{name:i,count:o}=n;if(!i)throw new Error(`Resource type required to calc count: ${JSON.stringify(e)}`);if(!o){const e=t.schemaFor(i),r=t.all(X.i2)?.[0]?.counts||{},o=r[i];n={count:o?o.summary.count||0:null,byNamespace:o?o.namespaces:{},revision:o?o.revision:null,namespaced:e?.attributes?.namespaced}}const a=n?.namespaced&&!r.isAllNamespaces?Object.keys(r.activeNamespaceCache||{}):[];return PI(n,a.length?a:null)},generation:(e,t)=>n=>{n=t.normalizeType(n);const r=e.types[n];if(r)return r.generation},paginationEnabled:(e,t,n,r)=>(t=null)=>{const n=e.config.namespace,i=t?{id:t}:null;return eu.isEnabled({rootGetters:r},{store:n,resource:i})}};const FI={strict:!1,namespaced:!0,state(){return{...BI()}},getters:{...MI},mutations:{...OI.Ay},actions:{...Kc}},BI=(e,t,n)=>({config:{baseUrl:t,namespace:e,isClusterStore:n},types:{},$ctx:(0,i.markRaw)({})});const $I="CSRF";var jI=o(71972),UI=o.n(jI),VI=o(9776);function KI(e,t,n){return(t=HI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function HI(e){var t=GI(e,"string");return"symbol"==typeof t?t:t+""}function GI(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 zI={WATCH_PENDING:"pending",WATCH_REQUESTED:"requested",WATCHING:"watching",STOPPED:"stopped",REMOVE_PENDING:"removed_pending",REMOVE_REQUESTED:"removed_requested"},XI=({resourceType:e,type:t,namespace:n,id:r,selector:i}={})=>[e||t,n,r,i].filter((e=>!!e)).join("/"),qI=e=>{const{resourceType:t,namespace:n,id:r,selector:i}=e,o={resourceType:t,id:r,namespace:n,selector:i};return XI(o)},{WATCH_PENDING:WI,WATCH_REQUESTED:YI,WATCHING:QI,REMOVE_PENDING:JI,REQUESTED_REMOVE:ZI}=zI;class eD extends Ut{constructor(e,t=!0,n=null,r=null,i=null,o){super(e,t,n,r,i,!0),KI(this,"watches",{}),KI(this,"status",""),KI(this,"debugWatcher",!1),KI(this,"csrf",void 0),this.baseUrl=self.location.origin+e.replace("subscribe",""),this.csrf=o,this.addEventListener(Ot,(e=>{this.trace(Ot,": processing previously requested or watched resources"),Object.values(this.watches).forEach((e=>{const{status:t,error:n}=e,r=XI(e);[WI,YI,QI].includes(t)&&!n?(this.trace(Ot,": re-watching previously required resource",r,t),this.watches[r].status=WI,this.watch(r)):[JI].includes(t)&&(this.trace(Ot,": un-watching previously watched resource",r,t),this.watches[r].status=JI,this.unwatch(r))}))}))}trace(...e){this.debugWatcher&&VI.info("Resource Watcher:",...e)}setDebug(e){this.debugWatcher=!!e}watchExists(e){return!!this.watches?.[e]}watch(e,t,n,r={},i){const{resourceType:o,id:a,namespace:s,selector:l,force:c}=r;if(this.trace("watch:","requested",e),[YI,QI].includes(this.watches?.[e]?.status))return void this.trace("watch:","already requested or watching, aborting",e);if(!c&&this.watches?.[e]?.error)return void(this.watches?.[e]?.error.reason!==jt&&this.trace("watch:","in error, aborting",e));const u=o||this.watches?.[e]?.resourceType,d=a||this.watches?.[e]?.id,h=s||this.watches?.[e]?.namespace,p=l||this.watches?.[e]?.selector,f=this.watches?.[e]?.skipResourceVersion||i,m={resourceType:u,id:d,namespace:h,selector:p},g=n||this.watches?.[e]?.resourceVersionTime,v=t||this.watches?.[e]?.resourceVersion,y=this.send(JSON.stringify({...m,resourceVersion:f?void 0:v}));this.watches[e]={...m,status:y?zI.WATCH_REQUESTED:zI.WATCH_PENDING,resourceVersion:v,resourceVersionTime:g,skipResourceVersion:f}}unwatch(e){const t=this.watches?.[e]||{},{resourceType:n,id:r,namespace:i,selector:o}=t,a={resourceType:n,id:r,namespace:i,selector:o};if(n&&this.watches[e].status!==ZI){const t=this.send(JSON.stringify({...a,stop:!0}));this.watches[e].status=t?ZI:JI}}_onmessage(e){const{name:t,resourceType:n,data:{type:r},id:i,namespace:o,selector:a,data:s}=JSON.parse(e.data),l=XI({resourceType:n,type:r,id:i,namespace:o,selector:a});if("resource.start"===t&&this.watches?.[l]?.status===YI)this.watches[l].status=QI,delete this.watches[l].error;else if("resource.stop"===t&&this.watches?.[l])this.watches[l]={error:this.watches[l]?.error};else if("resource.error"===t){const e=s?.error?.toLowerCase();this.watches[l]&&e.includes("watch not allowed")?this.watches[l].error={type:n,reason:Ft}:this.watches[l]&&e.includes("failed to find schema")?this.watches[l].error={type:n,reason:Bt}:e.includes("too old")&&(delete this.watches[l].resourceVersion,delete this.watches[l].resourceVersionTime,delete this.watches[l].skipResourceVersion,this.watches[l].error={type:n,reason:jt},this.dispatchEvent(new CustomEvent("resync",{detail:{data:{resourceType:n,id:i,namespace:o,selector:a}}}))),this.trace("_onmessage:","new error",this.watches[l].error)}super._onmessage(e)}}var tD=o(35038),nD=o(26711),rD=o(9776);const iD=2500,oD={store:"",flushTimer:void 0,queue:[],schemas:{}};function aD(){oD.queue.forEach((e=>{const t=(0,nD.en)(e),n=oD.schemas[e.id];if(!n||n&&n!==t){oD.schemas[e.id]=t;const n={data:e,resourceType:X.yx,type:"resource.change"};sD(n)}})),oD.queue=[],oD.flushTimer=setTimeout(aD,iD)}function sD(e){self.postMessage({load:e})}function lD(e){self.postMessage({redispatch:e})}oD.flushTimer=setTimeout(aD,iD);const cD={watch:e=>{lD({send:e})},createWatcher:e=>{lD({subscribe:e})}},uD={onmessage:e=>{const t=Object.keys(e?.data);t.forEach((t=>{uD[t]?uD[t](e?.data[t]):rD.warn("no associated action for:",t)}))},initWorker:({storeName:e})=>{oD.store=e},destroyWorker:()=>{clearTimeout(oD.flushTimer),self.postMessage({destroyWorker:!0})},loadSchemas:e=>{e.forEach((e=>{(0,Rc.P)(e),oD.schemas[e.id]=(0,nD.en)(e)}))},updateSchema:e=>{oD.queue.push(e)},removeSchema:e=>{oD.queue=oD.queue.filter((t=>t.id!==e)),delete oD.schemas[e]},...cD};function dD(e,t,n){return(t=hD(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hD(e){var t=pD(e,"string");return"symbol"==typeof t?t:t+""}function pD(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)}self.onmessage=uD.onmessage;class fD{constructor(e){dD(this,"resources",{}),dD(this,"type",void 0),dD(this,"keyField",void 0),this.type=(0,Tc.AZ)("counts"===e?X.i2:e),this.keyField=(0,Tc.BZ)(this.type)}load(e=[]){for(let t=0;t<e.length;t++){const n=e[t];this.type===X.yx&&(0,Rc.w)(n);const r=n[this.keyField];this.resources[r]=(0,nD.en)(n)}return this}change(e,t){this.type===X.yx&&(0,Rc.w)(e);const n=this.resources[e[this.keyField]]||{},r=(0,nD.en)(e);n!==r&&(this.resources[e[this.keyField]]=e,t())}create(e,t){this.change(e,t)}remove(e,t){this.resources[e]&&(delete this.resources[e],t())}}var mD=o(9776);const gD={},vD={watcher:void 0,store:"",workerQueue:[],batchChanges:{},debugWorker:!1},yD=(...e)=>{vD.debugWorker&&mD.info("Advanced Worker:",...e)};yD("created");const bD=setInterval((()=>{Object.keys(vD.batchChanges).length&&(self.postMessage({batchChanges:vD.batchChanges}),vD.batchChanges={})}),5e3),_D=e=>{const{resourceType:t,data:{type:n},data:r}=e,i=t||n,o=(0,Tc.AZ)("counts"===i?X.i2:i),a=(0,Tc.BZ)(o);return o===X.yx&&(0,Rc.w)(r),{type:o,id:r[a],data:r}},wD=(e,t,n)=>{yD("createWatcher",e,t),self.postMessage({[e]:{type:t.type,detail:t.detail,srcElement:{disconnectedAt:n.disconnectedAt,url:n.url}}})},ED=e=>{vD.workerQueue=vD.workerQueue.filter((t=>{const[,n]=Object.entries(t)[0],r=qI(n);return e!==r}))},SD={loadSchemas:e=>{gD[X.yx]||(gD[X.yx]=new fD(X.yx)),gD[X.yx].load(e)},createWatcher:e=>{yD("createWatcher",e);const{metadata:t,maxTries:n,url:r,csrf:i}=e;if(!vD.watcher){vD.watcher=new eD(r,!0,null,null,n,i),vD.watcher.addEventListener(Dt,(e=>{const t=e.detail;if(t.data){const e=JSON.parse(t.data);e.name&&(xD[e.name]?xD[e.name](e):xD.dispatch(e))}})),vD.watcher.addEventListener("resync",(e=>{self.postMessage({redispatch:{resyncWatch:e.detail.data}})})),vD.watcher.addEventListener(Pt,(e=>{wD(Pt,e,vD.watcher)})),vD.watcher.addEventListener(Mt,(e=>{wD(Mt,e,vD.watcher)})),vD.watcher.setDebug(vD.debugWorker),vD.watcher.connect(t);while(vD.workerQueue.length>0){yD("createWatcher","flushing workerQueue",vD.workerQueue);const e=vD.workerQueue.shift(),[t,n]=Object.entries(e)[0];SD[t]?SD[t](n):mD.warn("no associated action for:",t)}}},watch:e=>{yD("watch",e);const t=qI(e);if(e.stop)return void SD.unwatch(t);if(!e.force&&vD.watcher?.watches[t]?.error)return;if(!vD.watcher)return void vD.workerQueue.push({watch:e});const{resourceType:n,namespace:r,id:i,selector:o,resourceVersion:a}=e,s=a?Date.now():void 0,l=[X.yx,X.i2].includes(n),c={resourceType:n,id:i,namespace:r,selector:o,force:e.force};vD.watcher.watch(t,a,s,c,l)},unwatch:e=>{yD("unwatch",e),ED(e),vD.watcher&&vD.watcher.unwatch(e)},initWorker:({storeName:e})=>{yD("initWorker",e),vD.store=e},destroyWorker:()=>{function e(){delete self.onmessage,self.postMessage({destroyWorker:!0})}yD("destroyWorker"),clearInterval(bD),vD.watcher?vD.watcher?.disconnect().then(e):e()},toggleDebug:({on:e})=>{vD.debugWorker=!!e,vD.watcher.setDebug(!!e)},updateBatch(e,t,n){vD.batchChanges[e]||(vD.batchChanges[e]={}),vD.batchChanges[e][t]=n}},xD={"resource.change":e=>{const{type:t,id:n,data:r}=_D(e);gD[t]?gD[t].change(r,(()=>SD.updateBatch(t,n,r))):SD.updateBatch(t,n,r)},"resource.create":e=>{const{type:t,id:n,data:r}=_D(e);gD[t]?gD[t].create(r,(()=>SD.updateBatch(t,n,r))):SD.updateBatch(t,n,r)},"resource.start":e=>{},"resource.remove":e=>{const{type:t,id:n}=_D(e);gD[t]?gD[t].remove(n,(()=>SD.updateBatch(t,n,{}))):SD.updateBatch(t,n,{})},"resource.stop":e=>{yD("resource.stop",e);const t=qI(e);ED(t),vD.watcher?.watches[t]?.error||xD.dispatch({...e,advancedWorker:!0})},"resource.error":e=>{mD.warn(`Resource error [${vD.store}]`,e.resourceType,":",e.data.error)},dispatch:e=>{self.postMessage({dispatch:e})}};self.onmessage=e=>{const t=Object.keys(e?.data);t.forEach((t=>{SD[t]?SD[t](e?.data[t]):mD.warn("no associated action for:",t)}))};const kD={WAITING:"waiting",DESTROY_MOCK:"destroy",BASIC:"basic",ADVANCED:"advanced"};class AD{typeIsNamespaced({getters:e},t){return e.haveNamespace(t)?.length>0}typeIsPaginated({getters:e},t){return!!e.havePage(t)}filteredNamespaces({rootGetters:e}){return e.activeNamespaceCache}subscribeNamespace(e){if(!qc.isApplicable({namespaced:e,type:"n/a"})||!e.length)return e}validChange({getters:e,rootGetters:t},n,r){if(this.typeIsNamespaced({getters:e},n)){const e=this.filteredNamespaces({rootGetters:t});if(!e[r.metadata.namespace])return!1}if(this.typeIsPaginated({getters:e},n)){const t=e["all"](n);return!!t.find((e=>e.id===r.id))}return!0}validateBatchChange({getters:e,rootGetters:t},n){const r=this.filteredNamespaces({rootGetters:t}),i={namespaced:{},paginated:{}};return Object.entries(n).forEach((([t,n])=>{if(void 0===i.namespaced[t]&&(i.namespaced[t]=this.typeIsNamespaced({getters:e},t)),i.namespaced[t]){const i=e.schemaFor(t);if(!i?.attributes?.namespaced)return;Object.keys(n).forEach((e=>{const t=e.split("/")[0];t&&r[t]||delete n[e]}))}if(void 0===i.paginated[t]&&(i.paginated[t]=this.typeIsPaginated({getters:e},t)),i.paginated[t]){const r=e["all"](t);Object.keys(n).forEach((e=>{r.find((t=>t.id===e))||delete n[e]}))}})),n}}var ND=new AD,TD=o(9776);const CD=3e3,RD={},OD=[wh.e.CLUSTER,wh.e.RANCHER,wh.e.MANAGEMENT],ID=(e,t)=>t.$workers[e]?.waitingForDestroy&&t.$workers[e].waitingForDestroy(),DD=(e,t)=>(0,tD.f)((()=>ID(e,t)||!!t.getters["management/byId"](X.yx,X.Mc.SETTING))),LD=(e,t)=>(0,tD.f)((()=>ID(e,t)||!!t.getters["management/byId"](X.Mc.SETTING,q.HG.UI_PERFORMANCE))),PD=e=>{const{rootGetters:t,getters:n}=e,r=n.storeName,i=t.clusterId;if(!OD.includes(r)||i===wh.w&&r===wh.e.CLUSTER)return!1;const o=zc(t);return o?.advancedWorker.enabled};async function MD(e,t){const{getters:n,dispatch:r}=t,i=n.storeName;if(e.$workers=e.$workers||{},!OD.includes(i))return;if(e.$workers[i]||(e.$workers[i]={postMessage:t=>{"destroyWorker"!==Object.keys(t)?.[0]?RD[i]?RD[i].push(t):RD[i]=[t]:e.$workers[i].mode=kD.DESTROY_MOCK},mode:kD.WAITING,waitingForDestroy:()=>e.$workers[i]?.mode===kD.DESTROY_MOCK,destroy:()=>{delete e.$workers[i]}}),await DD(i,e),await LD(i,e),e.$workers[i].waitingForDestroy())return void e.$workers[i].destroy();const o=PD(t),a={load:e=>{BD(t,e,!0,"Change")},destroyWorker:()=>{e.$workers&&(e.$workers[i].terminate(),delete e.$workers[i])},batchChanges:e=>{r("batchChanges",ND.validateBatchChange(t,e))},dispatch:e=>{r(`ws.${e.name}`,e)},redispatch:e=>{Object.entries(e).forEach((([e,t])=>{r(e,t)}))},[Pt]:e=>{r("error",e)},[Mt]:e=>{r("error",e)}};if(!e.$workers[i]||e.$workers[i].mode===kD.WAITING){const t=o?kD.ADVANCED:kD.BASIC,n=e.steveCreateWorker(t);e.$workers[i]=n,n.postMessage({initWorker:{storeName:i}}),e.$workers[i].onmessage=e=>{const t=Object.keys(e?.data);t.forEach((t=>{a[t](e?.data[t])}))}}while(RD[i]?.length){const t=RD[i].shift(),n=(0,Qc.yo)(t);e.$workers[i].postMessage(n)}}function FD(e,t){const n=e.resourceType||e.type,r=t.resourceType||t.type;return n===r&&((e.id===t.id||!e.id&&!t.id)&&((e.namespace===t.namespace||!e.namespace&&!t.namespace)&&(e.selector===t.selector||!e.selector&&!t.selector)))}function BD({getters:e,state:t,rootGetters:n},{data:r,revision:i},o,a){const s=e.normalizeType(r.type),l=e.typeEntry(s);if(l&&(l.revision=Math.max(l.revision,parseInt(i,10)),ND.validChange({getters:e,rootGetters:n},s,r)))if(o)t.queue.push({action:"dispatch",event:"load",body:r});else{const n=e.byId(r.type,r.id);n&&t.queue.push({action:"commit",event:"remove",body:n}),s===X.yx&&t.queue.push({action:"commit",event:"forgetType",body:r.id})}}function $D(e){return zc(e)?.disableWebsocketNotification}const jD={async subscribe(e,t){const{state:n,commit:r,dispatch:i,getters:o,rootGetters:a}=e;if(a["isSingleProduct"]?.disableSteveSockets)return;let s=n.socket;r("setWantSocket",!0),n.debugSocket&&TD.info(`Subscribe [${o.storeName}]`);const l=`${n.config.baseUrl}/subscribe`,c=$D(a)?null:3,u=(0,Qc.Jt)(t,"metadata");PD(e)?(this.$workers[o.storeName]||await MD(this,e),this.$workers[o.storeName].postMessage({createWatcher:{metadata:u,url:`${n.config.baseUrl}/subscribe`,csrf:this.$cookies.get($I,{parseJSON:!1}),maxTries:c}})):s?(s.setAutoReconnect(!0),s.setUrl(l),s.connect(u)):(s=new Ut(`${n.config.baseUrl}/subscribe`,!0,null,null,c),r("setSocket",s),s.addEventListener(Ot,(e=>{i("opened",e)})),s.addEventListener(It,(e=>{i("closed",e)})),s.addEventListener(Pt,(e=>{i("error",e)})),s.addEventListener(Mt,(e=>{i("error",e)})),s.addEventListener(Dt,(e=>{const t=e.detail;if(t.data){const e=JSON.parse(t.data);e.name&&i(`ws.${e.name}`,e)}})),s.connect(u))},unsubscribe({commit:e,getters:t,state:n}){const r=n.socket;e("setWantSocket",!1);const i=[],o=(this.$workers||{})[t.storeName];return o&&(o.postMessage({destroyWorker:!0}),i.push((0,tD.f)((()=>!this.$workers[t.storeName]),"Worker is destroyed"))),r&&i.push(r.disconnect()),Promise.all(i)},watch({state:e,dispatch:t,getters:n,rootGetters:r},i){e.debugSocket&&TD.info(`Watch Request [${n.storeName}]`,JSON.stringify(i));let{type:o,selector:a,id:s,revision:l,namespace:c,stop:u,force:d}=i;if(c=ND.subscribeNamespace(c),o=n.normalizeType(o),r["type-map/isSpoofed"](o))return void(e.debugSocket&&TD.info("Will not Watch (type is spoofed)",JSON.stringify(i)));const h=n.schemaFor(o,!1,!1);if(h?.attributes?.verbs?.includes&&!h.attributes.verbs.includes("watch"))return void(e.debugSocket&&TD.info("Will not Watch (type does not have watch verb)",JSON.stringify(i)));const p=n.inError(i);if(!u&&!d&&p)return void(p!==jt&&TD.error(`Aborting Watch Request [${n.storeName}]. Watcher in error (${p})`,JSON.stringify(i)));if(!u&&n.watchStarted({type:o,id:s,selector:a,namespace:c}))return void(e.debugSocket&&TD.debug(`Already Watching [${n.storeName}]`,{type:o,id:s,selector:a,namespace:c}));"undefined"!==typeof l||eu.isSteveCacheEnabled({rootGetters:r})||(l=n.nextResourceVersion(o,s));const f={resourceType:o};l&&(f.resourceVersion=`${l}`),c&&(f.namespace=c),u&&(f.stop=!0),s&&(f.id=s),a&&(f.selector=a);const m=this.$workers?.[n.storeName]||{};return m.mode===kD.ADVANCED||m.mode===kD.WAITING?(d&&(f.force=!0),void m.postMessage({watch:f})):t("send",f)},unwatch(e,{type:t,id:n,namespace:r,selector:i}){const{commit:o,getters:a,dispatch:s}=e;if(a["schemaFor"](t)){r=ND.subscribeNamespace(r);const l={type:t,id:n,namespace:r,selector:i,stop:!0};PD(e)?s("watch",l):a["watchStarted"](l)&&(o("setWatchStopped",l),s("watch",l),o("clearFromQueue",t))}},"ws.ping"({getters:e,dispatch:t},n){if("management"===e.storeName){const r=n?.data?.version||null;t("updateServerVersion",r,{root:!0}),TD.info(`Ping [${e.storeName}] from ${r||"unknown version"}`)}}},UD={debug(e,t,n){e.debugSocket=!1!==t,n&&this.$workers[n]&&this.$workers[n].postMessage({toggleDebug:!1!==t})}},VD={async flush({state:e,commit:t,dispatch:n,getters:r}){const i=e.queue;let o=[];if(!i.length)return;const a=(new Date).getTime();e.queue=[],e.debugSocket&&TD.debug(`Subscribe Flush [${r.storeName}]`,i.length,"items");for(const{action:s,event:l,body:c}of i)if("dispatch"===s&&"load"===l)o.push(c);else if(o.length&&(await n("loadMulti",o),o=[]),"dispatch"===s)await n(l,c);else{if("commit"!==s)throw new Error("Invalid queued action");t(l,c)}o.length&&await n("loadMulti",o),e.debugSocket&&TD.debug(`Subscribe Flush [${r.storeName}] finished`,(new Date).getTime()-a,"ms")},rehydrateSubscribe({state:e,dispatch:t}){e.wantSocket&&!e.socket&&t("subscribe")},reconnectWatches({state:e,getters:t,commit:n,dispatch:r}){const i=[];for(const o of e.started.slice())TD.info(`Reconnect [${t.storeName}]`,JSON.stringify(o)),t.schemaFor(o.type)&&(n("setWatchStopped",o),delete o.revision,i.push(r("watch",o)));return Promise.all(i)},async resyncWatch({state:e,getters:t,dispatch:n,commit:r},i){const{resourceType:o,namespace:a,id:s,selector:l}=i;TD.info(`Resync [${t.storeName}]`,i);const c={force:!0,forceWatch:!0};if(s)return void await n("find",{type:o,id:s,opt:{...c,namespaced:a,revision:null}});let u,d;l?(u=t["matching"](o,l).slice(),d=await n("findMatching",{type:o,selector:l,opt:c})):(u=t["all"](o).slice(),a&&(u=u.filter((e=>e.metadata?.namespace===a))),d=await n("findAll",{type:o,watchNamespace:a,opt:c}));const h={};for(const p of d)h[p.id]=!0;for(const p of u)h[p.id]||(e.debugSocket&&TD.info(`Remove stale [${t.storeName}]`,o,p.id),r("remove",p))},async opened({commit:e,dispatch:t,state:n,getters:r,rootGetters:i},o){n.debugSocket&&TD.info(`WebSocket Opened [${r.storeName}]`);const a=o.currentTarget,s=o?.detail?.tries,l=i["i18n/t"],c=$D(i);if(this.$socket=a,n.queue||(n.queue=[]),n.queueTimer||(n.flushQueue=async()=>{n.queue.length&&await t("flush"),n.queueTimer=setTimeout(n.flushQueue,1e3)},n.flushQueue()),a.hasReconnected){await t("reconnectWatches");const e=i["growl/find"]({key:"url",val:a.url});e&&t("growl/remove",e.id,{root:!0}),s>1&&!c&&t("growl/success",{title:l("growl.reconnected.title"),message:l("growl.reconnected.message",{url:this.$socket.url,tries:s})},{root:!0})}for(const u of n.pendingFrames.slice())e("dequeuePendingFrame",u),t("sendImmediate",u)},closed({state:e,getters:t}){e.debugSocket&&TD.info(`WebSocket Closed [${t.storeName}]`),clearTimeout(e.queueTimer),e.queueTimer=null},error({getters:e,state:t,dispatch:n,rootGetters:r},i){clearTimeout(t.queueTimer),t.queueTimer=null;const o=$D(r);if(!o){const o=(0,sn.ZD)(r["prefs/get"](M.DX)),a=(0,sn.ZD)(r["prefs/get"](M.G$)),s=i?.srcElement?.disconnectedAt||Date.now(),l=`${UI()(s).format(`${o} ${a}`)}`,c=i?.srcElement?.url,u=t?.socket?.tries,d=r["i18n/t"],h=r["growl/find"]({key:"url",val:c});i.type===Pt?(h&&n("growl/remove",h.id,{root:!0}),n("growl/error",{title:d("growl.connectError.title"),message:d("growl.connectError.message",{url:c,time:l,tries:u},{raw:!0}),icon:"error",earliestClose:s+CD,url:c},{root:!0})):i.type===Mt?(h&&n("growl/remove",h.id,{root:!0}),n("growl/error",{title:d("growl.disconnectError.title"),message:d("growl.disconnectError.message",{url:c,time:l,tries:u},{raw:!0}),icon:"error",earliestClose:s+CD,url:c},{root:!0})):TD.error(`WebSocket Connection Error [${e.storeName}]`,i.detail)}},send({state:e,commit:t},n){if(e.socket){const t=e.socket.send(JSON.stringify(n));if(t)return}t("enqueuePendingFrame",n)},sendImmediate({state:e},t){if(e.socket)return e.socket.send(JSON.stringify(t))},"ws.resource.start"({state:e,getters:t,commit:n,dispatch:r},i){e.debugSocket&&TD.info(`Resource start: [${t.storeName}]`,i);const o={type:i.resourceType,namespace:i.namespace,id:i.id,selector:i.selector};e.started.filter((e=>{if(e.type===o.type&&e.namespace!==o.namespace)return!0})).forEach((e=>{r("unwatch",e)})),n("setWatchStarted",o)},"ws.resource.error"({getters:e,commit:t,dispatch:n},r){TD.warn(`Resource error [${e.storeName}]`,r.resourceType,":",r.data.error);const i=r.data?.error?.toLowerCase();i.includes("watch not allowed")?t("setInError",{msg:r,reason:Ft}):i.includes("failed to find schema")?t("setInError",{msg:r,reason:Bt}):i.includes("too old")?(t("setInError",{msg:r,reason:jt}),n("resyncWatch",r)):i.includes("the server does not allow this method on the requested resource")&&t("setInError",{msg:r,reason:$t})},"ws.resource.stop"({state:e,getters:t,commit:n,dispatch:r},i){const o=i.resourceType,a={type:o,id:i.id,namespace:i.namespace,selector:i.selector};if(e.debugSocket&&TD.info(`Resource Stop [${t.storeName}]`,o,i),!o)return void TD.error(`Resource Stop [${t.storeName}]. Received resource.stop with an empty resourceType, aborting`,i);const s=i.advancedWorker,l=!s,c=l?t["watchStarted"](a):s;t["schemaFor"](o)&&c&&(l&&n("setWatchStopped",a),r("watch",a))},"ws.resource.create"(e,t){e.state.debugSocket&&TD.info(`Resource Create [${e.getters.storeName}]`,t.resourceType,t),BD(e,t,!0,"Create")},"ws.resource.change"(e,t){const n=t.data,r=n.type;if(n.message&&!n.id)return;if(r===X.yx){const t=(this.$workers||{})[e.getters.storeName];if(t)return void t.postMessage({updateSchema:n})}BD(e,t,!0,"Change");const i=e.rootGetters["type-map/optionsFor"](r);if(i?.alias?.length>0){const t=i?.alias||[];t.map((t=>{e.state.queue.push({action:"dispatch",event:"load",body:{...n,type:t}})}))}},"ws.resource.remove"(e,t){const n=t.data,r=n.type;if(e.state.debugSocket&&TD.info(`Resource Remove [${e.getters.storeName}]`,r,t),r===X.yx){const t=(this.$workers||{})[e.getters.storeName];t&&t.postMessage({removeSchema:n.id})}BD(e,t,!1,"Remove");const i=e.rootGetters["type-map/optionsFor"](r);if(i?.alias?.length>0){const t=i?.alias||[];t.map((t=>{const r=e.getters.byId(t,n.id);e.state.queue.push({action:"commit",event:"remove",body:r})}))}}},KD={setSocket(e,t){e.socket=t},setWantSocket(e,t){e.wantSocket=t},enqueuePendingFrame(e,t){e.pendingFrames.push(t)},dequeuePendingFrame(e,t){(0,Yc.Gj)(e.pendingFrames,t)},setWatchStarted(e,t){const n=e.started.find((e=>FD(t,e)));n||(0,Yc.PG)(e.started,t),delete e.inError[XI(t)]},setWatchStopped(e,t){const n=e.started.find((e=>FD(t,e)));n?(0,Yc.Gj)(e.started,n):TD.warn("Tried to remove a watch that doesn't exist",t)},setInError(e,{msg:t,reason:n}){const r=XI(t);e.inError[r]=n},clearInError(e,t){const n=XI(t);delete e.inError[n]},resetSubscriptions(e){(0,Yc.IU)(e.started),(0,Yc.IU)(e.pendingFrames),(0,Yc.IU)(e.queue),clearTimeout(e.queueTimer),e.deferredRequests={},e.queueTimer=null},clearFromQueue(e,t){e.queue=e.queue.filter((e=>e.body?.type!==t))}},HD={inError:e=>t=>e.inError[XI(t)],watchStarted:e=>t=>!!e.started.find((e=>FD(t,e))),nextResourceVersion:(e,t)=>(n,r)=>{n=(0,Tc.AZ)(n);let i=0;if(r){const e=t["byId"](n,r);i=parseInt(e?.metadata?.resourceVersion,10)}if(!i){const t=e.types[n];if(!t)return null;i=t.revision;for(const e of t.list)if(e&&e.metadata){const t=parseInt(e.metadata.resourceVersion,10);i=Math.max(i,t)}}return i||null}},GD={...jD,...VD},zD={...UD,...KD},XD={...HD};var qD=o(38991),WD=o(73474),YD=o(79325),QD=o(93738),JD=o(1775),ZD=o(9776);const eL={NORMAN:"norman",STEVE:"steve",BY_TYPE:"byType"},tL={[X.i2]:!0,[X.CU]:!0,[X.yx]:!0,[X.UI.NAV_LINK]:!0},nL=new RegExp("(/v1)|(/k8s/clusters/[a-z0-9-]+/v1)");var rL={urlOptions:()=>(e,t,n)=>{t=t||{};const r=(0,mt.qg)(e),i=nL.test(r.path),o=su.createParamsForPagination(n,t);if(o)e+=""+((e.includes("?")?"&":"?")+o);else{if(t.labelSelector&&(e+=`${e.includes("?")?"&":"?"}labelSelector=${t.labelSelector}`),t.filter){e+=""+(e.includes("?")?"&":"?");const n=Object.keys(t.filter);n.forEach((n=>{let r=t.filter[n];(0,Yc.cy)(r)||(r=[r]),i&&(e+=""+(e.includes("filter=")?"&":"filter="));const o=r.map((e=>`${encodeURI(n)}=${encodeURI(e)}`)),a=e.charAt(e.length-1),s=["&","?","="].includes(a)?"":"&";e+=`${s}${o.join("&")}`}))}const n=qc.checkAndCreateParam(t);n&&(e+=""+((e.includes("?")?"&":"?")+n));const r=t.limit;r&&(e+=`${e.includes("?")?"&":"?"}limit=${r}`);const o=t.sortBy,a=t.sortOrder;o&&(i?e+=`${e.includes("?")?"&":"?"}sort=${("desc"===a?"-":"")+encodeURI(o)}`:(e+=`${e.includes("?")?"&":"?"}sort=${encodeURI(o)}`,a&&(e+=`${e.includes("?")?"&":"?"}order=${encodeURI(a)}`)))}if(i){if(!Array.isArray(t?.excludeFields)){const e=["metadata.managedFields"];t.excludeFields=Array.isArray(t?.omitExcludeFields)?e.filter((e=>!e.includes(t.omitExcludeFields))):e}const n=t.excludeFields.map((e=>`exclude=${e}`)).join("&");e+=`${e.includes("?")?"&":"?"}${n}`}return e},urlFor:(e,t)=>(n,r,i)=>{let o=LI(e,t)(n,r,i);if(!i?.url&&i?.namespaced&&!qc.isApplicable(i)){const e=new URL(o),t=e.pathname;t?.length&&"/"===t[t.length-1]&&(e.pathname=t.substring(0,t.length-1));const n=e.pathname.split("/");r?(n.splice(n.length-1,0,i.namespaced),e.pathname=n.join("/")):e.pathname=`${e.pathname.split("/").join("/")}/${i.namespaced}`,o=e.toString()}return o},defaultModel:e=>t=>{const n=e.config.modelBaseClass||eL.BY_TYPE.STEVE;return n===eL.BY_TYPE?t?.type?.startsWith("management.cattle.io.")||t?.type?.startsWith("project.cattle.io.")?WD.A:qD.A:n===eL.NORMAN?YD.A:qD.A},classify:(e,t,n)=>t=>{const r=(0,II.$)(e.config.namespace,t?.type,t?.metadata?.name,n);if(r)return r;const i=e.config.modelBaseClass||Nc.vX;return i===Nc.vX?t?.type?.startsWith("management.cattle.io.")||t?.type?.startsWith("project.cattle.io.")?WD.A:qD.A:i===eL.NORMAN?YD.A:qD.A},cleanResource:()=>(e,t)=>{if(t?.type===X.i2&&e)return t.counts={...e.counts,...t.counts},t;if(e?.cleanResource&&"function"===typeof e.cleanResource)return e.cleanResource(t);const n=Object.getPrototypeOf(Object.getPrototypeOf(e))?.constructor;return n===WD.A?(0,WD.T)(t):t},podsByNamespace:e=>t=>{const n=e.podsByNamespace[t];return n?.list||[]},gcIgnoreTypes:()=>tL,currentGeneration:e=>t=>{t=(0,Tc.AZ)(t);const n=e.types[t];return n?n.generation:null},pathExistsInSchema:(e,t)=>(e,n)=>{const r=t.schemaFor(e);if(r.requiresResourceFields&&!r.hasResourceFields)return ZD.warn(`pathExistsInSchema requires schema ${r.id} to have resources fields via schema definition but none were found. has the schema 'fetchResourceFields' been called?`),!1;const i=r.requiresResourceFields?r.schemaDefinitions:null,o=(0,sn.jg)(n);let a=r;while(o.length){const n=o.shift(),s=a.resourceFields?.[n];if(e=s?.type,!e)return!1;if(o.length&&(e=(0,QD.parseType)(e,s).pop(),a=i?i?.[e]:t.schemaFor(e),!r))return!1}return!0},headersFor:(e,t,n,r)=>({getters:e,state:t},{schema:n,pagination:i})=>{if(i)return(0,Oc.Bm)({state:t,getters:e,rootGetters:r},{headers:t.paginationHeaders,typeOptions:e["optionsFor"](n,!0),schema:n,columns:{state:JD.Xc,namespace:JD.r1,age:JD.tm,id:JD.nl}})},optionsFor:()=>(e,{schema:t,pagination:n,opts:r})=>{if(n){const e={listMandatorySort:[]};return!r.listGroupsWillOverride&&t.attributes.namespaced&&(e.listGroups=JD.ce,e.listGroupsWillOverride=!0),e}}},iL=o(9776);const oL={node:{count:800,statusRow:2},"apps.deployment":{count:4e3,statusRow:5},pod:{count:4e3,statusRow:10}};({NODE_ENV:"production",BASE_URL:"/"}).perfTest&&{NODE_ENV:"production",BASE_URL:"/"}.dev&&iL.warn("Performance Testing data enabled",oL);const aL={count:1,statusRow:0,custom:null};function sL(e,t){if(0===t.length)return t;const n=t[0];if(!n.apiVersion)return t;let r=oL[e];return r?("number"===typeof r&&(r={count:r}),r={...aL,...r},cL(t,r)):t}function lL(e){return Math.floor(Math.random()*e)}function cL(e,t){if(0===e.length)return e;if(0===t.count)return[];if(t.count<=e.length)return e.slice(0,t.count);const n=[];let r=0;e.forEach((e=>n.push(JSON.stringify(e))));const i=[...e],o=t.count-e.length;for(let a=0;a<o;a++){const e=JSON.parse(n[r]);if(e.id=`${e.id}_${a}`,e.metadata.uid=`uid_${a}_${1e3*Math.random()}`,e.metadata.name=`${e.metadata?.name}_${a}`,e.metadata.creationTimestamp=UI()().format(),i.push(e),t.statusRow>0){const n=1===t.statusRow||0===lL(t.statusRow);if(n){e.metadata.state=e.metadata.state||{};const t=0===lL(2);t?e.metadata.state.error=!0:e.metadata.state.transitioning=!0,e.metadata.state.message=`Test state description for ${e.metadata.name}`}}t.custom&&t.custom(e,a),r++,r===n.length&&(r=0)}return i}var uL=o(9950);function dL(e,t){let n=e.podsByNamespace[t];return n||(n={list:[],map:new Map},e.podsByNamespace[t]=n),n}function hL(e,t,n,r){r&&Object.keys(e.podsByNamespace).forEach((t=>{delete e.podsByNamespace[t]})),n.forEach((n=>{const r=e.types[X.Sm].map.get(n.id)||(0,Nc.L8)(t,n),i=dL(e,r.namespace),o=i.map.get(n.id);o?(0,OI.HC)(o,n):((0,Yc.PG)(i.list,r),i.map.set(n.id,r))}))}function pL(e,t){if(t&&t.type===X.Sm){const n=e.podsByNamespace[t.namespace];if(n){const e=n.list.findIndex((e=>e.id===t.id));e>=0&&n.list.splice(e,1),n.map.delete(t.id)}}else t&&t.type===X.CU&&delete e.podsByNamespace[t.id]}var fL={batchChanges(e,{ctx:t,batch:n}){if((0,OI.AJ)(e,{ctx:t,batch:n}),n[X.Sm]){const r=Object.entries(n[X.Sm]).reduce(((t,[n,r])=>(r.id?t.push(r):pL(e,{id:n,type:X.Sm,namespace:n.substring(0,n.indexOf("/"))}),t)),[]);hL(e,t,r,!1)}n[X.CU]&&Object.entries(n[X.CU]).forEach((([t,n])=>{n.id||pL(e,{id:t,type:X.CU})}))},loadAll(e,{type:t,data:n,ctx:r,skipHaveAll:i,namespace:o,revision:a,pagination:s}){({NODE_ENV:"production",BASE_URL:"/"}).dev&&{NODE_ENV:"production",BASE_URL:"/"}.perfTest&&(n=sL(t,n));const l=(0,OI.gh)(e,{type:t,data:n,ctx:r,skipHaveAll:i,namespace:o,revision:a,pagination:s});if(t===X.Sm&&hL(e,r,l,!0),t===X.yx){const e=(this.$workers||{})[r.getters.storeName];if(e){const t=(0,Qc.yo)(n);e.postMessage({loadSchemas:t})}}},forgetType(e,t){(0,OI.WI)(e,t)&&Object.keys(e.inError).forEach((n=>{n.startsWith(t)&&delete e.inError[n]}))},reset(e){(0,OI.zp)(e,this.commit),this.commit(`${e.config.namespace}/resetSubscriptions`),e.podsByNamespace={},uL["default"].reset(e.config.namespace)},loadMulti(e,{data:t,ctx:n}){for(const r of t){const t=(0,OI.Hh)(e,{data:r,ctx:n});if(t.type===X.Sm&&t.metadata){const n=dL(e,t.namespace);(0,Yc.PG)(n.list,t),n.map.set(t.id,t)}}},loadAdd(e,{type:t,data:n,ctx:r}){(0,OI.aW)(e,{type:t,data:n,ctx:r}),n.length&&n[0].type===X.Sm&&hL(e,r,n,!1)},remove(e,t){(0,OI.TF)(e,t,this.getters),pL(e,t)}},mL=o(6808),gL=o.n(mL),vL=o(9776);function yL(e,t,n){t=t||{},t.method=t.method||"get",t.headers=t.headers||{},t.headers.accept="application/jsonl";const r=new TextDecoder;let i="";return fetch(e,t).then((e=>{if(e.status>=400){vL.error("Error Streaming",e);const t={message:"Error Streaming"};return t.response=e,Promise.reject(t)}return e.body.getReader()})).then((e=>e.read().then((function t({value:o,done:a}){if(a)return void n(JSON.parse(i));i+=r.decode(o,{stream:!0});const s=i.split(/[\r\n](?=.)/);return i=s.pop(),s.map(JSON.parse).forEach(n),e.read().then(t)}))))}function bL(){const e="undefined"!==typeof TextDecoder;return e}var _L=o(90016),wL=o.n(_L),EL=o(9776);let SL;function xL(e){const t=e.split(SL.separator)||[];return t.reduce(((e,t)=>{const n=t.trim();if(!n)return e;const r=n.endsWith(",")?n.slice(0,-1):n;return e.push(SL.separator+r),e}),[])}function kL(e,t,n,r,i=!1){var o,a,s,l;const c=null===r||void 0===r?void 0:r.toLowerCase();if("post"!==c&&"put"!==c||!(null===(o=e.headers)||void 0===o?void 0:o.warning))return;if(!SL||i){const e=zc(n);SL=null===e||void 0===e?void 0:e.kubeAPI.warningHeader}const u=xL(null===(a=e.headers)||void 0===a?void 0:a.warning);if(!u.length)return;const d=u.filter((e=>!SL.notificationBlockList.find((t=>e.startsWith(t)))));if(d.length){const i=(null===(s=e.data)||void 0===s?void 0:s.type)||(null===(l=e.data)||void 0===l?void 0:l.kind)||n["i18n/t"]("generic.resource",{count:1});t("growl/warning",{title:"put"===r?n["i18n/t"]("growl.kubeApiHeaderWarning.titleUpdate",{resourceType:i}):n["i18n/t"]("growl.kubeApiHeaderWarning.titleCreate",{resourceType:i}),message:d.join(", "),timeout:0},{root:!0})}const h=`Validation Warnings for ${e.config.url}\n\n${u.join("\n")}`;!{NODE_ENV:"production",BASE_URL:"/"}.dev?EL.debug(h):EL.warn(`${h}\n\n`,e.data)}var AL=o(57871),NL={async loadSchemas(e,t=!0){return await Uc(e,t)},async request({state:e,dispatch:t,rootGetters:n},r){const i=r.opt||r,o=await jc(n,"cluster",i);if(o)return o;i.url=i.url.replace(/\/*$/g,"");const a="epinio"===this.$config.rancherEnv?"/pp/v1/epinio/rancher":"";if(a)if(i.url.startsWith("/"))i.url=a+i.url;else{const e=(0,mt.qg)(i.url);e.path.startsWith(a)||(e.path=a+e.path,i.url=(0,mt.As)(e))}i.httpsAgent=new(gL().Agent)({rejectUnauthorized:!1});const s=(i.method||"get").toLowerCase(),l=i.headers||{},c=JSON.stringify(l)+s+i.url;let u,d;if("get"===s){if(u=e.deferredRequests[c],u){const e=(0,ve.yX)();return u.push(e),e.promise}u=[],e.deferredRequests[c]=u}if(i.stream&&e.allowStreaming&&e.config.supportsStream&&bL())return yL(i.url,i,i.onData).then((()=>({finishDeferred:p.bind(null,c,"resolve")}))).catch((e=>m(e)));while(1)try{const e=await h(this,i,n);if(!i.depaginate)return e;if(d?d.data=d.data.concat(e.data):d=e,!e?.pagination?.next)return delete d.pagination?.first,delete d.pagination?.last,delete d.pagination?.next,delete d.pagination?.partial,d;i.url=e.pagination.next}catch(qa){return m(qa)}function h(e,n,r){return e.$axios(n).then((e=>{let i;return i=n.responseType?e:f(e),p(c,"resolve",i),kL(e,t,r,n.method),i}))}function p(t,n="resolve",r){const i=e.deferredRequests[t]||[];while(i.length)i.pop()[n](r);delete e.deferredRequests[t]}function f(e){let r=e.data;const o=e.headers["x-api-cattle-auth"];return o&&o!==n["auth/fromHeader"]&&t("auth/gotHeader",o,{root:!0}),204!==e.status&&null!==r||(r={}),"object"!==typeof r&&(r={data:r}),Object.defineProperties(r,{_status:{value:e.status},_statusText:{value:e.statusText},_headers:{value:e.headers},_req:{value:e.request},_url:{value:i.url}}),r}function m(e){let n=e;if(e?.response){const r=e.response;!1!==i.redirectUnauthorized&&401===r.status&&t("auth/logout",i.logoutOnError,{root:!0}),"undefined"!==typeof r.data&&(n=f(r))}return p(c,"reject",n),Promise.reject(n)}},promptMove({commit:e,state:t},n){e("action-menu/togglePromptMove",n,{root:!0})},promptRestore({commit:e,state:t},n){e("action-menu/togglePromptRestore",n,{root:!0})},assignTo({commit:e,state:t},n=[]){e("action-menu/toggleAssignTo",n,{root:!0})},async resourceAction({getters:e,dispatch:t},{resource:n,actionName:r,body:i,opt:o}){o=o||{},o.url||(o.url=n.actionLinkFor(r)),o.method="post",o.data=i;const a=await t("request",{opt:o});return!1!==o.load&&"collection"===a.type?(await t("loadMulti",a.data),a.data.map((t=>e.byId(t.type,t.id)||t))):!1!==o.load&&a.type&&a.id?t("load",{data:a}):a},promptUpdate({commit:e,state:t},n=[]){e("action-menu/togglePromptUpdate",n,{root:!0})},async collectionAction({getters:e,dispatch:t},{type:n,actionName:r,body:i,opt:o}){if(o=o||{},!o.url){const t=e["schemaFor"](n);o.url=(0,mt.R_)(t.links.collection,"action",r)}o.method="post",o.data=i;const a=await t("request",{opt:o});return!1!==o.load&&"collection"===a.type?(await t("loadMulti",a.data),a.data.map((t=>e.byId(t.type,t.id)||t))):!1!==o.load&&a.type&&a.id?t("load",{data:a}):a},createNamespace(e,t){return(0,Nc.L8)(e,{type:X.CU,metadata:{name:t.name}})},cleanForNew(e,t){const n=t.metadata||{};return(0,Qc.cX)(t,RL),(0,Qc.cX)(n,OL),DL(n.annotations),DL(n.labels),n.name="",t?.spec?.crd?.spec?.names?.kind&&(t.spec.crd.spec.names.kind=""),t},cleanForDiff(e,t){const n=t.metadata||{};return n.labels||(n.labels={}),n.annotations||(n.annotations={}),IL(t),(0,Qc.cX)(t,TL),(0,Qc.cX)(n,CL),DL(n.annotations),DL(n.labels),t},cleanForDetail(e,t){return t.metadata||(0,Qc.hZ)(t,"metadata",{}),t.metadata.annotations||(0,Qc.hZ)(t,"metadata.annotations",{}),t.metadata.labels||(0,Qc.hZ)(t,"metadata.labels",{}),t},cleanForDownload(e,t){return(0,AL.C)(t)}};const TL=["actions","links","status","__rehydrate","__clone"],CL=["ownerReferences","selfLink","creationTimestamp","deletionTimestamp","state","fields","relationships","generation","managedFields","resourceVersion"],RL=["actions","links","status","id"],OL=[...CL,"uid"];function IL(e){for(const t in e)if(t.startsWith("__"))delete e[t];else{const n=e[t];wL()(n)&&IL(n)}}function DL(e){e&&Object.keys(e).forEach((t=>{t.match(/(^|field\.)cattle\.io(\/.*|$)/)&&delete e[t]}))}function LL(e,t){return{...FI,state(){return{...BI(e,t),socket:null,queue:[],wantSocket:!1,debugSocket:!1,allowStreaming:!0,pendingFrames:[],deferredRequests:{},started:[],inError:{},podsByNamespace:{}}},getters:{...FI.getters,...rL,...XD},mutations:{...FI.mutations,...fL,...zD},actions:{...FI.actions,...NL,...GD}}}const PL=(e,t)=>{MD(e,t)};var ML=o(98258),FL={namespaceFilterOptions:(e,t,n,r)=>({addNamespace:e,divider:n,notFilterNamespaces:i})=>{var o;const a=[{id:wc.tj,kind:wc.T6.SPECIAL,label:r["i18n/t"]("nav.ns.all")}];n(a);const s=t.filterNamespace(i);if(!r["isStandaloneHarvester"]&&r["currentCluster"]&&"_"!==(null===(o=r["currentCluster"])||void 0===o?void 0:o.id)){const t=r["currentCluster"];let i=r["management/all"](X.Mc.PROJECT);i=(0,ML.Ul)((0,Yc.WP)(i,"spec.clusterName",t.id),["nameDisplay"]).filter((e=>"System"!==e.nameDisplay));const o={},l={};let c=!0;l["null"]=[];for(const e of i)o[e.metadata.name]=e;for(const e of s){let t=e.projectId;t&&o[t]||(t="null");let n=l[t];n||(n=[],l[e.projectId]=n),n.push(e)}for(const r of i){const t=r.metadata.name;c?c=!1:n(a),a.push({id:`project://${t}`,kind:"project",label:r.nameDisplay});const i=l[t]||[];e(a,i)}const u=l["null"];u.length&&(c||n(a),a.push({id:wc.pF,kind:"project",label:r["i18n/t"]("nav.ns.orphan")}),e(a,u))}else e(a,s);return a},filterNamespace(e,t,n,r,i){const o=t.all("namespace");return(e=[])=>o.filter((t=>!t.isSystem||e.includes(t.id)))},filterProject(e,t,n,r){const i=r["management/all"](X.Mc.PROJECT),o=r["currentCluster"],a=o.id;return i.filter((e=>e.spec.clusterName===a&&"System"!==e.nameDisplay))}},BL={},$L={async loadCluster({state:e,commit:t,dispatch:n,getters:r,rootGetters:i,rootState:o},{id:a}){await n("management/waitForSchema",{type:X.Mc.CLUSTER},{root:!0});const s=await n("management/find",{type:X.Mc.CLUSTER,id:a,opt:{url:`${X.Mc.CLUSTER}s/${escape(a)}`}},{root:!0});let c=`/k8s/clusters/${escape(a)}/v1/harvester`;if("local"===a&&(c="/v1/harvester"),!s)throw t("clusterId",null,{root:!0}),t("applyConfig",{baseUrl:null}),new eR.oV(a);t("applyConfig",{baseUrl:c}),await Promise.all([n("loadSchemas",!0)]),n("subscribe");const u={type:X.Mc.PROJECT,opt:{url:`${X.Mc.PROJECT}/${escape(a)}`,watchNamespace:a}},d=async()=>{let e=3e4;const t=100;while(e>0&&!o.managementReady)await setTimeout((()=>{}),t),e-=t;if(i["management/schemaFor"](X.Mc.PROJECT))return n("management/findAll",u,{root:!0})};if("local"!==a&&r["schemaFor"](X.Mc.SETTING)){const e=await n("findAll",{type:X.Mc.SETTING,id:q.HG.SYSTEM_NAMESPACES,opt:{url:`${c}/${X.Mc.SETTING}s/`,force:!0}}),r=e?.find((e=>e.id===q.HG.SYSTEM_NAMESPACES));if(r){const e=(r.value||r.default)?.split(",");t("setSystemNamespaces",e,{root:!0})}}const h={projects:d(),virtualCount:n("findAll",{type:X.i2}),virtualNamespaces:n("findAll",{type:X.CU}),settings:n("findAll",{type:l.rk.SETTING}),clusters:n("management/findAll",{type:X.Mc.CLUSTER,opt:{force:!0}},{root:!0})};r["schemaFor"](l.rk.RESOURCE_QUOTA)&&(h.resourceQuota=n("findAll",{type:l.rk.RESOURCE_QUOTA})),r["schemaFor"](l.rk.UPGRADE)&&(h.upgrades=n("findAll",{type:l.rk.UPGRADE}));const p=await(0,ve.kR)(h),f=i["harvester-common/getFeatureEnabled"]("supportHarvesterClusterVersion");if(!f){const e=i["productId"];return void this.$router?.push({name:`${e}-c-cluster-unsupported${"local"===a?"-standalone":""}`,params:{product:e}})}await n("cleanNamespaces",null,{root:!0}),t("updateNamespaces",{filters:[],all:r.filterNamespace(),getters:r},{root:!0});const m={def:!1,parseJSON:!0,inheritFrom:M.IJ,asUserPreference:!0};t("prefs/setDefinition",{name:"view-in-api",definition:m},{root:!0}),t("prefs/setDefinition",{name:"all-namespaces",definition:m},{root:!0}),t("prefs/setDefinition",{name:"theme-shortcut",definition:m},{root:!0}),t("prefs/setDefinition",{name:"plugin-developer",definition:m},{root:!0});const g=!(1===p.clusters.length&&"local"===p.clusters[0].metadata?.name);g&&t("managementChanged",{ready:!0,isMultiCluster:!0,isRancher:!0},{root:!0})}};const jL=()=>{const e=LL(null,null);return e.getters={...e.getters,...FL},e.mutations={...e.mutations,...BL},e.actions={...e.actions,...$L},e},UL={namespace:r.KR,isClusterStore:!0};var VL={specifics:jL(),config:UL,init:PL},KL=o(52880);function HL(e){return/^[A-Fa-f0-9]{2}(-[A-Fa-f0-9]{2}){5}$|^[A-Fa-f0-9]{2}(:[A-Fa-f0-9]{2}){5}$/.test(e)}function GL(e){const t=/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/;return t.test(e)}var zL=o(66905),XL=o(66490);const qL=63;function WL(e,t,n,r){const{domain:{devices:{interfaces:i}},networks:o}=e,a=[];return i.map(((e,r)=>{const i=o.find((t=>e.name===t.name)),s=e.name||i.name||`Network ${r+1}`,l=t["i18n/t"]("harvester.fields.network"),c=t["i18n/t"]("harvester.validation.vm.network.lowerType"),u=t["i18n/t"]("harvester.validation.vm.network.upperType");if(JL(t,n,e.name,a,s,l,c,u),i.multus&&!i.multus.networkName){const e=t["i18n/t"]("harvester.fields.network"),r=t["i18n/t"]("validation.required",{key:e});n.push(t["i18n/t"]("harvester.validation.generic.tabError",{prefix:s,message:r}))}if(e.macAddress&&!HL(e.macAddress)&&!i.pod){const e=t["i18n/t"]("harvester.validation.vm.network.macFormat");n.push(t["i18n/t"]("harvester.validation.generic.tabError",{prefix:s,message:e}))}})),n}function YL(e,t,n,r,i,o){const a=r.includes("isVMTemplate"),s=a?this.value.spec.vm:o,l=(0,XL.v)(s),c=e.template.spec.volumes||[],u=e.template.spec.domain.devices.disks||[],d=[];u.forEach(((e,r)=>{const i=e.name||c[r]?.name||`Volume ${r+1}`;if(!e.disk&&!e.cdrom){const e=t["i18n/t"]("harvester.fields.type"),r=t["i18n/t"]("validation.required",{key:e});n.push(t["i18n/t"]("harvester.validation.generic.tabError",{prefix:i,message:r}))}const o=t["i18n/t"]("harvester.fields.volume"),a=t["i18n/t"]("harvester.validation.vm.volume.lowerType"),s=t["i18n/t"]("harvester.validation.vm.volume.upperType");JL(t,n,e.name,d,i,o,a,s)}));let h=!1;return c.forEach(((e,r)=>{const{type:i,typeValue:s}=QL(t,e,l,o),c=e.name||r+1;if([zL.xO.IMAGE,zL.xO.ATTACH_VOLUME,zL.xO.CONTAINER].includes(i)&&(h=!0),i===zL.xO.NEW||i===zL.xO.IMAGE){if(!/([1-9]|[1-9][0-9]+)[a-zA-Z]+/.test(s?.spec?.resources?.requests?.storage)){const e=t["i18n/t"]("harvester.fields.size"),r=t["i18n/t"]("validation.required",{key:e});n.push(t["i18n/t"]("harvester.validation.generic.tabError",{prefix:c,message:r}))}if(s?.spec?.resources?.requests?.storage&&!/^([0-9][0-9]{0,8})[a-zA-Z]+$/.test(s?.spec?.resources?.requests?.storage)){const e=t["i18n/t"]("harvester.validation.generic.maximumSize",{max:"999999999 GiB"});n.push(t["i18n/t"]("harvester.validation.generic.tabError",{prefix:c,message:e}))}if(i===zL.xO.IMAGE&&!s?.spec?.storageClassName&&!a){const e=t["i18n/t"]("harvester.fields.image"),r=t["i18n/t"]("validation.required",{key:e});n.push(t["i18n/t"]("harvester.validation.generic.tabError",{prefix:c,message:r}))}if(!s?.spec?.storageClassName&&e?.persistentVolumeClaim?.claimName&&i!==zL.xO.IMAGE){const e=t["i18n/t"]("harvester.fields.storageClass"),r=t["i18n/t"]("validation.required",{key:e});n.push(t["i18n/t"]("harvester.validation.generic.tabError",{prefix:c,message:r}))}}if(i===zL.xO.ATTACH_VOLUME){const r=t["harvester/all"](X.YH),i=e?.persistentVolumeClaim?.claimName,a=r.find((e=>e.id===`${o.metadata.namespace}/${i}`));if(!a&&i){const e=t["i18n/t"]("harvester.fields.volume");n.push(t["i18n/t"]("harvester.validation.generic.hasDelete",{type:e,name:i}))}if(!i){const e=t["i18n/t"]("harvester.virtualMachine.volume.volume");n.push(t["i18n/t"]("validation.required",{key:e}))}}if(i===zL.xO.CONTAINER&&!e.containerDisk.image){const e=t["i18n/t"]("harvester.fields.dockerImage"),r=t["i18n/t"]("validation.required",{key:e});n.push(t["i18n/t"]("harvester.validation.generic.tabError",{prefix:c,message:r}))}})),h&&0!==c.length||o.links||n.push(t["i18n/t"]("harvester.validation.vm.volume.needImageOrExisting")),n}function QL(e,t,n,r){let i=null;const o=e["harvester/all"](X.YH);if(t.persistentVolumeClaim){const e=t?.persistentVolumeClaim?.claimName,a=o.find((t=>t.id===`${r.metadata.namespace}/${e}`));if(a)return{type:zL.xO.ATTACH_VOLUME,typeValue:null};if(i=n.find((e=>t.persistentVolumeClaim.claimName===e.metadata.name&&e.metadata?.annotations&&Object.prototype.hasOwnProperty.call(e.metadata.annotations,"harvesterhci.io/imageId"))),i)return{type:zL.xO.IMAGE,typeValue:i};if(i=n.find((e=>t.persistentVolumeClaim.claimName===e.metadata.name)),i)return{type:zL.xO.NEW,typeValue:i}}return t.containerDisk?{type:zL.xO.CONTAINER,typeValue:null}:{}}function JL(e,t,n,r=[],i,o,a,s){if(-1!==r.findIndex((e=>n===e))&&t.push(e["i18n/t"]("harvester.validation.vm.duplicatedName",{type:o,name:n})),r.push(n),n&&n?.length>qL){const n=e["i18n/t"]("harvester.fields.name"),r=e["i18n/t"]("harvester.validation.generic.maxLength",{key:n,max:qL});t.push(e["i18n/t"]("harvester.validation.generic.tabError",{prefix:i,message:r}))}if(!n){const n=e["i18n/t"]("harvester.fields.name"),r=e["i18n/t"]("validation.required",{key:n});t.push(e["i18n/t"]("harvester.validation.generic.tabError",{prefix:i,message:r}))}if(!GL(n)){const r="^[a-z0-9]([-a-z0-9]*[a-z0-9])?$";t.push(e["i18n/t"]("harvester.validation.generic.regex",{lowerType:a,name:n,regex:r,upperType:s}))}}var ZL=o(62155);function eP(e,t,n,r){const i=t["i18n/t"];if(!e||""===e){const e=i("harvester.volume.size");return n.push(i("validation.required",{key:e})),n}const o=tP(e),a=999999,s=/^[1-9]\d*$/;return(!s.test(o)||o>a)&&n.push(i("harvester.validation.volume.sizeRange")),n}function tP(e){if(!e)return null;const t=(0,ZL.ao)(e);return(0,ZL.Mo)(t,{addSuffix:!1,increment:1024,minExponent:3,maxExponent:3})}function nP(e,t,n,r){const i=t["i18n/t"];if(!e)return n;const o=JSON.parse(e),a=o.type;return a?("s3"===a&&(o.accessKeyId||n.push(i("validation.required",{key:"accessKeyId"})),o.secretAccessKey||n.push(i("validation.required",{key:"secretAccessKey"})),o.bucketRegion||n.push(i("validation.required",{key:"bucketRegion"})),o.bucketName||n.push(i("validation.required",{key:"bucketName"}))),o.endpoint||"s3"===a||n.push(i("validation.required",{key:"endpoint"})),n):n}function rP(e,t,n,r){const{ntpServers:i}=JSON.parse(e),o=t["i18n/t"],a=/^(?:[0-9]{1,3}\.){3}[0-9]{1,3}$/,s=/^(?!:\/\/)(?:[a-zA-Z0-9-]{1,63}\.)+[a-zA-Z]{2,63}$/;if(!i)return n;const l=new Set(i);return i.length!==l.size&&n.push(o("harvester.setting.ntpServers.isDuplicate")),i.find((e=>!a.test(e)&&!s.test(e)))&&n.push(o("harvester.setting.ntpServers.isNotIPV4")),n}function iP(e,t,n,r,i,o){if(!e){const e=t["i18n/t"]("harvester.volume.size");n.push(t["i18n/t"]("validation.required",{key:e}))}if(e&&!/^([0-9][0-9]{0,8})[a-zA-Z]+$/.test(e)){const e=t["i18n/t"]("harvester.validation.generic.maximumSize",{max:"999999999 GiB"});n.push(e)}return n}function oP(e,t,n,r){const i=YO().load(e),o=[{path:"prometheus.prometheusSpec.scrapeInterval",translationKey:"monitoring.prometheus.config.scrape"},{path:"prometheus.prometheusSpec.evaluationInterval",translationKey:"monitoring.prometheus.config.evaluation"},{path:"prometheus.prometheusSpec.retention",translationKey:"monitoring.prometheus.config.retention"},{path:"prometheus.prometheusSpec.retentionSize",translationKey:"monitoring.prometheus.config.retentionSize"},{path:"prometheus.prometheusSpec.resources.requests.cpu",translationKey:"monitoring.prometheus.config.requests.cpu"},{path:"prometheus.prometheusSpec.resources.requests.memory",translationKey:"monitoring.prometheus.config.requests.memory"},{path:"prometheus.prometheusSpec.resources.limits.cpu",translationKey:"monitoring.prometheus.config.limits.cpu"},{path:"prometheus.prometheusSpec.resources.limits.memory",translationKey:"monitoring.prometheus.config.limits.memory"},{path:"prometheus-node-exporter.resources.requests.cpu",translationKey:"monitoring.prometheus.config.requests.cpu"},{path:"prometheus-node-exporter.resources.requests.memory",translationKey:"monitoring.prometheus.config.requests.memory"},{path:"prometheus-node-exporter.resources.limits.cpu",translationKey:"monitoring.prometheus.config.limits.cpu"},{path:"prometheus-node-exporter.resources.limits.memory",translationKey:"monitoring.prometheus.config.limits.memory"},{path:"grafana.resources.requests.cpu",translationKey:"monitoring.prometheus.config.requests.cpu"},{path:"grafana.resources.requests.memory",translationKey:"monitoring.prometheus.config.requests.memory"},{path:"grafana.resources.limits.cpu",translationKey:"monitoring.prometheus.config.limits.cpu"},{path:"grafana.resources.limits.memory",translationKey:"monitoring.prometheus.config.limits.memory"},{path:"alertmanager.alertmanagerSpec.retention",translationKey:"monitoring.prometheus.config.retention"},{path:"alertmanager.alertmanagerSpec.resources.requests.cpu",translationKey:"monitoring.prometheus.config.requests.cpu"},{path:"alertmanager.alertmanagerSpec.resources.requests.memory",translationKey:"monitoring.prometheus.config.requests.memory"},{path:"alertmanager.alertmanagerSpec.resources.limits.cpu",translationKey:"monitoring.prometheus.config.limits.cpu"},{path:"alertmanager.alertmanagerSpec.resources.limits.memory",translationKey:"monitoring.prometheus.config.limits.memory"}];return o.forEach((e=>{(0,Qc.Jt)(i,e.path)||n.push(t["i18n/t"]("validation.required",{key:t["i18n/t"](e.translationKey)}))})),n}function aP(e,t,n,r){const i=YO().load(e),o=[{path:"fluentbit.resources.requests.cpu",translationKey:"monitoring.prometheus.config.requests.cpu"},{path:"fluentbit.resources.requests.memory",translationKey:"monitoring.prometheus.config.requests.memory"},{path:"fluentbit.resources.limits.cpu",translationKey:"monitoring.prometheus.config.limits.cpu"},{path:"fluentbit.resources.limits.memory",translationKey:"monitoring.prometheus.config.limits.memory"},{path:"fluentd.resources.requests.cpu",translationKey:"monitoring.prometheus.config.requests.cpu"},{path:"fluentd.resources.requests.memory",translationKey:"monitoring.prometheus.config.requests.memory"},{path:"fluentd.resources.limits.cpu",translationKey:"monitoring.prometheus.config.limits.cpu"},{path:"fluentd.resources.limits.memory",translationKey:"monitoring.prometheus.config.limits.memory"}];return o.forEach((e=>{(0,Qc.Jt)(i,e.path)||n.push(t["i18n/t"]("validation.required",{key:t["i18n/t"](e.translationKey)}))})),n}function sP(e=[],t,n,r){const i=t["i18n/t"];return 0===e.length&&n.push(i("validation.required",{key:i("harvester.ipPool.tabs.range")},!0)),e.map((e=>{e.subnet||n.push(i("validation.required",{key:i("harvester.ipPool.subnet.label")},!0))})),n}function lP(e,t,n,r,i){return/^[a-f0-9]{128}$/i.test(e)||n.push(t["i18n/t"]("harvester.validation.hash.sha512")),n}var cP={imageUrl:KL.b8,dataVolumeSize:eP,vmNetworks:WL,vmDisks:YL,fileRequired:KL._X,backupTarget:nP,ntpServers:rP,volumeSize:iP,rancherMonitoring:oP,rancherLogging:aP,ranges:sP,hashSHA512:lP};function uP(e){r.KR;n(e),e.metadata=o(8330),e.metadata.icon=o(99086),e.addProduct(o(62261)),e.addDashboardStore(CI.config.namespace,CI.specifics,CI.config),e.addDashboardStore(VL.config.namespace,VL.specifics,VL.config,VL.init),e.validators=cP,e.addRoutes(_I)}var dP=uP}(),a}()}));
|
||
//# sourceMappingURL=harvester-1.0.2.umd.min.js.map |