generator-fedhipster
Version:
Spring Boot + Angular/React in one handy generator
3 lines (2 loc) • 24.7 kB
JavaScript
!function i(u,c,a){function s(e,t){if(!c[e]){if(!u[e]){var n="function"==typeof require&&require;if(!t&&n)return n(e,!0);if(f)return f(e,!0);var r=new Error("Cannot find module '"+e+"'");throw r.code="MODULE_NOT_FOUND",r}var o=c[e]={exports:{}};u[e][0].call(o.exports,function(t){return s(u[e][1][t]||t)},o,o.exports,i,u,c,a)}return c[e].exports}for(var f="function"==typeof require&&require,t=0;t<a.length;t++)s(a[t]);return s}({1:[function(t,e,n){"use strict";"document"in window.self&&("classList"in document.createElement("_")&&(!document.createElementNS||"classList"in document.createElementNS("http://www.w3.org/2000/svg","g"))||function(t){if("Element"in t){var e="classList",n="prototype",r=t.Element[n],o=Object,i=String[n].trim||function(){return this.replace(/^\s+|\s+$/g,"")},u=Array[n].indexOf||function(t){for(var e=0,n=this.length;e<n;e++)if(e in this&&this[e]===t)return e;return-1},c=function(t,e){this.name=t,this.code=DOMException[t],this.message=e},a=function(t,e){if(""===e)throw new c("SYNTAX_ERR","An invalid or illegal string was specified");if(/\s/.test(e))throw new c("INVALID_CHARACTER_ERR","String contains an invalid character");return u.call(t,e)},s=function(t){for(var e=i.call(t.getAttribute("class")||""),n=e?e.split(/\s+/):[],r=0,o=n.length;r<o;r++)this.push(n[r]);this._updateClassName=function(){t.setAttribute("class",this.toString())}},f=s[n]=[],l=function(){return new s(this)};if(c[n]=Error[n],f.item=function(t){return this[t]||null},f.contains=function(t){return-1!==a(this,t+="")},f.add=function(){for(var t,e=arguments,n=0,r=e.length,o=!1;t=e[n]+"",-1===a(this,t)&&(this.push(t),o=!0),++n<r;);o&&this._updateClassName()},f.remove=function(){var t,e,n=arguments,r=0,o=n.length,i=!1;do{for(t=n[r]+"",e=a(this,t);-1!==e;)this.splice(e,1),i=!0,e=a(this,t)}while(++r<o);i&&this._updateClassName()},f.toggle=function(t,e){t+="";var n=this.contains(t),r=n?!0!==e&&"remove":!1!==e&&"add";return r&&this[r](t),!0===e||!1===e?e:!n},f.toString=function(){return this.join(" ")},o.defineProperty){var d={get:l,enumerable:!0,configurable:!0};try{o.defineProperty(r,e,d)}catch(t){void 0!==t.number&&-2146823252!==t.number||(d.enumerable=!1,o.defineProperty(r,e,d))}}else o[n].__defineGetter__&&r.__defineGetter__(e,l)}}(window.self),function(){var t=document.createElement("_");if(t.classList.add("c1","c2"),!t.classList.contains("c2")){var e=function(t){var r=DOMTokenList.prototype[t];DOMTokenList.prototype[t]=function(t){var e,n=arguments.length;for(e=0;e<n;e++)t=arguments[e],r.call(this,t)}};e("add"),e("remove")}if(t.classList.toggle("c3",!1),t.classList.contains("c3")){var n=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(t,e){return 1 in arguments&&!this.contains(t)==!e?e:n.call(this,t)}}t=null}())},{}],2:[function(t,n,e){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};!function(t,e){void 0!==n?n.exports=e():"function"==typeof define&&"object"==r(define.amd)?define(e):this.domready=e()}(0,function(){var t,e=[],n=document,r=n.documentElement.doScroll,o="DOMContentLoaded",i=(r?/^loaded|^c/:/^loaded|^i|^c/).test(n.readyState);return i||n.addEventListener(o,t=function(){for(n.removeEventListener(o,t),i=1;t=e.shift();)t()}),function(t){i?setTimeout(t,0):e.push(t)}})},{}],3:[function(t,e,n){"use strict";var r;e.exports=((r=document.createElement("div")).setAttribute("data-a-b","c"),Boolean(r.dataset&&"c"===r.dataset.aB)?function(t){return t.dataset}:function(t){var e={},n=t.attributes;function r(){return this.value}function o(t,e){void 0===e?this.removeAttribute(t):this.setAttribute(t,e)}for(var i=0,u=n.length;i<u;i++){var c=n[i];if(c){var a=c.name;if(0===a.indexOf("data-")){var s=a.slice(5).replace(/-./g,function(t){return t.charAt(1).toUpperCase()}),f=c.value;Object.defineProperty(e,s,{enumerable:!0,get:r.bind({value:f||""}),set:o.bind(t,a)})}}}return e})},{}],4:[function(t,e,n){"use strict";var r;"function"!=typeof(r=window.Element.prototype).matches&&(r.matches=r.msMatchesSelector||r.mozMatchesSelector||r.webkitMatchesSelector||function(t){for(var e=(this.document||this.ownerDocument).querySelectorAll(t),n=0;e[n]&&e[n]!==this;)++n;return Boolean(e[n])}),"function"!=typeof r.closest&&(r.closest=function(t){for(var e=this;e&&1===e.nodeType;){if(e.matches(t))return e;e=e.parentNode}return null})},{}],5:[function(t,r,o){"use strict";!function(){var t,n={polyfill:function(){if(!("KeyboardEvent"in window)||"key"in KeyboardEvent.prototype)return!1;var t={get:function(t){var e=n.keys[this.which||this.keyCode];return Array.isArray(e)&&(e=e[+this.shiftKey]),e}};return Object.defineProperty(KeyboardEvent.prototype,"key",t),t},keys:{3:"Cancel",6:"Help",8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",28:"Convert",29:"NonConvert",30:"Accept",31:"ModeChange",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",41:"Select",42:"Print",43:"Execute",44:"PrintScreen",45:"Insert",46:"Delete",48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],91:"OS",93:"ContextMenu",144:"NumLock",145:"ScrollLock",181:"VolumeMute",182:"VolumeDown",183:"VolumeUp",186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"'],224:"Meta",225:"AltGraph",246:"Attn",247:"CrSel",248:"ExSel",249:"EraseEof",250:"Play",251:"ZoomOut"}};for(t=1;t<25;t++)n.keys[111+t]="F"+t;var e="";for(t=65;t<91;t++)e=String.fromCharCode(t),n.keys[t]=[e.toLowerCase(),e.toUpperCase()];"function"==typeof define&&define.amd?define("keyboardevent-key-polyfill",n):void 0!==o&&void 0!==r?r.exports=n:window&&(window.keyboardeventKeyPolyfill=n)}()},{}],6:[function(t,p,e){(function(t){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r=NaN,o="[object Symbol]",i=/^\s+|\s+$/g,u=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,a=/^0o[0-7]+$/i,s=parseInt,e="object"==(void 0===t?"undefined":n(t))&&t&&t.Object===Object&&t,f="object"==("undefined"==typeof self?"undefined":n(self))&&self&&self.Object===Object&&self,l=e||f||Function("return this")(),d=Object.prototype.toString,g=Math.max,m=Math.min,w=function(){return l.Date.now()};function E(t){var e=void 0===t?"undefined":n(t);return!!t&&("object"==e||"function"==e)}function v(t){return"symbol"==(void 0===t?"undefined":n(t))||!!(e=t)&&"object"==(void 0===e?"undefined":n(e))&&d.call(t)==o;var e}function x(t){if("number"==typeof t)return t;if(v(t))return r;if(E(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=E(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(i,"");var n=c.test(t);return n||a.test(t)?s(t.slice(2),n?2:8):u.test(t)?r:+t}p.exports=function(r,o,t){var i,u,c,a,s,f,l=0,d=!1,v=!1,e=!0;if("function"!=typeof r)throw new TypeError("Expected a function");function p(t){var e=i,n=u;return i=u=void 0,l=t,a=r.apply(n,e)}function b(t){var e=t-f;return void 0===f||o<=e||e<0||v&&c<=t-l}function h(){var t,e,n=w();if(b(n))return y(n);s=setTimeout(h,(e=o-((t=n)-f),v?m(e,c-(t-l)):e))}function y(t){return s=void 0,e&&i?p(t):(i=u=void 0,a)}function n(){var t,e=w(),n=b(e);if(i=arguments,u=this,f=e,n){if(void 0===s)return l=t=f,s=setTimeout(h,o),d?p(t):a;if(v)return s=setTimeout(h,o),p(f)}return void 0===s&&(s=setTimeout(h,o)),a}return o=x(o)||0,E(t)&&(d=!!t.leading,c=(v="maxWait"in t)?g(x(t.maxWait)||0,o):c,e="trailing"in t?!!t.trailing:e),n.cancel=function(){void 0!==s&&clearTimeout(s),i=f=u=s=void(l=0)},n.flush=function(){return void 0===s?a:y(w())},n}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],7:[function(t,e,n){"use strict";var a=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(t){r[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var n,r,o=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(t),i=1;i<arguments.length;i++){for(var u in n=Object(arguments[i]))s.call(n,u)&&(o[u]=n[u]);if(a){r=a(n);for(var c=0;c<r.length;c++)f.call(n,r[c])&&(o[r[c]]=n[r[c]])}}return o}},{}],8:[function(t,e,n){"use strict";var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c=t("object-assign"),a=t("../delegate"),s=t("../delegateAll"),f=/^(.+):delegate\((.+)\)$/,l=function(t,e){var n=t[e];return delete t[e],n};e.exports=function(r,t){var n=Object.keys(r).reduce(function(t,e){var n=function(t,e){var n,r,o=t.match(f);o&&(t=o[1],n=o[2]),"object"===(void 0===e?"undefined":u(e))&&(r={capture:l(e,"capture"),passive:l(e,"passive")});var i={selector:n,delegate:"object"===(void 0===e?"undefined":u(e))?s(e):n?a(n,e):e,options:r};return-1<t.indexOf(" ")?t.split(" ").map(function(t){return c({type:t},i)}):(i.type=t,[i])}(e,r[e]);return t.concat(n)},[]);return c({add:function(e){n.forEach(function(t){e.addEventListener(t.type,t.delegate,t.options)})},remove:function(e){n.forEach(function(t){e.removeEventListener(t.type,t.delegate,t.options)})}},t)}},{"../delegate":10,"../delegateAll":11,"object-assign":7}],9:[function(t,e,n){"use strict";e.exports=function(t){return function(e){return t.some(function(t){return!1===t.call(this,e)},this)}}},{}],10:[function(t,e,n){"use strict";t("element-closest"),e.exports=function(n,r){return function(t){var e=t.target.closest(n);if(e)return r.call(e,t)}}},{"element-closest":4}],11:[function(t,e,n){"use strict";var r=t("../delegate"),o=t("../compose");e.exports=function(n){var t=Object.keys(n);if(1===t.length&&"*"===t[0])return n["*"];var e=t.reduce(function(t,e){return t.push(r(e,n[e])),t},[]);return o(e)}},{"../compose":9,"../delegate":10}],12:[function(t,e,n){"use strict";e.exports=function(e,n){return function(t){if(e!==t.target&&!e.contains(t.target))return n.call(this,t)}}},{}],13:[function(t,e,n){"use strict";e.exports={behavior:t("./behavior"),delegate:t("./delegate"),delegateAll:t("./delegateAll"),ignore:t("./ignore"),keymap:t("./keymap")}},{"./behavior":8,"./delegate":10,"./delegateAll":11,"./ignore":12,"./keymap":14}],14:[function(t,e,n){"use strict";t("keyboardevent-key-polyfill");var i={Alt:"altKey",Control:"ctrlKey",Ctrl:"ctrlKey",Shift:"shiftKey"};e.exports=function(o){var t=Object.keys(o).some(function(t){return-1<t.indexOf("+")});return function(n){var r=function(t,e){var n=t.key;if(e)for(var r in i)!0===t[i[r]]&&(n=[r,n].join("+"));return n}(n,t);return[r,r.toLowerCase()].reduce(function(t,e){return e in o&&(t=o[r].call(this,n)),t},void 0)}},e.exports.MODIFIERS=i},{"keyboardevent-key-polyfill":5}],15:[function(t,e,n){"use strict";e.exports=function(e,n){var r=function(t){return t.currentTarget.removeEventListener(t.type,r,n),e.call(this,t)};return r}},{}],16:[function(t,e,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=/(^\s+)|(\s+$)/g,i=/\s+/,u=String.prototype.trim?function(t){return t.trim()}:function(t){return t.replace(o,"")};e.exports=function(t,e){if("string"!=typeof t)throw new Error("Expected a string but got "+(void 0===t?"undefined":r(t)));e||(e=window.document);var n=e.getElementById?e.getElementById.bind(e):function(t){return this.querySelector('[id="'+t.replace(/"/g,'\\"')+'"]')}.bind(e);return 1===(t=u(t).split(i)).length&&""===t[0]?[]:t.map(function(t){var e=n(t);if(!e)throw new Error('no element with id: "'+t+'"');return e})}},{}],17:[function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o=t("../utils/select"),i=t("../utils/behavior"),u=t("../utils/toggle"),c=t("../utils/is-in-viewport"),a=t("../events").CLICK,s=t("../config").prefix,f="."+s+"-accordion, ."+s+"-accordion--bordered",l="."+s+"-accordion__button[aria-controls]",d="aria-expanded",v=function(e){return o(l,e).filter(function(t){return t.closest(f)===e})},p=function(e,t){var n,r=e.closest(f);if(!r)throw new Error(l+" is missing outer "+f);n=u(e,t);var o="true"===r.getAttribute("aria-multiselectable");n&&!o&&v(r).forEach(function(t){t!==e&&u(t,!1)})},b=i(r({},a,r({},l,function(t){t.preventDefault(),p(this),"true"===this.getAttribute(d)&&(c(this)||this.scrollIntoView())})),{init:function(t){o(l,t).forEach(function(t){var e="true"===t.getAttribute(d);p(t,e)})},ACCORDION:f,BUTTON:l,show:function(t){return p(t,!0)},hide:function(t){return p(t,!1)},toggle:p,getButtons:v});e.exports=b},{"../config":26,"../events":27,"../utils/behavior":32,"../utils/is-in-viewport":34,"../utils/select":35,"../utils/toggle":38}],18:[function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o=t("../utils/behavior"),i=t("../events").CLICK,u=t("../config").prefix,c="."+u+"-banner__header",a=u+"-banner__header--expanded";e.exports=o(r({},i,r({},c+" [aria-controls]",function(t){t.preventDefault(),this.closest(c).classList.toggle(a)})))},{"../config":26,"../events":27,"../utils/behavior":32}],19:[function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o=t("lodash.debounce"),i=t("../utils/behavior"),u=t("../utils/select"),c=t("../events").CLICK,a=t("../config").prefix,s="hidden",f="."+a+"-footer--big"+" nav",l=f+" ."+a+"-footer__primary-link",d="."+a+"-footer__primary-content--collapsible";var v=o(function(){var e=window.innerWidth<480;u(d).forEach(function(t){return t.classList.toggle(s,e)})},180);e.exports=i(r({},c,r({},l,function(){if(window.innerWidth<480){var e=this.closest(d);e.classList.toggle(s),u(d,e.closest(f)).forEach(function(t){t!==e&&t.classList.add(s)})}})),{HIDE_MAX_WIDTH:480,DEBOUNCE_RATE:180,init:function(){v(),window.addEventListener("resize",v)},teardown:function(){window.removeEventListener("resize",v)}})},{"../config":26,"../events":27,"../utils/behavior":32,"../utils/select":35,"lodash.debounce":6}],20:[function(t,e,n){"use strict";var r=t("./accordion"),o=t("./banner"),i=t("./footer"),u=t("./navigation"),c=t("./password"),a=t("./search"),s=t("./skipnav"),f=t("./validator");e.exports={accordion:r,banner:o,footer:i,navigation:u,password:c,search:a,skipnav:s,validator:f}},{"./accordion":17,"./banner":18,"./footer":19,"./navigation":21,"./password":22,"./search":23,"./skipnav":24,"./validator":25}],21:[function(t,e,n){"use strict";var r;function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var i=t("../utils/behavior"),u=t("../utils/select"),c=t("../utils/toggle"),a=t("../utils/focus-trap"),s=t("./accordion"),f=t("../events").CLICK,l=t("../config").prefix,d="."+l+"-nav",v=d+" a",p="."+l+"-nav__link",b="."+l+"-menu-btn",h="."+l+"-nav__close",y=h+", ."+l+"-overlay",g=[d,"."+l+"-overlay"].join(", "),m="usa-js-mobile-nav--active",w=void 0,E=void 0,x=function(){return document.body.classList.contains(m)},S=function(t){var e=document.body,n="boolean"==typeof t?t:!x();e.classList.toggle(m,n),u(g).forEach(function(t){return t.classList.toggle("is-visible",n)}),w.focusTrap.update(n);var r=e.querySelector(h),o=e.querySelector(b);return n&&r?r.focus():!n&&document.activeElement===r&&o&&o.focus(),n},A=function(){var t=document.body.querySelector(h);x()&&t&&0===t.getBoundingClientRect().width&&w.toggleNav.call(t,!1)},O=function(){return w.toggleNav.call(w,!1)},j=function(){c(E,!1),E=null};w=i(o({},f,(o(r={},p,function(){return E&&E!==this&&j(),E?j():c(E=this,!0),!1}),o(r,"body",function(){E&&j()}),o(r,b,S),o(r,y,S),o(r,v,function(){var t=this.closest(s.ACCORDION);t&&s.getButtons(t).forEach(function(t){return s.hide(t)}),x()&&w.toggleNav.call(w,!1)}),r)),{init:function(t){var e=t.querySelector(d);e&&(w.focusTrap=a(e,{Escape:O})),A(),window.addEventListener("resize",A,!1)},teardown:function(){window.removeEventListener("resize",A,!1),E=!1},focusTrap:null,toggleNav:S}),e.exports=w},{"../config":26,"../events":27,"../utils/behavior":32,"../utils/focus-trap":33,"../utils/select":35,"../utils/toggle":38,"./accordion":17}],22:[function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o=t("../utils/behavior"),i=t("../utils/toggle-form-input"),u=t("../events").CLICK,c=t("../config").prefix,a="."+c+"-show-password, ."+c+"-show-multipassword";e.exports=o(r({},u,r({},a,function(t){t.preventDefault(),i(this)})))},{"../config":26,"../events":27,"../utils/behavior":32,"../utils/toggle-form-input":37}],23:[function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var u=t("receptor/ignore"),o=t("../utils/behavior"),i=t("../utils/select"),c=t("../events").CLICK,a=".js-search-button",s=".js-search-form",f=void 0,l=function(t,e){var n,r=(n=t.closest("header"))?n.querySelector(s):document.querySelector(s);if(!r)throw new Error("No "+s+" found for search toggle in header!");if(t.hidden=e,r.hidden=!e,e){var o=r.querySelector("[type=search]");o&&o.focus();var i=u(r,function(){f&&function(){l(this,!1),f=void 0}.call(f),document.body.removeEventListener(c,i)});setTimeout(function(){document.body.addEventListener(c,i)},0)}};var d=o(r({},c,r({},a,function(){l(this,!0),f=this})),{init:function(t){i(a,t).forEach(function(t){l(t,!1)})},teardown:function(){f=void 0}});e.exports=d},{"../events":27,"../utils/behavior":32,"../utils/select":35,"receptor/ignore":12}],24:[function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o=t("receptor/once"),i=t("../utils/behavior"),u=t("../events").CLICK,c=t("../config").prefix,a="."+c+'-skipnav[href^="#"], .'+c+'-footer__return-to-top [href^="#"]';e.exports=i(r({},u,r({},a,function(){var t=this.getAttribute("href"),e=document.getElementById("#"===t?"main-content":t.slice(1));e&&(e.style.outline="0",e.setAttribute("tabindex",0),e.focus(),e.addEventListener("blur",o(function(){e.setAttribute("tabindex",-1)})))})))},{"../config":26,"../events":27,"../utils/behavior":32,"receptor/once":15}],25:[function(t,e,n){"use strict";var r=t("../utils/behavior"),o=t("../utils/validate-input");var i=r({"keyup change":{"input[data-validation-element]":function(){o(this)}}});e.exports=i},{"../utils/behavior":32,"../utils/validate-input":39}],26:[function(t,e,n){"use strict";e.exports={prefix:"usa"}},{}],27:[function(t,e,n){"use strict";e.exports={CLICK:"click"}},{}],28:[function(t,e,n){"use strict";var r=window.HTMLElement.prototype,o="hidden";o in r||Object.defineProperty(r,o,{get:function(){return this.hasAttribute(o)},set:function(t){t?this.setAttribute(o,""):this.removeAttribute(o)}})},{}],29:[function(t,e,n){"use strict";t("classlist-polyfill"),t("./element-hidden")},{"./element-hidden":28,"classlist-polyfill":1}],30:[function(t,e,n){"use strict";var r=t("domready");t("./polyfills");var o=t("./config"),i=t("./components");o.components=i,r(function(){var e=document.body;Object.keys(i).forEach(function(t){i[t].on(e)})}),e.exports=o},{"./components":20,"./config":26,"./polyfills":29,domready:2}],31:[function(t,e,n){"use strict";e.exports=function(){return(0<arguments.length&&void 0!==arguments[0]?arguments[0]:document).activeElement}},{}],32:[function(t,e,n){"use strict";var r=t("object-assign"),o=t("receptor/behavior"),i=function(){for(var t=arguments.length,r=Array(t),e=0;e<t;e++)r[e]=arguments[e];return function(){var e=this,n=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.body;r.forEach(function(t){"function"==typeof e[t]&&e[t].call(e,n)})}};e.exports=function(t,e){return o(t,r({on:i("init","add"),off:i("teardown","remove")},e))}},{"object-assign":7,"receptor/behavior":8}],33:[function(t,e,n){"use strict";var c=t("object-assign"),a=t("receptor").keymap,s=t("./behavior"),f=t("./select"),l=t("./active-element");e.exports=function(t){var e,n,r,o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},i=(e=f('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, [tabindex="0"], [contenteditable]',t),n=e[0],r=e[e.length-1],{firstTabStop:n,lastTabStop:r,tabAhead:function(t){l()===r&&(t.preventDefault(),n.focus())},tabBack:function(t){l()===n&&(t.preventDefault(),r.focus())}}),u=a(c({Tab:i.tabAhead,"Shift+Tab":i.tabBack},o));return s({keydown:u},{init:function(){i.firstTabStop.focus()},update:function(t){t?this.on():this.off()}})}},{"./active-element":31,"./behavior":32,"./select":35,"object-assign":7,receptor:13}],34:[function(t,e,n){"use strict";e.exports=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:window,n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:document.documentElement,r=t.getBoundingClientRect();return 0<=r.top&&0<=r.left&&r.bottom<=(e.innerHeight||n.clientHeight)&&r.right<=(e.innerWidth||n.clientWidth)}},{}],35:[function(t,e,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.exports=function(t,e){if("string"!=typeof t)return[];var n;e&&((n=e)&&"object"===(void 0===n?"undefined":o(n))&&1===n.nodeType)||(e=window.document);var r=e.querySelectorAll(t);return Array.prototype.slice.call(r)}},{}],36:[function(t,e,n){"use strict";e.exports=function(t,e){t.setAttribute("autocapitalize","off"),t.setAttribute("autocorrect","off"),t.setAttribute("type",e?"password":"text")}},{}],37:[function(t,e,n){"use strict";var o=t("resolve-id-refs"),i=t("./toggle-field-mask"),u="aria-pressed",c="data-show-text";e.exports=function(t){var e=t.hasAttribute(u)&&"true"!==t.getAttribute(u);o(t.getAttribute("aria-controls")).forEach(function(t){return i(t,e)}),t.hasAttribute(c)||t.setAttribute(c,t.textContent);var n=t.getAttribute(c),r=t.getAttribute("data-hide-text")||n.replace(/\bShow\b/i,function(t){return("S"===t[0]?"H":"h")+"ide"});return t.textContent=e?n:r,t.setAttribute(u,e),e}},{"./toggle-field-mask":36,"resolve-id-refs":16}],38:[function(t,e,n){"use strict";var i="aria-expanded";e.exports=function(t,e){var n=e;"boolean"!=typeof n&&(n="false"===t.getAttribute(i)),t.setAttribute(i,n);var r=t.getAttribute("aria-controls"),o=document.getElementById(r);if(!o)throw new Error('No toggle target found with id: "'+r+'"');return n?o.removeAttribute("hidden"):o.setAttribute("hidden",""),n}},{}],39:[function(t,e,n){"use strict";var l=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var u,c=t[Symbol.iterator]();!(r=(u=c.next()).done)&&(n.push(u.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&c.return&&c.return()}finally{if(o)throw i}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=t("elem-dataset"),o=t("../config").prefix,d=o+"-checklist__item--checked";e.exports=function(s){var t=r(s),e=t.validationElement,f="#"===e.charAt(0)?document.querySelector(e):document.getElementById(e);if(!f)throw new Error('No validation element found with id: "'+e+'"');Object.entries(t).forEach(function(t){var e=l(t,2),n=e[0],r=e[1];if(n.startsWith("validate")){var o=n.substr("validate".length).toLowerCase(),i=new RegExp(r),u='[data-validator="'+o+'"]',c=f.querySelector(u);if(!c)throw new Error('No validator checkbox found for: "'+o+'"');var a=i.test(s.value);c.classList.toggle(d,a),c.setAttribute("aria-checked",a)}})}},{"../config":26,"elem-dataset":3}]},{},[30]);
//# sourceMappingURL=uswds.min.js.map