UNPKG

bootstrap-italia

Version:

Bootstrap Italia è un tema Bootstrap 5 per la creazione di applicazioni web nel pieno rispetto delle linee guida di design per i siti internet e i servizi digitali della PA

10 lines (7 loc) 40 kB
import { createCommonjsModule } from '../../_virtual/_commonjsHelpers.js'; var accessibleAutocomplete = createCommonjsModule(function (module, exports) { !function(e,t){module.exports=t();}(globalThis,(()=>(()=>{var e={8952:(e,t,n)=>{var r=n(4328),o=n(36),i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(o(e)+" is not a function")};},6100:(e,t,n)=>{var r=n(7e3),o=TypeError;e.exports=function(e,t){if(r(t,e))return e;throw new o("Incorrect invocation")};},3951:(e,t,n)=>{var r=n(1632),o=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(o(e)+" is not an object")};},2504:(e,t,n)=>{var r=n(4096),o=n(2495),i=n(3556),s=function(e){return function(t,n,s){var a=r(t),l=i(a);if(0===l)return !e&&-1;var u,c=o(s,l);if(e&&n!=n){for(;l>c;)if((u=a[c++])!=u)return !0}else for(;l>c;c++)if((e||c in a)&&a[c]===n)return e||c||0;return !e&&-1}};e.exports={includes:s(!0),indexOf:s(!1)};},6728:(e,t,n)=>{var r=n(3476),o=n(1432),i=TypeError,s=Object.getOwnPropertyDescriptor,a=r&&!function(){if(void 0!==this)return !0;try{Object.defineProperty([],"length",{writable:!1}).length=1;}catch(e){return e instanceof TypeError}}();e.exports=a?function(e,t){if(o(e)&&!s(e,"length").writable)throw new i("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t};},8696:(e,t,n)=>{var r=n(3951),o=n(3112);e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(s){o(e,"throw",s);}};},1888:(e,t,n)=>{var r=n(1664),o=r({}.toString),i=r("".slice);e.exports=function(e){return i(o(e),8,-1)};},9968:(e,t,n)=>{var r=n(5152),o=n(9252),i=n(9444),s=n(8352);e.exports=function(e,t,n){for(var a=o(t),l=s.f,u=i.f,c=0;c<a.length;c++){var p=a[c];r(e,p)||n&&r(n,p)||l(e,p,u(t,p));}};},2272:(e,t,n)=>{var r=n(9957);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}));},3336:e=>{e.exports=function(e,t){return {value:e,done:t}};},3440:(e,t,n)=>{var r=n(3476),o=n(8352),i=n(9728);e.exports=r?function(e,t,n){return o.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e};},9728:e=>{e.exports=function(e,t){return {enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}};},92:(e,t,n)=>{var r=n(3476),o=n(8352),i=n(9728);e.exports=function(e,t,n){r?o.f(e,t,i(0,n)):e[t]=n;};},2544:(e,t,n)=>{var r=n(5312),o=n(8352);e.exports=function(e,t,n){return n.get&&r(n.get,t,{getter:!0}),n.set&&r(n.set,t,{setter:!0}),o.f(e,t,n)};},6076:(e,t,n)=>{var r=n(4328),o=n(8352),i=n(5312),s=n(4636);e.exports=function(e,t,n,a){a||(a={});var l=a.enumerable,u=void 0!==a.name?a.name:t;if(r(n)&&i(n,u,a),a.global)l?e[t]=n:s(t,n);else {try{a.unsafe?e[t]&&(l=!0):delete e[t];}catch(c){}l?e[t]=n:o.f(e,t,{value:n,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable});}return e};},4036:(e,t,n)=>{var r=n(6076);e.exports=function(e,t,n){for(var o in t)r(e,o,t[o],n);return e};},4636:(e,t,n)=>{var r=n(6420),o=Object.defineProperty;e.exports=function(e,t){try{o(r,e,{value:t,configurable:!0,writable:!0});}catch(n){r[e]=t;}return t};},3476:(e,t,n)=>{var r=n(9957);e.exports=!r((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}));},8168:(e,t,n)=>{var r=n(6420),o=n(1632),i=r.document,s=o(i)&&o(i.createElement);e.exports=function(e){return s?i.createElement(e):{}};},4316:e=>{var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e};},6064:e=>{e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||"";},8504:(e,t,n)=>{var r,o,i=n(6420),s=n(6064),a=i.process,l=i.Deno,u=a&&a.versions||l&&l.version,c=u&&u.v8;c&&(o=(r=c.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&s&&(!(r=s.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=s.match(/Chrome\/(\d+)/))&&(o=+r[1]),e.exports=o;},8256:e=>{e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"];},9160:(e,t,n)=>{var r=n(6420),o=n(9444).f,i=n(3440),s=n(6076),a=n(4636),l=n(9968),u=n(6704);e.exports=function(e,t){var n,c,p,h,d,f=e.target,v=e.global,m=e.stat;if(n=v?r:m?r[f]||a(f,{}):r[f]&&r[f].prototype)for(c in t){if(h=t[c],p=e.dontCallGetSet?(d=o(n,c))&&d.value:n[c],!u(v?c:f+(m?".":"#")+c,e.forced)&&void 0!==p){if(typeof h==typeof p)continue;l(h,p);}(e.sham||p&&p.sham)&&i(h,"sham",!0),s(n,c,h,e);}};},9957:e=>{e.exports=function(e){try{return !!e()}catch(t){return !0}};},7332:(e,t,n)=>{var r=n(9957);e.exports=!r((function(){var e=function(){}.bind();return "function"!=typeof e||e.hasOwnProperty("prototype")}));},8448:(e,t,n)=>{var r=n(7332),o=Function.prototype.call;e.exports=r?o.bind(o):function(){return o.apply(o,arguments)};},6208:(e,t,n)=>{var r=n(3476),o=n(5152),i=Function.prototype,s=r&&Object.getOwnPropertyDescriptor,a=o(i,"name"),l=a&&"something"===function(){}.name,u=a&&(!r||r&&s(i,"name").configurable);e.exports={EXISTS:a,PROPER:l,CONFIGURABLE:u};},1664:(e,t,n)=>{var r=n(7332),o=Function.prototype,i=o.call,s=r&&o.bind.bind(i,i);e.exports=r?s:function(e){return function(){return i.apply(e,arguments)}};},5232:(e,t,n)=>{var r=n(6420),o=n(4328);e.exports=function(e,t){return arguments.length<2?(n=r[e],o(n)?n:void 0):r[e]&&r[e][t];var n;};},6752:e=>{e.exports=function(e){return {iterator:e,next:e.next,done:!1}};},4504:(e,t,n)=>{var r=n(8952),o=n(9760);e.exports=function(e,t){var n=e[t];return o(n)?void 0:r(n)};},6420:function(e,t,n){var r=function(e){return e&&e.Math===Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||r("object"==typeof this&&this)||function(){return this}()||Function("return this")();},5152:(e,t,n)=>{var r=n(1664),o=n(4356),i=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(o(e),t)};},2560:e=>{e.exports={};},4168:(e,t,n)=>{var r=n(5232);e.exports=r("document","documentElement");},9888:(e,t,n)=>{var r=n(3476),o=n(9957),i=n(8168);e.exports=!r&&!o((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}));},5712:(e,t,n)=>{var r=n(1664),o=n(9957),i=n(1888),s=Object,a=r("".split);e.exports=o((function(){return !s("z").propertyIsEnumerable(0)}))?function(e){return "String"===i(e)?a(e,""):s(e)}:s;},9112:(e,t,n)=>{var r=n(1664),o=n(4328),i=n(3976),s=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(e){return s(e)}),e.exports=i.inspectSource;},9104:(e,t,n)=>{var r,o,i,s=n(4288),a=n(6420),l=n(1632),u=n(3440),c=n(5152),p=n(3976),h=n(6504),d=n(2560),f="Object already initialized",v=a.TypeError,m=a.WeakMap;if(s||p.state){var y=p.state||(p.state=new m);y.get=y.get,y.has=y.has,y.set=y.set,r=function(e,t){if(y.has(e))throw new v(f);return t.facade=e,y.set(e,t),t},o=function(e){return y.get(e)||{}},i=function(e){return y.has(e)};}else {var g=h("state");d[g]=!0,r=function(e,t){if(c(e,g))throw new v(f);return t.facade=e,u(e,g,t),t},o=function(e){return c(e,g)?e[g]:{}},i=function(e){return c(e,g)};}e.exports={set:r,get:o,has:i,enforce:function(e){return i(e)?o(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!l(t)||(n=o(t)).type!==e)throw new v("Incompatible receiver, "+e+" required");return n}}};},1432:(e,t,n)=>{var r=n(1888);e.exports=Array.isArray||function(e){return "Array"===r(e)};},4328:e=>{var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return "function"==typeof e||e===t}:function(e){return "function"==typeof e};},6704:(e,t,n)=>{var r=n(9957),o=n(4328),i=/#|\.prototype\./,s=function(e,t){var n=l[a(e)];return n===c||n!==u&&(o(t)?r(t):!!t)},a=s.normalize=function(e){return String(e).replace(i,".").toLowerCase()},l=s.data={},u=s.NATIVE="N",c=s.POLYFILL="P";e.exports=s;},9760:e=>{e.exports=function(e){return null==e};},1632:(e,t,n)=>{var r=n(4328);e.exports=function(e){return "object"==typeof e?null!==e:r(e)};},7048:e=>{e.exports=!1;},7728:(e,t,n)=>{var r=n(5232),o=n(4328),i=n(7e3),s=n(6536),a=Object;e.exports=s?function(e){return "symbol"==typeof e}:function(e){var t=r("Symbol");return o(t)&&i(t.prototype,a(e))};},3112:(e,t,n)=>{var r=n(8448),o=n(3951),i=n(4504);e.exports=function(e,t,n){var s,a;o(e);try{if(!(s=i(e,"return"))){if("throw"===t)throw n;return n}s=r(s,e);}catch(l){a=!0,s=l;}if("throw"===t)throw n;if(a)throw s;return o(s),n};},9724:(e,t,n)=>{var r=n(8448),o=n(9368),i=n(3440),s=n(4036),a=n(9972),l=n(9104),u=n(4504),c=n(336).IteratorPrototype,p=n(3336),h=n(3112),d=a("toStringTag"),f="IteratorHelper",v="WrapForValidIterator",m=l.set,y=function(e){var t=l.getterFor(e?v:f);return s(o(c),{next:function(){var n=t(this);if(e)return n.nextHandler();try{var r=n.done?void 0:n.nextHandler();return p(r,n.done)}catch(o){throw n.done=!0,o}},return:function(){var n=t(this),o=n.iterator;if(n.done=!0,e){var i=u(o,"return");return i?r(i,o):p(void 0,!0)}if(n.inner)try{h(n.inner.iterator,"normal");}catch(s){return h(o,"throw",s)}return h(o,"normal"),p(void 0,!0)}})},g=y(!0),b=y(!1);i(b,d,"Iterator Helper"),e.exports=function(e,t){var n=function(n,r){r?(r.iterator=n.iterator,r.next=n.next):r=n,r.type=t?v:f,r.nextHandler=e,r.counter=0,r.done=!1,m(this,r);};return n.prototype=t?g:b,n};},5792:(e,t,n)=>{var r=n(8448),o=n(8952),i=n(3951),s=n(6752),a=n(9724),l=n(8696),u=a((function(){var e=this.iterator,t=i(r(this.next,e));if(!(this.done=!!t.done))return l(e,this.mapper,[t.value,this.counter++],!0)}));e.exports=function(e){return i(this),o(e),new u(s(this),{mapper:e})};},336:(e,t,n)=>{var r,o,i,s=n(9957),a=n(4328),l=n(1632),u=n(9368),c=n(7796),p=n(6076),h=n(9972),d=n(7048),f=h("iterator"),v=!1;[].keys&&("next"in(i=[].keys())?(o=c(c(i)))!==Object.prototype&&(r=o):v=!0),!l(r)||s((function(){var e={};return r[f].call(e)!==e}))?r={}:d&&(r=u(r)),a(r[f])||p(r,f,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:v};},3556:(e,t,n)=>{var r=n(7584);e.exports=function(e){return r(e.length)};},5312:(e,t,n)=>{var r=n(1664),o=n(9957),i=n(4328),s=n(5152),a=n(3476),l=n(6208).CONFIGURABLE,u=n(9112),c=n(9104),p=c.enforce,h=c.get,d=String,f=Object.defineProperty,v=r("".slice),m=r("".replace),y=r([].join),g=a&&!o((function(){return 8!==f((function(){}),"length",{value:8}).length})),b=String(String).split("String"),w=e.exports=function(e,t,n){"Symbol("===v(d(t),0,7)&&(t="["+m(d(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!s(e,"name")||l&&e.name!==t)&&(a?f(e,"name",{value:t,configurable:!0}):e.name=t),g&&n&&s(n,"arity")&&e.length!==n.arity&&f(e,"length",{value:n.arity});try{n&&s(n,"constructor")&&n.constructor?a&&f(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0);}catch(o){}var r=p(e);return s(r,"source")||(r.source=y(b,"string"==typeof t?t:"")),e};Function.prototype.toString=w((function(){return i(this)&&h(this).source||u(this)}),"toString");},1748:e=>{var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return (r>0?n:t)(r)};},9368:(e,t,n)=>{var r,o=n(3951),i=n(2056),s=n(8256),a=n(2560),l=n(4168),u=n(8168),c=n(6504),p="prototype",h="script",d=c("IE_PROTO"),f=function(){},v=function(e){return "<"+h+">"+e+"</"+h+">"},m=function(e){e.write(v("")),e.close();var t=e.parentWindow.Object;return e=null,t},y=function(){try{r=new ActiveXObject("htmlfile");}catch(i){}var e,t,n;y="undefined"!=typeof document?document.domain&&r?m(r):(t=u("iframe"),n="java"+h+":",t.style.display="none",l.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(v("document.F=Object")),e.close(),e.F):m(r);for(var o=s.length;o--;)delete y[p][s[o]];return y()};a[d]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(f[p]=o(e),n=new f,f[p]=null,n[d]=e):n=y(),void 0===t?n:i.f(n,t)};},2056:(e,t,n)=>{var r=n(3476),o=n(1576),i=n(8352),s=n(3951),a=n(4096),l=n(1531);t.f=r&&!o?Object.defineProperties:function(e,t){s(e);for(var n,r=a(t),o=l(t),u=o.length,c=0;u>c;)i.f(e,n=o[c++],r[n]);return e};},8352:(e,t,n)=>{var r=n(3476),o=n(9888),i=n(1576),s=n(3951),a=n(88),l=TypeError,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor,p="enumerable",h="configurable",d="writable";t.f=r?i?function(e,t,n){if(s(e),t=a(t),s(n),"function"==typeof e&&"prototype"===t&&"value"in n&&d in n&&!n[d]){var r=c(e,t);r&&r[d]&&(e[t]=n.value,n={configurable:h in n?n[h]:r[h],enumerable:p in n?n[p]:r[p],writable:!1});}return u(e,t,n)}:u:function(e,t,n){if(s(e),t=a(t),s(n),o)try{return u(e,t,n)}catch(r){}if("get"in n||"set"in n)throw new l("Accessors not supported");return "value"in n&&(e[t]=n.value),e};},9444:(e,t,n)=>{var r=n(3476),o=n(8448),i=n(8912),s=n(9728),a=n(4096),l=n(88),u=n(5152),c=n(9888),p=Object.getOwnPropertyDescriptor;t.f=r?p:function(e,t){if(e=a(e),t=l(t),c)try{return p(e,t)}catch(n){}if(u(e,t))return s(!o(i.f,e,t),e[t])};},5048:(e,t,n)=>{var r=n(9008),o=n(8256).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)};},9392:(e,t)=>{t.f=Object.getOwnPropertySymbols;},7796:(e,t,n)=>{var r=n(5152),o=n(4328),i=n(4356),s=n(6504),a=n(2272),l=s("IE_PROTO"),u=Object,c=u.prototype;e.exports=a?u.getPrototypeOf:function(e){var t=i(e);if(r(t,l))return t[l];var n=t.constructor;return o(n)&&t instanceof n?n.prototype:t instanceof u?c:null};},7e3:(e,t,n)=>{var r=n(1664);e.exports=r({}.isPrototypeOf);},9008:(e,t,n)=>{var r=n(1664),o=n(5152),i=n(4096),s=n(2504).indexOf,a=n(2560),l=r([].push);e.exports=function(e,t){var n,r=i(e),u=0,c=[];for(n in r)!o(a,n)&&o(r,n)&&l(c,n);for(;t.length>u;)o(r,n=t[u++])&&(~s(c,n)||l(c,n));return c};},1531:(e,t,n)=>{var r=n(9008),o=n(8256);e.exports=Object.keys||function(e){return r(e,o)};},8912:(e,t)=>{var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);t.f=o?function(e){var t=r(this,e);return !!t&&t.enumerable}:n;},2104:(e,t,n)=>{var r=n(8448),o=n(4328),i=n(1632),s=TypeError;e.exports=function(e,t){var n,a;if("string"===t&&o(n=e.toString)&&!i(a=r(n,e)))return a;if(o(n=e.valueOf)&&!i(a=r(n,e)))return a;if("string"!==t&&o(n=e.toString)&&!i(a=r(n,e)))return a;throw new s("Can't convert object to primitive value")};},9252:(e,t,n)=>{var r=n(5232),o=n(1664),i=n(5048),s=n(9392),a=n(3951),l=o([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(a(e)),n=s.f;return n?l(t,n(e)):t};},5436:(e,t,n)=>{var r=n(9760),o=TypeError;e.exports=function(e){if(r(e))throw new o("Can't call method on "+e);return e};},6504:(e,t,n)=>{var r=n(4696),o=n(7776),i=r("keys");e.exports=function(e){return i[e]||(i[e]=o(e))};},3976:(e,t,n)=>{var r=n(7048),o=n(6420),i=n(4636),s="__core-js_shared__",a=e.exports=o[s]||i(s,{});(a.versions||(a.versions=[])).push({version:"3.36.0",mode:r?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.36.0/LICENSE",source:"https://github.com/zloirock/core-js"});},4696:(e,t,n)=>{var r=n(3976);e.exports=function(e,t){return r[e]||(r[e]=t||{})};},772:(e,t,n)=>{var r=n(8504),o=n(9957),i=n(6420).String;e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol("symbol detection");return !i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}));},2495:(e,t,n)=>{var r=n(6180),o=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):i(n,t)};},4096:(e,t,n)=>{var r=n(5712),o=n(5436);e.exports=function(e){return r(o(e))};},6180:(e,t,n)=>{var r=n(1748);e.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)};},7584:(e,t,n)=>{var r=n(6180),o=Math.min;e.exports=function(e){var t=r(e);return t>0?o(t,9007199254740991):0};},4356:(e,t,n)=>{var r=n(5436),o=Object;e.exports=function(e){return o(r(e))};},7024:(e,t,n)=>{var r=n(8448),o=n(1632),i=n(7728),s=n(4504),a=n(2104),l=n(9972),u=TypeError,c=l("toPrimitive");e.exports=function(e,t){if(!o(e)||i(e))return e;var n,l=s(e,c);if(l){if(void 0===t&&(t="default"),n=r(l,e,t),!o(n)||i(n))return n;throw new u("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)};},88:(e,t,n)=>{var r=n(7024),o=n(7728);e.exports=function(e){var t=r(e,"string");return o(t)?t:t+""};},36:e=>{var t=String;e.exports=function(e){try{return t(e)}catch(n){return "Object"}};},7776:(e,t,n)=>{var r=n(1664),o=0,i=Math.random(),s=r(1..toString);e.exports=function(e){return "Symbol("+(void 0===e?"":e)+")_"+s(++o+i,36)};},6536:(e,t,n)=>{var r=n(772);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator;},1576:(e,t,n)=>{var r=n(3476),o=n(9957);e.exports=r&&o((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}));},4288:(e,t,n)=>{var r=n(6420),o=n(4328),i=r.WeakMap;e.exports=o(i)&&/native code/.test(String(i));},9972:(e,t,n)=>{var r=n(6420),o=n(4696),i=n(5152),s=n(7776),a=n(772),l=n(6536),u=r.Symbol,c=o("wks"),p=l?u.for||u:u&&u.withoutSetter||s;e.exports=function(e){return i(c,e)||(c[e]=a&&i(u,e)?u[e]:p("Symbol."+e)),c[e]};},4728:(e,t,n)=>{var r=n(9160),o=n(4356),i=n(3556),s=n(6728),a=n(4316);r({target:"Array",proto:!0,arity:1,forced:n(9957)((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push();}catch(e){return e instanceof TypeError}}()},{push:function(e){var t=o(this),n=i(t),r=arguments.length;a(n+r);for(var l=0;l<r;l++)t[n]=arguments[l],n++;return s(t,n),n}});},3536:(e,t,n)=>{var r=n(9160),o=n(6420),i=n(6100),s=n(3951),a=n(4328),l=n(7796),u=n(2544),c=n(92),p=n(9957),h=n(5152),d=n(9972),f=n(336).IteratorPrototype,v=n(3476),m=n(7048),y="constructor",g="Iterator",b=d("toStringTag"),w=TypeError,x=o[g],O=m||!a(x)||x.prototype!==f||!p((function(){x({});})),_=function(){if(i(this,f),l(this)===f)throw new w("Abstract class Iterator not directly constructable")},C=function(e,t){v?u(f,e,{configurable:!0,get:function(){return t},set:function(t){if(s(this),this===f)throw new w("You can't redefine this property");h(this,e)?this[e]=t:c(this,e,t);}}):f[e]=t;};h(f,b)||C(b,g),!O&&h(f,y)&&f[y]!==Object||C(y,_),_.prototype=f,r({global:!0,constructor:!0,forced:O},{Iterator:_});},2144:(e,t,n)=>{var r=n(9160),o=n(8448),i=n(8952),s=n(3951),a=n(6752),l=n(9724),u=n(8696),c=n(7048),p=l((function(){for(var e,t,n=this.iterator,r=this.predicate,i=this.next;;){if(e=s(o(i,n)),this.done=!!e.done)return;if(t=e.value,u(n,r,[t,this.counter++],!0))return t}}));r({target:"Iterator",proto:!0,real:!0,forced:c},{filter:function(e){return s(this),i(e),new p(a(this),{predicate:e})}});},9080:(e,t,n)=>{var r=n(9160),o=n(5792);r({target:"Iterator",proto:!0,real:!0,forced:n(7048)},{map:o});}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]});},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var r={};return (()=>{n.d(r,{default:()=>H});n(3536),n(2144),n(9080);var e=function(){},t={},o=[],i=[];function s(n,r){var s,a,l,u,c=i;for(u=arguments.length;u-- >2;)o.push(arguments[u]);for(r&&null!=r.children&&(o.length||o.push(r.children),delete r.children);o.length;)if((a=o.pop())&&void 0!==a.pop)for(u=a.length;u--;)o.push(a[u]);else "boolean"==typeof a&&(a=null),(l="function"!=typeof n)&&(null==a?a="":"number"==typeof a?a=String(a):"string"!=typeof a&&(l=!1)),l&&s?c[c.length-1]+=a:c===i?c=[a]:c.push(a),s=l;var p=new e;return p.nodeName=n,p.children=c,p.attributes=null==r?void 0:r,p.key=null==r?void 0:r.key,void 0!==t.vnode&&t.vnode(p),p}function a(e,t){for(var n in t)e[n]=t[n];return e}function l(e,t){e&&("function"==typeof e?e(t):e.current=t);}var u="function"==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):setTimeout;var c=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,p=[];function h(e){!e._dirty&&(e._dirty=!0)&&1==p.push(e)&&(t.debounceRendering||u)(d);}function d(){for(var e;e=p.pop();)e._dirty&&A(e);}function f(e,t,n){return "string"==typeof t||"number"==typeof t?void 0!==e.splitText:"string"==typeof t.nodeName?!e._componentConstructor&&v(e,t.nodeName):n||e._componentConstructor===t.nodeName}function v(e,t){return e.normalizedNodeName===t||e.nodeName.toLowerCase()===t.toLowerCase()}function m(e){var t=a({},e.attributes);t.children=e.children;var n=e.nodeName.defaultProps;if(void 0!==n)for(var r in n)void 0===t[r]&&(t[r]=n[r]);return t}function y(e){var t=e.parentNode;t&&t.removeChild(e);}function g(e,t,n,r,o){if("className"===t&&(t="class"),"key"===t);else if("ref"===t)l(n,null),l(r,e);else if("class"!==t||o)if("style"===t){if(r&&"string"!=typeof r&&"string"!=typeof n||(e.style.cssText=r||""),r&&"object"==typeof r){if("string"!=typeof n)for(var i in n)i in r||(e.style[i]="");for(var i in r)e.style[i]="number"==typeof r[i]&&!1===c.test(i)?r[i]+"px":r[i];}}else if("dangerouslySetInnerHTML"===t)r&&(e.innerHTML=r.__html||"");else if("o"==t[0]&&"n"==t[1]){var s=t!==(t=t.replace(/Capture$/,""));t=t.toLowerCase().substring(2),r?n||e.addEventListener(t,b,s):e.removeEventListener(t,b,s),(e._listeners||(e._listeners={}))[t]=r;}else if("list"!==t&&"type"!==t&&!o&&t in e){try{e[t]=null==r?"":r;}catch(u){}null!=r&&!1!==r||"spellcheck"==t||e.removeAttribute(t);}else {var a=o&&t!==(t=t.replace(/^xlink:?/,""));null==r||!1===r?a?e.removeAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase()):e.removeAttribute(t):"function"!=typeof r&&(a?e.setAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase(),r):e.setAttribute(t,r));}else e.className=r||"";}function b(e){return this._listeners[e.type](t.event&&t.event(e)||e)}var w=[],x=0,O=!1,_=!1;function C(){for(var e;e=w.shift();)t.afterMount&&t.afterMount(e),e.componentDidMount&&e.componentDidMount();}function S(e,t,n,r,o,i){x++||(O=null!=o&&void 0!==o.ownerSVGElement,_=null!=e&&!("__preactattr_"in e));var s=I(e,t,n,r,i);return o&&s.parentNode!==o&&o.appendChild(s),--x||(_=!1,i||C()),s}function I(e,t,n,r,o){var i=e,s=O;if(null!=t&&"boolean"!=typeof t||(t=""),"string"==typeof t||"number"==typeof t)return e&&void 0!==e.splitText&&e.parentNode&&(!e._component||o)?e.nodeValue!=t&&(e.nodeValue=t):(i=document.createTextNode(t),e&&(e.parentNode&&e.parentNode.replaceChild(i,e),E(e,!0))),i.__preactattr_=!0,i;var a,l,u=t.nodeName;if("function"==typeof u)return function(e,t,n,r){var o=e&&e._component,i=o,s=e,a=o&&e._componentConstructor===t.nodeName,l=a,u=m(t);for(;o&&!l&&(o=o._parentComponent);)l=o.constructor===t.nodeName;o&&l&&(!r||o._component)?(T(o,u,3,n,r),e=o.base):(i&&!a&&(M(i),e=s=null),o=P(t.nodeName,u,n),e&&!o.nextBase&&(o.nextBase=e,s=null),T(o,u,1,n,r),e=o.base,s&&e!==s&&(s._component=null,E(s,!1)));return e}(e,t,n,r);if(O="svg"===u||"foreignObject"!==u&&O,u=String(u),(!e||!v(e,u))&&(a=u,(l=O?document.createElementNS("http://www.w3.org/2000/svg",a):document.createElement(a)).normalizedNodeName=a,i=l,e)){for(;e.firstChild;)i.appendChild(e.firstChild);e.parentNode&&e.parentNode.replaceChild(i,e),E(e,!0);}var c=i.firstChild,p=i.__preactattr_,h=t.children;if(null==p){p=i.__preactattr_={};for(var d=i.attributes,b=d.length;b--;)p[d[b].name]=d[b].value;}return !_&&h&&1===h.length&&"string"==typeof h[0]&&null!=c&&void 0!==c.splitText&&null==c.nextSibling?c.nodeValue!=h[0]&&(c.nodeValue=h[0]):(h&&h.length||null!=c)&&function(e,t,n,r,o){var i,s,a,l,u,c=e.childNodes,p=[],h={},d=0,v=0,m=c.length,g=0,b=t?t.length:0;if(0!==m)for(var w=0;w<m;w++){var x=c[w],O=x.__preactattr_;null!=(_=b&&O?x._component?x._component.__key:O.key:null)?(d++,h[_]=x):(O||(void 0!==x.splitText?!o||x.nodeValue.trim():o))&&(p[g++]=x);}if(0!==b)for(w=0;w<b;w++){var _;if(u=null,null!=(_=(l=t[w]).key))d&&void 0!==h[_]&&(u=h[_],h[_]=void 0,d--);else if(v<g)for(i=v;i<g;i++)if(void 0!==p[i]&&f(s=p[i],l,o)){u=s,p[i]=void 0,i===g-1&&g--,i===v&&v++;break}u=I(u,l,n,r),a=c[w],u&&u!==e&&u!==a&&(null==a?e.appendChild(u):u===a.nextSibling?y(a):e.insertBefore(u,a));}if(d)for(var w in h)void 0!==h[w]&&E(h[w],!1);for(;v<=g;)void 0!==(u=p[g--])&&E(u,!1);}(i,h,n,r,_||null!=p.dangerouslySetInnerHTML),function(e,t,n){var r;for(r in n)t&&null!=t[r]||null==n[r]||g(e,r,n[r],n[r]=void 0,O);for(r in t)"children"===r||"innerHTML"===r||r in n&&t[r]===("value"===r||"checked"===r?e[r]:n[r])||g(e,r,n[r],n[r]=t[r],O);}(i,t.attributes,p),O=s,i}function E(e,t){var n=e._component;n?M(n):(null!=e.__preactattr_&&l(e.__preactattr_.ref,null),!1!==t&&null!=e.__preactattr_||y(e),N(e));}function N(e){for(e=e.lastChild;e;){var t=e.previousSibling;E(e,!0),e=t;}}var j=[];function P(e,t,n){var r,o=j.length;for(e.prototype&&e.prototype.render?(r=new e(t,n),$.call(r,t,n)):((r=new $(t,n)).constructor=e,r.render=k);o--;)if(j[o].constructor===e)return r.nextBase=j[o].nextBase,j.splice(o,1),r;return r}function k(e,t,n){return this.constructor(e,n)}function T(e,n,r,o,i){e._disable||(e._disable=!0,e.__ref=n.ref,e.__key=n.key,delete n.ref,delete n.key,void 0===e.constructor.getDerivedStateFromProps&&(!e.base||i?e.componentWillMount&&e.componentWillMount():e.componentWillReceiveProps&&e.componentWillReceiveProps(n,o)),o&&o!==e.context&&(e.prevContext||(e.prevContext=e.context),e.context=o),e.prevProps||(e.prevProps=e.props),e.props=n,e._disable=!1,0!==r&&(1!==r&&!1===t.syncComponentUpdates&&e.base?h(e):A(e,1,i)),l(e.__ref,e));}function A(e,n,r,o){if(!e._disable){var i,s,l,u=e.props,c=e.state,p=e.context,h=e.prevProps||u,d=e.prevState||c,f=e.prevContext||p,v=e.base,y=e.nextBase,g=v||y,b=e._component,O=!1,_=f;if(e.constructor.getDerivedStateFromProps&&(c=a(a({},c),e.constructor.getDerivedStateFromProps(u,c)),e.state=c),v&&(e.props=h,e.state=d,e.context=f,2!==n&&e.shouldComponentUpdate&&!1===e.shouldComponentUpdate(u,c,p)?O=!0:e.componentWillUpdate&&e.componentWillUpdate(u,c,p),e.props=u,e.state=c,e.context=p),e.prevProps=e.prevState=e.prevContext=e.nextBase=null,e._dirty=!1,!O){i=e.render(u,c,p),e.getChildContext&&(p=a(a({},p),e.getChildContext())),v&&e.getSnapshotBeforeUpdate&&(_=e.getSnapshotBeforeUpdate(h,d));var I,N,j=i&&i.nodeName;if("function"==typeof j){var k=m(i);(s=b)&&s.constructor===j&&k.key==s.__key?T(s,k,1,p,!1):(I=s,e._component=s=P(j,k,p),s.nextBase=s.nextBase||y,s._parentComponent=e,T(s,k,0,p,!1),A(s,1,r,!0)),N=s.base;}else l=g,(I=b)&&(l=e._component=null),(g||1===n)&&(l&&(l._component=null),N=S(l,i,p,r||!v,g&&g.parentNode,!0));if(g&&N!==g&&s!==b){var $=g.parentNode;$&&N!==$&&($.replaceChild(N,g),I||(g._component=null,E(g,!1)));}if(I&&M(I),e.base=N,N&&!o){for(var L=e,D=e;D=D._parentComponent;)(L=D).base=N;N._component=L,N._componentConstructor=L.constructor;}}for(!v||r?w.push(e):O||(e.componentDidUpdate&&e.componentDidUpdate(h,d,_),t.afterUpdate&&t.afterUpdate(e));e._renderCallbacks.length;)e._renderCallbacks.pop().call(e);x||o||C();}}function M(e){t.beforeUnmount&&t.beforeUnmount(e);var n=e.base;e._disable=!0,e.componentWillUnmount&&e.componentWillUnmount(),e.base=null;var r=e._component;r?M(r):n&&(null!=n.__preactattr_&&l(n.__preactattr_.ref,null),e.nextBase=n,y(n),j.push(e),N(n)),l(e.__ref,null);}function $(e,t){this._dirty=!0,this.context=t,this.props=e,this.state=this.state||{},this._renderCallbacks=[];}function L(e,t,n){return S(n,e,{},!1,t,!1)}a($.prototype,{setState:function(e,t){this.prevState||(this.prevState=this.state),this.state=a(a({},this.state),"function"==typeof e?e(this.state,this.props):e),t&&this._renderCallbacks.push(t),h(this);},forceUpdate:function(e){e&&this._renderCallbacks.push(e),A(this,2);},render:function(){}});n(4728);class D extends ${static defaultProps={tQueryTooShort:e=>`Type in ${e} or more characters for results`,tNoResults:()=>"No search results",tSelectedOption:(e,t,n)=>`${e} ${n+1} of ${t} is highlighted`,tResults:(e,t)=>`${e} ${1===e?"result":"results"} ${1===e?"is":"are"} available. ${t}`};state={bump:!1,debounced:!1};componentWillMount(){const e=this;this.debounceStatusUpdate=function(e,t,n){let r;return function(){const o=this,i=arguments;clearTimeout(r),r=setTimeout((function(){r=null,e.apply(o,i);}),t);}}((function(){if(!e.state.debounced){const t=!e.props.isInFocus||e.props.validChoiceMade;e.setState((({bump:e})=>({bump:!e,debounced:!0,silenced:t})));}}),1400);}componentWillReceiveProps({queryLength:e}){this.setState({debounced:!1});}render(){const{id:e,length:t,queryLength:n,minQueryLength:r,selectedOption:o,selectedOptionIndex:i,tQueryTooShort:a,tNoResults:l,tSelectedOption:u,tResults:c,className:p}=this.props,{bump:h,debounced:d,silenced:f}=this.state,v=n<r,m=0===t,y=o?u(o,t,i):"";let g=null;return g=v?a(r):m?l():c(t,y),this.debounceStatusUpdate(),s("div",{className:p,style:{border:"0",clip:"rect(0 0 0 0)",height:"1px",marginBottom:"-1px",marginRight:"-1px",overflow:"hidden",padding:"0",position:"absolute",whiteSpace:"nowrap",width:"1px"}},s("div",{id:e+"__status--A",role:"status","aria-atomic":"true","aria-live":"polite"},!f&&d&&h?g:""),s("div",{id:e+"__status--B",role:"status","aria-atomic":"true","aria-live":"polite"},f||!d||h?"":g))}}const B=({className:e})=>s("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",className:e,focusable:"false"},s("g",{stroke:"none",fill:"none","fill-rule":"evenodd"},s("polygon",{fill:"#000000",points:"0 0 22 0 11 17"})));function R(){return R=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},R.apply(this,arguments)}const F={13:"enter",27:"escape",32:"space",38:"up",40:"down"};function U(){return "undefined"!=typeof navigator&&!(!navigator.userAgent.match(/(iPod|iPhone|iPad)/g)||!navigator.userAgent.match(/AppleWebKit/g))}class V extends ${static defaultProps={autoselect:!1,cssNamespace:"autocomplete",defaultValue:"",displayMenu:"inline",minLength:0,name:"input-autocomplete",placeholder:"",onConfirm:()=>{},confirmOnBlur:!0,showNoOptionsFound:!0,showAllValues:!1,required:!1,tNoResults:()=>"No results found",tAssistiveHint:()=>"When autocomplete results are available use up and down arrows to review and enter to select. Touch device users, explore by touch or with swipe gestures.",dropdownArrow:B,menuAttributes:{},inputClasses:null,hintClasses:null,menuClasses:null};elementReferences={};constructor(e){super(e),this.state={focused:null,hovered:null,menuOpen:!1,options:e.defaultValue?[e.defaultValue]:[],query:e.defaultValue,validChoiceMade:!1,selected:null,ariaHint:!0},this.handleComponentBlur=this.handleComponentBlur.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleUpArrow=this.handleUpArrow.bind(this),this.handleDownArrow=this.handleDownArrow.bind(this),this.handleEnter=this.handleEnter.bind(this),this.handlePrintableKey=this.handlePrintableKey.bind(this),this.handleListMouseLeave=this.handleListMouseLeave.bind(this),this.handleOptionBlur=this.handleOptionBlur.bind(this),this.handleOptionClick=this.handleOptionClick.bind(this),this.handleOptionFocus=this.handleOptionFocus.bind(this),this.handleOptionMouseDown=this.handleOptionMouseDown.bind(this),this.handleOptionMouseEnter=this.handleOptionMouseEnter.bind(this),this.handleInputBlur=this.handleInputBlur.bind(this),this.handleInputChange=this.handleInputChange.bind(this),this.handleInputClick=this.handleInputClick.bind(this),this.handleInputFocus=this.handleInputFocus.bind(this),this.pollInputElement=this.pollInputElement.bind(this),this.getDirectInputChanges=this.getDirectInputChanges.bind(this);}isQueryAnOption(e,t){return -1!==t.map((e=>this.templateInputValue(e).toLowerCase())).indexOf(e.toLowerCase())}componentDidMount(){this.pollInputElement();}componentWillUnmount(){clearTimeout(this.$pollInput);}pollInputElement(){this.getDirectInputChanges(),this.$pollInput=setTimeout((()=>{this.pollInputElement();}),100);}getDirectInputChanges(){const e=this.elementReferences[-1];e&&e.value!==this.state.query&&this.handleInputChange({target:{value:e.value}});}componentDidUpdate(e,t){const{focused:n}=this.state,r=null===n,o=t.focused!==n;o&&!r&&this.elementReferences[n].focus();const i=-1===n,s=o&&null===t.focused;if(i&&s){const e=this.elementReferences[n];e.setSelectionRange(0,e.value.length);}}hasAutoselect(){return !U()&&this.props.autoselect}templateInputValue(e){const t=this.props.templates&&this.props.templates.inputValue;return t?t(e):e}templateSuggestion(e){const t=this.props.templates&&this.props.templates.suggestion;return t?t(e):e}handleComponentBlur(e){const{options:t,query:n,selected:r}=this.state;let o;this.props.confirmOnBlur?(o=e.query||n,this.props.onConfirm(t[r])):o=n,this.setState({focused:null,menuOpen:e.menuOpen||!1,query:o,selected:null,validChoiceMade:this.isQueryAnOption(o,t)});}handleListMouseLeave(e){this.setState({hovered:null});}handleOptionBlur(e,t){const{focused:n,menuOpen:r,options:o,selected:i}=this.state,s=null===e.relatedTarget,a=e.relatedTarget===this.elementReferences[-1],l=n!==t&&-1!==n;if(!l&&s||!(l||a)){const e=r&&U();this.handleComponentBlur({menuOpen:e,query:this.templateInputValue(o[i])});}}handleInputBlur(e){const{focused:t,menuOpen:n,options:r,query:o,selected:i}=this.state;if(!(-1!==t)){const e=n&&U(),t=U()?o:this.templateInputValue(r[i]);this.handleComponentBlur({menuOpen:e,query:t});}}handleInputChange(e){const{minLength:t,source:n,showAllValues:r}=this.props,o=this.hasAutoselect(),i=e.target.value,s=0===i.length,a=this.state.query!==i,l=i.length>=t;this.setState({query:i,ariaHint:s});r||!s&&a&&l?n(i,(e=>{const t=e.length>0;this.setState({menuOpen:t,options:e,selected:o&&t?0:-1,validChoiceMade:!1});})):!s&&l||this.setState({menuOpen:!1,options:[]});}handleInputClick(e){this.handleInputChange(e);}handleInputFocus(e){const{query:t,validChoiceMade:n,options:r}=this.state,{minLength:o}=this.props,i=!n&&t.length>=o&&r.length>0;i?this.setState((({menuOpen:e})=>({focused:-1,menuOpen:i||e,selected:-1}))):this.setState({focused:-1});}handleOptionFocus(e){this.setState({focused:e,hovered:null,selected:e});}handleOptionMouseEnter(e,t){U()||this.setState({hovered:t});}handleOptionClick(e,t){const n=this.state.options[t],r=this.templateInputValue(n);this.props.onConfirm(n),this.setState({focused:-1,hovered:null,menuOpen:!1,query:r,selected:-1,validChoiceMade:!0}),this.forceUpdate();}handleOptionMouseDown(e){e.preventDefault();}handleUpArrow(e){e.preventDefault();const{menuOpen:t,selected:n}=this.state;-1!==n&&t&&this.handleOptionFocus(n-1);}handleDownArrow(e){if(e.preventDefault(),this.props.showAllValues&&!1===this.state.menuOpen)e.preventDefault(),this.props.source("",(e=>{this.setState({menuOpen:!0,options:e,selected:0,focused:0,hovered:null});}));else if(!0===this.state.menuOpen){const{menuOpen:e,options:t,selected:n}=this.state;n!==t.length-1&&e&&this.handleOptionFocus(n+1);}}handleSpace(e){this.props.showAllValues&&!1===this.state.menuOpen&&""===this.state.query&&(e.preventDefault(),this.props.source("",(e=>{this.setState({menuOpen:!0,options:e});})));-1!==this.state.focused&&(e.preventDefault(),this.handleOptionClick(e,this.state.focused));}handleEnter(e){if(this.state.menuOpen){e.preventDefault();this.state.selected>=0&&this.handleOptionClick(e,this.state.selected);}}handlePrintableKey(e){const t=this.elementReferences[-1];e.target===t||t.focus();}handleKeyDown(e){switch(F[e.keyCode]){case"up":this.handleUpArrow(e);break;case"down":this.handleDownArrow(e);break;case"space":this.handleSpace(e);break;case"enter":this.handleEnter(e);break;case"escape":this.handleComponentBlur({query:this.state.query});break;default:((t=e.keyCode)>47&&t<58||32===t||8===t||t>64&&t<91||t>95&&t<112||t>185&&t<193||t>218&&t<223)&&this.handlePrintableKey(e);}var t;}render(){const{cssNamespace:e,displayMenu:t,id:n,minLength:r,name:o,placeholder:i,required:a,showAllValues:l,tNoResults:u,tStatusQueryTooShort:c,tStatusNoResults:p,tStatusSelectedOption:h,tStatusResults:d,tAssistiveHint:f,dropdownArrow:v,menuAttributes:m,inputClasses:y,hintClasses:g,menuClasses:b}=this.props,{focused:w,hovered:x,menuOpen:O,options:_,query:C,selected:S,ariaHint:I,validChoiceMade:E}=this.state,N=this.hasAutoselect(),j=-1===w,P=0===_.length,k=0!==C.length,T=C.length>=r,A=this.props.showNoOptionsFound&&j&&P&&k&&T,M=`${e}__wrapper`,$=`${e}__status`,L=`${e}__dropdown-arrow-down`,B=-1!==w&&null!==w,F=`${e}__option`,V=`${e}__hint`,q=this.templateInputValue(_[S]),W=q&&0===q.toLowerCase().indexOf(C.toLowerCase())&&N?C+q.substr(C.length):"",H=n+"__assistiveHint",K={"aria-describedby":I?H:null,"aria-expanded":O?"true":"false","aria-activedescendant":B?`${n}__option--${w}`:null,"aria-controls":`${n}__listbox`,"aria-autocomplete":this.hasAutoselect()?"both":"list"};let z;l&&(z=v({className:L}),"string"==typeof z&&(z=s("div",{className:`${e}__dropdown-arrow-down-wrapper`,dangerouslySetInnerHTML:{__html:z}})));const Q=`${e}__input`,G=[Q,this.props.showAllValues?`${Q}--show-all-values`:`${Q}--default`];null!==w&&G.push(`${Q}--focused`),y&&G.push(y);const Y=`${e}__menu`,X=[Y,`${Y}--${t}`,`${Y}--${O||A?"visible":"hidden"}`];b&&X.push(b),(m?.class||m?.className)&&X.push(m?.class||m?.className);const J={"aria-labelledby":n,...m,id:`${n}__listbox`,role:"listbox",className:X.join(" "),onMouseLeave:this.handleListMouseLeave};return delete J.class,s("div",{className:M,onKeyDown:this.handleKeyDown},s(D,{id:n,length:_.length,queryLength:C.length,minQueryLength:r,selectedOption:this.templateInputValue(_[S]),selectedOptionIndex:S,validChoiceMade:E,isInFocus:null!==this.state.focused,tQueryTooShort:c,tNoResults:p,tSelectedOption:h,tResults:d,className:$}),W&&s("span",null,s("input",{className:[V,null===g?y:g].filter(Boolean).join(" "),readonly:!0,tabIndex:"-1",value:W})),s("input",R({},K,{autoComplete:"off",className:G.join(" "),id:n,onClick:this.handleInputClick,onBlur:this.handleInputBlur},{onInput:this.handleInputChange},{onFocus:this.handleInputFocus,name:o,placeholder:i,ref:e=>{this.elementReferences[-1]=e;},type:"text",role:"combobox",required:a,value:C})),z,s("ul",J,_.map(((e,t)=>{const r=(-1===w?S===t:w===t)&&null===x?` ${F}--focused`:"",o=t%2?` ${F}--odd`:"",i=U()?`<span id=${n}__option-suffix--${t} style="border:0;clip:rect(0 0 0 0);height:1px;marginBottom:-1px;marginRight:-1px;overflow:hidden;padding:0;position:absolute;whiteSpace:nowrap;width:1px"> ${t+1} of ${_.length}</span>`:"";return s("li",{"aria-selected":w===t?"true":"false",className:`${F}${r}${o}`,dangerouslySetInnerHTML:{__html:this.templateSuggestion(e)+i},id:`${n}__option--${t}`,key:t,onBlur:e=>this.handleOptionBlur(e,t),onClick:e=>this.handleOptionClick(e,t),onMouseDown:this.handleOptionMouseDown,onMouseEnter:e=>this.handleOptionMouseEnter(e,t),ref:e=>{this.elementReferences[t]=e;},role:"option",tabIndex:"-1","aria-posinset":t+1,"aria-setsize":_.length})})),A&&s("li",{className:`${F} ${F}--no-results`,role:"option","aria-disabled":"true"},u())),s("span",{id:H,style:{display:"none"}},f()))}}function q(e){if(!e.element)throw new Error("element is not defined");if(!e.id)throw new Error("id is not defined");if(!e.source)throw new Error("source is not defined");Array.isArray(e.source)&&(e.source=W(e.source)),L(s(V,e),e.element);}const W=e=>(t,n)=>{n(e.filter((e=>-1!==e.toLowerCase().indexOf(t.toLowerCase()))));};q.enhanceSelectElement=e=>{if(!e.selectElement)throw new Error("selectElement is not defined");if(!e.source){const t=[].filter.call(e.selectElement.options,(t=>t.value||e.preserveNullOptions));e.source=t.map((e=>e.textContent||e.innerText));}if(e.onConfirm=e.onConfirm||(t=>{const n=[].filter.call(e.selectElement.options,(e=>(e.textContent||e.innerText)===t))[0];n&&(n.selected=!0);}),e.selectElement.value||void 0===e.defaultValue){const t=e.selectElement.options[e.selectElement.options.selectedIndex];e.defaultValue=t.textContent||t.innerText;}void 0===e.name&&(e.name=""),void 0===e.id&&(void 0===e.selectElement.id?e.id="":e.id=e.selectElement.id),void 0===e.autoselect&&(e.autoselect=!0);const t=document.createElement("div");e.selectElement.parentNode.insertBefore(t,e.selectElement),q({...e,element:t}),e.selectElement.style.display="none",e.selectElement.id=e.selectElement.id+"-select";};const H=q;})(),r=r.default})())); }); accessibleAutocomplete.accessibleAutocomplete; export { accessibleAutocomplete as __moduleExports, accessibleAutocomplete as default }; //# sourceMappingURL=accessible-autocomplete.js.map