PageSourceSearch

https://federconsumatori.it/wp-content/plugins/readabler-assistant/public/js/app.min.js?ver=1.0.1

js federconsumatori.it collected 2026-10-02 04:03:43 UTC 259,610 bytes, 1 lines download raw bytes

1(()=>{var e={"./node_modules/@popperjs/core/lib/createPopper.js"(e,t,n){"use strict";n.r(t),n.d(t,{createPopper:()=>f,popperGenerator:()=>h});var i=n("./node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js"),o=n("./node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js"),s=n("./node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js"),r=n("./node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js"),a=n("./node_modules/@popperjs/core/lib/utils/orderModifiers.js"),l=n("./node_modules/@popperjs/core/lib/utils/debounce.js"),c=n("./node_modules/@popperjs/core/lib/utils/mergeByName.js"),u=n("./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js"),d={placement:"bottom",modifiers:[],strategy:"absolute"};function p(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function h(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,h=void 0===n?[]:n,f=t.defaultOptions,m=void 0===f?d:f;return function(e,t,n){void 0===n&&(n=m);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},d,m),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},g=[],v=!1,b={state:f,setOptions:function(n){var i="function"==typeof n?n(f.options):n;y(),f.options=Object.assign({},m,f.options,i),f.scrollParents={reference:(0,u.isElement)(e)?(0,s.default)(e):e.contextElement?(0,s.default)(e.contextElement):[],popper:(0,s.default)(t)};var o=(0,a.default)((0,c.default)([].concat(h,f.options.modifiers)));return f.orderedModifiers=o.filter(function(e){return e.enabled}),f.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,i=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var s=o({state:f,name:t,instance:b,options:i}),r=function(){};g.push(s||r)}}),b.update()},forceUpdate:function(){if(!v){var e=f.elements,t=e.reference,n=e.popper;if(p(t,n)){f.rects={reference:(0,i.default)(t,(0,r.default)(n),"fixed"===f.options.strategy),popper:(0,o.default)(n)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(e){return f.modifiersData[e.name]=Object.assign({},e.data)});for(var s=0;s<f.orderedModifiers.length;s++)if(!0!==f.reset){var a=f.orderedModifiers[s],l=a.fn,c=a.options,u=void 0===c?{}:c,d=a.name;"function"==typeof l&&(f=l({state:f,options:u,name:d,instance:b})||f)}else f.reset=!1,s=-1}}},update:(0,l.default)(function(){return new Promise(function(e){b.forceUpdate(),e(f)})}),destroy:function(){y(),v=!0}};if(!p(e,t))return b;function y(){g.forEach(function(e){return e()}),g=[]}return b.setOptions(n).then(function(e){!v&&n.onFirstUpdate&&n.onFirstUpdate(e)}),b}}var f=h()},"./node_modules/@popperjs/core/lib/dom-utils/contains.js"(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>o});var i=n("./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js");function o(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&(0,i.isShadowRoot)(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}},"./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js"(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var i=n("./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js"),o=n("./node_modules/@popperjs/core/lib/utils/math.js"),s=n("./node_modules/@popperjs/core/lib/dom-utils/getWindow.js"),r=n("./node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js");function a(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var a=e.getBoundingClientRect(),l=1,c=1;t&&(0,i.isHTMLElement)(e)&&(l=e.offsetWidth>0&&(0,o.round)(a.width)/e.offsetWidth||1,c=e.offsetHeight>0&&(0,o.round)(a.height)/e.offsetHeight||1);var u=((0,i.isElement)(e)?(0,s.default)(e):window).visualViewport,d=!(0,r.default)()&&n,p=(a.left+(d&&u?u.offsetLeft:0))/l,h=(a.top+(d&&u?u.offsetTop:0))/c,f=a.width/l,m=a.height/c;return{width:f,height:m,top:h,right:p+f,bottom:h+m,left:p,x:p,y:h}}},"./node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js"(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>b});var i=n("./node_modules/@popperjs/core/lib/enums.js"),o=n("./node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js"),s=n("./node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js"),r=n("./node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js"),a=n("./node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.
1js"),l=n("./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js"),c=n("./node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js"),u=n("./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js"),d=n("./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js"),p=n("./node_modules/@popperjs/core/lib/dom-utils/getParentNode.js"),h=n("./node_modules/@popperjs/core/lib/dom-utils/contains.js"),f=n("./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js"),m=n("./node_modules/@popperjs/core/lib/utils/rectToClientRect.js"),g=n("./node_modules/@popperjs/core/lib/utils/math.js");function v(e,t,n){return t===i.viewport?(0,m.default)((0,o.default)(e,n)):(0,u.isElement)(t)?function(e,t){var n=(0,d.default)(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):(0,m.default)((0,s.default)((0,l.default)(e)))}function b(e,t,n,i){var o="clippingParents"===t?function(e){var t=(0,r.default)((0,p.default)(e)),n=["absolute","fixed"].indexOf((0,c.default)(e).position)>=0&&(0,u.isHTMLElement)(e)?(0,a.default)(e):e;return(0,u.isElement)(n)?t.filter(function(e){return(0,u.isElement)(e)&&(0,h.default)(e,n)&&"body"!==(0,f.default)(e)}):[]}(e):[].concat(t),s=[].concat(o,[n]),l=s[0],d=s.reduce(function(t,n){var o=v(e,n,i);return t.top=(0,g.max)(o.top,t.top),t.right=(0,g.min)(o.right,t.right),t.bottom=(0,g.min)(o.bottom,t.bottom),t.left=(0,g.max)(o.left,t.left),t},v(e,l,i));return d.width=d.right-d.left,d.height=d.bottom-d.top,d.x=d.left,d.y=d.top,d}},"./node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js"(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>d});var i=n("./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js"),o=n("./node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js"),s=n("./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js"),r=n("./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js"),a=n("./node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js"),l=n("./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js"),c=n("./node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js"),u=n("./node_modules/@popperjs/core/lib/utils/math.js");function d(e,t,n){void 0===n&&(n=!1);var d=(0,r.isHTMLElement)(t),p=(0,r.isHTMLElement)(t)&&function(e){var t=e.getBoundingClientRect(),n=(0,u.round)(t.width)/e.offsetWidth||1,i=(0,u.round)(t.height)/e.offsetHeight||1;return 1!==n||1!==i}(t),h=(0,l.default)(t),f=(0,i.default)(e,p,n),m={scrollLeft:0,scrollTop:0},g={x:0,y:0};return(d||!d&&!n)&&(("body"!==(0,s.default)(t)||(0,c.default)(h))&&(m=(0,o.default)(t)),(0,r.isHTMLElement)(t)?((g=(0,i.default)(t,!0)).x+=t.clientLeft,g.y+=t.clientTop):h&&(g.x=(0,a.default)(h))),{x:f.left+m.scrollLeft-g.x,y:f.top+m.scrollTop-g.y,width:f.width,height:f.height}}},"./node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js"(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>o});var i=n("./node_modules/@popperjs/core/lib/dom-utils/getWindow.js");function o(e){return(0,i.default)(e).getComputedStyle(e)}},"./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js"(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>o});var i=n("./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js");function o(e){return(((0,i.isElement)(e)?e.ownerDocument:e.document)||window.document).documentElement}},"./node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js"(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>l});var i=n("./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js"),o=n("./node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js"),s=n("./node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js"),r=n("./node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js"),a=n("./node_modules/@popperjs/core/lib/utils/math.js");function l(e){var t,n=(0,i.default)(e),l=(0,r.default)(e),c=null==(t=e.ownerDocument)?void 0:t.body,u=(0,a.max)(n.scrollWidth,n.clientWidth,c?c.scrollWidth:0,c?c.clientWidth:0),d=(0,a.max)(n.scrollHeight,n.clientHeight,c?c.scrollHeight:0,c?c.clientHeight:0),p=-l.scrollLeft+(0,s.default)(e),h=-l.scrollTop;return"rtl"===(0,o.default)(c||n).direction&&(p+=(0,a.max)(n.clientWidth,c?c.clientWidth:0)-u),{width:u,height:d,x:p,y:h}}},"./node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js"(e,t,n){"use strict";function i(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}n.r(t),n.d(t,{default:()=>i})}
1,"./node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js"(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>o});var i=n("./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js");function o(e){var t=(0,i.default)(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}},"./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js"(e,t,n){"use strict";function i(e){return e?(e.nodeName||"").toLowerCase():null}n.r(t),n.d(t,{default:()=>i})},"./node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js"(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var i=n("./node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js"),o=n("./node_modules/@popperjs/core/lib/dom-utils/getWindow.js"),s=n("./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js"),r=n("./node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js");function a(e){return e!==(0,o.default)(e)&&(0,s.isHTMLElement)(e)?(0,r.default)(e):(0,i.default)(e)}},"./node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js"(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>d});var i=n("./node_modules/@popperjs/core/lib/dom-utils/getWindow.js"),o=n("./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js"),s=n("./node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js"),r=n("./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js"),a=n("./node_modules/@popperjs/core/lib/dom-utils/isTableElement.js"),l=n("./node_modules/@popperjs/core/lib/dom-utils/getParentNode.js"),c=n("./node_modules/@popperjs/core/lib/utils/userAgent.js");function u(e){return(0,r.isHTMLElement)(e)&&"fixed"!==(0,s.default)(e).position?e.offsetParent:null}function d(e){for(var t=(0,i.default)(e),n=u(e);n&&(0,a.default)(n)&&"static"===(0,s.default)(n).position;)n=u(n);return n&&("html"===(0,o.default)(n)||"body"===(0,o.default)(n)&&"static"===(0,s.default)(n).position)?t:n||function(e){var t=/firefox/i.test((0,c.default)());if(/Trident/i.test((0,c.default)())&&(0,r.isHTMLElement)(e)&&"fixed"===(0,s.default)(e).position)return null;var n=(0,l.default)(e);for((0,r.isShadowRoot)(n)&&(n=n.host);(0,r.isHTMLElement)(n)&&["html","body"].indexOf((0,o.default)(n))<0;){var i=(0,s.default)(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||t&&"filter"===i.willChange||t&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(e)||t}},"./node_modules/@popperjs/core/lib/dom-utils/getParentNode.js"(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>r});var i=n("./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js"),o=n("./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js"),s=n("./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js");function r(e){return"html"===(0,i.default)(e)?e:e.assignedSlot||e.parentNode||((0,s.isShadowRoot)(e)?e.host:null)||(0,o.default)(e)}},"./node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js"(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var i=n("./node_modules/@popperjs/core/lib/dom-utils/getParentNode.js"),o=n("./node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js"),s=n("./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js"),r=n("./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js");function a(e){return["html","body","#document"].indexOf((0,s.default)(e))>=0?e.ownerDocument.body:(0,r.isHTMLElement)(e)&&(0,o.default)(e)?e:a((0,i.default)(e))}},"./node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js"(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var i=n("./node_modules/@popperjs/core/lib/dom-utils/getWindow.js"),o=n("./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js"),s=n("./node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js"),r=n("./node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js");function a(e,t){var n=(0,i.default)(e),a=(0,o.default)(e),l=n.visualViewport,c=a.clientWidth,u=a.clientHeight,d=0,p=0;if(l){c=l.width,u=l.height;var h=(0,r.default)();(h||!h&&"fixed"===t)&&(d=l.offsetLeft,p=l.offsetTop)}return{width:c,height:u,x:d+(0,s.default)(e),y:p}}},"./node_modules/@popperjs/core/lib/dom-utils/getWindow.js"(e,t,n){"use strict";function i(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}n.r(t),n.d(t,{default:()=>i})},"./node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js"(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>o});var i=n("./node_modules/@popperjs/core/lib/dom-utils/getWindow.js");function o(e){var t=(0,i.default)(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}},"./node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js"(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>r});var i=n("./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js"),o=n("./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js"),s=n("./node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js");function r(e){return(0,i.default)((0,o.default)(e)).left+(0,s.default)(e).scrollLeft}},"./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js"(e,t,n){"use strict";n.r(t),n.d(t,{isElement:()=>o,isHTMLElement:()=>s,isShadowRoot:()=>r});var i=n("./node_modules/@popperjs/core/lib/dom-utils/getWindow.js");function o(e){return e instanceof(0,i.default)(e).Element||e instanceof Element}function s(e){return e instanceof(0,i.default)(e).HTMLElement||e instanceof HTMLElement}function r(e){return"undefined"!=typeof ShadowRoot&&(e instanceof(0,i.default)(e).ShadowRoot||e instanceof ShadowRoot)}},"./node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js"(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>o});var i=n("./node_modules/@popperjs/core/lib/utils/userAgent.js");function o(){return!/^((?!chrome|android).)*safari/i.test((0,i.default)())}},"./node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js"(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>o});var i=n("./node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js");function o(e){var t=(0,i.default)(e),n=t.overflow,o=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+o)}},"./node_modules/@popperjs/core/lib/dom-utils/isTableElement.js"(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>o});var i=n("./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js");function o(e){return["table","td","th"].indexOf((0,i.default)(e))>=0}},"./node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js"(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var i=n("./node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js"),o=n("./node_modules/@popperjs/core/lib/dom-utils/getParentNode.js"),s=n("./node_modules/@popperjs/core/lib/dom-utils/getWindow.js"),r=n("./node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js");function a(e,t){var n;void 0===t&&(t=[]);var l=(0,i.default)(e),c=l===(null==(n=e.ownerDocument)?void 0:n.body),u=(0,s.default)(l),d=c?[u].concat(u.visualVie
1wport||[],(0,r.default)(l)?l:[]):l,p=t.concat(d);return c?p:p.concat(a((0,o.default)(d)))}},"./node_modules/@popperjs/core/lib/enums.js"(e,t,n){"use strict";n.r(t),n.d(t,{afterMain:()=>_,afterRead:()=>y,afterWrite:()=>S,auto:()=>a,basePlacements:()=>l,beforeMain:()=>w,beforeRead:()=>v,beforeWrite:()=>x,bottom:()=>o,clippingParents:()=>d,end:()=>u,left:()=>r,main:()=>j,modifierPhases:()=>O,placements:()=>g,popper:()=>h,read:()=>b,reference:()=>f,right:()=>s,start:()=>c,top:()=>i,variationPlacements:()=>m,viewport:()=>p,write:()=>E});var i="top",o="bottom",s="right",r="left",a="auto",l=[i,o,s,r],c="start",u="end",d="clippingParents",p="viewport",h="popper",f="reference",m=l.reduce(function(e,t){return e.concat([t+"-"+c,t+"-"+u])},[]),g=[].concat(l,[a]).reduce(function(e,t){return e.concat([t,t+"-"+c,t+"-"+u])},[]),v="beforeRead",b="read",y="afterRead",w="beforeMain",j="main",_="afterMain",x="beforeWrite",E="write",S="afterWrite",O=[v,b,y,w,j,_,x,E,S]},"./node_modules/@popperjs/core/lib/modifiers/applyStyles.js"(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>s});var i=n("./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js"),o=n("./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js");const s={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},s=t.attributes[e]||{},r=t.elements[e];(0,o.isHTMLElement)(r)&&(0,i.default)(r)&&(Object.assign(r.style,n),Object.keys(s).forEach(function(e){var t=s[e];!1===t?r.removeAttribute(e):r.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var s=t.elements[e],r=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});(0,o.isHTMLElement)(s)&&(0,i.default)(s)&&(Object.assign(s.style,a),Object.keys(r).forEach(function(e){s.removeAttribute(e)}))})}},requires:["computeStyles"]}},"./node_modules/@popperjs/core/lib/modifiers/arrow.js"(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>p});var i=n("./node_modules/@popperjs/core/lib/utils/getBasePlacement.js"),o=n("./node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js"),s=n("./node_modules/@popperjs/core/lib/dom-utils/contains.js"),r=n("./node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js"),a=n("./node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js"),l=n("./node_modules/@popperjs/core/lib/utils/within.js"),c=n("./node_modules/@popperjs/core/lib/utils/mergePaddingObject.js"),u=n("./node_modules/@popperjs/core/lib/utils/expandToHashMap.js"),d=n("./node_modules/@popperjs/core/lib/enums.js");const p={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,s=e.name,p=e.options,h=n.elements.arrow,f=n.modifiersData.popperOffsets,m=(0,i.default)(n.placement),g=(0,a.default)(m),v=[d.left,d.right].indexOf(m)>=0?"height":"width";if(h&&f){var b=function(e,t){return e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e,(0,c.default)("number"!=typeof e?e:(0,u.default)(e,d.basePlacements))}(p.padding,n),y=(0,o.default)(h),w="y"===g?d.top:d.left,j="y"===g?d.bottom:d.right,_=n.rects.reference[v]+n.rects.reference[g]-f[g]-n.rects.popper[v],x=f[g]-n.rects.reference[g],E=(0,r.default)(h),S=E?"y"===g?E.clientHeight||0:E.clientWidth||0:0,O=_/2-x/2,C=b[w],L=S-y[v]-b[j],k=S/2-y[v]/2+O,A=(0,l.within)(C,k,L),T=g;n.modifiersData[s]=((t={})[T]=A,t.centerOffset=A-k,t)}},effect:function(e){var t=e.state,n=e.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=t.elements.popper.querySelector(i)))&&(0,s.default)(t.elements.popper,i)&&(t.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]}},"./node_modules/@popperjs/core/lib/modifiers/computeStyles.js"(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>h,mapToStyles:()=>p});var i=n("./node_modules/@popperjs/core/lib/enums.js"),o=n("./node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.
1js"),s=n("./node_modules/@popperjs/core/lib/dom-utils/getWindow.js"),r=n("./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js"),a=n("./node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js"),l=n("./node_modules/@popperjs/core/lib/utils/getBasePlacement.js"),c=n("./node_modules/@popperjs/core/lib/utils/getVariation.js"),u=n("./node_modules/@popperjs/core/lib/utils/math.js"),d={top:"auto",right:"auto",bottom:"auto",left:"auto"};function p(e){var t,n=e.popper,l=e.popperRect,c=e.placement,p=e.variation,h=e.offsets,f=e.position,m=e.gpuAcceleration,g=e.adaptive,v=e.roundOffsets,b=e.isFixed,y=h.x,w=void 0===y?0:y,j=h.y,_=void 0===j?0:j,x="function"==typeof v?v({x:w,y:_}):{x:w,y:_};w=x.x,_=x.y;var E=h.hasOwnProperty("x"),S=h.hasOwnProperty("y"),O=i.left,C=i.top,L=window;if(g){var k=(0,o.default)(n),A="clientHeight",T="clientWidth";if(k===(0,s.default)(n)&&(k=(0,r.default)(n),"static"!==(0,a.default)(k).position&&"absolute"===f&&(A="scrollHeight",T="scrollWidth")),c===i.top||(c===i.left||c===i.right)&&p===i.end)C=i.bottom,_-=(b&&k===L&&L.visualViewport?L.visualViewport.height:k[A])-l.height,_*=m?1:-1;if(c===i.left||(c===i.top||c===i.bottom)&&p===i.end)O=i.right,w-=(b&&k===L&&L.visualViewport?L.visualViewport.width:k[T])-l.width,w*=m?1:-1}var P,I=Object.assign({position:f},g&&d),M=!0===v?function(e,t){var n=e.x,i=e.y,o=t.devicePixelRatio||1;return{x:(0,u.round)(n*o)/o||0,y:(0,u.round)(i*o)/o||0}}({x:w,y:_},(0,s.default)(n)):{x:w,y:_};return w=M.x,_=M.y,m?Object.assign({},I,((P={})[C]=S?"0":"",P[O]=E?"0":"",P.transform=(L.devicePixelRatio||1)<=1?"translate("+w+"px, "+_+"px)":"translate3d("+w+"px, "+_+"px, 0)",P)):Object.assign({},I,((t={})[C]=S?_+"px":"",t[O]=E?w+"px":"",t.transform="",t))}const h={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,i=n.gpuAcceleration,o=void 0===i||i,s=n.adaptive,r=void 0===s||s,a=n.roundOffsets,u=void 0===a||a,d={placement:(0,l.default)(t.placement),variation:(0,c.default)(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,p(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:r,roundOffsets:u})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,p(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}}},"./node_modules/@popperjs/core/lib/modifiers/eventListeners.js"(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>s});var i=n("./node_modules/@popperjs/core/lib/dom-utils/getWindow.js"),o={passive:!0};const s={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,s=e.options,r=s.scroll,a=void 0===r||r,l=s.resize,c=void 0===l||l,u=(0,i.default)(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&d.forEach(function(e){e.addEventListener("scroll",n.update,o)}),c&&u.addEventListener("resize",n.update,o),function(){a&&d.forEach(function(e){e.removeEventListener("scroll",n.update,o)}),c&&u.removeEventListener("resize",n.update,o)}},data:{}}},"./node_modules/@popperjs/core/lib/modifiers/flip.js"(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>u});var i=n("./node_modules/@popperjs/core/lib/utils/getOppositePlacement.js"),o=n("./node_modules/@popperjs/core/lib/utils/getBasePlacement.js"),s=n("./node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js"),r=n("./node_modules/@popperjs/core/lib/utils/detectOverflow.js"),a=n("./node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js"),l=n("./node_modules/@popperjs/core/lib/enums.js"),c=n("./node_modules/@popperjs/core/lib/utils/getVariation.js");const u={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,u=e.name;if(!t.modifiersData[u]._skip){for(var d=n.mainAxis,p=void 0===d||d,h=n.altAxis,f=void 0===h||h,m=n.fallbackPlacements,g=n.padding,v=n.boundary,b=n.rootBoundary,y=n.altBoundary,w=n.flipVariations,j=void 0===w||w,_=n.allowedAutoPlacements,x=t.options.placement,E=(0,o.default)(x),S=m||(E===x||!j?[(0,i.default)(x)]:function(e){if((0,o.default)(e)===l.auto)return[];var t=(0,i.default)(e);return[(0,s.default)(e),t,(0,s.default)(t)]}(x)),O=[x].concat(S).reduce(function(e,n){return e.concat((0,o.default)(n)===l.auto?(0,a.default)(t,{placement:n,boundary:v,rootBoundary:b,padding:g,flipVariations:j,allowedAutoPlacements:_}):n)},[]),C=t.rects.reference,L=t.rects.popper,k=new Map,A=!0,T=O[0],P=0;P<O.length;P++){var I=O[P],M=(0,o.default)(I),R=(0,c.default)(I)===l.start,D=[l.top,l.bottom].indexOf(M)>=0,N=D?"width":"height",F=(0,r.default)(t,{placement:I,boundary:v,rootBoundary:b,altBoundary:y,padding:g}),$=D?R?l.right:l.left:R?l.bottom:l.top;C[N]>L[N]&&($=(0,i.default)($));var B=(0,i.default)($),V=[];if(p&&V.push(F[M]<=0),f&&V.push(F[$]<=0,F[B]<=0),V.every(function(e){return e})){T=I,A=!1;break}k.set(I,V)}if(A)for(var H=function(e){var t=O.find(function(t){var n=k.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return T=t,"break"},U=j?3:1;U>0;U--){if("break"===H(U))break}t.placement!==T&&(t.modifiersData[u]._skip=!0,t.placement=T,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}}},"./node_modules/@popperjs/core/lib/modifiers/hide.js"(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var i=n("./node_modules/@popperjs/core/lib/enums.js"),o=n("./node_modules/@popperjs/core/lib/utils/detectOverflow.js");function s(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function r(e){return[i.top,i.right,i.bottom,i.left].some(function(t){return e[t]>=0})}const a={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,i=t.rects.reference,a=t.rects.popper,l=t.modifiersData.preventOverflow,c=(0,o.default)(t,{elementContext:"reference"}),u=(0,o.default)(t,{altBoundary:!0}),d=s(c,i),p=s(u,a,l),h=r(d),f=r(p);t.modifiersData[n]={referenceClippingOffsets:d,popperEscapeOffsets:p,isReferenceHidden:h,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":f})}}},"./node_modules/@popperjs/core/lib/modifiers/offset.js"(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>r,distanceAndSkiddingToXY:()=>s});var i=n("./node_modules/@popperjs/core/lib/utils/getBasePlacement.js"),o=n("./node_modules/@popperjs/core/lib/enums.js");function s(e,t,n){var s=(0,i.default)(e),r=[o.left,o.top].indexOf(s)>=0?-1:1,a="function"==typeof n?n(Object.assign({},t,{placement:e})):n,l=a[0],c=a[1];return l=l||0,c=(c||0)*r,[o.left,o.right].indexOf(s)>=0?{x:c,y:l}:{x:l,y:c}}const r={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,i=e.name,r=n.offset,a=void 0===r?[0,0]:r,l=o.placements.reduce(function(e,n){return e[n]=s(n,t.rects,a),e},{}),c=l[t.placement],u=c.x,d=c.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=d),t.modifiersData[i]=l}}},"./node_modules/@popperjs/core/lib/modifiers/popperOffsets.js"(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>o});var i=n("./node_modules/@popperjs/core/lib/utils/computeOffsets.js");const o={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=(0,i.default)({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}}},"./node_modules/@popperjs/core/lib/modifiers/preventOverflow.js"(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>f});var i=n("./node_modules/@popperjs/core/lib/enums.js"),o=n("./node_modules/@popperjs/core/lib/utils/getBasePlacement.js"),s=n("./node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js"),r=n("./node_modules/@popperjs/core/lib/utils/getAltAxis.js"),a=n("./node_modules/@popperjs/core/lib/utils/within.js"),l=n("./node_modules/@popperjs/core/lib/dom-utils/getL
1ayoutRect.js"),c=n("./node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js"),u=n("./node_modules/@popperjs/core/lib/utils/detectOverflow.js"),d=n("./node_modules/@popperjs/core/lib/utils/getVariation.js"),p=n("./node_modules/@popperjs/core/lib/utils/getFreshSideObject.js"),h=n("./node_modules/@popperjs/core/lib/utils/math.js");const f={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,f=e.name,m=n.mainAxis,g=void 0===m||m,v=n.altAxis,b=void 0!==v&&v,y=n.boundary,w=n.rootBoundary,j=n.altBoundary,_=n.padding,x=n.tether,E=void 0===x||x,S=n.tetherOffset,O=void 0===S?0:S,C=(0,u.default)(t,{boundary:y,rootBoundary:w,padding:_,altBoundary:j}),L=(0,o.default)(t.placement),k=(0,d.default)(t.placement),A=!k,T=(0,s.default)(L),P=(0,r.default)(T),I=t.modifiersData.popperOffsets,M=t.rects.reference,R=t.rects.popper,D="function"==typeof O?O(Object.assign({},t.rects,{placement:t.placement})):O,N="number"==typeof D?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),F=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,$={x:0,y:0};if(I){if(g){var B,V="y"===T?i.top:i.left,H="y"===T?i.bottom:i.right,U="y"===T?"height":"width",q=I[T],z=q+C[V],W=q-C[H],K=E?-R[U]/2:0,X=k===i.start?M[U]:R[U],G=k===i.start?-R[U]:-M[U],J=t.elements.arrow,Y=E&&J?(0,l.default)(J):{width:0,height:0},Q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:(0,p.default)(),Z=Q[V],ee=Q[H],te=(0,a.within)(0,M[U],Y[U]),ne=A?M[U]/2-K-te-Z-N.mainAxis:X-te-Z-N.mainAxis,ie=A?-M[U]/2+K+te+ee+N.mainAxis:G+te+ee+N.mainAxis,oe=t.elements.arrow&&(0,c.default)(t.elements.arrow),se=oe?"y"===T?oe.clientTop||0:oe.clientLeft||0:0,re=null!=(B=null==F?void 0:F[T])?B:0,ae=q+ne-re-se,le=q+ie-re,ce=(0,a.within)(E?(0,h.min)(z,ae):z,q,E?(0,h.max)(W,le):W);I[T]=ce,$[T]=ce-q}if(b){var ue,de="x"===T?i.top:i.left,pe="x"===T?i.bottom:i.right,he=I[P],fe="y"===P?"height":"width",me=he+C[de],ge=he-C[pe],ve=-1!==[i.top,i.left].indexOf(L),be=null!=(ue=null==F?void 0:F[P])?ue:0,ye=ve?me:he-M[fe]-R[fe]-be+N.altAxis,we=ve?he+M[fe]+R[fe]-be-N.altAxis:ge,je=E&&ve?(0,a.withinMaxClamp)(ye,he,we):(0,a.within)(E?ye:me,he,E?we:ge);I[P]=je,$[P]=je-he}t.modifiersData[f]=$}},requiresIfExists:["offset"]}},"./node_modules/@popperjs/core/lib/popper.js"(e,t,n){"use strict";n.r(t),n.d(t,{createPopper:()=>f,defaultModifiers:()=>h});var i=n("./node_modules/@popperjs/core/lib/createPopper.js"),o=n("./node_modules/@popperjs/core/lib/modifiers/eventListeners.js"),s=n("./node_modules/@popperjs/core/lib/modifiers/popperOffsets.js"),r=n("./node_modules/@popperjs/core/lib/modifiers/computeStyles.js"),a=n("./node_modules/@popperjs/core/lib/modifiers/applyStyles.js"),l=n("./node_modules/@popperjs/core/lib/modifiers/offset.js"),c=n("./node_modules/@popperjs/core/lib/modifiers/flip.js"),u=n("./node_modules/@popperjs/core/lib/modifiers/preventOverflow.js"),d=n("./node_modules/@popperjs/core/lib/modifiers/arrow.js"),p=n("./node_modules/@popperjs/core/lib/modifiers/hide.js"),h=[o.default,s.default,r.default,a.default,l.default,c.default,u.default,d.default,p.default],f=(0,i.popperGenerator)({defaultModifiers:h})},"./node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js"(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var i=n("./node_modules/@popperjs/core/lib/utils/getVariation.js"),o=n("./node_modules/@popperjs/core/lib/enums.js"),s=n("./node_modules/@popperjs/core/lib/utils/detectOverflow.js"),r=n("./node_modules/@popperjs/core/lib/utils/getBasePlacement.js");function a(e,t){void 0===t&&(t={});var n=t,a=n.placement,l=n.boundary,c=n.rootBoundary,u=n.padding,d=n.flipVariations,p=n.allowedAutoPlacements,h=void 0===p?o.placements:p,f=(0,i.default)(a),m=f?d?o.variationPlacements:o.variationPlacements.filter(function(e){return(0,i.default)(e)===f}):o.basePlacements,g=m.filter(function(e){return h.indexOf(e)>=0});0===g.length&&(g=m);var v=g.reduce(function(t,n){return t[n]=(0,s.default)(e,{placement:n,boundary:l,rootBoundary:c,padding:u})[(0,r.default)(n)],t},{});return Object.keys(v).sort(function(e,t){return v[e]-v[t]})}},"./node_modules/@popperjs/core/lib/utils/computeOffsets.js"(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var i=n("./node_modules/@popperjs/core/lib/utils/getBasePlacement.js"),o=n("./node_modules/@popperjs/core/lib/utils/getVariation.js"),s=n("./node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js"),r=n("./node_modules/@popperjs/core/lib/enums.js");function a(e){var t,n=e.reference,a=e.element,l=e.placement,c=l?(0,i.default)(l):null,u=l?(0,o.default)(l):null,d=n.x+n.width/2-a.width/2,p=n.y+n.height/2-a.height/2;switch(c){case r.top:t={x:d,y:n.y-a.height};break;case r.bottom:t={x:d,y:n.y+n.height};break;case r.right:t={x:n.x+n.width,y:p};break;case r.left:t={x:n.x-a.width,y:p};break;default:t={x:n.x,y:n.y}}var h=c?(0,s.default)(c):null;if(null!=h){var f="y"===h?"height":"width";switch(u){case r.start:t[h]=t[h]-(n[f]/2-a[f]/2);break;case r.end:t[h]=t[h]+(n[f]/2-a[f]/2)}}return t}},"./node_modules/@popperjs/core/lib/utils/debounce.js"(e,t,n){"use strict";function i(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}
1n.r(t),n.d(t,{default:()=>i})},"./node_modules/@popperjs/core/lib/utils/detectOverflow.js"(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>p});var i=n("./node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js"),o=n("./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js"),s=n("./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js"),r=n("./node_modules/@popperjs/core/lib/utils/computeOffsets.js"),a=n("./node_modules/@popperjs/core/lib/utils/rectToClientRect.js"),l=n("./node_modules/@popperjs/core/lib/enums.js"),c=n("./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js"),u=n("./node_modules/@popperjs/core/lib/utils/mergePaddingObject.js"),d=n("./node_modules/@popperjs/core/lib/utils/expandToHashMap.js");function p(e,t){void 0===t&&(t={});var n=t,p=n.placement,h=void 0===p?e.placement:p,f=n.strategy,m=void 0===f?e.strategy:f,g=n.boundary,v=void 0===g?l.clippingParents:g,b=n.rootBoundary,y=void 0===b?l.viewport:b,w=n.elementContext,j=void 0===w?l.popper:w,_=n.altBoundary,x=void 0!==_&&_,E=n.padding,S=void 0===E?0:E,O=(0,u.default)("number"!=typeof S?S:(0,d.default)(S,l.basePlacements)),C=j===l.popper?l.reference:l.popper,L=e.rects.popper,k=e.elements[x?C:j],A=(0,i.default)((0,c.isElement)(k)?k:k.contextElement||(0,o.default)(e.elements.popper),v,y,m),T=(0,s.default)(e.elements.reference),P=(0,r.default)({reference:T,element:L,strategy:"absolute",placement:h}),I=(0,a.default)(Object.assign({},L,P)),M=j===l.popper?I:T,R={top:A.top-M.top+O.top,bottom:M.bottom-A.bottom+O.bottom,left:A.left-M.left+O.left,right:M.right-A.right+O.right},D=e.modifiersData.offset;if(j===l.popper&&D){var N=D[h];Object.keys(R).forEach(function(e){var t=[l.right,l.bottom].indexOf(e)>=0?1:-1,n=[l.top,l.bottom].indexOf(e)>=0?"y":"x";R[e]+=N[n]*t})}return R}},"./node_modules/@popperjs/core/lib/utils/expandToHashMap.js"(e,t,n){"use strict";function i(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}n.r(t),n.d(t,{default:()=>i})},"./node_modules/@popperjs/core/lib/utils/getAltAxis.js"(e,t,n){"use strict";function i(e){return"x"===e?"y":"x"}n.r(t),n.d(t,{default:()=>i})},"./node_modules/@popperjs/core/lib/utils/getBasePlacement.js"(e,t,n){"use strict";function i(e){return e.split("-")[0]}n.r(t),n.d(t,{default:()=>i})},"./node_modules/@popperjs/core/lib/utils/getFreshSideObject.js"(e,t,n){"use strict";function i(){return{top:0,right:0,bottom:0,left:0}}n.r(t),n.d(t,{default:()=>i})},"./node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js"(e,t,n){"use strict";function i(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}n.r(t),n.d(t,{default:()=>i})},"./node_modules/@popperjs/core/lib/utils/getOppositePlacement.js"(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>o});var i={left:"right",right:"left",bottom:"top",top:"bottom"};function o(e){return e.replace(/left|right|bottom|top/g,function(e){return i[e]})}},"./node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js"(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>o});var i={start:"end",end:"start"};function o(e){return e.replace(/start|end/g,function(e){return i[e]})}},"./node_modules/@popperjs/core/lib/utils/getVariation.js"(e,t,n){"use strict";function i(e){return e.split("-")[1]}n.r(t),n.d(t,{default:()=>i})},"./node_modules/@popperjs/core/lib/utils/math.js"(e,t,n){"use strict";n.r(t),n.d(t,{max:()=>i,min:()=>o,round:()=>s});var i=Math.max,o=Math.min,s=Math.round},"./node_modules/@popperjs/core/lib/utils/mergeByName.js"(e,t,n){"use strict";function i(e){var t=e.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{});return Object.keys(t).map(function(e){return t[e]})}n.r(t),n.d(t,{default:()=>i})},"./node_modules/@popperjs/core/lib/utils/mergePaddingObject.js"(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>o});var i=n("./node_modules/@popperjs/core/lib/utils/getFreshSideObject.js");function o(e){return Object.assign({},(0,i.default)(),e)}},"./node_modules/@popperjs/core/lib/utils/orderModifiers.js"(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>s});var i=n("./node_modules/@popperjs/core/lib/enums.js");function o(e){var t=new Map,n=new Set,i=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEac
vendor: 6,401 bytes, line 1
1h(function(e){if(!n.has(e)){var i=t.get(e);i&&o(i)}}),i.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||o(e)}),i}function s(e){var t=o(e);return i.modifierPhases.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}},"./node_modules/@popperjs/core/lib/utils/rectToClientRect.js"(e,t,n){"use strict";function i(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}n.r(t),n.d(t,{default:()=>i})},"./node_modules/@popperjs/core/lib/utils/userAgent.js"(e,t,n){"use strict";function i(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}n.r(t),n.d(t,{default:()=>i})},"./node_modules/@popperjs/core/lib/utils/within.js"(e,t,n){"use strict";n.r(t),n.d(t,{within:()=>o,withinMaxClamp:()=>s});var i=n("./node_modules/@popperjs/core/lib/utils/math.js");function o(e,t,n){return(0,i.max)(e,(0,i.min)(t,n))}function s(e,t,n){var i=o(e,t,n);return i>n?n:i}},"./node_modules/cross-fetch/dist/browser-ponyfill.js"(e,t,n){var i="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==n.g&&n.g,o=function(){function e(){this.fetch=!1,this.DOMException=i.DOMException}return e.prototype=i,new e}();!function(e){!function(t){var i=void 0!==e&&e||"undefined"!=typeof self&&self||void 0!==n.g&&n.g||{},o="URLSearchParams"in i,s="Symbol"in i&&"iterator"in Symbol,r="FileReader"in i&&"Blob"in i&&function(){try{return new Blob,!0}catch(e){return!1}}(),a="FormData"in i,l="ArrayBuffer"in i;if(l)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(e){return e&&c.indexOf(Object.prototype.toString.call(e))>-1};function d(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function p(e){return"string"!=typeof e&&(e=String(e)),e}function h(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return s&&(t[Symbol.iterator]=function(){return t}),t}function f(e){this.map={},e instanceof f?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){if(2!=e.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function m(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function g(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function v(e){var t=new FileReader,n=g(t);return t.readAsArrayBuffer(e),n}function b(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:r&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:a&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:o&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():l&&r&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=b(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):l&&(ArrayBuffer.prototype.isPrototypeOf(e)||u(e))?this._bodyArrayBuffer=b(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},r&&(this.blob=function(){var e=m(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=m(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}if(r)return this.blob().then(v);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e,t,n,i,o,s=m(this);if(s)return s;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=g(t),i=/charset=([A-Za-z0-9_-]+)/.exec(e.type),o=i?i[1]:"utf-8",t.readAsText(e,o),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),i=0;i<t.length;i++)n[i]=String.fromCharCode(t[i]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},a&&(this.formData=function(){return this.text().then(_)}),this.json=function(){return this.text().then(JSON.parse)},this}f.prototype.append=function(e,t){e=d(e),t=p(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},f.prototype.delete=function(e){delete this.map[d(e)]},f.prototype.get=function(e){return e=d(e),this.has(e)?this.map[e]:null},f.prototype.has=function(e){return this.map.hasOwnProperty(d(e))},f.prototype.set=function(e,t){this.map[d(e)]=p(t)},f.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},f.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),h(e)},f.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),h(e)},f.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),h(e)},s&&(f.prototype[Symbol.iterator]=f.prototype.entries);var w=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function j(e,t){if(!(this instanceof j))throw new TypeError('Please use the "new" operator, this DOM object c
1onstructor cannot be called as a function.');var n,o,s=(t=t||{}).body;if(e instanceof j){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new f(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,s||null==e._bodyInit||(s=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new f(t.headers)),this.method=(n=t.method||this.method||"GET",o=n.toUpperCase(),w.indexOf(o)>-1?o:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in i)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&s)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(s),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var r=/([?&])_=[^&]*/;if(r.test(this.url))this.url=this.url.replace(r,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function _(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),i=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(i),decodeURIComponent(o))}}),t}function x(e,t){if(!(this instanceof x))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new f(t.headers),this.url=t.url||"",this._initBody(e)}j.prototype.clone=function(){return new j(this,{body:this._bodyInit})},y.call(j.prototype),y.call(x.prototype),x.prototype.clone=function(){return new x(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},x.error=function(){var e=new x(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e};var E=[301,302,303,307,308];x.redirect=function(e,t){if(-1===E.indexOf(t))throw new RangeError("Invalid status code");return new x(null,{status:t,headers:{location:e}})},t.DOMException=i.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function S(e,n){return new Promise(function(o,s){var a=new j(e,n);if(a.signal&&a.signal.aborted)return s(new t.DOMException("Aborted","AbortError"));var c=new XMLHttpRequest;function u(){c.abort()}if(c.onload=function(){var e,t,n={statusText:c.statusText,headers:(e=c.getAllResponseHeaders()||"",t=new f,e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var n=e.split(":"),i=n.shift().trim();if(i){var o=n.join(":").trim();try{t.append(i,o)}catch(e){console.warn("Response "+e.message)}}}),t)};0===a.url.indexOf("file://")&&(c.status<200||c.status>599)?n.status=200:n.status=c.status,n.url="responseURL"in c?c.responseURL:n.headers.get("X-Request-URL");var i="response"in c?c.response:c.responseText;setTimeout(function(){o(new x(i,n))},0)},c.onerror=function(){setTimeout(function(){s(new TypeError("Network request failed"))},0)},c.ontimeout=function(){setTimeout(function(){s(new TypeError("Network request timed out"))},0)},c.onabort=function(){setTimeout(function(){s(new t.DOMException("Aborted","AbortError"))},0)},c.open(a.method,function(e){try{return""===e&&i.location.href?i.location.href:e}catch(t){return e}}(a.url),!0),"include"===a.credentials?c.withCredentials=!0:"omit"===a.credentials&&(c.withCredentials=!1),"responseType"in c&&(r?c.responseType="blob":l&&(c.responseType="arraybuffer")),n&&"object"==typeof n.headers&&!(n.headers instanceof f||i.Headers&&n.headers instanceof i.Headers)){var h=[];
1Object.getOwnPropertyNames(n.headers).forEach(function(e){h.push(d(e)),c.setRequestHeader(e,p(n.headers[e]))}),a.headers.forEach(function(e,t){-1===h.indexOf(t)&&c.setRequestHeader(t,e)})}else a.headers.forEach(function(e,t){c.setRequestHeader(t,e)});a.signal&&(a.signal.addEventListener("abort",u),c.onreadystatechange=function(){4===c.readyState&&a.signal.removeEventListener("abort",u)}),c.send(void 0===a._bodyInit?null:a._bodyInit)})}S.polyfill=!0,i.fetch||(i.fetch=S,i.Headers=f,i.Request=j,i.Response=x),t.Headers=f,t.Request=j,t.Response=x,t.fetch=S}({})}(o),o.fetch.ponyfill=!0,delete o.fetch.polyfill;var s=i.fetch?i:o;(t=s.fetch).default=s.fetch,t.fetch=s.fetch,t.Headers=s.Headers,t.Request=s.Request,t.Response=s.Response,e.exports=t},"./node_modules/tippy.js/dist/tippy.esm.js"(e,t,n){"use strict";n.r(t),n.d(t,{animateFill:()=>pe,createSingleton:()=>ce,default:()=>we,delegate:()=>de,followCursor:()=>ge,hideAll:()=>ae,inlinePositioning:()=>ve,roundArrow:()=>s,sticky:()=>be});var i=n("./node_modules/@popperjs/core/lib/modifiers/applyStyles.js"),o=n("./node_modules/@popperjs/core/lib/popper.js"),s='<svg width="16" height="6" xmlns="http://www.w3.org/2000/svg"><path d="M0 6s1.796-.013 4.67-3.615C5.851.9 6.93.006 8 0c1.07-.006 2.148.887 3.343 2.385C14.233 6.005 16 6 16 6H0z"></svg>',r="tippy-content",a="tippy-backdrop",l="tippy-arrow",c="tippy-svg-arrow",u={passive:!0,capture:!0},d=function(){return document.body};function p(e,t,n){if(Array.isArray(e)){var i=e[t];return i??(Array.isArray(n)?n[t]:n)}return e}function h(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function f(e,t){return"function"==typeof e?e.apply(void 0,t):e}function m(e,t){return 0===t?e:function(i){clearTimeout(n),n=setTimeout(function(){e(i)},t)};var n}function g(e,t){var n=Object.assign({},e);return t.forEach(function(e){delete n[e]}),n}function v(e){return[].concat(e)}function b(e,t){-1===e.indexOf(t)&&e.push(t)}function y(e){return e.split("-")[0]}function w(e){return[].slice.call(e)}function j(e){return Object.keys(e).reduce(function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t},{})}function _(){return document.createElement("div")}function x(e){return["Element","Fragment"].some(function(t){return h(e,t)})}function E(e){return h(e,"MouseEvent")}function S(e){return!(!e||!e._tippy||e._tippy.reference!==e)}function O(e){return x(e)?[e]:function(e){return h(e,"NodeList")}(e)?w(e):Array.isArray(e)?e:w(document.querySelectorAll(e))}function C(e,t){e.forEach(function(e){e&&(e.style.transitionDuration=t+"ms")})}function L(e,t){e.forEach(function(e){e&&e.setAttribute("data-state",t)})}function k(e){var t,n=v(e)[0];return null!=n&&null!=(t=n.ownerDocument)&&t.body?n.ownerDocument:document}function A(e,t,n){var i=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(t){e[i](t,n)})}function T(e,t){for(var n=t;n;){var i;if(e.contains(n))return!0;n=null==n.getRootNode||null==(i=n.getRootNode())?void 0:i.host}return!1}var P={isTouch:!1},I=0;function M(){P.isTouch||(P.isTouch=!0,window.performance&&document.addEventListener("mousemove",R))}function R(){var e=performance.now();e-I<20&&(P.isTouch=!1,document.removeEventListener("mousemove",R)),I=e}function D(){var e=document.activeElement;if(S(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}var N,F=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto;function $(e){return[e+"() was called on a"+("destroy"===e?"n already-":" ")+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function B(e){return e.replace(/[ \t]{2,}/g," ").replace(/^[ \t]*/gm,"").trim()}function V(e){return B("\n  %ctippy.js\n\n  %c"+B(e)+"\n\n  %c👷‍ This is a development-only message. It will be removed in production.\n  ")}function H(e){return[V(e),"color: #00C584; font-size: 1.3em; font-weight: bold;","line-height: 1.5","color: #a6a095;"]}function U(e,t){var n;e&&!N.has(t)&&(N.add(t),(n=console).warn.apply(n,H(t)))}function q(e,t){var n;e&&!N.has(t)&&(N.add(t),(n=console).error.apply(n,H(t)))}N=new Set;var z={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},W=Object.assign({appendTo:d,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},z,{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),K=Object.keys(W);function X(e){var t=(e.plugins||[]).reduce(function(t,n){var i,o=n.name,s=n.defaultValue;o&&(t[o]=void 0!==e[o]?e[o]:null!=(i=W[o])?i:s);return t},{});return Object.assign({},e,t)}function G(e,t){var n=Object.assign({},t,{content:f(t.content,[e])},t.ignoreAttributes?{}
vendor: 9,487 bytes, line 1
1:function(e,t){return(t?Object.keys(X(Object.assign({},W,{plugins:t}))):K).reduce(function(t,n){var i=(e.getAttribute("data-tippy-"+n)||"").trim();if(!i)return t;if("content"===n)t[n]=i;else try{t[n]=JSON.parse(i)}catch(e){t[n]=i}return t},{})}(e,t.plugins));return n.aria=Object.assign({},W.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}function J(e,t){void 0===e&&(e={}),void 0===t&&(t=[]),Object.keys(e).forEach(function(e){var n,i,o=g(W,Object.keys(z)),s=(n=o,i=e,!{}.hasOwnProperty.call(n,i));s&&(s=0===t.filter(function(t){return t.name===e}).length),U(s,["`"+e+"`","is not a valid prop. You may have spelled it incorrectly, or if it's","a plugin, forgot to pass it in an array as props.plugins.","\n\n","All props: https://atomiks.github.io/tippyjs/v6/all-props/\n","Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "))})}function Y(e,t){e.innerHTML=t}function Q(e){var t=_();return!0===e?t.className=l:(t.className=c,x(e)?t.appendChild(e):Y(t,e)),t}function Z(e,t){x(t.content)?(Y(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?Y(e,t.content):e.textContent=t.content)}function ee(e){var t=e.firstElementChild,n=w(t.children);return{box:t,content:n.find(function(e){return e.classList.contains(r)}),arrow:n.find(function(e){return e.classList.contains(l)||e.classList.contains(c)}),backdrop:n.find(function(e){return e.classList.contains(a)})}}function te(e){var t=_(),n=_();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var i=_();function o(n,i){var o=ee(t),s=o.box,r=o.content,a=o.arrow;i.theme?s.setAttribute("data-theme",i.theme):s.removeAttribute("data-theme"),"string"==typeof i.animation?s.setAttribute("data-animation",i.animation):s.removeAttribute("data-animation"),i.inertia?s.setAttribute("data-inertia",""):s.removeAttribute("data-inertia"),s.style.maxWidth="number"==typeof i.maxWidth?i.maxWidth+"px":i.maxWidth,i.role?s.setAttribute("role",i.role):s.removeAttribute("role"),n.content===i.content&&n.allowHTML===i.allowHTML||Z(r,e.props),i.arrow?a?n.arrow!==i.arrow&&(s.removeChild(a),s.appendChild(Q(i.arrow))):s.appendChild(Q(i.arrow)):a&&s.removeChild(a)}return i.className=r,i.setAttribute("data-state","hidden"),Z(i,e.props),t.appendChild(n),n.appendChild(i),o(e.props,e.props),{popper:t,onUpdate:o}}te.$$tippy=!0;var ne=1,ie=[],oe=[];function se(e,t){var n,i,s,r,a,l,c,h,g=G(e,Object.assign({},W,X(j(t)))),x=!1,S=!1,O=!1,I=!1,M=[],R=m(xe,g.interactiveDebounce),D=ne++,N=(h=g.plugins).filter(function(e,t){return h.indexOf(e)===t}),B={id:D,reference:e,popper:_(),popperInstance:null,props:g,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:N,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(i),cancelAnimationFrame(s)},setProps:function(t){U(B.state.isDestroyed,$("setProps"));if(B.state.isDestroyed)return;ce("onBeforeUpdate",[B,t]),je();var n=B.props,i=G(e,Object.assign({},n,j(t),{ignoreAttributes:!0}));B.props=i,we(),n.interactiveDebounce!==i.interactiveDebounce&&(pe(),R=m(xe,i.interactiveDebounce));n.triggerTarget&&!i.triggerTarget?v(n.triggerTarget).forEach(function(e){e.removeAttribute("aria-expanded")}):i.triggerTarget&&e.removeAttribute("aria-expanded");de(),le(),z&&z(n,i);B.popperInstance&&(Ce(),ke().forEach(function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)}));ce("onAfterUpdate",[B,t])},setContent:function(e){B.setProps({content:e})},show:function(){U(B.state.isDestroyed,$("show"));var e=B.state.isVisible,t=B.state.isDestroyed,n=!B.state.isEnabled,i=P.isTouch&&!B.props.touch,o=p(B.props.duration,0,W.duration);if(e||t||n||i)return;if(te().hasAttribute("disabled"))return;if(ce("onShow",[B],!1),!1===B.props.onShow(B))return;B.state.isVisible=!0,Z()&&(H.style.visibility="visible");le(),ge(),B.state.isMounted||(H.style.transition="none");if(Z()){var s=re();C([s.box,s.content],0)}l=function(){var e;if(B.state.isVisible&&!I){if(I=!0,H.offsetHeight,H.style.transition=B.props.moveTransition,Z()&&B.props.animation){var t=re(),n=t.box,i=t.content;C([n,i],o),L([n,i],"visible")}ue(),de(),b(oe,B),null==(e=B.popperInstance)||e.forceUpdate(),ce("onMount",[B]),B.props.animation&&Z()&&function(e,t){be(e,t)}(o,function(){B.state.isShown=!0,ce("onShown",[B])})}},function(){var e,t=B.props.appendTo,n=te();e=B.props.interactive&&t===d||"parent"===t?n.parentNode:f(t,[n]);e.contains(H)||e.appendChild(H);B.state.isMounted=!0,Ce(),U(B.props.interactive&&t===W.appendTo&&n.nextElementSibling!==H,["Interactive tippy element may not be accessible via keyboard","navigation because it is not directly after the reference element","in the DOM source order.","\n\n","Using a wrapper <div> or <span> tag around the reference element","solves this by creating a new parentNode context.","\n\n","Specifying `appendTo: document.body` silences this warning, but it","assumes you are using a focus management solution to handle","keyboard navigation.","\n\n","See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "))}()},hide:function(){U(B.state.isDestroyed,$("hide"));var e=!B.state.isVisible,t=B.state.isDestroyed,n=!B.state.isEnabled,i=p(B.props.duration,1,W.duration);if(e||t||n)return;if(ce("onHide",[B],!1),!1===B.props.onHide(B))return;B.state.isVisible=!1,B.state.isShown=!1,I=!1,x=!1,Z()&&(H.style.visibility="hidden");if(pe(),ve(),le(!0),Z()){var o=re(),s=o.box,r=o.content;B.props.animation&&(C([s,r],i),L([s,r],"hidden"))}ue(),de(),B.props.animation?Z()&&function(e,t){be(e,function(){!B.state.isVisible&&H.parentNode&&H.parentNode.contains(H)&&t()})}(i,B.unmount):B.unmount()},hideWithInteractivity:function(e){U(B.state.isDestroyed,$("hideWithInteractivity"));se().addEventListener("mousemove",R),b(ie,R),R(e)},enable:function(){B.state.isEnabled=!0},disable:function(){B.hide(),B.state.isEnabled=!1},unmount:function(){U(B.state.isDestroyed,$("unmount"));B.state.isVisible&&B.hide();if(!B.state.isMounted)return;Le(),ke().forEach(function(e){e._tippy.unmount()}),H.parentNode&&H.parentNode.removeChild(H);oe=oe.filter(function(e){return e!==B}),B.state.isMounted=!1,ce("onHidden",[B])},destroy:function(){U(B.state.isDestroyed,$("destroy"));if(B.state.isDestroyed)return;B.clearDelayTimeouts(),B.unmount(),je(),delete e._tippy,B.state.isDestroyed=!0,ce("onDestroy",[B])}};if(!g.render)return q(!0,"render() function has not been supplied."),B;var V=g.render(B),H=V.popper,z=V.onUpdate;H.setAttribute("data-tippy-root",""),H.id="tippy-"+B.id,B.popper=H,e._tippy=B,H._tippy=B;var K=N.map(function(e){return e.fn(B)}),J=e.hasAttribute("aria-expanded");return we(),de(),le(),ce("onCreate",[B]),g.showOnCreate&&Ae(),H.addEventListener("mouseenter",function(){B.props.interactive&&B.state.isVisible&&B.clearDelayTimeouts()}),H.addEventListener("mouseleave",function(){B.props.interactive&&B.props.trigger.indexOf("mouseenter")>=0&&se().addEventListener("mousemove",R)}),B;function Y(){var e=B.props.touch;return Array.isArray(e)?e:[e,0]}function Q(){return"hold"===Y()[0]}function Z(){var e;return!(null==(e=B.props.render)||!e.$$tippy)}function te(){return c||e}function se(){var e=te().parentNode;return e?k(e):document}function re(){return ee(H)}function ae(e){return B.state.isMounted&&!B.state.isVisible||P.isTouch||r&&"focus"===r.type?0:p(B.props.delay,e?0:1,W.delay)}function le(e){void 0===e&&(e=!1),H.style.pointerEvents=B.props.interactive&&!e?"":"none",H.style.zIndex=""+B.props.zIndex}function ce(e,t,n){var i;(void 0===n&&(n=!0),K.forEach(function(n){n[e]&&n[e].apply(n,t)}),n)&&(i=B.props)[e].apply(i,t)}function ue(){var t=B.props.aria;if(t.content){var n="aria-"+t.content,i=H.id;v(B.props.triggerTarget||e).forEach(function(e){var t=e.getAttribute(n);if(B.state.isVisible)e.setAttribute(n,t?t+" "+i:i);else{var o=t&&t.replace(i,"").trim();o?e.setAttribute(n,o):e.removeAttribute(n)}})}}function de(){!J&&B.props.aria.expanded&&v(B.props.triggerTarget||e).forEach(function(e){B.props.interactive?e.setAttribute("aria-expanded",B.state.isVisible&&e===te()?"true":"false"):e.removeAttribute("aria-expanded")})}function pe(){se().removeEventListener("mousemove",R),ie=ie.filter(function(e){return e!==R})}function he(t){if(!P.isTouch||!O&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!B.props.interactive||!T(H,n)){if(v(B.props.triggerTarget||e).some(function(e){return T(e,n)})){if(P.isTouch)return;if(B.state.isVisible&&B.props.trigger.indexOf("click")>=0)return}else ce("onClickOutside",[B,t]);!0===B.props.hideOnClick&&(B.clearDelayTimeouts(),B.hide(),S=!0,setTimeout(function(){S=!1}),B.state.isMounted||ve())}}}function fe(){O=!0}function me(){O=!1}function ge(){var e=se();e.addEventListener("mousedown",he,!0),e.addEventListener("touchend",he,u),e.addEventListener("touchstart",me,u),e.addEventListener("touchmove",fe,u)}function ve(){var e=se();e.removeEventListener("mousedown",he,!0),e.removeEventListener("touchend",he,u),e.removeEventListener("touchstart",me,u),e.removeEventListener("touchmove",fe,u)}function be(e,t){var n=re().box;function i(e){e.target===n&&(A(n,"remove",i),t())}if(0===e)return t();A(n,"remove",a),A(n,"add",i),a=i}function ye(t,n,i){void 0===i&&(i=!1),v(B.props.triggerTarget||e).forEach(function(e){e.addEventListener(t,n,i),M.push({node:e,eventType:t,handler:n,options:i})})}function we(){var e;Q()&&(ye("touchstart",_e,{passive:!0}),ye("touchend",Ee,{passive:!0}
vendor: 5,053 bytes, line 1
1)),(e=B.props.trigger,e.split(/\s+/).filter(Boolean)).forEach(function(e){if("manual"!==e)switch(ye(e,_e),e){case"mouseenter":ye("mouseleave",Ee);break;case"focus":ye(F?"focusout":"blur",Se);break;case"focusin":ye("focusout",Se)}})}function je(){M.forEach(function(e){var t=e.node,n=e.eventType,i=e.handler,o=e.options;t.removeEventListener(n,i,o)}),M=[]}function _e(e){var t,n=!1;if(B.state.isEnabled&&!Oe(e)&&!S){var i="focus"===(null==(t=r)?void 0:t.type);r=e,c=e.currentTarget,de(),!B.state.isVisible&&E(e)&&ie.forEach(function(t){return t(e)}),"click"===e.type&&(B.props.trigger.indexOf("mouseenter")<0||x)&&!1!==B.props.hideOnClick&&B.state.isVisible?n=!0:Ae(e),"click"===e.type&&(x=!n),n&&!i&&Te(e)}}function xe(e){var t=e.target,n=te().contains(t)||H.contains(t);if("mousemove"!==e.type||!n){var i=ke().concat(H).map(function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:g}:null}).filter(Boolean);(function(e,t){var n=t.clientX,i=t.clientY;return e.every(function(e){var t=e.popperRect,o=e.popperState,s=e.props.interactiveBorder,r=y(o.placement),a=o.modifiersData.offset;if(!a)return!0;var l="bottom"===r?a.top.y:0,c="top"===r?a.bottom.y:0,u="right"===r?a.left.x:0,d="left"===r?a.right.x:0,p=t.top-i+l>s,h=i-t.bottom-c>s,f=t.left-n+u>s,m=n-t.right-d>s;return p||h||f||m})})(i,e)&&(pe(),Te(e))}}function Ee(e){Oe(e)||B.props.trigger.indexOf("click")>=0&&x||(B.props.interactive?B.hideWithInteractivity(e):Te(e))}function Se(e){B.props.trigger.indexOf("focusin")<0&&e.target!==te()||B.props.interactive&&e.relatedTarget&&H.contains(e.relatedTarget)||Te(e)}function Oe(e){return!!P.isTouch&&Q()!==e.type.indexOf("touch")>=0}function Ce(){Le();var t=B.props,n=t.popperOptions,i=t.placement,s=t.offset,r=t.getReferenceClientRect,a=t.moveTransition,c=Z()?ee(H).arrow:null,u=r?{getBoundingClientRect:r,contextElement:r.contextElement||te()}:e,d={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(Z()){var n=re().box;["placement","reference-hidden","escaped"].forEach(function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)}),t.attributes.popper={}}}},p=[{name:"offset",options:{offset:s}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!a}},d];Z()&&c&&p.push({name:"arrow",options:{element:c,padding:3}}),p.push.apply(p,(null==n?void 0:n.modifiers)||[]),B.popperInstance=(0,o.createPopper)(u,H,Object.assign({},n,{placement:i,onFirstUpdate:l,modifiers:p}))}function Le(){B.popperInstance&&(B.popperInstance.destroy(),B.popperInstance=null)}function ke(){return w(H.querySelectorAll("[data-tippy-root]"))}function Ae(e){B.clearDelayTimeouts(),e&&ce("onTrigger",[B,e]),ge();var t=ae(!0),i=Y(),o=i[0],s=i[1];P.isTouch&&"hold"===o&&s&&(t=s),t?n=setTimeout(function(){B.show()},t):B.show()}function Te(e){if(B.clearDelayTimeouts(),ce("onUntrigger",[B,e]),B.state.isVisible){if(!(B.props.trigger.indexOf("mouseenter")>=0&&B.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&x)){var t=ae(!1);t?i=setTimeout(function(){B.state.isVisible&&B.hide()},t):s=requestAnimationFrame(function(){B.hide()})}}else ve()}}function re(e,t){void 0===t&&(t={});var n=W.plugins.concat(t.plugins||[]);!function(e){var t=!e,n="[object Object]"===Object.prototype.toString.call(e)&&!e.addEventListener;q(t,["tippy() was passed","`"+String(e)+"`","as its targets (first) argument. Valid types are: String, Element,","Element[], or NodeList."].join(" ")),q(n,["tippy() was passed a plain object which is not supported as an argument","for virtual positioning. Use props.getReferenceClientRect instead."].join(" "))}(e),J(t,n),document.addEventListener("touchstart",M,u),window.addEventListener("blur",D);var i=Object.assign({},t,{plugins:n}),o=O(e),s=x(i.content),r=o.length>1;U(s&&r,["tippy() was passed an Element as the `content` prop, but more than","one tippy instance was created by this invocation. This means the","content element will only be appended to the last tippy instance.","\n\n","Instead, pass the .innerHTML of the element, or use a function that","returns a cloned version of the element instead.","\n\n","1) content: element.innerHTML\n","2) content: () => element.cloneNode(true)"].join(" "));var a=o.reduce(function(e,t){var n=t&&se(t,i);return n&&e.push(n),e},[]);return x(e)?a[0]:a}re.defaultProps=W,re.setDefaultProps=function(e){J(e,[]),Object.keys(e).forEach(function(t){W[t]=e[t]})},re.currentInput=P;var ae=function(e){var t=void 0===e?{}:e,n=t.exclude,i=t.duration;oe.forEach(function(e){var t=!1;if(n&&(t=S(n)?e.reference===n:e.popper===n.popper),!t){var o=e.props.duration;e.setProps({duration:i}),e.hide(),e.state.isDestroyed||e.setProps({duration:o})}})},le=Object.assign({},i.default,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left
vendor: 3,415 bytes, line 1
1:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}}),ce=function(e,t){var n;void 0===t&&(t={}),q(!Array.isArray(e),["The first argument passed to createSingleton() must be an array of","tippy instances. The passed value was",String(e)].join(" "));var i,o=e,s=[],r=[],a=t.overrides,l=[],c=!1;function u(){r=o.map(function(e){return v(e.props.triggerTarget||e.reference)}).reduce(function(e,t){return e.concat(t)},[])}function d(){s=o.map(function(e){return e.reference})}function p(e){o.forEach(function(t){e?t.enable():t.disable()})}function h(e){return o.map(function(t){var n=t.setProps;return t.setProps=function(o){n(o),t.reference===i&&e.setProps(o)},function(){t.setProps=n}})}function f(e,t){var n=r.indexOf(t);if(t!==i){i=t;var l=(a||[]).concat("content").reduce(function(e,t){return e[t]=o[n].props[t],e},{});e.setProps(Object.assign({},l,{getReferenceClientRect:"function"==typeof l.getReferenceClientRect?l.getReferenceClientRect:function(){var e;return null==(e=s[n])?void 0:e.getBoundingClientRect()}}))}}p(!1),d(),u();var m={fn:function(){return{onDestroy:function(){p(!0)},onHidden:function(){i=null},onClickOutside:function(e){e.props.showOnCreate&&!c&&(c=!0,i=null)},onShow:function(e){e.props.showOnCreate&&!c&&(c=!0,f(e,s[0]))},onTrigger:function(e,t){f(e,t.currentTarget)}}}},b=re(_(),Object.assign({},g(t,["overrides"]),{plugins:[m].concat(t.plugins||[]),triggerTarget:r,popperOptions:Object.assign({},t.popperOptions,{modifiers:[].concat((null==(n=t.popperOptions)?void 0:n.modifiers)||[],[le])})})),y=b.show;b.show=function(e){if(y(),!i&&null==e)return f(b,s[0]);if(!i||null!=e){if("number"==typeof e)return s[e]&&f(b,s[e]);if(o.indexOf(e)>=0){var t=e.reference;return f(b,t)}return s.indexOf(e)>=0?f(b,e):void 0}},b.showNext=function(){var e=s[0];if(!i)return b.show(0);var t=s.indexOf(i);b.show(s[t+1]||e)},b.showPrevious=function(){var e=s[s.length-1];if(!i)return b.show(e);var t=s.indexOf(i),n=s[t-1]||e;b.show(n)};var w=b.setProps;return b.setProps=function(e){a=e.overrides||a,w(e)},b.setInstances=function(e){p(!0),l.forEach(function(e){return e()}),o=e,p(!1),d(),u(),l=h(b),b.setProps({triggerTarget:r})},l=h(b),b},ue={mouseover:"mouseenter",focusin:"focus",click:"click"};function de(e,t){q(!(t&&t.target),["You must specity a `target` prop indicating a CSS selector string matching","the target elements that should receive a tippy."].join(" "));var n=[],i=[],o=!1,s=t.target,r=g(t,["target"]),a=Object.assign({},r,{trigger:"manual",touch:!1}),l=Object.assign({touch:W.touch},r,{showOnCreate:!0}),c=re(e,a);function d(e){if(e.target&&!o){var n=e.target.closest(s);if(n){var r=n.getAttribute("data-tippy-trigger")||t.trigger||W.trigger;if(!n._tippy&&!("touchstart"===e.type&&"boolean"==typeof l.touch||"touchstart"!==e.type&&r.indexOf(ue[e.type])<0)){var a=re(n,l);a&&(i=i.concat(a))}}}}function p(e,t,i,o){void 0===o&&(o=!1),e.addEventListener(t,i,o),n.push({node:e,eventType:t,handler:i,options:o})}return v(c).forEach(function(e){var t=e.destroy,s=e.enable,r=e.disable;e.destroy=function(e){void 0===e&&(e=!0),e&&i.forEach(function(e){e.destroy()}),i=[],n.forEach(function(e){var t=e.node,n=e.eventType,i=e.handler,o=e.options;t.removeEventListener(n,i,o)}),n=[],t()},e.enable=function(){s(),i.forEach(function(e){return e.enable()}),o=!1}
vendor: 4,681 bytes, line 1
1,e.disable=function(){r(),i.forEach(function(e){return e.disable()}),o=!0},function(e){var t=e.reference;p(t,"touchstart",d,u),p(t,"mouseover",d),p(t,"focusin",d),p(t,"click",d)}(e)}),c}var pe={name:"animateFill",defaultValue:!1,fn:function(e){var t;if(null==(t=e.props.render)||!t.$$tippy)return q(e.props.animateFill,"The `animateFill` plugin requires the default render function."),{};var n=ee(e.popper),i=n.box,o=n.content,s=e.props.animateFill?function(){var e=_();return e.className=a,L([e],"hidden"),e}():null;return{onCreate:function(){s&&(i.insertBefore(s,i.firstElementChild),i.setAttribute("data-animatefill",""),i.style.overflow="hidden",e.setProps({arrow:!1,animation:"shift-away"}))},onMount:function(){if(s){var e=i.style.transitionDuration,t=Number(e.replace("ms",""));o.style.transitionDelay=Math.round(t/10)+"ms",s.style.transitionDuration=e,L([s],"visible")}},onShow:function(){s&&(s.style.transitionDuration="0ms")},onHide:function(){s&&L([s],"hidden")}}}};var he={clientX:0,clientY:0},fe=[];function me(e){var t=e.clientX,n=e.clientY;he={clientX:t,clientY:n}}var ge={name:"followCursor",defaultValue:!1,fn:function(e){var t=e.reference,n=k(e.props.triggerTarget||t),i=!1,o=!1,s=!0,r=e.props;function a(){return"initial"===e.props.followCursor&&e.state.isVisible}function l(){n.addEventListener("mousemove",d)}function c(){n.removeEventListener("mousemove",d)}function u(){i=!0,e.setProps({getReferenceClientRect:null}),i=!1}function d(n){var i=!n.target||t.contains(n.target),o=e.props.followCursor,s=n.clientX,r=n.clientY,a=t.getBoundingClientRect(),l=s-a.left,c=r-a.top;!i&&e.props.interactive||e.setProps({getReferenceClientRect:function(){var e=t.getBoundingClientRect(),n=s,i=r;"initial"===o&&(n=e.left+l,i=e.top+c);var a="horizontal"===o?e.top:i,u="vertical"===o?e.right:n,d="horizontal"===o?e.bottom:i,p="vertical"===o?e.left:n;return{width:u-p,height:d-a,top:a,right:u,bottom:d,left:p}}})}function p(){e.props.followCursor&&(fe.push({instance:e,doc:n}),function(e){e.addEventListener("mousemove",me)}(n))}function h(){0===(fe=fe.filter(function(t){return t.instance!==e})).filter(function(e){return e.doc===n}).length&&function(e){e.removeEventListener("mousemove",me)}(n)}return{onCreate:p,onDestroy:h,onBeforeUpdate:function(){r=e.props},onAfterUpdate:function(t,n){var s=n.followCursor;i||void 0!==s&&r.followCursor!==s&&(h(),s?(p(),!e.state.isMounted||o||a()||l()):(c(),u()))},onMount:function(){e.props.followCursor&&!o&&(s&&(d(he),s=!1),a()||l())},onTrigger:function(e,t){E(t)&&(he={clientX:t.clientX,clientY:t.clientY}),o="focus"===t.type},onHidden:function(){e.props.followCursor&&(u(),c(),s=!0)}}}};var ve={name:"inlinePositioning",defaultValue:!1,fn:function(e){var t,n=e.reference;var i=-1,o=!1,s=[],r={name:"tippyInlinePositioning",enabled:!0,phase:"afterWrite",fn:function(o){var r=o.state;e.props.inlinePositioning&&(-1!==s.indexOf(r.placement)&&(s=[]),t!==r.placement&&-1===s.indexOf(r.placement)&&(s.push(r.placement),e.setProps({getReferenceClientRect:function(){return function(e){return function(e,t,n,i){if(n.length<2||null===e)return t;if(2===n.length&&i>=0&&n[0].left>n[1].right)return n[i]||t;switch(e){case"top":case"bottom":var o=n[0],s=n[n.length-1],r="top"===e,a=o.top,l=s.bottom,c=r?o.left:s.left,u=r?o.right:s.right;return{top:a,bottom:l,left:c,right:u,width:u-c,height:l-a};case"left":case"right":var d=Math.min.apply(Math,n.map(function(e){return e.left})),p=Math.max.apply(Math,n.map(function(e){return e.right})),h=n.filter(function(t){return"left"===e?t.left===d:t.right===p}),f=h[0].top,m=h[h.length-1].bottom;return{top:f,bottom:m,left:d,right:p,width:p-d,height:m-f};default:return t}}(y(e),n.getBoundingClientRect(),w(n.getClientRects()),i)}(r.placement)}})),t=r.placement)}};function a(){var t;o||(t=function(e,t){var n;return{popperOptions:Object.assign({},e.popperOptions,{modifiers:[].concat(((null==(n=e.popperOptions)?void 0:n.modifiers)||[]).filter(function(e){return e.name!==t.name}),[t])})}}(e.props,r),o=!0,e.setProps(t),o=!1)}return{onCreate:a,onAfterUpdate:a,onTrigger:function(t,n){if(E(n)){var o=w(e.reference.getClientRects()),s=o.find(function(e){return e.left-2<=n.clientX&&e.right+2>=n.clientX&&e.top-2<=n.clientY&&e.bottom+2>=n.clientY}),r=o.indexOf(s);i=r>-1?r:i}},onHidden:function(){i=-1}}}};var be={name:"sticky",defaultValue:!1,fn:function(e){var t=e.reference,n=e.popper;function i(t){return!0===e.props.sticky||e.props.sticky===t}var o=null,s=null;function r(){var a=i("reference")?(e.popperInstance?e.popperInstance.state.elements.reference:t).getBoundingClientRect():null,l=i("popper")?n.getBoundingClientRect():null;(a&&ye(o,a)||l&&ye(s,l))&&e.popperInstance&&e.popperInstance.update(
vendor: 4,724 bytes, line 1
1),o=a,s=l,e.state.isMounted&&requestAnimationFrame(r)}return{onMount:function(){e.props.sticky&&r()}}}};function ye(e,t){return!e||!t||(e.top!==t.top||e.right!==t.right||e.bottom!==t.bottom||e.left!==t.left)}re.setDefaultProps({render:te});const we=re},"./node_modules/choices.js/public/assets/scripts/choices.mjs"(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>Ct});var i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var s=function(){return s=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},s.apply(this,arguments)};function r(e,t,n){if(n||2===arguments.length)for(var i,o=0,s=t.length;o<s;o++)!i&&o in t||(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var a,l="ADD_CHOICE",c="REMOVE_CHOICE",u="FILTER_CHOICES",d="ACTIVATE_CHOICES",p="CLEAR_CHOICES",h="ADD_GROUP",f="ADD_ITEM",m="REMOVE_ITEM",g="HIGHLIGHT_ITEM",v="showDropdown",b="hideDropdown",y="change",w="choice",j="search",_="addItem",x="removeItem",E="highlightItem",S="highlightChoice",O="unhighlightItem",C=9,L=16,k=46,A=8,T=13,P=65,I=27,M=38,R=40,D=33,N=34,F=["fuseOptions","classNames"],$="text",B="select-one",V="select-multiple",H=function(e){return{type:l,choice:e}},U=function(e){return{type:f,item:e}},q=function(e){return{type:m,item:e}},z=function(e,t){return{type:g,item:e,highlighted:t}},W=function(e){return Array.from({length:e},function(){return(e=0,t=36,Math.floor(Math.random()*(t-e)+e)).toString(36);var e,t}).join("")},K=function(e){if("string"!=typeof e){if(null==e)return"";if("object"==typeof e){if("raw"in e)return K(e.raw);if("trusted"in e)return e.trusted}return e}return e.replace(/&/g,"&amp;").replace(/>/g,"&gt;").replace(/</g,"&lt;").replace(/'/g,"&#039;").replace(/"/g,"&quot;")},X=(a=document.createElement("div"),function(e){a.innerHTML=e.trim();for(var t=a.children[0];a.firstChild;)a.removeChild(a.firstChild);return t}),G=function(e,t){return"function"==typeof e?e(K(t),t):e},J=function(e){return"function"==typeof e?e():e},Y=function(e){if("string"==typeof e)return e;if("object"==typeof e){if("trusted"in e)return e.trusted;if("raw"in e)return e.raw}return""},Q=function(e){if("string"==typeof e)return e;if("object"==typeof e){if("escaped"in e)return e.escaped;if("trusted"in e)return e.trusted}return""},Z=function(e,t){return e?Q(t):K(t)},ee=function(e,t,n){e.innerHTML=Z(t,n)},te=function(e,t){return e.rank-t.rank},ne=function(e){return Array.isArray(e)?e:[e]},ie=function(e){return e&&Array.isArray(e)?e.map(function(e){return".".concat(e)}).join(""):".".concat(e)},oe=function(e,t){var n;(n=e.classList).add.apply(n,ne(t))},se=function(e,t){var n;(n=e.classList).remove.apply(n,ne(t))},re=function(e){if(void 0!==e)try{return JSON.parse(e)}catch(t){return e}return{}},ae=function(){function e(e){var t=e.element,n=e.type,i=e.classNames;this.element=t,this.classNames=i,this.type=n,this.isActive=!1}return e.prototype.show=function(){return oe(this.element,this.classNames.activeState),this.element.setAttribute("aria-expanded","true"),this.isActive=!0,this},e.prototype.hide=function(){return se(this.element,this.classNames.activeState),this.element.setAttribute("aria-expanded","false"),this.isActive=!1,this},e}(),le=function(){function e(e){var t=e.element,n=e.type,i=e.classNames,o=e.position;this.element=t,this.classNames=i,this.type=n,this.position=o,this.isOpen=!1,this.isFlipped=!1,this.isDisabled=!1,this.isLoading=!1}return e.prototype.shouldFlip=function(e,t){var n=!1;return"auto"===this.position?n=this.element.getBoundingClientRect().top-t>=0&&!window.matchMedia("(min-height: ".concat(e+1,"px)")).matches:"top"===this.position&&(n=!0),n},e.prototype.setActiveDescendant=function(e){this.element.setAttribute("aria-activedescendant",e)},e.prototype.removeActiveDescendant=function(){this.element.removeAttribute("aria-activedescendant")},e.prototype.open=function(e,t){oe(this.element,this.classNames.openState),this.element.setAttribute("aria-expanded","true"),this.isOpen=!0,this.shouldFlip(e,t)&&(oe(this.element,this.classNames.flippedState),this.isFlipped=!0)},e.prototype.close=function(){se(this.element,this.classNames.openState),this.element.setAttribute("aria-expanded","fal
1se"),this.removeActiveDescendant(),this.isOpen=!1,this.isFlipped&&(se(this.element,this.classNames.flippedState),this.isFlipped=!1)},e.prototype.addFocusState=function(){oe(this.element,this.classNames.focusState)},e.prototype.removeFocusState=function(){se(this.element,this.classNames.focusState)},e.prototype.enable=function(){se(this.element,this.classNames.disabledState),this.element.removeAttribute("aria-disabled"),this.type===B&&this.element.setAttribute("tabindex","0"),this.isDisabled=!1},e.prototype.disable=function(){oe(this.element,this.classNames.disabledState),this.element.setAttribute("aria-disabled","true"),this.type===B&&this.element.setAttribute("tabindex","-1"),this.isDisabled=!0},e.prototype.wrap=function(e){var t=this.element,n=e.parentNode;n&&(e.nextSibling?n.insertBefore(t,e.nextSibling):n.appendChild(t)),t.appendChild(e)},e.prototype.unwrap=function(e){var t=this.element,n=t.parentNode;n&&(n.insertBefore(e,t),n.removeChild(t))},e.prototype.addLoadingState=function(){oe(this.element,this.classNames.loadingState),this.element.setAttribute("aria-busy","true"),this.isLoading=!0},e.prototype.removeLoadingState=function(){se(this.element,this.classNames.loadingState),this.element.removeAttribute("aria-busy"),this.isLoading=!1},e}(),ce=function(){function e(e){var t=e.element,n=e.type,i=e.classNames,o=e.preventPaste;this.element=t,this.type=n,this.classNames=i,this.preventPaste=o,this.isFocussed=this.element.isEqualNode(document.activeElement),this.isDisabled=t.disabled,this._onPaste=this._onPaste.bind(this),this._onInput=this._onInput.bind(this),this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this)}return Object.defineProperty(e.prototype,"placeholder",{set:function(e){this.element.placeholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.element.value},set:function(e){this.element.value=e},enumerable:!1,configurable:!0}),e.prototype.addEventListeners=function(){var e=this.element;e.addEventListener("paste",this._onPaste),e.addEventListener("input",this._onInput,{passive:!0}),e.addEventListener("focus",this._onFocus,{passive:!0}),e.addEventListener("blur",this._onBlur,{passive:!0})},e.prototype.removeEventListeners=function(){var e=this.element;e.removeEventListener("input",this._onInput),e.removeEventListener("paste",this._onPaste),e.removeEventListener("focus",this._onFocus),e.removeEventListener("blur",this._onBlur)},e.prototype.enable=function(){this.element.removeAttribute("disabled"),this.isDisabled=!1},e.prototype.disable=function(){this.element.setAttribute("disabled",""),this.isDisabled=!0},e.prototype.focus=function(){this.isFocussed||this.element.focus()},e.prototype.blur=function(){this.isFocussed&&this.element.blur()},e.prototype.clear=function(e){return void 0===e&&(e=!0),this.element.value="",e&&this.setWidth(),this},e.prototype.setWidth=function(){var e=this.element;e.style.minWidth="".concat(e.placeholder.length+1,"ch"),e.style.width="".concat(e.value.length+1,"ch")},e.prototype.setActiveDescendant=function(e){this.element.setAttribute("aria-activedescendant",e)},e.prototype.removeActiveDescendant=function(){this.element.removeAttribute("aria-activedescendant")},e.prototype._onInput=function(){this.type!==B&&this.setWidth()},e.prototype._onPaste=function(e){this.preventPaste&&e.preventDefault()},e.prototype._onFocus=function(){this.isFocussed=!0},e.prototype._onBlur=function(){this.isFocussed=!1},e}(),ue=function(){function e(e){var t=e.element;this.element=t,this.scrollPos=this.element.scrollTop,this.height=this.element.offsetHeight}return e.prototype.prepend=function(e){var t=this.element.firstElementChild;t?this.element.insertBefore(e,t):this.element.append(e)},e.prototype.scrollToTop=function(){this.element.scrollTop=0},e.prototype.scrollToChildElement=function(e,t){var n=this;if(e){var i=this.element.offsetHeight,o=this.element.scrollTop+i,s=e.offsetHeight,r=e.offsetTop+s,a=t>0?this.element.scrollTop+r-o:e.offsetTop;requestAnimationFrame(function(){n._animateScroll(a,t)})}},e.prototype._scrollDown=function(e,t,n){var i=(n-e)/t,o=i>1?i:1;this.element.scrollTop=e+o},e.prototype._scrollUp=function(e,t,n){var i=(e-n)/t,o=i>1?i:1;this.element.scrollTop=e-o},e.prototype._animateScroll=function(e,t){var n=this,i=this.element.scrollTop,o=!1;t>0?(this._scrollDown(i,4,e),i<e&&(o=!0)):(this._scrollUp(i,4,e),i>e&&(o=!0)),o&&requestAnimationFrame(function(){n._animateScroll(e,t)})},e}(),de=function(){function e(e){var t=e.element,n=e.classNames;this.element=t,this.classNames=n,this.isDisabled=!1}return Object.defineProperty(e.prototype,"isActive",{get:function(){return"active"===this.element.dataset.choice}
vendor: 62,647 bytes, line 1
1,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dir",{get:function(){return this.element.dir},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.element.value},set:function(e){this.element.setAttribute("value",e),this.element.value=e},enumerable:!1,configurable:!0}),e.prototype.conceal=function(){var e=this.element;oe(e,this.classNames.input),e.hidden=!0,e.tabIndex=-1;var t=e.getAttribute("style");t&&e.setAttribute("data-choice-orig-style",t),e.setAttribute("data-choice","active")},e.prototype.reveal=function(){var e=this.element;se(e,this.classNames.input),e.hidden=!1,e.removeAttribute("tabindex");var t=e.getAttribute("data-choice-orig-style");t?(e.removeAttribute("data-choice-orig-style"),e.setAttribute("style",t)):e.removeAttribute("style"),e.removeAttribute("data-choice")},e.prototype.enable=function(){this.element.removeAttribute("disabled"),this.element.disabled=!1,this.isDisabled=!1},e.prototype.disable=function(){this.element.setAttribute("disabled",""),this.element.disabled=!0,this.isDisabled=!0},e.prototype.triggerEvent=function(e,t){!function(e,t,n){void 0===n&&(n=null);var i=new CustomEvent(t,{detail:n,bubbles:!0,cancelable:!0});e.dispatchEvent(i)}(this.element,e,t||{})},e}(),pe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t}(de),he=function(e,t){return void 0===t&&(t=!0),void 0===e?t:!!e},fe=function(e){if("string"==typeof e&&(e=e.split(" ").filter(function(e){return e.length})),Array.isArray(e)&&e.length)return e},me=function(e,t,n){if(void 0===n&&(n=!0),"string"==typeof e){var i=K(e);return me({value:e,label:n||i===e?e:{escaped:i,raw:e},selected:!0},!1)}var o=e;if("choices"in o){if(!t)throw new TypeError("optGroup is not allowed");var s=o,r=s.choices.map(function(e){return me(e,!1)});return{id:0,label:Y(s.label)||s.value,active:!!r.length,disabled:!!s.disabled,choices:r}}var a=o;return{id:0,group:null,score:0,rank:0,value:a.value,label:a.label||a.value,active:he(a.active),selected:he(a.selected,!1),disabled:he(a.disabled,!1),placeholder:he(a.placeholder,!1),highlighted:!1,labelClass:fe(a.labelClass),labelDescription:a.labelDescription,customProperties:a.customProperties}},ge=function(e){return"SELECT"===e.tagName},ve=function(e){function t(t){var n=t.element,i=t.classNames,o=t.template,s=t.extractPlaceholder,r=e.call(this,{element:n,classNames:i})||this;return r.template=o,r.extractPlaceholder=s,r}return o(t,e),Object.defineProperty(t.prototype,"placeholderOption",{get:function(){return this.element.querySelector('option[value=""]')||this.element.querySelector("option[placeholder]")},enumerable:!1,configurable:!0}),t.prototype.addOptions=function(e){var t=this,n=document.createDocumentFragment();e.forEach(function(e){var i=e;if(!i.element){var o=t.template(i);n.appendChild(o),i.element=o}}),this.element.appendChild(n)},t.prototype.optionsAsChoices=function(){var e=this,t=[];return this.element.querySelectorAll(":scope > option, :scope > optgroup").forEach(function(n){!function(e){return"OPTION"===e.tagName}(n)?function(e){return"OPTGROUP"===e.tagName}(n)&&t.push(e._optgroupToChoice(n)):t.push(e._optionToChoice(n))}),t},t.prototype._optionToChoice=function(e){return!e.hasAttribute("value")&&e.hasAttribute("placeholder")&&(e.setAttribute("value",""),e.value=""),{id:0,group:null,score:0,rank:0,value:e.value,label:e.label,element:e,active:!0,selected:this.extractPlaceholder?e.selected:e.hasAttribute("selected"),disabled:e.disabled,highlighted:!1,placeholder:this.extractPlaceholder&&(!e.value||e.hasAttribute("placeholder")),labelClass:void 0!==e.dataset.labelClass?fe(e.dataset.labelClass):void 0,labelDescription:void 0!==e.dataset.labelDescription?e.dataset.labelDescription:void 0,customProperties:re(e.dataset.customProperties)}},t.prototype._optgroupToChoice=function(e){var t=this,n=e.querySelectorAll("option"),i=Array.from(n).map(function(e){return t._optionToChoice(e)});return{id:0,label:e.label||"",element:e,active:!!i.length,disabled:e.disabled,choices:i}},t}(de),be={items:[],choices:[],silent:!1,renderChoiceLimit:-1,maxItemCount:-1,closeDropdownOnSelect:"auto",singleModeForMultiSelect:!1,addChoices:!1,addItems:!0,addItemFilter:function(e){return!!e&&""!==e},removeItems:!0,removeItemButton:!1,removeItemButtonAlignLeft:!1,editItems:!1,allowHTML:!1,allowHtmlUserInput:!1,duplicateItemsAllowed:!0,delimiter:",",paste:!0,searchEnabled:!0,searchChoices:!0,searchFloor:1,searchResultLimit:4,searchFields:["label","value"],position:"auto",resetScrollPosition:!0,shouldSort:!0,shouldSortItems:!1,sorter:function(e,t){var n=e.value,i=e.label,o=void 0===i?n:i,s=t.value,r=t.label,a=void 0===r?s:r;return Y(o).localeCompare(Y(a),[],{sensitivity:"base",ignorePunctuation:!0,numeric:!0})},shadowRoot:null,placeholder:!0,placeholderValue:null,searchPlaceholderValue:null,prependValue:null,appendValue:null,renderSelectedChoices:"auto",loadingText:"Loading...",noResultsText:"No results found",noChoicesText:"No choices to choose from",itemSelectText:"Press to select",uniqueItemText:"Only unique values can be added",customAddItemText:"Only values matching specific conditions can be added",addItemText:function(e){return'Press Enter to add <b>"'.concat(e,'"</b>')},removeItemIconText:function(){return"Remove item"},removeItemLabelText:function(e){return"Remove item: ".concat(e)},maxItemText:function(e){return"Only ".concat(e," values can be added")},valueComparer:function(e,t){return e===t},fuseOptions:{includeScore:!0},labelId:"",callbackOnInit:null,callbackOnCreateTemplates:null,classNames:{containerOuter:["choices"],containerInner:["choices__inner"],input:["choices__input"],inputCloned:["choices__input--cloned"],list:["choices__list"],listItems:["choices__list--multiple"],listSingle:["choices__list--single"],listDropdown:["choices__list--dropdown"],item:["choices__item"],itemSelectable:["choices__item--selectable"],itemDisabled:["choices__item--disabled"],itemChoice:["choices__item--choice"],description:["choices__description"],placeholder:["choices__placeholder"],group:["choices__group"],groupHeading:["choices__heading"],button:["choices__button"],activeState:["is-active"],focusState:["is-focused"],openState:["is-open"],disabledState:["is-disabled"],highlightedState:["is-highlighted"],selectedState:["is-selected"],flippedState:["is-flipped"],loadingState:["is-loading"],notice:["choices__notice"],addChoice:["choices__item--selectable","add-choice"],noResults:["has-no-results"],noChoices:["has-no-choices"]},appendGroupInSearch:!1},ye=function(e){var t=e.itemEl;t&&(t.remove(),e.itemEl=void 0)};var we={groups:function(e,t){var n=e,i=!0;switch(t.type){case h:n.push(t.group);break;case p:n=[];break;default:i=!1}return{state:n,update:i}},items:function(e,t,n){var i=e,o=!0;switch(t.type){case f:t.item.selected=!0,(s=t.item.element)&&(s.selected=!0,s.setAttribute("selected","")),i.push(t.item);break;case m:var s;if(t.item.selected=!1,s=t.item.element){s.selected=!1,s.removeAttribute("selected");var r=s.parentElement;r&&ge(r)&&r.type===B&&(r.value="")}ye(t.item),i=i.filter(function(e){return e.id!==t.item.id});break;case c:ye(t.choice),i=i.filter(function(e){return e.id!==t.choice.id});break;case g:var a=t.highlighted,l=i.find(function(e){return e.id===t.item.id});l&&l.highlighted!==a&&(l.highlighted=a,n&&function(e,t,n){var i=e.itemEl;i&&(se(i,n),oe(i,t))}(l,a?n.classNames.highlightedState:n.classNames.selectedState,a?n.classNames.selectedState:n.classNames.highlightedState));break;default:o=!1}return{state:i,update:o}},choices:function(e,t,n){var i=e,o=!0;switch(t.type){case l:i.push(t.choice);break;case c:t.choice.choiceEl=void 0,t.choice.group&&(t.choice.group.choices=t.choice.group.choices.filter(function(e){return e.id!==t.choice.id})),i=i.filter(function(e){return e.id!==t.choice.id});break;case f:case m:t.item.choiceEl=void 0;break;case u:var s=[];t.results.forEach(function(e){s[e.item.id]=e}),i.forEach(function(e){var t=s[e.id];void 0!==t?(e.score=t.score,e.rank=t.rank,e.active=!0):(e.score=0,e.rank=0,e.active=!1),n&&n.appendGroupInSearch&&(e.choiceEl=void 0)});break;case d:i.forEach(function(e){e.active=t.active,n&&n.appendGroupInSearch&&(e.choiceEl=void 0)});break;case p:i=[];break;default:o=!1}return{state:i,update:o}}},je=function(){function e(e){this._state=this.defaultState,this._listeners=[],this._txn=0,this._context=e}return Object.defineProperty(e.prototype,"defaultState",{get:function(){return{groups:[],items:[],choices:[]}},enumerable:!1,configurable:!0}),e.prototype.changeSet=function(e){return{groups:e,items:e,choices:e}},e.prototype.reset=function(){this._state=this.defaultState;var e=this.changeSet(!0);this._txn?this._changeSet=e:this._listeners.forEach(function(t){return t(e)})},e.prototype.subscribe=function(e){return this._listeners.push(e),this},e.prototype.dispatch=function(e){var t=this,n=this._state,i=!1,o=this._changeSet||this.changeSet(!1);Object.keys(we).forEach(function(s){var r=we[s](n[s],e,t._context);r.update&&(i=!0,o[s]=!0,n[s]=r.state)}),i&&(this._txn?this._changeSet=o:this._listeners.forEach(function(e){return e(o)}))},e.prototype.withTxn=function(e){this._txn++;try{e()}finally{if(this._txn=Math.max(0,this._txn-1),!this._txn){var t=this._changeSet;t&&(this._changeSet=void 0,this._listeners.forEach(function(e){return e(t)}))}}},Object.defineProperty(e.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"items",{get:function(){return this.state.items},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"highlightedActiveItems",{get:function(){return this.items.filter(function(e){return e.active&&e.highlighted})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"choices",{get:function(){return this.state.choices},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeChoices",{get:function(){return this.choices.filter(function(e){return e.active})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"searchableChoices",{get:function(){return this.choices.filter(function(e){return!e.disabled&&!e.placeholder})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"groups",{get:function(){return this.state.groups},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeGroups",{get:function(){var e=this;return this.state.groups.filter(function(t){var n=t.active&&!t.disabled,i=e.state.choices.some(function(e){return e.active&&!e.disabled});return n&&i},[])},enumerable:!1,configurable:!0}),e.prototype.inTxn=function(){return this._txn>0},e.prototype.getChoiceById=function(e){return this.activeChoices.find(function(t){return t.id===e})},e.prototype.getGroupById=function(e){return this.groups.find(function(t){return t.id===e})},e}(),_e="no-choices",xe="no-results",Ee="add-choice",Se="";function Oe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ce(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function Le(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ce(Object(n),!0).forEach(function(t){Oe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ce(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ke(e){return Array.isArray?Array.isArray(e):"[object Array]"===De(e)}function Ae(e){return"string"==typeof e}function Te(e){return"number"==typeof e}function Pe(e){return!0===e||!1===e||function(e){return Ie(e)&&null!==e}(e)&&"[object Boolean]"==De(e)}function Ie(e){return"object"==typeof e}function Me(e){return null!=e}function Re(e){return!e.trim().length}function De(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const Ne=Object.prototype.hasOwnProperty;class Fe{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach(e=>{let n=$e(e);this._keys.push(n),this._keyMap[n.id]=n,t+=n.weight}),this._keys.forEach(e=>{e.weight/=t})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function $e(e){let t=null,n=null,i=null,o=1,s=null;if(Ae(e)||ke(e))i=e,t=Be(e),n=Ve(e);else{if(!Ne.call(e,"name"))throw new Error((e=>`Missing ${e} property in key`)("name"));const r=e.name;if(i=r,Ne.call(e,"weight")&&(o=e.weight,o<=0))throw new Error((e=>`Property 'weight' in key '${e}' must be a positive integer`)(r));t=Be(r),n=Ve(r),s=e.getFn}return{path:t,id:n,weight:o,src:i,getFn:s}}function Be(e){return ke(e)?e:e.split(".")}function Ve(e){return ke(e)?e.join("."):e}const He={useExtendedSearch:!1,getFn:function(e,t){let n=[],i=!1;const o=(e,t,s)=>{if(Me(e))if(t[s]){const r=e[t[s]];if(!Me(r))return;if(s===t.length-1&&(Ae(r)||Te(r)||Pe(r)))n.push(function(e){return null==e?"":function(e){if("string"==typeof e)return e;let t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(e)}(r));else if(ke(r)){i=!0;for(let e=0,n=r.length;e<n;e+=1)o(r[e],t,s+1)}else t.length&&o(r,t,s+1)}else n.push(e)};return o(e,Ae(t)?t.split("."):t,0),i?n:n[0]},ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var Ue=Le(Le(Le(Le({},{isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1}),{includeMatches:!1,findAllMatches:!1,minMatchCharLength:1}),{location:0,threshold:.6,distance:100}),He);const qe=/[^ ]+/g;class ze{constructor({getFn:e=Ue.getFn,fieldNormWeight:t=Ue.fieldNormWeight}={}){this.norm=function(e=1,t=3){const n=new Map,i=Math.pow(10,t);return{get(t){const o=t.match(qe).length;if(n.has(o))return n.get(o);const s=1/Math.pow(o,.5*e),r=parseFloat(Math.round(s*i)/i);return n.set(o,r),r},clear(){n.clear()}}}(t,3),this.getFn=e,this.isCreated=!1,this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach((e,t)=>{this._keysMap[e.id]=t})}create(){!this.isCreated&&this.docs.length&&(this.isCreated=!0,Ae(this.docs[0])?this.docs.forEach((e,t)=>{this._addString(e,t)}):this.docs.forEach((e,t)=>{this._addObject(e,t)}),this.norm.clear())}add(e){const t=this.size();Ae(e)?this._addString(e,t):this._addObject(e,t)}removeAt(e){this.records.splice(e,1);for(let t=e,n=this.size();t<n;t+=1)this.records[t].i-=1}getValueForItemAtKeyId(e,t){return e[this._keysMap[t]]}size(){return this.records.length}_addString(e,t){if(!Me(e)||Re(e))return;let n={v:e,i:t,n:this.norm.get(e)};this.records.push(n)}_addObject(e,t){let n={i:t,$:{}};this.keys.forEach((t,i)=>{let o=t.getFn?t.getFn(e):this.getFn(e,t.path);if(Me(o))if(ke(o)){let e=[];const t=[{nestedArrIndex:-1,value:o}];for(;t.length;){const{nestedArrIndex:n,value:i}=t.pop();if(Me(i))if(Ae(i)&&!Re(i)){let t={v:i,i:n,n:this.norm.get(i)};e.push(t)}else ke(i)&&i.forEach((e,n)=>{t.push({nestedArrIndex:n,value:e})})}n.$[i]=e}else if(Ae(o)&&!Re(o)){let e={v:o,n:this.norm.get(o)};n.$[i]=e}}),this.records.push(n)}toJSON(){return{keys:this.keys,records:this.records}}}function We(e,t,{getFn:n=Ue.getFn,fieldNormWeight:i=Ue.fieldNormWeight}={}){const o=new ze({getFn:n,fieldNormWeight:i});return o.setKeys(e.map($e)),o.setSources(t),o.create(),o}function Ke(e,{errors:t=0,currentLocation:n=0,expectedLocation:i=0,distance:o=Ue.distance,ignoreLocation:s=Ue.ignoreLocation}={}){const r=t/e.length;if(s)return r;const a=Math.abs(i-n);return o?r+a/o:a?1:r}const Xe=32;function Ge(e,t,n,{location:i=Ue.location,distance:o=Ue.distance,threshold:s=Ue.threshold,findAllMatches:r=Ue.findAllMatches,minMatchCharLength:a=Ue.minMatchCharLength,includeMatches:l=Ue.includeMatches,ignoreLocation:c=Ue.ignoreLocation}={}){if(t.length>Xe)throw new Error(`Pattern length exceeds max of ${Xe}.`);const u=t.length,d=e.length,p=Math.max(0,Math.min(i,d));let h=s,f=p;const m=a>1||l,g=m?Array(d):[];let v;for(;(v=e.indexOf(t,f))>-1;){let e=Ke(t,{currentLocation:v,expectedLocation:p,distance:o,ignoreLocation:c});if(h=Math.min(e,h),f=v+u,m){let e=0;for(;e<u;)g[v+e]=1,e+=1}}f=-1;let b=[],y=1,w=u+d;const j=1<<u-1;for(let i=0;i<u;i+=1){let s=0,a=w;for(;s<a;){Ke(t,{errors:i,currentLocation:p+a,expectedLocation:p,distance:o,ignoreLocation:c})<=h?s=a:w=a,a=Math.floor((w-s)/2+s)}w=a;let l=Math.max(1,p-a+1),v=r?d:Math.min(p+a,d)+u,_=Array(v+2);_[v+1]=(1<<i)-1;for(let s=v;s>=l;s-=1){let r=s-1,a=n[e.charAt(r)];if(m&&(g[r]=+!!a),_[s]=(_[s+1]<<1|1)&a,i&&(_[s]|=(b[s+1]|b[s])<<1|1|b[s+1]),_[s]&j&&(y=Ke(t,{errors:i,currentLocation:r,expectedLocation:p,distance:o,ignoreLocation:c}),y<=h)){if(h=y,f=r,f<=p)break;l=Math.max(1,2*p-f)}}if(Ke(t,{errors:i+1,currentLocation:p,expectedLocation:p,distance:o,ignoreLocation:c})>h)break;b=_}const _={isMatch:f>=0,score:Math.max(.001,y)};if(m){const e=function(e=[],t=Ue.minMatchCharLength){let n=[],i=-1,o=-1,s=0;for(let r=e.length;s<r;s+=1){let r=e[s];r&&-1===i?i=s:r||-1===i||(o=s-1,o-i+1>=t&&n.push([i,o]),i=-1)}return e[s-1]&&s-i>=t&&n.push([i,s-1]),n}(g,a);e.length?l&&(_.indices=e):_.isMatch=!1}return _}function Je(e){let t={};for(let n=0,i=e.length;n<i;n+=1){const o=e.charAt(n);t[o]=(t[o]||0)|1<<i-n-1}return t}class Ye{constructor(e,{location:t=Ue.location,threshold:n=Ue.threshold,distance:i=Ue.distance,includeMatches:o=Ue.includeMatches,findAllMatches:s=Ue.findAllMatches,minMatchCharLength:r=Ue.minMatchCharLength,isCaseSensitive:a=Ue.isCaseSensitive,ignoreLocation:l=Ue.ignoreLocation}={}){if(this.options={location:t,threshold:n,distance:i,includeMatches:o,findAllMatches:s,minMatchCharLength:r,isCaseSensitive:a,ignoreLocation:l},this.pattern=a?e:e.toLowerCase(),this.chunks=[],!this.pattern.length)return;const c=(e,t)=>{this.chunks.push({pattern:e,alphabet:Je(e),startIndex:t})},u=this.pattern.length;if(u>Xe){let e=0;const t=u%Xe,n=u-t;for(;e<n;)c(this.pattern.substr(e,Xe),e),e+=Xe;if(t){const e=u-Xe;c(this.pattern.substr(e),e)}}else c(this.pattern,0)}searchIn(e){const{isCaseSensitive:t,includeMatches:n}=this.options;if(t||(e=e.toLowerCase()),this.pattern===e){let t={isMatch:!0,score:0};return n&&(t.indices=[[0,e.length-1]]),t}const{location:i,distance:o,threshold:s,findAllMatches:r,minMatchCharLength:a,ignoreLocation:l}=this.options;let c=[],u=0,d=!1;this.chunks.forEach(({pattern:t,alphabet:p,startIndex:h})=>{const{isMatch:f,score:m,indices:g}=Ge(e,t,p,{location:i+h,distance:o,threshold:s,findAllMatches:r,minMatchCharLength:a,includeMatches:n,ignoreLocation:l});f&&(d=!0),u+=m,f&&g&&(c=[...c,...g])});let p={isMatch:d,score:d?u/this.chunks.length:1};return d&&n&&(p.indices=c),p}}class Qe{constructor(e){this.pattern=e}static isMultiMatch(e){return Ze(e,this.multiRegex)}static isSingleMatch(e){return Ze(e,this.singleRegex)}search(){}}function Ze(e,t){const n=e.match(t);return n?n[1]:null}class et extends Qe{constructor(e,{location:t=Ue.location,threshold:n=Ue.threshold,distance:i=Ue.distance,includeMatches:o=Ue.includeMatches,findAllMatches:s=Ue.findAllMatches,minMatchCharLength:r=Ue.minMatchCharLength,isCaseSensitive:a=Ue.isCaseSensitive,ignoreLocation:l=Ue.ignoreLocation}={}){super(e),this._bitapSearch=new Ye(e,{location:t,threshold:n,distance:i,includeMatches:o,findAllMatches:s,minMatchCharLength:r,isCaseSensitive:a,ignoreLocation:l})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class tt extends Qe{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let t,n=0;const i=[],o=this.pattern.length;for(;(t=e.indexOf(this.pattern,n))>-1;)n=t+o,i.push([t,n-1]);const s=!!i.length;return{isMatch:s,score:s?0:1,indices:i}}}const nt=[class extends Qe{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){const t=e===this.pattern;return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}},tt,class extends Qe{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){const t=e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}},class extends Qe{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){const t=!e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},class extends Qe{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){const t=!e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},class extends Qe{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){const t=e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[e.length-this.pattern.length,e.length-1]}}},class extends Qe{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){const t=-1===e.indexOf(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},et],it=nt.length,ot=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/;const st=new Set([et.type,tt.type]);class rt{constructor(e,{isCaseSensitive:t=Ue.isCaseSensitive,includeMatches:n=Ue.includeMatches,minMatchCharLength:i=Ue.minMatchCharLength,ignoreLocation:o=Ue.ignoreLocation,findAllMatches:s=Ue.findAllMatches,location:r=Ue.location,threshold:a=Ue.threshold,distance:l=Ue.distance}={}){this.query=null,this.options={isCaseSensitive:t,includeMatches:n,minMatchCharLength:i,findAllMatches:s,ignoreLocation:o,location:r,threshold:a,distance:l},this.pattern=t?e:e.toLowerCase(),this.query=function(e,t={}){return e.split("|").map(e=>{let n=e.trim().split(ot).filter(e=>e&&!!e.trim()),i=[];for(let e=0,o=n.length;e<o;e+=1){const o=n[e];let s=!1,r=-1;for(;!s&&++r<it;){const e=nt[r];let n=e.isMultiMatch(o);n&&(i.push(new e(n,t)),s=!0)}if(!s)for(r=-1;++r<it;){const e=nt[r];let n=e.isSingleMatch(o);if(n){i.push(new e(n,t));break}}}return i})}(this.pattern,this.options)}static condition(e,t){return t.useExtendedSearch}searchIn(e){const t=this.query;if(!t)return{isMatch:!1,score:1};const{includeMatches:n,isCaseSensitive:i}=this.options;e=i?e:e.toLowerCase();let o=0,s=[],r=0;for(let i=0,a=t.length;i<a;i+=1){const a=t[i];s.length=0,o=0;for(let t=0,i=a.length;t<i;t+=1){const i=a[t],{isMatch:l,indices:c,score:u}=i.search(e);if(!l){r=0,o=0,s.length=0;break}if(o+=1,r+=u,n){const e=i.constructor.type;st.has(e)?s=[...s,...c]:s.push(c)}}if(o){let e={isMatch:!0,score:r/o};return n&&(e.indices=s),e}}return{isMatch:!1,score:1}}}const at=[];function lt(e,t){for(let n=0,i=at.length;n<i;n+=1){let i=at[n];if(i.condition(e,t))return new i(e,t)}return new Ye(e,t)}const ct="$and",ut="$or",dt="$path",pt="$val",ht=e=>!(!e[ct]&&!e[ut]),ft=e=>({[ct]:Object.keys(e).map(t=>({[t]:e[t]}))});function mt(e,t,{auto:n=!0}={}){const i=e=>{let o=Object.keys(e);const s=(e=>!!e[dt])(e);if(!s&&o.length>1&&!ht(e))return i(ft(e));if((e=>!ke(e)&&Ie(e)&&!ht(e))(e)){const i=s?e[dt]:o[0],r=s?e[pt]:e[i];if(!Ae(r))throw new Error((e=>`Invalid value for key ${e}`)(i));const a={keyId:Ve(i),pattern:r};return n&&(a.searcher=lt(r,t)),a}let r={children:[],operator:o[0]};return o.forEach(t=>{const n=e[t];ke(n)&&n.forEach(e=>{r.children.push(i(e))})}),r};return ht(e)||(e=ft(e)),i(e)}function gt(e,t){const n=e.matches;t.matches=[],Me(n)&&n.forEach(e=>{if(!Me(e.indices)||!e.indices.length)return;const{indices:n,value:i}=e;let o={indices:n,value:i};e.key&&(o.key=e.key.src),e.idx>-1&&(o.refIndex=e.idx),t.matches.push(o)})}function vt(e,t){t.score=e.score}class bt{constructor(e,t={},n){this.options=Le(Le({},Ue),t),this.options.useExtendedSearch,this._keyStore=new Fe(this.options.keys),this.setCollection(e,n)}setCollection(e,t){if(this._docs=e,t&&!(t instanceof ze))throw new Error("Incorrect 'index' type");this._myIndex=t||We(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){Me(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=()=>!1){const t=[];for(let n=0,i=this._docs.length;n<i;n+=1){const o=this._docs[n];e(o,n)&&(this.removeAt(n),n-=1,i-=1,t.push(o))}return t}removeAt(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}getIndex(){return this._myIndex}search(e,{limit:t=-1}={}){const{includeMatches:n,includeScore:i,shouldSort:o,sortFn:s,ignoreFieldNorm:r}=this.options;let a=Ae(e)?Ae(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return function(e,{ignoreFieldNorm:t=Ue.ignoreFieldNorm}){e.forEach(e=>{let n=1;e.matches.forEach(({key:e,norm:i,score:o})=>{const s=e?e.weight:null;n*=Math.pow(0===o&&s?Number.EPSILON:o,(s||1)*(t?1:i))}),e.score=n})}(a,{ignoreFieldNorm:r}),o&&a.sort(s),Te(t)&&t>-1&&(a=a.slice(0,t)),function(e,t,{includeMatches:n=Ue.includeMatches,includeScore:i=Ue.includeScore}={}){const o=[];return n&&o.push(gt),i&&o.push(vt),e.map(e=>{const{idx:n}=e,i={item:t[n],refIndex:n};return o.length&&o.forEach(t=>{t(e,i)}),i})}(a,this._docs,{includeMatches:n,includeScore:i})}_searchStringList(e){const t=lt(e,this.options),{records:n}=this._myIndex,i=[];return n.forEach(({v:e,i:n,n:o})=>{if(!Me(e))return;const{isMatch:s,score:r,indices:a}=t.searchIn(e);s&&i.push({item:e,idx:n,matches:[{score:r,value:e,norm:o,indices:a}]})}),i}_searchLogical(e){const t=mt(e,this.options),n=(e,t,i)=>{if(!e.children){const{keyId:n,searcher:o}=e,s=this._findMatches({key:this._keyStore.get(n),value:this._myIndex.getValueForItemAtKeyId(t,n),searcher:o});return s&&s.length?[{idx:i,item:t,matches:s}]:[]}const o=[];for(let s=0,r=e.children.length;s<r;s+=1){const r=e.children[s],a=n(r,t,i);if(a.length)o.push(...a);else if(e.operator===ct)return[]}return o},i=this._myIndex.records,o={},s=[];return i.forEach(({$:e,i})=>{if(Me(e)){let r=n(t,e,i);r.length&&(o[i]||(o[i]={idx:i,item:e,matches:[]},s.push(o[i])),r.forEach(({matches:e})=>{o[i].matches.push(...e)}))}}),s}_searchObjectList(e){const t=lt(e,this.options),{keys:n,records:i}=this._myIndex,o=[];return i.forEach(({$:e,i})=>{if(!Me(e))return;let s=[];n.forEach((n,i)=>{s.push(...this._findMatches({key:n,value:e[i],searcher:t}))}),s.length&&o.push({idx:i,item:e,matches:s})}),o}_findMatches({key:e,value:t,searcher:n}){if(!Me(t))return[];let i=[];if(ke(t))t.forEach(({v:t,i:o,n:s})=>{if(!Me(t))return;const{isMatch:r,score:a,indices:l}=n.searchIn(t);r&&i.push({score:a,key:e,value:t,idx:o,norm:s,indices:l})});else{const{v:o,n:s}=t,{isMatch:r,score:a,indices:l}=n.searchIn(o);r&&i.push({score:a,key:e,value:o,norm:s,indices:l})}return i}}bt.version="7.0.0",bt.createIndex=We,bt.parseIndex=function(e,{getFn:t=Ue.getFn,fieldNormWeight:n=Ue.fieldNormWeight}={}){const{keys:i,records:o}=e,s=new ze({getFn:t,fieldNormWeight:n});return s.setKeys(i),s.setIndexRecords(o),s},bt.config=Ue,bt.parseQuery=mt,function(...e){at.push(...e)}(rt);var yt=function(){function e(e){this._haystack=[],this._fuseOptions=s(s({},e.fuseOptions),{keys:r([],e.searchFields,!0),includeMatches:!0})}return e.prototype.index=function(e){this._haystack=e,this._fuse&&this._fuse.setCollection(e)},e.prototype.reset=function(){this._haystack=[],this._fuse=void 0},e.prototype.isEmptyIndex=function(){return!this._haystack.length},e.prototype.search=function(e){return this._fuse||(this._fuse=new bt(this._haystack,this._fuseOptions)),this._fuse.search(e).map(function(e,t){return{item:e.item,score:e.score||0,rank:t+1}})},e}();var wt=function(e,t,n){var i=e.dataset,o=t.customProperties,s=t.labelClass,r=t.labelDescription;s&&(i.labelClass=ne(s).join(" ")),r&&(i.labelDescription=r),n&&o&&("string"==typeof o?i.customProperties=o:"object"!=typeof o||function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}(o)||(i.customProperties=JSON.stringify(o)))},jt=function(e,t,n){var i=t&&e.querySelector("label[for='".concat(t,"']")),o=i&&i.innerText;o&&n.setAttribute("aria-label",o)},_t={containerOuter:function(e,t,n,i,o,s,r){var a=e.classNames.containerOuter,l=document.createElement("div");return oe(l,a),l.dataset.type=s,t&&(l.dir=t),i&&(l.tabIndex=0),n&&(l.setAttribute("role",o?"combobox":"listbox"),o?l.setAttribute("aria-autocomplete","list"):r||jt(this._docRoot,this.passedElement.element.id,l),l.setAttribute("aria-haspopup","true"),l.setAttribute("aria-expanded","false")),r&&l.setAttribute("aria-labelledby",r),l},containerInner:function(e){var t=e.classNames.containerInner,n=document.createElement("div");return oe(n,t),n},itemList:function(e,t){var n=e.searchEnabled,i=e.classNames,o=i.list,s=i.listSingle,r=i.listItems,a=document.createElement("div");return oe(a,o),oe(a,t?s:r),this._isSelectElement&&n&&a.setAttribute("role","listbox"),a},placeholder:function(e,t){var n=e.allowHTML,i=e.classNames.placeholder,o=document.createElement("div");return oe(o,i),ee(o,n,t),o},item:function(e,t,n){var i=e.allowHTML,o=e.removeItemButtonAlignLeft,s=e.removeItemIconText,r=e.removeItemLabelText,a=e.classNames,l=a.item,c=a.button,u=a.highlightedState,d=a.itemSelectable,p=a.placeholder,h=Y(t.value),f=document.createElement("div");if(oe(f,l),t.labelClass){var m=document.createElement("span");ee(m,i,t.label),oe(m,t.labelClass),f.appendChild(m)}else ee(f,i,t.label);if(f.dataset.item="",f.dataset.id=t.id,f.dataset.value=h,wt(f,t,!0),(t.disabled||this.containerOuter.isDisabled)&&f.setAttribute("aria-disabled","true"),this._isSelectElement&&(f.setAttribute("aria-selected","true"),f.setAttribute("role","option")),t.placeholder&&(oe(f,p),f.dataset.placeholder=""),oe(f,t.highlighted?u:d),n){t.disabled&&se(f,d),f.dataset.deletable="";var g=document.createElement("button");g.type="button",oe(g,c),ee(g,!0,G(s,t.value));var v=G(r,t.value);v&&g.setAttribute("aria-label",v),g.dataset.button="",o?f.insertAdjacentElement("afterbegin",g):f.appendChild(g)}return f},choiceList:function(e,t){var n=e.classNames.list,i=document.createElement("div");return oe(i,n),t||i.setAttribute("aria-multiselectable","true"),i.setAttribute("role","listbox"),i},choiceGroup:function(e,t){var n=e.allowHTML,i=e.classNames,o=i.group,s=i.groupHeading,r=i.itemDisabled,a=t.id,l=t.label,c=t.disabled,u=Y(l),d=document.createElement("div");oe(d,o),c&&oe(d,r),d.setAttribute("role","group"),d.dataset.group="",d.dataset.id=a,d.dataset.value=u,c&&d.setAttribute("aria-disabled","true");var p=document.createElement("div");return oe(p,s),ee(p,n,l||""),d.appendChild(p),d},choice:function(e,t,n,i){var o=e.allowHTML,s=e.classNames,r=s.item,a=s.itemChoice,l=s.itemSelectable,c=s.selectedState,u=s.itemDisabled,d=s.description,p=s.placeholder,h=t.label,f=Y(t.value),m=document.createElement("div");m.id=t.elementId,oe(m,r),oe(m,a),i&&"string"==typeof h&&(h=Z(o,h),h={trusted:h+=" (".concat(i,")")});var g=m;if(t.labelClass){var v=document.createElement("span");ee(v,o,h),oe(v,t.labelClass),g=v,m.appendChild(v)}else ee(m,o,h);if(t.labelDescription){var b="".concat(t.elementId,"-description");g.setAttribute("aria-describedby",b);var y=document.createElement("span");ee(y,o,t.labelDescription),y.id=b,oe(y,d),m.appendChild(y)}return t.selected&&oe(m,c),t.placeholder&&oe(m,p),m.setAttribute("role",t.group?"treeitem":"option"),m.dataset.choice="",m.dataset.id=t.id,m.dataset.value=f,n&&(m.dataset.selectText=n),t.group&&(m.dataset.groupId="".concat(t.group.id)),wt(m,t,!1),t.disabled?(oe(m,u),m.dataset.choiceDisabled="",m.setAttribute("aria-disabled","true")):(oe(m,l),m.dataset.choiceSelectable=""),m},input:function(e,t){var n=e.classNames,i=n.input,o=n.inputCloned,s=e.labelId,r=document.createElement("input");return r.type="search",oe(r,i),oe(r,o),r.autocomplete="off",r.autocapitalize="off",r.spellcheck=!1,r.setAttribute("aria-autocomplete","list"),t?r.setAttribute("aria-label",t):s||jt(this._docRoot,this.passedElement.element.id,r),r},dropdown:function(e){var t=e.classNames,n=t.list,i=t.listDropdown,o=document.createElement("div");return oe(o,n),oe(o,i),o.setAttribute("aria-expanded","false"),o},notice:function(e,t,n){var i=e.classNames,o=i.item,s=i.itemChoice,r=i.addChoice,a=i.noResults,l=i.noChoices,c=i.notice;void 0===n&&(n=Se);var u=document.createElement("div");switch(ee(u,!0,t),oe(u,o),oe(u,s),oe(u,c),n){case Ee:oe(u,r);break;case xe:oe(u,a);break;case _e:oe(u,l)}return n===Ee&&(u.dataset.choiceSelectable="",u.dataset.choice=""),u},option:function(e){var t=Y(e.label),n=new Option(t,e.value,!1,e.selected);return wt(n,e,!0),n.disabled=e.disabled,e.selected&&n.setAttribute("selected",""),n}},xt="-ms-scroll-limit"in document.documentElement.style&&"-ms-ime-align"in document.documentElement.style,Et={},St=function(e){if(e)return e.dataset.id?parseInt(e.dataset.id,10):void 0},Ot="[data-choice-selectable]",Ct=function(){function e(t,n){void 0===t&&(t="[data-choice]"),void 0===n&&(n={});var i=this;this.initialisedOK=void 0,this._hasNonChoicePlaceholder=!1,this._lastAddedChoiceId=0,this._lastAddedGroupId=0;var o=e.defaults;this.config=s(s(s({},o.allOptions),o.options),n),F.forEach(function(e){i.config[e]=s(s(s({},o.allOptions[e]),o.options[e]),n[e])});var r=this.config;r.silent||this._validateConfig();var a=r.shadowRoot||document.documentElement;this._docRoot=a;var l="string"==typeof t?a.querySelector(t):t;if(!l||"object"!=typeof l||"INPUT"!==l.tagName&&!ge(l)){if(!l&&"string"==typeof t)throw TypeError("Selector ".concat(t," failed to find an element"));throw TypeError("Expected one of the following types text|select-one|select-multiple")}var c=l.type,u=c===$;(u||1!==r.maxItemCount)&&(r.singleModeForMultiSelect=!1),r.singleModeForMultiSelect&&(c=V);var d=c===B,p=c===V,h=d||p;if(this._elementType=c,this._isTextElement=u,this._isSelectOneElement=d,this._isSelectMultipleElement=p,this._isSelectElement=d||p,this._canAddUserChoices=u&&r.addItems||h&&r.addChoices,"boolean"!=typeof r.renderSelectedChoices&&(r.renderSelectedChoices="always"===r.renderSelectedChoices||d),"auto"===r.closeDropdownOnSelect?r.closeDropdownOnSelect=u||d||r.singleModeForMultiSelect:r.closeDropdownOnSelect=he(r.closeDropdownOnSelect),r.placeholder&&(r.placeholderValue?this._hasNonChoicePlaceholder=!0:l.dataset.placeholder&&(this._hasNonChoicePlaceholder=!0,r.placeholderValue=l.dataset.placeholder)),n.addItemFilter&&"function"!=typeof n.addItemFilter){var f=n.addItemFilter instanceof RegExp?n.addItemFilter:new RegExp(n.addItemFilter);r.addItemFilter=f.test.bind(f)}if(this._isTextElement)this.passedElement=new pe({element:l,classNames:r.classNames});else{var m=l;this.passedElement=new ve({element:m,classNames:r.classNames,template:function(e){return i._templates.option(e)},extractPlaceholder:r.placeholder&&!this._hasNonChoicePlaceholder})}if(this.initialised=!1,this._store=new je(r),this._currentValue="",r.searchEnabled=!u&&r.searchEnabled||p,this._canSearch=r.searchEnabled,this._isScrollingOnIe=!1,this._highlightPosition=0,this._wasTap=!0,this._placeholderValue=this._generatePlaceholderValue(),this._baseId=function(e,t){var n=e.id||e.name&&"".concat(e.name,"-").concat(W(2))||W(4);return n=n.replace(/(:|\.|\[|\]|,)/g,""),"".concat(t,"-").concat(n)}(l,"choices-"),this._direction=l.dir,!this._direction){var g=window.getComputedStyle(l).direction;g!==window.getComputedStyle(document.documentElement).direction&&(this._direction=g)}if(this._idNames={itemChoice:"item-choice"},this._templates=o.templates,this._render=this._render.bind(this),this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this),this._onKeyUp=this._onKeyUp.bind(this),this._onKeyDown=this._onKeyDown.bind(this),this._onInput=this._onInput.bind(this),this._onClick=this._onClick.bind(this),this._onTouchMove=this._onTouchMove.bind(this),this._onTouchEnd=this._onTouchEnd.bind(this),this._onMouseDown=this._onMouseDown.bind(this),this._onMouseOver=this._onMouseOver.bind(this),this._onFormReset=this._onFormReset.bind(this),this._onSelectKey=this._onSelectKey.bind(this),this._onEnterKey=this._onEnterKey.bind(this),this._onEscapeKey=this._onEscapeKey.bind(this),this._onDirectionKey=this._onDirectionKey.bind(this),this._onDeleteKey=this._onDeleteKey.bind(this),this.passedElement.isActive)return r.silent||console.warn("Trying to initialise Choices on element already initialised",{element:t}),this.initialised=!0,void(this.initialisedOK=!1);this.init(),this._initialItems=this._store.items.map(function(e){return e.value})}return Object.defineProperty(e,"defaults",{get:function(){return Object.preventExtensions({get options(){return Et},get allOptions(){return be},get templates(){return _t}})},enumerable:!1,configurable:!0}),e.prototype.init=function(){if(!this.initialised&&void 0===this.initialisedOK){var e;this._searcher=(e=this.config,new yt(e)),this._loadChoices(),this._createTemplates(),this._createElements(),this._createStructure(),this._isTextElement&&!this.config.addItems||this.passedElement.element.hasAttribute("disabled")||this.passedElement.element.closest("fieldset:disabled")?this.disable():(this.enable(),this._addEventListeners()),this._initStore(),this.initialised=!0,this.initialisedOK=!0;var t=this.config.callbackOnInit;"function"==typeof t&&t.call(this)}},e.prototype.destroy=function(){this.initialised&&(this._removeEventListeners(),this.passedElement.reveal(),this.containerOuter.unwrap(this.passedElement.element),this._store._listeners=[],this.clearStore(!1),this._stopSearch(),this._templates=e.defaults.templates,this.initialised=!1,this.initialisedOK=void 0)},e.prototype.enable=function(){return this.passedElement.isDisabled&&this.passedElement.enable(),this.containerOuter.isDisabled&&(this._addEventListeners(),this.input.enable(),this.containerOuter.enable()),this},e.prototype.disable=function(){return this.passedElement.isDisabled||this.passedElement.disable(),this.containerOuter.isDisabled||(this._removeEventListeners(),this.input.disable(),this.containerOuter.disable()),this},e.prototype.highlightItem=function(e,t){if(void 0===t&&(t=!0),!e||!e.id)return this;var n=this._store.items.find(function(t){return t.id===e.id});return!n||n.highlighted||(this._store.dispatch(z(n,!0)),t&&this.passedElement.triggerEvent(E,this._getChoiceForOutput(n))),this},e.prototype.unhighlightItem=function(e,t){if(void 0===t&&(t=!0),!e||!e.id)return this;var n=this._store.items.find(function(t){return t.id===e.id});return n&&n.highlighted?(this._store.dispatch(z(n,!1)),t&&this.passedElement.triggerEvent(O,this._getChoiceForOutput(n)),this):this},e.prototype.highlightAll=function(){var e=this;return this._store.withTxn(function(){e._store.items.forEach(function(t){t.highlighted||(e._store.dispatch(z(t,!0)),e.passedElement.triggerEvent(E,e._getChoiceForOutput(t)))})}),this},e.prototype.unhighlightAll=function(){var e=this;return this._store.withTxn(function(){e._store.items.forEach(function(t){t.highlighted&&(e._store.dispatch(z(t,!1)),e.passedElement.triggerEvent(E,e._getChoiceForOutput(t)))})}),this},e.prototype.removeActiveItemsByValue=function(e){var t=this;return this._store.withTxn(function(){t._store.items.filter(function(t){return t.value===e}).forEach(function(e){return t._removeItem(e)})}),this},e.prototype.removeActiveItems=function(e){var t=this;return this._store.withTxn(function(){t._store.items.filter(function(t){return t.id!==e}).forEach(function(e){return t._removeItem(e)})}),this},e.prototype.removeHighlightedItems=function(e){var t=this;return void 0===e&&(e=!1),this._store.withTxn(function(){t._store.highlightedActiveItems.forEach(function(n){t._removeItem(n),e&&t._triggerChange(n.value)})}),this},e.prototype.showDropdown=function(e){var t=this;return this.dropdown.isActive||(void 0===e&&(e=!this._canSearch),requestAnimationFrame(function(){t.dropdown.show();var n=t.dropdown.element.getBoundingClientRect();t.containerOuter.open(n.bottom,n.height),e||t.input.focus(),t.passedElement.triggerEvent(v)})),this},e.prototype.hideDropdown=function(e){var t=this;return this.dropdown.isActive?(requestAnimationFrame(function(){t.dropdown.hide(),t.containerOuter.close(),!e&&t._canSearch&&(t.input.removeActiveDescendant(),t.input.blur()),t.passedElement.triggerEvent(b)}),this):this},e.prototype.getValue=function(e){var t=this,n=this._store.items.map(function(n){return e?n.value:t._getChoiceForOutput(n)});return this._isSelectOneElement||this.config.singleModeForMultiSelect?n[0]:n},e.prototype.setValue=function(e){var t=this;return this.initialisedOK?(this._store.withTxn(function(){e.forEach(function(e){e&&t._addChoice(me(e,!1))})}),this._searcher.reset(),this):(this._warnChoicesInitFailed("setValue"),this)},e.prototype.setChoiceByValue=function(e){var t=this;return this.initialisedOK?(this._isTextElement||(this._store.withTxn(function(){(Array.isArray(e)?e:[e]).forEach(function(e){return t._findAndSelectChoiceByValue(e)}),t.unhighlightAll()}),this._searcher.reset()),this):(this._warnChoicesInitFailed("setChoiceByValue"),this)},e.prototype.setChoices=function(e,t,n,i,o,r){var a=this;if(void 0===e&&(e=[]),void 0===t&&(t="value"),void 0===n&&(n="label"),void 0===i&&(i=!1),void 0===o&&(o=!0),void 0===r&&(r=!1),!this.initialisedOK)return this._warnChoicesInitFailed("setChoices"),this;if(!this._isSelectElement)throw new TypeError("setChoices can't be used with INPUT based Choices");if("string"!=typeof t||!t)throw new TypeError("value parameter must be a name of 'value' field in passed objects");if("function"==typeof e){var l=e(this);if("function"==typeof Promise&&l instanceof Promise)return new Promise(function(e){return requestAnimationFrame(e)}).then(function(){return a._handleLoadingState(!0)}).then(function(){return l}).then(function(e){return a.setChoices(e,t,n,i,o,r)}).catch(function(e){a.config.silent||console.error(e)}).then(function(){return a._handleLoadingState(!1)}).then(function(){return a});if(!Array.isArray(l))throw new TypeError(".setChoices first argument function must return either array of choices or Promise, got: ".concat(typeof l));return this.setChoices(l,t,n,!1)}if(!Array.isArray(e))throw new TypeError(".setChoices must be called either with array of choices with a function resulting into Promise of array of choices");return this.containerOuter.removeLoadingState(),this._store.withTxn(function(){o&&(a._isSearching=!1),i&&a.clearChoices(!0,r);var l="value"===t,c="label"===n;e.forEach(function(e){if("choices"in e){var i=e;c||(i=s(s({},i),{label:i[n]})),a._addGroup(me(i,!0))}else{var o=e;c&&l||(o=s(s({},o),{value:o[t],label:o[n]}));var r=me(o,!1);a._addChoice(r),r.placeholder&&!a._hasNonChoicePlaceholder&&(a._placeholderValue=Q(r.label))}}),a.unhighlightAll()}),this._searcher.reset(),this},e.prototype.refresh=function(e,t,n){var i=this;return void 0===e&&(e=!1),void 0===t&&(t=!1),void 0===n&&(n=!1),this._isSelectElement?(this._store.withTxn(function(){var o=i.passedElement.optionsAsChoices(),s={};n||i._store.items.forEach(function(e){e.id&&e.active&&e.selected&&(s[e.value]=!0)}),i.clearStore(!1);var r=function(e){n?i._store.dispatch(q(e)):s[e.value]&&(e.selected=!0)};o.forEach(function(e){"choices"in e?e.choices.forEach(r):r(e)}),i._addPredefinedChoices(o,t,e),i._isSearching&&i._searchChoices(i.input.value)}),this):(this.config.silent||console.warn("refresh method can only be used on choices backed by a <select> element"),this)},e.prototype.removeChoice=function(e){var t=this._store.choices.find(function(t){return t.value===e});return t?(this._clearNotice(),this._store.dispatch(function(e){return{type:c,choice:e}}(t)),this._searcher.reset(),t.selected&&this.passedElement.triggerEvent(x,this._getChoiceForOutput(t)),this):this},e.prototype.clearChoices=function(e,t){var n=this;return void 0===e&&(e=!0),void 0===t&&(t=!1),e&&(t?this.passedElement.element.replaceChildren(""):this.passedElement.element.querySelectorAll(":not([selected])").forEach(function(e){e.remove()})),this.itemList.element.replaceChildren(""),this.choiceList.element.replaceChildren(""),this._clearNotice(),this._store.withTxn(function(){var e=t?[]:n._store.items;n._store.reset(),e.forEach(function(e){n._store.dispatch(H(e)),n._store.dispatch(U(e))})}),this._searcher.reset(),this},e.prototype.clearStore=function(e){return void 0===e&&(e=!0),this.clearChoices(e,!0),this._stopSearch(),this._lastAddedChoiceId=0,this._lastAddedGroupId=0,this},e.prototype.clearInput=function(){var e=!this._isSelectOneElement;return this.input.clear(e),this._stopSearch(),this},e.prototype._validateConfig=function(){var e,t,n,i,o=this.config,s=(e=o,t=be,n=Object.keys(e).sort(),i=Object.keys(t).sort(),n.filter(function(e){return i.indexOf(e)<0}));s.length&&console.warn("Unknown config option(s) passed",s.join(", ")),o.allowHTML&&o.allowHtmlUserInput&&(o.addItems&&console.warn("Warning: allowHTML/allowHtmlUserInput/addItems all being true is strongly not recommended and may lead to XSS attacks"),o.addChoices&&console.warn("Warning: allowHTML/allowHtmlUserInput/addChoices all being true is strongly not recommended and may lead to XSS attacks"))},e.prototype._render=function(e){void 0===e&&(e={choices:!0,groups:!0,items:!0}),this._store.inTxn()||(this._isSelectElement&&(e.choices||e.groups)&&this._renderChoices(),e.items&&this._renderItems())},e.prototype._renderChoices=function(){var e=this;if(this._canAddItems()){var t=this.config,n=this._isSearching,i=this._store,o=i.activeGroups,s=i.activeChoices,r=0;if(n&&t.searchResultLimit>0?r=t.searchResultLimit:t.renderChoiceLimit>0&&(r=t.renderChoiceLimit),this._isSelectElement){var a=s.filter(function(e){return!e.element});a.length&&this.passedElement.addOptions(a)}var l=document.createDocumentFragment(),c=function(e){return e.filter(function(e){return!e.placeholder&&(n?!!e.rank:t.renderSelectedChoices||!e.selected)})},u=!1,d=function(i,o,s){n?i.sort(te):t.shouldSort&&i.sort(t.sorter);var a=i.length;a=!o&&r&&a>r?r:a,a--,i.every(function(i,o){var r=i.choiceEl||e._templates.choice(t,i,t.itemSelectText,s);return i.choiceEl=r,l.appendChild(r),!n&&i.selected||(u=!0),o<a})};s.length&&(t.resetScrollPosition&&requestAnimationFrame(function(){return e.choiceList.scrollToTop()}),this._hasNonChoicePlaceholder||n||!this._isSelectOneElement||d(s.filter(function(e){return e.placeholder&&!e.group}),!1,void 0),o.length&&!n?(t.shouldSort&&o.sort(t.sorter),d(s.filter(function(e){return!e.placeholder&&!e.group}),!1,void 0),o.forEach(function(i){var o=c(i.choices);if(o.length){if(i.label){var s=i.groupEl||e._templates.choiceGroup(e.config,i);i.groupEl=s,s.remove(),l.appendChild(s)}d(o,!0,t.appendGroupInSearch&&n?i.label:void 0)}})):d(c(s),!1,void 0)),u||!n&&l.children.length&&t.renderSelectedChoices||(this._notice||(this._notice={text:J(n?t.noResultsText:t.noChoicesText),type:n?xe:_e}),l.replaceChildren("")),this._renderNotice(l),this.choiceList.element.replaceChildren(l),u&&this._highlightChoice()}},e.prototype._renderItems=function(){var e=this,t=this._store.items||[],n=this.itemList.element,i=this.config,o=document.createDocumentFragment(),s=function(e){return n.querySelector('[data-item][data-id="'.concat(e.id,'"]'))},r=function(t){var n=t.itemEl;n&&n.parentElement||(n=s(t)||e._templates.item(i,t,i.removeItemButton),t.itemEl=n,o.appendChild(n))};t.forEach(r);var a=!!o.childNodes.length;if(this._isSelectOneElement){var l=n.children.length;if(a||l>1){var c=n.querySelector(ie(i.classNames.placeholder));c&&c.remove()}else a||l||!this._placeholderValue||(a=!0,r(me({selected:!0,value:"",label:this._placeholderValue,placeholder:!0},!1)))}a&&(n.append(o),i.shouldSortItems&&!this._isSelectOneElement&&(t.sort(i.sorter),t.forEach(function(e){var t=s(e);t&&(t.remove(),o.append(t))}),n.append(o))),this._isTextElement&&(this.passedElement.value=t.map(function(e){return e.value}).join(i.delimiter))},e.prototype._displayNotice=function(e,t,n){void 0===n&&(n=!0);var i=this._notice;i&&(i.type===t&&i.text===e||i.type===Ee&&(t===xe||t===_e))?n&&this.showDropdown(!0):(this._clearNotice(),this._notice=e?{text:e,type:t}:void 0,this._renderNotice(),n&&e&&this.showDropdown(!0))},e.prototype._clearNotice=function(){if(this._notice){var e=this.choiceList.element.querySelector(ie(this.config.classNames.notice));e&&e.remove(),this._notice=void 0}},e.prototype._renderNotice=function(e){var t=this._notice;if(t){var n=this._templates.notice(this.config,t.text,t.type);e?e.append(n):this.choiceList.prepend(n)}},e.prototype._getChoiceForOutput=function(e,t){return{id:e.id,highlighted:e.highlighted,labelClass:e.labelClass,labelDescription:e.labelDescription,customProperties:e.customProperties,disabled:e.disabled,active:e.active,label:e.label,placeholder:e.placeholder,value:e.value,groupValue:e.group?e.group.label:void 0,element:e.element,keyCode:t}},e.prototype._triggerChange=function(e){null!=e&&this.passedElement.triggerEvent(y,{value:e})},e.prototype._handleButtonAction=function(e){var t=this,n=this._store.items;if(n.length&&this.config.removeItems&&this.config.removeItemButton){var i=e&&St(e.parentElement),o=i&&n.find(function(e){return e.id===i});o&&this._store.withTxn(function(){if(t._removeItem(o),t._triggerChange(o.value),t._isSelectOneElement&&!t._hasNonChoicePlaceholder){var e=(t.config.shouldSort?t._store.choices.reverse():t._store.choices).find(function(e){return e.placeholder});e&&(t._addItem(e),t.unhighlightAll(),e.value&&t._triggerChange(e.value))}})}},e.prototype._handleItemAction=function(e,t){var n=this;void 0===t&&(t=!1);var i=this._store.items;if(i.length&&this.config.removeItems&&!this._isSelectOneElement){var o=St(e);o&&(i.forEach(function(e){e.id!==o||e.highlighted?!t&&e.highlighted&&n.unhighlightItem(e):n.highlightItem(e)}),this.input.focus())}},e.prototype._handleChoiceAction=function(e){var t=this,n=St(e),i=n&&this._store.getChoiceById(n);if(!i||i.disabled)return!1;var o=this.dropdown.isActive;if(!i.selected){if(!this._canAddItems())return!0;this._store.withTxn(function(){t._addItem(i,!0,!0),t.clearInput(),t.unhighlightAll()}),this._triggerChange(i.value)}return o&&this.config.closeDropdownOnSelect&&(this.hideDropdown(!0),this.containerOuter.element.focus()),!0},e.prototype._handleBackspace=function(e){var t=this.config;if(t.removeItems&&e.length){var n=e[e.length-1],i=e.some(function(e){return e.highlighted});t.editItems&&!i&&n?(this.input.value=n.value,this.input.setWidth(),this._removeItem(n),this._triggerChange(n.value)):(i||this.highlightItem(n,!1),this.removeHighlightedItems(!0))}},e.prototype._loadChoices=function(){var e,t=this,n=this.config;if(this._isTextElement){if(this._presetChoices=n.items.map(function(e){return me(e,!1)}),this.passedElement.value){var i=this.passedElement.value.split(n.delimiter).map(function(e){return me(e,!1,t.config.allowHtmlUserInput)});this._presetChoices=this._presetChoices.concat(i)}this._presetChoices.forEach(function(e){e.selected=!0})}else if(this._isSelectElement){this._presetChoices=n.choices.map(function(e){return me(e,!0)});var o=this.passedElement.optionsAsChoices();o&&(e=this._presetChoices).push.apply(e,o)}},e.prototype._handleLoadingState=function(e){void 0===e&&(e=!0);var t=this.itemList.element;e?(this.disable(),this.containerOuter.addLoadingState(),this._isSelectOneElement?t.replaceChildren(this._templates.placeholder(this.config,this.config.loadingText)):this.input.placeholder=this.config.loadingText):(this.enable(),this.containerOuter.removeLoadingState(),this._isSelectOneElement?(t.replaceChildren(""),this._render()):this.input.placeholder=this._placeholderValue||"")},e.prototype._handleSearch=function(e){if(this.input.isFocussed)if(null!=e&&e.length>=this.config.searchFloor){var t=this.config.searchChoices?this._searchChoices(e):0;null!==t&&this.passedElement.triggerEvent(j,{value:e,resultCount:t})}else this._store.choices.some(function(e){return!e.active})&&this._stopSearch()},e.prototype._canAddItems=function(){var e=this.config,t=e.maxItemCount,n=e.maxItemText;return!e.singleModeForMultiSelect&&t>0&&t<=this._store.items.length?(this.choiceList.element.replaceChildren(""),this._notice=void 0,this._displayNotice("function"==typeof n?n(t):n,Ee),!1):(this._notice&&this._notice.type===Ee&&this._clearNotice(),!0)},e.prototype._canCreateItem=function(e){var t=this.config,n=!0,i="";if((n&&"function"==typeof t.addItemFilter&&!t.addItemFilter(e)&&(n=!1,i=G(t.customAddItemText,e)),n)&&this._store.choices.find(function(n){return t.valueComparer(n.value,e)})){if(this._isSelectElement)return this._displayNotice("",Ee),!1;t.duplicateItemsAllowed||(n=!1,i=G(t.uniqueItemText,e))}return n&&(i=G(t.addItemText,e)),i&&this._displayNotice(i,Ee),n},e.prototype._searchChoices=function(e){var t=e.trim().replace(/\s{2,}/," ");if(!t.length||t===this._currentValue)return null;var n=this._searcher;n.isEmptyIndex()&&n.index(this._store.searchableChoices);var i=n.search(t);this._currentValue=t,this._highlightPosition=0,this._isSearching=!0;var o=this._notice;return(o&&o.type)!==Ee&&(i.length?this._clearNotice():this._displayNotice(J(this.config.noResultsText),xe)),this._store.dispatch(function(e){return{type:u,results:e}}(i)),i.length},e.prototype._stopSearch=function(){this._isSearching&&(this._currentValue="",this._isSearching=!1,this._clearNotice(),this._store.dispatch({type:d,active:!0}),this.passedElement.triggerEvent(j,{value:"",resultCount:0}))},e.prototype._addEventListeners=function(){var e=this._docRoot,t=this.containerOuter.element,n=this.input.element;e.addEventListener("touchend",this._onTouchEnd,!0),t.addEventListener("keydown",this._onKeyDown,!0),t.addEventListener("mousedown",this._onMouseDown,!0),e.addEventListener("click",this._onClick,{passive:!0}),e.addEventListener("touchmove",this._onTouchMove,{passive:!0}),this.dropdown.element.addEventListener("mouseover",this._onMouseOver,{passive:!0}),this._isSelectOneElement&&(t.addEventListener("focus",this._onFocus,{passive:!0}),t.addEventListener("blur",this._onBlur,{passive:!0})),n.addEventListener("keyup",this._onKeyUp,{passive:!0}),n.addEventListener("input",this._onInput,{passive:!0}),n.addEventListener("focus",this._onFocus,{passive:!0}),n.addEventListener("blur",this._onBlur,{passive:!0}),n.form&&n.form.addEventListener("reset",this._onFormReset,{passive:!0}),this.input.addEventListeners()},e.prototype._removeEventListeners=function(){var e=this._docRoot,t=this.containerOuter.element,n=this.input.element;e.removeEventListener("touchend",this._onTouchEnd,!0),t.removeEventListener("keydown",this._onKeyDown,!0),t.removeEventListener("mousedown",this._onMouseDown,!0),e.removeEventListener("click",this._onClick),e.removeEventListener("touchmove",this._onTouchMove),this.dropdown.element.removeEventListener("mouseover",this._onMouseOver),this._isSelectOneElement&&(t.removeEventListener("focus",this._onFocus),t.removeEventListener("blur",this._onBlur)),n.removeEventListener("keyup",this._onKeyUp),n.removeEventListener("input",this._onInput),n.removeEventListener("focus",this._onFocus),n.removeEventListener("blur",this._onBlur),n.form&&n.form.removeEventListener("reset",this._onFormReset),this.input.removeEventListeners()},e.prototype._onKeyDown=function(e){var t=e.keyCode,n=this.dropdown.isActive,i=1===e.key.length||2===e.key.length&&e.key.charCodeAt(0)>=55296||"Unidentified"===e.key;switch(this._isTextElement||n||t===I||t===C||t===L||(this.showDropdown(),!this.input.isFocussed&&i&&(this.input.value+=e.key," "===e.key&&e.preventDefault())),t){case P:return this._onSelectKey(e,this.itemList.element.hasChildNodes());case T:return this._onEnterKey(e,n);case I:return this._onEscapeKey(e,n);case M:case D:case R:case N:return this._onDirectionKey(e,n);case A:case k:return this._onDeleteKey(e,this._store.items,this.input.isFocussed)}},e.prototype._onKeyUp=function(){this._canSearch=this.config.searchEnabled},e.prototype._onInput=function(){var e=this.input.value;e?this._canAddItems()&&(this._canSearch&&this._handleSearch(e),this._canAddUserChoices&&(this._canCreateItem(e),this._isSelectElement&&(this._highlightPosition=0,this._highlightChoice()))):this._isTextElement?this.hideDropdown(!0):this._stopSearch()},e.prototype._onSelectKey=function(e,t){(e.ctrlKey||e.metaKey)&&t&&(this._canSearch=!1,this.config.removeItems&&!this.input.value&&this.input.element===document.activeElement&&this.highlightAll())},e.prototype._onEnterKey=function(e,t){var n=this,i=this.input.value,o=e.target;if(e.preventDefault(),o&&o.hasAttribute("data-button"))this._handleButtonAction(o);else if(t){var s=this.dropdown.element.querySelector(ie(this.config.classNames.highlightedState));if(!s||!this._handleChoiceAction(s))if(o&&i){if(this._canAddItems()){var r=!1;this._store.withTxn(function(){if(!(r=n._findAndSelectChoiceByValue(i,!0))){if(!n._canAddUserChoices)return;if(!n._canCreateItem(i))return;n._addChoice(me(i,!1,n.config.allowHtmlUserInput),!0,!0),r=!0}n.clearInput(),n.unhighlightAll()}),r&&(this._triggerChange(i),this.config.closeDropdownOnSelect&&this.hideDropdown(!0))}}else this.hideDropdown(!0)}else(this._isSelectElement||this._notice)&&this.showDropdown()},e.prototype._onEscapeKey=function(e,t){t&&(e.stopPropagation(),this.hideDropdown(!0),this._stopSearch(),this.containerOuter.element.focus())},e.prototype._onDirectionKey=function(e,t){var n,i,o,s=e.keyCode;if(t||this._isSelectOneElement){this.showDropdown(),this._canSearch=!1;var r=s===R||s===N?1:-1,a=void 0;if(e.metaKey||s===N||s===D)a=r>0?this.dropdown.element.querySelector("".concat(Ot,":last-of-type")):this.dropdown.element.querySelector(Ot);else{var l=this.dropdown.element.querySelector(ie(this.config.classNames.highlightedState));a=l?function(e,t,n){void 0===n&&(n=1);for(var i="".concat(n>0?"next":"previous","ElementSibling"),o=e[i];o;){if(o.matches(t))return o;o=o[i]}return null}(l,Ot,r):this.dropdown.element.querySelector(Ot)}a&&(n=a,i=this.choiceList.element,void 0===(o=r)&&(o=1),(o>0?i.scrollTop+i.offsetHeight>=n.offsetTop+n.offsetHeight:n.offsetTop>=i.scrollTop)||this.choiceList.scrollToChildElement(a,r),this._highlightChoice(a)),e.preventDefault()}},e.prototype._onDeleteKey=function(e,t,n){this._isSelectOneElement||e.target.value||!n||(this._handleBackspace(t),e.preventDefault())},e.prototype._onTouchMove=function(){this._wasTap&&(this._wasTap=!1)},e.prototype._onTouchEnd=function(e){var t=(e||e.touches[0]).target;this._wasTap&&this.containerOuter.element.contains(t)&&((t===this.containerOuter.element||t===this.containerInner.element)&&(this._isTextElement?this.input.focus():this._isSelectMultipleElement&&this.showDropdown()),e.stopPropagation());this._wasTap=!0},e.prototype._onMouseDown=function(e){var t=e.target;if(t instanceof HTMLElement){if(xt&&this.choiceList.element.contains(t)){var n=this.choiceList.element.firstElementChild;this._isScrollingOnIe="ltr"===this._direction?e.offsetX>=n.offsetWidth:e.offsetX<n.offsetLeft}if(t!==this.input.element){var i=t.closest("[data-button],[data-item],[data-choice]");i instanceof HTMLElement&&("button"in i.dataset?this._handleButtonAction(i):"item"in i.dataset?this._handleItemAction(i,e.shiftKey):"choice"in i.dataset&&this._handleChoiceAction(i)),e.preventDefault()}}},e.prototype._onMouseOver=function(e){var t=e.target;t instanceof HTMLElement&&"choice"in t.dataset&&this._highlightChoice(t)},e.prototype._onClick=function(e){var t=e.target,n=this.containerOuter;n.element.contains(t)?this.dropdown.isActive||n.isDisabled?this._isSelectOneElement&&t!==this.input.element&&!this.dropdown.element.contains(t)&&this.hideDropdown():this._isTextElement?document.activeElement!==this.input.element&&this.input.focus():(this.showDropdown(),n.element.focus()):(n.removeFocusState(),this.hideDropdown(!0),this.unhighlightAll())},e.prototype._onFocus=function(e){var t=e.target,n=this.containerOuter;if(t&&n.element.contains(t)){var i=t===this.input.element;this._isTextElement?i&&n.addFocusState():this._isSelectMultipleElement?i&&(this.showDropdown(!0),n.addFocusState()):(n.addFocusState(),i&&this.showDropdown(!0))}},e.prototype._onBlur=function(e){var t=e.target,n=this.containerOuter;t&&n.element.contains(t)&&!this._isScrollingOnIe?t===this.input.element?(n.removeFocusState(),this.hideDropdown(!0),(this._isTextElement||this._isSelectMultipleElement)&&this.unhighlightAll()):t===this.containerOuter.element&&(n.removeFocusState(),this._canSearch||this.hideDropdown(!0)):(this._isScrollingOnIe=!1,this.input.element.focus())},e.prototype._onFormReset=function(){var e=this;this._store.withTxn(function(){e.clearInput(),e.hideDropdown(),e.refresh(!1,!1,!0),e._initialItems.length&&e.setChoiceByValue(e._initialItems)})},e.prototype._highlightChoice=function(e){void 0===e&&(e=null);var t=Array.from(this.dropdown.element.querySelectorAll(Ot));if(t.length){var n=e,i=this.config.classNames.highlightedState;Array.from(this.dropdown.element.querySelectorAll(ie(i))).forEach(function(e){se(e,i),e.setAttribute("aria-selected","false")}),n?this._highlightPosition=t.indexOf(n):(n=t.length>this._highlightPosition?t[this._highlightPosition]:t[t.length-1])||(n=t[0]),oe(n,i),n.setAttribute("aria-selected","true"),this.passedElement.triggerEvent(S,{el:n}),this.dropdown.isActive&&(this.input.setActiveDescendant(n.id),this.containerOuter.setActiveDescendant(n.id))}},e.prototype._addItem=function(e,t,n){if(void 0===t&&(t=!0),void 0===n&&(n=!1),!e.id)throw new TypeError("item.id must be set before _addItem is called for a choice/item");(this.config.singleModeForMultiSelect||this._isSelectOneElement)&&this.removeActiveItems(e.id),this._store.dispatch(U(e)),t&&(this.passedElement.triggerEvent(_,this._getChoiceForOutput(e)),n&&this.passedElement.triggerEvent(w,this._getChoiceForOutput(e)))},e.prototype._removeItem=function(e){if(e.id){this._store.dispatch(q(e));var t=this._notice;t&&t.type===_e&&this._clearNotice(),this.passedElement.triggerEvent(x,this._getChoiceForOutput(e))}},e.prototype._addChoice=function(e,t,n){if(void 0===t&&(t=!0),void 0===n&&(n=!1),e.id)throw new TypeError("Can not re-add a choice which has already been added");var i=this.config;if(i.duplicateItemsAllowed||!this._store.choices.find(function(t){return i.valueComparer(t.value,e.value)})){this._lastAddedChoiceId++,e.id=this._lastAddedChoiceId,e.elementId="".concat(this._baseId,"-").concat(this._idNames.itemChoice,"-").concat(e.id);
1var o=i.prependValue,s=i.appendValue;o&&(e.value=o+e.value),s&&(e.value+=s.toString()),(o||s)&&e.element&&(e.element.value=e.value),this._clearNotice(),this._store.dispatch(H(e)),e.selected&&this._addItem(e,t,n)}},e.prototype._addGroup=function(e,t){var n=this;if(void 0===t&&(t=!0),e.id)throw new TypeError("Can not re-add a group which has already been added");this._store.dispatch(function(e){return{type:h,group:e}}(e)),e.choices&&(this._lastAddedGroupId++,e.id=this._lastAddedGroupId,e.choices.forEach(function(i){i.group=e,e.disabled&&(i.disabled=!0),n._addChoice(i,t)}))},e.prototype._createTemplates=function(){var e=this,t=this.config.callbackOnCreateTemplates,n={};"function"==typeof t&&(n=t.call(this,X,Z,ne));var i={};Object.keys(this._templates).forEach(function(t){i[t]=t in n?n[t].bind(e):e._templates[t].bind(e)}),this._templates=i},e.prototype._createElements=function(){var e=this._templates,t=this.config,n=this._isSelectOneElement,i=t.position,o=t.classNames,s=this._elementType;this.containerOuter=new le({element:e.containerOuter(t,this._direction,this._isSelectElement,n,t.searchEnabled,s,t.labelId),classNames:o,type:s,position:i}),this.containerInner=new le({element:e.containerInner(t),classNames:o,type:s,position:i}),this.input=new ce({element:e.input(t,this._placeholderValue),classNames:o,type:s,preventPaste:!t.paste}),this.choiceList=new ue({element:e.choiceList(t,n)}),this.itemList=new ue({element:e.itemList(t,n)}),this.dropdown=new ae({element:e.dropdown(t),classNames:o,type:s})},e.prototype._createStructure=function(){var e=this,t=e.containerInner,n=e.containerOuter,i=e.passedElement,o=this.dropdown.element;i.conceal(),t.wrap(i.element),n.wrap(t.element),this._isSelectOneElement?this.input.placeholder=this.config.searchPlaceholderValue||"":(this._placeholderValue&&(this.input.placeholder=this._placeholderValue),this.input.setWidth()),n.element.appendChild(t.element),n.element.appendChild(o),t.element.appendChild(this.itemList.element),o.appendChild(this.choiceList.element),this._isSelectOneElement?this.config.searchEnabled&&o.insertBefore(this.input.element,o.firstChild):t.element.appendChild(this.input.element),this._highlightPosition=0,this._isSearching=!1},e.prototype._initStore=function(){var e=this;this._store.subscribe(this._render).withTxn(function(){e._addPredefinedChoices(e._presetChoices,e._isSelectOneElement&&!e._hasNonChoicePlaceholder,!1)}),(!this._store.choices.length||this._isSelectOneElement&&this._hasNonChoicePlaceholder)&&this._render()},e.prototype._addPredefinedChoices=function(e,t,n){var i=this;(void 0===t&&(t=!1),void 0===n&&(n=!0),t)&&(-1===e.findIndex(function(e){return e.selected})&&e.some(function(e){return!e.disabled&&!("choices"in e)&&(e.selected=!0,!0)}));e.forEach(function(e){"choices"in e?i._isSelectElement&&i._addGroup(e,n):i._addChoice(e,n)})},e.prototype._findAndSelectChoiceByValue=function(e,t){var n=this;void 0===t&&(t=!1);var i=this._store.choices.find(function(t){return n.config.valueComparer(t.value,e)});return!(!i||i.disabled||i.selected)&&(this._addItem(i,!0,t),!0)},e.prototype._generatePlaceholderValue=function(){var e=this.config;if(!e.placeholder)return null;if(this._hasNonChoicePlaceholder)return e.placeholderValue;if(this._isSelectElement){var t=this.passedElement.placeholderOption;return t?t.text:null}return null},e.prototype._warnChoicesInitFailed=function(e){if(!this.config.silent){if(!this.initialised)throw new TypeError("".concat(e," called on a non-initialised instance of Choices"));if(!this.initialisedOK)throw new TypeError("".concat(e," called for an element which has multiple instances of Choices initialised on it"))}},e.version="11.1.0",e}()},"./node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js"(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>j});const{slice:i,forEach:o}=[];const s=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,r={create(e,t,n,i){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{path:"/",sameSite:"strict"};n&&(o.expires=new Date,o.expires.setTime(o.expires.getTime()+60*n*1e3)),i&&(o.domain=i),document.cookie=function(e,t){const n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{path:"/"};let i=`${e}=${encodeURIComponent(t)}`;if(n.maxAge>0){const e=n.maxAge-0;if(Number.isNaN(e))throw new Error("maxAge should be a Number");i+=`; Max-Age=${Math.floor(e)}`}if(n.domain){if(!s.test(n.domain))throw new TypeError("option domain is invali
1d");i+=`; Domain=${n.domain}`}if(n.path){if(!s.test(n.path))throw new TypeError("option path is invalid");i+=`; Path=${n.path}`}if(n.expires){if("function"!=typeof n.expires.toUTCString)throw new TypeError("option expires is invalid");i+=`; Expires=${n.expires.toUTCString()}`}if(n.httpOnly&&(i+="; HttpOnly"),n.secure&&(i+="; Secure"),n.sameSite)switch("string"==typeof n.sameSite?n.sameSite.toLowerCase():n.sameSite){case!0:i+="; SameSite=Strict";break;case"lax":i+="; SameSite=Lax";break;case"strict":i+="; SameSite=Strict";break;case"none":i+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return i}(e,encodeURIComponent(t),o)},read(e){const t=`${e}=`,n=document.cookie.split(";");for(let e=0;e<n.length;e++){let i=n[e];for(;" "===i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(t))return i.substring(t.length,i.length)}return null},remove(e){this.create(e,"",-1)}};var a={name:"cookie",lookup(e){let{lookupCookie:t}=e;if(t&&"undefined"!=typeof document)return r.read(t)||void 0},cacheUserLanguage(e,t){let{lookupCookie:n,cookieMinutes:i,cookieDomain:o,cookieOptions:s}=t;n&&"undefined"!=typeof document&&r.create(n,e,i,o,s)}},l={name:"querystring",lookup(e){let t,{lookupQuerystring:n}=e;if("undefined"!=typeof window){let{search:e}=window.location;!window.location.search&&window.location.hash?.indexOf("?")>-1&&(e=window.location.hash.substring(window.location.hash.indexOf("?")));const i=e.substring(1).split("&");for(let e=0;e<i.length;e++){const o=i[e].indexOf("=");if(o>0){i[e].substring(0,o)===n&&(t=i[e].substring(o+1))}}}return t}};let c=null;const u=()=>{if(null!==c)return c;try{if(c="undefined"!=typeof window&&null!==window.localStorage,!c)return!1;const e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch(e){c=!1}return c};var d={name:"localStorage",lookup(e){let{lookupLocalStorage:t}=e;if(t&&u())return window.localStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupLocalStorage:n}=t;n&&u()&&window.localStorage.setItem(n,e)}};let p=null;const h=()=>{if(null!==p)return p;try{if(p="undefined"!=typeof window&&null!==window.sessionStorage,!p)return!1;const e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch(e){p=!1}return p};var f={name:"sessionStorage",lookup(e){let{lookupSessionStorage:t}=e;if(t&&h())return window.sessionStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupSessionStorage:n}=t;n&&h()&&window.sessionStorage.setItem(n,e)}},m={name:"navigator",lookup(e){const t=[];if("undefined"!=typeof navigator){const{languages:e,userLanguage:n,language:i}=navigator;if(e)for(let n=0;n<e.length;n++)t.push(e[n]);n&&t.push(n),i&&t.push(i)}return t.length>0?t:void 0}},g={name:"htmlTag",lookup(e){let t,{htmlTag:n}=e;const i=n||("undefined"!=typeof document?document.documentElement:null);return i&&"function"==typeof i.getAttribute&&(t=i.getAttribute("lang")),t}},v={name:"path",lookup(e){let{lookupFromPathIndex:t}=e;if("undefined"==typeof window)return;const n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(!Array.isArray(n))return;const i="number"==typeof t?t:0;return n[i]?.replace("/","")}},b={name:"subdomain",lookup(e){let{lookupFromSubdomainIndex:t}=e;const n="number"==typeof t?t+1:1,i="undefined"!=typeof window&&window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(i)return i[n]}};let y=!1;try{document.cookie,y=!0}catch(e){}const w=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];y||w.splice(1,1);class j{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(e,t)}init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{languageUtils:{}},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=e,this.options=function(e){return o.call(i.call(arguments,1),t=>{if(t)for(const n in t)void 0===e[n]&&(e[n]=t[n])}),e}(t,this.options||{},{order:w,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:e=>e}),"string"==typeof this.options.convertDetectedLanguage&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=e=>e.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=n,this.addDetector(a),this.addDetector(l),this.addDetector(d),this.addDetector(f),this.addDetector(m),this.addDetector(g),this.addDetector(v),this.addDetector(b)}addDetector(e){return this.detectors[e.name]=e,this}detect(){let e=arguments.length>
10&&void 0!==arguments[0]?arguments[0]:this.options.order,t=[];return e.forEach(e=>{if(this.detectors[e]){let n=this.detectors[e].lookup(this.options);n&&"string"==typeof n&&(n=[n]),n&&(t=t.concat(n))}}),t=t.map(e=>this.options.convertDetectedLanguage(e)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?t:t.length>0?t[0]:null}cacheUserLanguage(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.options.caches;t&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||t.forEach(t=>{this.detectors[t]&&this.detectors[t].cacheUserLanguage(e,this.options)}))}}j.type="languageDetector"},"./node_modules/i18next-http-backend/esm/index.js"(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>m});var i=n("./node_modules/i18next-http-backend/esm/utils.js"),o=n("./node_modules/i18next-http-backend/esm/request.js");function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach(function(t){c(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function l(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,u(i.key),i)}}function c(e,t,n){return(t=u(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e){var t=function(e,t){if("object"!=s(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=s(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==s(t)?t:t+""}var d,p,h,f=(d=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.services=t,this.options=n,this.allOptions=i,this.type="backend",this.init(t,n,i)},p=[{key:"init",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(this.services=e,this.options=a(a(a({},{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:function(e){return JSON.parse(e)},stringify:JSON.stringify,parsePayload:function(e,t,n){return c({},t,n||"")},parseLoadPayload:function(e,t){},request:o.default,reloadInterval:"undefined"==typeof window&&36e5,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}),this.options||{}),n),this.allOptions=i,this.services&&this.options.reloadInterval){var r=setInterval(function(){return t.reload()},this.options.reloadInterval);"object"===s(r)&&"function"==typeof r.unref&&r.unref()}}},{key:"readMulti",value:function(e,t,n){this._readAny(e,e,t,t,n)}},{key:"read",value:function(e,t,n){this._readAny([e],e,[t],t,n)}},{key:"_readAny",value:function(e,t,n,o,s){var r=this,a=this.options.loadPath;"function"==typeof this.options.loadPath&&(a=this.options.loadPath(e,n)),(a=(0,i.makePromise)(a)).then(function(a){if(!a)return s(null,{});var l=(0,i.interpolateUrl)(a,{lng:e.join("+"),ns:n.join("+")});if(null==l){var c=e.map(i.sanitizeLogValue).join(", "),u=n.map(i.sanitizeLogValue).join(", ");return s(new Error("i18next-http-backend: unsafe lng/ns value — refusing to build request URL for languages=["+c+"] namespaces=["+u+"]"),!1)}r.loadUrl(l,s,t,o)})}},{key:"loadUrl",value:function(e,t,n,o){var s=this,r="string"==typeof n?[n]:n,a="string"==typeof o?[o]:o,l=this.options.parseLoadPayload(r,a),c=(0,i.sanitizeLogValue)((0,i.redactUrlCredentials)(e));this.options.request(this.options,e,l,function(e,r){if(r&&(r.status>=500&&r.status<600||!r.status))return t("failed loading "+c+"; status code: "+r.status,!0);if(r&&r.status>=400&&r.status<500)return t("failed loading "+c+"; status code: "+r.status,!1);if(!r&&e&&e.message){var a=e.message.toLowerCase();if(["failed","fetch","network","load"].find(function(e){return a.indexOf(e)>-1}))return t("failed loading "+c+": "+(0,i.sanitizeLogValue)(e.message),!0)}if(e)return t(e,!1);var l,u;try{l="string"==typeof r.data?s.options.parse(r.data,n,o):r.data}catch(e){u="failed parsing "+c+" to json"}if(u)return t(u,!1);t(null,l)})}},{key:"create",value:function(e,t,n,o,s){var r=this;if(this.options.addPath){"string"==typeof e&&(e=[e]);var a=this.options.parsePayload(t,n,o),l=0,c=[],u=[];e.forEach(function(n){var o=r.options.addPath;"function"==typeof r.options.addPath&&(o=r.options.addPath(n,t));var d=(0,i.interpolateUrl)(o,{lng:n,ns:t});if(null==d)return l+=1,void(s&&l===e.length&&s(c,u));r.options.request(r.options,d,a,function(t,n){l+=1,c.push(t),u.push(n),l===e.length&&"function"==typeof s&&s(c,u)})})}}},{key:"reload",value:function(){var e=this,t=this.services,n=t.backendConnector,i=t.languageUtils,o=t.logger,s=n.language;if(!s||"cimode"!==s.toLowerCase()){var r=[],a=function(e){i.toResolveHierarchy(e).forEach(function(e){r.indexOf(e)<0&&r.push(e)})};
1a(s),this.allOptions.preload&&this.allOptions.preload.forEach(function(e){return a(e)}),r.forEach(function(t){e.allOptions.ns.forEach(function(e){n.read(t,e,"read",null,null,function(i,s){i&&o.warn("loading namespace ".concat(e," for language ").concat(t," failed"),i),!i&&s&&o.log("loaded namespace ".concat(e," for language ").concat(t),s),n.loaded("".concat(t,"|").concat(e),i,s)})})})}}}],p&&l(d.prototype,p),h&&l(d,h),Object.defineProperty(d,"prototype",{writable:!1}),d);f.type="backend";const m=f},"./node_modules/i18next-http-backend/esm/request.js"(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>f});var i=n("./node_modules/i18next-http-backend/esm/utils.js");function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach(function(t){r(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function r(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=a(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==a(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}var l,c,u="function"==typeof fetch?fetch:void 0;if(void 0!==n.g&&n.g.fetch?u=n.g.fetch:"undefined"!=typeof window&&window.fetch&&(u=window.fetch),(0,i.hasXMLHttpRequest)()&&(void 0!==n.g&&n.g.XMLHttpRequest?l=n.g.XMLHttpRequest:"undefined"!=typeof window&&window.XMLHttpRequest&&(l=window.XMLHttpRequest)),"function"==typeof ActiveXObject&&(void 0!==n.g&&n.g.ActiveXObject?c=n.g.ActiveXObject:"undefined"!=typeof window&&window.ActiveXObject&&(c=window.ActiveXObject)),"function"!=typeof u&&(u=void 0),!u&&!l&&!c)try{Promise.resolve().then(()=>n.t("./node_modules/cross-fetch/dist/browser-ponyfill.js",19)).then(function(e){u=e.default}).catch(function(){})}catch(e){}var d=["__proto__","constructor","prototype"],p=function(e,t){if(t&&"object"===a(t)){for(var n="",i=0,o=Object.keys(t);i<o.length;i++){var s=o[i];d.indexOf(s)>-1||(n+="&"+encodeURIComponent(s)+"="+encodeURIComponent(t[s]))}if(!n)return e;e=e+(-1!==e.indexOf("?")?"&":"?")+n.slice(1)}return e},h=function(e,t,n,i){var o=function(e){if(!e.ok)return n(e.statusText||"Error",{status:e.status});e.text().then(function(t){n(null,{status:e.status,data:t})}).catch(n)};if(i){var s=i(e,t);if(s instanceof Promise)return void s.then(o).catch(n)}"function"==typeof fetch?fetch(e,t).then(o).catch(n):u(e,t).then(o).catch(n)};const f=function(e,t,o,r){return"function"==typeof o&&(r=o,o=void 0),r=r||function(){},u&&0!==t.indexOf("file:")?function(e,t,i,o){e.queryStringParams&&(t=p(t,e.queryStringParams));var r=s({},"function"==typeof e.customHeaders?e.customHeaders():e.customHeaders);"undefined"==typeof window&&void 0!==n.g&&void 0!==n.g.process&&n.g.process.versions&&n.g.process.versions.node&&(r["User-Agent"]="i18next-http-backend (node/".concat(n.g.process.version,"; ").concat(n.g.process.platform," ").concat(n.g.process.arch,")")),i&&(r["Content-Type"]="application/json");var a="function"==typeof e.requestOptions?e.requestOptions(i):e.requestOptions,l=s({method:i?"POST":"GET",body:i?e.stringify(i):void 0,headers:r},e._omitFetchOptions?{}:a),c="function"==typeof e.alternateFetch&&e.alternateFetch.length>=1?e.alternateFetch:void 0;try{h(t,l,o,c)}catch(n){if(!a||0===Object.keys(a).length||!n.message||n.message.indexOf("not implemented")<0)return o(n);
1try{Object.keys(a).forEach(function(e){delete l[e]}),h(t,l,o,c),e._omitFetchOptions=!0}catch(e){o(e)}}}(e,t,o,r):(0,i.hasXMLHttpRequest)()||"function"==typeof ActiveXObject?function(e,t,n,i){n&&"object"===a(n)&&(n=p("",n).slice(1)),e.queryStringParams&&(t=p(t,e.queryStringParams));try{var o=l?new l:new c("MSXML2.XMLHTTP.3.0");o.open(n?"POST":"GET",t,1),e.crossDomain||o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.withCredentials=!!e.withCredentials,n&&o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.overrideMimeType&&o.overrideMimeType("application/json");var s=e.customHeaders;if(s="function"==typeof s?s():s)for(var r=0,u=Object.keys(s);r<u.length;r++){var h=u[r];d.indexOf(h)>-1||o.setRequestHeader(h,s[h])}o.onreadystatechange=function(){o.readyState>3&&i(o.status>=400?o.statusText:null,{status:o.status,data:o.responseText})},o.send(n)}catch(e){console&&console.log(e)}}(e,t,o,r):void r(new Error("No fetch and no xhr implementation found!"))}},"./node_modules/i18next-http-backend/esm/utils.js"(e,t,n){"use strict";function i(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return o(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,s=function(){};return{s,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:s}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,r=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw r}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}n.r(t),n.d(t,{defaults:()=>u,hasXMLHttpRequest:()=>b,interpolate:()=>j,interpolateUrl:()=>_,isSafeLangUrlSegment:()=>p,isSafeNsUrlSegment:()=>h,isSafeUrlSegment:()=>f,makePromise:()=>y,redactUrlCredentials:()=>v,sanitizeLogValue:()=>g});var r=[],a=r.forEach,l=r.slice,c=["__proto__","constructor","prototype"];function u(e){return a.call(l.call(arguments,1),function(t){if(t)for(var n=0,i=Object.keys(t);n<i.length;n++){var o=i[n];c.indexOf(o)>-1||void 0===e[o]&&(e[o]=t[o])}}),e}function d(e){return"string"==typeof e&&(!(0===e.length||e.length>128)&&(!(c.indexOf(e)>-1)&&(!(e.indexOf("..")>-1)&&(!(e.indexOf("\\")>-1)&&(!/[?#%\s@]/.test(e)&&!/[\x00-\x1F\x7F]/.test(e))))))}function p(e){return!!d(e)&&!(e.indexOf("/")>-1)}function h(e){return d(e)}var f=p,m={lng:p,ns:h};function g(e){return"string"!=typeof e?e:e.replace(/[\r\n\x00-\x1F\x7F]/g," ")}function v(e){if("string"!=typeof e||0===e.length)return e;try{var t=new URL(e);return t.username||t.password?(t.username="",t.password="",t.toString()):e}catch(t){return e.replace(/(\/\/)[^/@\s]+@/g,"$1")}}function b(){return"function"==typeof XMLHttpRequest||"object"===("undefined"==typeof XMLHttpRequest?"undefined":s(XMLHttpRequest))}function y(e){return function(e){return!!e&&"function"==typeof e.then}(e)?e:Promise.resolve(e)}var w=/\{\{(.+?)\}\}/g;function j(e,t){return e.replace(w,function(e,n){var i=n.trim();if(c.indexOf(i)>-1)return e;var o=t[i];return null!=o?o:e})}function _(e,t){var n=!1,o=e.replace(w,function(e,o){var s=o.trim();if(c.indexOf(s)>-1)return e;var r=t[s];if(null==r)return e;var a,l=m[s]||p,u=String(r).split("+"),d=i(u);try{for(d.s();!(a=d.n()).done;){if(!l(a.value))return n=!0,e}}catch(e){d.e(e)}finally{d.f()}return u.join("+")});return n?null:o}},"./node_modules/i18next/dist/esm/i18next.js"(e,t,n){"use strict";n.r(t),n.d(t,{changeLanguage:()=>J,createInstance:()=>q,default:()=>U,dir:()=>z,exists:()=>Z,getFixedT:()=>Y,hasLoadedNamespace:()=>te,init:()=>W,loadLanguages:()=>ie,loadNamespaces:()=>ne,loadResources:()=>K,reloadResources:()=>X,setDefaultNamespace:()=>ee,t:()=>Q,use:()=>G});const i=e=>"string"==typeof e,o=()=>{let e,t;const n=new Promise((n,i)=>{e=n,t=i});return n.resolve=e,n.reject=t,n},s=e=>null==e?"":""+e,r=/###/g,a=e=>e&&e.indexOf("###")>-1?e.replace(r,"."):e,l=e=>!e||i(e),c=(e,t,n)=>{const o=i(t)?t.split("."):t;let s=0;for(;s<o.length-1;){if(l(e))return{};const t=a(o[s]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++s}return l(e)?{}:{obj:e,k:a(o[s])}}
vendor: 6,256 bytes, line 1
1,u=(e,t,n)=>{const{obj:i,k:o}=c(e,t,Object);if(void 0!==i||1===t.length)return void(i[o]=n);let s=t[t.length-1],r=t.slice(0,t.length-1),a=c(e,r,Object);for(;void 0===a.obj&&r.length;)s=`${r[r.length-1]}.${s}`,r=r.slice(0,r.length-1),a=c(e,r,Object),a?.obj&&void 0!==a.obj[`${a.k}.${s}`]&&(a.obj=void 0);a.obj[`${a.k}.${s}`]=n},d=(e,t)=>{const{obj:n,k:i}=c(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,i))return n[i]},p=(e,t,n)=>{for(const o in t)"__proto__"!==o&&"constructor"!==o&&(o in e?i(e[o])||e[o]instanceof String||i(t[o])||t[o]instanceof String?n&&(e[o]=t[o]):p(e[o],t[o],n):e[o]=t[o]);return e},h=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var f={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const m=e=>i(e)?e.replace(/[&<>"'\/]/g,e=>f[e]):e;const g=[" ",",","?","!",";"],v=new class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const t=this.regExpMap.get(e);if(void 0!==t)return t;const n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}}(20),b=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!e)return;if(e[t]){if(!Object.prototype.hasOwnProperty.call(e,t))return;return e[t]}const i=t.split(n);let o=e;for(let e=0;e<i.length;){if(!o||"object"!=typeof o)return;let t,s="";for(let r=e;r<i.length;++r)if(r!==e&&(s+=n),s+=i[r],t=o[s],void 0!==t){if(["string","number","boolean"].indexOf(typeof t)>-1&&r<i.length-1)continue;e+=r-e+1;break}o=t}return o},y=e=>e?.replace("_","-"),w={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console?.[e]?.apply?.(console,t)}};class j{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||w,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}warn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}error(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}deprecate(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,n,o){return o&&!this.debug?null:(i(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new j(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new j(this.logger,e)}}var _=new j;class x{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(e=>{this.observers[e]||(this.observers[e]=new Map);const n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){this.observers[e]&&(t?this.observers[e].delete(t):delete this.observers[e])}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];if(this.observers[e]){Array.from(this.observers[e].entries()).forEach(e=>{let[t,i]=e;for(let e=0;e<i;e++)t(...n)})}if(this.observers["*"]){Array.from(this.observers["*"].entries()).forEach(t=>{let[i,o]=t;for(let t=0;t<o;t++)i.apply(i,[e,...n])})}}}class E extends x{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const s=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator,r=void 0!==o.ignoreJSONStructure?o.ignoreJSONStructure:this.options.ignoreJSONStructure;let a;e.indexOf(".")>-1?a=e.split("."):(a=[e,t],n&&(Array.isArray(n)?a.push(...n):i(n)&&s?a.push(...n.split(s)):a.push(n)));const l=d(this.data,a);return!l&&!t&&!n&&e.indexOf(".")>-1&&(e=a[0],t=a[1],n=a.slice(2).join(".")),!l&&r&&i(n)?b(this.data?.[e]?.[t],n,s):l}addResource(e,t,n,i){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1};const s=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator;let r=[e,t];n&&(r=r.concat(s?n.split(s):n)),e.indexOf(".")>-1&&(r=e.split("."),i=t,t=r[1]),this.addNamespaces(t),u(this.data,r,i),o.silent||this.emit("added",e,t,n,i)}addResources(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(const o in n)(i(n[o])||Array.isArray(n[o]))&&this.addResource(e,t,o,n[o],{silent:!0});o.silent||this.emit("added",e,t,n)}addResourceBundle(e,t,n,i,o){let s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1,skipCopy:!1},r=[e,t];e.indexOf(".")>-1&&(r=e.split("."),i=n,n=t,t=r[1]),this.addNamespaces(t);let a=d(this.data,r)||{};s.skipCopy||(n=JSON.parse(JSON.stringify(n))),i?p(a,n,o):a={...a,...n},u(this.data,r,a),s.silent||this.emit("added",e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}}var S={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,i,o){return e.forEach(e=>{t=this.processors[e]?.process(t,n,i,o)??t}),t}};const O={},C=e=>!i(e)&&"boolean"!=typeof e&&"number"!=typeof e;class L extends x{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),((e,t,n)=>{e.forEach(e=>{t[e]&&(n[e]=t[e])})})(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","
1i18nFormat","utils"],e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=_.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;const n=this.resolve(e,t);return void 0!==n?.res}extractFromKey(e,t){let n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");const o=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator;let s=t.ns||this.options.defaultNS||[];const r=n&&e.indexOf(n)>-1,a=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||((e,t,n)=>{t=t||"",n=n||"";const i=g.filter(e=>t.indexOf(e)<0&&n.indexOf(e)<0);if(0===i.length)return!0;const o=v.getRegExp(`(${i.map(e=>"?"===e?"\\?":e).join("|")})`);let s=!o.test(e);if(!s){const t=e.indexOf(n);t>0&&!o.test(e.substring(0,t))&&(s=!0)}return s})(e,n,o));if(r&&!a){const t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:i(s)?[s]:s};const r=e.split(n);(n!==o||n===o&&this.options.ns.indexOf(r[0])>-1)&&(s=r.shift()),e=r.join(o)}return{key:e,namespaces:i(s)?[s]:s}}translate(e,t,n){if("object"!=typeof t&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof options&&(t={...t}),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);const o=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,s=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,{key:r,namespaces:a}=this.extractFromKey(e[e.length-1],t),l=a[a.length-1],c=t.lng||this.language,u=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if("cimode"===c?.toLowerCase()){if(u){const e=t.nsSeparator||this.options.nsSeparator;return o?{res:`${l}${e}${r}`,usedKey:r,exactUsedKey:r,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(t)}:`${l}${e}${r}`}return o?{res:r,usedKey:r,exactUsedKey:r,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(t)}:r}const d=this.resolve(e,t);let p=d?.res;const h=d?.usedKey||r,f=d?.exactUsedKey||r,m=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,g=!this.i18nFormat||this.i18nFormat.handleAsObject,v=void 0!==t.count&&!i(t.count),b=L.hasDefaultValue(t),y=v?this.pluralResolver.getSuffix(c,t.count,t):"",w=t.ordinal&&v?this.pluralResolver.getSuffix(c,t.count,{ordinal:!1}):"",j=v&&!t.ordinal&&0===t.count,_=j&&t[`defaultValue${this.options.pluralSeparator}zero`]||t[`defaultValue${y}`]||t[`defaultValue${w}`]||t.defaultValue;let x=p;g&&!p&&b&&(x=_);const E=C(x),S=Object.prototype.toString.apply(x);if(!(g&&x&&E&&["[object Number]","[object Function]","[object RegExp]"].indexOf(S)<0)||i(m)&&Array.isArray(x))if(g&&i(m)&&Array.isArray(p))p=p.join(m),p&&(p=this.extendTranslation(p,e,t,n));else{let i=!1,o=!1;!this.isValidLookup(p)&&b&&(i=!0,p=_),this.isValidLookup(p)||(o=!0,p=r);const a=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&o?void 0:p,u=b&&_!==p&&this.options.updateMissing;if(o||i||u){if(this.logger.log(u?"updateKey":"missingKey",c,l,r,u?_:p),s){const e=this.resolve(r,{...t,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[];const n=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&n&&n[0])for(let t=0;t<n.length;t++)e.push(n[t]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(t.lng||this.language):e.push(t.lng||this.language);const i=(e,n,i)=>{const o=b&&i!==p?i:a;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,n,o,u,t):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,l,n,o,u,t),this.emit("missingKey",e,l,n,p)};this.options.saveMissing&&(this.options.saveMissingPlurals&&v?e.forEach(e=>{const n=this.pluralResolver.getSuffixes(e,t);j&&t[`defaultValue${this.options.pluralSeparator}zero`]&&n.indexOf(`${this.options.pluralSeparator}zero`)<0&&n.push(`${this.options.pluralSeparator}
1zero`),n.forEach(n=>{i([e],r+n,t[`defaultValue${n}`]||_)})}):i(e,r,_))}p=this.extendTranslation(p,e,t,d,n),o&&p===r&&this.options.appendNamespaceToMissingKey&&(p=`${l}:${r}`),(o||i)&&this.options.parseMissingKeyHandler&&(p=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${r}`:r,i?p:void 0))}else{if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,x,{...t,ns:a}):`key '${r} (${this.language})' returned an object instead of string.`;return o?(d.res=e,d.usedParams=this.getUsedParamsDetails(t),d):e}if(s){const e=Array.isArray(x),n=e?[]:{},i=e?f:h;for(const e in x)if(Object.prototype.hasOwnProperty.call(x,e)){const o=`${i}${s}${e}`;n[e]=b&&!p?this.translate(o,{...t,defaultValue:C(_)?_[e]:void 0,joinArrays:!1,ns:a}):this.translate(o,{...t,joinArrays:!1,ns:a}),n[e]===o&&(n[e]=x[e])}p=n}}return o?(d.res=p,d.usedParams=this.getUsedParamsDetails(t),d):p}extendTranslation(e,t,n,o,s){var r=this;if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const a=i(e)&&(void 0!==n?.interpolation?.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let l;if(a){const t=e.match(this.interpolator.nestingRegexp);l=t&&t.length}let c=n.replace&&!i(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(c={...this.options.interpolation.defaultVariables,...c}),e=this.interpolator.interpolate(e,c,n.lng||this.language||o.usedLng,n),a){const t=e.match(this.interpolator.nestingRegexp);l<(t&&t.length)&&(n.nest=!1)}!n.lng&&o&&o.res&&(n.lng=this.language||o.usedLng),!1!==n.nest&&(e=this.interpolator.nest(e,function(){for(var e=arguments.length,i=new Array(e),o=0;o<e;o++)i[o]=arguments[o];return s?.[0]!==i[0]||n.context?r.translate(...i,t):(r.logger.warn(`It seems you are nesting recursively key: ${i[0]} in key: ${t[0]}`),null)},n)),n.interpolation&&this.interpolator.reset()}const a=n.postProcess||this.options.postProcess,l=i(a)?[a]:a;return null!=e&&l?.length&&!1!==n.applyPostProcessor&&(e=S.handle(l,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e){let t,n,o,s,r,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return i(e)&&(e=[e]),e.forEach(e=>{if(this.isValidLookup(t))return;const l=this.extractFromKey(e,a),c=l.key;n=c;let u=l.namespaces;this.options.fallbackNS&&(u=u.concat(this.options.fallbackNS));const d=void 0!==a.count&&!i(a.count),p=d&&!a.ordinal&&0===a.count,h=void 0!==a.context&&(i(a.context)||"number"==typeof a.context)&&""!==a.context,f=a.lngs?a.lngs:this.languageUtils.toResolveHierarchy(a.lng||this.language,a.fallbackLng);u.forEach(e=>{this.isValidLookup(t)||(r=e,O[`${f[0]}-${e}`]||!this.utils?.hasLoadedNamespace||this.utils?.hasLoadedNamespace(r)||(O[`${f[0]}-${e}`]=!0,this.logger.warn(`key "${n}" for languages "${f.join(", ")}" won't get resolved as namespace "${r}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),f.forEach(n=>{if(this.isValidLookup(t))return;s=n;const i=[c];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(i,c,n,e,a);else{let e;d&&(e=this.pluralResolver.getSuffix(n,a.count,a));const t=`${this.options.pluralSeparator}zero`,o=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(d&&(i.push(c+e),a.ordinal&&0===e.indexOf(o)&&i.push(c+e.replace(o,this.options.pluralSeparator)),p&&i.push(c+t)),h){const n=`${c}${this.options.contextSeparator}${a.context}`;i.push(n),d&&(i.push(n+e),a.ordinal&&0===e.indexOf(o)&&i.push(n+e.replace(o,this.options.pluralSeparator)),p&&i.push(n+t))}}let r;for(;r=i.pop();)this.isValidLookup(t)||(o=r,t=this.getResource(n,e,r,a))}))})}),{res:t,usedKey:n,exactUsedKey:o,usedLng:s,usedNS:r}}isValidLookup(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}getResource(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,n,i):this.resourceStore.getResource(e,t,n,i)}getUsedParamsDetails(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=e.replace&&!i(e.replace);let o=n?e.replace:e;if(n&&void 0!==e.count&&(o.count=e.count),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!n){o={...o};for(const e of t)delete o[e]}return o}static hasDefaultValue(e){const t="defaultValue";for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,12)&&void 0!==e[n])return!0;return!1}}class k{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=_.create("languageUtils")}getScriptPartFromCode(e){if(!(e=y(e))||e.indexOf("-")<0)return null;const t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}getLanguagePartFromCode(e){if(!(e=y(e))||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(i(e)&&e.indexOf("-")>-1){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch(e){}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;
vendor: 1,454 bytes, line 1
1return e.forEach(e=>{if(t)return;const n=this.formatLanguageCode(e);this.options.supportedLngs&&!this.isSupportedCode(n)||(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;const n=this.getScriptPartFromCode(e);if(this.isSupportedCode(n))return t=n;const i=this.getLanguagePartFromCode(e);if(this.isSupportedCode(i))return t=i;t=this.options.supportedLngs.find(e=>e===i?e:e.indexOf("-")<0&&i.indexOf("-")<0?void 0:e.indexOf("-")>0&&i.indexOf("-")<0&&e.substring(0,e.indexOf("-"))===i||0===e.indexOf(i)&&i.length>1?e:void 0)}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),i(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}toResolveHierarchy(e,t){const n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[],s=e=>{e&&(this.isSupportedCode(e)?o.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return i(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&s(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&s(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&s(this.getLanguagePartFromCode(e))):i(e)&&s(this.formatLanguageCode(e)),n.forEac
vendor: 4,309 bytes, line 1
1h(e=>{o.indexOf(e)<0&&s(this.formatLanguageCode(e))}),o}}const A={zero:0,one:1,two:2,few:3,many:4,other:5},T={select:e=>1===e?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class P{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=_.create("pluralResolver"),this.pluralRulesCache={}}addRule(e,t){this.rules[e]=t}clearCache(){this.pluralRulesCache={}}getRule(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=y("dev"===e?"en":e),i=t.ordinal?"ordinal":"cardinal",o=JSON.stringify({cleanedCode:n,type:i});if(o in this.pluralRulesCache)return this.pluralRulesCache[o];let s;try{s=new Intl.PluralRules(n,{type:i})}catch(n){if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),T;if(!e.match(/-|_/))return T;const i=this.languageUtils.getLanguagePartFromCode(e);s=this.getRule(i,t)}return this.pluralRulesCache[o]=s,s}needsPlural(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(e,t);return n||(n=this.getRule("dev",t)),n?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(e,t);return n||(n=this.getRule("dev",t)),n?n.resolvedOptions().pluralCategories.sort((e,t)=>A[e]-A[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):[]}getSuffix(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=this.getRule(e,n);return i?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${i.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",t,n))}}const I=function(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",s=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],r=((e,t,n)=>{const i=d(e,n);return void 0!==i?i:d(t,n)})(e,t,n);return!r&&s&&i(n)&&(r=b(e,n,o),void 0===r&&(r=b(t,n,o))),r},M=e=>e.replace(/\$/g,"$$$$");class R{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=_.create("interpolator"),this.options=e,this.format=e?.interpolation?.format||(e=>e),this.init(e)}init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const{escape:t,escapeValue:n,useRawValueToEscape:i,prefix:o,prefixEscaped:s,suffix:r,suffixEscaped:a,formatSeparator:l,unescapeSuffix:c,unescapePrefix:u,nestingPrefix:d,nestingPrefixEscaped:p,nestingSuffix:f,nestingSuffixEscaped:g,nestingOptionsSeparator:v,maxReplaces:b,alwaysFormat:y}=e.interpolation;this.escape=void 0!==t?t:m,this.escapeValue=void 0===n||n,this.useRawValueToEscape=void 0!==i&&i,this.prefix=o?h(o):s||"{{",this.suffix=r?h(r):a||"}}",this.formatSeparator=l||",",this.unescapePrefix=c?"":u||"-",this.unescapeSuffix=this.unescapePrefix?"":c||"",this.nestingPrefix=d?h(d):p||h("$t("),this.nestingSuffix=f?h(f):g||h(")"),this.nestingOptionsSeparator=v||",",this.maxReplaces=b||1e3,this.alwaysFormat=void 0!==y&&y,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(e,t)=>e?.source===t?(e.lastIndex=0,e):new RegExp(t,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,t,n,o){let r,a,l;const c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=e=>{if(e.indexOf(this.formatSeparator)<0){const i=I(t,c,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,n,{...o,...t,interpolationkey:e}):i}const i=e.split(this.formatSeparator),s=i.shift().trim(),r=i.join(this.formatSeparator).trim();return this.format(I(t,c,s,this.options.keySeparator,this.options.ignoreJSONStructure),r,n,{...o,...t,interpolationkey:s})};this.resetRegExp();const d=o?.missingInterpolationHandler||this.options.missingInterpolationHandler,p=void 0!==o?.interpolation?.ski
vendor: 4,741 bytes, line 1
1pOnVariables?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>M(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?M(this.escape(e)):M(e)}].forEach(t=>{for(l=0;r=t.regex.exec(e);){const n=r[1].trim();if(a=u(n),void 0===a)if("function"==typeof d){const t=d(e,r,o);a=i(t)?t:""}else if(o&&Object.prototype.hasOwnProperty.call(o,n))a="";else{if(p){a=r[0];continue}this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),a=""}else i(a)||this.useRawValueToEscape||(a=s(a));const c=t.safeValue(a);if(e=e.replace(r[0],c),p?(t.regex.lastIndex+=a.length,t.regex.lastIndex-=r[0].length):t.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),e}nest(e,t){let n,o,r,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const l=(e,t)=>{const n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;const i=e.split(new RegExp(`${n}[ ]*{`));let o=`{${i[1]}`;e=i[0],o=this.interpolate(o,r);const s=o.match(/'/g),a=o.match(/"/g);((s?.length??0)%2==0&&!a||a.length%2!=0)&&(o=o.replace(/'/g,'"'));try{r=JSON.parse(o),t&&(r={...t,...r})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${o}`}return r.defaultValue&&r.defaultValue.indexOf(this.prefix)>-1&&delete r.defaultValue,e};for(;n=this.nestingRegexp.exec(e);){let c=[];r={...a},r=r.replace&&!i(r.replace)?r.replace:r,r.applyPostProcessor=!1,delete r.defaultValue;let u=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){const e=n[1].split(this.formatSeparator).map(e=>e.trim());n[1]=e.shift(),c=e,u=!0}if(o=t(l.call(this,n[1].trim(),r),r),o&&n[0]===e&&!i(o))return o;i(o)||(o=s(o)),o||(this.logger.warn(`missed to resolve ${n[1]} for nesting ${e}`),o=""),u&&(o=c.reduce((e,t)=>this.format(e,t,a.lng,{...a,interpolationkey:n[1].trim()}),o.trim())),e=e.replace(n[0],o),this.regexp.lastIndex=0}return e}}const D=e=>{const t={};return(n,i,o)=>{let s=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(s={...s,[o.interpolationkey]:void 0});const r=i+JSON.stringify(s);let a=t[r];return a||(a=e(y(i),o),t[r]=a),a(n)}};class N{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=_.create("formatter"),this.options=e,this.formats={number:D((e,t)=>{const n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:D((e,t)=>{const n=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>n.format(e)}),datetime:D((e,t)=>{const n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:D((e,t)=>{const n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||"day")}),list:D((e,t)=>{const n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})},this.init(e)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};this.formatSeparator=t.interpolation.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=D(t)}format(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const o=t.split(this.formatSeparator);if(o.length>1&&o[0].indexOf("(")>1&&o[0].indexOf(")")<0&&o.find(e=>e.indexOf(")")>-1)){const e=o.findIndex(e=>e.indexOf(")")>-1);o[0]=[o[0],...o.splice(1,e)].join(this.formatSeparator)}return o.reduce((e,t)=>{const{formatName:o,formatOptions:s}=(e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const i=e.split("(");t=i[0].toLowerCase().trim();const o=i[1].substring(0,i[1].length-1);"currency"===t&&o.indexOf(":")<0?n.currency||(n.currency=o.trim()):"relativetime"===t&&o.indexOf(":")<0?n.range||(n.range=o.trim()):o.split(";").forEach(e=>{if(e){const[t,...i]=e.split(":"),o=i.join(":").trim().replace(/^'+|'+$/g,""),s=t.trim();n[s]||(n[s]=o),"false"===o&&(n[s]=!1),"true"===o&&(n[s]=!0),isNaN(o)||(n[s]=parseInt(o,10))}})}return{formatName:t,formatOptions:n}})(t);if(this.formats[o]){let t=e;try{const r=i?.formatParams?.[i.interpolationkey]||{},a=r.locale||r.lng||i.locale||i.lng||n;t=this.formats[o](e,a,{...s,...i,...r})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${o}`),e},e)}}class F extends x{constructor(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=i,this.logger=_.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(n,i.backend,i)}queueLoad(e,t,n,i){const o={},s={},r={},a={};
vendor: 4,635 bytes, line 1
1return e.forEach(e=>{let i=!0;t.forEach(t=>{const r=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[r]=2:this.state[r]<0||(1===this.state[r]?void 0===s[r]&&(s[r]=!0):(this.state[r]=1,i=!1,void 0===s[r]&&(s[r]=!0),void 0===o[r]&&(o[r]=!0),void 0===a[t]&&(a[t]=!0)))}),i||(r[e]=!0)}),(Object.keys(o).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(o),pending:Object.keys(s),toLoadLanguages:Object.keys(r),toLoadNamespaces:Object.keys(a)}}loaded(e,t,n){const i=e.split("|"),o=i[0],s=i[1];t&&this.emit("failedLoading",o,s,t),!t&&n&&this.store.addResourceBundle(o,s,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);const r={};this.queue.forEach(n=>{((e,t,n)=>{const{obj:i,k:o}=c(e,t,Object);i[o]=i[o]||[],i[o].push(n)})(n.loaded,[o],s),((e,t)=>{void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)})(n,e),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach(e=>{r[e]||(r[e]={});const t=n.loaded[e];t.length&&t.forEach(t=>{void 0===r[e][t]&&(r[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit("loaded",r),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,s=arguments.length>5?arguments[5]:void 0;if(!e.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:i,wait:o,callback:s});this.readingCalls++;const r=(r,a)=>{if(this.readingCalls--,this.waitingReads.length>0){const e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}r&&a&&i<this.maxRetries?setTimeout(()=>{this.read.call(this,e,t,n,i+1,2*o,s)},o):s(r,a)},a=this.backend[n].bind(this.backend);if(2!==a.length)return a(e,t,r);try{const n=a(e,t);n&&"function"==typeof n.then?n.then(e=>r(null,e)).catch(r):r(null,n)}catch(e){r(e)}}prepareLoading(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();i(e)&&(e=this.languageUtils.toResolveHierarchy(e)),i(t)&&(t=[t]);const s=this.queueLoad(e,t,n,o);if(!s.toLoad.length)return s.pending.length||o(),null;s.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=e.split("|"),i=n[0],o=n[1];this.read(i,o,"read",void 0,void 0,(n,s)=>{n&&this.logger.warn(`${t}loading namespace ${o} for language ${i} failed`,n),!n&&s&&this.logger.log(`${t}loaded namespace ${o} for language ${i}`,s),this.loaded(e,n,s)})}saveMissing(e,t,n,i,o){let s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},r=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if(!this.services?.utils?.hasLoadedNamespace||this.services?.utils?.hasLoadedNamespace(t)){if(null!=n&&""!==n){if(this.backend?.create){const a={...s,isUpdate:o},l=this.backend.create.bind(this.backend);if(l.length<6)try{let o;o=5===l.length?l(e,t,n,i,a):l(e,t,n,i),o&&"function"==typeof o.then?o.then(e=>r(null,e)).catch(r):r(null,o)}catch(e){r(e)}else l(e,t,n,i,r,a)}e&&e[0]&&this.store.addResource(e[0],t,n,i)}}else this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")}}const $=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if("object"==typeof e[1]&&(t=e[1]),i(e[1])&&(t.defaultValue=e[1]),i(e[2])&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){const n=e[3]||e[2];
vendor: 8,523 bytes, line 1
1Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),B=e=>(i(e.ns)&&(e.ns=[e.ns]),i(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),i(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs?.indexOf?.("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),"boolean"==typeof e.initImmediate&&(e.initAsync=e.initImmediate),e),V=()=>{};class H extends x{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;var n;if(super(),this.options=B(e),this.services={},this.logger=_,this.modules={external:[]},n=this,Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach(e=>{"function"==typeof n[e]&&(n[e]=n[e].bind(n))}),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(){var e=this;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,"function"==typeof t&&(n=t,t={}),null==t.defaultNS&&t.ns&&(i(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const s=$();this.options={...s,...this.options,...B(t)},this.options.interpolation={...s.interpolation,...this.options.interpolation},void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator);const r=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){let t;this.modules.logger?_.init(r(this.modules.logger),this.options):_.init(null,this.options),t=this.modules.formatter?this.modules.formatter:N;const n=new k(this.options);this.store=new E(this.options.resources,this.options);const i=this.services;i.logger=_,i.resourceStore=this.store,i.languageUtils=n,i.pluralResolver=new P(n,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!t||this.options.interpolation.format&&this.options.interpolation.format!==s.interpolation.format||(i.formatter=r(t),i.formatter.init(i,this.options),this.options.interpolation.format=i.formatter.format.bind(i.formatter)),i.interpolator=new R(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new F(r(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on("*",function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];e.emit(t,...i)}),this.modules.languageDetector&&(i.languageDetector=r(this.modules.languageDetector),i.languageDetector.init&&i.languageDetector.init(i,this.options.detection,this.options)),this.modules.i18nFormat&&(i.i18nFormat=r(this.modules.i18nFormat),i.i18nFormat.init&&i.i18nFormat.init(this)),this.translator=new L(this.services,this.options),this.translator.on("*",function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];e.emit(t,...i)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,n||(n=V),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(t=>{this[t]=function(){return e.store[t](...arguments)}});["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(t=>{this[t]=function(){return e.store[t](...arguments),e}});const a=o(),l=()=>{const e=(e,t)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),a.resolve(t),n(e,t)};if(this.languages&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?l():setTimeout(l,0),a}loadResources(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:V;const n=i(e)?e:this.language;if("function"==typeof e&&(t=e),!this.options.resources||this.options.partialBundledLanguages){if("cimode"===n?.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return t();const e=[],i=t=>{if(!t)return;if("cimode"===t)return;this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{"cimode"!==t&&e.indexOf(t)<0&&e.push(t)})};if(n)i(n);else{this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>i(e))}this.options.preload?.forEach?.(e=>i(e)),this.services.backendConnector.load(e,this.options.ns,e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),t(e)})}else t(null)}reloadResources(e,t,n){const i=o();return"function"==typeof e&&(n=e,e=void 0),"function"==typeof t&&(n=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),n||(n=V),this.services.backendConnector.reload(e,t,e=>{i.resolve(),n(e)}),i}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&S.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(let e=0;e<this.languages.length;e++){const t=this.languages[e];if(!(["cimode","dev"].indexOf(t)>-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}}changeLanguage(e,t){var n=this;this.isLanguageChangingTo=e;const s=o();this.emit("languageChanging",e);const r=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},a=(i,o)=>{o?this.isLanguageChangingTo===e&&(r(o),this.translator.changeLanguage(o),this.isLanguageChangingTo=void 0,this.emit("languageChanged",o),this.logger.log("languageChanged",o)):this.isLanguageChangingTo=void 0,s.resolve(function(){return n.t(...arguments)}),t&&t(i,function(){return n.t(...arguments)})},l=t=>{e||t||!this.services.languageDetector||(t=[]);const n=this.services.languageUtils.getBestMatchFromCodes(i(t)?[t]:t);n&&(this.language||r(n),this.translator.language||this.translator.changeLanguage(n),this.services.languageDetector?.cacheUserLanguage?.(n)),this.loadResources(n,e=>{a(e,n)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(e):l(this.services.languageDetector.detect()),s}getFixedT(e,t,n){var o=this;const s=function(e,t){let i;if("object"!=typeof t){for(var r=arguments.length,a=new Array(r>2?r-2:0),l=2;l<r;l++)a[l-2]=arguments[l];i=o.options.overloadTranslationOptionHandler([e,t].concat(a))}else i={...t};i.lng=i.lng||s.lng,i.lngs=i.lngs||s.lngs,i.ns=i.ns||s.ns,""!==i.keyPrefix&&(i.keyPrefix=i.keyPrefix||n||s.keyPrefix);const c=o.options.keySeparator||".";let u;return u=i.keyPrefix&&Array.isArray(e)?e.map(e=>`${i.keyPrefix}${c}${e}`):i.keyPrefix?`${i.keyPrefix}${c}${e}`:e,o.t(u,i)};return i(e)?s.lng=e:s.lngs=e,s.ns=t,s.keyPrefix=n,s}t(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.translator?.translate(...t)}exists(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.translator?.exists(...t)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;
1if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=t.lng||this.resolvedLanguage||this.languages[0],i=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;const s=(e,t)=>{const n=this.services.backendConnector.state[`${e}|${t}`];return-1===n||0===n||2===n};if(t.precheck){const e=t.precheck(this,s);if(void 0!==e)return e}return!!this.hasResourceBundle(n,e)||(!(this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages))||!(!s(n,e)||i&&!s(o,e)))}loadNamespaces(e,t){const n=o();return this.options.ns?(i(e)&&(e=[e]),e.forEach(e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){const n=o();i(e)&&(e=[e]);const s=this.options.preload||[],r=e.filter(e=>s.indexOf(e)<0&&this.services.languageUtils.isSupportedCode(e));return r.length?(this.options.preload=s.concat(r),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!e)return"rtl";const t=this.services?.languageUtils||new k($());return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){return new H(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}cloneInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:V;const n=e.forkResourceStore;n&&delete e.forkResourceStore;const i={...this.options,...e,isClone:!0},o=new H(i);void 0===e.debug&&void 0===e.prefix||(o.logger=o.logger.clone(e));if(["store","services","language"].forEach(e=>{o[e]=this[e]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},n){const e=Object.keys(this.store.data).reduce((e,t)=>(e[t]={...this.store.data[t]},Object.keys(e[t]).reduce((n,i)=>(n[i]={...e[t][i]},n),{})),{});o.store=new E(e,i),o.services.resourceStore=o.store}return o.translator=new L(o.services,i),o.translator.on("*",function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];o.emit(e,...n)}),o.init(i,t),o.translator.options=i,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const U=H.createInstance();U.createInstance=H.createInstance;const q=U.createInstance,z=U.dir,W=U.init,K=U.loadResources,X=U.reloadResources,G=U.use,J=U.changeLanguage,Y=U.getFixedT,Q=U.t,Z=U.exists,ee=U.setDefaultNamespace,te=U.hasLoadedNamespace,ne=U.loadNamespaces,ie=U.loadLanguages},"./resources/core/js/_default-options.js"(e,t,n){"use strict";n.r(t),n.d(t,{defaultOptions:()=>i});const i={openButton:!0,openButtonPrepend:!1,openButtonPosition:"bottom-right",openButtonCaption:!1,openButtonCaptionText:"",openButtonCaptionSize:14,openButtonIconPosition:"before",openButtonEntranceAnimationName:"fade",openButtonHoverAnimationName:"none",popupPosition:"center",popupShadow:!1,popupOverlay:!1,closeAnywhere:!0,readableExperience:!0,contentScaling:!0,textMagnifier:!0,textMagnifierColor:"rgba(107, 107, 107, 1)",textMagnifierBackgroundColor:"rgba(255, 255, 255, 0.9)",textMagnifierFontSize:36,fontSizing:!0,darkContrast:!0,lightContrast:!0,usefulLinks:!0,buttons:{hideButton:!0,resetButton:!0},locale:"",supportedLngs:["en","es","fr","de","pt","he","iw","uk","ar","hi","id","it","ja","ko","nl","tr","zh"]}},"./resources/core/js/events/act.js"(e,t,n){"use strict";n.r(t),n.d(t,{actEvents:()=>r,switchToggle:()=>a});var i=n("./resources/core/js/ui/Buttons.js"),o=n("./resources/core/js/ui/VisualInterface.js"),s=n("./resources/core/js/services/ReadablerStorage.js");function r(){null!==document.querySelector("#readabler-ai")&&window.addEventListener("readabler-ai-act",e=>{const{key:t,action:n,state:i,isToggle:s,mode:r,spinnerValue:l,step:c,status:u,actionName:d}=e.detail;switch(t){case"trigger":window.dispatchEvent(new CustomEvent("readabler-ai-popup",{detail:{action:n}}));break;
1case"close":window.dispatchEvent(new CustomEvent("readabler-ai-popup",{detail:{action:"close"}}));break;case"reveal":window.dispatchEvent(new CustomEvent("readabler-ai-popup",{detail:{action:i}}));break;case"visualInterface":switch(n){case"open":if(!document.querySelector("#readabler-ai-visual-interface")){const e=document.querySelector("#readabler-ai-content");if(!e)break;const t=new o.VisualInterface;t instanceof HTMLElement&&e.prepend(t)}}break;case"mode":window.dispatchEvent(new CustomEvent("readabler-headless",{detail:{action:r,value:"false"===u}}));break;case"spinner":let t=0;switch(n){case"increase":t=l+parseInt(c);break;case"decrease":t=l-parseInt(c);break;default:t=l}window.dispatchEvent(new CustomEvent("readabler-headless",{detail:{action:d,value:t}}));break;case"reset":window.dispatchEvent(new CustomEvent("readabler-headless",{detail:{action:"reset"}}));break;default:window.dispatchEvent(new CustomEvent("readabler-ai-popup",{detail:e.detail}))}s&&a(t,i)})}function a(e,t=null){if(!t)return;const n=i.Buttons.setToggleState(e,t);["recognition","visualInterface","accessibilityStatement","help","menu","close"].includes(e)||s.ReadablerStorage.setValue(e,n)}},"./resources/core/js/events/click.js"(e,t,n){"use strict";n.r(t),n.d(t,{clickEvents:()=>o});var i=n("./resources/core/js/tools/getButton.js");function o(){const e=document.querySelector("#readabler-ai");e&&e.addEventListener("click",s)}function s(e){e.target.classList.contains("readabler-ai-overlay")&&""!==window.readablerAssistantOptions.closeAnywhere&&window.dispatchEvent(new CustomEvent("readabler-ai-popup",{detail:{action:"close"}}));let t=(0,i.getButton)(e.target??e.srcElement);if(null===t)return;const n=t.dataset.key??null;if(null===n)return;let o={isTrusted:e.isTrusted};if("spinner"===n){const e=t.closest(".readabler-ai-spinner-form");if(!e)return;const n=e.querySelector("input[data-current-value]");if(!n)return;o.spinnerValue=parseInt(n.dataset.currentValue)}Object.entries(t.dataset).forEach(([e,t])=>{o[e]=t??null}),window.dispatchEvent(new CustomEvent("readabler-ai-act",{detail:o}))}},"./resources/core/js/events/headless.js"(e,t,n){"use strict";n.r(t),n.d(t,{headless:()=>c});var i=n("./resources/core/js/headless/actions/actionGroupChromaticity.js"),o=n("./resources/core/js/headless/actions/actionTextMagnifier.js"),s=n("./resources/core/js/tools/toDash.js"),r=n("./resources/core/js/headless/actions/actionContentScaling.js"),a=n("./resources/core/js/headless/actions/actionFontSizing.js"),l=n("./resources/core/js/tools/digitizeValue.js");function c(){const e=["contentScaling","textMagnifier","fontSizing","darkContrast","lightContrast"];window.addEventListener("readabler-headless",t=>{let{action:n,value:c}=t.detail;switch(c="true"===c||"false"!==c&&c,n){case"contentScaling":c?r.actionContentScaling.enable((0,s.toDash)(n),(0,l.default)(n,c)):r.actionContentScaling.disable((0,s.toDash)(n));break;case"textMagnifier":c?o.actionTextMagnifier.enable((0,s.toDash)(n)):o.actionTextMagnifier.disable((0,s.toDash)(n));break;case"fontSizing":c?a.actionFontSizing.enable((0,s.toDash)(n),(0,l.default)(n,c)):a.actionFontSizing.disable((0,s.toDash)(n));break;case"darkContrast":case"lightContrast":c?i.actionGroupChromaticity.enable((0,s.toDash)(n)):i.actionGroupChromaticity.disable((0,s.toDash)(n));break;case"reset":e.forEach(e=>{window.dispatchEvent(new CustomEvent("readabler-headless",{detail:{action:e,value:!1}}))})}})}},"./resources/core/js/events/popup.js"(e,t,n){"use strict";n.r(t),n.d(t,{popupEvents:()=>a});var i=n("./node_modules/i18next/dist/esm/i18next.js"),o=n("./resources/core/js/tools/toCamelCase.js"),s=n("./resources/core/js/ui/TriggerButtons.js"),r=n("./resources/core/js/tools/loadFlags.js");function a(){const e=document.querySelector("#readabler-ai");null!==e&&window.addEventListener("readabler-ai-popup",t=>{const{action:n}=t.detail;switch(n){case"close":e.setAttribute("aria-hidden",""),s.TriggerButtons.updateButtons({state:"close",action:"open"}),window.dispatchEvent(new CustomEvent("readabler-ai-act",{detail:{key:"visualInterface",action:"close"}}));break;case"open":(0,r.loadFlags)(),e.setAttribute("aria-hidden","false"),s.TriggerButtons.updateButtons({state:"open",action:"close"}),window.dispatchEvent(new CustomEvent("readabler-ai-act",{detail:{key:"visualInterface",action:"open"}}));break;case"up":(0,r.loadFlags)(),e.removeAttribute("style"),e.setAttribute("aria-hidden","false"),s.TriggerButtons.updateButtons({state:"open",action:"close"});break;case"down":e.removeAttribute("style"),e.setAttribute("aria-hidden","true"),s.TriggerButtons.updateButtons({state:"close",action:"open"});break;case"visualInterface":const{mode:n,color:a,status:l,type:c,toggleState:u,spinnerValue:d}=t.detail;switch(c){case"toggle":const e=document.querySelector(`#readabler-ai-action-${n}`);if(!e)break;e.dataset.status=u;break;case"spinner":const t=document.querySelector(`#readabler-ai-action-${n}`);if(!t)break;d?t.value=`${d}%`:(t.value=i.default.t("buttons.default"),t.dataset.i18nValue="buttons.default"),t.dataset.currentValue=d;break;case"color":const s=document.querySelector(`.readabler-ai-color[data-color="${a}"][data-action-name="${(0,o.toCamelCase)(n)}"]`);if(!s)break;s.dataset.status=l}}})}},"./resources/core/js/events/reveal.js"(e,t,n){"use strict";function i(){const e=document.querySelector("#readabler-ai");if(null===e)return;let t=!1,n=!1,i=0,o=0;function s(s=!0){t=!1,n=!1,i=0,o=0,s&&(e.style.transform="translateY(0px)")}e.addEventListener("mousedown",function(e){const{target:n}=e;n.classList.contains("readabler-ai-reveal")?(t=!0,i=e.clientY):t=!1}),e.addEventListener("mouseup",function(){t&&s()}),e.addEventListener("mouseover",function(){n||(n=!0)}),e.addEventListener("mouseout",function(){n&&(n=!1,s())}),e.addEventListener("mousemove",function(n){const{target:r}=n;if(!r.classList.contains("readabler-ai-reveal"))return;if(!t)return;o=n.clientY;let a=o-i;
1if(e.style.transform=`translateY(${a}px)`,40<Math.abs(a)){const e=new CustomEvent("readabler-ai-act",{detail:{key:"reveal",state:a<0?"up":"down"}});window.dispatchEvent(e),s(!1)}})}n.r(t),n.d(t,{revealEvents:()=>i})},"./resources/core/js/events/trigger.js"(e,t,n){"use strict";n.r(t),n.d(t,{triggerEvents:()=>u});var i=n("./resources/core/js/tools/getButton.js"),o=n("./resources/core/js/ui/popup.js"),s=n("./resources/core/js/events/click.js"),r=n("./resources/core/js/events/act.js"),a=n("./resources/core/js/events/reveal.js"),l=n("./resources/core/js/events/popup.js"),c=n("./resources/core/js/ui/TriggerButtons.js");function u(){const e=document.querySelectorAll("[data-readabler-trigger]");e&&((0,o.addPopup)(),(0,s.clickEvents)(),(0,r.actEvents)(),(0,a.revealEvents)(),(0,l.popupEvents)(),e.forEach(e=>{e.addEventListener("click",d)}))}function d(e){let t=(0,i.getButton)(e.target??e.srcElement);if(null===t)return;if(null===(t.dataset.key??null))return;let n={isTrusted:e.isTrusted};const o=document.querySelector("#readabler-ai");switch(Object.entries(t.dataset).forEach(([e,t])=>{n[e]=t??null}),n.action){case"open":if(o){"false"===o.getAttribute("aria-hidden")||(window.dispatchEvent(new CustomEvent("readabler-ai-popup",{detail:n})),c.TriggerButtons.updateButtons({state:"open",action:"close"}))}else c.TriggerButtons.updateButtons({state:"open",action:"close"});break;case"close":o&&(window.dispatchEvent(new CustomEvent("readabler-ai-popup",{detail:n})),c.TriggerButtons.updateButtons({state:"close",action:"open"}))}}},"./resources/core/js/headless/actions/actionContentScaling.js"(e,t,n){"use strict";n.r(t),n.d(t,{actionContentScaling:()=>s});var i=n("./resources/core/js/tools/toTitleCase.js"),o=n("./resources/core/js/headless/includes/utilities/activate-range.js");let s={p:"mdp-readabler",init:function(){document.querySelector("#mdp-readabler-action-content-scaling .mdp-readabler-value").addEventListener("ReadablerInputSpinnerChanged",this.scaleContent)},scaleContent:function(e){let t=parseInt(e.target.dataset.value);s.setElementProperty(t,"body > *","zoom","")},enable(e,t){(0,o.activateRange)(e,t),document.body.classList.add(`${this.p}-${e}`),s.setElementProperty(parseInt(t),"body > *","zoom","")},disable(e){(0,o.activateRange)(e,0),document.body.classList.remove(`${this.p}-${e}`),navigator.userAgent.toLowerCase().indexOf("firefox")>0?s.setFirefoxProperty(0,"body","-moz-transform",""):s.setElementProperty(0,"body > *","zoom","")},setFirefoxProperty:function(e,t,n,o=""){let s=(0,i.toTitleCase)(n,"-").replace("-","");s="readabler"+s;let r=document.querySelector(t),a=parseFloat(r.dataset[s]);if(!a||isNaN(a)){let e=window.getComputedStyle(r,null).getPropertyValue(n);a="none"===e?1:parseFloat(e.split("(")[1].split(")")[0]),r.dataset[s]=a.toString()}0===a&&(a=1);let l=(a+Math.abs(a/100)*e).toFixed(2);1===parseFloat(l)?(r.style.setProperty(n,"none","important"),r.style.removeProperty("-moz-transform-origin")):(r.style.setProperty(n,`scale(${l.toString()})`,"important"),r.style.setProperty("-moz-transform-origin","top left","important"))},setElementProperty:function(e,t,n,o){let s=(0,i.toTitleCase)(n,"-").replace("-","");s="readabler"+s,document.querySelectorAll(t).forEach(t=>{let i=parseFloat(t.dataset[s]);if(!i){let e=window.getComputedStyle(t,null).getPropertyValue(n);i=parseFloat(e),"normal"===e&&(i=0),t.dataset[s]=i.toString()}0===i&&(i=1);let r=(i+Math.abs(i/100)*e).toFixed(2);t.style.setProperty(n,r.toString()+o,"important")})}}},"./resources/core/js/headless/actions/actionFontSizing.js"(e,t,n){"use strict";n.r(t),n.d(t,{actionFontSizing:()=>o});var i=n("./resources/core/js/headless/includes/utilities/activate-range.js");const o={p:"mdp-readabler",fontSizingStyle:document.createElement("style"),textTags:["h1","h2","h3","h4","h5","h6","p","span","a","li","label","input","select","textarea","legend","code","pre","dd","dt","span","blockquote","th","bdi",'button[type="submit"]',"button.fusion-button"],init:function(){document.querySelector("#mdp-readabler-action-font-sizing .mdp-readabler-value").addEventListener("ReadablerInputSpinnerChanged",this.fontSizing)},fontScaling(e,t=!1){const n="object"==typeof avadaHeaderVars||"object"==typeof avadaSelectVars;for(let i of o.textTags)if(document.querySelectorAll(i)&&0!==document.querySelectorAll(i).length)for(let s of document.querySelectorAll(i)){let i=!1;
1if(!n||!o.avadaFontScaling(s)){if(t){let e=s.closest("[original-size]");if(e){const t=window.getComputedStyle(s).fontSize.split("px",1)[0],n=window.getComputedStyle(e).fontSize.split("px",1)[0];if(parseInt(t)===parseInt(n))continue}}else if("INPUT"!==s.tagName){const e=this.getElementOriginalSize(s),t=this.getParentOriginalSize(s);i=null!==t&&e===t}if(i){const t=this.getParentOriginalSize(s);s.style.fontSize=`${this.newFontSize(t,e)}px`}else{const t=this.getElementOriginalSize(s);s.style.fontSize=`${this.newFontSize(t,e)}px`}}}},fontSizing(e){let t=parseInt(e.target.dataset.value);0!==t?o.enable("font-sizing",t,e.detail.load):o.disable("font-sizing")},enable(e,t,n=!1){(0,i.activateRange)(e,t),document.body.classList.add(`${this.p}-${e}`),o.fontScaling(parseInt(t),n)},disable(e){(0,i.activateRange)(e,0),document.body.classList.remove(`${this.p}-${e}`),o.fontScaling(0)},getElementOriginalSize:function(e){let t=window.getComputedStyle(e).fontSize.split("px",1)[0];return t=parseInt(t),null===e.getAttribute("original-size")?e.setAttribute("original-size",t):t=e.getAttribute("original-size"),t},getParentOriginalSize:function(e){const t=e.parentElement;return t?t.getAttribute("original-size"):null},newFontSize:function(e,t){return Math.floor(parseInt(e)+e*(.01*t))},avadaFontScaling:function(e){if(setTimeout(function(){let t=e.getAttribute("style");t&&t.includes("--fontSize")&&(t=t.replace("--fontSize:","--fusionFontSize:"),e.setAttribute("style",t)),e.classList.contains("fusion-responsive-typography-calculated")&&e.classList.remove("fusion-responsive-typography-calculated")},0),"INPUT"!==e.tagName&&"BUTTON"!==e.tagName&&(null!==e.parentElement.getAttribute("original-size")||null!==e.parentElement.parentElement.getAttribute("original-size"))){if(null!==e.getAttribute("style")){let t=e.getAttribute("style");t=t.replace(/font-size:.*?;/,""),t=t.replace("font-size:",""),e.setAttribute("style",t)}return!0}return!1}}},"./resources/core/js/headless/actions/actionGroupChromaticity.js"(e,t,n){"use strict";n.r(t),n.d(t,{actionGroupChromaticity:()=>s});var i=n("./resources/core/js/tools/toDash.js"),o=n("./resources/core/js/headless/includes/utilities/activate.js");const s={p:"mdp-readabler",actions:["dark-contrast","light-contrast"],enable(e){!1!==this.actions.includes(e)&&((0,o.activate)(e,!0),document.body.classList.contains(`${this.p}-${e}`)||document.body.classList.add(`${this.p}-${e}`),this.disableOthers(e))},disable(e){!1!==this.actions.includes(e)&&((0,o.activate)(e,!1),document.body.classList.contains(`${this.p}-${e}`)&&document.body.classList.remove(`${this.p}-${e}`))},disableOthers(e){e=(0,i.toDash)(e),this.actions.forEach(t=>{t!==e&&this.disable(t)})}}},"./resources/core/js/headless/actions/actionTextMagnifier.js"(e,t,n){"use strict";n.r(t),n.d(t,{actionTextMagnifier:()=>o});var i=n("./resources/core/js/headless/includes/utilities/activate.js");let o={p:"mdp-readabler",tooltip:document.createElement("div"),init:function(){document.querySelector("#mdp-readabler-action-text-magnifier").addEventListener("ReadablerToggleBoxChanged",o.textMagnifier)},textMagnifier:function(e){e.target.classList.contains("mdp-active")?o.enable("text-magnifier"):o.disable("text-magnifier")},updateTooltip:function(e){const t=e.target;if(!["H1","H2","H3","H4","H5","H6","SPAN","P","LI","LABEL","INPUT","SELECT","TEXTAREA","LEGEND","CODE","PRE","DD","DT","TD","TH","A","STRONG","B","BLOCKQUOTE","BUTTON","IMG","FIGCAPTION","DIV"].includes(t.nodeName))return void o.hideTooltip();let n="";switch(t.nodeName){case"DIV":0===t.children.length&&(n=t.innerText??"");break;case"A":n=t.innerText??t.title??"";break;case"IMG":n=t.alt??"";break;case"INPUT":if("button"===t.type||"submit"===t.type){n=t.value??"";break}if("radio"===t.type||"checkbox"===t.type){n=t.labels[0].innerText??"";break}if("text"===t.type){n=t.value??"";break}break;case"BUTTON":n=t.innerText&&""!==t.innerText?t.innerText:t.title??"";break;case"SELECT":n=t.options[t.selectedIndex].text??"";break;case"TEXTAREA":n=t.value??"";break;default:n=t.innerText??""}if(""===n.trim())return void o.hideTooltip();o.showTooltip(),o.tooltip.innerHTML=n;const i=15;let s=window.innerWidth;o.tooltip.style.top=`${e.clientY+i}px`,e.clientX>.5*window.innerWidth?(s=e.clientX-i<=680?e.clientX-i:680,o.tooltip.style.left="unset",o.tooltip.style.right=window.innerWidth-e.clientX-i+"px",o.tooltip.style.maxWidth=`${s}px`):(s=window.innerWidth-e.clientX-45<680?window.innerWidth-e.clientX-45:680,o.tooltip.style.right="unset",o.tooltip.style.left=`${e.clientX+i}px`,o.tooltip.style.maxWidth=`${s}px`),e.clientY>.5*window.innerHeight?(o.tooltip.style.bottom=`${window.innerHeight-e.clientY+i}px`,o.tooltip.style.top="unset"):o.tooltip.style.bottom="unset"},hideTooltip:function(){o.tooltip.style.visibility="hidden"},showTooltip:function(){o.tooltip.style.visibility="visible"},enable(e){(0,i.activate)(e,!0),document.body.classList.add(`${this.p}-${e}`),document.body.appendChild(o.tooltip),o.tooltip.id="mdp-readabler-text-magnifier-tooltip",document.addEventListener("mousemove",o.updateTooltip,!1),document.addEventListener("mouseleave",o.hideTooltip,!1),document.addEventListener("mouseenter",o.showTooltip,!1)},disable(e){(0,i.activate)(e,!1),document.body.classList.remove(`${this.p}-${e}`),document.removeEventListener("mousemove",o.updateTooltip,!1),document.body.contains(o.tooltip)&&document.body.removeChild(o.tooltip),document.removeEventListener("mouseleave",o.hideTooltip,!1),document.removeEventListener("mouseenter",o.showTooltip,!1)}}},"./resources/core/js/headless/includes/utilities/activate-range.js"(e,t,n){"use strict";n.r(t),n.d(t,{activateRange:()=>s});var i=n("./resources/core/js/services/ReadablerStorage.js"),o=n("./resources/core/js/tools/toCamelCase.js");function s(e,t){const n="mdp-readabler";t=parseInt(t);const s=document.querySelector(`#${n}-action-${e} .${n}-value`);s&&(s.textContent=0===t?s.getAttribute("data-default"):`${t}%`,s.setAttribute("data-value",t)),window.dispatchEvent(new CustomEvent("readabler-ai-popup",{detail:{action:"visualInterface",type:"spinner",mode:e,spinnerValue:t}})),i.ReadablerStorage.setValue((0,o.toCamelCase)(e),t)}},"./resources/core/js/headless/includes/utilities/activate.js"(e,t,n){"use strict";n.r(t),n.d(t,{activate:()=>s});var i=n("./resources/core/js/services/ReadablerStorage.js"),o=n("./resources/core/js/tools/toCamelCase.js");function s(e,t){const n=document.querySelector(`#mdp-readabler-action-${e}`);n&&(t?n.classList.add("mdp-active"):n.classList.remove("mdp-active")),window.dispatchEvent(new CustomEvent("readabler-ai-popup",{detail:{action:"visualInterface",type:"toggle",mode:e,toggleState:t}})),i.ReadablerStorage.setValue((0,o.toCamelCase)(e),t)}},"./resources/core/js/headless/includes/utilities/language.js"(e,t,n){"use strict";function i(){const e=navigator.language??"en";let t=document.documentElement.lang??e;return t=t.replace(/-/g,"_"),t.split("_")[0]}n.r(t),n.d(t,{baseLang:()=>i})},"./resources/core/js/services/ReadablerStorage.js"(e,t,n){"use strict";n.r(t),n.d(t,{ReadablerStorage:()=>i});
1class i{static driver(e="local"){try{switch(e){case"local":return window.localStorage;case"session":return window.sessionStorage;default:return null}}catch(e){return null}}static getItem(e,t="local"){const n=i.driver(t);if(null===n)return null;try{return n.getItem(e)}catch(e){return null}}static getValue(e,t="local",n="readabler-ai"){const o=i.getStorage(t,n);return null===o?null:o[e]??null}static setValue(e,t,n="local",o="readabler-ai"){const s=i.driver(n);if(null===s)return;let r=i.getStorage(n,o)??{};r[e]=t;try{s.setItem(o,JSON.stringify(r))}catch(e){}}static getStorage(e="local",t="readabler-ai"){const n=i.driver(e);if(null===n)return null;let o=null;try{o=n.getItem(t)}catch(e){return null}if(null===o)return null;try{const e=JSON.parse(o);return null!==e&&"object"==typeof e?e:null}catch(e){return null}}static reset(e="local",t="readabler-ai"){const n=i.driver(e);if(null!==n)try{n.removeItem(t)}catch(e){}}}},"./resources/core/js/tools/after-rendering.js"(e,t,n){"use strict";n.r(t),n.d(t,{afterRendering:()=>o});var i=n("./node_modules/i18next/dist/esm/i18next.js");function o(){const e=document.querySelector(".readabler-ai-toolbar-left .choices");null!==e&&e.setAttribute("aria-label",i.default.t("labels.select_language"))}},"./resources/core/js/tools/digitizeValue.js"(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>o});var i=n("./resources/core/js/services/ReadablerStorage.js");function o(e,t){const n={fontSizing:10,contentScaling:5};let o=parseInt(i.ReadablerStorage.getValue(e)??0);switch(t){case"+":case"true":t=o+(n[e]??10);break;case"-":t=o-(n[e]??10);break;case"false":t=0;break;default:t=parseInt(t)}return t}},"./resources/core/js/tools/getButton.js"(e,t,n){"use strict";function i(e){return e.classList&&e.classList.contains("readabler-ai-button")?e:e.closest("button.readabler-ai-button")?e.closest("button.readabler-ai-button"):null}n.r(t),n.d(t,{getButton:()=>i})},"./resources/core/js/tools/isSettingsMissing.js"(e,t,n){"use strict";function i(){return void 0===window.readablerAssistantOptions&&(console.error("Missing Readabler AI Options"),!0)}n.r(t),n.d(t,{isSettingsMissing:()=>i})},"./resources/core/js/tools/loadFlags.js"(e,t,n){"use strict";function i(){const{pluginUrl:e}=window.readablerAssistantOptions;document.querySelectorAll(".readabler-ai-language-flag").forEach(t=>{const n=t.dataset.flag;if(!n)return;const i=document.createElement("img");i.src=`${e}public/svg/flags/${n}.svg`,i.alt=n,t.appendChild(i),t.removeAttribute("data-flag")})}n.r(t),n.d(t,{loadFlags:()=>i})},"./resources/core/js/tools/mergeOptions.js"(e,t,n){"use strict";n.r(t),n.d(t,{mergeOptions:()=>o});var i=n("./resources/core/js/_default-options.js");function o(){window.readablerAssistantOptions={...i.defaultOptions,...window.readablerAssistantOptions}}},"./resources/core/js/tools/setConfig.js"(e,t,n){"use strict";n.r(t),n.d(t,{setConfig:()=>s});var i=n("./resources/core/js/services/ReadablerStorage.js"),o=n("./resources/core/js/tools/toCamelCase.js");function s(){var e;(e=i.ReadablerStorage.getStorage())&&Object.keys(e).forEach(t=>{null!==e[t]&&(t.startsWith("profile")&&!e[t]||!1!==window.readablerAssistantOptions[(0,o.toCamelCase)(t)]&&window.dispatchEvent(new CustomEvent("readabler-headless",{detail:{action:(0,o.toCamelCase)(t),value:e[t]}})))})}},"./resources/core/js/tools/toCamelCase.js"(e,t,n){"use strict";function i(e,t="",n=""){let i=[];return t.length>0&&i.push(t),i=e.split(/[\s-_.:]/),n.length>0&&i.push(n),1===i.length?e.trim():i.map((e,t)=>0===t?e.toLowerCase():e.charAt(0).toUpperCase()+e.slice(1)).join("")}n.r(t),n.d(t,{toCamelCase:()=>i})},"./resources/core/js/tools/toDash.js"(e,t,n){"use strict";function i(e){return e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/[\s_]/g,"-").toLowerCase()}n.r(t),n.d(t,{toDash:()=>i})},"./resources/core/js/tools/toSnake.js"(e,t,n){"use strict";function i(e){return e.replace(/([a-z])([A-Z])/g,"$1_$2").replace(/([-.])/g,"_").toLowerCase()}n.r(t),n.d(t,{toSnake:()=>i})},"./resources/core/js/tools/toTitleCase.js"(e,t,n){"use strict";function i(e,t=" "){return e.toLowerCase().split(t).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(t)}n.r(t),n.d(t,{toTitleCase:()=>i})},"./resources/core/js/ui/Buttons.js"(e,t,n){"use strict";n.r(t),n.d(t,{Buttons:()=>l});var i=n("./resources/core/js/json/buttons-config.json"),o=n("./resources/core/js/ui/Icons.js"),s=n("./node_modules/i18next/dist/esm/i18next.js"),r=n("./resources/core/js/tools/toDash.js"),a=n("./resources/core/js/services/ReadablerStorage.js");class l{constructor(){}static config=i;static getConfig(e){return l.config[e]??null}getButtonAction(e,t){let n=Object.keys(t)[0];if(Object.keys(t).length>1){let i=a.ReadablerStorage.getValue(e);null!==i&&(n=Object.keys(t).find(e=>e!==i))}return n}getButtonState(e,t){const n=this.getButtonAction(e,t);let i=Object.keys(t).find(e=>e!==n);return Object.keys(t).length>1&&(i=a.ReadablerStorage.getValue(e)??i),i}createButton(e,t,n=!1){const i=this.getButtonAction(e,t),a=this.getButtonState(e,t),l="buttons."+(t[i]?.title??"placeholder"),c=document.createElement("button");return c.classList.add(`readabler-ai-${(0,r.toDash)(e)}`),c.classList.add("readabler-ai-button"),c.title=s.default.t(l),c.dataset.i18nTitle=l,c.dataset.key=e,c.dataset.action=i,n?(c.dataset.isToggle="true",c.dataset.toggleState=a,c.dataset.state=a,c.innerHTML=o.Icons.getSvg(t[a].icon)??"",t[a].showCaption&&(c.innerHTML+=`<span data-i18n-text="${l}">${s.default.t(l)}</span>`),c.classList.add("readabler-ai-toggle")):(c.innerHTML=o.Icons.getSvg(t[i].icon)??"",t[i].showCaption&&(c.innerHTML+=`<span data-i18n-text="${l}">${s.default.t(l)}</span>`)),c}getButton(e,t=!1){let n=document.querySelector(`#readabler-ai button[data-key="${e}"]`);if(null!==n)return n;let i=l.getConfig(e);
1if(null===i)return null;const o=Object.keys(i).length>1;return Object.keys(i).forEach(e=>{i[e].showCaption=t}),this.createButton(e,i,o)}static setToggleState(e,t){const n=document.querySelectorAll(`#readabler-ai button[data-key="${e}"]`);if(!n)return null;const i=l.getConfig(e),r=Object.keys(i).find(e=>e!==t),a="buttons."+i[r].title;return n.forEach(e=>{e.title=s.default.t(a),e.dataset.i18nTitle=a,e.dataset.toggleState=r,e.dataset.state=r,e.dataset.action=t,e.innerHTML=o.Icons.getSvg(i[r].icon)??"",i[r].showCaption&&(e.innerHTML+=`<span data-i18n-text="${a}">${s.default.t(a)}</span>`)}),r}static resetToggleState(e){const t=document.querySelectorAll(`#readabler-ai button[data-key="${e}"]`);if(!t)return null;const n=l.getConfig(e),i=Object.keys(n)[0],o=Object.keys(n).find(e=>e!==i),r="buttons."+n[i].title;t.forEach(e=>{e.title!==s.default.t(r)&&(e.title=s.default.t(r),e.dataset.i18nTitle=r),e.dataset.action!==i&&(e.dataset.action=i),e.dataset.state!==o&&(e.dataset.state=o),e.dataset.toggleState!==o&&(e.dataset.toggleState=o)})}}},"./resources/core/js/ui/Icons.js"(e,t,n){"use strict";n.r(t),n.d(t,{Icons:()=>i});class i{static svg={close:'<svg aria-label="Close" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512" role="img"><path d="M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"/></svg>',accessibility:'<svg aria-label="Accessibility" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 293.05 349.63" role="img"><path d="M95.37,51.29a51.23,51.23,0,1,1,51.29,51.16h-.07A51.19,51.19,0,0,1,95.37,51.29ZM293,134.59A25.61,25.61,0,0,0,265.49,111h-.13l-89.64,8c-3.06.28-6.13.42-9.19.42H126.65q-4.59,0-9.16-.41L27.7,111a25.58,25.58,0,0,0-4.23,51l.22,0,72.45,6.56a8.55,8.55,0,0,1,7.77,8.48v19.62a33.82,33.82,0,0,1-2.36,12.45L60.48,313.66a25.61,25.61,0,1,0,46.85,20.71h0l39.14-95.61L186,334.63A25.61,25.61,0,0,0,232.86,314L191.63,209.14a34.14,34.14,0,0,1-2.35-12.44V177.09a8.55,8.55,0,0,1,7.77-8.49l72.33-6.55A25.61,25.61,0,0,0,293,134.59Z"/></svg>',reset:'<svg aria-label="Reset" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" role="img"><path d="M288 32c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 224c0 17.7 14.3 32 32 32s32-14.3 32-32l0-224zM143.5 120.6c13.6-11.3 15.4-31.5 4.1-45.1s-31.5-15.4-45.1-4.1C49.7 115.4 16 181.8 16 256c0 132.5 107.5 240 240 240s240-107.5 240-240c0-74.2-33.8-140.6-86.6-184.6c-13.6-11.3-33.8-9.4-45.1 4.1s-9.4 33.8 4.1 45.1c38.9 32.3 63.5 81 63.5 135.4c0 97.2-78.8 176-176 176s-176-78.8-176-176c0-54.4 24.7-103.1 63.5-135.4z"/></svg>'};static getSvg(e){let t=this.svg[e]??"";return""===t?"":(t=t.replace("<svg ",'<svg class="readabler-ai-svg" '),t)}}},"./resources/core/js/ui/PopupControls.js"(e,t,n){"use strict";n.r(t),n.d(t,{PopupControls:()=>o});var i=n("./resources/core/js/ui/Buttons.js");class o{constructor(){return this.buttons=new i.Buttons,this.popupControls()}popupControls(){const e=document.createElement("div");e.classList.add("readabler-ai-popup-controls");const t=document.createElement("div");return t.classList.add("readabler-ai-reveal"),e.appendChild(t),e}}},"./resources/core/js/ui/Toolbar.js"(e,t,n){"use strict";n.r(t),n.d(t,{Toolbar:()=>r});var i=n("./resources/core/js/ui/Buttons.js"),o=n("./resources/core/js/ui/language-select.js"),s=n("./resources/core/js/headless/includes/utilities/language.js");class r{constructor(){this.buttons=new i.Buttons}getElement(){return this.toolbarElement()}toolbarElement(){const e=document.createElement("div");e.classList.add("readabler-ai-toolbar");const t={left:this.leftToolbar(),center:this.centerToolbar(),right:this.rightToolbar()};return Object.keys(t).forEach(n=>{null!==t[n]&&e.appendChild(t[n])}),e}leftToolbar(){const e=document.createElement("div");e.classList.add("readabler-ai-toolbar-left");const t=document.createElement("label");t.id="readabler-ai-language-label",t.classList.add("readabler-ai-language-label"),t.innerText=(0,s.baseLang)(),e.appendChild(t);const n=document.createElement("select");return n.id="readabler-ai-language-select",n.classList.add("readabler-ai-language-select"),e.appendChild(n),(0,o.multilang)(n),e}rightToolbar(){const e=document.createElement("div");e.classList.add("readabler-ai-toolbar-right");const t=this.buttons.getButton("reset");null!==t&&e.appendChild(t);const n=this.buttons.getButton("close");
1return null!==n&&e.appendChild(n),e}centerToolbar(){const e=document.createElement("div");e.classList.add("readabler-ai-toolbar-center");const t=document.createElement("a");return t.id="readabler-ai-logo",t.href="https://ai.readabler.com",t.target="_blank",t.classList.add("readabler-ai-logo"),t.setAttribute("aria-label","Readabler Assistant"),t.setAttribute("rel","noopener noreferrer"),t.innerHTML=`<img src="${window.readablerAssistantOptions.pluginUrl}/public/svg/logo-color.svg" alt="Readabler Assistant"><span class="readabler-ai-logo-text">readabler</span>`,e.appendChild(t),e}}},"./resources/core/js/ui/TriggerButtons.js"(e,t,n){"use strict";n.r(t),n.d(t,{TriggerButtons:()=>a});var i=n("./resources/core/js/events/trigger.js"),o=n("./resources/core/js/services/ReadablerStorage.js"),s=n("./resources/core/js/ui/Icons.js"),r=n("./node_modules/i18next/dist/esm/i18next.js");class a{constructor(){const{openButton:e,openButtonPrepend:t}=window.readablerAssistantOptions;if(!1!==e){const e=this.floatButtonContainer(),n=this.getElement();if(!n||!e)return;e.appendChild(n),!0===t?document.body.prepend(e):document.body.appendChild(e)}const n=document.querySelectorAll("[data-readabler-trigger]");if(0===n.length)return;this.setupButtons(n);"open"===o.ReadablerStorage.getValue("popupState","session")&&n[0].dispatchEvent(new CustomEvent("click"))}getElement(){return this.triggerButtonElement()}floatButtonContainer(){let e=document.querySelector(".mdp-readabler-trigger-button-box");if(e)return e;e=document.createElement("div"),e.id="readabler-ai-trigger",e.className="mdp-readabler-trigger-button-box";const{openButtonPosition:t,openButtonEntranceAnimationName:n,openButtonHoverAnimationName:i}=window.readablerAssistantOptions;return e.classList.add(t,`mdp-entrance-${n}`,`mdp-hover-${i}`),e}triggerButtonElement(){let e=document.querySelector("#mdp-readabler-trigger-button");if(e)return e;const{openButtonIconPosition:t,openButtonCaption:n,openButtonCaptionText:i}=window.readablerAssistantOptions;return e=document.createElement("button"),e.id="mdp-readabler-trigger-button",e.className=`mdp-icon-position-${t} readabler-ai-button`,e.ariaLabel=r.default.t("buttons.open"),e.title=r.default.t("buttons.open"),e.dataset.readablerTrigger="true",e.dataset.key="trigger",e.dataset.state="close",e.dataset.action="open","hide"!==t&&(e.innerHTML=`<span class="mdp-readabler-trigger-button-icon">${s.Icons.getSvg("accessibility")}</span>`),!0===n&&(e.innerHTML+=`<span class="mdp-readabler-trigger-button-caption">${i}</span>`),e}setupButtons(e){e.forEach(e=>{const t=e.dataset.state??"close";e.classList.add("readabler-ai-button"),e.dataset.key="trigger",e.dataset.state=t,e.dataset.action="open"===t?"close":"open"}),(0,i.triggerEvents)()}static updateButtons(e){const t=document.querySelectorAll("[data-readabler-trigger]");t&&(t.forEach(t=>{t.dataset.state=e.state,t.dataset.action=e.action}),o.ReadablerStorage.setValue("popupState",e.state,"session"))}}},"./resources/core/js/ui/VisualInterface.js"(e,t,n){"use strict";n.r(t),n.d(t,{VisualInterface:()=>u});var i=n("./node_modules/i18next/dist/esm/i18next.js"),o=n("./node_modules/tippy.js/dist/tippy.esm.js"),s=n("./resources/core/js/tools/toSnake.js"),r=n("./resources/core/js/tools/toDash.js"),a=n("./resources/core/js/tools/toCamelCase.js"),l=n("./resources/core/js/json/interface-actions.json"),c=n("./resources/core/js/services/ReadablerStorage.js");class u{constructor(){this.$visualInterface=document.createElement("div"),this.$visualInterface.id="readabler-ai-visual-interface";const e=this.section("readable-experience");return e&&this.$visualInterface.appendChild(e),this.$visualInterface}actions(e){return l[(0,a.toCamelCase)(e)]??{}}section(e){const t=window.readablerAssistantOptions;if(!t||!1===t[(0,a.toCamelCase)(e)])return null;const n=this.sectionActions(e);if(0===n.children.length)return null;const i=document.createElement("div");return i.className="readabler-ai-section",i.id=`readabler-ai-${e}`,i.appendChild(n),i}sectionActions(e){const t=window.readablerAssistantOptions,n=document.createElement("div");n.className="readabler-ai-actions";const i=this.actions(e);
1return i&&0!==Object.keys(i).length?(Object.keys(i).forEach(o=>{if(!t[o])return;const s=document.createElement("div");switch(s.className=`readabler-ai-action size-${i[o].size??"half"}`,i[o].type){case"toggle":s.appendChild(this.toggle(o,i[o],e));break;case"spinner":s.appendChild(this.spinner(o,i[o]));break;case"links":s.appendChild(this.linkSelect())}if(0===s.children.length)return;const r=this.tooltip(o);s.appendChild(r),n.appendChild(s)}),n):n}tooltip(e){const t="status.action_description",n=document.createElement("button");n.className="readabler-ai-button readabler-ai-tooltip",n.title=i.default.t(t),n.dataset.i18nTitle=t,n.innerHTML="?",n.dataset.key="tooltip",n.dataset.mode=e;const r=`actions.${(0,s.toSnake)(e)}.description`;n.setAttribute("data-tippy-content",i.default.t(r)),n.setAttribute("data-i18n-tippy-content",r),window.mdpReadablerAiActionTippy||(window.mdpReadablerAiActionTippy=[]);const a=(0,o.default)(n,{placement:"top",theme:"readabler-ai",zIndex:999999,interactiveBorder:10,interactiveDebounce:75,maxWidth:200,arrow:!1});return window.mdpReadablerAiActionTippy.push(a),n}label(e,t="span"){const n=`actions.${(0,s.toSnake)(e)}.title`;let o;if("label"===t)o=document.createElement("label"),o.htmlFor=`readabler-ai-action-${(0,r.toDash)(e)}`,o.classList.add("readabler-ai-label"),o.textContent=i.default.t(n),o.dataset.i18nText=n;else o=document.createElement("span"),o.classList.add("readabler-ai-label"),o.textContent=i.default.t(n),o.dataset.i18nText=n;return o}toggle(e,t,n=null){const o=document.createElement("button");o.className="readabler-ai-button readabler-ai-action-toggle",o.id=`readabler-ai-action-${(0,r.toDash)(e)}`,o.dataset.key="mode",o.dataset.mode=e,o.dataset.status=c.ReadablerStorage.getValue(e)?"true":"false";const a="status.turn_on";if(o.title=i.default.t(a)+" "+i.default.t(`actions.${(0,s.toSnake)(e)}.title`).toLowerCase(),o.dataset.i18nTitle=a,!t.hideIcon){const e=document.createElement("span");e.classList.add("readabler-ai-icon"),o.appendChild(e)}return o.appendChild(this.label(e)),o}spinner(e,t){const n=document.createElement("div");n.classList.add("readabler-ai-spinner");const o=document.createElement("div");o.classList.add("readabler-ai-spinner-form");const s=document.createElement("input");s.id=`readabler-ai-action-${(0,r.toDash)(e)}`,s.type="text",s.disabled=!0,s.setAttribute("autocomplete","off");const a=c.ReadablerStorage.getValue(e)??0;s.dataset.currentValue=a,a?s.value=a+"%":(s.value=i.default.t("buttons.default"),s.dataset.i18nValue="buttons.default");const l=document.createElement("button");l.className="readabler-ai-button readabler-ai-spinner-plus",l.dataset.key="spinner",l.dataset.actionName=e,l.dataset.action="increase",l.dataset.step=t.step,l.title=i.default.t("buttons.increase"),l.dataset.i18nValue="buttons.increase",l.innerHTML="⊕";const u=document.createElement("button");return u.className="readabler-ai-button readabler-ai-spinner-minus",u.dataset.key="spinner",u.dataset.actionName=e,u.dataset.action="decrease",u.dataset.step=t.step,u.title=i.default.t("buttons.decrease"),u.dataset.i18nValue="buttons.decrease",u.innerHTML="⊖",o.appendChild(u),o.appendChild(s),o.appendChild(l),n.appendChild(this.label(e,"label")),n.appendChild(o),n}linkSelect(){const e=document.createElement("div");e.classList.add("readabler-ai-links");const t=document.createElement("div");t.classList.add("readabler-ai-links-form");const n=document.createElement("label");n.htmlFor="readabler-ai-links-select",n.classList.add("readabler-ai-label"),n.textContent=i.default.t("actions.link_navigation.title"),n.dataset.i18nText="actions.link_navigation.title";const o=document.createElement("select");o.id="readabler-ai-links-select",o.setAttribute("autocomplete","off");return this.grabLinks().forEach(e=>{const t=document.createElement("option");t.value=e.link??"#",t.textContent=e.title??"",e.i18n&&(t.dataset.i18nText=e.i18n),o.appendChild(t)}),t.appendChild(n),t.appendChild(o),e.appendChild(t),e.addEventListener("change",e=>{window.location.href=e.target.value}),e}grabLinks(){const e=document.querySelectorAll("a");let t=[{title:i.default.t("buttons.home"),i18n:"buttons.home",link:window.location.origin}];
1return e.forEach(e=>{if(e.closest("#wpadminbar")||e.closest("#query-monitor-main"))return;let n=e.innerText;if(n=n.replace(/\s+/g," ").trim(),""===n)return;n=n.substring(0,42);let i=e.href;i=i.trim(),i=i.replace(/#$/,""),i=i.replace(/\/$/,""),""!==i&&"#"!==i&&(i.toLowerCase().startsWith("javascript:")||t.some(e=>e.link===i)||t.push({title:n,link:i}))}),t}}},"./resources/core/js/ui/language-select.js"(e,t,n){"use strict";n.r(t),n.d(t,{multilang:()=>r});var i=n("./node_modules/choices.js/public/assets/scripts/choices.mjs"),o=n("./node_modules/i18next/dist/esm/i18next.js"),s=n("./resources/core/js/tools/loadFlags.js");function r(e){new i.default(e,{itemSelectText:"",choices:a(),allowHTML:!0,duplicateItemsAllowed:!0,labelId:"readabler-ai-language-label",searchEnabled:!1,shouldSort:!1,position:"top",fuseOptions:{threshold:0,ignoreLocation:!0}}).passedElement.element.addEventListener("change",e=>{o.default.changeLanguage(e.detail.value).then(()=>{(0,s.loadFlags)();document.querySelectorAll("[data-i18n-text]").forEach(e=>{e.textContent=o.default.t(e.dataset.i18nText)});document.querySelectorAll("[data-i18n-title]").forEach(e=>{e.title=o.default.t(e.dataset.i18nTitle)});document.querySelectorAll("[data-i18n-value]").forEach(e=>{if("buttons.default"===e.dataset.i18nValue){if(/^(\d{1,4})$/.test(e.dataset.i18nValue))return}e.value=o.default.t(e.dataset.i18nValue)});document.querySelectorAll("[data-i18n-tippy-content]").forEach(e=>{e.setAttribute("data-tippy-content",o.default.t(e.dataset.i18nTippyContent))}),window.mdpReadablerAiActionTippy&&window.mdpReadablerAiActionTippy.forEach(e=>{e.setProps({content:o.default.t(e.reference.dataset.i18nTippyContent)})})})})}function a(){let e=o.default.language,t=[];return(window.readablerAssistantOptions.supportedLngs??o.default.languages).forEach(n=>{t.push({value:n,label:`<div class="readabler-ai-language">\n            <span class="readabler-ai-language-flag" data-flag="${l(n)}"></span>\n            <span class="readabler-ai-language-code">${n}</span>\n        </div>`,selected:n===e})}),t}function l(e){switch(e){case"en":return"gb";case"uk":return"ua";default:return e}}},"./resources/core/js/ui/popup.js"(e,t,n){"use strict";n.r(t),n.d(t,{addPopup:()=>s,content:()=>r});var i=n("./resources/core/js/ui/Toolbar.js"),o=n("./resources/core/js/ui/PopupControls.js");function s(e=!1){const t=document.createElement("div");t.id="readabler-ai",e&&t.setAttribute("aria-hidden","false");const{popupOverlay:n,popupPosition:s}=window.readablerAssistantOptions;s&&(t.dataset.position=s),n&&t.classList.add("readabler-ai-overlay");const a=document.createElement("div");a.classList.add("readabler-ai-popup");const l=(new i.Toolbar).getElement(),c=new o.PopupControls;return c instanceof HTMLElement&&a.appendChild(c),a.appendChild(r()),a.appendChild(l),t.appendChild(a),document.body.appendChild(t),t}function r(){const e=document.createElement("div");return e.id="readabler-ai-content",e}},"./resources/core/js/json/buttons-config.json"(e){"use strict";e.exports=JSON.parse('{"close":{"close":{"icon":"close","title":"close","action":"close"}},"reset":{"reset":{"icon":"reset","title":"reset","action":"reset"}},"reveal":{"hide":{"title":"Hide the chat","action":"hide"},"show":{"title":"Show the chat","action":"show"}},"hide":{"hide":{"icon":"hide","title":"hide","action":"hide"},"show":{"icon":"show","title":"show","action":"show"}}}')},"./resources/core/js/json/interface-actions.json"(e){"use strict";e.exports=JSON.parse('{"readableExperience":{"contentScaling":{"type":"spinner","step":5,"size":"full","hideIcon":true},"fontSizing":{"type":"spinner","step":10,"size":"full","hideIcon":true},"textMagnifier":{"type":"toggle","size":"full"},"darkContrast":{"type":"toggle"},"lightContrast":{"type":"toggle"},"usefulLinks":{"type":"links","size":"full","hideIcon":true}}}')}};const t={};function n(i){const o=t[i];if(void 0!==o)return o.exports;const s=t[i]={exports:{}};if(!(i in e)){delete t[i];const e=new Error("Cannot find module '"+i+"'");throw e.code="MODULE_NOT_FOUND",e}return e[i](s,s.exports,n),s.exports}(()=>{const e=Object.getPrototypeOf;let t;n.t=function(i,o){if(1&o&&(i=this(i)),8&o)return i;
1if("object"==typeof i&&i){if(4&o&&i.__esModule)return i;if(16&o&&"function"==typeof i.then)return i}const s=Object.create(null);n.r(s);const r={};t=t||[null,e({}),e([]),e(e)];for(var a=2&o&&i;("object"==typeof a||"function"==typeof a)&&!~t.indexOf(a);a=e(a))Object.getOwnPropertyNames(a).forEach(e=>r[e]=()=>i[e]);return r.default=()=>i,n.d(s,r),s}})(),n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},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),n.r=e=>{Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};let i={};(()=>{"use strict";n.r(i);var e=n("./node_modules/i18next/dist/esm/i18next.js"),t=n("./node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js"),o=n("./node_modules/i18next-http-backend/esm/index.js"),s=n("./resources/core/js/events/headless.js"),r=n("./resources/core/js/tools/isSettingsMissing.js"),a=n("./resources/core/js/tools/setConfig.js"),l=n("./resources/core/js/tools/mergeOptions.js"),c=n("./resources/core/js/tools/after-rendering.js"),u=n("./resources/core/js/ui/TriggerButtons.js"),d=n("./resources/core/js/services/ReadablerStorage.js");function p(){(0,r.isSettingsMissing)()||((0,l.mergeOptions)(),e.default.use(o.default).use(t.default).init({debug:!1,fallbackLng:d.ReadablerStorage.getItem("i18nextLng")??"en",supportedLngs:window.readablerAssistantOptions.supportedLngs,load:"languageOnly",nonExplicitSupportedLngs:!0,backend:{loadPath:`${window.readablerAssistantOptions.pluginUrl??""}/public/languages/{{lng}}.json`}}).then(()=>{new u.TriggerButtons,(0,s.headless)(),(0,a.setConfig)(),(0,c.afterRendering)()}).catch(e=>{console.error(e)}))}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",p):p()})()})();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.