/**
 * Minified by jsDelivr using Terser v5.39.0.
 * Original file: /npm/knockout.toggle@2.0.0/knockout.toggle.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
var ko=require("knockout");function toggle(e,t){var n=t.indexOf(e);return t[n=(n+1)%t.length]}ko.bindingHandlers.toggle={init:function(e,t,n,i,o){var r=t(),u=n().toggleValues||[!0,!1],g=function(){return function(){r(toggle(r(),u))}},l=[13,32];ko.utils.registerEventHandler(e,"keydown",(function(e){-1!=l.indexOf(e.keyCode)&&(e.preventDefault(),g()())})),e.getAttribute("tabIndex")||(e.tabIndex="0"),e.setAttribute("role","checkbox"),ko.bindingHandlers.click.init(e,g,n,i,o)},update:function(e,t){var n=t();e.setAttribute("aria-checked",n())}},module.exports=toggle;
//# sourceMappingURL=/sm/d09aed25dde27a480349826f08d73dd02b8be78932613b415ab8cc93c7906a03.map