varonce=function(){"use strict";varn=/[\11\12\14\15\40]+/,t="data-once",e=document;functionr(n,e,r){returnn[e+"Attribute"](t,r)}functiono(t){if("string"!=typeoft)thrownewTypeError("once ID must be a string");if(""===t||n.test(t))thrownewRangeError("once ID must not be empty or contain spaces");return'[data-once~="'+t+'"]'}functionu(n){if(!(ninstanceofElement))thrownewTypeError("The element must be an instance of Element");return!0}functioni(n,t){if(void0===t&&(t=e),!n)thrownewTypeError("Selector must not be empty");varr=n;return"string"!=typeofn||t!==e&&!u(t)?ninstanceofElement&&(r=[n]):r=t.querySelectorAll(n),Array.prototype.slice.call(r)}functionc(n,t,e){returnt.filter((function(t){varr=u(t)&&t.matches(n);returnr&&e&&e(t),r}))}functionf(t,e){varo=e.add,u=e.remove,i=[];r(t,"has")&&r(t,"get").trim().split(n).forEach((function(n){i.indexOf(n)<0&&n!==u&&i.push(n)})),o&&i.push(o);varc=i.join("");r(t,""===c?"remove":"set",c)}functiona(n,t,e){returnc(":not("+o(n)+")",i(t,e),(function(t){returnf(t,{add:n})}))}returna.remove=function(n,t,e){returnc(o(n),i(t,e),(function(t){returnf(t,{remove:n})}))},a.filter=function(n,t,e){returnc(o(n),i(t,e))},a.find=function(n,t){returni(n?o(n):"[data-once]",t)},a}();
/*! @drupal/once - v1.0.1 - 2021-06-12 */
varonce=function(){"use strict";varn=/[\11\12\14\15\40]+/,e="data-once",t=document;functionr(n,t,r){returnn[t+"Attribute"](e,r)}functiono(e){if("string"!=typeofe)thrownewTypeError("once ID must be a string");if(""===e||n.test(e))thrownewRangeError("once ID must not be empty or contain spaces");return'[data-once~="'+e+'"]'}functionu(n){if(!(ninstanceofElement))thrownewTypeError("The element must be an instance of Element");return!0}functioni(n,e){void0===e&&(e=t);varr=n;if(null===n)r=[];else{if(!n)thrownewTypeError("Selector must not be empty");"string"!=typeofn||e!==t&&!u(e)?ninstanceofElement&&(r=[n]):r=e.querySelectorAll(n)}returnArray.prototype.slice.call(r)}functionc(n,e,t){returne.filter((function(e){varr=u(e)&&e.matches(n);returnr&&t&&t(e),r}))}functionf(e,t){varo=t.add,u=t.remove,i=[];r(e,"has")&&r(e,"get").trim().split(n).forEach((function(n){i.indexOf(n)<0&&n!==u&&i.push(n)})),o&&i.push(o);varc=i.join("");r(e,""===c?"remove":"set",c)}functiona(n,e,t){returnc(":not("+o(n)+")",i(e,t),(function(e){returnf(e,{add:n})}))}returna.remove=function(n,e,t){returnc(o(n),i(e,t),(function(e){returnf(e,{remove:n})}))},a.filter=function(n,e,t){returnc(o(n),i(e,t))},a.find=function(n,e){returni(n?o(n):"[data-once]",e)},a}();