"use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[2832],{2832:function(t,r,n){function e(t){return!Number.isNaN(parseFloat(t))}function o(t,r,n){void 0===n&&(n="slot");var e=t.shadowRoot.querySelector(n).assignedNodes();return null!==r?Array.from(e).filter(function(t){return t.nodeName.toLowerCase()===r}):Array.from(e)}function u(t){return 1===t?"":"s"}function i(t,r){if(void 0===t||""===t)return"".concat(r," character").concat(u(r)," allowed");var n;if(t.length<=r){var e=r-t.length;n="".concat(e," character").concat(u(e)," left")}else e=t.length-r,n="".concat(e," character").concat(u(e)," over limit");return n}function f(t,r){return Array.from({length:r-t+1},function(r,n){return t+n})}n.r(r),n.d(r,{S:function(){return l},a:function(){return o},b:function(){return e},c:function(){return v},d:function(){return h},e:function(){return m},f:function(){return i},g:function(){return s},h:function(){return p},i:function(){return g},m:function(){return f},n:function(){return d},s:function(){return c},u:function(){return _}}),n(9213);var a=function(t){return t&&"object"==typeof t&&1===t.nodeType};function c(t,r){var n=function(t,r){if("string"!=typeof t)return[];if(!r||!a(r))return[];var n=r.shadowRoot.querySelectorAll(t);return Array.from(n)}(t,r);return"string"!=typeof t||a(r)&&r.matches(t)&&n.push(r),n}var l={_entity:/[&<>"'/]/g,_entities:{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&apos;","/":"&#x2F;"},getEntity:function(t){return l._entities[t]},escapeHTML:function(t){for(var r="",n=0;n<t.length;n++)r+=t[n],n+1<arguments.length&&(r+=String(arguments[n+1]||"").replace(l._entity,l.getEntity));return r}};function s(t){var r;return(r="string"==typeof t?parseInt(t,10):Math.floor(t))>=1&&r<=6?"h".concat(r):null}function p(t){return["VA-BUTTON","VA-LINK","BUTTON","A"].includes(t.tagName)}function g(t){return t&&"false"!==t||!1}function y(t){return"[object Arguments]"===Object.prototype.toString.call(t)}function h(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],e=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];if(t===r)return!0;if("function"==typeof t||"function"==typeof r)return!0;if("object"!=typeof t||"object"!=typeof r)return!1;if(null===t||null===r)return!1;if(t instanceof Date&&r instanceof Date)return t.getTime()===r.getTime();if(t instanceof RegExp&&r instanceof RegExp)return t.source===r.source&&t.global===r.global&&t.multiline===r.multiline&&t.lastIndex===r.lastIndex&&t.ignoreCase===r.ignoreCase;if(y(t)||y(r)){if(!y(t)||!y(r))return!1;var o=Array.prototype.slice;return h(o.call(t),o.call(r),n,e)}if(t.constructor!==r.constructor)return!1;var u=Object.keys(t),i=Object.keys(r);if(0===u.length&&0===i.length)return!0;if(u.length!==i.length)return!1;for(var f=n.length;f--;)if(n[f]===t)return e[f]===r;n.push(t),e.push(r),u.sort(),i.sort();for(var a=u.length-1;a>=0;a--)if(u[a]!==i[a])return!1;for(var c=void 0,l=u.length-1;l>=0;l--)if(!h(t[c=u[l]],r[c],n,e))return!1;return n.pop(),e.pop(),!0}function v(t,r){var n;return function(){for(var e=this,o=[],u=0;u<arguments.length;u++)o[u]=arguments[u];clearTimeout(n),n=setTimeout(function(){return t.apply(e,o)},r)}}function m(t){if(null!=t){var r="string"==typeof t?parseInt(t,10):t;if(!(r<=0||isNaN(r)))return r}}function d(t,r){if(Array.isArray(t))return t.map(function(t){return null==t?void 0:t.trim()}).filter(Boolean);if("string"!=typeof t)return[];var n=t.trim();if(!n)return[];try{var e=JSON.parse(n);return Array.isArray(e)?e.filter(function(t){return"string"==typeof t}).map(function(t){return t.trim()}).filter(Boolean):[]}catch(t){return[]}}function _(t,r,n){t&&(t.innerText=i(r,m(n)))}}}]);