@cfpb/ccdb5-ui 2.23.6 → 2.23.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ccdb5.css +1 -1
- package/dist/ccdb5.js +1 -1
- package/package.json +1 -1
package/dist/ccdb5.js
CHANGED
|
@@ -6,4 +6,4 @@
|
|
|
6
6
|
${U(".a-tagline{-moz-column-gap:10px;grid-template-columns:22px 1fr;column-gap:10px;font-size:.75rem;display:grid}.a-tagline__text{display:inline-block}.a-tagline cfpb-flag-usa{margin-top:1px}.a-tagline--large{font-size:1rem}.a-tagline--large cfpb-flag-usa{margin-top:4px}@media print{.a-tagline{-webkit-print-color-adjust:exact;print-color-adjust:exact}}.u-nowrap{white-space:nowrap}")}
|
|
7
7
|
`,"state_atomic_init");function e5(e,t){return function(e,t){if(!e||!e.classList)throw Error(e+' is not valid. Check that element is a DOM node with class "'+t+'"')}(e,t),function(e,t){let n=e.classList.contains(t)?e:e.querySelector("."+t);if(!n)throw Error(t+" not found on or in passed DOM node.");return n}(e,t)}function e4(e){return!eX(e,e7)&&(eZ(e,e7),!0)}function e6(e,t,n,r={}){let a=(n||document).querySelectorAll(e),o=[],s,i;for(let e=0,n=a.length;e<n;e++)!1===eX(i=a[e],e7)&&((s=new t(i)).init(r),o.push(s));return o}function e9(){let e=getComputedStyle(document.body).fontSize;return parseFloat(e=""===e?-1:e)}var e8="o-expandable";function te(e){let t=e5(e,e8),n,r,a,o,s;this.init=function(){if(!e4(t))return this;n=t.querySelector(`.${e8}__header`),r=t.querySelector(`.${e8}__content`),a=t.querySelector(`.${e8}__label`);let e=t.classList.contains(`${e8}--onload-open`);eZ(t,"behavior_flyout-menu"),eZ(n,"behavior_flyout-menu_trigger"),eZ(r,"behavior_flyout-menu_content");let i=e?eG.CLASSES.MH_DEFAULT:eG.CLASSES.MH_ZERO;return o=new eG(r).init(i),e||r.classList.add("u-hidden"),(s=new e3(t)).setTransition(o,o.maxHeightZero,o.maxHeightDefault),s.init(e),s.addEventListener("expandbegin",()=>{r.classList.remove("u-hidden"),this.dispatchEvent("expandbegin",{target:this})}),s.addEventListener("collapseend",()=>{r.classList.add("u-hidden")}),this},this.expand=()=>s.expand(),this.collapse=()=>s.collapse(),this.isExpanded=()=>s.isExpanded(),this.refresh=()=>s.getTransition().refresh(),this.getLabelText=function(){return a.textContent.trim()};let i=new eY;return this.addEventListener=i.addEventListener,this.removeEventListener=i.removeEventListener,this.dispatchEvent=i.dispatchEvent,this}te.BASE_CLASS=e8,te.init=e=>e6(`.${te.BASE_CLASS}`,te,e);var tt="o-expandable-group";function tn(e){let t=e5(e,tt),n=t.classList.contains(`${tt}--accordion`),r;function a(e){let t=e.target;r&&r!==t&&r.collapse(),r=t}return this.init=function(e){return e4(t)&&n&&e.forEach(e=>{e.addEventListener("expandbegin",a)}),this},this}tn.BASE_CLASS=tt,tn.init=e=>{(e||document).querySelectorAll(`.${tt}`).forEach(e=>{let t=e6(`.${te.BASE_CLASS}`,te,e);new tn(e).init(t)})};var tr="o-summary";function ta(e){let t=e5(e,tr),n=t.classList.contains(`${tr}--mobile`),r=t.querySelector(`.${tr}__content`),a=t.querySelector(`.${tr}__btn`),o,s,i;function l(){window.removeEventListener("load",l),i=!f(),eZ(t,"behavior_flyout-menu"),eZ(r,"behavior_flyout-menu_content"),eZ(a,"behavior_flyout-menu_trigger"),s=new e3(t,!1),(o=new eG(r)).init(i?eG.CLASSES.MH_SUMMARY:eG.CLASSES.MH_DEFAULT),s.setTransition(o,o.maxHeightSummary,o.maxHeightDefault),s.addEventListener("triggerclick",p),s.init(),d(),window.addEventListener("resize",d),"onorientationchange"in window&&window.addEventListener("orientationchange",d),t.addEventListener("focusin",c),r.addEventListener("click",u)}function c(e){i||e.target===a||(a.click(),t.removeEventListener("focusin",c))}function u(e){"A"!==e.target.tagName&&s.isExpanded()&&o.refresh()}function d(){f()?i||=(o.animateOff(),s.expand(),m(),!0):i&&=(s.collapse(),o.animateOn(),a.classList.remove("u-hidden"),!1)}function f(){let e,t;return n&&(e=!1,t=function(e){let t,n={};for(t in e||=window.innerWidth,H)n[t]=function(e,t){let n=e.min,r=e.max;return e9()>0&&16!==e9()&&(n=n/16*e9(),r=r/16*e9()),(n||0)<=t&&t<=(r||1/0)}(H[t],e);return n}(),!t.bpXS&&1&&1||(e=!0),!e)||r.scrollHeight<=88}function p(){s.addEventListener("expandend",h)}function h(){m(),window.removeEventListener("resize",d),window.removeEventListener("orientationchange",d),s.removeEventListener("expandend",h),s.suspend(),o.remove()}function m(){a.classList.add("u-hidden")}let v=new eY;return this.addEventListener=v.addEventListener,this.removeEventListener=v.removeEventListener,this.dispatchEvent=v.dispatchEvent,this.init=function(){return e4(t)&&window.addEventListener("load",l),this},this}ta.BASE_CLASS=tr,ta.init=e=>e6(`.${tr}`,ta,e);var to="o-summary-minimal";function ts(e){let t=e5(e,to),n=t.querySelector(`.${to}__content`),r=t.querySelector(`.${to}__btn`),a,o;function s(){window.removeEventListener("load",s),o=new e3(t,!1),(a=new eG(n)).init(eG.CLASSES.MH_SUMMARY),o.setTransition(a,a.maxHeightSummary,a.maxHeightDefault),o.init(),t.addEventListener("focusin",i),n.addEventListener("click",l),o.collapse(),a.animateOn()}function i(e){e.target!==r&&(r.click(),t.removeEventListener("focusin",i))}function l(e){"A"!==e.target.tagName&&o.isExpanded()&&a.refresh()}let c=new eY;return this.addEventListener=c.addEventListener,this.removeEventListener=c.removeEventListener,this.dispatchEvent=c.dispatchEvent,this.init=function(){return e4(t)&&(eZ(t,"behavior_flyout-menu"),eZ(n,"behavior_flyout-menu_content"),eZ(r,"behavior_flyout-menu_trigger"),window.addEventListener("load",s)),this},this}function ti(e,t,n){let r=n?.maxSelections||5,a=[],o=[],s=[],i=[],l=-1;function c(){return o.length>=r}return this.init=function(){return a=function(e){let n,r=[],a;for(let s=0,i=e.length;s<i;s++)n=e[s],a=!c()&&n.defaultSelected,r.push({id:t+"-"+n.value.trim().replace(/\s+/g,"-").toLowerCase(),value:n.value,text:n.text,checked:a}),a&&o.push(s);return r}(e),this},this.toggleOption=function(e){return a[e].checked=!a[e].checked,o.length<r&&a[e].checked?(o.push(e),o.sort(),!0):(a[e].checked=!1,o=o.filter(function(t){return t!==e}),!1)},this.getSelectedIndices=function(){return o},this.isAtMaxSelections=c,this.filterIndices=function(e){return"[object String]"!==Object.prototype.toString.call(e)&&(e=""),i=s,a.length>0&&(s=a.reduce(function(t,n,r){var a,o;return a=e,o=n.text,RegExp(a.trim().replace(/[-\\^$*+?.()|[\]{}]/g,"\\$&"),"i").test(o)&&t.push(r),t},[])),l=-1,s},this.clearFilter=function(){s=i=[]},this.getFilterIndices=function(){return s},this.getLastFilterIndices=function(){return i},this.getIndex=function(){return l},this.setIndex=function(e){let t=s.length,n=0===t?a.length:t;l=e<0?-1:e>=n?n-1:e},this.resetIndex=function(){return l=-1},this.getOption=function(e){return a[e]},this}function tl(e,t,n){let r=document.createElement(e);return Object.keys(n).forEach(e=>{let t=n[e];e in r?r[e]=t:r.setAttribute(e,t)}),t&&t.appendChild(r),r}ts.BASE_CLASS=to,ts.init=e=>e6(`.${to}`,ts,e);var tc="o-multiselect",tu="prev",td="next",tf="Enter",tp="Escape",th="ArrowDown",tm={renderTags:!0,maxSelections:5};function tv(e){e.classList.add(tc);let t=e5(e,tc),n=!1,r,a,o,s,i,l,c,u,d,f,p,h=[],m;function v(){p.classList.remove("u-filtered","u-no-results");for(let e=0,t=p.children.length;e<t;e++)p.children[e].classList.remove("u-filter-match");o.clearFilter()}function g(){return l.classList.add("u-active"),f.classList.remove("u-invisible"),f.setAttribute("aria-hidden",!1),m.dispatchEvent("expandbegin",{target:m}),m}function b(){return l.classList.remove("u-active"),f.classList.add("u-invisible"),f.setAttribute("aria-hidden",!0),o.resetIndex(),m.dispatchEvent("collapsebegin",{target:m}),m}function y(e){e===td?o.setIndex(o.getIndex()+1):e===tu&&o.setIndex(o.getIndex()-1);let t=o.getIndex();if(t>-1){let e=t,r=o.getFilterIndices();r.length>0&&(e=r[t]);let a=o.getOption(e).value,s=p.querySelector('[data-option="'+a+'"]').querySelector("input");n=!0,s.focus()}else n=!1,d.focus()}function w(){d.value="",v()}function x(e){let t=e.target;"BUTTON"===t.tagName&&(e.preventDefault(),t.removeEventListener("click",x),t.querySelector("label").click())}function S(e){if(" "===e.key||e.key===tf){let t=e.target.querySelector("label");p.querySelector("#"+t.getAttribute("for")).click()}}function k(e){return r+"-"+e.value.trim().replace(/[^\w]/g,"-").toLowerCase()}function _(e,t){let n=k(t),r=tl("li",null,{"data-option":t.value}),a=tl("button",r,{type:"button",class:"a-tag-filter",innerHTML:"<label for="+n+">"+t.text+'<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" class="cf-icon-svg cf-icon-svg--error" viewBox="0 0 12 19"><path d="M11.383 13.644A1.03 1.03 0 0 1 9.928 15.1L6 11.172 2.072 15.1a1.03 1.03 0 1 1-1.455-1.456l3.928-3.928L.617 5.79a1.03 1.03 0 1 1 1.455-1.456L6 8.261l3.928-3.928a1.03 1.03 0 0 1 1.455 1.456L7.455 9.716z"/></svg></label>'});e.appendChild(r),a.addEventListener("click",x),a.addEventListener("keydown",S)}function E(e){let t=o.getOption(e)||o.getOption(o.getIndex());if(t){if(t.checked){p.classList.contains("u-max-selections")&&p.classList.remove("u-max-selections");let e='[data-option="'+t.value+'"]',n=c.querySelector(e);void 0!==n&&n&&c?.removeChild(n)}else i?.renderTags&&c&&_(c,t);o.toggleOption(e),o.isAtMaxSelections()&&p.classList.add("u-max-selections"),m.dispatchEvent("selectionsupdated",{target:m})}o.resetIndex(),n=!1,"false"===f.getAttribute("aria-hidden")&&d.focus()}function j(e){E(Number(e.target.getAttribute("data-index"))),w()}this.init=function(e=tm){if(!e4(t)||(new RegExp(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i)).test(navigator.userAgent))return this;if(m=this,r=t.name||t.id,a=t.getAttribute("data-placeholder"),s=t.options||[],i={...tm,...e},s.length>0){o=new ti(s,r,i).init();let e=function(){let e,n,m;(l=document.createElement("div")).className=tc,c=tl("ul",null,{className:"m-tag-group"}),u=tl("header",l,{className:"o-multiselect__header"}),d=tl("input",u,{className:"o-multiselect__search a-text-input",type:"text",placeholder:a||"Select up to five",id:t.id,autocomplete:"off"}),f=tl("fieldset",l,{className:"o-multiselect__fieldset u-invisible","aria-hidden":"true"});let v="o-multiselect__options";o.isAtMaxSelections()&&(v+=" u-max-selections"),p=tl("ul",f,{className:v});for(let t=0,a=s.length;t<a;t++){n=k(e=s[t]),m=o.getOption(t).checked;let a=tl("li",p,{"data-option":e.value,"data-cy":"multiselect-option",class:"m-form-field m-form-field--checkbox"});tl("input",a,{id:n,type:"checkbox",value:e.value,name:r,class:"a-checkbox o-multiselect__checkbox",checked:m,"data-index":t}),tl("label",a,{for:n,textContent:e.text,className:"o-multiselect__label a-label"}),h.push(a),m&&i?.renderTags&&_(c,e)}return l.insertBefore(c,u),t.parentNode.insertBefore(l,t),l.appendChild(t),l}();t.parentNode.removeChild(t),e4(t=e),function(){u.addEventListener("mousemove",function(e){let t=e.target;e.offsetX>t.offsetWidth-35?t.style.cursor="pointer":t.style.cursor="auto"}),u.addEventListener("mouseup",function(e){let t=e.target;e.offsetX>t.offsetWidth-35&&140===f.offsetHeight&&d.blur()}),d.addEventListener("input",function(){var e=this.value;v(),o.resetIndex(),o.filterIndices(e).length>0?function(){p.classList.remove("u-no-results"),p.classList.add("u-filtered");let e=o.getLastFilterIndices();for(let t=0,n=e.length;t<n;t++)h[e[t]].classList.remove("u-filter-match");e=o.getFilterIndices();for(let t=0,n=e.length;t<n;t++)h[e[t]].classList.add("u-filter-match")}():(p.classList.add("u-no-results"),p.classList.remove("u-filtered"))}),d.addEventListener("focus",function(){"true"===f.getAttribute("aria-hidden")&&g()}),d.addEventListener("blur",function(){n||"false"!==f.getAttribute("aria-hidden")||b()}),d.addEventListener("keydown",function(e){let t=e.key;"true"===f.getAttribute("aria-hidden")&&"Tab"!==t&&g(),t===tf?(e.preventDefault(),y(td)):t===tp?(w(),b()):t===th?y(td):"Tab"!==t||e.shiftKey||"false"!==f.getAttribute("aria-hidden")||b()}),p.addEventListener("mousedown",function(){n=!0}),p.addEventListener("keydown",function(e){let t=e.key,n=e.target,r=n.checked;if(t===tf){e.preventDefault(),n.checked=!r;let t=new Event("change",{bubbles:!1,cancelable:!0});n.dispatchEvent(t)}else t===tp?(d.focus(),b()):"ArrowUp"===t?y(tu):t===th&&y(td)}),f.addEventListener("mousedown",function(e){"LABEL"===e.target.tagName&&(n=!0)});let e=p.querySelectorAll("input");for(let t=0,n=e.length;t<n;t++)e[t].addEventListener("change",j);let t=c.querySelectorAll("button");for(let e=0,n=t.length;e<n;e++)t[e].addEventListener("click",x),t[e].addEventListener("keydown",S)}()}return this},this.expand=g,this.collapse=b;let C=new eY;return this.addEventListener=C.addEventListener,this.removeEventListener=C.removeEventListener,this.dispatchEvent=C.dispatchEvent,this.getModel=function(){return o},this.updateSelections=E,this.selectionClickHandler=x,this.selectionKeyDownHandler=S,this}tv.BASE_CLASS=tc,tv.init=e=>e6(`.${tc}`,tv,void 0,e);var tg=["a-btn"],tb={primary:[],secondary:["a-btn--secondary"],warning:["a-btn--warning"]},ty={default:[],full:["a-btn--full-on-xs"]},tw=(0,g.forwardRef)(({appearance:e="primary",isLink:t=!1,size:n="default",label:r,className:a,iconLeft:o,iconRight:s,children:i,...l},c)=>{let u=[...tg,...tb[e],...ty[n]];t&&u.push("a-btn--link"),a&&u.push(a),l.disabled&&u.push("a-btn--disabled");let d=!!o,f=!!s;if(d&&f)throw Error("Button component: only one of iconLeft or iconRight can be provided");let p=r?d||f?(0,h.jsx)("span",{children:r}):r:null;return(0,h.jsxs)("button",{ref:c,type:"button",className:[...u].join(" "),...l,children:[i,!!o&&(0,h.jsx)(N,{name:o,isPresentational:!0}),p,!!s&&(0,h.jsx)(N,{name:s,isPresentational:!0})]})});tw.displayName="Button";var tx=({className:e,children:t,...n})=>t?(0,h.jsx)("div",{className:`m-btn-group ${e??""}`,...n,children:t}):null,tS=({children:e,className:t,...n})=>e?(0,h.jsxs)("small",{className:(0,E.default)(["a-label__helper",t]),...n,children:["(",e,")"]}):null,tk=["a-label"],t_=({children:e,isInline:t=!1,htmlFor:n,className:r,...a})=>{if(!e)return null;let o=[...tk,t?"":"a-label--heading",r];return(0,h.jsx)("label",{...a,className:(0,E.default)(o),htmlFor:n,children:e})},tE=["m-form-field m-form-field--checkbox"],tj={success:"m-form-field--checkbox-success",warning:"m-form-field--checkbox-warning",error:"m-form-field--checkbox-error"},tC=({id:e,label:t,className:n,inputClassName:r,labelClassName:a="",checked:o,defaultChecked:s,helperText:i,inputRef:l,disabled:c=!1,isLarge:u=!1,isLabelInline:d=!0,isIndeterminate:f=!1,name:p,onChange:m,status:v,...b})=>{let y=void 0!==o,w=(0,g.useRef)(null),x=l??w,S=(0,g.useCallback)(e=>{m?.(e)},[m]),k=[...tE,u?"m-form-field--lg-target":"",v?tj[v]:"",n],_={...b,id:e,type:"checkbox","aria-labelledby":`${e}-label`,name:p??e,ref:x,disabled:c,onChange:S,"data-testid":`${e}-input`,className:(0,E.default)(["a-checkbox",r])};return y?Object.assign(_,{checked:o,"aria-checked":o}):Object.assign(_,{defaultChecked:s??!1}),f&&Object.assign(_,{"aria-checked":"mixed"}),(0,g.useEffect)(()=>{"object"==typeof x&&null!==x.current&&(x.current.indeterminate=f)},[f]),(0,h.jsxs)("div",{className:(0,E.default)(k),children:[(0,h.jsx)("input",{..._}),(0,h.jsxs)(t_,{id:`${e}-label`,className:a,htmlFor:e,isInline:d,children:[t,(0,h.jsx)(tS,{children:i})]})]})};(p9={})[p9.Full=12]="Full",p9[p9.ThreeQuarters=9]="ThreeQuarters",p9[p9.TwoThirds=8]="TwoThirds",p9[p9.Half=6]="Half",p9[p9.Third=4]="Third",p9[p9.Quarter=3]="Quarter",p9[p9.Single=1]="Single",(0,h.jsx)(L,{to:"/",label:"Link"},"1"),(0,h.jsx)(L,{className:"nav-item active",to:"/2",label:"Link"},"2"),(0,h.jsx)(L,{className:"nav-item",to:"/3",label:"Link"},"3"),(0,h.jsx)(tw,{appearance:"secondary",label:"Log out",onClick:()=>{}},"logout");var tP=({type:e="1",children:t,className:n,...r})=>{if("slug"===e)return(0,h.jsx)("header",{className:(0,E.default)("m-slug-header",n),...r,children:(0,h.jsx)("h2",{className:"m-slug-header__heading",children:t})});let a,o=[n];return"display"===e?(a="h1",o.push("superheading")):"eyebrow"===e?(a="div",o.push("h5 eyebrow")):a=`h${e}`,(0,h.jsx)(a,{...r,className:(0,E.default)(o),children:t})},tN=()=>null,tO=()=>(0,h.jsx)(tw,{isLink:!0,className:"m-pagination__btn-submit",id:"m-pagination__btn-submit-default",label:"Go",type:"submit"}),tT=({tableId:e,page:t,pageCount:n,onChange:r})=>{let a=`${e}-pagination_current-page`;return(0,h.jsxs)("label",{className:"m-pagination__label",htmlFor:a,children:["Page",(0,h.jsx)("span",{className:"u-visually-hidden",children:`number ${t} out`}),(0,h.jsx)("input",{className:"m-pagination__current-page",id:a,name:"page",type:"number",min:"1",max:n,pattern:"[0-9]*",inputMode:"numeric",value:t,onChange:e=>{r(Number(e.currentTarget.value))}}),`of ${n}`]})},tA=({tableId:e,page:t,pageCount:n,onClickPrevious:r=tN,onClickNext:a=tN,onClickGo:o=tN,previousLabel:s="Previous",nextLabel:i="Next"})=>{let[l,c]=(0,g.useState)(t);(0,g.useEffect)(()=>c(t),[t]);let u=(0,g.useId)();return(0,h.jsxs)("nav",{className:"m-pagination",role:"navigation","aria-label":"Pagination",children:[(0,h.jsx)(tw,{iconLeft:"left",className:`m-pagination__btn-prev${1===t?" a-btn--disabled":""}`,onClick:r,label:s,disabled:1===t}),(0,h.jsx)(tw,{iconRight:"right",className:`m-pagination__btn-next${t===n?" a-btn--disabled":""}`,onClick:a,label:i,disabled:t===n}),(0,h.jsxs)("form",{className:"m-pagination__form",action:"#pagination_content",onSubmit:e=>{e.preventDefault();let n=Number(Object.fromEntries(new FormData(e.currentTarget)).page);n!==t&&o(n)},children:[(0,h.jsx)(tT,{tableId:e??u,page:l,pageCount:n,onChange:c}),(0,h.jsx)(tO,{})]})]})};function tM({children:e,isLead:t,className:n,...r}){let a=[n];return t&&a.push("lead-paragraph"),(0,h.jsx)("p",{...r,className:(0,E.default)(a),children:e})}var tR=({id:e,options:t,label:n,onChange:r=tN,value:a="",defaultOptionLabel:o="-- select an option --",...s})=>{let i;return(0,h.jsxs)("div",{className:"m-form-field",children:[(0,h.jsx)("label",{className:"a-label a-label--heading",htmlFor:e,children:n}),(0,h.jsx)("div",{className:"a-select",children:(0,h.jsx)("select",{id:e,...s,onChange:e=>{let n,a=(n=e.target.value,t.find(e=>e.value===n));return r(a),a},value:a,children:(i=t.map(({value:e,label:t})=>(0,h.jsx)("option",{value:e,children:t},e))).length>0?i:[(0,h.jsx)("option",{disabled:!0,value:"",children:o},"initial")]})})]})},tz=({children:e})=>e?(0,h.jsx)("caption",{children:e}):null;(0,g.forwardRef)(({id:e,caption:t,columns:n,rows:r,isResponsive:a=!1,isScrollableHorizontal:o=!1,isStriped:s=!1,isPaginated:i=!1,startPage:l=1,perPage:c=20,className:u,divRef:d,tableRef:f,...p},m)=>{let[v,b]=(({isPaginated:e=!0,startPage:t=1,rows:n=[],perPage:r=20})=>{let a=n.length,o=Math.max(Math.ceil(a/r),1),s=e&&a>r,[i,l]=(0,g.useState)(Math.min(t,o));if((0,g.useEffect)(()=>{l(Math.min(i,o))},[i,o,r]),!e||!s)return[n,{page:1,pageCount:1,onClickNext:tN,onClickPrevious:tN,onClickGo:tN}];let c=i-1;return[n.slice(c*r,c*r+r),{page:i,pageCount:o,onClickNext:()=>l(Math.min(i+1,o)),onClickPrevious:()=>l(Math.max(c,1)),onClickGo:e=>l(e)}]})({rows:r,isPaginated:i,startPage:l,perPage:c}),y=(0,g.useId)(),w=[];a&&w.push("o-table o-table--stack-on-small"),s&&w.push("o-table--striped"),i&&w.push("u-w100pct"),u&&w.push(u);let x=(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)("table",{className:(0,E.default)(w),ref:f,id:e??y,...p,children:[(0,h.jsx)(tz,{children:t}),(0,h.jsx)("thead",{children:(0,h.jsx)("tr",{children:n.map((e,t)=>{let n,r=[""],a=`header-${t}`;return"object"==typeof e?(n=e.header,e.isAlignRight&&r.push("o-table__cell--right-align"),e.width&&r.push(`u-w${e.width}pct`),e.isHeaderWordWrap||r.push("white-space-nowrap")):n=e,(0,h.jsx)("th",{className:(0,E.default)(r),children:n},a)})})}),(0,h.jsx)("tbody",{children:v.map((e,t)=>{let r=`row-${t}`;return(0,h.jsx)("tr",{children:e.map((e,r)=>{let a=n[r],o=`row-${t}-col-${r}`;return(0,g.createElement)("td",{...(e=>{if(!e)return{};if("string"==typeof e)return{"data-label":e};let t=[""];return e.isAlignRight&&t.push("o-table__cell--right-align"),e.isCellDisableWordWrap&&t.push("white-space-nowrap"),!e.isCellDisableWordWrap&&e.isCellWordBreak&&t.push("word-break-break-all"),{"data-label":e.header,className:(0,E.default)(t)}})(a),key:o},e)})},r)})})]}),i?(0,h.jsx)(tA,{...b,tableId:e??y}):null]});return o?(0,h.jsx)("div",{className:"o-table o-table--scrolling",ref:m??d,children:x}):x}).displayName="Table";var tL={success:"a-text-input--success",error:"a-text-input--error",warning:"a-text-input--warning"},tI=e=>e?tL[e]??"":"",tD=(0,g.forwardRef)(({id:e,className:t,status:n,placeholder:r="Placeholder text",isFullWidth:a=!1,isDisabled:o=!1,onChange:s=tN,...i},l)=>{let{style:c,...u}=i,d=["a-text-input",t,tI(n)];a&&d.push("a-text-input--full");let f=(0,h.jsx)("textarea",{className:(0,E.default)(d),id:e,placeholder:r,onChange:e=>{e.preventDefault(),s(e.target.value)},disabled:o,ref:l,style:{...c,resize:"vertical"},...u});return a?(0,h.jsx)("div",{className:"m-form-field",children:f}):f});tD.displayName="TextArea";var tH=(0,g.forwardRef)(({className:e,id:t,inputRef:n,isDisabled:r=!1,name:a,status:o,type:s="text",isFullWidth:i=!1,...l},c)=>{let u=["a-text-input",e,tI(o)];i&&u.push("a-text-input--full");let d=(0,h.jsx)("input",{className:(0,E.default)(u),disabled:r,id:t,name:a,type:s,ref:c,...l});return i?(0,h.jsx)("div",{className:"m-form-field",children:d}):d});tH.displayName="TextInput";var tF=e=>e?"string"==typeof e?(0,h.jsx)(tM,{children:e}):e:null,tB=({heading:e,subheading:t,description:n,callToAction:r,className:a,...o})=>{let s=r&&(0,h.jsx)(O,{isLinks:!0,children:(0,g.isValidElement)(r)&&(r.type===z||r.type===D)?r:(0,h.jsx)(z,{children:(0,g.cloneElement)(r,{type:"list"})})});return(0,h.jsxs)("div",{className:(0,E.default)(["o-text-introduction",a]),...o,children:[(0,h.jsx)(tP,{type:"1",children:e}),(0,h.jsx)(tM,{isLead:!0,children:t}),tF(n),s]})},t$=({className:e,children:t,...n})=>(0,h.jsx)("div",{className:(0,E.default)(["o-text-introduction",e]),...n,children:t});t$.displayName="TextIntroduction.Container",tB.Container=t$;var tV=({children:e})=>(0,h.jsx)(tP,{type:"1",children:e});tV.displayName="TextIntroduction.Heading",tB.Heading=tV;var tq=({children:e})=>tF(e);tq.displayName="TextIntroduction.Description",tB.Description=tq;var tU=({children:e})=>(0,h.jsx)(tM,{isLead:!0,children:e});tU.displayName="TextIntroduction.Subheading",tB.Subheading=tU;var tW=({children:e,className:t="",...n})=>(0,h.jsx)("div",{className:`o-well ${t}`,...n,children:e}),tY=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,tK=/^[\\/]{2}/,tQ="popstate";function tG(e){return"object"==typeof e&&null!=e&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function tJ(e,t){if(!1===e||null==e)throw Error(t)}function tX(e,t){if(!e){"u">typeof console&&console.warn(t);try{throw Error(t)}catch(e){}}}function tZ(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function t0(e,t,n=null,r,a){return{pathname:"string"==typeof e?e:e.pathname,search:"",hash:"",..."string"==typeof t?t2(t):t,state:n,key:t&&t.key||r||Math.random().toString(36).substring(2,10),mask:a}}function t1({pathname:e="/",search:t="",hash:n=""}){return t&&"?"!==t&&(e+="?"===t.charAt(0)?t:"?"+t),n&&"#"!==n&&(e+="#"===n.charAt(0)?n:"#"+n),e}function t2(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function t3(e,t,n="/"){return t7(e,t,n,!1)}function t7(e,t,n,r,a){let o,s=ne(("string"==typeof t?t2(t):t).pathname||"/",n);if(null==s)return null;let i=a??((o=function e(t,n=[],r=[],a="",o=!1){let s=(t,s,i=o,l)=>{var c,u;let d,f,p={relativePath:void 0===l?t.path||"":l,caseSensitive:!0===t.caseSensitive,childrenIndex:s,route:t};if(p.relativePath.startsWith("/")){if(!p.relativePath.startsWith(a)&&i)return;tJ(p.relativePath.startsWith(a),`Absolute route path "${p.relativePath}" nested under path "${a}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),p.relativePath=p.relativePath.slice(a.length)}let h=ns([a,p.relativePath]),m=r.concat(p);t.children&&t.children.length>0&&(tJ(!0!==t.index,`Index routes must not have child routes. Please remove all child routes from route path "${h}".`),e(t.children,n,m,h,i)),(null!=t.path||t.index)&&n.push({path:h,score:(c=h,u=t.index,f=(d=c.split("/")).length,d.some(t4)&&(f+=-2),u&&(f+=2),d.filter(e=>!t4(e)).reduce((e,t)=>e+(t5.test(t)?3:""===t?1:10),f)),routesMeta:m.map((e,t)=>{let[n,r]=t8(e.relativePath,e.caseSensitive,t===m.length-1);return{...e,matcher:n,compiledParams:r}})})};return t.forEach((e,t)=>{if(""!==e.path&&e.path?.includes("?"))for(let n of function e(t){let n=t.split("/");if(0===n.length)return[];let[r,...a]=n,o=r.endsWith("?"),s=r.replace(/\?$/,"");if(0===a.length)return o?[s,""]:[s];let i=e(a.join("/")),l=[];return l.push(...i.map(e=>""===e?s:[s,e].join("/"))),o&&l.push(...i),l.map(e=>t.startsWith("/")&&""===e?"/":e)}(e.path))s(e,t,!0,n);else s(e,t)}),n}(e)).sort((e,t)=>{var n,r;return e.score!==t.score?t.score-e.score:(n=e.routesMeta.map(e=>e.childrenIndex),r=t.routesMeta.map(e=>e.childrenIndex),n.length===r.length&&n.slice(0,-1).every((e,t)=>e===r[t])?n[n.length-1]-r[r.length-1]:0)}),o),l=null,c=function(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return tX(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}(s);for(let e=0;null==l&&e<i.length;++e)l=function(e,t,n=!1){let{routesMeta:r}=e,a={},o="/",s=[];for(let e=0;e<r.length;++e){let i=r[e],l=e===r.length-1,c="/"===o?t:t.slice(o.length)||"/",u={path:i.relativePath,caseSensitive:i.caseSensitive,end:l},d=i.matcher&&i.compiledParams?t9(u,c,i.matcher,i.compiledParams):t6(u,c),f=i.route;if(!d&&l&&n&&!r[r.length-1].route.index&&(d=t6({path:i.relativePath,caseSensitive:i.caseSensitive,end:!1},c)),!d)return null;Object.assign(a,d.params),s.push({params:a,pathname:ns([o,d.pathname]),pathnameBase:nl(ns([o,d.pathnameBase])),route:f}),"/"!==d.pathnameBase&&(o=ns([o,d.pathnameBase]))}return s}(i[e],c,r);return l}new WeakMap;var t5=/^:[\w-]+$/,t4=e=>"*"===e;function t6(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=t8(e.path,e.caseSensitive,e.end);return t9(e,t,n,r)}function t9(e,t,n,r){let a=t.match(n);if(!a)return null;let o=a[0],s=ni(o,1),i=a.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if("*"===t){let e=i[r]||"";s=ni(o.slice(0,o.length-e.length),1)}let a=i[r];return n&&!a?e[t]=void 0:e[t]=(a||"").replace(/%2F/g,"/"),e},{}),pathname:o,pathnameBase:s,pattern:e}}function t8(e,t=!1,n=!0){tX("*"===e||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,n,a,o)=>{if(r.push({paramName:t,isOptional:null!=n}),n){let t=o.charAt(a+e.length);return t&&"/"!==t?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),a+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":""!==e&&"/"!==e&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}function ne(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function nt(e,t){let n=ni(t).split("/");return e.split("/").forEach(e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)}),n.length>1?n.join("/"):"/"}function nn(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function nr(e){let t=e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function na(e,t,n,r=!1){let a,o;"string"==typeof e?a=t2(e):(tJ(!(a={...e}).pathname||!a.pathname.includes("?"),nn("?","pathname","search",a)),tJ(!a.pathname||!a.pathname.includes("#"),nn("#","pathname","hash",a)),tJ(!a.search||!a.search.includes("#"),nn("#","search","hash",a)));let s=""===e||""===a.pathname,i=s?"/":a.pathname;if(null==i)o=n;else{let e=t.length-1;if(!r&&i.startsWith("..")){let t=i.split("/");for(;".."===t[0];)t.shift(),e-=1;a.pathname=t.join("/")}o=e>=0?t[e]:"/"}let l=function(e,t="/"){let{pathname:n,search:r="",hash:a=""}="string"==typeof e?t2(e):e;return{pathname:n?(n=no(n)).startsWith("/")||n.startsWith("\\")?nt(n.substring(1),"/"):nt(n,t):t,search:nc(r),hash:nu(a)}}(a,o),c=i&&"/"!==i&&i.endsWith("/"),u=(s||"."===i)&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}var no=e=>e.replace(/[\\/]{2,}/g,"/"),ns=e=>no(e.join("/"));function ni(e,t=0){let n=e.length;for(;n>t&&47===e.charCodeAt(n-1);)n--;return n===e.length?e:e.slice(0,n)}var nl=e=>ni(e).replace(/^\/*/,"/"),nc=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",nu=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"",nd=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function nf(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}var np="u">typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function nh(e,t){let n=e;if("string"!=typeof n||!tY.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,a=!1;if(np)try{var o;let e=new URL(window.location.href),r=new URL(tK.test(n)?(o=n,e.protocol+o.replace(/\\/g,"/")):n),s=ne(r.pathname,t);r.origin===e.origin&&null!=s?n=s+r.search+r.hash:a=!0}catch(e){tX(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:a,to:n}}Symbol("Uninstrumented"),Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var nm=new URL("http://localhost");function nv(e){if(e.createURL)return e.createURL("/");try{return new URL(e.createHref("/"),nm)}catch{return nm}}function ng(e,t){return e.origin===t.origin&&("null"!==e.origin||e.protocol===t.protocol&&e.host===t.host)}function nb(e,t,n,r){let a=null;try{a=null==e?null:new URL(e,n)}catch{}let o=new URL(t,n),s=null!=a&&!ng(a,n),i=!ng(o,n);if("reject"===r){if(s||i)throw Error("External navigation is not allowed")}else if(i&&(null==a||!function(e,t){if(e.startsWith("//"))return!0;let n=t.protocol.toLowerCase();return!!e.toLowerCase().startsWith(n)&&(""===t.host||e.slice(n.length).startsWith("//"))}(e,a)||!ng(a,o)))throw Error("External navigation is not allowed")}Symbol("ResetLoaderData"),new WeakMap,new WeakMap,new WeakMap,new WeakMap;var ny=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"],nw=g.createContext(null);nw.displayName="DataRouter";var nx=g.createContext(null);nx.displayName="DataRouterState";var nS=g.createContext(!1);function nk(){return g.useContext(nS)}var n_=g.createContext({isTransitioning:!1});n_.displayName="ViewTransition",g.createContext(new Map).displayName="Fetchers",g.createContext(null).displayName="Await";var nE=g.createContext(null);nE.displayName="Navigation";var nj=g.createContext(null);nj.displayName="Location";var nC=g.createContext({outlet:null,matches:[],isDataRoute:!1});nC.displayName="Route";var nP=g.createContext(null);nP.displayName="RouteError";var nN="REACT_ROUTER_ERROR";function nO(){return null!=g.useContext(nj)}function nT(){return tJ(nO(),"useLocation() may be used only in the context of a <Router> component."),g.useContext(nj).location}var nA="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function nM(e){g.useContext(nE).static||g.useLayoutEffect(e)}function nR(e,{relative:t}={}){let{matches:n}=g.useContext(nC),{pathname:r}=nT(),a=JSON.stringify(nr(n));return g.useMemo(()=>na(e,JSON.parse(a),r,"path"===t),[e,a,r,t])}function nz(e,t,n){let r;tJ(nO(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:a}=g.useContext(nE),{matches:o}=g.useContext(nC),s=o[o.length-1],i=s?s.params:{},l=s?s.pathname:"/",c=s?s.pathnameBase:"/",u=s&&s.route;{let e=u&&u.path||"";nU(l,!u||e.endsWith("*")||e.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${l}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
8
8
|
|
|
9
|
-
Please change the parent <Route path="${e}"> to <Route path="${"/"===e?"*":`${e}/*`}">.`)}let d=nT();if(t){let e="string"==typeof t?t2(t):t;tJ("/"===c||e.pathname?.startsWith(c),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${c}" but pathname "${e.pathname}" was given in the \`location\` prop.`),r=e}else r=d;let f=r.pathname||"/",p=f;if("/"!==c){let e=c.replace(/^\//,"").split("/");p="/"+f.replace(/^\//,"").split("/").slice(e.length).join("/")}let h=n&&n.state.matches.length?n.state.matches.map(e=>Object.assign(e,{route:n.manifest[e.route.id]||e.route})):t3(e,{pathname:p});tX(u||null!=h,`No routes matched location "${r.pathname}${r.search}${r.hash}" `),tX(null==h||void 0!==h[h.length-1].route.element||void 0!==h[h.length-1].route.Component||void 0!==h[h.length-1].route.lazy,`Matched leaf route at location "${r.pathname}${r.search}${r.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let m=function(e,t=[],n){let r=n?.state;if(null==e){if(!r)return null;if(r.errors)e=r.matches;else{if(0!==t.length||r.initialized||!(r.matches.length>0))return null;e=r.matches}}let a=e,o=r?.errors;if(null!=o){let e=a.findIndex(e=>e.route.id&&o?.[e.route.id]!==void 0);tJ(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`),a=a.slice(0,Math.min(a.length,e+1))}let s=!1,i=-1;if(n&&r){s=r.renderFallback;for(let e=0;e<a.length;e++){let t=a[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(i=e),t.route.id){let{loaderData:e,errors:o}=r,l=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!o||void 0===o[t.route.id]);if(t.route.lazy||l){n.isStatic&&(s=!0),a=i>=0?a.slice(0,i+1):[a[0]];break}}}}let l=n?.onError,c=r&&l?(e,t)=>{l(e,{location:r.location,params:r.matches?.[0]?.params??{},pattern:ns(r.matches.map(e=>e.route.path).filter(Boolean))||"/",errorInfo:t})}:void 0;return a.reduceRight((e,n,l)=>{let u,d=!1,f=null,p=null;r&&(u=o&&n.route.id?o[n.route.id]:void 0,f=n.route.errorElement||nL,s&&(i<0&&0===l?(nU("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,p=null):i===l&&(d=!0,p=n.route.hydrateFallbackElement||null)));let h=t.concat(a.slice(0,l+1)),m=()=>{let t;return t=u?f:d?p:n.route.Component?g.createElement(n.route.Component,null):n.route.element?n.route.element:e,g.createElement(nF,{match:n,routeContext:{outlet:e,matches:h,isDataRoute:null!=r},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||0===l)?g.createElement(nI,{location:r.location,revalidation:r.revalidation,component:f,error:u,children:m(),routeContext:{outlet:null,matches:h,isDataRoute:!0},onError:c}):m()},null)}(h&&h.map(e=>Object.assign({},e,{params:Object.assign({},i,e.params),pathname:ns([c,a.encodeLocation?a.encodeLocation(e.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?c:ns([c,a.encodeLocation?a.encodeLocation(e.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathnameBase])})),o,n);return t&&m?g.createElement(nj.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...r},navigationType:"POP"}},m):m}g.createContext(null);var nL=g.createElement(function(){let e,t,n,r=(e=g.useContext(nP),t=n$("useRouteError"),n=nV("useRouteError"),void 0!==e?e:t.errors?.[n]),a=nf(r)?`${r.status} ${r.statusText}`:r instanceof Error?r.message:JSON.stringify(r),o=r instanceof Error?r.stack:null,s="rgba(200,200,200, 0.5)",i={padding:"2px 4px",backgroundColor:s},l=null;return console.error("Error handled by React Router default ErrorBoundary:",r),l=g.createElement(g.Fragment,null,g.createElement("p",null,"💿 Hey developer 👋"),g.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",g.createElement("code",{style:i},"ErrorBoundary")," or"," ",g.createElement("code",{style:i},"errorElement")," prop on your route.")),g.createElement(g.Fragment,null,g.createElement("h2",null,"Unexpected Application Error!"),g.createElement("h3",{style:{fontStyle:"italic"}},a),o?g.createElement("pre",{style:{padding:"0.5rem",backgroundColor:s}},o):null,l)},null),nI=class extends g.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&"object"==typeof e&&e&&"digest"in e&&"string"==typeof e.digest){let t=function(e){if(e.startsWith(`${nN}:ROUTE_ERROR_RESPONSE:{`))try{let t=JSON.parse(e.slice(40));if("object"==typeof t&&t&&"number"==typeof t.status&&"string"==typeof t.statusText)return new nd(t.status,t.statusText,t.data)}catch{}}(e.digest);t&&(e=t)}let t=void 0!==e?g.createElement(nC.Provider,{value:this.props.routeContext},g.createElement(nP.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?g.createElement(nH,{error:e},t):t}};nI.contextType=nS;var nD=new WeakMap;function nH({children:e,error:t}){let{basename:n,navigator:r}=g.useContext(nE);if("object"==typeof t&&t&&"digest"in t&&"string"==typeof t.digest){let e=function(e){if(e.startsWith(`${nN}:REDIRECT:{`))try{let t=JSON.parse(e.slice(28));if("object"==typeof t&&t&&"number"==typeof t.status&&"string"==typeof t.statusText&&"string"==typeof t.location&&"boolean"==typeof t.reloadDocument&&"boolean"==typeof t.replace)return t}catch{}}(t.digest);if(e){let a=nD.get(t);if(a)throw a;let o=nh(e.location,n),s=o.absoluteURL||o.to;if(nb(e.location,s,nv(r),"allow-explicit"),function(e){try{return ny.includes(new URL(e).protocol)}catch{return!1}}(s))throw Error("Invalid redirect location");if(np&&!nD.get(t))if(o.isExternal||e.reloadDocument)window.location.href=s;else{let n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(o.to,{replace:e.replace}));throw nD.set(t,n),n}return g.createElement("meta",{httpEquiv:"refresh",content:`0;url=${s}`})}}return e}function nF({routeContext:e,match:t,children:n}){let r=g.useContext(nw);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),g.createElement(nC.Provider,{value:e},n)}function nB(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function n$(e){let t=g.useContext(nx);return tJ(t,nB(e)),t}function nV(e){let t,n=(tJ(t=g.useContext(nC),nB(e)),t),r=n.matches[n.matches.length-1];return tJ(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}var nq={};function nU(e,t,n){t||nq[e]||(nq[e]=!0,tX(!1,n))}function nW(e){tJ(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function nY({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:a,static:o=!1,useTransitions:s}){tJ(!nO(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let i=e.replace(/^\/*/,"/"),l=g.useMemo(()=>({basename:i,navigator:a,static:o,useTransitions:s,future:{}}),[i,a,o,s]);"string"==typeof n&&(n=t2(n));let{pathname:c="/",search:u="",hash:d="",state:f=null,key:p="default",mask:h}=n,m=g.useMemo(()=>{let e=ne(c,i);return null==e?null:{location:{pathname:e,search:u,hash:d,state:f,key:p,mask:h},navigationType:r}},[i,c,u,d,f,p,r,h]);return(tX(null!=m,`<Router basename="${i}"> is not able to match the URL "${c}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`),null==m)?null:g.createElement(nE.Provider,{value:l},g.createElement(nj.Provider,{children:t,value:m}))}function nK({children:e,location:t}){return nz(function e(t,n=[]){let r=[];return g.Children.forEach(t,(t,a)=>{if(!g.isValidElement(t))return;let o=[...n,a];if(t.type===g.Fragment)return void r.push.apply(r,e(t.props.children,o));tJ(t.type===nW,`[${"string"==typeof t.type?t.type:t.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),tJ(!t.props.index||!t.props.children,"An index route cannot have child routes.");let s={id:t.props.id||o.join("-"),caseSensitive:t.props.caseSensitive,element:t.props.element,Component:t.props.Component,index:t.props.index,path:t.props.path,middleware:t.props.middleware,loader:t.props.loader,action:t.props.action,hydrateFallbackElement:t.props.hydrateFallbackElement,HydrateFallback:t.props.HydrateFallback,errorElement:t.props.errorElement,ErrorBoundary:t.props.ErrorBoundary,hasErrorBoundary:!0===t.props.hasErrorBoundary||null!=t.props.ErrorBoundary||null!=t.props.errorElement,shouldRevalidate:t.props.shouldRevalidate,handle:t.props.handle,lazy:t.props.lazy};t.props.children&&(s.children=e(t.props.children,o)),r.push(s)}),r}(e),t)}b.useOptimistic,g.memo(function({routes:e,manifest:t,future:n,state:r,isStatic:a,onError:o}){return nz(e,void 0,{manifest:t,state:r,isStatic:a,onError:o,future:n})}),g.Component;var nQ="get",nG="application/x-www-form-urlencoded";function nJ(e){return"u">typeof HTMLElement&&e instanceof HTMLElement}var nX=null,nZ=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function n0(e){return null==e||nZ.has(e)?e:(tX(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${nG}"`),null)}Object.getOwnPropertyNames(Object.prototype).sort().join("\0"),"u">typeof window&&window;function n1(e,t){if(!1===e||null==e)throw Error(t)}function n2(e,t,n,r){let a="string"==typeof e?new URL(e,"u"<typeof window?"server://singlefetch/":window.location.origin):e;return n?a.pathname.endsWith("/")?a.pathname=`${a.pathname}_.${r}`:a.pathname=`${a.pathname}.${r}`:"/"===a.pathname?a.pathname=`_root.${r}`:t&&"/"===ne(a.pathname,t)?a.pathname=`${ni(t)}/_root.${r}`:a.pathname=`${ni(a.pathname)}.${r}`,a}async function n3(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function n7(e){return null!=e&&(null==e.href?"preload"===e.rel&&"string"==typeof e.imageSrcSet&&"string"==typeof e.imageSizes:"string"==typeof e.rel&&"string"==typeof e.href)}async function n5(e,t,n){var r;let a,o;return r=(await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await n3(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(n7).filter(e=>"stylesheet"===e.rel||"preload"===e.rel).map(e=>"stylesheet"===e.rel?{...e,rel:"prefetch",as:"style"}:{...e,rel:"prefetch"}),a=new Set,o=new Set(void 0),r.reduce((e,t)=>{!1;let n=JSON.stringify(function(e){let t={};for(let n of Object.keys(e).sort())t[n]=e[n];return t}(t));return a.has(n)||(a.add(n),e.push({key:n,link:t})),e},[])}function n4(e,t,n,r,a,o){let s=(e,t)=>!n[t]||e.route.id!==n[t].route.id,i=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith("*")&&n[t].params["*"]!==e.params["*"];return"assets"===o?t.filter((e,t)=>s(e,t)||i(e,t)):"data"===o?t.filter((t,o)=>{let l=r.routes[t.route.id];if(!l||!l.hasLoader)return!1;if(s(t,o)||i(t,o))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if("boolean"==typeof r)return r}return!0}):[]}function n6(e,t,{includeHydrateFallback:n}={}){return[...new Set(e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let a=[r.module];return r.clientActionModule&&(a=a.concat(r.clientActionModule)),r.clientLoaderModule&&(a=a.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(a=a.concat(r.hydrateFallbackModule)),r.imports&&(a=a.concat(r.imports)),a}).flat(1))]}function n9(){let e=g.useContext(nw);return n1(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function n8(){let e=g.useContext(nx);return n1(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}Symbol("SingleFetchRedirect");var re=g.createContext(void 0);function rt(){let e=g.useContext(re);return n1(e,"You must render this element inside a <HydratedRouter> element"),e}function rn(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function rr({page:e,...t}){let n=nk(),{nonce:r}=rt(),{router:a}=n9(),o=g.useMemo(()=>t3(a.routes,e,a.basename),[a.routes,e,a.basename]);return o?(null==t.nonce&&r&&(t={...t,nonce:r}),n)?g.createElement(ra,{page:e,matches:o,...t}):g.createElement(ro,{page:e,matches:o,...t}):null}function ra({page:e,matches:t,...n}){let r=nT(),{future:a}=rt(),{basename:o}=n9(),s=g.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=n2(e,o,a.v8_trailingSlashAwareDataRequests,"rsc"),s=!1,i=[];for(let e of t)"function"==typeof e.route.shouldRevalidate?s=!0:i.push(e.route.id);return s&&i.length>0&&n.searchParams.set("_routes",i.join(",")),[n.pathname+n.search]},[o,a.v8_trailingSlashAwareDataRequests,e,r,t]);return g.createElement(g.Fragment,null,s.map(e=>g.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...n})))}function ro({page:e,matches:t,...n}){let r=nT(),{future:a,manifest:o,routeModules:s}=rt(),{basename:i}=n9(),{loaderData:l,matches:c}=n8(),u=g.useMemo(()=>n4(e,t,c,o,r,"data"),[e,t,c,o,r]),d=g.useMemo(()=>n4(e,t,c,o,r,"assets"),[e,t,c,o,r]),f=g.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,c=!1;if(t.forEach(e=>{let t=o.routes[e.route.id];t&&t.hasLoader&&(!u.some(t=>t.route.id===e.route.id)&&e.route.id in l&&s[e.route.id]?.shouldRevalidate||t.hasClientLoader?c=!0:n.add(e.route.id))}),0===n.size)return[];let d=n2(e,i,a.v8_trailingSlashAwareDataRequests,"data");return c&&n.size>0&&d.searchParams.set("_routes",t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(",")),[d.pathname+d.search]},[i,a.v8_trailingSlashAwareDataRequests,l,r,o,u,t,e,s]),p=g.useMemo(()=>n6(d,o),[d,o]),h=function(e){let{manifest:t,routeModules:n}=rt(),[r,a]=g.useState([]);return g.useEffect(()=>{let r=!1;return n5(e,t,n).then(e=>{r||a(e)}),()=>{r=!0}},[e,t,n]),r}(d);return g.createElement(g.Fragment,null,f.map(e=>g.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...n})),p.map(e=>g.createElement("link",{key:e,rel:"modulepreload",href:e,...n})),h.map(({key:e,link:t})=>g.createElement("link",{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin})))}re.displayName="FrameworkContext";g.Component;var rs="u">typeof window&&void 0!==window.document&&void 0!==window.document.createElement;try{rs&&(window.__reactRouterVersion="7.18.3")}catch(e){}function ri({basename:e,children:t,useTransitions:n,window:r}){let a=g.useRef();null==a.current&&(a.current=function(e={}){return function(e,t,n={}){let{window:r=document.defaultView,v5Compat:a=!1}=n,o=r.history,s="POP",i=null,l=c();function c(){return(o.state||{idx:null}).idx}function u(){s="POP";let e=c(),t=null==e?null:e-l;l=e,i&&i({action:s,location:f.location,delta:t})}function d(e){return function(e,t,n=!1){let r="http://localhost";e&&(r="null"!==e.location.origin?e.location.origin:e.location.href),tJ(r,"No window.location.(origin|href) available to create URL");let a="string"==typeof t?t:t1(t);return a=a.replace(/ $/,"%20"),!n&&tK.test(a)&&(a=r+a),new URL(a,r)}(r,e)}null==l&&(l=0,o.replaceState({...o.state,idx:l},""));let f={get action(){return s},get location(){return e(r,o)},listen(e){if(i)throw Error("A history only accepts one active listener");return r.addEventListener(tQ,u),i=e,()=>{r.removeEventListener(tQ,u),i=null}},createHref:e=>t(r,e),createURL:d,encodeLocation(e){let t=d(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){s="PUSH";let n=tG(e)?e:t0(f.location,e,t);let u=tZ(n,l=c()+1),d=f.createHref(n.mask||n);try{o.pushState(u,"",d)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;r.location.assign(d)}a&&i&&i({action:s,location:f.location,delta:1})},replace:function(e,t){s="REPLACE";let n=tG(e)?e:t0(f.location,e,t);let r=tZ(n,l=c()),u=f.createHref(n.mask||n);o.replaceState(r,"",u),a&&i&&i({action:s,location:f.location,delta:0})},go:e=>o.go(e)};return f}(function(e,t){let n=t.state?.masked,{pathname:r,search:a,hash:o}=n||e.location;return t0("",{pathname:r,search:a,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default",n?{pathname:e.location.pathname,search:e.location.search,hash:e.location.hash}:void 0)},function(e,t){return"string"==typeof t?t:t1(t)},e)}({window:r,v5Compat:!0}));let o=a.current,[s,i]=g.useState({action:o.action,location:o.location}),l=g.useCallback(e=>{!1===n?i(e):g.startTransition(()=>i(e))},[n]);return g.useLayoutEffect(()=>o.listen(l),[o,l]),g.createElement(nY,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:o,useTransitions:n})}var rl=g.forwardRef(function({onClick:e,discover:t="render",prefetch:n="none",relative:r,reloadDocument:a,replace:o,mask:s,state:i,target:l,to:c,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},h){let{basename:m,navigator:v,useTransitions:b}=g.useContext(nE),y="string"==typeof c&&tY.test(c),w=nh(c,m),x=function(e,{relative:t}={}){tJ(nO(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=g.useContext(nE),{hash:a,pathname:o,search:s}=nR(e,{relative:t}),i=o;return"/"!==n&&(i="/"===o?n:ns([n,o])),r.createHref({pathname:i,search:s,hash:a})}(c=w.to,{relative:r}),S=nT(),k=null;if(s){let e=na(s,[],S.mask?S.mask.pathname:"/",!0);"/"!==m&&(e.pathname="/"===e.pathname?m:ns([m,e.pathname])),k=v.createHref(e)}let[_,E,j]=function(e,t){let n=g.useContext(re),[r,a]=g.useState(!1),[o,s]=g.useState(!1),{onFocus:i,onBlur:l,onMouseEnter:c,onMouseLeave:u,onTouchStart:d}=t,f=g.useRef(null);g.useEffect(()=>{if("render"===e&&s(!0),"viewport"===e){let e=new IntersectionObserver(e=>{e.forEach(e=>{s(e.isIntersecting)})},{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}},[e]),g.useEffect(()=>{if(r){let e=setTimeout(()=>{s(!0)},100);return()=>{clearTimeout(e)}}},[r]);let p=()=>{a(!0)},h=()=>{a(!1),s(!1)};return n?"intent"!==e?[o,f,{}]:[o,f,{onFocus:rn(i,p),onBlur:rn(l,h),onMouseEnter:rn(c,p),onMouseLeave:rn(u,h),onTouchStart:rn(d,p)}]:[!1,f,{}]}(n,p),C=function(e,{target:t,replace:n,mask:r,state:a,preventScrollReset:o,relative:s,viewTransition:i,defaultShouldRevalidate:l,useTransitions:c}={}){let u=function(){let{isDataRoute:e}=g.useContext(nC);return e?function(){let e,{router:t}=(tJ(e=g.useContext(nw),nB("useNavigate")),e),n=nV("useNavigate"),r=g.useRef(!1);return nM(()=>{r.current=!0}),g.useCallback(async(e,a={})=>{tX(r.current,nA),r.current&&("number"==typeof e?await t.navigate(e):await t.navigate(e,{fromRouteId:n,...a}))},[t,n])}():function(){tJ(nO(),"useNavigate() may be used only in the context of a <Router> component.");let e=g.useContext(nw),{basename:t,navigator:n}=g.useContext(nE),{matches:r}=g.useContext(nC),{pathname:a}=nT(),o=JSON.stringify(nr(r)),s=g.useRef(!1);return nM(()=>{s.current=!0}),g.useCallback((r,i={})=>{if(tX(s.current,nA),!s.current)return;if("number"==typeof r)return void n.go(r);let l=na(r,JSON.parse(o),a,"path"===i.relative);null==e&&"/"!==t&&(l.pathname="/"===l.pathname?t:ns([t,l.pathname])),nb("string"==typeof r?r:t1(r),n.createHref(l),nv(n),"reject"),(i.replace?n.replace:n.push)(l,i.state,i)},[t,n,o,a,e])}()}(),d=nT(),f=nR(e,{relative:s});return g.useCallback(p=>{if(0===p.button&&(!t||"_self"===t)&&!(p.metaKey||p.altKey||p.ctrlKey||p.shiftKey)){p.preventDefault();let t=void 0!==n?n:t1(d)===t1(f),h=()=>u(e,{replace:t,mask:r,state:a,preventScrollReset:o,relative:s,viewTransition:i,defaultShouldRevalidate:l});c?g.startTransition(()=>h()):h()}},[d,u,f,n,r,a,t,e,o,s,i,l,c])}(c,{replace:o,mask:s,state:i,target:l,preventScrollReset:u,relative:r,viewTransition:d,defaultShouldRevalidate:f,useTransitions:b}),P=!(w.isExternal||a),N=g.createElement("a",{...p,...j,href:(P?k:void 0)||w.absoluteURL||x,onClick:P?function(t){e&&e(t),t.defaultPrevented||C(t)}:e,ref:function(...e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}}(h,E),target:l,"data-discover":y||"render"!==t?void 0:"true"});return _&&!y?g.createElement(g.Fragment,null,N,g.createElement(rr,{page:x})):N});rl.displayName="Link",g.forwardRef(function({"aria-current":e="page",caseSensitive:t=!1,className:n="",end:r=!1,style:a,to:o,viewTransition:s,children:i,...l},c){let u,d=nR(o,{relative:l.relative}),f=nT(),p=g.useContext(nx),{navigator:h,basename:m}=g.useContext(nE),v=null!=p&&function(e,{relative:t}={}){let n=g.useContext(n_);tJ(null!=n,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=rc("useViewTransitionState"),a=nR(e,{relative:t});if(!n.isTransitioning)return!1;let o=ne(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=ne(n.nextLocation.pathname,r)||n.nextLocation.pathname;return null!=t6(a.pathname,s)||null!=t6(a.pathname,o)}(d)&&!0===s,b=h.encodeLocation?h.encodeLocation(d).pathname:d.pathname,y=f.pathname,w=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;t||(y=y.toLowerCase(),w=w?w.toLowerCase():null,b=b.toLowerCase()),w&&m&&(w=ne(w,m)||w);let x="/"!==b&&b.endsWith("/")?b.length-1:b.length,S=y===b||!r&&y.startsWith(b)&&"/"===y.charAt(x),k=null!=w&&(w===b||!r&&w.startsWith(b)&&"/"===w.charAt(b.length)),_={isActive:S,isPending:k,isTransitioning:v},E=S?e:void 0;u="function"==typeof n?n(_):[n,S?"active":null,k?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let j="function"==typeof a?a(_):a;return g.createElement(rl,{...l,"aria-current":E,className:u,ref:c,style:j,to:o,viewTransition:s},"function"==typeof i?i(_):i)}).displayName="NavLink",g.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:a,state:o,method:s=nQ,action:i,onSubmit:l,relative:c,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},h)=>{let{useTransitions:m}=g.useContext(nE),v=function(){let{router:e}=rc("useSubmit"),{basename:t}=g.useContext(nE),n=nV("useRouteId"),r=e.fetch,a=e.navigate;return g.useCallback(async(e,o={})=>{let{action:s,method:i,encType:l,formData:c,body:u}=function(e,t){let n,r,a,o,s;if(nJ(e)&&"form"===e.tagName.toLowerCase()){let s=e.getAttribute("action");r=s?ne(s,t):null,n=e.getAttribute("method")||nQ,a=n0(e.getAttribute("enctype"))||nG,o=new FormData(e)}else if(nJ(e)&&"button"===e.tagName.toLowerCase()||nJ(e)&&"input"===e.tagName.toLowerCase()&&("submit"===e.type||"image"===e.type)){let s=e.form;if(null==s)throw Error('Cannot submit a <button> or <input type="submit"> without a <form>');let i=e.getAttribute("formaction")||s.getAttribute("action");if(r=i?ne(i,t):null,n=e.getAttribute("formmethod")||s.getAttribute("method")||nQ,a=n0(e.getAttribute("formenctype"))||n0(s.getAttribute("enctype"))||nG,o=new FormData(s,e),!function(){if(null===nX)try{new FormData(document.createElement("form"),0),nX=!1}catch(e){nX=!0}return nX}()){let{name:t,type:n,value:r}=e;if("image"===n){let e=t?`${t}.`:"";o.append(`${e}x`,"0"),o.append(`${e}y`,"0")}else t&&o.append(t,r)}}else if(nJ(e))throw Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');else n=nQ,r=null,a=nG,s=e;return o&&"text/plain"===a&&(s=o,o=void 0),{action:r,method:n.toLowerCase(),encType:a,formData:o,body:s}}(e,t);if(!1===o.navigate){let e=o.fetcherKey||`__${String(++ru)}__`;await r(e,n,o.action||s,{defaultShouldRevalidate:o.defaultShouldRevalidate,preventScrollReset:o.preventScrollReset,formData:c,body:u,formMethod:o.method||i,formEncType:o.encType||l,flushSync:o.flushSync})}else await a(o.action||s,{defaultShouldRevalidate:o.defaultShouldRevalidate,preventScrollReset:o.preventScrollReset,formData:c,body:u,formMethod:o.method||i,formEncType:o.encType||l,replace:o.replace,state:o.state,fromRouteId:n,flushSync:o.flushSync,viewTransition:o.viewTransition})},[r,a,t,n])}(),b=function(e,{relative:t}={}){let{basename:n}=g.useContext(nE),r=g.useContext(nC);tJ(r,"useFormAction must be used inside a RouteContext");let[a]=r.matches.slice(-1),o={...nR(e||".",{relative:t})},s=nT();if(null==e){o.search=s.search;let e=new URLSearchParams(o.search),t=e.getAll("index");if(t.some(e=>""===e)){e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let n=e.toString();o.search=n?`?${n}`:""}}return(!e||"."===e)&&a.route.index&&(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index"),"/"!==n&&(o.pathname="/"===o.pathname?n:ns([n,o.pathname])),t1(o)}(i,{relative:c}),y="get"===s.toLowerCase()?"get":"post",w="string"==typeof i&&tY.test(i);return g.createElement("form",{ref:h,method:y,action:b,onSubmit:r?l:e=>{if(l&&l(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,i=r?.getAttribute("formmethod")||s,p=()=>v(r||e.currentTarget,{fetcherKey:t,method:i,navigate:n,replace:a,state:o,relative:c,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f});m&&!1!==n?g.startTransition(()=>p()):p()},...p,"data-discover":w||"render"!==e?void 0:"true"})}).displayName="Form";function rc(e){var t;let n=g.useContext(nw);return tJ(n,(t=e,`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`)),n}var ru=0,rd=a(4041),rf={notify(){},get:()=>[]},rp="u">typeof window&&void 0!==window.document&&void 0!==window.document.createElement,rh="u">typeof navigator&&"ReactNative"===navigator.product,rm=rp||rh?g.useLayoutEffect:g.useEffect;function rv(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function rg(e,t){if(rv(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!rv(e[n[r]],t[n[r]]))return!1;return!0}var rb=Symbol.for("react-redux-context"),ry="u">typeof globalThis?globalThis:{},rw=function(){if(!g.createContext)return{};let e=ry[rb]??=new Map,t=e.get(g.createContext);return t||(t=g.createContext(null),e.set(g.createContext,t)),t}();function rx(e=rw){return function(){return g.useContext(e)}}var rS=rx();function rk(e=rw){let t=e===rw?rS:rx(e),n=()=>{let{store:e}=t();return e};return Object.assign(n,{withTypes:()=>n}),n}var r_=rk(),rE=function(e=rw){let t=e===rw?r_:rk(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}(),rj=(e,t)=>e===t,rC=function(e=rw){let t=e===rw?rS:rx(e),n=(e,n={})=>{let{equalityFn:r=rj}="function"==typeof n?{equalityFn:n}:n,{store:a,subscription:o,getServerState:s}=t();g.useRef(!0);let i=g.useCallback({[e.name]:t=>e(t)}[e.name],[e]),l=(0,rd.useSyncExternalStoreWithSelector)(o.addNestedSub,a.getState,s||a.getState,i,r);return g.useDebugValue(l),l};return Object.assign(n,{withTypes:()=>n}),n}(),rP=function(e){e()};function rN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){rN(e,t,n[t])})}return e}function rT(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var rA="function"==typeof Symbol&&Symbol.observable||"@@observable",rM=()=>Math.random().toString(36).substring(7).split("").join("."),rR={INIT:`@@redux/INIT${rM()}`,REPLACE:`@@redux/REPLACE${rM()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${rM()}`};function rz(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function rL(e){let t,n=Object.keys(e),r={};for(let t=0;t<n.length;t++){let a=n[t];"function"==typeof e[a]&&(r[a]=e[a])}let a=Object.keys(r);try{Object.keys(r).forEach(e=>{let t=r[e];if(void 0===t(void 0,{type:rR.INIT}))throw Error(rT(12));if(void 0===t(void 0,{type:rR.PROBE_UNKNOWN_ACTION()}))throw Error(rT(13))})}catch(e){t=e}return function(e={},n){if(t)throw t;let o=!1,s={};for(let t=0;t<a.length;t++){let i=a[t],l=r[i],c=e[i],u=l(c,n);if(void 0===u)throw n&&n.type,Error(rT(14));s[i]=u,o=o||u!==c}return(o=o||a.length!==Object.keys(e).length)?s:e}}function rI(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce((e,t)=>(...n)=>e(t(...n)))}function rD(e){return rz(e)&&"type"in e&&"string"==typeof e.type}var rH=Symbol.for("immer-nothing"),rF=Symbol.for("immer-draftable"),rB=Symbol.for("immer-state");function r$(e){throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var rV=Object,rq=rV.getPrototypeOf,rU="constructor",rW="prototype",rY="configurable",rK="enumerable",rQ="writable",rG="value",rJ=e=>!!e&&!!e[rB];function rX(e){return!!e&&(r1(e)||r6(e)||!!e[rF]||!!e[rU]?.[rF]||r9(e)||r8(e))}var rZ=rV[rW][rU].toString(),r0=new WeakMap;function r1(e){if(!e||!ae(e))return!1;let t=rq(e);if(null===t||t===rV[rW])return!0;let n=rV.hasOwnProperty.call(t,rU)&&t[rU];if(n===Object)return!0;if(!at(n))return!1;let r=r0.get(n);return void 0===r&&(r=Function.toString.call(n),r0.set(n,r)),r===rZ}function r2(e,t,n=!0){0===r3(e)?(n?Reflect.ownKeys(e):rV.keys(e)).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function r3(e){let t=e[rB];return t?t.type_:r6(e)?1:r9(e)?2:3*!!r8(e)}var r7=(e,t,n=r3(e))=>2===n?e.has(t):rV[rW].hasOwnProperty.call(e,t),r5=(e,t,n=r3(e))=>2===n?e.get(t):e[t],r4=(e,t,n,r=r3(e))=>{2===r?e.set(t,n):3===r?e.add(n):e[t]=n},r6=Array.isArray,r9=e=>e instanceof Map,r8=e=>e instanceof Set,ae=e=>"object"==typeof e,at=e=>"function"==typeof e,an=e=>e.modified_?e.copy_:e.base_;function ar(e,t){if(r9(e))return new Map(e);if(r8(e))return new Set(e);if(r6(e))return Array[rW].slice.call(e);let n=r1(e);if(!0!==t&&("class_only"!==t||n)){let t=rq(e);if(null!==t&&n)return{...e};let r=rV.create(t);return rV.assign(r,e)}{let t=rV.getOwnPropertyDescriptors(e);delete t[rB];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){let a=n[r],o=t[a];!1===o[rQ]&&(o[rQ]=!0,o[rY]=!0),(o.get||o.set)&&(t[a]={[rY]:!0,[rQ]:!0,[rK]:o[rK],[rG]:e[a]})}return rV.create(rq(e),t)}}function aa(e,t=!1){return as(e)||rJ(e)||!rX(e)||(r3(e)>1&&rV.defineProperties(e,{set:ao,add:ao,clear:ao,delete:ao}),rV.freeze(e),t&&r2(e,(e,t)=>{aa(t,!0)},!1)),e}var ao={[rG]:function(){r$(2)}};function as(e){return!(null!==e&&ae(e))||rV.isFrozen(e)}var ai="MapSet",al="Patches",ac="ArrayMethods",au={};function ad(e){let t=au[e];return t||r$(0),t}var af=e=>!!au[e];function ap(e,t){t&&(e.patchPlugin_=ad(al),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function ah(e){am(e),e.drafts_.forEach(ag),e.drafts_=null}function am(e){e===he&&(he=e.parent_)}var av=e=>he={drafts_:[],parent_:he,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:af(ai)?ad(ai):void 0,arrayMethodsPlugin_:af(ac)?ad(ac):void 0};function ag(e){let t=e[rB];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function ab(e,t){t.unfinalizedDrafts_=t.drafts_.length;let n=t.drafts_[0];if(void 0!==e&&e!==n){n[rB].modified_&&(ah(t),r$(4)),rX(e)&&(e=ay(t,e));let{patchPlugin_:r}=t;r&&r.generateReplacementPatches_(n[rB].base_,e,t)}else e=ay(t,n);return function(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&aa(t,n)}(t,e,!0),ah(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==rH?e:void 0}function ay(e,t){if(as(t))return t;let n=t[rB];if(!n)return aE(t,e.handledSet_,e);if(!ax(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){let{callbacks_:t}=n;if(t)for(;t.length>0;)t.pop()(e);a_(n,e)}return n.copy_}function aw(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var ax=(e,t)=>e.scope_===t,aS=[];function ak(e,t,n,r){let a=e.copy_||e.base_,o=e.type_;if(void 0!==r&&r5(a,r,o)===t)return void r4(a,r,n,o);if(!e.draftLocations_){let t=e.draftLocations_=new Map;r2(a,(e,n)=>{if(rJ(n)){let r=t.get(n)||[];r.push(e),t.set(n,r)}})}for(let r of e.draftLocations_.get(t)??aS)r4(a,r,n,o)}function a_(e,t){if(e.modified_&&!e.finalized_&&(3===e.type_||1===e.type_&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){let{patchPlugin_:n}=t;if(n){let r=n.getPath(e);r&&n.generatePatches_(e,r,t)}aw(e)}}function aE(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||rJ(e)||t.has(e)||!rX(e)||as(e)||(t.add(e),r2(e,(r,a)=>{if(rJ(a)){let t=a[rB];ax(t,n)&&(r4(e,r,an(t),e.type_),aw(t))}else rX(a)&&aE(a,t,n)})),e}var aj={get(e,t){var n,r,a,o;let s;if(t===rB)return e;let i=e.scope_.arrayMethodsPlugin_,l=1===e.type_&&"string"==typeof t;if(l&&i?.isArrayOperationMethod(t))return i.createMethodInterceptor(e,t);let c=e.copy_||e.base_;if(!r7(c,t,e.type_)){let r;return n=e,(r=aN(c,t))?rG in r?r[rG]:r.get?.call(n.draft_):void 0}let u=c[t];if(e.finalized_||!rX(u)||l&&e.operationMethod&&i?.isMutatingArrayMethod(e.operationMethod)&&Number.isInteger(s=+t)&&String(s)===t)return u;if(u===aP(e.base_,t)||(r=e,a=t,o=u,!(1!==r.type_||!r.allIndicesReassigned_||r.assigned_?.get(a))&&rX(o)&&!o[rB]&&r.baseRefs_.has(o))){aT(e);let n=1===e.type_?+t:t,r=aM(e.scope_,u,e,n);return e.copy_[n]=r}return u},has:(e,t)=>t in(e.copy_||e.base_),ownKeys:e=>Reflect.ownKeys(e.copy_||e.base_),set(e,t,n){let r=aN(e.copy_||e.base_,t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){let r=aP(e.copy_||e.base_,t),a=r?.[rB];if(a&&a.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if((n===r?0!==n||1/n==1/r:n!=n&&r!=r)&&(void 0!==n||r7(e.base_,t,e.type_)))return!0;aT(e),aO(e)}return!!(e.copy_[t]===n&&(void 0!==n||r7(e.copy_,t,e.type_))||Number.isNaN(n)&&Number.isNaN(e.copy_[t]))||(e.copy_[t]=n,e.assigned_.set(t,!0),!function(e,t,n){let{scope_:r}=e;if(rJ(n)){let a=n[rB];ax(a,r)&&a.callbacks_.push(function(){aT(e),ak(e,n,an(a),t)})}else rX(n)&&e.callbacks_.push(function(){let a=e.copy_||e.base_;3===e.type_?a.has(n)&&aE(n,r.handledSet_,r):r5(a,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&aE(r5(e.copy_,t,e.type_),r.handledSet_,r)})}(e,t,n),!0)},deleteProperty:(e,t)=>(aT(e),void 0!==aP(e.base_,t)||t in e.base_?(e.assigned_.set(t,!1),aO(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){let n=e.copy_||e.base_,r=Reflect.getOwnPropertyDescriptor(n,t);return r?{[rQ]:!0,[rY]:1!==e.type_||"length"!==t,[rK]:r[rK],[rG]:n[t]}:r},defineProperty(){r$(11)},getPrototypeOf:e=>rq(e.base_),setPrototypeOf(){r$(12)}},aC={};for(let e in aj){let t=aj[e];aC[e]=function(){let e=arguments;return e[0]=e[0][0],t.apply(this,e)}}function aP(e,t){let n=e[rB];return(n?n.copy_||n.base_:e)[t]}function aN(e,t){if(!(t in e))return;let n=rq(e);for(;n;){let e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=rq(n)}}function aO(e){!e.modified_&&(e.modified_=!0,e.parent_&&aO(e.parent_))}function aT(e){e.copy_||(e.assigned_=new Map,e.copy_=ar(e.base_,e.scope_.immer_.useStrictShallowCopy_))}aC.deleteProperty=function(e,t){return aC.set.call(this,e,t,void 0)},aC.set=function(e,t,n){return aj.set.call(this,e[0],t,n,e[0])};var aA=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,t,n)=>{let r;if(at(e)&&!at(t)){let n=t;t=e;let r=this;return function(e=n,...a){return r.produce(e,e=>t.call(this,e,...a))}}if(at(t)||r$(6),void 0===n||at(n)||r$(7),rX(e)){let a=av(this),o=aM(a,e,void 0),s=!0;try{r=t(o),s=!1}finally{s?ah(a):am(a)}return ap(a,n),ab(r,a)}if(e&&ae(e))r$(1);else{if(void 0===(r=t(e))&&(r=e),r===rH&&(r=void 0),this.autoFreeze_&&aa(r,!0),n){let t=[],a=[];ad(al).generateReplacementPatches_(e,r,{patches_:t,inversePatches_:a}),n(t,a)}return r}},this.produceWithPatches=(e,t)=>{let n,r;return at(e)?(t,...n)=>this.produceWithPatches(t,t=>e(t,...n)):[this.produce(e,t,(e,t)=>{n=e,r=t}),n,r]},"boolean"==typeof e?.autoFreeze&&this.setAutoFreeze(e.autoFreeze),"boolean"==typeof e?.useStrictShallowCopy&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),"boolean"==typeof e?.useStrictIteration&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){rX(e)||r$(8),rJ(e)&&(e=aR(e));let t=av(this),n=aM(t,e,void 0);return n[rB].isManual_=!0,am(t),n}finishDraft(e,t){let n=e&&e[rB];n&&n.isManual_||r$(9);let{scope_:r}=n;return ap(r,t),ab(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){let r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));let r=ad(al).applyPatches_;return rJ(e)?r(e,t):this.produce(e,e=>r(e,t))}};function aM(e,t,n,r){let[a,o]=r9(t)?ad(ai).proxyMap_(t,n):r8(t)?ad(ai).proxySet_(t,n):function(e,t){let n=r6(e),r={type_:+!!n,scope_:t?t.scope_:he,modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},a=r,o=aj;n&&(a=[r],o=aC);let{revoke:s,proxy:i}=Proxy.revocable(a,o);return r.draft_=i,r.revoke_=s,[i,r]}(t,n);if((n?.scope_??he).drafts_.push(a),o.callbacks_=n?.callbacks_??[],o.key_=r,n&&void 0!==r)n.callbacks_.push(function(e){if(!o||!ax(o,e))return;e.mapSetPlugin_?.fixSetContents(o);let t=an(o);ak(n,o.draft_??o,t,r),a_(o,e)});else o.callbacks_.push(function(e){e.mapSetPlugin_?.fixSetContents(o);let{patchPlugin_:t}=e;o.modified_&&t&&t.generatePatches_(o,[],e)});return a}function aR(e){return rJ(e)||r$(10),function e(t){let n;if(!rX(t)||as(t))return t;let r=t[rB],a=!0;if(r){if(!r.modified_)return r.base_;r.finalized_=!0,n=ar(t,r.scope_.immer_.useStrictShallowCopy_),a=r.scope_.immer_.shouldUseStrictIteration()}else n=ar(t,!0);return r2(n,(t,r)=>{r4(n,t,e(r))},a),r&&(r.finalized_=!1),n}(e)}var az=globalThis.Iterator;az?.from;var aL=new aA,aI=aL.produce,aD=aL.produceWithPatches.bind(aL),aH=aL.applyPatches.bind(aL);function aF(e){return({dispatch:t,getState:n})=>r=>a=>"function"==typeof a?a(t,n,e):r(a)}var aB=aF(),a$="u">typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!=arguments.length)return"object"==typeof arguments[0]?rI:rI.apply(null,arguments)};function aV(e,t){function n(...r){if(t){let n=t(...r);if(!n)throw Error(od(0));return{type:e,payload:n.payload,..."meta"in n&&{meta:n.meta},..."error"in n&&{error:n.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=t=>rD(t)&&t.type===e,n}"u">typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;var aq=class e extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,e.prototype)}static get[Symbol.species](){return e}concat(...e){return super.concat.apply(this,e)}prepend(...t){return 1===t.length&&Array.isArray(t[0])?new e(...t[0].concat(this)):new e(...t.concat(this))}};function aU(e){return rX(e)?aI(e,()=>{}):e}function aW(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}var aY="RTK_autoBatch",aK=()=>e=>({payload:e,meta:{[aY]:!0}}),aQ=e=>t=>{setTimeout(t,e)};function aG(e){let t,n={},r=[],a={addCase(e,t){let r="string"==typeof e?e:e.type;if(!r)throw Error(od(28));if(r in n)throw Error(od(29));return n[r]=t,a},addAsyncThunk:(e,t)=>(t.pending&&(n[e.pending.type]=t.pending),t.rejected&&(n[e.rejected.type]=t.rejected),t.fulfilled&&(n[e.fulfilled.type]=t.fulfilled),t.settled&&r.push({matcher:e.settled,reducer:t.settled}),a),addMatcher:(e,t)=>(r.push({matcher:e,reducer:t}),a),addDefaultCase:e=>(t=e,a)};return e(a),[n,r,t]}var aJ=(e,t)=>e&&"function"==typeof e.match?e.match(t):e(t);function aX(...e){return t=>e.some(e=>aJ(e,t))}function aZ(...e){return t=>e.every(e=>aJ(e,t))}function a0(e,t){if(!e||!e.meta)return!1;let n="string"==typeof e.meta.requestId,r=t.indexOf(e.meta.requestStatus)>-1;return n&&r}function a1(e){return"function"==typeof e[0]&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function a2(...e){return 0===e.length?e=>a0(e,["pending"]):a1(e)?aX(...e.map(e=>e.pending)):a2()(e[0])}function a3(...e){return 0===e.length?e=>a0(e,["rejected"]):a1(e)?aX(...e.map(e=>e.rejected)):a3()(e[0])}function a7(...e){let t=e=>e&&e.meta&&e.meta.rejectedWithValue;return 0===e.length||a1(e)?aZ(a3(...e),t):a7()(e[0])}function a5(...e){return 0===e.length?e=>a0(e,["fulfilled"]):a1(e)?aX(...e.map(e=>e.fulfilled)):a5()(e[0])}function a4(...e){return 0===e.length?e=>a0(e,["pending","fulfilled","rejected"]):a1(e)?aX(...e.flatMap(e=>[e.pending,e.rejected,e.fulfilled])):a4()(e[0])}var a6=(e=21)=>{let t="",n=e;for(;n--;)t+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return t},a9=["name","message","stack","code"],a8=class{constructor(e,t){this.payload=e,this.meta=t}payload;meta;_type},oe=class{constructor(e,t){this.payload=e,this.meta=t}payload;meta;_type},ot="External signal was aborted",on=(()=>{function e(e,t,n){let r=aV(e+"/fulfilled",(e,t,n,r)=>({payload:e,meta:{...r||{},arg:n,requestId:t,requestStatus:"fulfilled"}})),a=aV(e+"/pending",(e,t,n)=>({payload:void 0,meta:{...n||{},arg:t,requestId:e,requestStatus:"pending"}})),o=aV(e+"/rejected",(e,t,r,a,o)=>({payload:a,error:(n&&n.serializeError||(e=>{if("object"==typeof e&&null!==e){let t={};for(let n of a9)"string"==typeof e[n]&&(t[n]=e[n]);return t}return{message:String(e)}}))(e||"Rejected"),meta:{...o||{},arg:r,requestId:t,rejectedWithValue:!!a,requestStatus:"rejected",aborted:e?.name==="AbortError",condition:e?.name==="ConditionError"}}));return Object.assign(function(e,{signal:s}={}){return(i,l,c)=>{let u,d,f=n?.idGenerator?n.idGenerator(e):a6(),p=new AbortController;function h(e){d=e,p.abort()}s&&(s.aborted?h(ot):s.addEventListener("abort",()=>h(ot),{once:!0}));let m=async function(){let s;try{var m;let o=n?.condition?.(e,{getState:l,extra:c});if(m=o,null!==m&&"object"==typeof m&&"function"==typeof m.then&&(o=await o),!1===o||p.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};let v=new Promise((e,t)=>{u=()=>{t({name:"AbortError",message:d||"Aborted"})},p.signal.addEventListener("abort",u,{once:!0})});i(a(f,e,n?.getPendingMeta?.({requestId:f,arg:e},{getState:l,extra:c}))),s=await Promise.race([v,Promise.resolve(t(e,{dispatch:i,getState:l,extra:c,requestId:f,signal:p.signal,abort:h,rejectWithValue:(e,t)=>new a8(e,t),fulfillWithValue:(e,t)=>new oe(e,t)})).then(t=>{if(t instanceof a8)throw t;return t instanceof oe?r(t.payload,f,e,t.meta):r(t,f,e)})])}catch(t){s=t instanceof a8?o(null,f,e,t.payload,t.meta):o(t,f,e)}finally{u&&p.signal.removeEventListener("abort",u)}return n&&!n.dispatchConditionRejection&&o.match(s)&&s.meta.condition||i(s),s}();return Object.assign(m,{abort:h,requestId:f,arg:e,unwrap:()=>m.then(or)})}},{pending:a,rejected:o,fulfilled:r,settled:aX(o,r),typePrefix:e})}return e.withTypes=()=>e,e})();function or(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}var oa=Symbol.for("rtk-slice-createasyncthunk"),oo=function({creators:e}={}){let t=e?.asyncThunk?.[oa];return function(e){let n,{name:r,reducerPath:a=r}=e;if(!r)throw Error(od(11));let o=("function"==typeof e.reducers?e.reducers(function(){function e(e,t){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...t}}return e.withTypes=()=>e,{reducer:e=>Object.assign({[e.name]:(...t)=>e(...t)}[e.name],{_reducerDefinitionType:"reducer"}),preparedReducer:(e,t)=>({_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:t}),asyncThunk:e}}()):e.reducers)||{},s=Object.keys(o),i={},l={},c={},u=[],d={addCase(e,t){let n="string"==typeof e?e:e.type;if(!n)throw Error(od(12));if(n in l)throw Error(od(13));return l[n]=t,d},addMatcher:(e,t)=>(u.push({matcher:e,reducer:t}),d),exposeAction:(e,t)=>(c[e]=t,d),exposeCaseReducer:(e,t)=>(i[e]=t,d)};function f(){let[t={},n=[],r]="function"==typeof e.extraReducers?aG(e.extraReducers):[e.extraReducers],a={...t,...l};return function(e,t){let n,[r,a,o]=aG(t);if("function"==typeof e)n=()=>aU(e());else{let t=aU(e);n=()=>t}function s(e=n(),t){let i=[r[t.type],...a.filter(({matcher:e})=>e(t)).map(({reducer:e})=>e)];return 0===i.filter(e=>!!e).length&&(i=[o]),i.reduce((e,n)=>{if(n)if(rJ(e)){let r=n(e,t);return void 0===r?e:r}else{if(rX(e))return aI(e,e=>n(e,t));let r=n(e,t);if(void 0===r){if(null===e)return e;throw Error("A case reducer on a non-draftable value must not return undefined")}return r}return e},e)}return s.getInitialState=n,s}(e.initialState,e=>{for(let t in a)e.addCase(t,a[t]);for(let t of u)e.addMatcher(t.matcher,t.reducer);for(let t of n)e.addMatcher(t.matcher,t.reducer);r&&e.addDefaultCase(r)})}s.forEach(n=>{let a=o[n],s={reducerName:n,type:`${r}/${n}`,createNotation:"function"==typeof e.reducers};"asyncThunk"===a._reducerDefinitionType?function({type:e,reducerName:t},n,r,a){if(!a)throw Error(od(18));let{payloadCreator:o,fulfilled:s,pending:i,rejected:l,settled:c,options:u}=n,d=a(e,o,u);r.exposeAction(t,d),s&&r.addCase(d.fulfilled,s),i&&r.addCase(d.pending,i),l&&r.addCase(d.rejected,l),c&&r.addMatcher(d.settled,c),r.exposeCaseReducer(t,{fulfilled:s||os,pending:i||os,rejected:l||os,settled:c||os})}(s,a,d,t):function({type:e,reducerName:t,createNotation:n},r,a){let o,s;if("reducer"in r){if(n&&"reducerWithPrepare"!==r._reducerDefinitionType)throw Error(od(17));o=r.reducer,s=r.prepare}else o=r;a.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,s?aV(e,s):aV(e))}(s,a,d)});let p=e=>e,h=new Map,m=new WeakMap;function v(e,t){return n||(n=f()),n(e,t)}function g(){return n||(n=f()),n.getInitialState()}function b(t,n=!1){function r(e){let a=e[t];return void 0===a&&n&&(a=aW(m,r,g)),a}function a(t=p){let r=aW(h,n,()=>new WeakMap);return aW(r,t,()=>{let r={};for(let[a,o]of Object.entries(e.selectors??{}))r[a]=function(e,t,n,r){function a(o,...s){let i=t(o);return void 0===i&&r&&(i=n()),e(i,...s)}return a.unwrapped=e,a}(o,t,()=>aW(m,t,g),n);return r})}return{reducerPath:t,getSelectors:a,get selectors(){return a(r)},selectSlice:r}}let y={name:r,reducer:v,actions:c,caseReducers:i,getInitialState:g,...b(a),injectInto(e,{reducerPath:t,...n}={}){let r=t??a;return e.inject({reducerPath:r,reducer:v},n),{...y,...b(r,!0)}}};return y}}();function os(){}var{assign:oi}=Object,ol="listenerMiddleware",oc=oi(aV(`${ol}/add`),{withTypes:()=>oc}),ou=oi(aV(`${ol}/remove`),{withTypes:()=>ou});function od(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var of="u"<typeof WeakRef?class{constructor(e){this.value=e}deref(){return this.value}}:WeakRef;function op(){return{s:0,v:void 0,o:null,p:null}}function oh(e,t={}){let n,r=op(),{resultEqualityCheck:a,maxSize:o}=t,s=void 0!==o;if(s&&(!Number.isInteger(o)||o<1))throw TypeError(`maxSize must be a positive integer, received: ${o}`);let i=null,l=0,c=0;function u(){l>=o&&(i=r,r=op(),l=0)}function d(){let t=r,{length:o}=arguments;for(let e=0;e<o;e++){let n=arguments[e];if("function"==typeof n||"object"==typeof n&&null!==n){let e=t.o;null===e&&(t.o=e=new WeakMap);let r=e.get(n);void 0===r?(t=op(),e.set(n,t)):t=r}else{let e=t.p;null===e&&(t.p=e=new Map);let r=e.get(n);void 0===r?(t=op(),e.set(n,t),l++):t=r}}if(1===t.s)return t.v;if(null!==i){let e=i;for(let t=0;t<o;t++){let n,r=arguments[t];if("function"==typeof r||"object"==typeof r&&null!==r){let t=e.o;n=null!==t?t.get(r):void 0}else{let t=e.p;n=null!==t?t.get(r):void 0}if(void 0===n){e=null;break}e=n}if(null!==e&&1===e.s){let n=t;return n.s=1,n.v=e.v,u(),e.v}}let d=t,f=e.apply(null,arguments);if(c++,a){var p;let e=(p=n)instanceof of?p.deref():p;null!=e&&a(e,f)&&(f=e,0!==c&&c--),n="object"==typeof f&&null!==f||"function"==typeof f?new of(f):f}return d.s=1,d.v=f,s&&u(),f}return d.clearCache=()=>{r=op(),i=null,l=0,d.resetResultsCount()},d.resultsCount=()=>c,d.resetResultsCount=()=>{c=0},d}var om=e=>Array.isArray(e)?e:[e],ov=function(e,...t){let n="function"==typeof e?{memoize:e,memoizeOptions:t}:e,r=(...e)=>{let t,r,a=0,o=0,s={},i=e.pop();"object"==typeof i&&(s=i,i=e.pop()),function(e,t=`expected a function, instead received ${typeof e}`){if("function"!=typeof e)throw TypeError(t)}(i,`createSelector expects an output function after the inputs, but received: [${typeof i}]`);let{memoize:l,memoizeOptions:c=[],argsMemoize:u=oh,argsMemoizeOptions:d=[]}={...n,...s},f=om(c),p=om(d),h=(!function(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(e=>"function"==typeof e)){let n=e.map(e=>"function"==typeof e?`function ${e.name||"unnamed"}()`:typeof e).join(", ");throw TypeError(`${t}[${n}]`)}}(t=Array.isArray(e[0])?e[0]:e,"createSelector expects all input-selectors to be functions, but received the following types: "),t),m=l(function(){return a++,i.apply(null,arguments)},...f);return Object.assign(u(function(){o++;let{length:e}=h,t=Array(e);for(let n=0;n<e;n++)t[n]=h[n].apply(null,arguments);return r=m.apply(null,t)},...p),{resultFunc:i,memoizedResultFunc:m,dependencies:h,dependencyRecomputations:()=>o,resetDependencyRecomputations:()=>{o=0},lastResult:()=>r,recomputations:()=>a,resetRecomputations:()=>{a=0},memoize:l,argsMemoize:u})};return Object.assign(r,{withTypes:()=>r}),r}(oh),og=class extends Error{issues;constructor(e){super(e[0].message),this.name="SchemaError",this.issues=e}},ob=((p8=ob||{}).uninitialized="uninitialized",p8.pending="pending",p8.fulfilled="fulfilled",p8.rejected="rejected",p8),oy="uninitialized",ow="pending",ox="fulfilled",oS="rejected";function ok(e){return{status:e,isUninitialized:e===oy,isLoading:e===ow,isSuccess:e===ox,isError:e===oS}}function o_(e,t){if(e===t||!(rz(e)&&rz(t)||Array.isArray(e)&&Array.isArray(t)))return t;let n=Object.keys(t),r=Object.keys(e),a=n.length===r.length,o=Array.isArray(t)?[]:{};for(let r of n)o[r]=o_(e[r],t[r]),a&&(a=e[r]===o[r]);return a?e:o}function oE(e,t,n){return e.reduce((e,r,a)=>(t(r,a)&&e.push(n(r,a)),e),[]).flat()}function oj(e){return null!=e}function oC(e){return[...e?.values()??[]].filter(oj)}function oP(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}var oN=()=>new Map,oO=(...e)=>fetch(...e),oT=e=>e.status>=200&&e.status<=299;function oA(e){if(!rz(e))return e;let t={...e};for(let[e,n]of Object.entries(t))void 0===n&&delete t[e];return t}var oM=class{constructor(e,t){this.value=e,this.meta=t}value;meta},oR="__rtkq/",oz="online",oL="offline",oI="focused",oD=aV(`${oR}${oI}`),oH=aV(`${oR}un${oI}`),oF=aV(`${oR}${oz}`),oB=aV(`${oR}${oL}`),o$=!1,oV="query",oq="mutation",oU="infinitequery";function oW(e){return e.type===oV}function oY(e){return e.type===oU}function oK(e){return oW(e)||oY(e)}function oQ(e,t,n,r,a,o){let s="function"==typeof e?e(t,n,r,a):e;return s?oE(s,oj,e=>o(oG(e))):[]}function oG(e){return"string"==typeof e?{type:e}:e}var oJ=(e,t)=>e.endpointDefinitions[t],oX=Symbol("forceQueryFn"),oZ=e=>"function"==typeof e[oX],o0=class extends og{constructor(e,t,n,r){super(e),this.value=t,this.schemaName=n,this._bqMeta=r}value;schemaName;_bqMeta},o1=(e,t)=>Array.isArray(e)?e.includes(t):!!e;async function o2(e,t,n,r){let a=await e["~standard"].validate(t);if(a.issues)throw new o0(a.issues,t,n,r);return a.value}function o3(e){return e}var o7=(e={})=>({...e,[aY]:!0});function o5(e,{pages:t,pageParams:n},r){let a=t.length-1;return e.getNextPageParam(t[a],t,n[a],n,r)}function o4(e,{pages:t,pageParams:n},r){return e.getPreviousPageParam?.(t[0],t,n[0],n,r)}function o6(e,t,n,r){return oQ(n[e.meta.arg.endpointName][t],a5(e)?e.payload:void 0,a7(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,r)}function o9(e,t,n){let r=e[t];r&&n(r)}function o8(e){return("arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)??e.requestId}function se(e,t,n){let r=e[o8(t)];r&&n(r)}var st={},sn=Symbol.for("RTKQ/skipToken"),sr={status:oy},sa=aI(sr,()=>{}),so=aI(sr,()=>{}),ss=WeakMap?new WeakMap:void 0,si=({endpointName:e,queryArgs:t})=>{let n="",r=ss?.get(t);if("string"==typeof r)n=r;else{let e=JSON.stringify(t,(e,t)=>t=rz(t="bigint"==typeof t?{$bigint:t.toString()}:t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t);rz(t)&&ss?.set(t,e),n=e}return`${e}(${n})`};function sl(e,...t){return Object.assign(e,...t)}var sc=({reducerPath:e,api:t,queryThunk:n,context:r,internalState:a,selectors:{selectQueryEntry:o,selectConfig:s},getRunningQueryThunk:i,mwApi:l})=>{let{removeQueryResult:c,unsubscribeQueryResult:u,cacheEntriesUpserted:d}=t.internalActions,f=aX(u.match,n.fulfilled,n.rejected,d.match);function p(e){let t=a.currentSubscriptions.get(e);return!!t&&t.size>0}let h={};function m(e){for(let t of e.values())t?.abort?.()}function v(e,t,n){let a=t.getState();for(let s of e){let e=o(a,s);e?.endpointName&&function(e,t,n,a){let s=oJ(r,t),l=s?.keepUnusedDataFor??a.keepUnusedDataFor;if(1/0===l)return;let u=Math.max(0,Math.min(l,2147482.647));if(!p(e)){let t=h[e];t&&clearTimeout(t),h[e]=setTimeout(()=>{if(!p(e)){let t=o(n.getState(),e);if(t?.endpointName){let e=n.dispatch(i(t.endpointName,t.originalArgs));e?.abort()}n.dispatch(c({queryCacheKey:e}))}delete h[e]},1e3*u)}}(s,e.endpointName,t,n)}}return(e,n)=>{let o=s(n.getState());if(f(e)){let t;if(d.match(e))t=e.payload.map(e=>e.queryDescription.queryCacheKey);else{let{queryCacheKey:n}=u.match(e)?e.payload:e.meta.arg;t=[n]}v(t,n,o)}if(t.util.resetApiState.match(e)){for(let[e,t]of Object.entries(h))t&&clearTimeout(t),delete h[e];m(a.runningQueries),m(a.runningMutations)}if(r.hasRehydrationInfo(e)){let{queries:t}=r.extractRehydrationInfo(e);v(Object.keys(t),n,o)}}},su=Error("Promise never resolved before cacheEntryRemoved."),sd=({api:e,reducerPath:t,context:n,queryThunk:r,mutationThunk:a,internalState:o,selectors:{selectQueryEntry:s,selectApiState:i}})=>{let l=a4(r),c=a4(a),u=a5(r,a),d={},{removeQueryResult:f,removeMutationResult:p,cacheEntriesUpserted:h}=e.internalActions;function m(e,t,n){let r=d[e];r?.valueResolved&&(r.valueResolved({data:t,meta:n}),delete r.valueResolved)}function v(e){let t=d[e];t&&(delete d[e],t.cacheEntryRemoved())}function g(e){let{arg:t,requestId:n}=e.meta,{endpointName:r,originalArgs:a}=t;return[r,a,n]}function b(t,r,a,o,s){let i=oJ(n,t),l=i?.onCacheEntryAdded;if(!l)return;let c={},u=new Promise(e=>{c.cacheEntryRemoved=e}),f=Promise.race([new Promise(e=>{c.valueResolved=e}),u.then(()=>{throw su})]);f.catch(()=>{}),d[a]=c;let p=e.endpoints[t].select(oK(i)?r:a),h=o.dispatch((e,t,n)=>n),m={...o,getCacheEntry:()=>p(o.getState()),requestId:s,extra:h,updateCachedData:oK(i)?n=>o.dispatch(e.util.updateQueryData(t,r,n)):void 0,cacheDataLoaded:f,cacheEntryRemoved:u};Promise.resolve(l(r,m)).catch(e=>{if(e!==su)throw e})}return(n,o,i)=>{var y;let w=l(y=n)?y.meta.arg.queryCacheKey:c(y)?y.meta.arg.fixedCacheKey??y.meta.requestId:f.match(y)?y.payload.queryCacheKey:p.match(y)?o8(y.payload):"";function x(e,t,n,r){let a=s(i,t),l=s(o.getState(),t);!a&&l&&b(e,r,t,o,n)}if(r.pending.match(n)){let[e,t,r]=g(n);x(e,w,r,t)}else if(h.match(n))for(let{queryDescription:e,value:t}of n.payload){let{endpointName:r,originalArgs:a,queryCacheKey:o}=e;x(r,o,n.meta.requestId,a),m(o,t,{})}else if(a.pending.match(n)){if(o.getState()[t].mutations[w]){let[e,t,r]=g(n);b(e,t,w,o,r)}}else if(u(n))m(w,n.payload,n.meta.baseQueryMeta);else if(f.match(n)||p.match(n))v(w);else if(e.util.resetApiState.match(n))for(let e of Object.keys(d))v(e)}},sf=({api:e,context:{apiUid:t},reducerPath:n})=>(n,r)=>{e.util.resetApiState.match(n)&&r.dispatch(e.internalActions.middlewareRegistered(t))},sp=({reducerPath:e,context:t,context:{endpointDefinitions:n},mutationThunk:r,queryThunk:a,api:o,assertTagType:s,refetchQuery:i,internalState:l})=>{let{removeQueryResult:c}=o.internalActions,u=aX(a5(r),a7(r)),d=aX(a5(a,r),a3(a,r)),f=[],p=0;function h(n,r){let a=r.getState(),s=a[e];if(f.push(...n),"delayed"===s.config.invalidationBehavior&&p>0)return;let u=f;if(f=[],0===u.length)return;let d=o.util.selectInvalidatedBy(a,u);t.batch(()=>{for(let{queryCacheKey:e}of Array.from(d.values())){let t=s.queries[e],n=oP(l.currentSubscriptions,e,oN);t&&(0===n.size?r.dispatch(c({queryCacheKey:e})):t.status!==oy&&r.dispatch(i(t)))}})}return(e,t)=>{(a.pending.match(e)||r.pending.match(e))&&p++,d(e)&&(p=Math.max(0,p-1)),u(e)?h(o6(e,"invalidatesTags",n,s),t):d(e)?h([],t):o.util.invalidateTags.match(e)&&h(oQ(e.payload,void 0,void 0,void 0,void 0,s),t)}},sh=({reducerPath:e,queryThunk:t,api:n,refetchQuery:r,internalState:a})=>{let{currentPolls:o,currentSubscriptions:s}=a,i=new Set,l=null;function c(t,n){i.add(t),l||(l=setTimeout(()=>{for(let t of i)!function({queryCacheKey:t},n){let r=n.getState()[e].queries[t],a=s.get(t);if(!r||r.status===oy)return;let{lowestPollingInterval:i}=f(a);if(!Number.isFinite(i))return d(t);let l=o.get(t),c=Date.now()+i;(!l||c<l.nextPollTimestamp)&&u({queryCacheKey:t},n)}({queryCacheKey:t},n);i.clear(),l=null},0))}function u({queryCacheKey:t},n){let a=n.getState()[e],i=a.queries[t],l=s.get(t);if(!i||i.status===oy)return;let{lowestPollingInterval:c,skipPollingIfUnfocused:d}=f(l);if(!Number.isFinite(c))return;let p=o.get(t);p?.timeout&&(clearTimeout(p.timeout),p.timeout=void 0);let h=Date.now()+c;o.set(t,{nextPollTimestamp:h,pollingInterval:c,timeout:setTimeout(()=>{(a.config.focused||!d)&&n.dispatch(r(i)),u({queryCacheKey:t},n)},c)})}function d(e){let t=o.get(e);t?.timeout&&clearTimeout(t.timeout),o.delete(e)}function f(e=new Map){let t=!1,n=1/0;for(let r of e.values())r.pollingInterval&&(n=Math.min(r.pollingInterval,n),t=r.skipPollingIfUnfocused||t);return{lowestPollingInterval:n,skipPollingIfUnfocused:t}}return(e,r)=>{(n.internalActions.updateSubscriptionOptions.match(e)||n.internalActions.unsubscribeQueryResult.match(e))&&c(e.payload.queryCacheKey,r),(t.pending.match(e)||t.rejected.match(e)&&e.meta.condition)&&c(e.meta.arg.queryCacheKey,r),(t.fulfilled.match(e)||t.rejected.match(e)&&!e.meta.condition)&&u(e.meta.arg,r),n.util.resetApiState.match(e)&&(function(){for(let e of o.keys())d(e)}(),l&&(clearTimeout(l),l=null),i.clear())}},sm=({api:e,context:t,queryThunk:n,mutationThunk:r})=>{let a=a2(n,r),o=a3(n,r),s=a5(n,r),i={};return(n,r)=>{if(a(n)){let{requestId:a,arg:{endpointName:o,originalArgs:s}}=n.meta,l=oJ(t,o),c=l?.onQueryStarted;if(c){let t={},n=new Promise((e,n)=>{t.resolve=e,t.reject=n});n.catch(()=>{}),i[a]=t;let u=e.endpoints[o].select(oK(l)?s:a),d=r.dispatch((e,t,n)=>n),f={...r,getCacheEntry:()=>u(r.getState()),requestId:a,extra:d,updateCachedData:oK(l)?t=>r.dispatch(e.util.updateQueryData(o,s,t)):void 0,queryFulfilled:n};c(s,f)}}else if(s(n)){let{requestId:e,baseQueryMeta:t}=n.meta;i[e]?.resolve({data:n.payload,meta:t}),delete i[e]}else if(o(n)){let{requestId:e,rejectedWithValue:t,baseQueryMeta:r}=n.meta;i[e]?.reject({error:n.payload??n.error,isUnhandledError:!t,meta:r}),delete i[e]}}},sv=Symbol(),sg=({createSelector:e=ov}={})=>({name:sv,init(t,{baseQuery:n,tagTypes:r,reducerPath:a,serializeQueryArgs:o,keepUnusedDataFor:s,refetchOnMountOrArgChange:i,refetchOnFocus:l,refetchOnReconnect:c,invalidationBehavior:u,onSchemaFailure:d,catchSchemaFailure:f,skipSchemaValidation:p},h){!function(){let e="replace",t="remove";function n(e){if(!rX(e))return e;if(r6(e))return e.map(n);if(r9(e))return new Map(Array.from(e.entries()).map(([e,t])=>[e,n(t)]));if(r8(e))return new Set(Array.from(e).map(n));let t=Object.create(rq(e));for(let r in e)t[r]=n(e[r]);return r7(e,rF)&&(t[rF]=e[rF]),t}function r(e){return rJ(e)?n(e):e}au[al]||(au[al]={applyPatches_:function(r,a){return a.forEach(a=>{let{path:o,op:s}=a,i=r;for(let e=0;e<o.length-1;e++){let t=r3(i),n=o[e];"string"!=typeof n&&"number"!=typeof n&&(n=""+n),(0===t||1===t)&&("__proto__"===n||n===rU)&&r$(19),at(i)&&n===rW&&r$(19),null!==(i=r5(i,n))&&ae(i)||r$(18,o.join("/"))}let l=r3(i),c=n(a.value),u=o[o.length-1];switch(s){case e:switch(l){case 2:return i.set(u,c);case 3:r$(16);default:return i[u]=c}case"add":switch(l){case 1:return"-"===u?i.push(c):i.splice(u,0,c);case 2:return i.set(u,c);case 3:return i.add(c);default:return i[u]=c}case t:switch(l){case 1:return i.splice(u,1);case 2:return i.delete(u);case 3:return i.delete(a.value);default:return delete i[u]}default:r$(17)}}),r},generatePatches_:function(n,a,o){if(n.scope_.processedForPatches_.has(n))return;n.scope_.processedForPatches_.add(n);let{patches_:s,inversePatches_:i}=o;switch(n.type_){case 0:case 2:return function(n,a,o,s){let{base_:i,copy_:l,type_:c}=n;r2(n.assigned_,(n,u)=>{let d=r5(i,n,c),f=r5(l,n,c),p=u?r7(i,n)?e:"add":t;if(d===f&&p===e)return;let h=a.concat(n);o.push(p===t?{op:p,path:h}:{op:p,path:h,value:r(f)}),s.push("add"===p?{op:t,path:h}:p===t?{op:"add",path:h,value:r(d)}:{op:e,path:h,value:r(d)})})}(n,a,s,i);case 1:return function(n,a,o,s){let{base_:i,assigned_:l}=n,c=n.copy_;c.length<i.length&&([i,c]=[c,i],[o,s]=[s,o]);let u=!0===n.allIndicesReassigned_;for(let t=0;t<i.length;t++){let n=c[t],d=i[t];if((u||l?.get(t.toString()))&&n!==d){let i=n?.[rB];if(i&&i.modified_)continue;let l=a.concat([t]);o.push({op:e,path:l,value:r(n)}),s.push({op:e,path:l,value:r(d)})}}for(let e=i.length;e<c.length;e++){let t=a.concat([e]);o.push({op:"add",path:t,value:r(c[e])})}for(let e=c.length-1;i.length<=e;--e){let n=a.concat([e]);s.push({op:t,path:n})}}(n,a,s,i);case 3:return function(e,n,r,a){let{base_:o,copy_:s}=e,i=0;o.forEach(e=>{if(!s.has(e)){let o=n.concat([i]);r.push({op:t,path:o,value:e}),a.unshift({op:"add",path:o,value:e})}i++}),i=0,s.forEach(e=>{if(!o.has(e)){let o=n.concat([i]);r.push({op:"add",path:o,value:e}),a.unshift({op:t,path:o,value:e})}i++})}(n,a,s,i)}},generateReplacementPatches_:function(t,n,r){let{patches_:a,inversePatches_:o}=r;a.push({op:e,path:[],value:n===rH?void 0:n}),o.push({op:e,path:[],value:t})},getPath:function e(t,n=[]){if(void 0!==t.key_){var r;let e,a=t.parent_.copy_??t.parent_.base_,o=ae(r=r5(a,t.key_))?r?.[rB]:null,s=r5(a,t.key_);if(void 0===s||s!==t.draft_&&s!==t.base_&&s!==t.copy_||null!=o&&o.base_!==t.base_)return null;let i=3===t.parent_.type_;if(e=i?Array.from(t.parent_.drafts_.keys()).indexOf(t.key_):t.key_,!(i&&a.size>e||r7(a,e)))return null;n.push(e)}if(t.parent_)return e(t.parent_,n);n.reverse();try{var a=t.copy_,o=n;let e=a;for(let t=0;t<o.length-1;t++)if(!ae(e=r5(e,o[t]))||null===e)throw Error(`Cannot resolve path at '${o.join("/")}'`)}catch(e){return null}return n}})}();let m=e=>e;Object.assign(t,{reducerPath:a,endpoints:{},internalActions:{onOnline:oF,onOffline:oB,onFocus:oD,onFocusLost:oH},util:{}});let v=function({serializeQueryArgs:e,reducerPath:t,createSelector:n}){let r=e=>sa,a=e=>so;return{buildQuerySelector:function(e,t){return c(e,t,o)},buildInfiniteQuerySelector:function(e,t){let{infiniteQueryOptions:n}=t;return c(e,t,function(e){var t,r,a,o,s,i;let l={...e,...ok(e.status)},{isLoading:c,isError:u,direction:d}=l,f="forward"===d,p="backward"===d;return{...l,hasNextPage:(t=n,r=l.data,a=l.originalArgs,!!r&&null!=o5(t,r,a)),hasPreviousPage:(o=n,s=l.data,i=l.originalArgs,!!s&&!!o.getPreviousPageParam&&null!=o4(o,s,i)),isFetchingNextPage:c&&f,isFetchingPreviousPage:c&&p,isFetchNextPageError:u&&f,isFetchPreviousPageError:u&&p}})},buildMutationSelector:function(){return e=>{let r;return n((r="object"==typeof e?o8(e)??sn:e)===sn?a:e=>(function(e){return e[t]})(e)?.mutations?.[r]??so,o)}},selectInvalidatedBy:function(e,n){let r=e[t],a=new Set;for(let e of oE(n,oj,oG)){let t=r.provided.tags[e.type];if(t)for(let n of(void 0!==e.id?t[e.id]:Object.values(t).flat())??[])a.add(n)}return Array.from(a.values()).flatMap(e=>{let t=r.queries[e];return t?{queryCacheKey:e,endpointName:t.endpointName,originalArgs:t.originalArgs}:[]})},selectCachedArgsForQuery:function(e,t){return oE(Object.values(i(e)),e=>e?.endpointName===t&&e.status!==oy,e=>e.originalArgs)},selectApiState:s,selectQueries:i,selectMutations:function(e){return function(e){return e[t]}(e)?.mutations},selectQueryEntry:l,selectConfig:function(e){return function(e){return e[t]}(e)?.config}};function o(e){return{...e,...ok(e.status)}}function s(e){return e[t]}function i(e){return e[t]?.queries}function l(e,t){return i(e)?.[t]}function c(t,a,o){return s=>{if(s===sn)return n(r,o);let i=e({queryArgs:s,endpointDefinition:a,endpointName:t});return n(e=>l(e,i)??sa,o)}}}({serializeQueryArgs:o,reducerPath:a,createSelector:e}),{selectInvalidatedBy:g,selectCachedArgsForQuery:b,buildQuerySelector:y,buildInfiniteQuerySelector:w,buildMutationSelector:x}=v;sl(t.util,{selectInvalidatedBy:g,selectCachedArgsForQuery:b});let{queryThunk:S,infiniteQueryThunk:k,mutationThunk:_,patchQueryData:E,updateQueryData:j,upsertQueryData:C,prefetch:P,buildMatchThunkActions:N}=function({reducerPath:e,baseQuery:t,context:{endpointDefinitions:n},serializeQueryArgs:r,api:a,assertTagType:o,selectors:s,onSchemaFailure:i,catchSchemaFailure:l,skipSchemaValidation:c}){function u(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}function d(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}let f=(e,t)=>e.query&&e[t]?e[t]:o3,p=async(e,{signal:r,abort:a,rejectWithValue:o,fulfillWithValue:p,dispatch:m,getState:v,extra:g})=>{let b=n[e.endpointName],{metaSchema:y,skipSchemaValidation:w=c}=b,x=e.type===oV;try{let n,o=o3,i={signal:r,abort:a,dispatch:m,getState:v,extra:g,endpoint:e.endpointName,type:e.type,forced:x?h(e,v()):void 0,queryCacheKey:x?e.queryCacheKey:void 0},l=x?e[oX]:void 0,c=async(t,n,r,a)=>{if(null==n&&t.pages.length)return Promise.resolve({data:t});let o={queryArg:e.originalArgs,pageParam:n},s=await S(o),i=a?u:d;return{data:{pages:i(t.pages,s.data,r),pageParams:i(t.pageParams,n,r)},meta:s.meta}};async function S(e){let n,{extraOptions:r,argSchema:a,rawResponseSchema:s,responseSchema:c}=b;if(a&&!o1(w,"arg")&&(e=await o2(a,e,"argSchema",{})),l?n=l():b.query?(o=f(b,"transformResponse"),n=await t(b.query(e),i,r)):n=await b.queryFn(e,i,r,e=>t(e,i,r)),n.error)throw new oM(n.error,n.meta);let{data:u}=n;s&&!o1(w,"rawResponse")&&(u=await o2(s,n.data,"rawResponseSchema",n.meta));let d=await o(u,n.meta,e);return c&&!o1(w,"response")&&(d=await o2(c,d,"responseSchema",n.meta)),{...n,data:d}}if(x&&"infiniteQueryOptions"in b){let t,{infiniteQueryOptions:r}=b,{maxPages:a=1/0}=r,o=e.refetchCachedPages??r.refetchCachedPages??!0,i=s.selectQueryEntry(v(),e.queryCacheKey)?.data,u=(!h(e,v())||e.direction)&&i?i:{pages:[],pageParams:[]};if("direction"in e&&e.direction&&u.pages.length){let n="backward"===e.direction,o=(n?o4:o5)(r,u,e.originalArgs);t=await c(u,o,a,n)}else{let{initialPageParam:n=r.initialPageParam}=e,s=i?.pageParams??[],d=s[0]??n,f=s.length;if(t=await c(u,d,a),l&&(t={data:t.data.pages[0]}),o)for(let n=1;n<f;n++){let n=o5(r,t.data,e.originalArgs);t=await c(t.data,n,a)}}n=t}else n=await S(e.originalArgs);return y&&!o1(w,"meta")&&n.meta&&(n.meta=await o2(y,n.meta,"metaSchema",n.meta)),p(n.data,o7({fulfilledTimeStamp:Date.now(),baseQueryMeta:n.meta}))}catch(n){let t=n;if(t instanceof oM){let n=f(b,"transformErrorResponse"),{rawErrorResponseSchema:r,errorResponseSchema:a}=b,{value:s,meta:i}=t;try{r&&!o1(w,"rawErrorResponse")&&(s=await o2(r,s,"rawErrorResponseSchema",i)),y&&!o1(w,"meta")&&(i=await o2(y,i,"metaSchema",i));let t=await n(s,i,e.originalArgs);return a&&!o1(w,"errorResponse")&&(t=await o2(a,t,"errorResponseSchema",i)),o(t,o7({baseQueryMeta:i}))}catch(e){t=e}}try{if(t instanceof o0){let n={endpoint:e.endpointName,arg:e.originalArgs,type:e.type,queryCacheKey:x?e.queryCacheKey:void 0};b.onSchemaFailure?.(t,n),i?.(t,n);let{catchSchemaFailure:r=l}=b;if(r)return o(r(t,n),o7({baseQueryMeta:t._bqMeta}))}}catch(e){t=e}throw console.error(t),t}};function h(e,t){let n=s.selectQueryEntry(t,e.queryCacheKey),r=s.selectConfig(t).refetchOnMountOrArgChange,a=n?.fulfilledTimeStamp,o=e.forceRefetch??(e.subscribe&&r);return!!o&&(!0===o||(Number(new Date)-Number(a))/1e3>=o)}let m=()=>on(`${e}/executeQuery`,p,{getPendingMeta({arg:e}){let t=n[e.endpointName];return o7({startedTimeStamp:Date.now(),...oY(t)?{direction:e.direction}:{}})},condition(e,{getState:t}){let r=t(),a=s.selectQueryEntry(r,e.queryCacheKey),o=a?.fulfilledTimeStamp,i=e.originalArgs,l=a?.originalArgs,c=n[e.endpointName],u=e.direction;return!!oZ(e)||a?.status!=="pending"&&(!!(h(e,r)||oW(c)&&c?.forceRefetch?.({currentArg:i,previousArg:l,endpointState:a,state:r}))||!o||!!u)},dispatchConditionRejection:!0}),v=m(),g=m();function b(e){return t=>t?.meta?.arg?.endpointName===e}return{queryThunk:v,mutationThunk:on(`${e}/executeMutation`,p,{getPendingMeta:()=>o7({startedTimeStamp:Date.now()})}),infiniteQueryThunk:g,prefetch:(e,t,n={})=>(r,o)=>{let s="force"in n&&n.force,i="ifOlderThan"in n&&n.ifOlderThan,l=(n=!0)=>a.endpoints[e].initiate(t,{forceRefetch:n,subscribe:!1}),c=a.endpoints[e].select(t)(o());if(s)r(l());else if(i){let e=c?.fulfilledTimeStamp;if(!e)return void r(l());(Number(new Date)-Number(new Date(e)))/1e3>=i&&r(l())}else r(l(!1))},updateQueryData:(e,t,n,r=!0)=>(o,s)=>{let i,l=a.endpoints[e].select(t)(s()),c={patches:[],inversePatches:[],undo:()=>o(a.util.patchQueryData(e,t,c.inversePatches,r))};if(l.status===oy)return c;if("data"in l)if(rX(l.data)){let[e,t,r]=aD(l.data,n);c.patches.push(...t),c.inversePatches.push(...r),i=e}else i=n(l.data),c.patches.push({op:"replace",path:[],value:i}),c.inversePatches.push({op:"replace",path:[],value:l.data});return 0===c.patches.length||o(a.util.patchQueryData(e,t,c.patches,r)),c},upsertQueryData:(e,t,n)=>r=>r(a.endpoints[e].initiate(t,{subscribe:!1,forceRefetch:!0,[oX]:()=>({data:n})})),patchQueryData:(e,t,s,i)=>(l,c)=>{let u=n[e],d=r({queryArgs:t,endpointDefinition:u,endpointName:e});if(l(a.internalActions.queryResultPatched({queryCacheKey:d,patches:s})),!i)return;let f=a.endpoints[e].select(t)(c()),p=oQ(u.providesTags,f.data,void 0,t,{},o);l(a.internalActions.updateProvidedBy([{queryCacheKey:d,providedTags:p}]))},buildMatchThunkActions:function(e,t){return{matchPending:aZ(a2(e),b(t)),matchFulfilled:aZ(a5(e),b(t)),matchRejected:aZ(a3(e),b(t))}}}}({baseQuery:n,reducerPath:a,context:h,api:t,serializeQueryArgs:o,assertTagType:m,selectors:v,onSchemaFailure:d,catchSchemaFailure:f,skipSchemaValidation:p}),{reducer:O,actions:T}=function({reducerPath:e,queryThunk:t,mutationThunk:n,serializeQueryArgs:r,context:{endpointDefinitions:a,apiUid:o,extractRehydrationInfo:s,hasRehydrationInfo:i},assertTagType:l,config:c}){let u=aV(`${e}/resetApiState`);function d(e,t,n,r){e[t.queryCacheKey]??={status:oy,endpointName:t.endpointName},o9(e,t.queryCacheKey,e=>{e.status=ow,e.requestId=n&&e.requestId?e.requestId:r.requestId,void 0!==t.originalArgs&&(e.originalArgs=t.originalArgs),e.startedTimeStamp=r.startedTimeStamp,oY(a[r.arg.endpointName])&&"direction"in t&&(e.direction=t.direction)})}function f(e,t,n,r){o9(e,t.arg.queryCacheKey,e=>{if(e.requestId!==t.requestId&&!r)return;let{merge:o}=a[t.arg.endpointName];if(e.status=ox,o)if(void 0!==e.data){let{fulfilledTimeStamp:r,arg:a,baseQueryMeta:s,requestId:i}=t,l=aI(e.data,e=>o(e,n,{arg:a.originalArgs,baseQueryMeta:s,fulfilledTimeStamp:r,requestId:i}));e.data=l}else e.data=n;else{var s;e.data=a[t.arg.endpointName].structuralSharing??!0?o_(rJ(e.data)?(rJ(s=e.data)||r$(15),s[rB].base_):e.data,n):n}delete e.error,e.fulfilledTimeStamp=t.fulfilledTimeStamp})}let p=oo({name:`${e}/queries`,initialState:st,reducers:{removeQueryResult:{reducer(e,{payload:{queryCacheKey:t}}){delete e[t]},prepare:aK()},cacheEntriesUpserted:{reducer(e,t){for(let n of t.payload){let{queryDescription:r,value:a}=n;d(e,r,!0,{arg:r,requestId:t.meta.requestId,startedTimeStamp:t.meta.timestamp}),f(e,{arg:r,requestId:t.meta.requestId,fulfilledTimeStamp:t.meta.timestamp,baseQueryMeta:{}},a,!0)}},prepare:e=>({payload:e.map(e=>{let{endpointName:t,arg:n,value:o}=e,s=a[t];return{queryDescription:{type:oV,endpointName:t,originalArgs:e.arg,queryCacheKey:r({queryArgs:n,endpointDefinition:s,endpointName:t})},value:o}}),meta:{[aY]:!0,requestId:a6(),timestamp:Date.now()}})},queryResultPatched:{reducer(e,{payload:{queryCacheKey:t,patches:n}}){o9(e,t,e=>{e.data=aH(e.data,n.concat())})},prepare:aK()}},extraReducers(e){e.addCase(t.pending,(e,{meta:t,meta:{arg:n}})=>{let r=oZ(n);d(e,n,r,t)}).addCase(t.fulfilled,(e,{meta:t,payload:n})=>{let r=oZ(t.arg);f(e,t,n,r)}).addCase(t.rejected,(e,{meta:{condition:t,arg:n,requestId:r},error:a,payload:o})=>{o9(e,n.queryCacheKey,e=>{if(t);else{if(e.requestId!==r)return;e.status=oS,e.error=o??a}})}).addMatcher(i,(e,t)=>{let{queries:n}=s(t);for(let[t,r]of Object.entries(n))(r?.status===ox||r?.status===oS)&&(e[t]=r)})}}),h=oo({name:`${e}/mutations`,initialState:st,reducers:{removeMutationResult:{reducer(e,{payload:t}){let n=o8(t);n in e&&delete e[n]},prepare:aK()}},extraReducers(e){e.addCase(n.pending,(e,{meta:t,meta:{requestId:n,arg:r,startedTimeStamp:a}})=>{r.track&&(e[o8(t)]={requestId:n,status:ow,endpointName:r.endpointName,startedTimeStamp:a})}).addCase(n.fulfilled,(e,{payload:t,meta:n})=>{n.arg.track&&se(e,n,e=>{e.requestId===n.requestId&&(e.status=ox,e.data=t,e.fulfilledTimeStamp=n.fulfilledTimeStamp)})}).addCase(n.rejected,(e,{payload:t,error:n,meta:r})=>{r.arg.track&&se(e,r,e=>{e.requestId===r.requestId&&(e.status=oS,e.error=t??n)})}).addMatcher(i,(e,t)=>{let{mutations:n}=s(t);for(let[t,r]of Object.entries(n))(r?.status===ox||r?.status===oS)&&t!==r?.requestId&&(e[t]=r)})}}),m=oo({name:`${e}/invalidation`,initialState:{tags:{},keys:{}},reducers:{updateProvidedBy:{reducer(e,t){for(let{queryCacheKey:n,providedTags:r}of t.payload){for(let{type:t,id:a}of(v(e,n),r)){let r=(e.tags[t]??={})[a||"__internal_without_id"]??=[];r.includes(n)||r.push(n)}e.keys[n]=r}},prepare:aK()}},extraReducers(e){e.addCase(p.actions.removeQueryResult,(e,{payload:{queryCacheKey:t}})=>{v(e,t)}).addMatcher(i,(e,t)=>{let{provided:n}=s(t);for(let[t,r]of Object.entries(n.tags??{}))for(let[a,o]of Object.entries(r)){let r=(e.tags[t]??={})[a||"__internal_without_id"]??=[];for(let t of o)r.includes(t)||r.push(t),e.keys[t]=n.keys[t]}}).addMatcher(aX(a5(t),a7(t)),(e,t)=>{g(e,[t])}).addMatcher(p.actions.cacheEntriesUpserted.match,(e,t)=>{g(e,t.payload.map(({queryDescription:e,value:t})=>({type:"UNKNOWN",payload:t,meta:{requestStatus:"fulfilled",requestId:"UNKNOWN",arg:e}})))})}});function v(e,t){var n;for(let r of rJ(n=e.keys[t]??[])?aR(n):n){let n=r.type,a=r.id??"__internal_without_id",o=e.tags[n]?.[a];o&&(e.tags[n][a]=(rJ(o)?aR(o):o).filter(e=>e!==t))}delete e.keys[t]}function g(e,t){let n=t.map(e=>{let t=o6(e,"providesTags",a,l),{queryCacheKey:n}=e.meta.arg;return{queryCacheKey:n,providedTags:t}});m.caseReducers.updateProvidedBy(e,m.actions.updateProvidedBy(n))}let b=oo({name:`${e}/subscriptions`,initialState:st,reducers:{updateSubscriptionOptions(e,t){},unsubscribeQueryResult(e,t){},internal_getRTKQSubscriptions(){}}}),y=oo({name:`${e}/internalSubscriptions`,initialState:st,reducers:{subscriptionsUpdated:{reducer:(e,t)=>aH(e,t.payload),prepare:aK()}}}),w=oo({name:`${e}/config`,initialState:{online:"u"<typeof navigator||void 0===navigator.onLine||navigator.onLine,focused:"u"<typeof document||"hidden"!==document.visibilityState,middlewareRegistered:!1,...c},reducers:{middlewareRegistered(e,{payload:t}){e.middlewareRegistered="conflict"!==e.middlewareRegistered&&o===t||"conflict"}},extraReducers:e=>{e.addCase(oF,e=>{e.online=!0}).addCase(oB,e=>{e.online=!1}).addCase(oD,e=>{e.focused=!0}).addCase(oH,e=>{e.focused=!1}).addMatcher(i,e=>({...e}))}}),x=rL({queries:p.reducer,mutations:h.reducer,provided:m.reducer,subscriptions:y.reducer,config:w.reducer});return{reducer:(e,t)=>x(u.match(t)?void 0:e,t),actions:{...w.actions,...p.actions,...b.actions,...y.actions,...h.actions,...m.actions,resetApiState:u}}}({context:h,queryThunk:S,infiniteQueryThunk:k,mutationThunk:_,serializeQueryArgs:o,reducerPath:a,assertTagType:m,config:{refetchOnFocus:l,refetchOnReconnect:c,refetchOnMountOrArgChange:i,keepUnusedDataFor:s,reducerPath:a,invalidationBehavior:u}});sl(t.util,{patchQueryData:E,updateQueryData:j,upsertQueryData:C,prefetch:P,resetApiState:T.resetApiState,upsertQueryEntries:T.cacheEntriesUpserted}),sl(t.internalActions,T);let A=new WeakMap,M=e=>oP(A,e,()=>({currentSubscriptions:new Map,currentPolls:new Map,runningQueries:new Map,runningMutations:new Map})),{buildInitiateQuery:R,buildInitiateInfiniteQuery:z,buildInitiateMutation:L,getRunningMutationThunk:I,getRunningMutationsThunk:D,getRunningQueriesThunk:H,getRunningQueryThunk:F}=function({serializeQueryArgs:e,queryThunk:t,infiniteQueryThunk:n,mutationThunk:r,api:a,context:o,getInternalState:s}){let i=e=>s(e)?.runningQueries,l=e=>s(e)?.runningMutations,{unsubscribeQueryResult:c,removeMutationResult:u,updateSubscriptionOptions:d}=a.internalActions;return{buildInitiateQuery:function(e,t){return f(e,t)},buildInitiateInfiniteQuery:function(e,t){return f(e,t)},buildInitiateMutation:function(e){return(t,{track:n=!0,fixedCacheKey:a}={})=>(o,s)=>{var i,c;let d=o(r({type:"mutation",endpointName:e,originalArgs:t,track:n,fixedCacheKey:a})),{requestId:f,abort:p,unwrap:h}=d,m=Object.assign((i=d.unwrap().then(e=>({data:e})),c=e=>({error:e}),i.catch(c)),{arg:d.arg,requestId:f,abort:p,unwrap:h,reset:()=>{o(u({requestId:f,fixedCacheKey:a}))}}),v=l(o);return v.set(f,m),m.then(()=>{v.delete(f)}),a&&(v.set(a,m),m.then(()=>{v.get(a)===m&&v.delete(a)})),m}},getRunningQueryThunk:function(t,n){return r=>{let a=e({queryArgs:n,endpointDefinition:oJ(o,t),endpointName:t});return i(r)?.get(a)}},getRunningMutationThunk:function(e,t){return e=>l(e)?.get(t)},getRunningQueriesThunk:function(){return e=>oC(i(e))},getRunningMutationsThunk:function(){return e=>oC(l(e))}};function f(r,o){let s=(l,{subscribe:u=!0,forceRefetch:f,subscriptionOptions:p,[oX]:h,...m}={})=>(v,g)=>{let b,y=e({queryArgs:l,endpointDefinition:o,endpointName:r}),w={...m,type:oV,subscribe:u,forceRefetch:f,subscriptionOptions:p,endpointName:r,originalArgs:l,queryCacheKey:y,[oX]:h};if(oW(o))b=t(w);else{let{direction:e,initialPageParam:t,refetchCachedPages:r}=m;b=n({...w,direction:e,initialPageParam:t,refetchCachedPages:r})}let x=a.endpoints[r].select(l),S=v(b),k=x(g()),{requestId:_,abort:E}=S,j=k.requestId!==_,C=i(v)?.get(y),P=()=>x(g()),N=Object.assign(h?S.then(P):j&&!C?Promise.resolve(k):Promise.all([C,S]).then(P),{arg:l,requestId:_,subscriptionOptions:p,queryCacheKey:y,abort:E,async unwrap(){let e=await N;if(e.isError)throw e.error;return e.data},refetch:e=>v(s(l,{subscribe:!1,forceRefetch:!0,...e})),unsubscribe(){u&&v(c({queryCacheKey:y,requestId:_}))},updateSubscriptionOptions(e){N.subscriptionOptions=e,v(d({endpointName:r,requestId:_,queryCacheKey:y,options:e}))}});if(!C&&!j&&!h){let e=i(v);e.set(y,N),N.then(()=>{e.delete(y)})}return N};return s}}({queryThunk:S,mutationThunk:_,infiniteQueryThunk:k,api:t,serializeQueryArgs:o,context:h,getInternalState:M});sl(t.util,{getRunningMutationThunk:I,getRunningMutationsThunk:D,getRunningQueryThunk:F,getRunningQueriesThunk:H});let{middleware:B,actions:$}=function(e){let{reducerPath:t,queryThunk:n,api:r,context:a,getInternalState:o}=e,{apiUid:s}=a,i={invalidateTags:aV(`${t}/invalidateTags`)},l=e=>e.type.startsWith(`${t}/`),c=[sf,sc,sp,sh,sd,sm];return{middleware:n=>{let i=!1,d=o(n.dispatch),f={...e,internalState:d,refetchQuery:u,isThisApiSliceAction:l,mwApi:n},p=c.map(e=>e(f)),h=(({api:e,queryThunk:t,internalState:n,mwApi:r})=>{let a=`${e.reducerPath}/subscriptions`,o=null,s=null,{updateSubscriptionOptions:i,unsubscribeQueryResult:l}=e.internalActions,c=()=>n.currentSubscriptions,u={getSubscriptions:c,getSubscriptionCount:e=>{let t=c().get(e);return t?.size??0},isRequestSubscribed:(e,t)=>{let n=c();return!!n?.get(e)?.get(t)}};function d(e){return JSON.parse(JSON.stringify(Object.fromEntries([...e].map(([e,t])=>[e,Object.fromEntries(t)]))))}return(r,c)=>{if(o||(o=d(n.currentSubscriptions)),e.util.resetApiState.match(r))return o={},n.currentSubscriptions.clear(),s=null,[!0,!1];if(e.internalActions.internal_getRTKQSubscriptions.match(r))return[!1,u];let f=((n,r)=>{if(i.match(r)){let{queryCacheKey:e,requestId:t,options:a}=r.payload,o=n.get(e);return o?.has(t)&&o.set(t,a),!0}if(l.match(r)){let{queryCacheKey:e,requestId:t}=r.payload,a=n.get(e);return a&&a.delete(t),!0}if(e.internalActions.removeQueryResult.match(r))return n.delete(r.payload.queryCacheKey),!0;if(t.pending.match(r)){let{meta:{arg:e,requestId:t}}=r,a=oP(n,e.queryCacheKey,oN);return e.subscribe&&a.set(t,e.subscriptionOptions??a.get(t)??{}),!0}let a=!1;if(t.rejected.match(r)){let{meta:{condition:e,arg:t,requestId:o}}=r;if(e&&t.subscribe){let e=oP(n,t.queryCacheKey,oN);e.set(o,t.subscriptionOptions??e.get(o)??{}),a=!0}}return a})(n.currentSubscriptions,r),p=!0;if(f){s||(s=setTimeout(()=>{let t=d(n.currentSubscriptions),[,r]=aD(o,()=>t);c.next(e.internalActions.subscriptionsUpdated(r)),o=t,s=null},500));let i="string"==typeof r.type&&!!r.type.startsWith(a),l=t.rejected.match(r)&&r.meta.condition&&!!r.meta.arg.subscribe;p=!i&&!l}return[p,!1]}})(f),m=(({reducerPath:e,context:t,api:n,refetchQuery:r,internalState:a})=>{let{removeQueryResult:o}=n.internalActions;function s(n,s){let i=n.getState()[e],l=i.queries,c=a.currentSubscriptions;t.batch(()=>{for(let e of c.keys()){let t=l[e],a=c.get(e);if(!a||!t)continue;let u=[...a.values()];(u.some(e=>!0===e[s])||u.every(e=>void 0===e[s])&&i.config[s])&&(0===a.size?n.dispatch(o({queryCacheKey:e})):t.status!==oy&&n.dispatch(r(t)))}})}return(e,t)=>{oD.match(e)&&s(t,"refetchOnFocus"),oF.match(e)&&s(t,"refetchOnReconnect")}})(f);return e=>o=>{let c;if(!rD(o))return e(o);i||(i=!0,n.dispatch(r.internalActions.middlewareRegistered(s)));let u={...n,next:e},d=n.getState(),[f,v]=h(o,u,d);if(c=f?e(o):v,n.getState()[t]&&(m(o,u,d),l(o)||a.hasRehydrationInfo(o)))for(let e of p)e(o,u,d);return c}},actions:i};function u(t){return e.api.endpoints[t.endpointName].initiate(t.originalArgs,{subscribe:!1,forceRefetch:!0})}}({reducerPath:a,context:h,queryThunk:S,mutationThunk:_,infiniteQueryThunk:k,api:t,assertTagType:m,selectors:v,getRunningQueryThunk:F,getInternalState:M});return sl(t.util,$),sl(t,{reducer:O,middleware:B}),{name:sv,injectEndpoint(e,n){let r=t.endpoints[e]??={};oW(n)&&sl(r,{name:e,select:y(e,n),initiate:R(e,n)},N(S,e)),n.type===oq&&sl(r,{name:e,select:x(),initiate:L(e)},N(_,e)),oY(n)&&sl(r,{name:e,select:w(e,n),initiate:z(e,n)},N(S,e))}}}});function sb(e){return e.replace(e[0],e[0].toUpperCase())}function sy(e){return"infinitequery"===e.type}function sw(e,...t){return Object.assign(e,...t)}sg();var sx=Symbol();function sS(e){let t=(0,g.useRef)(e),n=(0,g.useMemo)(()=>o_(t.current,e),[e]);return(0,g.useEffect)(()=>{t.current!==n&&(t.current=n)},[n]),n}function sk(e){let t=(0,g.useRef)(e);return(0,g.useEffect)(()=>{rg(t.current,e)||(t.current=e)},[e]),rg(t.current,e)?t.current:e}var s_="u">typeof window&&void 0!==window.document&&void 0!==window.document.createElement,sE="u">typeof navigator&&"ReactNative"===navigator.product,sj=s_||sE?g.useLayoutEffect:g.useEffect,sC=e=>e.isUninitialized?{...e,isUninitialized:!1,isFetching:!0,isLoading:void 0===e.data,status:ob.pending}:e;function sP(e,...t){let n={};return t.forEach(t=>{n[t]=e[t]}),n}var sN=["data","status","isLoading","isSuccess","isError","error"],sO=Symbol(),sT=function(...e){return function(t){let n=oh(e=>t.extractRehydrationInfo?.(e,{reducerPath:t.reducerPath??"api"})),r={reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1,invalidationBehavior:"delayed",...t,extractRehydrationInfo:n,serializeQueryArgs(e){let n=si;if("serializeQueryArgs"in e.endpointDefinition){let t=e.endpointDefinition.serializeQueryArgs;n=e=>{let n=t(e);return"string"==typeof n?n:si({...e,queryArgs:n})}}else t.serializeQueryArgs&&(n=t.serializeQueryArgs);return n(e)},tagTypes:[...t.tagTypes||[]]},a={endpointDefinitions:{},batch(e){e()},apiUid:a6(),extractRehydrationInfo:n,hasRehydrationInfo:oh(e=>null!=n(e))},o={injectEndpoints:function(e){for(let[t,n]of Object.entries(e.endpoints({query:e=>({...e,type:oV}),mutation:e=>({...e,type:oq}),infiniteQuery:e=>({...e,type:oU})}))){if(!0!==e.overrideExisting&&t in a.endpointDefinitions){if("throw"===e.overrideExisting)throw Error(od(39));continue}for(let e of(a.endpointDefinitions[t]=n,s))e.injectEndpoint(t,n)}return o},enhanceEndpoints({addTagTypes:e,endpoints:t}){if(e)for(let t of e)r.tagTypes.includes(t)||r.tagTypes.push(t);if(t)for(let[e,n]of Object.entries(t))"function"==typeof n?n(oJ(a,e)):Object.assign(oJ(a,e)||{},n);return o}},s=e.map(e=>e.init(o,r,a));return o.injectEndpoints({endpoints:t.endpoints})}}(sg(),(({batch:e=rP,hooks:t={useDispatch:rE,useSelector:rC,useStore:r_},createSelector:n=ov,unstable__sideEffectsInRender:r=!1,...a}={})=>({name:sO,init(a,{serializeQueryArgs:o},s){let{buildQueryHooks:i,buildInfiniteQueryHooks:l,buildMutationHook:c,usePrefetch:u}=function({api:e,moduleOptions:{batch:t,hooks:{useDispatch:n,useSelector:r,useStore:a},unstable__sideEffectsInRender:o,createSelector:s},serializeQueryArgs:i,context:l}){let c=o?e=>e():g.useEffect,u=e=>e.current?.unsubscribe?.(),d=l.endpointDefinitions;return{buildQueryHooks:function(r){let a=(e,t={})=>{let[n]=h(r,e,t);return v(n),(0,g.useMemo)(()=>({refetch:()=>(function(e){if(!e.current)throw Error(od(38));return e.current.refetch()})(n)}),[n])},o=({refetchOnReconnect:a,refetchOnFocus:o,pollingInterval:s=0,skipPollingIfUnfocused:i=!1}={})=>{let{initiate:l}=e.endpoints[r],d=n(),[f,p]=(0,g.useState)(sx),h=(0,g.useRef)(void 0),m=sk({refetchOnReconnect:a,refetchOnFocus:o,pollingInterval:s,skipPollingIfUnfocused:i});c(()=>{m!==h.current?.subscriptionOptions&&h.current?.updateSubscriptionOptions(m)},[m]);let v=(0,g.useRef)(m);c(()=>{v.current=m},[m]);let b=(0,g.useCallback)(function(e,n=!1){let r;return t(()=>{u(h),h.current=r=d(l(e,{subscriptionOptions:v.current,forceRefetch:!n})),p(e)}),r},[d,l]),y=(0,g.useCallback)(()=>{h.current?.queryCacheKey&&d(e.internalActions.removeQueryResult({queryCacheKey:h.current?.queryCacheKey}))},[d]);return(0,g.useEffect)(()=>()=>{u(h)},[]),(0,g.useEffect)(()=>{f===sx||h.current||b(f,!0)},[f,b]),(0,g.useMemo)(()=>[b,f,{reset:y}],[b,f,y])},s=m(r,f);return{useQueryState:s,useQuerySubscription:a,useLazyQuerySubscription:o,useLazyQuery(e){let[t,n,{reset:r}]=o(e),a=s(n,{...e,skip:n===sx}),i=(0,g.useMemo)(()=>({lastArg:n}),[n]);return(0,g.useMemo)(()=>[t,{...a,reset:r},i],[t,a,r,i])},useQuery(e,t){let n=a(e,t),r=s(e,{selectFromResult:e===sn||t?.skip?void 0:sC,...t}),o=sP(r,...sN);return(0,g.useDebugValue)(o),(0,g.useMemo)(()=>({...r,...n}),[r,n])}}},buildInfiniteQueryHooks:function(e){let n=(n,r={})=>{let[a,o,s,i]=h(e,n,r),l=(0,g.useRef)(i);c(()=>{l.current=i},[i]);let d=sk(r.refetchCachedPages),f=(0,g.useCallback)(function(e,n){let r;return t(()=>{u(a),a.current=r=o(s(e,{subscriptionOptions:l.current,direction:n}))}),r},[a,o,s]);v(a);let p=sS(r.skip?sn:n),m=(0,g.useCallback)(e=>{if(!a.current)throw Error(od(38));let t={refetchCachedPages:e?.refetchCachedPages??d};return a.current.refetch(t)},[a,d]);return(0,g.useMemo)(()=>({trigger:f,refetch:m,fetchNextPage:()=>f(p,"forward"),fetchPreviousPage:()=>f(p,"backward")}),[m,f,p])},r=m(e,p);return{useInfiniteQueryState:r,useInfiniteQuerySubscription:n,useInfiniteQuery(e,t){let{refetch:a,fetchNextPage:o,fetchPreviousPage:s}=n(e,t),i=r(e,{selectFromResult:e===sn||t?.skip?void 0:sC,...t}),l=sP(i,...sN,"hasNextPage","hasPreviousPage");return(0,g.useDebugValue)(l),(0,g.useMemo)(()=>({...i,fetchNextPage:o,fetchPreviousPage:s,refetch:a}),[i,o,s,a])}}},buildMutationHook:function(a){return({selectFromResult:o,fixedCacheKey:i}={})=>{let{select:l,initiate:c}=e.endpoints[a],u=n(),[d,f]=(0,g.useState)();(0,g.useEffect)(()=>()=>{d?.arg.fixedCacheKey||d?.reset()},[d]);let p=(0,g.useCallback)(function(e){let t=u(c(e,{fixedCacheKey:i}));return f(t),t},[u,c,i]),{requestId:h}=d||{},m=(0,g.useMemo)(()=>l({fixedCacheKey:i,requestId:d?.requestId}),[i,d,l]),v=r((0,g.useMemo)(()=>o?s([m],o):m,[o,m]),rg),b=null==i?d?.arg.originalArgs:void 0,y=(0,g.useCallback)(()=>{t(()=>{d&&f(void 0),i&&u(e.internalActions.removeMutationResult({requestId:h,fixedCacheKey:i}))})},[u,i,d,h]),w=sP(v,...sN,"endpointName");(0,g.useDebugValue)(w);let x=(0,g.useMemo)(()=>({...v,originalArgs:b,reset:y}),[v,b,y]);return(0,g.useMemo)(()=>[p,x],[p,x])}},usePrefetch:function(t,r){let a=n(),o=sk(r);return(0,g.useCallback)((n,r)=>a(e.util.prefetch(t,n,{...o,...r})),[t,a,o])}};function f(e,t,n){if(t?.endpointName&&e.isUninitialized){let{endpointName:e}=t,r=d[e];n!==sn&&i({queryArgs:t.originalArgs,endpointDefinition:r,endpointName:e})===i({queryArgs:n,endpointDefinition:r,endpointName:e})&&(t=void 0)}let r=e.isSuccess?e.data:t?.data;void 0===r&&(r=e.data);let a=void 0!==r,o=e.isLoading,s=(!t||t.isLoading||t.isUninitialized)&&!a&&o,l=e.isSuccess||a&&(o&&!t?.isError||e.isUninitialized);return{...e,data:r,currentData:e.data,isFetching:o,isLoading:s,isSuccess:l}}function p(e,t,n){if(t?.endpointName&&e.isUninitialized){let{endpointName:e}=t,r=d[e];n!==sn&&i({queryArgs:t.originalArgs,endpointDefinition:r,endpointName:e})===i({queryArgs:n,endpointDefinition:r,endpointName:e})&&(t=void 0)}let r=e.isSuccess?e.data:t?.data;void 0===r&&(r=e.data);let a=void 0!==r,o=e.isLoading,s=(!t||t.isLoading||t.isUninitialized)&&!a&&o,l=e.isSuccess||a&&(o&&!t?.isError||e.isUninitialized);return{...e,data:r,currentData:e.data,isFetching:o,isLoading:s,isSuccess:l}}function h(t,r,{refetchOnReconnect:a,refetchOnFocus:o,refetchOnMountOrArgChange:s,skip:i=!1,pollingInterval:l=0,skipPollingIfUnfocused:u=!1,...f}={}){let{initiate:p}=e.endpoints[t],m=n(),v=(0,g.useRef)(void 0);v.current||(v.current=m(e.internalActions.internal_getRTKQSubscriptions()));let b=sS(i?sn:r),y=sk({refetchOnReconnect:a,refetchOnFocus:o,pollingInterval:l,skipPollingIfUnfocused:u}),w=sk(f.initialPageParam),x=sk(f.refetchCachedPages),S=(0,g.useRef)(void 0),{queryCacheKey:k,requestId:_}=S.current||{},E=!1;k&&_&&(E=v.current.isRequestSubscribed(k,_));let j=!E&&void 0!==S.current;return c(()=>{j&&(S.current=void 0)},[j]),c(()=>{let e=S.current;if(b===sn){e?.unsubscribe(),S.current=void 0;return}let n=S.current?.subscriptionOptions;e&&e.arg===b?y!==n&&e.updateSubscriptionOptions(y):(e?.unsubscribe(),S.current=m(p(b,{subscriptionOptions:y,forceRefetch:s,...sy(d[t])?{initialPageParam:w,refetchCachedPages:x}:{}})))},[m,p,s,b,y,j,w,x,t]),[S,m,p,y]}function m(t,n){return(o,{skip:i=!1,selectFromResult:l}={})=>{let{select:c}=e.endpoints[t],u=sS(i?sn:o),d=(0,g.useRef)(void 0),f=(0,g.useMemo)(()=>s([c(u),(e,t)=>t,e=>u],n,{memoizeOptions:{resultEqualityCheck:rg}}),[c,u]),p=(0,g.useMemo)(()=>l?s([f],l,{devModeChecks:{identityFunctionCheck:"never"}}):f,[f,l]),h=r(e=>p(e,d.current),rg),m=f(a().getState(),d.current);return sj(()=>{d.current=m},[m]),h}}function v(e){(0,g.useEffect)(()=>()=>{u(e),e.current=void 0},[e])}}({api:a,moduleOptions:{batch:e,hooks:t,unstable__sideEffectsInRender:r,createSelector:n},serializeQueryArgs:o,context:s});return sw(a,{usePrefetch:u}),sw(s,{batch:e}),{injectEndpoint(e,t){if("query"===t.type){let{useQuery:t,useLazyQuery:n,useLazyQuerySubscription:r,useQueryState:o,useQuerySubscription:s}=i(e);sw(a.endpoints[e],{useQuery:t,useLazyQuery:n,useLazyQuerySubscription:r,useQueryState:o,useQuerySubscription:s}),a[`use${sb(e)}Query`]=t,a[`useLazy${sb(e)}Query`]=n}if("mutation"===t.type){let t=c(e);sw(a.endpoints[e],{useMutation:t}),a[`use${sb(e)}Mutation`]=t}else if(sy(t)){let{useInfiniteQuery:t,useInfiniteQuerySubscription:n,useInfiniteQueryState:r}=l(e);sw(a.endpoints[e],{useInfiniteQuery:t,useInfiniteQuerySubscription:n,useInfiniteQueryState:r}),a[`use${sb(e)}InfiniteQuery`]=t}}}}}))()),sA=a(746),sM=a.n(sA),sR=a(3791),sz=a.n(sR);sM().extend(sz());let sL=e=>e&&("string"!=typeof e||10!==e.length)?sM()(new Date(e)).format("YYYY-MM-DD"):e,sI=e=>sM()(new Date(e)).utc().format("M/D/YYYY"),sD=["Jan.","Feb.","March","April","May","June","July","Aug.","Sept.","Oct.","Nov.","Dec."],sH=e=>sM()(new Date(e)).utc().add(5.5,"hours").format("YYYY-MM-DD"),sF="2011-12-01",sB="M/D/YYYY",s$=sL(new Date),sV=sL(sF),sq="MODAL_TYPE_DATA_EXPORT",sU="MODAL_TYPE_EXPORT_CONFIRMATION",sW="MODAL_TYPE_MORE_ABOUT",sY=["company","company_public_response","company_response","issue","product","state","submitted_via","tags","timely","zip_code"],sK=["company_received_max","company_received_min","date_received_max","date_received_min"],sQ={"3m":"3 months","6m":"6 months","1y":"1 year","3y":"3 years",All:"Full date range"},sG=["issue","product"],sJ={};sJ["10"]="10 results",sJ["25"]="25 results",sJ["50"]="50 results",sJ["100"]="100 results";let sX={created_date_desc:"Newest to oldest",created_date_asc:"Oldest to newest",relevance_desc:"Most relevant",relevance_asc:"Least relevant"},sZ={AA:"Armed Forces Americas",AE:"Armed Forces Europe",AL:"Alabama",AK:"Alaska",AS:"American Samoa",AP:"Armed Forces Pacific",AZ:"Arizona",AR:"Arkansas",CA:"California",CO:"Colorado",CT:"Connecticut",DE:"Delaware",DC:"District Of Columbia",FM:"Federated States Of Micronesia",FL:"Florida",GA:"Georgia",GU:"Guam",HI:"Hawaii",ID:"Idaho",IL:"Illinois",IN:"Indiana",IA:"Iowa",KS:"Kansas",KY:"Kentucky",LA:"Louisiana",ME:"Maine",MH:"Marshall Islands",MD:"Maryland",MA:"Massachusetts",MI:"Michigan",MN:"Minnesota",MS:"Mississippi",MO:"Missouri",MT:"Montana",NE:"Nebraska",NV:"Nevada",NH:"New Hampshire",NJ:"New Jersey",NM:"New Mexico",NY:"New York",NC:"North Carolina",ND:"North Dakota",MP:"Northern Mariana Islands",OH:"Ohio",OK:"Oklahoma",OR:"Oregon",PW:"Palau",PA:"Pennsylvania",PR:"Puerto Rico",RI:"Rhode Island",SC:"South Carolina",SD:"South Dakota",TN:"Tennessee",TX:"Texas",UT:"Utah",VT:"Vermont",VI:"Virgin Islands",VA:"Virginia",WA:"Washington",WV:"West Virginia",WI:"Wisconsin",WY:"Wyoming"},s0="/data-research/consumer-complaints/search/api/v1/",s1=location.origin.includes("localhost")?"https://www.consumerfinance.gov/complaint/data-use/":"/complaint/data-use/",s2=RegExp("(%[a-f0-9]{2})+","gi"),s3=/^[a-f\d]{2}$/i;function s7(e,t){if(37!==e.codePointAt(t)||t+3>e.length)return;let n=e.slice(t+1,t+3);if(s3.test(n))return{byte:Number.parseInt(n,16),next:t+3}}function s5(e){if("string"!=typeof e||1!==e.length)throw TypeError("arrayFormatSeparator must be single character string")}function s4(e,t){return t.encode?t.strict?encodeURIComponent(e).replaceAll(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`):encodeURIComponent(e):e}function s6(e,t){if(t.decode){if("string"!=typeof e)throw TypeError(`Expected \`encodedURI\` to be of type \`string\`, got \`${typeof e}\``);try{return decodeURIComponent(e)}catch{var n=e;let t={"%FE%FF":"��","%FF%FE":"��"},r=s2.exec(n);for(;r;){try{t[r[0]]=decodeURIComponent(r[0])}catch{let e=function(e){try{return decodeURIComponent(e)}catch{let r="",a=0;for(;a<e.length;){var t,n;if(37!==e.codePointAt(a)){r+=e.charAt(a),a++;continue}let o=s7(e,a);if(!o){r+=e.charAt(a),a++;continue}let s=(t=o.byte)<=127?1:t>=194&&t<=223?2:t>=224&&t<=239?3:4*(t>=240&&t<=244);if(0===s){r+=e.slice(a,a+3),a+=3;continue}let i=o.next,l=!0;for(let t=1;t<s;t++){let t=s7(e,i);if(!t||!((n=t.byte)>=128&&n<=191)){l=!1;break}i=t.next}if(l){let t=e.slice(a,i);try{r+=decodeURIComponent(t),a=i;continue}catch{}}r+=e.slice(a,a+3),a+=3}return r}}(r[0]);e!==r[0]&&(t[r[0]]=e)}r=s2.exec(n)}for(let e of(t["%C2"]="�",Object.keys(t)))n=n.replace(RegExp(e,"g"),t[e]);return n}}return e}function s9(e,t,n){return"string"===n&&"string"==typeof e?e:"function"==typeof n&&"string"==typeof e?n(e):"boolean"===n&&null===e||("boolean"===n&&null!==e&&("true"===e.toLowerCase()||"false"===e.toLowerCase())?"true"===e.toLowerCase():"boolean"===n&&null!==e&&("1"===e.toLowerCase()||"0"===e.toLowerCase())?"1"===e.toLowerCase():"string[]"===n&&"none"!==t.arrayFormat&&"string"==typeof e?[e]:"number[]"!==n||"none"===t.arrayFormat||Number.isNaN(Number(e))||"string"!=typeof e||""===e.trim()?"number"!==n||Number.isNaN(Number(e))||"string"!=typeof e||""===e.trim()?t.parseBooleans&&null!==e&&("true"===e.toLowerCase()||"false"===e.toLowerCase())?"true"===e.toLowerCase():t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?Number(e):e:Number(e):[Number(e)])}function s8(e,t){if(!e)return"";s5((t={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...t}).arrayFormatSeparator);let n=n=>t.skipNull&&null==e[n]||t.skipEmptyString&&""===e[n],r=function(e){switch(e.arrayFormat){case"index":return t=>(n,r)=>{let a=n.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r||(null===r?n.push([s4(t,e),"[",a,"]"].join("")):n.push([s4(t,e),"[",s4(a,e),"]=",s4(r,e)].join(""))),n};case"bracket":return t=>(n,r)=>(void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r||(null===r?n.push([s4(t,e),"[]"].join("")):n.push([s4(t,e),"[]=",s4(r,e)].join(""))),n);case"colon-list-separator":return t=>(n,r)=>(void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r||(null===r?n.push([s4(t,e),":list="].join("")):n.push([s4(t,e),":list=",s4(r,e)].join(""))),n);case"comma":case"separator":case"bracket-separator":{let t="bracket-separator"===e.arrayFormat?"[]=":"=";return n=>(r,a)=>(void 0===a||e.skipNull&&null===a||e.skipEmptyString&&""===a||((a=null===a?"":a,0===r.length)?r.push([s4(n,e),t,s4(a,e)].join("")):r.push(s4(a,e))),r)}default:return t=>(n,r)=>(void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r||(null===r?n.push(s4(t,e)):n.push([s4(t,e),"=",s4(r,e)].join(""))),n)}}(t),a={};for(let[t,r]of Object.entries(e))n(t)||(a[t]=r);let o=Object.keys(a);return!1!==t.sort&&o.sort(t.sort),o.map(n=>{let a=e[n];if(t.replacer&&void 0===(a=t.replacer(n,a))||void 0===a)return"";if(null===a)return s4(n,t);if(Array.isArray(a)){if(0===a.length&&"bracket-separator"===t.arrayFormat)return s4(n,t)+"[]";let e=a;t.replacer&&(e=a.map((e,r)=>t.replacer(`${n}[${r}]`,e)).filter(e=>void 0!==e));let o=e.reduce(r(n),[]),s=["comma","separator","bracket-separator"].includes(t.arrayFormat)?t.arrayFormatSeparator:"&";return o.join(s)}return s4(n,t)+"="+s4(a,t)}).filter(e=>e.length>0).join("&")}Symbol("encodeFragmentIdentifier");let ie=sT({baseQuery:function({baseUrl:e,prepareHeaders:t=e=>e,fetchFn:n=oO,paramsSerializer:r,isJsonContentType:a=e=>/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||""),jsonContentType:o="application/json",jsonReplacer:s,timeout:i,responseHandler:l,validateStatus:c,...u}={}){return"u"<typeof fetch&&n===oO&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),async(f,p,h)=>{let m,v,g,b,y,{getState:w,extra:x,endpoint:S,forced:k,type:_}=p,{url:E,headers:j=new Headers(u.headers),params:C,responseHandler:P=l??"json",validateStatus:N=c??oT,timeout:O=i,...T}="string"==typeof f?{url:f}:f,A={...u,signal:O?((...e)=>{for(let t of e)if(t.aborted)return AbortSignal.abort(t.reason);let t=new AbortController;for(let n of e)n.addEventListener("abort",()=>t.abort(n.reason),{signal:t.signal,once:!0});return t.signal})(p.signal,(b=new AbortController,setTimeout(()=>{let e="signal timed out",t="TimeoutError";b.abort("u">typeof DOMException?new DOMException(e,t):Object.assign(Error(e),{name:t}))},O),b.signal)):p.signal,...T};j=new Headers(oA(j)),A.headers=await t(j,{getState:w,arg:f,extra:x,endpoint:S,forced:k,type:_,extraOptions:h})||j;let M="object"==typeof(y=A.body)&&(rz(y)||Array.isArray(y)||"function"==typeof y.toJSON);if(null==A.body||M||"string"==typeof A.body||A.headers.delete("content-type"),!A.headers.has("content-type")&&M&&A.headers.set("content-type",o),M&&a(A.headers)&&(A.body=JSON.stringify(A.body,s)),A.headers.has("accept")||("json"===P?A.headers.set("accept","application/json"):"text"===P&&A.headers.set("accept","text/plain, text/html, */*")),C){let e=~E.indexOf("?")?"&":"?";E+=e+(r?r(C):new URLSearchParams(oA(C)))}let R=new Request(E=function(e,t){var n;if(!e)return t;if(!t)return e;if(n=t,RegExp("(^|:)//").test(n))return t;let r=e.endsWith("/")||!t.startsWith("?")?"/":"";return e=e.replace(/\/$/,""),t=t.replace(/^\//,""),`${e}${r}${t}`}(e,E),A);m={request:new Request(E,A)};try{v=await n(R)}catch(e){return{error:{status:(e instanceof Error||"u">typeof DOMException&&e instanceof DOMException)&&"TimeoutError"===e.name?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(e)},meta:m}}let z=v.clone();m.response=z;let L="";try{let e;if(await Promise.all([d(v,P).then(e=>g=e,t=>e=t),z.text().then(e=>L=e,()=>{})]),e)throw e}catch(e){return{error:{status:"PARSING_ERROR",originalStatus:v.status,data:L,error:String(e)},meta:m}}return N(v,g)?{data:g,meta:m}:{error:{status:v.status,data:g},meta:m}};async function d(e,t){if("function"==typeof t)return t(e);if("content-type"===t&&(t=a(e.headers)?"json":"text"),"json"===t){let t=await e.text();return t.length?JSON.parse(t):null}return e.text()}}({baseUrl:s0}),keepUnusedDataFor:3600,endpoints:e=>({getAggregations:e.query({query:e=>({url:"?".concat(s8(e))}),transformResponse:e=>{if(!e)return{};let t={},n=e.aggregations,r=Object.keys(n);for(let a of(t.doc_count=Math.max(e.hits.total.value,e._meta.total_record_count),t.lastUpdated=e._meta.last_updated,t.lastIndexed=e._meta.last_indexed,t.hasDataIssue=e._meta.has_data_issue,t.isDataStale=e._meta.is_data_stale,t.total=e.hits.total.value,r))t[a]=n[a][a].buckets;return t}}),getDocument:e.query({query:e=>e,transformResponse:e=>e.hits.hits[0]._source}),getList:e.query({query:e=>({url:"?".concat(s8(e))}),transformResponse:e=>{let t=e._meta.break_points,n=e.hits.hits.map(e=>{let t=rO({},e._source);if(e.highlight)for(let[n,r]of Object.entries(e.highlight))t[n]=r[0];return t}),r=Object.keys(t).length+1;return{breakPoints:t,hits:n,totalPages:r}}}),getMeta:e.query({query:()=>({url:"?field=all&size=0&no_aggs=true"})}),getSuggest:e.query({query:e=>({url:e.url})})})}),{useGetAggregationsQuery:it,useGetDocumentQuery:ir,useGetListQuery:ia,useGetMetaQuery:io,useGetSuggestQuery:is}=ie;var ii=a(4137),il=a.n(ii),ic=a(6266);function iu(){let e=Object.freeze(Object.defineProperties(["\\$&"],{raw:{value:Object.freeze(["\\\\$&"])}}));return iu=function(){return e},e}let id="ccdb-ui-modal-portal",ip="ccdb-ui-overlay-portal",ih=()=>void 0===globalThis.window?{}:globalThis.__CCDB_CONFIG__||{},im=e=>"u">typeof CSS&&CSS.escape?CSS.escape(e):String(e).replaceAll(/[^a-zA-Z0-9_-]/g,String.raw(iu())),iv=()=>{let{mountId:e}=ih();return e||"ccdb-ui-root"},ig=()=>{let{root:e}=ih();return e?"string"==typeof e?document.querySelector(e)||document:e instanceof ShadowRoot||e instanceof HTMLElement?e:document:document},ib=()=>{let e=ig();if(e instanceof ShadowRoot){let t=im(id),n=e.querySelector("#".concat(t));return n||((n=document.createElement("div")).id=id,e.append(n)),n}return e instanceof HTMLElement?e:document.body},iy=e=>{let t=ig(),n=im(e);if(t&&t.querySelector){let e=t.querySelector("#".concat(n));if(e)return e}return document.querySelector("#".concat(n))},iw=e=>{let t=ig();if(t&&t.querySelector){let n=t.querySelector(e);if(n)return n}return t instanceof ShadowRoot?null:document.querySelector(e)},ix=()=>{let e=ig();return e instanceof ShadowRoot?ib():e instanceof HTMLElement?e:document.body},iS=e=>{let t,n,r=(0,v.c)(2),{isLoading:a}=e;return a?(r[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,h.jsx)(N,{name:"updating",isPresentational:!0}),r[0]=t):t=r[0],r[1]===Symbol.for("react.memo_cache_sentinel")?(n=(0,ic.createPortal)((0,h.jsx)("section",{className:"loading-overlay","aria-busy":"true","aria-live":"polite",children:(0,h.jsxs)("div",{className:"loading-overlay__box",children:[t," ",(0,h.jsx)("span",{children:"This page is loading"})]})}),(()=>{let e=ig();if(e instanceof ShadowRoot){let t=im(ip),n=e.querySelector("#".concat(t));return n||((n=document.createElement("div")).id=ip,n.className="ccdb-ui-overlay-portal",e.append(n)),n}return e instanceof HTMLElement?e:document.body})()),r[1]=n):n=r[1],n):null};iS.propTypes={isLoading:il().bool.isRequired};let ik=e=>e.routes.params,i_=e=>e.routes.queryString,iE={tagManagerIsLoaded:!1,EVENT_CATEGORY:"Consumer Complaint Search",getDataLayerOptions:function(e,t,n,r,a){return{event:n||iE.EVENT_CATEGORY,action:e,label:t||"",eventCallback:r,eventTimeout:a||500}},init:function(){if(Object.prototype.hasOwnProperty.call(globalThis,"google_tag_manager"))iE.tagManagerIsLoaded=!0;else{let e;Object.defineProperty(globalThis,"google_tag_manager",{enumerable:!0,configurable:!0,get:function(){return e},set:function(t){e=t,iE.tagManagerIsLoaded=!0}})}},sendEvent:function(e){let t=e.eventCallback,n=globalThis.dataLayer;n&&iE.tagManagerIsLoaded?n.push(e):"function"==typeof t&&t()}};function ij(e){return[...e||""].join(" ")}iE.init();let iC=(e,t,n)=>"object"==typeof e&&Object.hasOwn(e,t)&&e[t]||n,iP=e=>e.toLowerCase(),iN=e=>e.some(e=>!!e),iO=e=>e.toLowerCase().replaceAll(/[^a-z0-9]+/g,"-").replaceAll(/^-+|-+$/g,""),iT=(e,t)=>e+"•"+t,iA=(e,t,n)=>{e.every(e=>e.key!==t)&&e.push({key:t,doc_count:0,["sub_".concat(n,".raw")]:{doc_count_error_upper_bound:0,sum_other_doc_count:0,buckets:[]}})},iM=(e,t,n)=>{let r=e.find(e=>e.key===t.split("•")[0]),a="sub_".concat(n,".raw");if(!Object.hasOwn(r,a))return;let o=r[a];o&&o.buckets.every(e=>e.key!==t.split("•")[1])&&o.buckets.push({key:t.split("•")[1],doc_count:0})},iR=(e,t,n)=>{let r=t||[],a="sub_".concat(n,".raw");return[...structuredClone(e)||[]].toSorted((e,t)=>{let n=r.includes(e.key);if(n!==r.includes(t.key))return n?-1:1;let o=(()=>{if(!e||!Object.hasOwn(e,a))return!1;let t=e[a];return!!t&&t.buckets.some(t=>r.includes(e.key+"•"+t.key))})();return o!==(()=>{if(!t||!Object.hasOwn(t,a))return!1;let e=t[a];return!!e&&e.buckets.some(e=>r.includes(t.key+"•"+e.key))})()?o?-1:1:t.doc_count-e.doc_count})};function iz(e){let t=sM()(e);return e?t.format("M/D/YYYY"):""}let iL={value:null};function iI(){return iL.value||(console.error("waiting for API response, setting MAX_DATE to today"),iL.value=sL(sM()().startOf("day"))),iL.value}function iD(e){if(!e)return e;let t=document.createElement("a");return t.href=e,t.href}let iH=(e,t)=>{iE.sendEvent(iE.getDataLayerOptions(e,t))},iF=e=>{let t,n=(0,v.c)(3),{label:r,value:a}=e;return n[0]!==r||n[1]!==a?(t=a?(0,h.jsxs)("div",{className:"complaint-detail__subaggregation",children:[(0,h.jsx)("span",{className:"complaint-detail__subaggregation-label",children:r}),(0,h.jsx)("span",{children:a})]}):null,n[0]=r,n[1]=a,n[2]=t):t=n[2],t};iF.propTypes={label:il().string,value:il().string};let iB=e=>{let t,n,r=(0,v.c)(4),{value:a}=e;if(!a){let e;return r[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,h.jsx)("span",{children:"N/A"}),r[0]=e):e=r[0],e}return r[1]===Symbol.for("react.memo_cache_sentinel")?(t=(0,h.jsx)("span",{className:"complaint-detail__timely-icon",children:(0,h.jsx)(N,{name:"clock-round",isPresentational:!0})}),r[1]=t):t=r[1],r[2]!==a?(n=(0,h.jsxs)("div",{children:[t,(0,h.jsx)("span",{children:a})]}),r[2]=a,r[3]=n):n=r[3],n};iB.propTypes={value:il().string};let i$=e=>{let t,n,r,a,o,s,i,l,c,u,d,f,p,m,g,b,y,w,x,S,k,_,E,j,C,P,N,O,T,A,M,R,z,L,I,D,H=(0,v.c)(77),{data:F,error:B,id:$}=e;if(B){let e;return H[0]!==$?(e=(0,h.jsxs)(tP,{type:"1",children:["There was a problem retrieving ",$]}),H[0]=$,H[1]=e):e=H[1],e}let V="Complaint "+ij($);H[2]!==$||H[3]!==V?(t=(0,h.jsx)(tP,{type:"1","aria-label":V,children:$}),H[2]=$,H[3]=V,H[4]=t):t=H[4],H[5]===Symbol.for("react.memo_cache_sentinel")?(n=(0,h.jsx)(tP,{type:"4",children:"Date CFPB received the complaint"}),H[5]=n):n=H[5],H[6]!==F.date_received?(r=sI(F.date_received),H[6]=F.date_received,H[7]=r):r=H[7],H[8]!==r?(a=(0,h.jsx)("span",{children:r}),H[8]=r,H[9]=a):a=H[9],H[10]===Symbol.for("react.memo_cache_sentinel")?(o=(0,h.jsx)(tP,{type:"4",className:"u-mt15",children:"Consumer’s state"}),H[10]=o):o=H[10],H[11]!==F.state?(s=(0,h.jsx)("span",{children:F.state}),H[11]=F.state,H[12]=s):s=H[12],H[13]===Symbol.for("react.memo_cache_sentinel")?(i=(0,h.jsx)(tP,{type:"4",className:"u-mt15",children:"Consumer’s zip"}),H[13]=i):i=H[13],H[14]!==F.zip_code?(l=(0,h.jsx)("span",{children:F.zip_code}),H[14]=F.zip_code,H[15]=l):l=H[15],H[16]===Symbol.for("react.memo_cache_sentinel")?(c=(0,h.jsx)(tP,{type:"4",className:"u-mt15",children:"Submitted via"}),H[16]=c):c=H[16],H[17]!==F.submitted_via?(u=(0,h.jsx)("span",{children:F.submitted_via}),H[17]=F.submitted_via,H[18]=u):u=H[18],H[19]!==F.tags?(d=F.tags&&F.tags.length>0?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(tP,{type:"4",className:"u-mt15",children:"Tags"}),(0,h.jsx)("span",{children:F.tags})]}):null,H[19]=F.tags,H[20]=d):d=H[20],H[21]!==u||H[22]!==d||H[23]!==a||H[24]!==s||H[25]!==l?(f=(0,h.jsxs)("div",{className:"complaint-detail__column complaint-detail__column--narrow",children:[n,a,o,s,i,l,c,u,d]}),H[21]=u,H[22]=d,H[23]=a,H[24]=s,H[25]=l,H[26]=f):f=H[26],H[27]===Symbol.for("react.memo_cache_sentinel")?(p=(0,h.jsx)(tP,{type:"4",children:"Product"}),H[27]=p):p=H[27],H[28]!==F.product?(m=(0,h.jsx)(tP,{type:"3",children:F.product}),H[28]=F.product,H[29]=m):m=H[29],H[30]!==F.sub_product?(g=(0,h.jsx)(iF,{label:"Sub-product:",value:F.sub_product}),H[30]=F.sub_product,H[31]=g):g=H[31],H[32]===Symbol.for("react.memo_cache_sentinel")?(b=(0,h.jsx)(tP,{type:"4",className:"u-mt15",children:"Issue"}),H[32]=b):b=H[32],H[33]!==F.issue?(y=(0,h.jsx)(tP,{type:"3",children:F.issue}),H[33]=F.issue,H[34]=y):y=H[34],H[35]!==F.sub_issue?(w=(0,h.jsx)(iF,{label:"Sub-issue:",value:F.sub_issue}),H[35]=F.sub_issue,H[36]=w):w=H[36],H[37]!==m||H[38]!==g||H[39]!==y||H[40]!==w?(x=(0,h.jsxs)("div",{className:"complaint-detail__column complaint-detail__column--wide",children:[p,m,g,b,y,w]}),H[37]=m,H[38]=g,H[39]=y,H[40]=w,H[41]=x):x=H[41],H[42]!==f||H[43]!==x?(S=(0,h.jsxs)("div",{className:"complaint-detail__card",children:[f,x]}),H[42]=f,H[43]=x,H[44]=S):S=H[44],H[45]===Symbol.for("react.memo_cache_sentinel")?(k=(0,h.jsx)(tP,{type:"2",className:"complaint-detail__company-heading",children:"Company information"}),H[45]=k):k=H[45],H[46]===Symbol.for("react.memo_cache_sentinel")?(_=(0,h.jsx)(tP,{type:"4",children:"Date complaint sent to company"}),H[46]=_):_=H[46],H[47]!==F.date_sent_to_company?(E=sI(F.date_sent_to_company),H[47]=F.date_sent_to_company,H[48]=E):E=H[48],H[49]!==E?(j=(0,h.jsx)("span",{children:E}),H[49]=E,H[50]=j):j=H[50],H[51]===Symbol.for("react.memo_cache_sentinel")?(C=(0,h.jsx)(tP,{type:"4",className:"u-mt15",children:"Company name"}),H[51]=C):C=H[51],H[52]!==F.company?(P=(0,h.jsx)("span",{children:F.company}),H[52]=F.company,H[53]=P):P=H[53],H[54]!==j||H[55]!==P?(N=(0,h.jsxs)("div",{className:"complaint-detail__column complaint-detail__column--narrow",children:[_,j,C,P]}),H[54]=j,H[55]=P,H[56]=N):N=H[56],H[57]===Symbol.for("react.memo_cache_sentinel")?(O=(0,h.jsx)(tP,{type:"4",children:"Timely response?"}),H[57]=O):O=H[57],H[58]!==F.timely?(T=(0,h.jsx)(iB,{value:F.timely}),H[58]=F.timely,H[59]=T):T=H[59],H[60]===Symbol.for("react.memo_cache_sentinel")?(A=(0,h.jsx)(tP,{type:"4",className:"u-mt15",children:"Company response to consumer"}),H[60]=A):A=H[60];let q=F.company_response||"N/A";H[61]!==q?(M=(0,h.jsx)("span",{children:q}),H[61]=q,H[62]=M):M=H[62],H[63]===Symbol.for("react.memo_cache_sentinel")?(R=(0,h.jsx)(tP,{type:"4",className:"u-mt15",children:"Company public response"}),H[63]=R):R=H[63];let U=F.company_public_response||"N/A";return H[64]!==U?(z=(0,h.jsx)("span",{children:U}),H[64]=U,H[65]=z):z=H[65],H[66]!==T||H[67]!==M||H[68]!==z?(L=(0,h.jsxs)("div",{className:"complaint-detail__column complaint-detail__column--wide",children:[O,T,A,M,R,z]}),H[66]=T,H[67]=M,H[68]=z,H[69]=L):L=H[69],H[70]!==N||H[71]!==L?(I=(0,h.jsxs)("div",{className:"complaint-detail__card",children:[N,L]}),H[70]=N,H[71]=L,H[72]=I):I=H[72],H[73]!==t||H[74]!==S||H[75]!==I?(D=(0,h.jsxs)("article",{className:"complaint-detail__body",children:[t,S,k,I]}),H[73]=t,H[74]=S,H[75]=I,H[76]=D):D=H[76],D};i$.propTypes={data:il().object,error:il().oneOfType([il().string,il().object]),id:il().string};let iV=()=>{var e;let t,n,r,a,o,s,i,l=(0,v.c)(20),c=nT(),{id:u}=function(){let{matches:e}=g.useContext(nC),t=e[e.length-1];return t?.params??{}}(),d=rC(ik),f=null!=(e=null==c?void 0:c.pathname)?e:"";l[0]!==f?(t=f.indexOf("detail"),l[0]=f,l[1]=t):t=l[1];let p=t;l[2]!==p||l[3]!==c||l[4]!==d||l[5]!==f?(n=c?f.slice(0,Math.max(0,p))+"?"+s8(d):"",l[2]=p,l[3]=c,l[4]=d,l[5]=f,l[6]=n):n=l[6];let m=n,{data:b,isLoading:y,error:w}=ir(u);return l[7]!==m?(r=(0,h.jsx)("div",{className:"complaint-detail__back-link",children:(0,h.jsx)(L,{to:m,iconLeft:"left",label:"Back to search results"})}),l[7]=m,l[8]=r):r=l[8],l[9]===Symbol.for("react.memo_cache_sentinel")?(a=(0,h.jsx)("div",{className:"complaint-detail__meaning-link",children:(0,h.jsx)(L,{to:s1,target:"_blank",rel:"noopener noreferrer",label:"What do all these data points mean?"})}),l[9]=a):a=l[9],l[10]!==r?(o=(0,h.jsxs)("nav",{className:"complaint-detail__nav",children:[r,a]}),l[10]=r,l[11]=o):o=l[11],l[12]!==b||l[13]!==w||l[14]!==u||l[15]!==y?(s=y?(0,h.jsx)(iS,{isLoading:!0}):(0,h.jsx)(i$,{data:b,error:w,id:u}),l[12]=b,l[13]=w,l[14]=u,l[15]=y,l[16]=s):s=l[16],l[17]!==o||l[18]!==s?(i=(0,h.jsxs)("section",{className:"complaint-detail",children:[o,s]}),l[17]=o,l[18]=s,l[19]=i):i=l[19],i};function iq(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}let iU=e=>{let t,n,r,a,o=(0,v.c)(12);o[0]!==e?({to:r,children:t}=e,n=function(e,t){if(null==e)return{};var n,r,a,o={};if("u">typeof Reflect&&Reflect.ownKeys){for(n=Reflect.ownKeys(Object(e)),a=0;a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r]);return o}if(o=function(e,t){if(null==e)return{};var n,r,a={},o=Object.getOwnPropertyNames(e);for(r=0;r<o.length;r++)n=o[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(e,t),Object.getOwnPropertySymbols)for(n=Object.getOwnPropertySymbols(e),a=0;a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r]);return o}(e,["to","children"]),o[0]=e,o[1]=t,o[2]=n,o[3]=r):(t=o[1],n=o[2],r=o[3]);let s="string"==typeof r&&(/^(https?:|mailto:|tel:)/i.test(r)||r.startsWith("#")||r.startsWith("//"));if(!r||s){let e;return o[4]!==t||o[5]!==n||o[6]!==r?(e=(0,h.jsx)("a",iq(rO({href:r},n),{children:t})),o[4]=t,o[5]=n,o[6]=r,o[7]=e):e=o[7],e}return o[8]!==t||o[9]!==n||o[10]!==r?(a=(0,h.jsx)(rl,iq(rO({to:r},n),{children:t})),o[8]=t,o[9]=n,o[10]=r,o[11]=a):a=o[11],a};iU.propTypes={to:il().string,children:il().node};let iW={dateRange:{defaultVal:"3y",values:Object.keys(sQ)},searchField:{defaultVal:"all",values:["all","company"]},size:{defaultVal:25,values:Object.keys(sJ)},sort:{defaultVal:"created_date_desc",values:Object.keys(sX)}},iY=(e,t)=>{if(Object.hasOwn(iW,t)){let n=iW[t];return n.values.includes(e)?e:n.defaultVal}return e},iK=(e,t)=>{let{params:n,path:r}=t.payload;e.path=r,e.params=n,e.queryString=s8(n)},iQ=oo({name:"routes",initialState:{path:"",params:{},queryString:""},reducers:{appUrlChanged:{reducer:iK,prepare:(e,t)=>({payload:{path:e,params:t}})},routeChanged:{reducer:iK,prepare:(e,t)=>{let n=t.size;return"string"==typeof n&&Number(n)>0&&(t.size=iY(n,"size")),{payload:{path:e,params:t}}}}}}),{appUrlChanged:iG,routeChanged:iJ}=iQ.actions;var iX=iQ.reducer;let iZ=oo({name:"view",initialState:{isPrintMode:!1,hasAdvancedSearchTips:!1,hasFilters:!0,modalTypeShown:!1,showTour:!1,width:0},reducers:{hideAdvancedSearchTips(e){e.hasAdvancedSearchTips=!1},modalHidden(e){e.modalTypeShown=!1},modalShown(e,t){e.modalTypeShown=t.payload},showAdvancedSearchTips(e){e.hasAdvancedSearchTips=!0},updatePrintModeOn(e){e.isPrintMode=!0},updatePrintModeOff(e){e.isPrintMode=!1},updateScreenSize(e,t){e.hasFilters=t.payload>749,e.width=t.payload},updateFilterVisibility(e){e.hasFilters=!e.hasFilters},tourHidden(e){e.showTour=!1},tourShown(e){e.showTour=!0}},extraReducers:e=>{e.addCase(iJ,(e,t)=>{let{params:n}=t.payload;e.isPrintMode="true"===n.isPrintMode})}}),{hideAdvancedSearchTips:i0,modalHidden:i1,modalShown:i2,showAdvancedSearchTips:i3,tourHidden:i7,tourShown:i5,updateFilterVisibility:i4,updatePrintModeOff:i6,updatePrintModeOn:i9,updateScreenSize:i8}=iZ.actions;var le=iZ.reducer;let lt=()=>{let e,t,n,r,a,o,s=(0,v.c)(8),i=rE();return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,h.jsx)(tP,{type:"1",className:"content-header",children:"Consumer Complaint Database"}),s[0]=e):e=s[0],s[1]!==i?(t=(0,h.jsx)("li",{className:"m-list__item",children:(0,h.jsx)(tw,{label:"Things to know before you use this database",isLink:!0,onClick:()=>{i(i2(sW))}})}),s[1]=i,s[2]=t):t=s[2],s[3]===Symbol.for("react.memo_cache_sentinel")?(n=(0,h.jsx)("li",{className:"m-list__item",children:(0,h.jsx)(L,{to:s1,label:"How we use complaint data",target:"_blank",rel:"noopener noreferrer"})}),s[3]=n):n=s[3],s[4]===Symbol.for("react.memo_cache_sentinel")?(r=(0,h.jsx)("li",{className:"m-list__item",children:(0,h.jsx)(L,{to:"https://cfpb.github.io/api/ccdb/",iconRight:"external-link",target:"_blank",rel:"noopener noreferrer",label:"Technical documentation"})}),s[4]=r):r=s[4],s[5]===Symbol.for("react.memo_cache_sentinel")?(a=(0,h.jsx)("li",{className:"m-list__item",children:(0,h.jsx)(L,{to:"https://cfpb.github.io/api/ccdb/release-notes.html",iconRight:"external-link",target:"_blank",rel:"noopener noreferrer",label:"Release notes"})}),s[5]=a):a=s[5],s[6]!==t?(o=(0,h.jsxs)("header",{className:"content__hero",children:[e,(0,h.jsxs)("ul",{className:"m-list m-list--horizontal",children:[t,n,r,a]})]}),s[6]=t,s[7]=o):o=s[7],o},ln=oo({name:"filters",initialState:{company:[],company_public_response:[],company_response:[],issue:[],product:[],state:[],submitted_via:[],tags:[],timely:[],zip_code:[]},reducers:{filterAdded:{reducer:(e,t)=>{let{filterName:n,filterValue:r}=t.payload;Object.hasOwn(e,n)?-1===e[n].indexOf(r)&&e[n].push(r):e[n]=[r]},prepare:(e,t)=>({payload:{filterName:e,filterValue:t}})},filterRemoved:{reducer:(e,t)=>{let{filterName:n,filterValue:r}=t.payload;if(Object.hasOwn(e,n)){let t=e[n].indexOf(r);-1!==t&&e[n].splice(t,1)}},prepare:(e,t)=>({payload:{filterName:e,filterValue:t}})},filtersCleared(e){for(let t of sY)Object.hasOwn(e,t)&&(e[t]=[])},filtersReplaced:{reducer:(e,t)=>{let{filterName:n,values:r}=t.payload;e[n]=[...new Set(r)]},prepare:(e,t)=>({payload:{filterName:e,values:t}})},filterToggled:{reducer:(e,t)=>{let{filterName:n,filterValue:r}=t.payload;e[n]=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return e.includes(t)?e=e.filter(function(e){return e!==t}):e.push(t),[...e]}(e[n],r.key)},prepare:(e,t)=>({payload:{filterName:e,filterValue:t}})},multipleFiltersAdded:{reducer:(e,t)=>{let n=t.payload.filterName,r=iC(e,n,[]);for(let e of t.payload.values)r.includes(e)||r.push(e);e[n]=r},prepare:(e,t)=>({payload:{filterName:e,values:t}})},multipleFiltersRemoved:{reducer:(e,t)=>{if(Object.hasOwn(e,t.payload.filterName))for(let n of t.payload.values){let r=e[t.payload.filterName].indexOf(n);-1!==r&&e[t.payload.filterName].splice(r,1)}},prepare:(e,t)=>({payload:{filterName:e,values:t}})},stateFilterAdded(e,t){let n=iC(e,"state",[]),{abbr:r}=t.payload;n.includes(r)||n.push(r),e.state=n},stateFilterCleared(e){e.state=[]},stateFilterRemoved(e,t){let n=iC(e,"state",[]),{abbr:r}=t.payload;e.state=n.filter(e=>e!==r)}},extraReducers:e=>{e.addCase(iJ,(e,t)=>{let{params:n}=t.payload;for(let t of sY)void 0!==n[t]&&(e[t]="string"==typeof n[t]?[n[t]]:n[t])})}}),{filterAdded:lr,filterRemoved:la,filtersCleared:lo,filtersReplaced:ls,filterToggled:li,multipleFiltersAdded:ll,multipleFiltersRemoved:lc,stateFilterAdded:lu,stateFilterCleared:ld,stateFilterRemoved:lf}=ln.actions;var lp=ln.reducer;function lh(e){let t=e.dateLastIndexed||iI(),n=e.date_received_max,r=e.date_received_min;if(sM()(n).isSame(t)&&sM()(r).isSame(sF)){e.dateRange="All";return}let a={"3y":sM()(n).subtract(3,"years"),"3m":sM()(n).subtract(3,"months"),"6m":sM()(n).subtract(6,"months"),"1y":sM()(n).subtract(1,"year")},o=Object.keys(a),s=!1;for(let t=0;!s&&t<o.length;t++){let n=o[t];sM()(r).isSame(a[n],"day")&&(e.dateRange=n,s=!0)}s||(e.dateRange="")}let lm=e=>{var t;return String(null!=(t=sL(e.toDate()))?t:"")};function lv(e,t){if(!e||!Object.hasOwn(e,t))return"";let n=e[t];return n?n.join("_"):""}function lg(e,t){return{from:(e-1)*t.size,page:e,searchAfter:lv(t,e)}}let lb={searchAfter:"search_after",searchText:"search_term",searchField:"field",from:"frm"};function ly(e){let t={};for(let r of Object.keys(e)){var n;if(!Object.hasOwn(e,r))continue;let a=e[r];if(!a)continue;let o=a;"string"==typeof o&&sK.includes(r)&&(o="string"==typeof(n=o)?n.slice(0,10):"object"==typeof n&&null!==n?sM()(n).toISOString().slice(0,10):""),Object.hasOwn(lb,r)?t[lb[r]]=o:t[r]=o}let r=new Set(["search_term","field",...sK,...sY,"frm","search_after","size","sort","format","no_aggs"]),a={};for(let[e,n]of Object.entries(t))r.has(e)&&(a[e]=n);return"?"+s8(a)}let lw={company_received_max:"",company_received_min:"",dateRange:"",dateLastIndexed:"",date_received_max:"",date_received_min:"",from:0,page:1,searchAfter:"",searchField:"all",searchText:"",size:25,sort:"created_date_desc"};function lx(e,t){var n;let r=String(iY(t,"dateRange")),a=lm(sM()(iI())),o={All:lm(sM()(sF)),"3m":lm(sM()(a).subtract(3,"months")),"6m":lm(sM()(a).subtract(6,"months")),"1y":lm(sM()(a).subtract(1,"year")),"3y":lm(sM()(a).subtract(3,"years"))};e.dateRange=r,e.date_received_min=null!=(n=o[r])?n:e.date_received_min,e.date_received_max=a}let lS=oo({name:"query",initialState:lw,reducers:{dateRangeChanged(e,t){lx(e,t.payload)},companyReceivedDateChanged:{reducer:(e,t)=>{let{maxDate:n,minDate:r}=t.payload,a=sM()(r).isValid()?lm(sM()(r).startOf("day")):null,o=sM()(n).isValid()?lm(sM()(n).startOf("day")):null;e.company_received_min=null!=a?a:"",e.company_received_max=null!=o?o:""},prepare:(e,t)=>({payload:{minDate:e,maxDate:t}})},datesChanged:{reducer:(e,t)=>{let{maxDate:n,minDate:r}=t.payload,a=sM()(r).isValid()?lm(sM()(r).startOf("day")):null,o=sM()(n).isValid()?lm(sM()(n).startOf("day")):null,s=e.date_received_min!==a||e.date_received_max!==o,i=((e,t,n)=>{let r=n?sM()(n):iI(),a=sM()(t).startOf("day");if(0!==a.diff(r,"days"))return"";let o=sM()(e).startOf("day");if(sM()(e).isSame(sF,"day"))return"All";let s=a.diff(o,"years",!0);if(3===s||1===s)return s+"y";let i=a.diff(o,"months",!0);return 6===i||3===i?i+"m":""})(a,o,e.dateLastIndexed);i&&s?e.dateRange=i:delete e.dateRange,e.date_received_min=a||e.date_received_min,e.date_received_max=o||e.date_received_max},prepare:(e,t)=>({payload:{minDate:e,maxDate:t}})},searchFieldChanged(e,t){e.searchField=t.payload},searchTextChanged(e,t){e.searchText=t.payload},prevPageShown(e,t){let n=t.payload,r=e.page-1,a=lg(r,e);e.page=a.page,e.from=a.from,e.searchAfter=lv(n,r)},nextPageShown(e,t){let n=t.payload,r=e.page+1,a=lg(r,e);e.page=a.page,e.from=a.from,e.searchAfter=lv(n,r)},sizeChanged(e,t){e.size=iY(t.payload,"size")},sortChanged(e,t){e.sort=String(iY(t.payload,"sort"))}},extraReducers:e=>{e.addCase(lo,e=>{e.dateRange="All",e.company_received_max="",e.company_received_min="",e.date_received_min=sV,e.date_received_max=e.dateLastIndexed,e.company_received_max="",e.company_received_min=""}).addCase(iJ,(e,t)=>{var n,r;let a,{params:o}=t.payload;for(let t of["dateRange","searchField","searchText","sort"]){if(!Object.hasOwn(o,t))continue;let n=o[t];n&&(e[t]=String(iY(String(n),t)))}for(let t of sK){if(void 0===o[t]||!sM()(o[t]).isValid())continue;let n=function(e){if(sM()(e).isValid()){var t;return String(null!=(t=sL(e))?t:"")}return null}(o[t]);n&&(e[t]=n)}e.page=Number(null!=(n=o.page)?n:lw.page),e.size=Number(null!=(r=o.size)?r:lw.size),o.search_after&&(e.searchAfter=String(o.search_after)),(!(a=Object.keys(o)).includes("dateRange")||a.includes("date_received_min")||a.includes("date_received_max"))&&"All"!==o.dateRange||lx(e,String(o.dateRange)),lh(e)}).addMatcher(ie.endpoints.getMeta.matchFulfilled,(e,t)=>{let{payload:n}=t;e.dateLastIndexed=sM()(n._meta.last_updated).startOf("day").format("YYYY-MM-DD"),iL.value=lm(sM()(e.dateLastIndexed).startOf("day")),e.date_received_max||(e.date_received_max=lm(sM()(e.dateLastIndexed))),e.date_received_min||(e.date_received_min=lm(sM()(e.dateLastIndexed).subtract(3,"years"))),lh(e)}).addMatcher(aX(lk,l_,lE,lr,la,li,lo,ls,ll,lc,lP,lN,lO,lT),e=>{e.from=0,e.page=1,e.searchAfter=""})}}),{companyReceivedDateChanged:lk,datesChanged:l_,dateRangeChanged:lE,nextPageShown:lj,prevPageShown:lC,searchFieldChanged:lP,searchTextChanged:lN,sizeChanged:lO,sortChanged:lT}=lS.actions;var lA=lS.reducer;function lM(){return"https://files.consumerfinance.gov/ccdb/complaints.csv.zip"}let lR=()=>{let e,t,n,r,a=(0,v.c)(4);if(a[0]===Symbol.for("react.memo_cache_sentinel")){let t=lM();e=()=>{iH("Export All Data","csv"),location.assign(t)},a[0]=e}else e=a[0];let o=e;return a[1]===Symbol.for("react.memo_cache_sentinel")?(t=(0,h.jsx)(lt,{}),a[1]=t):t=a[1],a[2]===Symbol.for("react.memo_cache_sentinel")?(n=(0,h.jsx)(tP,{type:"3",children:"Download all complaint data (ZIP CSV)"}),a[2]=n):n=a[2],a[3]===Symbol.for("react.memo_cache_sentinel")?(r=(0,h.jsxs)(h.Fragment,{children:[t,(0,h.jsxs)("section",{className:"block block--flush-top",children:[n,(0,h.jsx)(tw,{label:"Download data",iconRight:"download","data-gtm_ignore":"true",onClick:()=>{o()}})]})]}),a[3]=r):r=a[3],r},lz=e=>{let t,n,r,a,o,s,i,l,c=(0,v.c)(22),{className:u,title:d,desc:f,children:p}=e,m=void 0===f?"":f,[b,y]=(0,g.useState)(!0);c[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,h.jsx)("span",{className:"o-expandable__cue-close",role:"img","aria-label":"Hide",children:(0,h.jsx)(N,{name:"minus-round",isPresentational:!0})}),c[0]=t):t=c[0];let w=t;c[1]===Symbol.for("react.memo_cache_sentinel")?(n=(0,h.jsx)("span",{className:"o-expandable__cue-open",role:"img","aria-label":"Show",children:(0,h.jsx)(N,{name:"plus-round",isPresentational:!0})}),c[1]=n):n=c[1];let x=n,S=b?"Collapse ".concat(d," filter"):"Expand ".concat(d," filter"),k="o-expandable ".concat(void 0===u?"":u);c[2]!==b?(r=()=>y(!b),c[2]=b,c[3]=r):r=c[3],c[4]!==d?(a=(0,h.jsx)(tP,{type:"3",className:"o-expandable__label",children:d}),c[4]=d,c[5]=a):a=c[5];let _=b?w:x;return c[6]!==_?(o=(0,h.jsx)("span",{className:"o-expandable__cues",children:_}),c[6]=_,c[7]=o):o=c[7],c[8]!==b||c[9]!==S||c[10]!==r||c[11]!==a||c[12]!==o?(s=(0,h.jsxs)("button",{className:"o-expandable__header","aria-expanded":b,"aria-label":S,onClick:r,children:[a,o]}),c[8]=b,c[9]=S,c[10]=r,c[11]=a,c[12]=o,c[13]=s):s=c[13],c[14]!==p||c[15]!==m||c[16]!==b?(i=b?(0,h.jsxs)("div",{className:"o-expandable__content",children:[m?(0,h.jsx)("p",{children:m}):null,p]}):null,c[14]=p,c[15]=m,c[16]=b,c[17]=i):i=c[17],c[18]!==s||c[19]!==i||c[20]!==k?(l=(0,h.jsxs)("section",{className:k,children:[s,i]}),c[18]=s,c[19]=i,c[20]=k,c[21]=l):l=c[21],l},lL=e=>{let t=sZ[e];return t?"".concat(t," (").concat(e,")"):e},lI=(e,t,n,r,a)=>{if(!sG.includes(r))return t;let o=e.split("•"),s=o[0],i=t.includes(s),l=t.filter(t=>t!==s&&e).filter(t=>t!==e),c=[],u=n.find(e=>e.key===s);if(i){var d;let e=null==u?void 0:u["sub_"+r+".raw"];for(let t of null!=(d=null!=a?a:null==e?void 0:e.buckets)?d:[]){let e=t.key.includes("•")?t.key.split("•")[1]:t.key;e!==o[1]&&c.push(iT(s,e))}}return[...l,...c]},lD=e=>e.filters,lH=e=>e.filters.company,lF=e=>e.filters.state,lB=e=>e.filters.zip_code;function l$(e,t){let n={};for(let r of t){let t=e[r];Array.isArray(t)?t.length>0&&(n[r]=t):t&&(n[r]=t)}return n}function lV(e){var t;let n={company_received_max:null==e?void 0:e.company_received_max,company_received_min:null==e?void 0:e.company_received_min,date_received_max:e.date_received_max,date_received_min:e.date_received_min,field:iY(e.searchField,"searchField"),frm:void 0===e.from?(0===Math.max(t=e.page-1,0)?0:t)*e.size:e.from,page:e.page,size:e.size,sort:e.sort};e.searchText&&(n.search_term=e.searchText),e.searchAfter&&(n.search_after=e.searchAfter);let r={};for(let[e,t]of Object.entries(n))null==t||""===t||Number.isNaN(t)||(r[e]=t);for(let e in r)Array.isArray(r[e])&&0===r[e].length&&delete r[e];return r}let lq=e=>e.query,lU=e=>e.query.company_received_max,lW=e=>e.query.company_received_min,lY=e=>e.query.dateLastIndexed,lK=e=>e.query.date_received_max,lQ=e=>e.query.date_received_min,lG=e=>e.query.dateRange,lJ=e=>e.query.page,lX=e=>e.query.searchField,lZ=e=>e.query.searchText,l0=e=>e.query.size,l1=e=>e.query.sort,l2=rE.withTypes(),l3=rC.withTypes(),l7=()=>{let e,t,n,r=(0,v.c)(8),a=l3(lD),o=l3(lq),s=l3(i_),i=l3(lY);if(r[0]!==a||r[1]!==o){let t,n,s;n=Object.keys(t=lV(o)).filter(e=>!["frm","page","search_after","size","sort"].includes(e)),s=Object.keys(a),e=Object.assign({size:0},l$(t,n),l$(a,s)),r[0]=a,r[1]=o,r[2]=e}else e=r[2];let l=e,c=!i,u=""===s;r[3]!==c||r[4]!==u?(t=iN([c,u]),r[3]=c,r[4]=u,r[5]=t):t=r[5];let d=t;return r[6]!==d?(n={skip:d},r[6]=d,r[7]=n):n=r[7],it(l,n)},l5=e=>{let t,n,r,a,o,s,i,l,c,u,d,f,p=(0,v.c)(44),{fieldName:m,item:g,siblings:b}=e;p[0]!==b?(t=void 0===b?[]:b,p[0]=b,p[1]=t):t=p[1];let y=t,{data:w,isSuccess:x,error:S}=l7(),k=rC(lD),_=rE();p[2]!==w||p[3]!==m?(n=iC(w,m,[]),p[2]=w,p[3]=m,p[4]=n):n=p[4];let E=n;if(!x||!E||S)return null;p[5]!==m||p[6]!==k||p[7]!==g.key?(a=(r=iC(k,m,[])).includes(g.key)||r.includes(g.key.split("•")[0]),p[5]=m,p[6]=k,p[7]=g.key,p[8]=r,p[9]=a):(r=p[8],a=p[9]);let j=a,C=g.value||g.key,P=m+"-"+g.key;p[10]!==P?(o=iO(P),p[10]=P,p[11]=o):o=p[11];let N=o;p[12]!==E||p[13]!==_||p[14]!==m||p[15]!==r||p[16]!==j||p[17]!==g||p[18]!==y?(s=()=>{if(g.key.includes("•")&&sG.includes(m)){var e,t,n;let a=g.key.split("•")[0],o=null!=(e=null==(n=E.find(e=>e.key===a))||null==(t=n["sub_"+m+".raw"])?void 0:t.buckets)?e:[];_(ls(m,(e=>{let{item:t,siblings:n,filters:r,isActive:a}=e,[o]=t.key.split("•"),s=o+"•",i=new Set(r.filter(e=>e.startsWith(s)));return!a&&n.length>0&&n.filter(e=>e.key!==t.key).every(e=>i.has(e.key))?[...r.filter(e=>e!==o&&!e.startsWith(s)),o]:[...r,t.key]})({item:g,siblings:y.length>0?y:o.map(e=>iq(rO({},e),{key:"".concat(a).concat("•").concat(e.key)})),filters:r,isActive:j})))}else _(li(m,g))},p[12]=E,p[13]=_,p[14]=m,p[15]=r,p[16]=j,p[17]=g,p[18]=y,p[19]=s):s=p[19];let O=s;p[20]!==E||p[21]!==_||p[22]!==m||p[23]!==r||p[24]!==g||p[25]!==y?(i=()=>{if(sG.includes(m)){let e=lI(g.key,r,E,m,y);_(ls(m,e))}else _(li(m,g))},p[20]=E,p[21]=_,p[22]=m,p[23]=r,p[24]=g,p[25]=y,p[26]=i):i=p[26];let T=i;p[27]!==O||p[28]!==j||p[29]!==T?(l=()=>{j?T():O()},p[27]=O,p[28]=j,p[29]=T,p[30]=l):l=p[30];let A=l;return p[31]!==N||p[32]!==j||p[33]!==g.isDisabled||p[34]!==A||p[35]!==C?(c=(0,h.jsx)(tC,{id:N,label:C,labelClassName:"bucket-key",className:"aggregation-item__checkbox",disabled:g.isDisabled,checked:j,onChange:A}),p[31]=N,p[32]=j,p[33]=g.isDisabled,p[34]=A,p[35]=C,p[36]=c):c=p[36],p[37]!==g.doc_count?(u=g.doc_count.toLocaleString(),p[37]=g.doc_count,p[38]=u):u=p[38],p[39]!==u?(d=(0,h.jsx)(tP,{type:"5",className:"flex-fixed bucket-count",children:u}),p[39]=u,p[40]=d):d=p[40],p[41]!==c||p[42]!==d?(f=(0,h.jsxs)("li",{className:"aggregation-item layout-row",children:[c,d]}),p[41]=c,p[42]=d,p[43]=f):f=p[43],f};l5.propTypes={fieldName:il().string.isRequired,item:il().shape({doc_count:il().number.isRequired,key:il().string.isRequired,value:il().string,isDisabled:il().bool}).isRequired,siblings:il().array};let l4=e=>{let t,n,r=(0,v.c)(7),{fieldName:a,options:o,selections:s,getLabel:i}=e;if(r[0]!==i||r[1]!==o||r[2]!==s){for(let e of(t=[],o)){if(!s.includes(e.key))continue;let n=i?i(e.key):e.value;t.push(iq(rO({},e),{value:n}))}for(let e of s)t.every(t=>t.key!==e)&&t.push({key:e,value:i?i(e):e,doc_count:0});r[0]=i,r[1]=o,r[2]=s,r[3]=t}else t=r[3];return 0===t.length?null:(r[4]!==a||r[5]!==t?(n=(0,h.jsx)("ul",{children:t.map(e=>(0,h.jsx)(l5,{item:e,fieldName:a},e.key))}),r[4]=a,r[5]=t,r[6]=n):n=r[6],n)};function l6(){return(l6=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}function l9(e){return(l9="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})(e)}function l8(e){var t=function(e,t){if("object"!=l9(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=l9(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==l9(t)?t:t+""}function ce(e,t,n){return(t=l8(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ct(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}function cn(e,t){if(null==e)return{};var n,r,a=ct(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&({}).propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}l4.propTypes={fieldName:il().string.isRequired,options:il().array.isRequired,selections:il().array,getLabel:il().func};var cr=a(2026),ca=a.n(cr),co="label",cs=a(1792),ci=a.n(cs);function cl(e){return"string"==typeof e?e:co}function cc(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var cu=0;function cd(e){return"function"==typeof e}function cf(e){return"string"==typeof e}function cp(){}function ch(e,t){var n={};return t.forEach(function(t){n[t]=e[t]}),n}var cm=function(e,t){var n;return!cf(e)&&(cc(e,"paginationOption")||cc(e,"customOption"))?e[cl(t)]:(n=cd(t)?t(e):cf(e)?e:e[t],cf(n)||ci()(!1),n)},cv=function(e,t){var n=t.allowNew,r=t.labelKey,a=t.text;return!!n&&!!a.trim()&&(cd(n)?n(e,t):!e.some(function(e){return cm(e,r)===a}))},cg=a(6310),cb=a.n(cg);function cy(e,t){if(!cf(e))return e[t]}var cw=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹÐ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"OE",letters:"Œ"},{base:"oe",letters:"œ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}].reduce(function(e,t){var n=t.base;return t.letters.split("").forEach(function(t){e[t]=n}),e},{});function cx(e){return e.normalize("NFD").replace(RegExp("[".concat("̀-ͯ").concat("゙゚","]"),"g"),"").replace(/[^\u0000-\u007E]/g,function(e){return cw[e]||e})}var cS=a(5132),ck=a.n(cS),c_={};function cE(e,t){if(!e&&-1!==t.indexOf("deprecated")){if(c_[t])return;c_[t]=!0}for(var n=arguments.length,r=Array(n>2?n-2:0),a=2;a<n;a++)r[a-2]=arguments[a];ck().apply(void 0,[e,"[react-bootstrap-typeahead] ".concat(t)].concat(r))}function cj(e,t,n){var r=e,a=t;return n.caseSensitive||(r=r.toLowerCase(),a=a.toLowerCase()),n.ignoreDiacritics&&(r=cx(r),a=cx(a)),-1!==a.indexOf(r)}function cC(e,t){var n=t.filterBy,r=t.labelKey,a=t.multiple,o=t.selected,s=t.text;if(a&&o.some(function(t){return cb()(t,e)}))return!1;if(cd(r))return cj(s,r(e),t);var i=n.slice();return(cf(r)&&-1===i.indexOf(r)&&i.unshift(r),cf(e))?(cE(i.length<=1,"You cannot filter by properties when `option` is a string."),cj(s,e,t)):i.some(function(n){var r=cy(e,n);return cf(r)||(cE(!1,"Fields passed to `filterBy` should have string values. Value will be converted to a string; results may be unexpected."),r=String(r)),cj(s,r,t)})}function cP(e){return null!=e.selectionStart}var cN=/[\u0300-\u036F]/;function cO(e,t){var n,r=RegExp(("string"!=typeof(n=cx(t))&&ci()(!1),n.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")),"i").exec(cx(e));if(!r)return null;var a=r.index,o=r[0].length;if(cN.test(e)){for(var s=0;s<=a;s++)cN.test(e[s])&&(a+=1);for(var i=a;i<=a+o;i++)cN.test(e[i])&&(o+=1)}return{end:a+o,start:a}}var cT=function(e){var t=e.activeIndex,n=e.initialItem,r=e.isFocused,a=e.isMenuShown,o=e.labelKey,s=e.multiple,i=e.selected,l=e.text;if(!l||!r||!a||!n||!cf(n)&&cc(n,"customOption")||!cf(n)&&n.disabled||t>-1||i.length&&!s)return"";var c=cm(n,o),u=cO(c.toLowerCase(),l.toLowerCase());return u&&0===u.start?l+c.slice(u.end,c.length):""},cA=a(7721),cM=a.n(cA);function cR(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;return"".concat(e,"-item-").concat(t)}var cz=["activeIndex","id","isFocused","isMenuShown","multiple","onClick","onFocus","placeholder"];function cL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function cI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cL(Object(n),!0).forEach(function(t){ce(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cL(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var cD=function(e){var t=e.activeIndex,n=e.id,r=e.isFocused,a=e.isMenuShown,o=e.multiple,s=e.onClick,i=e.onFocus,l=e.placeholder,c=cn(e,cz);return function(){var e,u=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},d=cc(u,"className")?String(u.className):void 0;return cI(cI(cI(cI({autoComplete:"off",placeholder:l,type:"text"},u),c),{},{"aria-activedescendant":t>=0?cR(n,t):void 0,"aria-autocomplete":"both","aria-expanded":a,"aria-haspopup":"listbox","aria-multiselectable":o||void 0,"aria-owns":a?n:void 0,className:cM()((ce(e={},d||"",!o),ce(e,"focus",r),e))},o&&{inputClassName:d}),{},{onClick:s,onFocus:i,role:"combobox"})}},cH=function(e){var t=e.activeItem,n=e.labelKey,r=e.multiple,a=e.selected,o=e.text;return t?cm(t,n):!r&&a.length&&a[0]?cm(a[0],n):o},cF=function(e){var t=e.allowNew,n=e.highlightOnlyResult,r=e.results;return!!n&&!t&&1===r.length&&!cy(r[0],"disabled")};function cB(e,t,n){for(var r=e;function(e,t){var n=t[e];return!!n&&!!cy(n,"disabled")}(r,n);)r+="ArrowUp"===t?-1:1;return r}function c$(e){e.preventDefault()}var cV=["className","isInvalid","isValid","size"];function cq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function cU(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cq(Object(n),!0).forEach(function(t){ce(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cq(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function cW(e){var t=e.className,n=e.isInvalid,r=e.isValid,a=e.size;return cU(cU({},cn(e,cV)),{},{className:cM()("form-control","rbt-input",{"form-control-lg":"lg"===a,"form-control-sm":"sm"===a,"is-invalid":n,"is-valid":r},t)})}var cY=[{alt:"onBlur",prop:"onBlur"},{alt:"onInputChange",prop:"onChange"},{alt:"onFocus",prop:"onFocus"},{alt:"onKeyDown",prop:"onKeyDown"}],cK=il().oneOf(["lg","sm"]);function cQ(e,t){return function(n,r,a){il().checkPropTypes(ce({},r,e),n,"prop",a),cd(t)&&t(n,r,a)}}function cG(e,t,n){cE(null!=e[t],"The prop `".concat(t,"` is required to make `").concat(n,"` ")+"accessible for users of assistive technologies such as screen readers.")}var cJ=il().oneOfType([il().object,il().string]),cX=["allowNew","delay","emptyLabel","isLoading","minLength","onInputChange","onSearch","options","promptText","searchText","useCache"];function cZ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function c0(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cZ(Object(n),!0).forEach(function(t){ce(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cZ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function c1(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function c2(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,l8(r.key),r)}}function c3(e,t,n){return t&&c2(e.prototype,t),n&&c2(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function c7(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c5(e,t){return(c5=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function c4(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c5(e,t)}function c6(e,t){if(t&&("object"==l9(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return c7(e)}function c9(e){return(c9=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}il().number,il().bool.isRequired,il().number,il().func.isRequired,il().arrayOf(cJ),il().node,il().node,il().bool;var c8=(0,g.createContext)({activeIndex:-1,hintText:"",id:"",initialItem:null,inputNode:null,isOnlyResult:!1,onActiveItemChange:cp,onAdd:cp,onInitialItemChange:cp,onMenuItemClick:cp,setItem:cp}),ue=function(){return(0,g.useContext)(c8)};function ut(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function un(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ut(Object(n),!0).forEach(function(t){ce(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ut(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var ur=["activeIndex","disabled","id","inputRef","isFocused","isMenuShown","multiple","onBlur","onChange","onClick","onFocus","onKeyDown","placeholder"],ua=["activeIndex","hideMenu","isMenuShown","labelKey","onClear","onHide","onRemove","results","selected","text","toggleMenu"],uo=["activeIndex","id","initialItem","inputNode","onActiveItemChange","onAdd","onInitialItemChange","onMenuItemClick","setItem"],us=function(e){var t=e.allowNew,n=e.children,r=e.initialItem,a=e.isMenuShown,o=e.onAdd,s=e.onInitialItemChange,i=e.onKeyDown,l=e.onMenuToggle,c=e.results,u=e.selectHint,d=cT(e);(0,g.useEffect)(function(){t||c.length||s()});var f=(0,g.useRef)(!0);(0,g.useEffect)(function(){if(f.current){f.current=!1;return}l(a)},[a,l]);var p=un(un({},ch(e,ua)),{},{getInputProps:cD(un(un({},ch(e,ur)),{},{onKeyDown:function(t){if(i(t),r){var n,a="Enter"===t.key&&cF(e),s=d&&(n=!1,"ArrowRight"===t.key&&(n=!cP(t.currentTarget)||t.currentTarget.selectionStart===t.currentTarget.value.length),"Tab"===t.key&&(t.preventDefault(),n=!0),u?u(n,t):n);(a||s)&&o(r)}},value:cH(e)}))}),h=un(un({},ch(e,uo)),{},{hintText:d,isOnlyResult:cF(e)});return g.createElement(c8.Provider,{value:h},cd(n)?n(p):n)};function ui(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ul(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ui(Object(n),!0).forEach(function(t){ce(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ui(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function uc(e){var t=e.defaultInputValue,n=e.defaultOpen,r=e.defaultSelected,a=e.maxResults,o=e.multiple,s=e.selected?e.selected.slice():r.slice(),i=t;return!o&&s.length&&(i=cm(s[0],e.labelKey),s.length>1&&(s=s.slice(0,1))),{activeIndex:-1,activeItem:void 0,initialItem:void 0,isFocused:!1,selected:s,showMenu:n,shownResults:a,text:i}}function uu(e,t){return ul(ul({},uc(t)),{},{isFocused:e.isFocused,selected:[],text:""})}function ud(e){return ul(ul({},e),{},{isFocused:!0,showMenu:!0})}function uf(e,t){var n=uc(t),r=n.activeIndex,a=n.activeItem,o=n.initialItem,s=n.shownResults;return ul(ul({},e),{},{activeIndex:r,activeItem:a,initialItem:o,showMenu:!1,shownResults:s})}function up(e,t){return e.showMenu?uf(e,t):ul(ul({},e),{},{showMenu:!0})}var uh=["onChange"];function um(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function uv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?um(Object(n),!0).forEach(function(t){ce(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):um(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var ug={allowNew:il().oneOfType([il().bool,il().func]),autoFocus:il().bool,caseSensitive:cQ(il().bool,function(e){var t=e.caseSensitive,n=e.filterBy;cE(!t||"function"!=typeof n,"Your `filterBy` function will override the `caseSensitive` prop.")}),defaultInputValue:cQ(il().string,function(e){var t=e.defaultInputValue,n=e.defaultSelected,r=e.multiple,a=e.selected,o=n.length?"defaultSelected":"selected";cE(!(!r&&t&&(n.length||a&&a.length)),"`defaultInputValue` will be overridden by the value from `".concat(o,"`."))}),defaultOpen:il().bool,defaultSelected:cQ(il().arrayOf(cJ),function(e){var t=e.defaultSelected;cE(e.multiple||t.length<=1,"You are passing multiple options to the `defaultSelected` prop of a Typeahead in single-select mode. The selections will be truncated to a single selection.")}),filterBy:il().oneOfType([il().arrayOf(il().string.isRequired),il().func]),highlightOnlyResult:cQ(il().bool,function(e){var t=e.allowNew;cE(!(e.highlightOnlyResult&&t),"`highlightOnlyResult` will not work with `allowNew`.")}),id:cQ(il().oneOfType([il().number,il().string]),cG),ignoreDiacritics:cQ(il().bool,function(e){var t=e.filterBy;cE(e.ignoreDiacritics||"function"!=typeof t,"Your `filterBy` function will override the `ignoreDiacritics` prop.")}),labelKey:cQ(il().oneOfType([il().string,il().func]),function(e){var t=e.allowNew;cE(!(cd(e.labelKey)&&t),"`labelKey` must be a string when `allowNew={true}`.")}),maxResults:il().number,minLength:il().number,multiple:il().bool,onBlur:il().func,onChange:il().func,onFocus:il().func,onInputChange:il().func,onKeyDown:il().func,onMenuToggle:il().func,onPaginate:il().func,open:il().bool,options:il().arrayOf(cJ).isRequired,paginate:il().bool,selected:cQ(il().arrayOf(cJ),function(e){var t=e.multiple,n=e.onChange,r=e.selected;cE(t||!r||r.length<=1,"You are passing multiple options to the `selected` prop of a Typeahead in single-select mode. This may lead to unexpected behaviors or errors."),cE(!r||r&&cd(n),"You provided a `selected` prop without an `onChange` handler. If you want the typeahead to be uncontrolled, use `defaultSelected`. Otherwise, set `onChange`.")})},ub=function(e){c4(r,e);var t,n=(t=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=c9(r);return e=t?Reflect.construct(n,arguments,c9(this).constructor):n.apply(this,arguments),c6(this,e)});function r(){var e;c1(this,r);for(var t=arguments.length,a=Array(t),o=0;o<t;o++)a[o]=arguments[o];return ce(c7(e=n.call.apply(n,[this].concat(a))),"state",uc(e.props)),ce(c7(e),"inputNode",null),ce(c7(e),"isMenuShown",!1),ce(c7(e),"items",[]),ce(c7(e),"blur",function(){e.inputNode&&e.inputNode.blur(),e.hideMenu()}),ce(c7(e),"clear",function(){e.setState(uu)}),ce(c7(e),"focus",function(){e.inputNode&&e.inputNode.focus()}),ce(c7(e),"getInput",function(){return e.inputNode}),ce(c7(e),"inputRef",function(t){e.inputNode=t}),ce(c7(e),"setItem",function(t,n){e.items[n]=t}),ce(c7(e),"hideMenu",function(){e.setState(uf)}),ce(c7(e),"toggleMenu",function(){e.setState(up)}),ce(c7(e),"_handleActiveIndexChange",function(t){e.setState(function(e){return{activeIndex:t,activeItem:t>=0?e.activeItem:void 0}})}),ce(c7(e),"_handleActiveItemChange",function(t){cb()(t,e.state.activeItem)||e.setState({activeItem:t})}),ce(c7(e),"_handleBlur",function(t){t.persist(),e.setState({isFocused:!1},function(){return e.props.onBlur(t)})}),ce(c7(e),"_handleChange",function(t){e.props.onChange&&e.props.onChange(t)}),ce(c7(e),"_handleClear",function(){var t,n,r;e.inputNode&&(t=e.inputNode,(n=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value"))&&n.set&&n.set.call(t,""),r=new Event("input",{bubbles:!0}),t.dispatchEvent(r)),e.setState(uu,function(){e.props.multiple&&e._handleChange([])})}),ce(c7(e),"_handleClick",function(t){t.persist();var n,r=null==(n=e.props.inputProps)?void 0:n.onClick;e.setState(ud,function(){return cd(r)&&r(t)})}),ce(c7(e),"_handleFocus",function(t){t.persist(),e.setState(ud,function(){return e.props.onFocus(t)})}),ce(c7(e),"_handleInitialItemChange",function(t){cb()(t,e.state.initialItem)||e.setState({initialItem:t})}),ce(c7(e),"_handleInputChange",function(t){t.persist();var n=t.currentTarget.value,r=e.props,a=r.multiple,o=r.onInputChange,s=e.state.selected.length&&!a;e.setState(function(e,t){var r=uc(t),a=r.activeIndex,o=r.activeItem,i=r.shownResults;return{activeIndex:a,activeItem:o,selected:s?[]:e.selected,showMenu:!0,shownResults:i,text:n}},function(){o(n,t),s&&e._handleChange([])})}),ce(c7(e),"_handleKeyDown",function(t){var n,r,a,o,s=e.state.activeItem;if(!e.isMenuShown){("ArrowUp"===t.key||"ArrowDown"===t.key)&&e.setState({showMenu:!0}),e.props.onKeyDown(t);return}switch(t.key){case"ArrowUp":case"ArrowDown":t.preventDefault(),e._handleActiveIndexChange((n=e.state.activeIndex,r=t.key,a=e.items,(o=cB(o=n+("ArrowUp"===r?-1:1),r,a))===a.length?o=-1:-2===o&&(o=cB(o=a.length-1,r,a)),o));break;case"Enter":t.preventDefault(),s&&e._handleMenuItemSelect(s,t);break;case"Escape":case"Tab":e.hideMenu()}e.props.onKeyDown(t)}),ce(c7(e),"_handleMenuItemSelect",function(t,n){cy(t,"paginationOption")?e._handlePaginate(n):e._handleSelectionAdd(t)}),ce(c7(e),"_handlePaginate",function(t){t.persist(),e.setState(function(e,t){return{shownResults:e.shownResults+t.maxResults}},function(){return e.props.onPaginate(t,e.state.shownResults)})}),ce(c7(e),"_handleSelectionAdd",function(t){var n,r,a=e.props,o=a.multiple,s=a.labelKey,i=t;!cf(i)&&i.customOption&&(i=uv(uv({},i),{},{id:(cu+=1,String("new-id-")+cu)})),o?(n=e.state.selected.concat(i),r=""):(n=[i],r=cm(i,s)),e.setState(function(e,t){return uv(uv({},uf(e,t)),{},{initialItem:i,selected:n,text:r})},function(){return e._handleChange(n)})}),ce(c7(e),"_handleSelectionRemove",function(t){var n=e.state.selected.filter(function(e){return!cb()(e,t)});e.focus(),e.setState(function(e,t){return uv(uv({},uf(e,t)),{},{selected:n})},function(){return e._handleChange(n)})}),e}return c3(r,[{key:"componentDidMount",value:function(){this.props.autoFocus&&this.focus()}},{key:"componentDidUpdate",value:function(e,t){var n,r,a,o,s,i=this.props,l=i.labelKey,c=i.multiple,u=i.selected;n=e.selected,(s=!u&&n)?(r="uncontrolled",a="controlled",o="an"):(r="controlled",a="uncontrolled",o="a"),cE(!(s||u&&!n),"You are changing ".concat(o," ").concat(r," typeahead to be ").concat(a,". ")+"Input elements should not switch from ".concat(r," to ").concat(a," (or vice versa). ")+"Decide between using a controlled or uncontrolled element for the lifetime of the component."),u&&!cb()(u,t.selected)&&(this.setState({selected:u}),c||this.setState({text:u.length?cm(u[0],l):""}))}},{key:"render",value:function(){var e=this.props,t=uv(uv({},(e.onChange,cn(e,uh))),this.state),n=t.filterBy,r=t.labelKey,a=t.options,o=t.paginate,s=t.shownResults,i=t.text;this.isMenuShown=(c=t.open,u=t.minLength,d=t.showMenu,f=t.text,c||!1===c?c:!(f.length<u)&&d),this.items=[];var l=[];if(this.isMenuShown){var c,u,d,f,p,h,m=cd(n)?n:cC;l=a.filter(function(e){return m(e,t)});var v=o&&l.length>s;p=l,cv(l=s&&!(s>=p.length)?p.slice(0,s):p,t)&&l.push(ce({customOption:!0},cl(r),i)),v&&l.push((ce(h={},cl(r),""),ce(h,"paginationOption",!0),h))}return g.createElement(us,l6({},t,{hideMenu:this.hideMenu,inputNode:this.inputNode,inputRef:this.inputRef,isMenuShown:this.isMenuShown,onActiveItemChange:this._handleActiveItemChange,onAdd:this._handleSelectionAdd,onBlur:this._handleBlur,onChange:this._handleInputChange,onClear:this._handleClear,onClick:this._handleClick,onFocus:this._handleFocus,onHide:this.hideMenu,onInitialItemChange:this._handleInitialItemChange,onKeyDown:this._handleKeyDown,onMenuItemClick:this._handleMenuItemSelect,onRemove:this._handleSelectionRemove,results:l,setItem:this.setItem,toggleMenu:this.toggleMenu}))}}]),r}(g.Component);ce(ub,"propTypes",ug),ce(ub,"defaultProps",{allowNew:!1,autoFocus:!1,caseSensitive:!1,defaultInputValue:"",defaultOpen:!1,defaultSelected:[],filterBy:[],highlightOnlyResult:!1,ignoreDiacritics:!0,labelKey:co,maxResults:100,minLength:0,multiple:!1,onBlur:cp,onFocus:cp,onInputChange:cp,onKeyDown:cp,onMenuToggle:cp,onPaginate:cp,paginate:!0});var uy=["className","label","onClick","onKeyDown","size"],uw={label:il().string,onClick:il().func,onKeyDown:il().func,size:cK},ux=function(e){var t=e.className,n=e.label,r=void 0===n?"Clear":n,a=e.onClick,o=e.onKeyDown,s=e.size,i=cn(e,uy);return g.createElement("button",l6({},i,{"aria-label":r,className:cM()("close","btn-close","rbt-close",{"rbt-close-lg":"lg"===s,"rbt-close-sm":"sm"===s},t),onClick:function(e){e.stopPropagation(),a&&a(e)},onKeyDown:function(e){"Backspace"===e.key&&e.preventDefault(),o&&o(e)},type:"button"}),g.createElement("span",{"aria-hidden":"true",className:"rbt-close-content"},"×"),g.createElement("span",{className:"sr-only visually-hidden"},r))};ux.propTypes=uw;var uS={label:il().string},uk=function(e){var t=e.label;return g.createElement("div",{className:"rbt-loader spinner-border spinner-border-sm",role:"status"},g.createElement("span",{className:"sr-only visually-hidden"},void 0===t?"Loading...":t))};function u_(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function uE(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,s,i=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(i.push(r.value),i.length!==t);l=!0);}catch(e){c=!0,a=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw a}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return u_(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)?u_(e,t):void 0}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}uk.propTypes=uS;let uj=Math.min,uC=Math.max,uP=Math.round,uN=Math.floor,uO=e=>({x:e,y:e}),uT={left:"right",right:"left",bottom:"top",top:"bottom"};function uA(e,t){return"function"==typeof e?e(t):e}function uM(e){return e.split("-")[0]}function uR(e){return e.split("-")[1]}function uz(e){return"y"===e?"height":"width"}function uL(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function uI(e){return"x"===uL(e)?"y":"x"}function uD(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let uH=["left","right"],uF=["right","left"],uB=["top","bottom"],u$=["bottom","top"];function uV(e){let t=uM(e);return uT[t]+e.slice(t.length)}function uq(e){let{x:t,y:n,width:r,height:a}=e;return{width:r,height:a,top:n,left:t,right:t+r,bottom:n+a,x:t,y:n}}function uU(e,t,n){let r,{reference:a,floating:o}=e,s=uL(t),i=uI(t),l=uz(i),c=uM(t),u=a.x+a.width/2-o.width/2,d=a.y+a.height/2-o.height/2,f=a[l]/2-o[l]/2;switch(c){case"top":r={x:u,y:a.y-o.height};break;case"bottom":r={x:u,y:a.y+a.height};break;case"right":r={x:a.x+a.width,y:d};break;case"left":r={x:a.x-o.width,y:d};break;default:r={x:a.x,y:a.y}}let p=uR(t);return p&&(r[i]+=f*("end"===p?1:-1)*(n&&"y"===s?-1:1)),r}async function uW(e,t){var n,r,a,o,s;void 0===t&&(t={});let{x:i,y:l,platform:c,rects:u,elements:d,strategy:f}=e,{boundary:p="clippingAncestors",rootBoundary:h="viewport",elementContext:m="floating",altBoundary:v=!1,padding:g=0}=uA(t,e),b="number"!=typeof g?{top:null!=(r=g.top)?r:0,right:null!=(a=g.right)?a:0,bottom:null!=(o=g.bottom)?o:0,left:null!=(s=g.left)?s:0}:{top:g,right:g,bottom:g,left:g},y=d[v?"floating"===m?"reference":"floating":m],w=uq(await c.getClippingRect({element:null==(n=await (null==c.isElement?void 0:c.isElement(y)))||n?y:y.contextElement||await (null==c.getDocumentElement?void 0:c.getDocumentElement(d.floating)),boundary:p,rootBoundary:h,strategy:f})),x="floating"===m?{x:i,y:l,width:u.floating.width,height:u.floating.height}:u.reference,S=await (null==c.getOffsetParent?void 0:c.getOffsetParent(d.floating)),k=await (null==c.isElement?void 0:c.isElement(S))&&await (null==c.getScale?void 0:c.getScale(S))||{x:1,y:1},_=uq(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:x,offsetParent:S,strategy:f}):x);return{top:(w.top-_.top+b.top)/k.y,bottom:(_.bottom-w.bottom+b.bottom)/k.y,left:(w.left-_.left+b.left)/k.x,right:(_.right-w.right+b.right)/k.x}}let uY=async(e,t,n)=>{let{placement:r="bottom",strategy:a="absolute",middleware:o=[],platform:s}=n,i=s.detectOverflow?s:{...s,detectOverflow:uW},l=await (null==s.isRTL?void 0:s.isRTL(t)),c=await s.getElementRects({reference:e,floating:t,strategy:a}),{x:u,y:d}=uU(c,r,l),f=r,p=0,h={};for(let n=0;n<o.length;n++){let m=o[n];if(!m)continue;let{name:v,fn:g}=m,{x:b,y:y,data:w,reset:x}=await g({x:u,y:d,initialPlacement:r,placement:f,strategy:a,middlewareData:h,rects:c,platform:i,elements:{reference:e,floating:t}});u=null!=b?b:u,d=null!=y?y:d,h[v]={...h[v],...w},x&&p<50&&(p++,"object"==typeof x&&(x.placement&&(f=x.placement),x.rects&&(c=!0===x.rects?await s.getElementRects({reference:e,floating:t,strategy:a}):x.rects),{x:u,y:d}=uU(c,f,l)),n=-1)}return{x:u,y:d,placement:f,strategy:a,middlewareData:h}};function uK(){return"u">typeof window}function uQ(e){return uX(e)?(e.nodeName||"").toLowerCase():"#document"}function uG(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function uJ(e){var t;return null==(t=(uX(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function uX(e){return!!uK()&&(e instanceof Node||e instanceof uG(e).Node)}function uZ(e){return!!uK()&&(e instanceof Element||e instanceof uG(e).Element)}function u0(e){return!!uK()&&(e instanceof HTMLElement||e instanceof uG(e).HTMLElement)}function u1(e){return!(!uK()||"u"<typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof uG(e).ShadowRoot)}function u2(e){let{overflow:t,overflowX:n,overflowY:r,display:a}=de(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==a&&"contents"!==a}function u3(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}let u7=/transform|translate|scale|rotate|perspective|filter/,u5=/paint|layout|strict|content/,u4=e=>!!e&&"none"!==e;function u6(e){let t=uZ(e)?de(e):e;return u4(t.transform)||u4(t.translate)||u4(t.scale)||u4(t.rotate)||u4(t.perspective)||!u9()&&(u4(t.backdropFilter)||u4(t.filter))||u7.test(t.willChange||"")||u5.test(t.contain||"")}function u9(){return null==e&&(e="u">typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),e}function u8(e){return/^(html|body|#document)$/.test(uQ(e))}function de(e){return uG(e).getComputedStyle(e)}function dt(e){return uZ(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function dn(e){if("html"===uQ(e))return e;let t=e.assignedSlot||e.parentNode||u1(e)&&e.host||uJ(e);return u1(t)?t.host:t}function dr(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let a=function e(t){let n=dn(t);return u8(n)?(t.ownerDocument||t).body:u0(n)&&u2(n)?n:e(n)}(e),o=a===(null==(r=e.ownerDocument)?void 0:r.body),s=uG(a);if(!o)return t.concat(a,dr(a,[],n));{let e=da(s);return t.concat(s,s.visualViewport||[],u2(a)?a:[],e&&n?dr(e):[])}}function da(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ds(e){let t=de(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,a=u0(e),o=a?e.offsetWidth:n,s=a?e.offsetHeight:r,i=uP(n)!==o||uP(r)!==s;return i&&(n=o,r=s),{width:n,height:r,$:i}}function di(e){return uZ(e)?e:e.contextElement}function dl(e){let t=di(e);if(!u0(t))return uO(1);let n=t.getBoundingClientRect(),{width:r,height:a,$:o}=ds(t),s=(o?uP(n.width):n.width)/r,i=(o?uP(n.height):n.height)/a;return s&&Number.isFinite(s)||(s=1),i&&Number.isFinite(i)||(i=1),{x:s,y:i}}let dc=uO(0);function du(e){let t=uG(e);return u9()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:dc}function dd(e,t,n,r){var a;void 0===t&&(t=!1),void 0===n&&(n=!1);let o=e.getBoundingClientRect(),s=di(e),i=uO(1);t&&(r?uZ(r)&&(i=dl(r)):i=dl(e));let l=(void 0===(a=n)&&(a=!1),r&&a&&r===uG(s))?du(s):uO(0),c=(o.left+l.x)/i.x,u=(o.top+l.y)/i.y,d=o.width/i.x,f=o.height/i.y;if(s&&r){let e=uG(s),t=uZ(r)?uG(r):r,n=e,a=da(n);for(;a&&t!==n;){let e=dl(a),t=a.getBoundingClientRect(),r=de(a),o=t.left+(a.clientLeft+parseFloat(r.paddingLeft))*e.x,s=t.top+(a.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,u*=e.y,d*=e.x,f*=e.y,c+=o,u+=s,a=da(n=uG(a))}}return uq({width:d,height:f,x:c,y:u})}function df(e,t){let n=dt(e).scrollLeft;return t?t.left+n:dd(uJ(e)).left+n}function dp(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-df(e,n),y:n.top+t.scrollTop}}function dh(e,t,n){var r;let a;if("viewport"===t||"layoutViewport"===t)a=function(e,t,n){void 0===n&&(n="viewport");let r="layoutViewport"===n,a=uG(e),o=uJ(e),s=a.visualViewport,i=o.clientWidth,l=o.clientHeight,c=0,u=0;if(s){let e=!u9()||"fixed"===t;r?e||(c=-s.offsetLeft,u=-s.offsetTop):(i=s.width,l=s.height,e&&(c=s.offsetLeft,u=s.offsetTop))}if(0>=df(o)){let e=o.ownerDocument,t=e.body,n=getComputedStyle(t),r="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,a=Math.abs(o.clientWidth-t.clientWidth-r),s="stable both-edges"===getComputedStyle(o).scrollbarGutter?a/2:a;s<=25&&(i-=s)}return{width:i,height:l,x:c,y:u}}(e,n,t);else if("document"===t){let t,n,o,s,i,l;t=dt(r=uJ(e)),n=r.ownerDocument.body,o=uC(r.scrollWidth,r.clientWidth,n.scrollWidth,n.clientWidth),s=uC(r.scrollHeight,r.clientHeight,n.scrollHeight,n.clientHeight),i=-t.scrollLeft+df(r),l=-t.scrollTop,"rtl"===de(n).direction&&(i+=uC(r.clientWidth,n.clientWidth)-o),a={width:o,height:s,x:i,y:l}}else if(uZ(t)){let e,r,o,s,i,l;r=(e=dd(t,!0,"fixed"===n)).top+t.clientTop,o=e.left+t.clientLeft,s=dl(t),i=t.clientWidth*s.x,l=t.clientHeight*s.y,a={width:i,height:l,x:o*s.x,y:r*s.y}}else{let n=du(e);a={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return uq(a)}function dm(e){return"static"===de(e).position}function dv(e,t){if(!u0(e)||"fixed"===de(e).position)return null;if(t)return t(e);let n=e.offsetParent;return uJ(e)===n&&(n=n.ownerDocument.body),n}function dg(e,t){var n;let r=uG(e);if(u3(e))return r;if(!u0(e)){let t=dn(e);for(;t&&!u8(t);){if(uZ(t)&&!dm(t))return t;t=dn(t)}return r}let a=dv(e,t);for(;a&&(n=a,/^(table|td|th)$/.test(uQ(n)))&&dm(a);)a=dv(a,t);return a&&u8(a)&&dm(a)&&!u6(a)?r:a||function(e){let t=dn(e);for(;u0(t)&&!u8(t);){if(u6(t))return t;if(u3(t))break;t=dn(t)}return null}(e)||r}let db=async function(e){let t=this.getOffsetParent||dg,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=u0(t),a=uJ(t),o="fixed"===n,s=dd(e,!0,o,t),i={scrollLeft:0,scrollTop:0},l=uO(0);if((r||!o)&&(("body"!==uQ(t)||u2(a))&&(i=dt(t)),r)){let e=dd(t,!0,o,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}!r&&a&&(l.x=df(a));let c=!a||r||o?uO(0):dp(a,i);return{x:s.left+i.scrollLeft-l.x-c.x,y:s.top+i.scrollTop-l.y-c.y,width:s.width,height:s.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},dy={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:a}=e,o="fixed"===a,s=uJ(r),i=!!t&&u3(t.floating);if(r===s||i&&o)return n;let l={scrollLeft:0,scrollTop:0},c=uO(1),u=uO(0),d=u0(r);if((d||!o)&&(("body"!==uQ(r)||u2(s))&&(l=dt(r)),d)){let e=dd(r);c=dl(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=!s||d||o?uO(0):dp(s,l);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+f.x,y:n.y*c.y-l.scrollTop*c.y+u.y+f.y}},getDocumentElement:uJ,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:a}=e,o=[..."clippingAncestors"===n?u3(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=dr(e,[],!1).filter(e=>uZ(e)&&"body"!==uQ(e)),a=null,o="fixed"===de(e).position,s=o?dn(e):e;for(;uZ(s)&&!u8(s);){let e=de(s),t=u6(s),n=a?a.position:o?"fixed":"";t||"fixed"!==n&&("absolute"!==n||"static"!==e.position)?a=e:r=r.filter(e=>e!==s),s=dn(s)}return t.set(e,r),r}(t,this._c):[].concat(n),r],s=dh(t,o[0],a),i=s.top,l=s.right,c=s.bottom,u=s.left;for(let e=1;e<o.length;e++){let n=dh(t,o[e],a);i=uC(n.top,i),l=uj(n.right,l),c=uj(n.bottom,c),u=uC(n.left,u)}return{width:l-u,height:c-i,x:u,y:i}},getOffsetParent:dg,getElementRects:db,getClientRects:function(e){return e.getClientRects?Array.from(e.getClientRects()):[]},getDimensions:function(e){let{width:t,height:n}=ds(e);return{width:t,height:n}},getScale:dl,isElement:uZ,isRTL:function(e){return"rtl"===de(e).direction}};function dw(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function dx(e,t,n,r){let a;void 0===r&&(r={});let{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:c=!1}=r,u=di(e),d=o||s?[...u?dr(u):[],...t?dr(t):[]]:[];d.forEach(e=>{o&&e.addEventListener("scroll",n),s&&e.addEventListener("resize",n)});let f=u&&l?function(e,t,n){let r,a=null,o=uJ(e);function s(){var e;clearTimeout(r),null==(e=a)||e.disconnect(),a=null}function i(n,l){void 0===n&&(n=!1),void 0===l&&(l=1),s();let c=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=c;if(n||t(),!f||!p)return;let h={rootMargin:-uN(d)+"px "+-uN(o.clientWidth-(u+f))+"px "+-uN(o.clientHeight-(d+p))+"px "+-uN(u)+"px",threshold:uC(0,uj(1,l))||1},m=!0;function v(t){let n=t[0].intersectionRatio;if(!dw(c,e.getBoundingClientRect()))return i();if(n!==l){if(!m)return i();n?i(!1,n):r=setTimeout(()=>{i(!1,1e-7)},1e3)}m=!1}try{a=new IntersectionObserver(v,{...h,root:o.ownerDocument})}catch(e){a=new IntersectionObserver(v,h)}a.observe(e)}let l=uG(e),c=()=>i(n);return l.addEventListener("resize",c),i(!0),()=>{l.removeEventListener("resize",c),s()}}(u,n,s):null,p=-1,h=null;i&&(h=new ResizeObserver(e=>{let[r]=e;r&&r.target===u&&h&&t&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=h)||e.observe(t)})),n()}),u&&!c&&h.observe(u),t&&h.observe(t));let m=c?dd(e):null;return c&&function t(){let r=dd(e);m&&!dw(m,r)&&n(),m=r,a=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach(e=>{o&&e.removeEventListener("scroll",n),s&&e.removeEventListener("resize",n)}),null==f||f(),null==(e=h)||e.disconnect(),h=null,c&&cancelAnimationFrame(a)}}var dS="u">typeof document?g.useLayoutEffect:function(){};function dk(e,t){let n,r,a;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!dk(e[r],t[r]))return!1;return!0}if((n=(a=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,a[r]))return!1;for(r=n;0!=r--;){let n=a[r];if(("_owner"!==n||!e.$$typeof)&&!dk(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function d_(e){return"u"<typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function dE(e,t){let n=d_(e);return Math.round(t*n)/n}function dj(e){let t=g.useRef(e);return dS(()=>{t.current=e}),t}var dC=function(e,t){let n,r;var a,o,s,i,l,c,u=uE((0,g.useState)(null),2),d=u[0];return{innerRef:u[1],style:function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:a,elements:{reference:o,floating:s}={},transform:i=!0,whileElementsMounted:l,open:c}=e,[u,d]=g.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=g.useState(r);dk(f,r)||p(r);let[h,m]=g.useState(null),[v,b]=g.useState(null),y=g.useCallback(e=>{e!==k.current&&(k.current=e,m(e))},[]),w=g.useCallback(e=>{e!==_.current&&(_.current=e,b(e))},[]),x=o||h,S=s||v,k=g.useRef(null),_=g.useRef(null),E=g.useRef(u),j=null!=l,C=dj(l),P=dj(a),N=dj(c),O=g.useCallback(()=>{var e,r;let a,o,s;if(!k.current||!_.current)return;let i={placement:t,strategy:n,middleware:f};P.current&&(i.platform=P.current),(e=k.current,r=_.current,a=new Map,o=null!=i?i:{},s={...dy,...o.platform,_c:a},uY(e,r,{...o,platform:s})).then(e=>{let t={...e,isPositioned:!1!==N.current};T.current&&!dk(E.current,t)&&(E.current=t,ic.flushSync(()=>{d(t)}))})},[f,t,n,P,N]);dS(()=>{!1===c&&E.current.isPositioned&&(E.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[c]);let T=g.useRef(!1);dS(()=>(T.current=!0,()=>{T.current=!1}),[]),dS(()=>{if(x&&(k.current=x),S&&(_.current=S),x&&S){if(C.current)return C.current(x,S,O);O()}},[x,S,O,C,j]);let A=g.useMemo(()=>({reference:k,floating:_,setReference:y,setFloating:w}),[y,w]),M=g.useMemo(()=>({reference:x,floating:S}),[x,S]),R=g.useMemo(()=>{let e={position:n,left:0,top:0};if(!M.floating)return e;let t=dE(M.floating,u.x),r=dE(M.floating,u.y);return i?{...e,transform:"translate("+t+"px, "+r+"px)",...d_(M.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,i,M.floating,u.x,u.y]);return g.useMemo(()=>({...u,update:O,refs:A,elements:M,floatingStyles:R}),[u,O,A,M,R])}({elements:{floating:d,reference:e},middleware:(a=[],t.flip&&a.push((o=void 0,{name:(n={name:"flip",options:o={},async fn(e){var t,n,r,a,s,i;let l,c,u,{placement:d,middlewareData:f,rects:p,initialPlacement:h,platform:m,elements:v}=e,{mainAxis:g=!0,crossAxis:b=!0,fallbackPlacements:y,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:S=!0,...k}=uA(o,e);if(null!=(t=f.arrow)&&t.alignmentOffset)return{};let _=uM(d),E=uL(h),j=uM(h)===h,C=await (null==m.isRTL?void 0:m.isRTL(v.floating)),P=y||(j||!S?[uV(h)]:(l=uV(h),[uD(h),l,uD(l)])),N="none"!==x;!y&&N&&P.push(...(c=uR(h),u=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?uF:uH;return t?uH:uF;case"left":case"right":return t?uB:u$;default:return[]}}(uM(h),"start"===x,C),c&&(u=u.map(e=>e+"-"+c),S&&(u=u.concat(u.map(uD)))),u));let O=[h,...P],T=await m.detectOverflow(e,k),A=[],M=(null==(n=f.flip)?void 0:n.overflows)||[];if(g&&A.push(T[_]),b){let e,t,n,r,a=(void 0===(i=C)&&(i=!1),e=uR(d),n=uz(t=uI(d)),r="x"===t?e===(i?"end":"start")?"right":"left":"start"===e?"bottom":"top",p.reference[n]>p.floating[n]&&(r=uV(r)),[r,uV(r)]);A.push(T[a[0]],T[a[1]])}if(M=[...M,{placement:d,overflows:A}],!A.every(e=>e<=0)){let e=((null==(r=f.flip)?void 0:r.index)||0)+1,t=O[e];if(t&&("alignment"!==b||E===uL(t)||M.every(e=>uL(e.placement)!==E||e.overflows[0]>0)))return{data:{index:e,overflows:M},reset:{placement:t}};let n=null==(a=M.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:a.placement;if(!n)switch(w){case"bestFit":{let e=null==(s=M.filter(e=>{if(N){let t=uL(e.placement);return t===E||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:s[0];e&&(n=e);break}case"initialPlacement":n=h}if(d!==n)return{reset:{placement:n}}}return{}}}).name,fn:n.fn,options:[void 0,void 0]})),"right"!==t.align&&"left"!==t.align&&a.push({name:(r={name:"size",options:i=s={apply:function(e){var t=e.rects;Object.assign(e.elements.floating.style,{width:"".concat(t.reference.width,"px")})}},async fn(e){let t,n,{placement:r,rects:a,platform:o,elements:s}=e,{apply:l=()=>{},...c}=uA(i,e),u=await o.detectOverflow(e,c),d=uM(r),f=uR(r),p="y"===uL(r),{width:h,height:m}=a.floating;"top"===d||"bottom"===d?(t=d,n=f===(await (null==o.isRTL?void 0:o.isRTL(s.floating))?"start":"end")?"left":"right"):(n=d,t="end"===f?"top":"bottom");let v=m-u.top-u.bottom,g=h-u.left-u.right,b=uj(m-u[t],v),y=uj(h-u[n],g),w=e.middlewareData.shift,x=!w,S=b,k=y;null!=w&&w.enabled.x&&(k=g),null!=w&&w.enabled.y&&(S=v),x&&!f&&(p?k=h-2*uC(u.left,u.right):S=m-2*uC(u.top,u.bottom)),await l({...e,availableWidth:k,availableHeight:S});let _=await o.getDimensions(s.floating);return h!==_.width||m!==_.height?{reset:{rects:!0}}:{}}}).name,fn:r.fn,options:[s,void 0]}),a),placement:(l="right"===t.align?"end":"start",c=t.dropup?"top":"bottom","".concat(c,"-").concat(l)),strategy:t.positionFixed?"fixed":"absolute",whileElementsMounted:dx}).floatingStyles}},dP=["referenceElement","isMenuShown"],dN="u"<typeof Element?cp:Element,dO={align:il().oneOf(["justify","left","right"]),children:il().func.isRequired,dropup:il().bool,flip:il().bool,isMenuShown:il().bool,positionFixed:il().bool,referenceElement:il().instanceOf(dN)},dT=function(e){var t=e.referenceElement,n=e.isMenuShown,r=cn(e,dP),a=dC(t,r);return n?r.children(a):null};dT.propTypes=dO;var dA=!!("u">typeof window&&window.document&&window.document.createElement),dM=!1,dR=!1;try{var dz={get passive(){return dM=!0},get once(){return dR=dM=!0}};dA&&(window.addEventListener("test",dz,dz),window.removeEventListener("test",dz,!0))}catch(e){}var dL=function(e,t,n,r){if(r&&"boolean"!=typeof r&&!dR){var a=r.once,o=r.capture,s=n;!dR&&a&&(s=n.__once||function e(r){this.removeEventListener(t,e,o),n.call(this,r)},n.__once=s),e.addEventListener(t,s,dM?r:o)}e.addEventListener(t,n,r)},dI=function(e,t,n,r){var a=r&&"boolean"!=typeof r?r.capture:r;e.removeEventListener(t,n,a),n.__once&&e.removeEventListener(t,n.__once,a)},dD=function(e,t,n,r){return dL(e,t,n,r),function(){dI(e,t,n,r)}};function dH(e){return e&&e.ownerDocument||document}var dF=function(e){let t=(0,g.useRef)(e);return(0,g.useEffect)(()=>{t.current=e},[e]),t};function dB(e){let t=dF(e);return(0,g.useCallback)(function(...e){return t.current&&t.current(...e)},[t])}function d$(e,t){return e.contains?e.contains(t):e.compareDocumentPosition?e===t||!!(16&e.compareDocumentPosition(t)):void 0}let dV=()=>{},dq=e=>e&&("current"in e?e.current:e),dU={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};var dW=function(e,t=dV,{disabled:n,clickTrigger:r="click"}={}){let a=(0,g.useRef)(!1),o=(0,g.useRef)(!1),s=(0,g.useCallback)(t=>{let n=dq(e);ck()(!!n,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),a.current=!n||!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)||0!==t.button||!!d$(n,t.target)||o.current,o.current=!1},[e]),i=dB(t=>{let n=dq(e);n&&d$(n,t.target)?o.current=!0:o.current=!1}),l=dB(e=>{a.current||t(e)});(0,g.useEffect)(()=>{var t,a;if(n||null==e)return;let o=dH(dq(e)),c=o.defaultView||window,u=null!=(t=c.event)?t:null==(a=c.parent)?void 0:a.event,d=null;dU[r]&&(d=dD(o,dU[r],i,!0));let f=dD(o,r,s,!0),p=dD(o,r,e=>{if(e===u){u=void 0;return}l(e)}),h=[];return"ontouchstart"in o.documentElement&&(h=[].slice.call(o.body.children).map(e=>dD(e,"mousemove",dV))),()=>{null==d||d(),f(),p(),h.forEach(e=>e())}},[e,n,r,s,i,l])};function dY(e){let t;if(!e||"function"==typeof e)return null;let{major:n}={major:+(t=g.version.split("."))[0],minor:+t[1],patch:+t[2]};return n>=19?e.props.ref:e.ref}let dK=()=>{};var dQ=function(e,t,{disabled:n,clickTrigger:r}={}){let a=t||dK;dW(e,a,{disabled:n,clickTrigger:r});let o=dB(e=>{("Escape"===e.code||27===e.keyCode)&&a(e)});(0,g.useEffect)(()=>{if(n||null==e)return;let t=dH(dq(e)),r=(t.defaultView||window).event,a=dD(t,"keyup",e=>{if(e===r){r=void 0;return}o(e)});return()=>{a()}},[e,n,o])},dG=function(e,t){var n=(0,g.useRef)(null);return dQ(n,e,t),n},dJ=["children","onRootClose"],dX=function(e){return(0,e.children)(dG(e.onRootClose,cn(e,dJ)))},dZ=["onBlur","onClick","onFocus","onRemove","option"];function d0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function d1(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d0(Object(n),!0).forEach(function(t){ce(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d0(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}il().func,il().func,il().func,il().func,cJ.isRequired;var d2=["active","children","className","onRemove","tabIndex"],d3=["children","option","readOnly"],d7=["ref"];function d5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function d4(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d5(Object(n),!0).forEach(function(t){ce(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d5(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var d6=(0,g.forwardRef)(function(e,t){var n=e.active,r=e.children,a=e.className,o=e.onRemove,s=e.tabIndex,i=cn(e,d2);return g.createElement("div",l6({},i,{className:cM()("rbt-token","rbt-token-removeable",{"rbt-token-active":!!n},a),ref:t,tabIndex:s||0}),r,g.createElement(ux,{className:"rbt-token-remove-button",label:"Remove",onClick:o,tabIndex:-1}))}),d9=function(e){var t=e.children,n=e.className,r=e.disabled,a=e.href,o=cM()("rbt-token",{"rbt-token-disabled":r},n);return a&&!r?g.createElement("a",{className:o,href:a},t):g.createElement("div",{className:o},t)},d8=function(e){var t,n,r,a,o,s,i,l,c,u,d,f,p,h=e.children,m=e.option,v=e.readOnly,b=cn(e,d3),y=(n=(t=d4(d4({},b),{},{option:m})).onBlur,r=t.onClick,a=t.onFocus,o=t.onRemove,s=t.option,i=cn(t,dZ),c=(l=uE((0,g.useState)(!1),2))[0],u=l[1],d=function(e){u(!1),n&&n(e)},f=function(){o&&o(s)},p=dG(d,d1(d1({},i),{},{disabled:!c})),{active:c,onBlur:d,onClick:function(e){u(!0),r&&r(e)},onFocus:function(e){u(!0),a&&a(e)},onKeyDown:function(e){"Backspace"===e.key&&c&&(e.preventDefault(),f())},onRemove:cd(o)?f:void 0,ref:p}),w=y.ref,x=cn(y,d7),S=g.createElement("div",{className:"rbt-token-label"},h);return!b.disabled&&!v&&cd(x.onRemove)?g.createElement(d6,l6({},b,x,{ref:w}),S):g.createElement(d9,b,S)};function fe(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return n&&(n=n.replace(n[0],n[0].toUpperCase())),["Top","Right","Bottom","Left"].map(function(r){return e["".concat(t).concat(r).concat(n)]}).join(" ")}var ft=function(){var e=ue(),t=e.hintText,n=e.inputNode,r=(0,g.useRef)(null);return(0,g.useEffect)(function(){var e=function(){r.current&&n&&(r.current.scrollLeft=n.scrollLeft)};return null==n||n.addEventListener("scroll",e),function(){null==n||n.removeEventListener("scroll",e)}},[n]),(0,g.useEffect)(function(){var e,t;n&&r.current&&(e=r.current,t=window.getComputedStyle(n),e.style.borderStyle=fe(t,"border","style"),e.style.borderWidth=fe(t,"border","width"),e.style.fontSize=t.fontSize,e.style.fontWeight=t.fontWeight,e.style.height=t.height,e.style.lineHeight=t.lineHeight,e.style.margin=fe(t,"margin"),e.style.padding=fe(t,"padding"))}),{hintRef:r,hintText:t}},fn=function(e){var t=e.children,n=e.className,r=ft(),a=r.hintRef,o=r.hintText;return g.createElement("div",{className:n,style:{display:"flex",flex:1,height:"100%",position:"relative"}},t,g.createElement("input",{"aria-hidden":!0,className:"rbt-input-hint",ref:a,readOnly:!0,style:{backgroundColor:"transparent",borderColor:"transparent",boxShadow:"none",color:"rgba(0, 0, 0, 0.54)",left:0,pointerEvents:"none",position:"absolute",top:0,width:"100%"},tabIndex:-1,value:o}))},fr=(0,g.forwardRef)(function(e,t){return g.createElement("input",l6({},e,{className:cM()("rbt-input-main",e.className),ref:t}))}),fa=["children","className","inputClassName","inputRef","referenceElementRef","selected"],fo=function(e){var t=g.useRef(null),n=g.useRef(null),r=cW(e),a=r.children,o=r.className,s=r.inputClassName,i=(r.inputRef,r.referenceElementRef),l=r.selected,c=cn(r,fa);function u(t){if(e.disabled)return void t.currentTarget.blur();var r=n.current;!r||t.currentTarget.contains(t.target)&&t.currentTarget!==t.target||(cP(r)&&(r.selectionStart=r.value.length),r.focus())}return g.createElement("div",{className:cM()("rbt-input-multi",{disabled:e.disabled},o),onClick:u,onFocus:u,ref:i,tabIndex:-1},g.createElement("div",{className:"rbt-input-wrapper",ref:t},a,g.createElement(fn,null,g.createElement(fr,l6({},c,{className:s,onKeyDown:function(n){if("Backspace"===n.key&&l.length&&!e.value){n.preventDefault();var r,a=null==(r=t.current)?void 0:r.children;if(null!=a&&a.length){var o=a[a.length-2];null==o||o.focus()}}e.onKeyDown&&e.onKeyDown(n)},ref:function(t){n.current=t,e.inputRef(t)},style:{backgroundColor:"transparent",border:0,boxShadow:"none",cursor:"inherit",outline:"none",padding:0,width:"100%",zIndex:1}})))))},fs=["inputRef","referenceElementRef"],fi=function(e){var t=e.inputRef,n=e.referenceElementRef,r=cn(e,fs);return g.createElement(fn,null,g.createElement(fr,l6({},cW(r),{ref:function(e){t(e),n(e)}})))},fl={children:il().string.isRequired,highlightClassName:il().string,search:il().string.isRequired},fc=function(e){var t=e.children,n=e.highlightClassName,r=void 0===n?"rbt-highlight-text":n,a=e.search;if(!a||!t)return g.createElement(g.Fragment,null,t);for(var o=0,s=t,i=[];s;){var l=cO(s,a);if(!l){i.push(s);break}var c=s.slice(0,l.start);c&&i.push(c);var u=s.slice(l.start,l.end);i.push(g.createElement("mark",{className:r,key:o},u)),o+=1,s=s.slice(l.end)}return g.createElement(g.Fragment,null,i)};fc.propTypes=fl;let fu=e=>"object"==typeof e&&null!=e&&1===e.nodeType,fd=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,ff=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){let n,r=getComputedStyle(e,null);return fd(r.overflowY,t)||fd(r.overflowX,t)||!!(n=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e))&&(n.clientHeight<e.scrollHeight||n.clientWidth<e.scrollWidth)}return!1},fp=(e,t,n,r,a,o,s,i)=>o<e&&s>t||o>e&&s<t?0:o<=e&&i<=n||s>=t&&i>=n?o-e-r:s>t&&i<n||o<e&&i>n?s-t+a:0,fh=e=>{let t=e.parentElement;return null==t?e.getRootNode().host||null:t},fm=(e,t)=>{var n,r,a,o;let s;if("u"<typeof document)return[];let{scrollMode:i,block:l,inline:c,boundary:u,skipOverflowHiddenElements:d}=t,f="function"==typeof u?u:e=>e!==u;if(!fu(e))throw TypeError("Invalid target");let p=document.scrollingElement||document.documentElement,h=[],m=e;for(;fu(m)&&f(m);){if((m=fh(m))===p){h.push(m);break}null!=m&&m===document.body&&ff(m)&&!ff(document.documentElement)||null!=m&&ff(m,d)&&h.push(m)}let v=null!=(r=null==(n=window.visualViewport)?void 0:n.width)?r:innerWidth,g=null!=(o=null==(a=window.visualViewport)?void 0:a.height)?o:innerHeight,{scrollX:b,scrollY:y}=window,{height:w,width:x,top:S,right:k,bottom:_,left:E}=e.getBoundingClientRect(),{top:j,right:C,bottom:P,left:N}={top:parseFloat((s=window.getComputedStyle(e)).scrollMarginTop)||0,right:parseFloat(s.scrollMarginRight)||0,bottom:parseFloat(s.scrollMarginBottom)||0,left:parseFloat(s.scrollMarginLeft)||0},O="start"===l||"nearest"===l?S-j:"end"===l?_+P:S+w/2-j+P,T="center"===c?E+x/2-N+C:"end"===c?k+C:E-N,A=[];for(let e=0;e<h.length;e++){let t=h[e],{height:n,width:r,top:a,right:o,bottom:s,left:u}=t.getBoundingClientRect();if("if-needed"===i&&S>=0&&E>=0&&_<=g&&k<=v&&(t===p&&!ff(t)||S>=a&&_<=s&&E>=u&&k<=o))break;let d=getComputedStyle(t),f=parseInt(d.borderLeftWidth,10),m=parseInt(d.borderTopWidth,10),j=parseInt(d.borderRightWidth,10),C=parseInt(d.borderBottomWidth,10),P=0,N=0,M="offsetWidth"in t?t.offsetWidth-t.clientWidth-f-j:0,R="offsetHeight"in t?t.offsetHeight-t.clientHeight-m-C:0,z="offsetWidth"in t?0===t.offsetWidth?0:r/t.offsetWidth:0,L="offsetHeight"in t?0===t.offsetHeight?0:n/t.offsetHeight:0;if(p===t)P="start"===l?O:"end"===l?O-g:"nearest"===l?fp(y,y+g,g,m,C,y+O,y+O+w,w):O-g/2,N="start"===c?T:"center"===c?T-v/2:"end"===c?T-v:fp(b,b+v,v,f,j,b+T,b+T+x,x),P=Math.max(0,P+y),N=Math.max(0,N+b);else{P="start"===l?O-a-m:"end"===l?O-s+C+R:"nearest"===l?fp(a,s,n,m,C+R,O,O+w,w):O-(a+n/2)+R/2,N="start"===c?T-u-f:"center"===c?T-(u+r/2)+M/2:"end"===c?T-o+j+M:fp(u,o,r,f,j+M,T,T+x,x);let{scrollLeft:e,scrollTop:i}=t;P=0===L?0:Math.max(0,Math.min(i+P/L,t.scrollHeight-n/L+R)),N=0===z?0:Math.max(0,Math.min(e+N/z,t.scrollWidth-r/z+M)),O+=i-P,T+=e-N}A.push({el:t,top:P,left:N})}return A};var fv=["label","onClick","option","position"];function fg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function fb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fg(Object(n),!0).forEach(function(t){ce(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fg(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}cJ.isRequired,il().number;var fy=["active","children","className","disabled","onClick"],fw=(0,g.forwardRef)(function(e,t){var n=e.active,r=e.children,a=e.className,o=e.disabled,s=e.onClick,i=cn(e,fy);return g.createElement("a",l6({},i,{className:cM()("dropdown-item",{active:n,disabled:o},a),href:i.href||"#",onClick:function(e){e.preventDefault(),!o&&s&&s(e)},ref:t}),r)});function fx(e){var t,n,r,a,o,s,i,l,c,u,d,f,p,h,m,v;return g.createElement(fw,(t=e.label,n=e.onClick,r=e.option,a=e.position,o=cn(e,fv),i=(s=ue()).activeIndex,l=s.id,c=s.isOnlyResult,u=s.onActiveItemChange,d=s.onInitialItemChange,f=s.onMenuItemClick,p=s.setItem,h=(0,g.useRef)(null),(0,g.useEffect)(function(){0===a&&d(r)}),(0,g.useEffect)(function(){if(a===i){u(r);var e=h.current;e&&function(e,t){let n;if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;let r={top:parseFloat((n=window.getComputedStyle(e)).scrollMarginTop)||0,right:parseFloat(n.scrollMarginRight)||0,bottom:parseFloat(n.scrollMarginBottom)||0,left:parseFloat(n.scrollMarginLeft)||0};if("object"==typeof t&&"function"==typeof t.behavior)return t.behavior(fm(e,t));let a="boolean"==typeof t||null==t?void 0:t.behavior;for(let{el:n,top:o,left:s}of fm(e,!1===t?{block:"end",inline:"nearest"}:t===Object(t)&&0!==Object.keys(t).length?t:{block:"start",inline:"nearest"})){let e=o-r.top+r.bottom,t=s-r.left+r.right;n.scroll({top:e,left:t,behavior:a})}}(e,{boundary:e.parentNode,scrollMode:"if-needed"})}},[i,u,r,a]),m=(0,g.useCallback)(function(e){f(r,e),n&&n(e)},[n,f,r]),v=c||i===a,p(r,a),fb(fb({},o),{},{active:v,"aria-label":t,"aria-selected":v,id:cR(l,a),onClick:m,onMouseDown:c$,ref:h,role:"option"})))}var fS=["emptyLabel","innerRef","maxHeight","style"];function fk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function f_(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fk(Object(n),!0).forEach(function(t){ce(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fk(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var fE={"aria-label":il().string,emptyLabel:il().node,id:cQ(il().oneOfType([il().number,il().string]),cG),maxHeight:il().string},fj=function(e){var t=e.emptyLabel,n=e.innerRef,r=e.maxHeight,a=e.style,o=cn(e,fS),s=0===g.Children.count(o.children)?g.createElement(fw,{disabled:!0,role:"option"},void 0===t?"No matches found.":t):o.children;return g.createElement("div",l6({},o,{"aria-label":o["aria-label"]||"menu-options",className:cM()("rbt-menu","dropdown-menu","show",o.className),onMouseDown:c$,ref:n,role:"listbox",style:f_(f_({},a),{},{display:"block",maxHeight:void 0===r?"300px":r,overflow:"auto"})}),s)};fj.propTypes=fE,fj.Divider=function(){return g.createElement("div",{className:"dropdown-divider",role:"separator"})},fj.Header=function(e){return g.createElement("div",l6({},e,{className:"dropdown-header",role:"heading"}))};var fC=["labelKey","newSelectionPrefix","options","paginationText","renderMenuItemChildren","text"],fP={newSelectionPrefix:il().node,paginationText:il().node,renderMenuItemChildren:il().func};function fN(e,t){return g.createElement(fc,{search:t.text},cm(e,t.labelKey))}var fO=function(e){var t=e.labelKey,n=e.newSelectionPrefix,r=void 0===n?"New selection: ":n,a=e.options,o=e.paginationText,s=void 0===o?"Display additional results...":o,i=e.renderMenuItemChildren,l=void 0===i?fN:i,c=e.text,u=cn(e,fC);return g.createElement(fj,l6({},u,{key:c}),a.map(function(n,a){var o=cm(n,t),i={disabled:!!cy(n,"disabled"),label:o,option:n,position:a};return cy(n,"customOption")?g.createElement(fx,l6({},i,{className:"rbt-menu-custom-option",key:a,label:o}),r,g.createElement(fc,{search:c},o)):cy(n,"paginationOption")?g.createElement(g.Fragment,{key:"pagination-option-divider"},g.createElement(fj.Divider,null),g.createElement(fx,l6({},i,{className:"rbt-menu-pagination-option",label:cf(s)?s:""}),s)):g.createElement(fx,l6({},i,{key:a}),l(n,e,a))}))};function fT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function fA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fT(Object(n),!0).forEach(function(t){ce(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fT(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}fO.propTypes=fP;var fM={clearButton:il().bool,inputProps:cQ(il().object,function(e){var t=e.inputProps;t&&"[object Object]"===Object.prototype.toString.call(t)&&cY.forEach(function(e){var n=e.alt,r=e.prop;cE(!t[r],"The `".concat(r,"` property of `inputProps` will be ignored.").concat(n?" Use the top-level `".concat(n,"` prop instead."):null))})}),isInvalid:il().bool,isLoading:il().bool,isValid:il().bool,renderInput:il().func,renderMenu:il().func,renderToken:il().func,size:cK},fR=["align","dropup","flip","positionFixed"],fz=function(e){c4(r,e);var t,n=(t=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=c9(r);return e=t?Reflect.construct(n,arguments,c9(this).constructor):n.apply(this,arguments),c6(this,e)});function r(){var e;c1(this,r);for(var t=arguments.length,a=Array(t),o=0;o<t;o++)a[o]=arguments[o];return ce(c7(e=n.call.apply(n,[this].concat(a))),"_referenceElement",null),ce(c7(e),"referenceElementRef",function(t){e._referenceElement=t}),ce(c7(e),"_renderInput",function(t,n){var r=e.props,a=r.isInvalid,o=r.isValid,s=r.multiple,i=r.renderInput,l=r.renderToken,c=r.size;if(cd(i))return i(t,n);var u=fA(fA({},t),{},{isInvalid:a,isValid:o,size:c});if(!s)return g.createElement(fi,u);var d=n.labelKey,f=n.onRemove,p=n.selected;return g.createElement(fo,l6({},u,{placeholder:p.length?"":t.placeholder,selected:p}),p.map(function(e,t){return(l||function(e,t,n){return g.createElement(d8,{disabled:t.disabled,key:n,onRemove:t.onRemove,option:e,tabIndex:t.tabIndex},cm(e,t.labelKey))})(e,fA(fA({},u),{},{labelKey:d,onRemove:f}),t)}))}),ce(c7(e),"_renderMenu",function(t,n,r){var a=e.props,o=a.emptyLabel,s=a.id,i=a.maxHeight,l=a.newSelectionPrefix,c=a.paginationText,u=a.renderMenu,d=a.renderMenuItemChildren;return(u||function(e,t,n){return g.createElement(fO,l6({},t,{labelKey:n.labelKey,options:e,text:n.text}))})(t,fA(fA({},n),{},{emptyLabel:o,id:s,maxHeight:i,newSelectionPrefix:l,paginationText:c,renderMenuItemChildren:d}),r)}),ce(c7(e),"_renderAux",function(t){var n,r=t.onClear,a=t.selected,o=e.props,s=o.clearButton,i=o.disabled,l=o.isLoading,c=o.size;return l?n=g.createElement(uk,null):s&&!i&&a.length&&(n=g.createElement(ux,{onClick:r,onMouseDown:c$,size:c})),n?g.createElement("div",{className:cM()("rbt-aux",{"rbt-aux-lg":"lg"===c})},n):null}),e}return c3(r,[{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=t.className,a=t.instanceRef,o=t.open,s=t.options,i=t.style;return g.createElement(ub,l6({},this.props,{options:s,ref:a}),function(t){var a=t.hideMenu,s=t.isMenuShown,l=t.results,c=e._renderAux(t);return g.createElement(dX,{disabled:o||!s,onRootClose:a},function(a){return g.createElement("div",{className:cM()("rbt",{"has-aux":!!c,"is-invalid":e.props.isInvalid,"is-valid":e.props.isValid},r),ref:a,style:fA(fA({},i),{},{outline:"none",position:"relative"}),tabIndex:-1},e._renderInput(fA(fA({},t.getInputProps(e.props.inputProps)),{},{referenceElementRef:e.referenceElementRef}),t),g.createElement(dT,l6({},ch(e.props,fR),{isMenuShown:s,referenceElement:e._referenceElement}),function(n){return e._renderMenu(l,n,t)}),c,cd(n)?n(t):n)})})}}]),r}(g.Component);ce(fz,"propTypes",fM),ce(fz,"defaultProps",{isLoading:!1});var fL=(0,g.forwardRef)(function(e,t){return g.createElement(fz,l6({},e,{instanceRef:t}))}),fI=(0,g.forwardRef)(function(e,t){var n,r,a,o,s,i,l,c,u,d,f,p,h,m,v,b,y,w,x,S,k,_,E,j,C,P;let N;return g.createElement(fL,l6({},(n=e.allowNew,a=void 0===(r=e.delay)?200:r,o=e.emptyLabel,s=e.isLoading,l=void 0===(i=e.minLength)?2:i,c=e.onInputChange,u=e.onSearch,f=void 0===(d=e.options)?[]:d,h=void 0===(p=e.promptText)?"Type to search...":p,v=void 0===(m=e.searchText)?"Searching...":m,y=void 0===(b=e.useCache)||b,w=cn(e,cX),x=(0,g.useRef)({}),S=(0,g.useRef)(null),k=(0,g.useRef)(e.defaultInputValue||""),_=function(){let[,e]=(0,g.useReducer)(e=>!e,!1);return e}(),N=(0,g.useRef)(null),(0,g.useEffect)(()=>{N.current=e}),E=N.current,j=(0,g.useCallback)(function(e){if(k.current=e,e&&(!l||!(e.length<l))){if(y&&x.current[e])return void _();u(e)}},[_,l,u,y]),(0,g.useEffect)(function(){return S.current=ca()(j,a),function(){S.current&&S.current.cancel()}},[a,j]),(0,g.useEffect)(function(){!s&&E&&E.isLoading&&y&&(x.current[k.current]=f)}),C=(0,g.useCallback)(function(e,t){c&&c(e,t),S.current&&S.current(e)},[c]),P=x.current[k.current],c0(c0({},w),{},{allowNew:cd(n)?n:n&&!s,emptyLabel:k.current.length?s?v:o:h,isLoading:s,minLength:l,onInputChange:C,options:y&&P?P:f})),{ref:t}))});let fD=e=>{let t,n,r,a,o,s=(0,v.c)(19),{label:i,position:l,value:c}=e;if(!c||l<0){let e;return s[0]!==i?(e=(0,h.jsx)("span",{children:i}),s[0]=i,s[1]=e):e=s[1],e}s[2]!==i||s[3]!==l?(t=i.slice(0,Math.max(0,l)),s[2]=i,s[3]=l,s[4]=t):t=s[4];let u=t;s[5]!==i||s[6]!==l||s[7]!==c.length?(n=i.slice(l,l+c.length),s[5]=i,s[6]=l,s[7]=c.length,s[8]=n):n=s[8];let d=n;s[9]!==i||s[10]!==l||s[11]!==c.length?(r=i.slice(Math.max(0,l+c.length)),s[9]=i,s[10]=l,s[11]=c.length,s[12]=r):r=s[12];let f=r;return s[13]!==d?(a=(0,h.jsx)("b",{children:d}),s[13]=d,s[14]=a):a=s[14],s[15]!==f||s[16]!==u||s[17]!==a?(o=(0,h.jsxs)("span",{children:[u,a,f]}),s[15]=f,s[16]=u,s[17]=a,s[18]=o):o=s[18],o};fD.propTypes={label:il().string.isRequired,position:il().number.isRequired,value:il().string.isRequired};let fH=e=>{let t,n,r=(0,v.c)(3),{onClear:a}=e;return r[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,h.jsx)(N,{name:"error",isPresentational:!0}),r[0]=t):t=r[0],r[1]!==a?(n=(0,h.jsx)("button",{type:"reset",title:"Clear search",onClick:a,"aria-label":"clear search",children:t}),r[1]=a,r[2]=n):n=r[2],n};fH.propTypes={onClear:il().func.isRequired};let fF=()=>!0,fB=e=>{let t,n,r,a,o,s,i,l,c,u,d,f,p,m,b,y,w,x,S,k=(0,v.c)(57),{ariaLabel:_,defaultValue:E,fieldName:j,htmlId:C,isDisabled:P,handleChange:O,handleClear:T,handlePressEnter:A,hasClearButton:M,hasSearchButton:R,handleSelectionOverride:z,maxResults:L,placeholder:I}=e,D=void 0===E?"":E,H=void 0!==P&&P,F=void 0!==R&&R,B=void 0===L?5:L,$=void 0===I?"Enter your search text":I,V=rE(),q=(0,g.useRef)(),U=rC(lq),W=rC(lD),[Y,K]=(0,g.useState)(D),[Q,G]=(0,g.useState)(void 0!==M&&M&&(!!D||!!Y)),[J,X]=(0,g.useState)(!1);k[0]!==D?(t=()=>{q.current.setState({text:D}),K(q.current.inputNode.value),""===D?(q.current.clear(),G(!1)):G(!0)},n=[D],k[0]=D,k[1]=t,k[2]=n):(t=k[1],n=k[2]),(0,g.useEffect)(t,n),k[3]!==T?(r=()=>{T&&T(),q.current.clear(),K("")},k[3]=T,k[4]=r):r=k[4];let Z=r;k[5]!==V||k[6]!==j||k[7]!==z?(a=e=>{z?z(e):V(ll(j,[e[0].key])),K("")},k[5]=V,k[6]=j,k[7]=z,k[8]=a):a=k[8];let ee=a;k[9]!==O?(o=e=>{O&&O(e),X(!0),G(!!e),K(e)},k[9]=O,k[10]=o):o=k[10];let et=o,en="company"===j?"company":"zip";if(k[11]!==W||k[12]!==U){let e=Object.assign({},U,W);e.searchAfter="",s=ly(e),k[11]=W,k[12]=U,k[13]=s}else s=k[13];let er=s+"&text="+encodeURIComponent(Y),ea="_suggest_".concat(en,"/").concat(er);k[14]!==ea?(i={url:ea},k[14]=ea,k[15]=i):i=k[15];let eo=!Y;k[16]!==eo?(l={skip:eo},k[16]=eo,k[17]=l):l=k[17];let{currentData:es,isFetching:ei,isLoading:el}=is(i,l);k[18]!==es||k[19]!==Y?(c=es?es.map(e=>({key:e,label:e,position:e.toLowerCase().indexOf(Y.toLowerCase()),value:Y})):[],k[18]=es,k[19]=Y,k[20]=c):c=k[20];let ec=c;k[21]===Symbol.for("react.memo_cache_sentinel")?(u=(0,h.jsx)(N,{name:"search",isPresentational:!0}),k[21]=u):u=k[21],k[22]!==_||k[23]!==C?(d=(0,h.jsx)("label",{"aria-label":_,className:"o-search-input__input-label",htmlFor:C,children:u}),k[22]=_,k[23]=C,k[24]=d):d=k[24],k[25]!==C?(f={id:C,type:"search",className:"a-text-input a-text-input--full"},k[25]=C,k[26]=f):f=k[26];let eu=el||ei;k[27]!==ee?(p=e=>{ee(e),q.current.clear(),K("")},k[27]=ee,k[28]=p):p=k[28],k[29]!==A?(m=e=>{A&&"Enter"===e.key&&(A(e),X(!1))},k[29]=A,k[30]=m):m=k[30];let ed=Y?"No matches found":"";return k[31]!==D||k[32]!==C||k[33]!==H||k[34]!==J||k[35]!==B||k[36]!==et||k[37]!==ec||k[38]!==$||k[39]!==f||k[40]!==eu||k[41]!==p||k[42]!==m||k[43]!==ed?(b=(0,h.jsx)(fI,{id:C,minLength:1,className:"typeahead__selector",defaultInputValue:D,delay:250,disabled:H,filterBy:fF,inputProps:f,isLoading:eu,ref:q,onInputChange:et,onChange:p,onKeyDown:m,onSearch:et,options:ec,maxResults:B,placeholder:$,renderMenuItemChildren:f$,open:J,promptText:"",searchText:"",emptyLabel:ed,useCache:!1}),k[31]=D,k[32]=C,k[33]=H,k[34]=J,k[35]=B,k[36]=et,k[37]=ec,k[38]=$,k[39]=f,k[40]=eu,k[41]=p,k[42]=m,k[43]=ed,k[44]=b):b=k[44],k[45]!==Z||k[46]!==Q?(y=!!Q&&(0,h.jsx)(fH,{onClear:()=>{Z(),G(!1)}}),k[45]=Z,k[46]=Q,k[47]=y):y=k[47],k[48]!==d||k[49]!==b||k[50]!==y?(w=(0,h.jsxs)("div",{className:"o-search-input__input",children:[d,b,y]}),k[48]=d,k[49]=b,k[50]=y,k[51]=w):w=k[51],k[52]!==F?(x=!!F&&(0,h.jsx)(tw,{type:"submit",label:"Search"}),k[52]=F,k[53]=x):x=k[53],k[54]!==w||k[55]!==x?(S=(0,h.jsx)("section",{className:"typeahead",children:(0,h.jsxs)("div",{className:"o-search-input",children:[w,x]})}),k[54]=w,k[55]=x,k[56]=S):S=k[56],S};function f$(e){return(0,h.jsx)("li",{className:"typeahead__option",children:(0,h.jsx)(fD,{label:e.label,position:e.position,value:e.value},e.key)})}fB.propTypes={ariaLabel:il().string.isRequired,defaultValue:il().string,fieldName:il().string.isRequired,isDisabled:il().bool,handleChange:il().func,handleClear:il().func,handlePressEnter:il().func,handleSelectionOverride:il().func,hasClearButton:il().bool,hasSearchButton:il().bool,htmlId:il().string.isRequired,maxResults:il().number,placeholder:il().string};let fV="company",fq=()=>{let e,t,n,r,a=(0,v.c)(9),{data:o,error:s}=l7(),i=rC(lH);a[0]!==(null==o?void 0:o.company)||a[1]!==s?(e=s?[]:(null==o?void 0:o.company)||[],a[0]=null==o?void 0:o.company,a[1]=s,a[2]=e):e=a[2];let l=e;a[3]!==l?(t=structuredClone(l),a[3]=l,a[4]=t):t=a[4];let c=t;return a[5]===Symbol.for("react.memo_cache_sentinel")?(n=(0,h.jsx)(fB,{fieldName:fV,placeholder:"Enter company name",ariaLabel:"Company Search",htmlId:"company-typeahead"}),a[5]=n):n=a[5],a[6]!==i||a[7]!==c?(r=(0,h.jsxs)(lz,{title:"Company name",desc:"The company the consumer identified in the complaint.",className:"aggregation company",children:[n,(0,h.jsx)(l4,{fieldName:fV,options:c,selections:i})]}),a[6]=i,a[7]=c,a[8]=r):r=a[8],r};var fU=a(6336),fW=a.n(fU),fY=a(8657),fK=a.n(fY);sM().extend(fW()),sM().extend(fK());let fQ=e=>["a-text-input",e?"a-text-input--error":""].filter(Boolean).join(" "),fG=()=>{let e,t,n,r,a,o,s,i,l,c,u=(0,v.c)(49),d=rC(lW),f=rC(lU);u[0]!==d?(e=sM()(d).isValid()?sL(d):"",u[0]=d,u[1]=e):e=u[1];let p=e;u[2]!==f?(t=sM()(f).isValid()?sL(f):"",u[2]=f,u[3]=t):t=u[3];let m=t,[b,y]=(0,g.useState)(null),[w,x]=(0,g.useState)(null),S=rE(),k=(0,g.useRef)(),_=(0,g.useRef)(),E=null!=b?b:p,j=null!=w?w:m;if(u[4]!==d||u[5]!==f||u[6]!==S||u[7]!==E||u[8]!==j){let e,t,l,c,p,m,v,g,b,w,C,P,N,O=(N=[],sM()(E).isAfter(j)&&N.push("'From' date must be less than 'To' date"),sM()(E).isBefore(sV)&&N.push("'From' date must be after "+sM()(sV).format(sB)),sM()(j).isAfter(s$)&&N.push("'To' date must be before "+sM()(s$).format(sB)),N);u[15]===Symbol.for("react.memo_cache_sentinel")?(e=e=>{"Enter"===e.key&&k.current.blur()},u[15]=e):e=u[15];let T=e;u[16]===Symbol.for("react.memo_cache_sentinel")?(t=e=>{"Enter"===e.key&&_.current.blur()},u[16]=t):t=u[16];let A=t,M=()=>{let e=j,t=E;t&&!sM()(E).isValid()&&(k.current.value="",t=""),e&&!sM()(j).isValid()&&(_.current.value="",e=""),(d!==t||f!==e)&&S(lk(t,e)),y(null),x(null)};if(u[17]!==E||u[18]!==j)l=fQ(sM()(E).isBefore(sV)||sM()(E).isAfter(j)),u[17]=E,u[18]=j,u[19]=l;else l=u[19];let R=l;if(u[20]!==E||u[21]!==j)c=fQ(sM()(j).isAfter(s$)||sM()(j).isBefore(E)),u[20]=E,u[21]=j,u[22]=c;else c=u[22];let z=c;n=lz,o="The date the CFPB sent the complaint to the company",s="aggregation date-filter",i="",u[23]===Symbol.for("react.memo_cache_sentinel")?(p=(0,h.jsx)("label",{className:"a-label a-label--heading",htmlFor:iO("company_received-from"),children:"From"}),u[23]=p):p=u[23],u[24]===Symbol.for("react.memo_cache_sentinel")?(m=iO("company_received-from"),u[24]=m):m=u[24],u[25]===Symbol.for("react.memo_cache_sentinel")?(v=e=>y(e.target.value),u[25]=v):v=u[25],u[26]!==E||u[27]!==M||u[28]!==R?(g=(0,h.jsxs)("li",{children:[p,(0,h.jsx)("div",{className:"o-search-input",children:(0,h.jsx)("div",{className:"o-search-input__input",children:(0,h.jsx)("input",{id:m,className:R,onBlur:M,onChange:v,onKeyDown:T,min:sV,max:s$,ref:k,placeholder:sB,type:"date",value:E})})})]}),u[26]=E,u[27]=M,u[28]=R,u[29]=g):g=u[29],u[30]===Symbol.for("react.memo_cache_sentinel")?(b=(0,h.jsx)("label",{className:"a-label a-label--heading",htmlFor:iO("company_received-through"),children:"To"}),u[30]=b):b=u[30],u[31]===Symbol.for("react.memo_cache_sentinel")?(w=iO("company_received-through"),u[31]=w):w=u[31],u[32]===Symbol.for("react.memo_cache_sentinel")?(C=e=>x(e.target.value),u[32]=C):C=u[32],u[33]!==M||u[34]!==z||u[35]!==j?(P=(0,h.jsxs)("li",{children:[b,(0,h.jsx)("div",{className:"o-search-input",children:(0,h.jsx)("div",{className:"o-search-input__input",children:(0,h.jsx)("input",{id:w,className:z,onBlur:M,onChange:C,onKeyDown:A,min:sV,max:s$,placeholder:sB,ref:_,type:"date",value:j})})})]}),u[33]=M,u[34]=z,u[35]=j,u[36]=P):P=u[36],u[37]!==g||u[38]!==P?(r=(0,h.jsxs)("ul",{className:"date-inputs",children:[g,P]}),u[37]=g,u[38]=P,u[39]=r):r=u[39],a=O.length>0?(0,h.jsx)("div",{className:"a-form-alert a-form-alert--error",role:"alert",children:O.map(fJ)}):null,u[4]=d,u[5]=f,u[6]=S,u[7]=E,u[8]=j,u[9]=n,u[10]=r,u[11]=a,u[12]=o,u[13]=s,u[14]=i}else n=u[9],r=u[10],a=u[11],o=u[12],s=u[13],i=u[14];return u[40]!==r||u[41]!==a?(l=(0,h.jsxs)("div",{children:[r,a]}),u[40]=r,u[41]=a,u[42]=l):l=u[42],u[43]!==n||u[44]!==o||u[45]!==s||u[46]!==i||u[47]!==l?(c=(0,h.jsx)(n,{title:o,className:s,desc:i,children:l}),u[43]=n,u[44]=o,u[45]=s,u[46]=i,u[47]=l,u[48]=c):c=u[48],c};function fJ(e,t){return(0,h.jsxs)("div",{children:[(0,h.jsx)("span",{"aria-hidden":"true",children:(0,h.jsx)(N,{name:"error-round",isPresentational:!0})}),(0,h.jsx)("div",{className:"a-form-alert__text",children:e})]},t)}let fX=()=>{let e,t,n,r,a=(0,v.c)(10),o=rE(),s=rC(lG);a[0]!==s?(e=e=>e===s?"active":"",a[0]=s,a[1]=e):e=a[1];let i=e;a[2]!==s||a[3]!==o?(t=e=>{s!==e&&(iH("Button",e),o(lE(e)))},a[2]=s,a[3]=o,a[4]=t):t=a[4];let l=t;return a[5]===Symbol.for("react.memo_cache_sentinel")?(n=(0,h.jsx)("p",{children:"Select date range"}),a[5]=n):n=a[5],a[6]!==i||a[7]!==s||a[8]!==l?(r=(0,h.jsxs)("section",{className:"date-ranges",children:[n,(0,h.jsx)(tx,{id:"date-range",children:Object.entries(sQ).map(e=>{let[t,n]=e;return(0,h.jsx)(tw,{label:t,"aria-label":n,"aria-pressed":t===s,appearance:"secondary",className:i(t),title:n,onClick:()=>{l(t)}},t)})})]}),a[6]=i,a[7]=s,a[8]=l,a[9]=r):r=a[9],r};sM().extend(fW()),sM().extend(fK()),sM().extend(sz());let fZ=e=>["a-text-input",e?"a-text-input--error":""].filter(Boolean).join(" "),f0=()=>{let e,t,n,r,a,o,s,i,l,c,u,d,f,p,m=(0,v.c)(31),b=rC(lQ),y=rC(lK),w=sM()(b).isValid()?sH(b):"",x=sM()(y).isValid()?sH(y):"",[S,k]=(0,g.useState)(null),[_,E]=(0,g.useState)(null),j=rE(),C=(0,g.useRef)(),P=(0,g.useRef)(),O=null!=S?S:w,T=null!=_?_:x,A=sM()(O).isAfter(T)?"'From' date must be less than 'To' date":sM()(O).isSame(T)?"'From' date cannot be the same as 'To' date":!!sM()(T).isAfter(s$)&&"'To' date cannot be later than "+sI(s$);m[0]===Symbol.for("react.memo_cache_sentinel")?(e=e=>{"Enter"===e.key&&C.current.blur()},m[0]=e):e=m[0];let M=e;m[1]===Symbol.for("react.memo_cache_sentinel")?(t=e=>{"Enter"===e.key&&P.current.blur()},m[1]=t):t=m[1];let R=t,z=()=>{let e=O,t=T;if(iN([!sM()(O).isValid(),sM()(O).isBefore(sV),sM()(O).isAfter(s$),!C.current.value])&&(C.current.value=sV,e=sV),iN([!sM()(T).isValid(),sM()(T).isAfter(s$),sM()(T).isBefore(sV),sM()(T).isBefore(O),!P.current.value])&&(P.current.value=s$,t=s$),sM()(t).isAfter(e)){j(l_(e,t)),k(null),E(null);return}k(e),E(t)},L=fZ(iN([!sM()(O).isValid(),sM()(O).isBefore(sV),sM()(O).isAfter(T),sM()(O).isSame(T)])),I=fZ(iN([!sM()(T).isValid(),sM()(T).isAfter(s$),sM()(T).isBefore(O),sM()(T).isSame(O)]));return m[2]===Symbol.for("react.memo_cache_sentinel")?(n=(0,h.jsx)("label",{className:"a-label a-label--heading",htmlFor:iO("date_received-from"),children:"From"}),m[2]=n):n=m[2],m[3]===Symbol.for("react.memo_cache_sentinel")?(r=iO("date_received-from"),m[3]=r):r=m[3],m[4]!==k?(a=e=>{k(e.target.value)},m[4]=k,m[5]=a):a=m[5],m[6]!==O||m[7]!==z||m[8]!==M||m[9]!==L||m[10]!==a?(o=(0,h.jsxs)("li",{children:[n,(0,h.jsx)("div",{className:"o-search-input",children:(0,h.jsx)("div",{className:"o-search-input__input",children:(0,h.jsx)("input",{id:r,className:L,onBlur:z,onChange:a,onKeyDown:M,min:sV,max:s$,ref:C,placeholder:sB,type:"date",value:O})})})]}),m[6]=O,m[7]=z,m[8]=M,m[9]=L,m[10]=a,m[11]=o):o=m[11],m[12]===Symbol.for("react.memo_cache_sentinel")?(s=(0,h.jsx)("label",{className:"a-label a-label--heading",htmlFor:iO("date_received-through"),children:"To"}),m[12]=s):s=m[12],m[13]===Symbol.for("react.memo_cache_sentinel")?(i=iO("date_received-through"),m[13]=i):i=m[13],m[14]!==E?(l=e=>{E(e.target.value)},m[14]=E,m[15]=l):l=m[15],m[16]!==z||m[17]!==R||m[18]!==I||m[19]!==l||m[20]!==T?(c=(0,h.jsxs)("li",{children:[s,(0,h.jsx)("div",{className:"o-search-input",children:(0,h.jsx)("div",{className:"o-search-input__input",children:(0,h.jsx)("input",{id:i,className:I,onBlur:z,onChange:l,onKeyDown:R,min:sV,max:s$,placeholder:sB,ref:P,type:"date",value:T})})})]}),m[16]=z,m[17]=R,m[18]=I,m[19]=l,m[20]=T,m[21]=c):c=m[21],m[22]!==o||m[23]!==c?(u=(0,h.jsxs)("ul",{className:"date-inputs",children:[o,c]}),m[22]=o,m[23]=c,m[24]=u):u=m[24],m[25]===Symbol.for("react.memo_cache_sentinel")?(d=(0,h.jsx)(fX,{}),m[25]=d):d=m[25],m[26]!==A?(f=A?(0,h.jsxs)("div",{className:"a-form-alert a-form-alert--error",role:"alert",children:[(0,h.jsx)("span",{"aria-hidden":"true",children:(0,h.jsx)(N,{name:"error-round",isPresentational:!0})}),(0,h.jsx)("span",{className:"a-form-alert__text",children:A+" "})]}):null,m[26]=A,m[27]=f):f=m[27],m[28]!==u||m[29]!==f?(p=(0,h.jsx)(lz,{title:"Date received",className:"aggregation date-filter",desc:"The date the CFPB received the complaint.",children:(0,h.jsxs)("div",{children:[u,d,f]})}),m[28]=u,m[29]=f,m[30]=p):p=m[30],p},f1=e=>{let t,n,r,a,o,s,i,l,c,u=(0,v.c)(26),{ariaLabel:d,htmlId:f,isDisabled:p,handleChange:m,handleInputChange:b,maxResults:y,options:w,placeholder:x}=e,S=void 0!==p&&p,k=void 0===y?5:y,_=void 0===x?"Enter your search text":x,E=(0,g.useRef)(),[j,C]=(0,g.useState)("");u[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>{E.current.clear(),C("")},u[0]=t):t=u[0];let P=t;return u[1]===Symbol.for("react.memo_cache_sentinel")?(n=(0,h.jsx)(N,{name:"search",isPresentational:!0}),u[1]=n):n=u[1],u[2]!==d||u[3]!==f?(r=(0,h.jsx)("label",{"aria-label":d,className:"o-search-input__input-label",htmlFor:f,children:n}),u[2]=d,u[3]=f,u[4]=r):r=u[4],u[5]!==m?(a=e=>{m(e),P()},u[5]=m,u[6]=a):a=u[6],u[7]!==b?(o=e=>{b(e),C(e)},u[7]=b,u[8]=o):o=u[8],u[9]!==f?(s={id:f,type:"search",className:"a-text-input a-text-input--full"},u[9]=f,u[10]=s):s=u[10],u[11]!==f||u[12]!==S||u[13]!==k||u[14]!==w||u[15]!==_||u[16]!==a||u[17]!==o||u[18]!==s?(i=(0,h.jsx)(fL,{id:f,minLength:1,className:"typeahead__selector",disabled:S,isLoading:!1,ref:E,onChange:a,onInputChange:o,options:w,maxResults:k,placeholder:_,renderMenuItemChildren:f2,inputProps:s}),u[11]=f,u[12]=S,u[13]=k,u[14]=w,u[15]=_,u[16]=a,u[17]=o,u[18]=s,u[19]=i):i=u[19],u[20]!==j?(l=!!j&&(0,h.jsx)(fH,{onClear:P}),u[20]=j,u[21]=l):l=u[21],u[22]!==i||u[23]!==l||u[24]!==r?(c=(0,h.jsx)("section",{className:"typeahead",children:(0,h.jsx)("div",{className:"o-search-input",children:(0,h.jsxs)("div",{className:"o-search-input__input",children:[r,i,l]})})}),u[22]=i,u[23]=l,u[24]=r,u[25]=c):c=u[25],c};function f2(e){return(0,h.jsx)("li",{className:"typeahead__option",children:(0,h.jsx)(fD,{label:e.label,position:e.position,value:e.value},e.key)})}f1.propTypes={ariaLabel:il().string.isRequired,isDisabled:il().bool,handleChange:il().func.isRequired,handleInputChange:il().func.isRequired,htmlId:il().string.isRequired,maxResults:il().number,options:il().array,placeholder:il().string};let f3="state",f7=e=>lL(e),f5=()=>{let e,t,n,r,a,o,s,i,l=(0,v.c)(18),{data:c,error:u}=l7();l[0]!==(null==c?void 0:c.state)||l[1]!==u?(e=u?[]:(null==c?void 0:c.state)||[],l[0]=null==c?void 0:c.state,l[1]=u,l[2]=e):e=l[2];let d=e;l[3]!==d?(t=structuredClone(d),l[3]=d,l[4]=t):t=l[4];let f=t,p=rE(),m=rC(lF);l[5]===Symbol.for("react.memo_cache_sentinel")?(n=Object.keys(sZ).map(f4),l[5]=n):n=l[5];let b=n,[y,w]=(0,g.useState)(b);l[6]===Symbol.for("react.memo_cache_sentinel")?(r=e=>{let t=iP(e);""===t?w(b):w(b.map(n=>({key:n.key,label:n.label,normalized:n.normalized,position:n.normalized.indexOf(t),value:e})))},l[6]=r):r=l[6];let x=r;l[7]!==p?(a=e=>{p(ll(f3,[e[0].key]))},l[7]=p,l[8]=a):a=l[8];let S=a;return l[9]!==y||l[10]!==S?(o=(0,h.jsx)(f1,{ariaLabel:"Start typing to begin listing US states",htmlId:"state-typeahead",handleChange:S,handleInputChange:x,hasClearButton:!0,options:y,placeholder:"Enter state name or abbreviation"}),l[9]=y,l[10]=S,l[11]=o):o=l[11],l[12]!==m||l[13]!==f?(s=(0,h.jsx)(l4,{fieldName:f3,options:f,getLabel:f7,selections:m}),l[12]=m,l[13]=f,l[14]=s):s=l[14],l[15]!==o||l[16]!==s?(i=(0,h.jsxs)(lz,{title:"State",desc:"The state in the mailing address provided by the consumer.",className:"aggregation state",children:[o,s]}),l[15]=o,l[16]=s,l[17]=i):i=l[17],i};function f4(e){let t=f7(e);return{key:e,label:t,position:0,normalized:iP(t),value:e}}let f6=e=>{let{fieldName:t,listComponent:n,options:r,perBucketProps:a=(e,t)=>t,hasMore:o=!1}=e,[s,i]=(0,g.useState)(o),l=iR(r,iC(rC(lD),t,[]),t),c=l.length>5?l.slice(0,5):l,u=l.length-5,d=e=>{let r=a(e,{fieldName:t,item:e,key:e.key});return(0,g.createElement)(n,r)};return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("ul",{children:s?l.map(e=>d(e)):c.map(e=>d(e))}),u>0?(0,h.jsx)("div",{children:(0,h.jsx)(tw,{label:s?"- Show ".concat(u," less"):"+ Show ".concat(u," more"),isLink:!0,className:"more",onClick:()=>{i(!s)}})}):null]})};f6.propTypes={fieldName:il().string.isRequired,listComponent:il().oneOfType([il().element,il().func,il().object]).isRequired,options:il().array.isRequired,perBucketProps:il().func,hasMore:il().bool};let f9=e=>{let t,n,r,a,o=(0,v.c)(14),{fieldName:s,title:i,desc:l}=e,{data:c,error:u}=l7();o[0]!==c||o[1]!==u?(t=u?{}:c,o[0]=c,o[1]=u,o[2]=t):t=o[2];let d=t;o[3]!==d||o[4]!==s?(n=iC(d,s,[]),o[3]=d,o[4]=s,o[5]=n):n=o[5];let f=n,p="aggregation simple "+s;return o[6]!==s||o[7]!==f?(r=(0,h.jsx)(f6,{fieldName:s,listComponent:l5,options:f}),o[6]=s,o[7]=f,o[8]=r):r=o[8],o[9]!==l||o[10]!==p||o[11]!==r||o[12]!==i?(a=(0,h.jsx)(lz,{title:i,desc:l,className:p,children:r}),o[9]=l,o[10]=p,o[11]=r,o[12]=i,o[13]=a):a=o[13],a};f9.propTypes={fieldName:il().string.isRequired,title:il().string.isRequired,desc:il().string};let f8="zip_code",pe=()=>{let e,t,n,r,a=(0,v.c)(9),{data:o,error:s}=l7(),i=rC(lB);a[0]!==(null==o?void 0:o.zip_code)||a[1]!==s?(e=s?[]:(null==o?void 0:o.zip_code)||[],a[0]=null==o?void 0:o.zip_code,a[1]=s,a[2]=e):e=a[2];let l=e;a[3]!==l?(t=structuredClone(l),a[3]=l,a[4]=t):t=a[4];let c=t;return a[5]===Symbol.for("react.memo_cache_sentinel")?(n=(0,h.jsx)(fB,{fieldName:f8,placeholder:"Enter ZIP code",ariaLabel:"Start typing to begin listing zip codes",htmlId:"zip-code-typeahead",hasClearButton:!0}),a[5]=n):n=a[5],a[6]!==i||a[7]!==c?(r=(0,h.jsxs)(lz,{title:"ZIP code",desc:"The mailing ZIP code provided by the consumer.",className:"aggregation",children:[n,(0,h.jsx)(l4,{fieldName:f8,options:c,selections:i})]}),a[6]=i,a[7]=c,a[8]=r):r=a[8],r},pt=e=>e.view.hasAdvancedSearchTips,pn=e=>e.view.hasFilters,pr=e=>e.view.isPrintMode,pa=e=>e.view.showTour,po=e=>e.view.width,ps=e=>e.view.modalTypeShown,pi="INDETERMINATE",pl="CHECKED",pc=e=>{let t,n,r=(0,v.c)(39),{fieldName:a,item:o,subitems:s}=e,i=rC(lD),l=rE(),[c,u]=(0,g.useState)(!1);if(r[0]!==l||r[1]!==a||r[2]!==i||r[3]!==c||r[4]!==o||r[5]!==s){n=Symbol.for("react.early_return_sentinel");n:{let e,d,f,p,m,v,g,b,y,w,x,S,k=iC(i,a,[]);r[8]!==o.key?(e=e=>e===o.key||e.startsWith(o.key+"•"),r[8]=o.key,r[9]=e):e=r[9];let _=k.filter(e),E=_.filter(pu);r[10]!==o.key?(d=e=>e===o.key,r[10]=o.key,r[11]=d):d=r[11];let j=_.filter(d),C="UNCHECKED";0===j.length&&E.length>0?C=pi:j.length>0&&(C=pl),r[12]!==o.key?(f=e=>({isDisabled:e.isDisabled,key:iT(o.key,e.key),value:e.key,doc_count:e.doc_count}),r[12]=o.key,r[13]=f):f=r[13];let P=iR(s.map(f),k,a);if(0===P.length){let e;r[14]!==a||r[15]!==o?(e=(0,h.jsx)(l5,{item:o,fieldName:a},o.key),r[14]=a,r[15]=o,r[16]=e):e=r[16],n=e;break n}let O="".concat(a," ").concat(o.key);r[17]!==O?(p=iO(O),r[17]=O,r[18]=p):p=r[18];let T=p;r[19]!==c?(m=()=>{u(!c)},r[19]=c,r[20]=m):m=r[20];let A=m;r[21]!==o.key?(v=iO(o.key),r[21]=o.key,r[22]=v):v=r[22],r[23]!==o.key?(g=(0,h.jsx)("span",{className:"u-visually-hidden",children:o.key}),r[23]=o.key,r[24]=g):g=r[24],r[25]!==o.key?(b=(0,h.jsx)("span",{className:"aggregation-branch__label",children:o.key}),r[25]=o.key,r[26]=b):b=r[26],r[27]!==o.doc_count?(y=o.doc_count.toLocaleString(),r[27]=o.doc_count,r[28]=y):y=r[28],r[29]!==y?(w=(0,h.jsx)(tP,{type:"5",className:"aggregation-branch__count",children:y}),r[29]=y,r[30]=w):w=r[30];let M=c?"up":"down";r[31]!==M?(x=(0,h.jsx)(N,{name:M,isPresentational:!0,className:"aggregation-branch__caret"}),r[31]=M,r[32]=x):x=r[32],r[33]!==c||r[34]!==b||r[35]!==w||r[36]!==x||r[37]!==A?(S=(0,h.jsxs)("button",{type:"button",className:"aggregation-branch__toggle","aria-expanded":c,onClick:A,children:[b,w,x]}),r[33]=c,r[34]=b,r[35]=w,r[36]=x,r[37]=A,r[38]=S):S=r[38],t=(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)("li",{className:"aggregation-branch ".concat(v," parent"),children:[(0,h.jsx)(tC,{id:T,label:g,className:"aggregation-branch__checkbox",disabled:o.isDisabled,checked:C===pl,isIndeterminate:C===pi,onChange:()=>{let e=((e,t)=>{let n=new Set([e]);for(let r of t)n.add(iT(e,r.key));return n})(o.key,s);for(let t of E)e.add(t);if(C===pl)l(lc(a,[...e]));else{let e=k.filter(e=>e!==o.key&&!e.startsWith(o.key+"•"));e.push(o.key),l(ls(a,[...e]))}}}),S]}),c?(0,h.jsx)("ul",{className:"children",children:P.map(e=>(0,h.jsx)(l5,{item:e,fieldName:a,siblings:P},e.key))}):null]})}r[0]=l,r[1]=a,r[2]=i,r[3]=c,r[4]=o,r[5]=s,r[6]=t,r[7]=n}else t=r[6],n=r[7];return n!==Symbol.for("react.early_return_sentinel")?n:t};function pu(e){return e.includes("•")}pc.propTypes={fieldName:il().string.isRequired,item:il().shape({doc_count:il().number.isRequired,key:il().string.isRequired,value:il().string,isDisabled:il().bool}).isRequired,subitems:il().array.isRequired};var pd=a(9277),pf=a.n(pd);let pp=oo({name:"actions",initialState:{actions:[]},reducers:{addAction:(e,t)=>{e.actions.push(t.payload)},clearActions:e=>{e.actions.length=0}}}),{addAction:ph,clearActions:pm}=pp.actions;pp.reducer;let pv=e=>{let t,n,r,a,o,s,i,l,c,u,d,f,p,m,b=(0,v.c)(39),{fieldName:y}=e,w=(0,g.useRef)(null),x=rE(),S=y.replaceAll("_"," "),{data:k,error:_}=l7();b[0]!==k||b[1]!==_||b[2]!==y?(t=_||!k?[]:k[y]||[],b[0]=k,b[1]=_,b[2]=y,b[3]=t):t=b[3];let E=t,j="sub_".concat(y,".raw").toLowerCase(),C=[],[P,O]=(0,g.useState)("");for(let e of E){var T;if(C.every(t=>t.key!==e.key)){let t=iq(rO({},e),{isParent:!0,label:e.key,normalized:iP(e.key),position:0,top:{key:e.key,label:e.key,normalized:iP(e.key),position:0}});C.push(t)}if(Object.hasOwn(e,j)&&(null==(T=e[j])?void 0:T.buckets))for(let t of e[j].buckets){let n={key:e.key+"•"+t.key,label:t.key,normalized:iP(t.key),position:0,top:{key:e.key,label:e.key,normalized:iP(e.key),position:0}};C.push(n)}}let[A,M]=(0,g.useState)(C);b[4]!==O?(n=()=>{w.current.clear(),O("")},b[4]=O,b[5]=n):n=b[5];let R=n,z=e=>{O(e);let t=iP(e);t?M(C.map(n=>iq(rO({},n),{position:n.normalized.indexOf(t),value:e,top:iq(rO({},n.top),{position:n.top.normalized.indexOf(t),value:e})}))):M(C)};b[6]!==x||b[7]!==y||b[8]!==R?(r=e=>{x(lr(y,e[0].key)),R()},b[6]=x,b[7]=y,b[8]=R,b[9]=r):r=b[9];let L=r,I="Search "+y,D="filter-search-".concat(y);b[10]!==D?(a=iO(D),b[10]=D,b[11]=a):a=b[11],b[12]===Symbol.for("react.memo_cache_sentinel")?(o=(0,h.jsx)(N,{name:"search",isPresentational:!0}),b[12]=o):o=b[12],b[13]!==I||b[14]!==a?(s=(0,h.jsx)("label",{"aria-label":I,className:"o-search-input__input-label",htmlFor:a,children:o}),b[13]=I,b[14]=a,b[15]=s):s=b[15];let H="filter-search-".concat(y);b[16]!==H?(i=iO(H),b[16]=H,b[17]=i):i=b[17],b[18]===Symbol.for("react.memo_cache_sentinel")?(l=["key"],b[18]=l):l=b[18],b[19]!==L?(c=e=>L(e),b[19]=L,b[20]=c):c=b[20],b[21]!==z?(u=e=>z(e),b[21]=z,b[22]=u):u=b[22];let F="Enter name of "+S,B="".concat(S," Filter Menu Input");return b[23]!==B?(d={"aria-label":B,className:"a-text-input a-text-input--full",type:"search"},b[23]=B,b[24]=d):d=b[24],b[25]!==A||b[26]!==i||b[27]!==c||b[28]!==u||b[29]!==F||b[30]!==d?(f=(0,h.jsx)(fL,{id:i,maxResults:5,minLength:2,className:"typeahead__selector",filterBy:l,onChange:c,onInputChange:u,placeholder:F,labelKey:"key",options:A,ref:w,inputProps:d,renderMenuItemChildren:pg}),b[25]=A,b[26]=i,b[27]=c,b[28]=u,b[29]=F,b[30]=d,b[31]=f):f=b[31],b[32]!==R||b[33]!==P?(p=!!P&&(0,h.jsx)(fH,{onClear:R}),b[32]=R,b[33]=P,b[34]=p):p=b[34],b[35]!==f||b[36]!==p||b[37]!==s?(m=(0,h.jsx)("div",{className:"typeahead",children:(0,h.jsx)("div",{className:"o-search-input",children:(0,h.jsxs)("div",{className:"o-search-input__input",children:[s,f,p]})})}),b[35]=f,b[36]=p,b[37]=s,b[38]=m):m=b[38],m};function pg(e){return(0,h.jsxs)("li",{className:"typeahead__option typeahead__option--multi",children:[(0,h.jsx)(fD,rO({},e.top),e.value),e.isParent?null:(0,h.jsx)("div",{className:"typeahead__option-sub",children:e.value?(0,h.jsx)(fD,rO({},e),e.value):null})]})}pv.propTypes={fieldName:il().string.isRequired};let pb=e=>{let t,n,r,a,o,s,i,l=(0,v.c)(25),{desc:c,fieldName:u}=e,{data:d,error:f}=l7(),p=rC(lD);l[0]!==u||l[1]!==p?(t=p[u]||[],l[0]=u,l[1]=p,l[2]=t):t=l[2];let m=t,g="sub_".concat(u,".raw");l[3]!==d||l[4]!==f||l[5]!==u?(n=f?[]:(null==d?void 0:d[u])||[],l[3]=d,l[4]=f,l[5]=u,l[6]=n):n=l[6];let b=n;l[7]!==b||l[8]!==u||l[9]!==m?(r=((e,t,n)=>{var r=null!=t?t:[];let a=iR(e,r,n);if(r.length>0)for(let e of r)e.includes("•")?(iA(a,e.split("•")[0],n),iM(a,e,n)):iA(a,e,n);return a})(b,m,u),l[7]=b,l[8]=u,l[9]=m,l[10]=r):r=l[10];let y=r;l[11]!==g?(a=(e,t)=>{if(Object.hasOwn(e,g)){let n=e[g];t.subitems=n?n.buckets:[]}else t.subitems=[];return t},l[11]=g,l[12]=a):a=l[12];let w=a,x=("string"!=typeof u||0===u.length?u:u.charAt(0).toUpperCase()+u.slice(1))+" and sub-"+u,S="aggregation "+u;return l[13]!==u?(o=(0,h.jsx)(pv,{fieldName:u}),l[13]=u,l[14]=o):o=l[14],l[15]!==w||l[16]!==u||l[17]!==y?(s=(0,h.jsx)(f6,{fieldName:u,listComponent:pc,options:y,perBucketProps:w}),l[15]=w,l[16]=u,l[17]=y,l[18]=s):s=l[18],l[19]!==c||l[20]!==x||l[21]!==S||l[22]!==o||l[23]!==s?(i=(0,h.jsxs)(lz,{title:x,desc:c,className:S,children:[o,s]}),l[19]=c,l[20]=x,l[21]=S,l[22]=o,l[23]=s,l[24]=i):i=l[24],i};pb.propTypes={desc:il().string.isRequired,fieldName:il().string.isRequired};let py=()=>{let e,t,n=(0,v.c)(4),r=rC(pn);return n[0]!==r?(e=!!r&&(0,h.jsxs)("section",{className:"filter-panel o-well",children:[(0,h.jsx)(tP,{type:"3",children:"Filter results by"}),(0,h.jsx)("hr",{}),(0,h.jsx)(f0,{}),(0,h.jsx)("hr",{}),(0,h.jsx)(pb,{desc:"The type of product and sub-product the consumer identified in the complaint.",fieldName:"product"}),(0,h.jsx)("hr",{}),(0,h.jsx)(pb,{desc:"The issue and sub-issue the consumer identified in the complaint.",fieldName:"issue"}),(0,h.jsx)("hr",{}),(0,h.jsx)(f5,{}),(0,h.jsx)("hr",{}),(0,h.jsx)(pe,{}),(0,h.jsx)("hr",{}),(0,h.jsx)(fq,{}),(0,h.jsx)("hr",{}),(0,h.jsx)(f9,{title:"Did the company provide a timely response?",desc:"",fieldName:"timely"}),(0,h.jsx)("hr",{}),(0,h.jsx)(f9,{title:"Company response to consumer",desc:"The company's response to the consumer's complaint.",fieldName:"company_response"}),(0,h.jsx)("hr",{}),(0,h.jsx)(f9,{title:"Company public response",desc:"The company's optional public-facing response to a consumer's complaint.",fieldName:"company_public_response"}),(0,h.jsx)("hr",{}),(0,h.jsx)(fG,{}),(0,h.jsx)("hr",{}),(0,h.jsx)(f9,{title:"How did the consumer submit the complaint to the CFPB?",fieldName:"submitted_via",desc:""}),(0,h.jsx)("hr",{}),(0,h.jsx)(f9,{title:"Tags",desc:"Data that supports easier searching and sorting of complaints submitted by or on behalf of consumers.",fieldName:"tags"})]}),n[0]=r,n[1]=e):e=n[1],n[2]!==e?(t=(0,h.jsx)(h.Fragment,{children:e}),n[2]=e,n[3]=t):t=n[3],t},pw=()=>{let e,t=(0,v.c)(2),n=rC(po)>=901;return t[0]!==n?(e=n?(0,h.jsx)("aside",{className:"content__sidebar",children:(0,h.jsx)(py,{})}):null,t[0]=n,t[1]=e):e=t[1],e},px=e=>{let t,n,r,a,o=(0,v.c)(8),{text:s,closeFn:i}=e;return o[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,h.jsx)(N,{name:"warning-round",isPresentational:!0}),o[0]=t):t=o[0],o[1]!==s?(n=(0,h.jsx)("div",{className:"m-notification__content",children:(0,h.jsx)("div",{className:"m-notification__message",children:s})}),o[1]=s,o[2]=n):n=o[2],o[3]!==i?(r=i?(0,h.jsx)("button",{onClick:i,onKeyDown:i,"aria-label":"Dismiss",className:"warning-notification__close",children:(0,h.jsx)(N,{name:"error",isPresentational:!0})}):"",o[3]=i,o[4]=r):r=o[4],o[5]!==n||o[6]!==r?(a=(0,h.jsxs)("div",{role:"alert",className:"warning-notification m-notification m-notification--visible m-notification--warning",children:[t,n,r]}),o[5]=n,o[6]=r,o[7]=a):a=o[7],a};px.propTypes={text:il().string.isRequired,closeFn:il().func};let pS=()=>{let e,t=(0,v.c)(1),{data:n}=l7();return iN([null==n?void 0:n.hasDataIssue,null==n?void 0:n.isDataStale])?(t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,h.jsx)("div",{children:(0,h.jsx)(px,{text:"We’re currently experiencing technical issues that have delayed the refresh of data on the Consumer Complaint Database. We expect to refresh the data in the next few days."})}),t[0]=e):e=t[0],e):null},pk=()=>{let e,t,n,r,a,o,s=(0,v.c)(15),i=rE(),{data:l,error:c}=l7(),u=c?0:(null==l?void 0:l.doc_count)||0,d=c?0:(null==l?void 0:l.total)||0;s[0]!==i?(e=()=>{iH("Print","Print"),i(i9())},s[0]=i,s[1]=e):e=s[1];let f=e;return s[2]!==u||s[3]!==d?(t=d===u?(0,h.jsx)(tP,{type:"3",children:"Showing "+u.toLocaleString()+" total complaints"}):(0,h.jsx)(tP,{type:"3",children:"Showing "+d.toLocaleString()+" matches out of "+u.toLocaleString()+" total complaints"}),s[2]=u,s[3]=d,s[4]=t):t=s[4],s[5]!==i||s[6]!==c||s[7]!==f?(n=c?null:(0,h.jsxs)("div",{className:"action-bar__actions",children:[(0,h.jsx)(tw,{label:"Export data",isLink:!0,iconRight:"download",className:"export-btn","data-gtm_ignore":"true",onClick:()=>{iH("Export","User Opens Export Modal"),i(i2(sq))}}),(0,h.jsx)(tw,{label:"Print page",isLink:!0,iconRight:"print",className:"print-preview",onClick:f})]}),s[5]=i,s[6]=c,s[7]=f,s[8]=n):n=s[8],s[9]!==t||s[10]!==n?(r=(0,h.jsxs)("div",{className:"action-bar",id:"search-summary",children:[t,n]}),s[9]=t,s[10]=n,s[11]=r):r=s[11],s[12]===Symbol.for("react.memo_cache_sentinel")?(a=(0,h.jsx)(pS,{}),s[12]=a):a=s[12],s[13]!==r?(o=(0,h.jsxs)(h.Fragment,{children:[r,a]}),s[13]=r,s[14]=o):o=s[14],o},p_=e=>{let t,n,r,a,o=(0,v.c)(9),{title:s,children:i}=e;if(o[0]!==s?(t=(0,h.jsx)(tP,{type:"4",children:s}),o[0]=s,o[1]=t):t=o[1],o[2]!==i)n="string"==typeof i?(0,h.jsx)("span",{dangerouslySetInnerHTML:{__html:i}}):i,o[2]=i,o[3]=n;else n=o[3];return o[4]!==n?(r=(0,h.jsx)("div",{className:"complaint-card__field-value",children:n}),o[4]=n,o[5]=r):r=o[5],o[6]!==t||o[7]!==r?(a=(0,h.jsxs)("div",{className:"complaint-card__field",children:[t,r]}),o[6]=t,o[7]=r,o[8]=a):a=o[8],a},pE=e=>{let t,n,r,a,o,s,i,l,c,u,d,f,p,m,g,b,y,w,x,S,k,_,E,j,C,P,N,O,T,A=(0,v.c)(65),{row:M}=e;if(A[0]!==M.complaint_id){r=M.complaint_id.replaceAll(/(<em>)?(.*?)(<\/em>)?/gi,"$2");let e="detail/"+M.complaint_id.replaceAll(/(<em>)?(.*?)(<\/em>)?/gi,"$2");o="complaint-card",p="complaint-card__body",f="complaint-card__column complaint-card__column--primary",d="complaint-card__id",n=tP,u="3",t=L,i="complaint-card__detail-link",l=!0,c=e,a="Complaint ",s=ij(r),A[0]=M.complaint_id,A[1]=t,A[2]=n,A[3]=r,A[4]=a,A[5]=o,A[6]=s,A[7]=i,A[8]=l,A[9]=c,A[10]=u,A[11]=d,A[12]=f,A[13]=p}else t=A[1],n=A[2],r=A[3],a=A[4],o=A[5],s=A[6],i=A[7],l=A[8],c=A[9],u=A[10],d=A[11],f=A[12],p=A[13];let R=a+s;return A[14]!==t||A[15]!==r||A[16]!==R||A[17]!==i||A[18]!==l||A[19]!==c?(m=(0,h.jsx)(t,{className:i,isJump:l,to:c,"aria-label":R,label:r}),A[14]=t,A[15]=r,A[16]=R,A[17]=i,A[18]=l,A[19]=c,A[20]=m):m=A[20],A[21]!==n||A[22]!==m||A[23]!==u?(g=(0,h.jsx)(n,{type:u,children:m}),A[21]=n,A[22]=m,A[23]=u,A[24]=g):g=A[24],A[25]!==g||A[26]!==d?(b=(0,h.jsx)("div",{className:d,children:g}),A[25]=g,A[26]=d,A[27]=b):b=A[27],A[28]!==M.company?(y=(0,h.jsx)(p_,{title:"Company name",children:M.company}),A[28]=M.company,A[29]=y):y=A[29],A[30]!==M.company_response?(w=(0,h.jsx)(p_,{title:"Company response to consumer",children:M.company_response}),A[30]=M.company_response,A[31]=w):w=A[31],A[32]!==M.timely?(x=(0,h.jsx)(p_,{title:"Timely response?",children:M.timely}),A[32]=M.timely,A[33]=x):x=A[33],A[34]!==b||A[35]!==y||A[36]!==w||A[37]!==x||A[38]!==f?(S=(0,h.jsxs)("div",{className:f,children:[b,y,w,x]}),A[34]=b,A[35]=y,A[36]=w,A[37]=x,A[38]=f,A[39]=S):S=A[39],A[40]!==M.date_received?(k=sI(M.date_received),A[40]=M.date_received,A[41]=k):k=A[41],A[42]!==k?(_=(0,h.jsx)(p_,{title:"Date received",children:k}),A[42]=k,A[43]=_):_=A[43],A[44]!==M.product?(E=(0,h.jsx)(p_,{title:"Product",children:M.product}),A[44]=M.product,A[45]=E):E=A[45],A[46]!==M.sub_product?(j=M.sub_product?(0,h.jsx)(p_,{title:"Sub-product",children:M.sub_product}):null,A[46]=M.sub_product,A[47]=j):j=A[47],A[48]!==M.issue?(C=(0,h.jsx)(p_,{title:"Issue",children:M.issue}),A[48]=M.issue,A[49]=C):C=A[49],A[50]!==M.sub_issue?(P=M.sub_issue?(0,h.jsx)(p_,{title:"Sub-issue",children:M.sub_issue}):null,A[50]=M.sub_issue,A[51]=P):P=A[51],A[52]!==_||A[53]!==E||A[54]!==j||A[55]!==C||A[56]!==P?(N=(0,h.jsxs)("div",{className:"complaint-card__column complaint-card__column--secondary",children:[_,E,j,C,P]}),A[52]=_,A[53]=E,A[54]=j,A[55]=C,A[56]=P,A[57]=N):N=A[57],A[58]!==S||A[59]!==N||A[60]!==p?(O=(0,h.jsxs)("div",{className:p,children:[S,N]}),A[58]=S,A[59]=N,A[60]=p,A[61]=O):O=A[61],A[62]!==o||A[63]!==O?(T=(0,h.jsx)("article",{className:o,children:O}),A[62]=o,A[63]=O,A[64]=T):T=A[64],T},pj=e=>{let t,n,r=(0,v.c)(3),{text:a}=e;return r[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,h.jsx)(N,{name:"error-round",isPresentational:!0}),r[0]=t):t=r[0],r[1]!==a?(n=(0,h.jsxs)("div",{role:"alert",className:"error-notification m-notification m-notification--visible m-notification--error",children:[t,(0,h.jsx)("div",{className:"m-notification__content",children:(0,h.jsx)("div",{className:"m-notification__message",children:a})})]}),r[1]=a,r[2]=n):n=r[2],n};pj.propTypes={text:il().string.isRequired};let pC=()=>{let e,t,n,r,a,o=(0,v.c)(12),s=rE(),i=rC(pn),l="filter-panel-toggle"+(i?" filter-panel-toggle--open":"");o[0]!==s?(e=()=>{s(i4())},o[0]=s,o[1]=e):e=o[1],o[2]===Symbol.for("react.memo_cache_sentinel")?(t=(0,h.jsx)(tP,{type:"3",className:"filter-panel-toggle__label",children:"Filter results"}),o[2]=t):t=o[2];let c=i?"up":"down";return o[3]!==c?(n=(0,h.jsx)("span",{className:"filter-panel-toggle__cue","aria-hidden":"true",children:(0,h.jsx)(N,{name:c,isPresentational:!0})}),o[3]=c,o[4]=n):n=o[4],o[5]!==i||o[6]!==e||o[7]!==n?(r=(0,h.jsxs)("button",{type:"button",className:"filter-panel-toggle__header","aria-expanded":i,onClick:e,children:[t,n]}),o[5]=i,o[6]=e,o[7]=n,o[8]=r):r=o[8],o[9]!==l||o[10]!==r?(a=(0,h.jsx)("section",{className:l,children:r}),o[9]=l,o[10]=r,o[11]=a):a=o[11],a},pP=()=>{let e,t,n,r=(0,v.c)(8),a=l3(lD),o=l3(lq),s=l3(i_);if(r[0]!==a||r[1]!==o){let t;t=Object.keys(a),e=Object.assign({no_aggs:!0},lV(o),l$(a,t)),r[0]=a,r[1]=o,r[2]=e}else e=r[2];let i=e,l=l3(lY),c=""===s,u=!l;r[3]!==c||r[4]!==u?(t=iN([c,u]),r[3]=c,r[4]=u,r[5]=t):t=r[5];let d=t;return r[6]!==d?(n={skip:d},r[6]=d,r[7]=n):n=r[7],ia(i,n)},pN=()=>{let e,t,n,r=(0,v.c)(13),a=rE(),o=rC(lJ),{data:s,error:i}=pP(),l=null==s?void 0:s.hits,c=(null==s?void 0:s.totalPages)||0,u=null==s?void 0:s.breakPoints;r[0]!==u||r[1]!==a?(e=()=>{a(lj(u))},r[0]=u,r[1]=a,r[2]=e):e=r[2];let d=e;r[3]!==u||r[4]!==a?(t=()=>{a(lC(u))},r[3]=u,r[4]=a,r[5]=t):t=r[5];let f=t;return r[6]!==i||r[7]!==l||r[8]!==d||r[9]!==o||r[10]!==f||r[11]!==c?(n=!i&&l&&l.length>0?(0,h.jsxs)("nav",{className:"m-pagination",role:"navigation","aria-label":"Pagination",children:[(0,h.jsx)(tw,{label:"Previous",iconLeft:"left",className:"a-btn m-pagination__btn-prev",onClick:()=>f(),disabled:o<=1}),(0,h.jsx)(tw,{label:"Next",iconRight:"right",className:"a-btn m-pagination__btn-next",onClick:()=>d(),disabled:o>=c}),(0,h.jsx)("div",{className:"m-pagination__form",children:(0,h.jsxs)("label",{className:"m-pagination__label",children:["Page ",o]})})]}):null,r[6]=i,r[7]=l,r[8]=d,r[9]=o,r[10]=f,r[11]=c,r[12]=n):n=r[12],n},pO=e=>{let t,n,r,a,o=(0,v.c)(14),{id:s,handleChange:i,label:l,value:c,values:u}=e,d="select-"+s;o[0]!==u?(t=(e=>{if(Array.isArray(e))return Array.isArray(e)&&e.length>0&&"object"==typeof e[0]&&null!==e[0]&&Object.prototype.hasOwnProperty.call(e[0],"name")?e.filter(e=>!e.disabled).map(e=>{var t;return{label:e.name,value:String(null!=(t=e.value)?t:e.name)}}):e.map(e=>({label:String(e),value:String(e)}));return Object.entries(e).map(e=>{let[t,n]=e;return{label:n,value:t}})})(u),o[0]=u,o[1]=t):t=o[1];let f=t,p=String(null!=c?c:"");o[2]!==p||o[3]!==i?(n=e=>{let t=Array.isArray(e)?e[0]:e;(null==t?void 0:t.value)&&t.value!==p&&i({target:{value:t.value}})},o[2]=p,o[3]=i,o[4]=n):n=o[4];let m=n;return o[5]!==p||o[6]!==d||o[7]!==l||o[8]!==m||o[9]!==f?(r=(0,h.jsx)(tR,{id:d,label:l,options:f,value:p,onChange:m}),o[5]=p,o[6]=d,o[7]=l,o[8]=m,o[9]=f,o[10]=r):r=o[10],o[11]!==d||o[12]!==r?(a=(0,h.jsx)("section",{"data-tour":d,className:"refine-select",children:r}),o[11]=d,o[12]=r,o[13]=a):a=o[13],a},pT="NO_RESULTS",pA=()=>(0,h.jsx)(pj,{text:"There was a problem executing your search"}),pM=()=>(0,h.jsx)(tP,{type:"2",children:"No results were found for your search"}),pR=()=>{let e,t,n,r,a,o,s,i,l,c,u,d,f=(0,v.c)(44),p=rE(),{data:m,isLoading:g,isFetching:b,error:y}=pP(),w=rC(l0),x=rC(l1),S=901>rC(po);f[0]!==(null==m?void 0:m.hits)?(e=(null==m?void 0:m.hits)||[],f[0]=null==m?void 0:m.hits,f[1]=e):e=f[1];let k=e;f[2]!==p?(t=e=>{let t=e.target.value;iH("Dropdown",t+" results"),p(lO(t))},f[2]=p,f[3]=t):t=f[3];let _=t;f[4]!==p?(n=e=>{let{value:t}=e.target;iH("Dropdown",sX[t]),p(lT(t))},f[4]=p,f[5]=n):n=f[5];let E=n;f[6]!==y||f[7]!==b||f[8]!==g||f[9]!==k?(r=()=>y?"ERROR":g||b||0===k.length?pT:k.length>0?"RESULTS":pT,f[6]=y,f[7]=b,f[8]=g,f[9]=k,f[10]=r):r=f[10];let j=r;f[11]!==k?(a=()=>(0,h.jsx)("div",{className:"cards-panel",children:k.map(pz)}),f[11]=k,f[12]=a):a=f[12];let C=a;if(f[13]!==j||f[14]!==C||f[15]!==S||f[16]!==_||f[17]!==E||f[18]!==w||f[19]!==x){let e,t,n=j();o="list-panel",f[25]===Symbol.for("react.memo_cache_sentinel")?(s=(0,h.jsx)(pC,{}),f[25]=s):s=f[25],f[26]!==S?(i=!!S&&(0,h.jsx)(py,{}),f[26]=S,f[27]=i):i=f[27],f[28]!==_||f[29]!==w?(e=(0,h.jsx)(pO,{label:"Show per page",values:sJ,id:"size",value:w,handleChange:_}),f[28]=_,f[29]=w,f[30]=e):e=f[30],f[31]!==E||f[32]!==x?(t=(0,h.jsx)(pO,{label:"Sort by",values:sX,id:"sort",value:x,handleChange:E}),f[31]=E,f[32]=x,f[33]=t):t=f[33],f[34]!==e||f[35]!==t?(l=(0,h.jsxs)("div",{className:"refine-bar",children:[e,t]}),f[34]=e,f[35]=t,f[36]=l):l=f[36],c=({ERROR:pA,NO_RESULTS:pM,RESULTS:C})[n](),f[13]=j,f[14]=C,f[15]=S,f[16]=_,f[17]=E,f[18]=w,f[19]=x,f[20]=o,f[21]=s,f[22]=i,f[23]=l,f[24]=c}else o=f[20],s=f[21],i=f[22],l=f[23],c=f[24];return f[37]===Symbol.for("react.memo_cache_sentinel")?(u=(0,h.jsx)(pN,{}),f[37]=u):u=f[37],f[38]!==o||f[39]!==s||f[40]!==i||f[41]!==l||f[42]!==c?(d=(0,h.jsxs)("section",{className:o,children:[s,i,l,c,u]}),f[38]=o,f[39]=s,f[40]=i,f[41]=l,f[42]=c,f[43]=d):d=f[43],d};function pz(e){return(0,h.jsx)(pE,{row:e},e.complaint_id)}let pL=()=>{let e,t=(0,v.c)(6),{data:n,error:r}=l7(),a=rC(lQ),o=rC(lK),s=iz(a)+" - "+iz(o),i=rC(lZ),l=rC(pr),c=r?0:(null==n?void 0:n.doc_count)||0,u=r?0:(null==n?void 0:n.total)||0;return t[0]!==s||t[1]!==c||t[2]!==l||t[3]!==i||t[4]!==u?(e=l?(0,h.jsxs)("section",{className:"print-info",children:[(0,h.jsxs)("p",{children:[(0,h.jsx)("span",{children:"Dates:"})," ",s]}),!!i&&(0,h.jsxs)("p",{children:[(0,h.jsx)("span",{children:"Search Term:"})," ",i]}),(0,h.jsx)("div",{children:c===u?(0,h.jsxs)("div",{children:["Showing ",(0,h.jsx)("span",{children:u.toLocaleString()})," complaints"]}):(0,h.jsxs)("div",{children:["Showing ",(0,h.jsx)("span",{children:u.toLocaleString()})," out of",(0,h.jsxs)("span",{children:[" ",c.toLocaleString()," "]})," total complaints"," "]})})]}):null,t[0]=s,t[1]=c,t[2]=l,t[3]=i,t[4]=u,t[5]=e):e=t[5],e},pI=()=>{let e,t=(0,v.c)(2),n=rC(pr);return t[0]!==n?(e=n?(0,h.jsx)("section",{className:"print-info-footer",children:(0,h.jsxs)("p",{children:[(0,h.jsx)("span",{children:"URL:"})," ",location.href]})}):null,t[0]=n,t[1]=e):e=t[1],e},pD=()=>{let e,t=(0,v.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,h.jsxs)("div",{className:"content__main",children:[(0,h.jsx)(pL,{}),(0,h.jsx)(pk,{}),(0,h.jsx)(pR,{}),(0,h.jsx)(pI,{})]}),t[0]=e):e=t[0],e},pH="filtered",pF="full",pB=e=>{let t,n,r,a=(0,v.c)(4),{onClose:o}=e;return a[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,h.jsx)("div",{className:"ccdb-modal__header",children:(0,h.jsx)(tP,{type:"3",children:"Things you should know before you use this database"})}),a[0]=t):t=a[0],a[1]===Symbol.for("react.memo_cache_sentinel")?(n=(0,h.jsxs)("div",{className:"ccdb-modal__body",children:[(0,h.jsx)(tM,{children:"This database only includes complaints the CFPB sent to companies and complaints are only published after the company responds, confirming a commercial relationship or after 15 days, whichever comes first. This database does not include complaints referred to other regulators, such as complaints about depository institutions with less than $10 billion in assets."}),(0,h.jsx)(tM,{children:"This database is not a statistical sample of consumers’ experiences in the marketplace. Complaints are not necessarily representative of all consumers’ experiences with a financial product or company. Company-specific information should be considered in the context of that company’s size and/or market share."}),(0,h.jsx)(tM,{children:"One consumer’s experience is not necessarily representative of all consumers’ experiences"}),(0,h.jsx)(tM,{children:"This database generally updates daily."})]}),a[1]=n):n=a[1],a[2]!==o?(r=(0,h.jsxs)("section",{className:"more-about-modal",children:[t,n,(0,h.jsx)("div",{className:"ccdb-modal__footer",children:(0,h.jsx)(tw,{label:"Close",onClick:o})})]}),a[2]=o,a[3]=r):r=a[3],r};pB.propTypes={onClose:il().func.isRequired};var p$=a(567),pV=a.n(p$);let pq={[sq]:()=>{var e;let t,n,r,a,o,s,i,l,c,u,d,f,p,m,b,y,w,x,S,k,_,E,j,C,P,N,O,T,M,R,z,L=(0,v.c)(66),I=rE(),D=rC(lq),H=rC(lD),{data:F}=l7(),B=(null==F?void 0:F.total)||0,$=(null==F?void 0:F.doc_count)||0;if(L[0]!==H||L[1]!==D){let n,r,a;n=Object.values(H).some(e=>Array.isArray(e)?e.length>0:!!e),r=!!(null==(e=D.searchText)?void 0:e.trim()),a=!!(D.date_received_min&&D.date_received_max)&&(!sM()(D.date_received_min).isSame(sF,"day")||!sM()(D.date_received_max).isSame(D.dateLastIndexed,"day")),t=n||r||a,L[0]=H,L[1]=D,L[2]=t}else t=L[2];let V=t,q=B>1e5,U=!V||q,[W,Y]=(0,g.useState)(V&&!q?pH:pF),[K,Q]=(0,g.useState)(!1),G=U&&W===pH?pF:W;if(L[3]!==G||L[4]!==H||L[5]!==D||L[6]!==B){let e,t=rO({},H,D);n=iD(G===pF?lM():(e=iq(rO({},t),{size:B,format:"csv",no_aggs:!0}),delete e.from,delete e.searchAfter,s0+ly(e))),L[3]=G,L[4]=H,L[5]=D,L[6]=B,L[7]=n}else n=L[7];let J=n;L[8]===Symbol.for("react.memo_cache_sentinel")?(r=iD(location.href),L[8]=r):r=L[8];let X=r,Z=V?q?"Filtered option is unavailable as filtered results exceed download limit. Refine your search terms and filters to reduce the number of complaints.":null:"Filtered option is unavailable. You must add search terms or apply filters to download filtered results.";L[9]!==I||L[10]!==G||L[11]!==J?(a=()=>{G===pF?iH("Export All Data","csv"):iH("Export Some Data","filtered"),location.assign(J),I(i2(sU))},L[9]=I,L[10]=G,L[11]=J,L[12]=a):a=L[12];let ee=a;L[13]===Symbol.for("react.memo_cache_sentinel")?(o=e=>{Q(!1),Y(e)},L[13]=o):o=L[13];let et=o;L[14]===Symbol.for("react.memo_cache_sentinel")?(s=e=>{let t=iy("export-uri-input");t.select(),t.setSelectionRange(0,99999),navigator.clipboard.writeText(t.value),e.target.focus(),Q(!0)},L[14]=s):s=L[14];let en=s;L[15]===Symbol.for("react.memo_cache_sentinel")?(i=(0,h.jsx)(tP,{type:"3",children:"Download complaint data"}),L[15]=i):i=L[15],L[16]!==I?(l=(0,h.jsxs)("div",{className:"ccdb-modal__header",children:[i,(0,h.jsx)(tw,{label:"Close",isLink:!0,"data-gtm_ignore":"true",onClick:()=>{I(i1())}})]}),L[16]=I,L[17]=l):l=L[17],L[18]===Symbol.for("react.memo_cache_sentinel")?(c=(0,h.jsx)("div",{className:"export-modal__instructions",children:"Download your filtered results (CSV) or download all complaint data (CSV ZIP). Filtered results downloads are limited to 100,000 complaints."}),L[18]=c):c=L[18],L[19]===Symbol.for("react.memo_cache_sentinel")?(u=(0,h.jsx)(tP,{type:"4",className:"export-modal__group-title",children:"Select the data you would like to download"}),L[19]=u):u=L[19];let er=G===pH;L[20]===Symbol.for("react.memo_cache_sentinel")?(d=()=>{et(pH)},L[20]=d):d=L[20],L[21]!==U||L[22]!==er?(f=(0,h.jsx)("input",{checked:er,disabled:U,className:"a-radio",id:"dataset-filtered",onChange:d,type:"radio",value:"filtered"}),L[21]=U,L[22]=er,L[23]=f):f=L[23];let ea="Filtered results ("+B.toLocaleString()+" complaints)";L[24]===Symbol.for("react.memo_cache_sentinel")?(p=(0,h.jsx)("br",{}),L[24]=p):p=L[24],L[25]!==ea?(m=(0,h.jsxs)("label",{className:"a-label",htmlFor:"dataset-filtered",children:[ea,p,"(limited to 100,000 complaints or fewer)"]}),L[25]=ea,L[26]=m):m=L[26],L[27]!==f||L[28]!==m?(b=(0,h.jsxs)("div",{className:"m-form-field m-form-field--radio m-form-field--lg-target",children:[f,m]}),L[27]=f,L[28]=m,L[29]=b):b=L[29];let eo=G===pF;L[30]===Symbol.for("react.memo_cache_sentinel")?(y=()=>{et(pF)},L[30]=y):y=L[30],L[31]!==eo?(w=(0,h.jsx)("input",{checked:eo,className:"a-radio",id:"dataset-full",onChange:y,type:"radio",value:"full"}),L[31]=eo,L[32]=w):w=L[32];let es="All complaint data ("+$.toLocaleString()+" complaints)";L[33]===Symbol.for("react.memo_cache_sentinel")?(x=(0,h.jsx)("br",{}),L[33]=x):x=L[33],L[34]!==es?(S=(0,h.jsxs)("label",{className:"a-label",htmlFor:"dataset-full",children:[es,x,"(large, zipped CSV file of every complaint)"]}),L[34]=es,L[35]=S):S=L[35],L[36]!==w||L[37]!==S?(k=(0,h.jsxs)("div",{className:"m-form-field m-form-field--radio m-form-field--lg-target",children:[w,S]}),L[36]=w,L[37]=S,L[38]=k):k=L[38],L[39]!==b||L[40]!==k?(_=(0,h.jsxs)("div",{children:[b,k]}),L[39]=b,L[40]=k,L[41]=_):_=L[41],L[42]!==Z?(E=Z?(0,h.jsx)("div",{className:"export-modal__filter-alert",children:(0,h.jsx)(A,{message:Z,status:"error"})}):null,L[42]=Z,L[43]=E):E=L[43],L[44]!==_||L[45]!==E?(j=(0,h.jsxs)("div",{className:"export-modal__group",children:[u,_,E]}),L[44]=_,L[45]=E,L[46]=j):j=L[46],L[47]===Symbol.for("react.memo_cache_sentinel")?(C=(0,h.jsx)(tP,{type:"4",children:"Save a link to your filtered results"}),L[47]=C):C=L[47],L[48]===Symbol.for("react.memo_cache_sentinel")?(P=(0,h.jsx)("input",{className:"export-modal__url-input a-text-input",id:"export-uri-input",type:"text",value:X,readOnly:!0}),L[48]=P):P=L[48];let ei=K?"Link copied":"Copy link",el=K?"approved":"link";return L[49]!==ei||L[50]!==el?(N=(0,h.jsxs)("div",{className:"export-modal__url",children:[C,(0,h.jsxs)("div",{className:"export-modal__url-control",children:[P,(0,h.jsx)(tw,{label:ei,iconRight:el,appearance:"secondary",disabled:!X,onClick:en})]})]}),L[49]=ei,L[50]=el,L[51]=N):N=L[51],L[52]!==j||L[53]!==N?(O=(0,h.jsxs)("div",{className:"ccdb-modal__body",children:[c,j,N]}),L[52]=j,L[53]=N,L[54]=O):O=L[54],L[55]!==ee?(T=(0,h.jsx)(tw,{label:"Download data",iconRight:"download","data-gtm_ignore":"true",onClick:()=>{ee()}}),L[55]=ee,L[56]=T):T=L[56],L[57]!==I?(M=(0,h.jsx)(tw,{label:"Cancel",isLink:!0,appearance:"warning","data-gtm_ignore":"true",onClick:()=>{I(i1())}}),L[57]=I,L[58]=M):M=L[58],L[59]!==T||L[60]!==M?(R=(0,h.jsxs)("div",{className:"ccdb-modal__footer",children:[T,M]}),L[59]=T,L[60]=M,L[61]=R):R=L[61],L[62]!==O||L[63]!==R||L[64]!==l?(z=(0,h.jsxs)("section",{className:"export-modal",children:[l,O,R]}),L[62]=O,L[63]=R,L[64]=l,L[65]=z):z=L[65],z},[sU]:()=>{let e,t,n,r,a=(0,v.c)(6),o=rE();return a[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,h.jsx)(tP,{type:"3",children:"Download complaint data"}),a[0]=e):e=a[0],a[1]!==o?(t=(0,h.jsxs)("div",{className:"ccdb-modal__header",children:[e,(0,h.jsx)(tw,{label:"Close",isLink:!0,"data-gtm_ignore":"true",onClick:()=>{o(i1())}})]}),a[1]=o,a[2]=t):t=a[2],a[3]===Symbol.for("react.memo_cache_sentinel")?(n=(0,h.jsx)("div",{className:"ccdb-modal__body",children:(0,h.jsx)("div",{className:"export-modal__instructions",children:"It may take a few minutes for your file to download. You can keep working while it processes."})}),a[3]=n):n=a[3],a[4]!==t?(r=(0,h.jsxs)("section",{className:"export-modal",children:[t,n]}),a[4]=t,a[5]=r):r=a[5],r},[sW]:pB},pU=()=>{let e,t,n,r=(0,v.c)(5),a=rC(ps),o=rE();r[0]===Symbol.for("react.memo_cache_sentinel")?(e=(()=>{let e=iy(iv());if(e)return e;let t=ig();return t instanceof ShadowRoot?t.host||null:t instanceof HTMLElement?t:null})(),r[0]=e):e=r[0];let s=e;r[1]===Symbol.for("react.memo_cache_sentinel")?(t=ib(),r[1]=t):t=r[1];let i=t,l=pq[a];return r[2]!==l||r[3]!==o?(n=l?(0,h.jsx)(pV(),iq(rO({},s?{appElement:s}:{}),{isOpen:!0,contentLabel:"CFPB Modal Dialog",className:"ccdb-modal",overlayClassName:"ccdb-modal__overlay",parentSelector:()=>i,onRequestClose:()=>{o(i1())},children:(0,h.jsx)(l,{onClose:()=>{o(i1())}})})):null,r[2]=l,r[3]=o,r[4]=n):n=r[4],n},pW=".ccdb-content",pY="".concat("".concat(pW," aside.content__sidebar")," .filter-panel"),pK={CONTENT:"".concat(pW,".content"),HERO_LINKS:"".concat(pW," header.content__hero .m-list--horizontal"),FILTER_PANEL:pY,DATE_FILTER:"".concat(pY," .date-filter"),PRODUCT_AGGREGATION:"".concat(pY," .aggregation.product"),FILTER_SHOW_HIDE:"".concat(pY," .aggregation button"),SEARCH_BAR:"".concat(pW," .search-bar"),SEARCH_SUMMARY:"".concat(pW," #search-summary"),EXPORT_BTN:"".concat(pW," .action-bar__actions .export-btn"),PRINT_BTN:"".concat(pW," .action-bar__actions .print-preview"),SELECT_SIZE:"".concat(pW,' [data-tour="select-size"]'),SELECT_SORT:"".concat(pW,' [data-tour="select-sort"]'),CARDS_PANEL:"".concat(pW," .cards-panel"),TO_DETAIL:"".concat(pW," .cards-panel .complaint-card__detail-link"),MOBILE_FILTER_TOGGLE:"".concat(pW," .filter-panel-toggle__header")},pQ=(e,t)=>({selector:e,label:t}),pG={INDEX:pQ(pK.CONTENT,"Index"),HELP_LINKS:pQ(pK.HERO_LINKS,"Help Links"),FILTERS:pQ(pK.FILTER_PANEL,"Filters"),DATE_RECEIVED:pQ(pK.DATE_FILTER,"Date received"),PRODUCT_ISSUE:pQ(pK.PRODUCT_AGGREGATION,"Product/Issue"),SHOW_HIDE:pQ(pK.FILTER_SHOW_HIDE,"Show/Hide"),SEARCH_BAR:pQ(pK.SEARCH_BAR,"Search Bar"),SEARCH_SUMMARY:pQ(pK.SEARCH_SUMMARY,"Search Summary"),EXPORT_DATA:pQ(pK.EXPORT_BTN,"Export Data"),PRINT_PAGE:pQ(pK.PRINT_BTN,"Print Page"),SELECT_SIZE:pQ(pK.SELECT_SIZE,"Show Number"),SELECT_SORT:pQ(pK.SELECT_SORT,"Sort Results"),RESULTS:pQ(pK.CARDS_PANEL,"Results"),COMPLAINT_DETAIL:pQ(pK.TO_DETAIL,"View Detailed Complaints")},pJ={STEP_1:pG.INDEX,STEP_2:pG.HELP_LINKS,STEP_3:pG.FILTERS,STEP_4:pG.DATE_RECEIVED,STEP_5:pG.PRODUCT_ISSUE,STEP_6:pG.SHOW_HIDE,STEP_7:pG.SEARCH_BAR,STEP_8:pG.SEARCH_SUMMARY,STEP_9:pG.EXPORT_DATA,STEP_10:pG.PRINT_PAGE,STEP_11:pG.SELECT_SIZE,STEP_12:pG.SELECT_SORT,STEP_13:pG.RESULTS,STEP_14:pG.COMPLAINT_DETAIL},pX=(e,t)=>'<li><button class="a-btn a-btn--link" onclick="(function(){var t=window.__ccdbDom&&window.__ccdbDom.querySelectorAll(\'.introjs-bullets li a\')['.concat(e+1,'];t&&t.click();})()">')+t[1].label+"</button></li>",pZ="";for(let[e,t]of Object.entries(pJ).slice(1).entries())pZ+=pX(e,t);let p0=[{element:pJ.STEP_1.selector,intro:'<div><div class="left">Welcome to the Consumer Complaint Database!<br /><br />Complaints the CFPB sends to companies for response are published in the Consumer Complaint Database after the company responds, confirming a commercial relationship with the consumer, or after 15 days, whichever comes first.<br /><br />Complaints the CFPB refers to other regulators, such as complaints about depository institutions with less than $10 billion in assets, are not published in the database. This database is not a statistical sample of consumers’ experiences in the marketplace.</div><div class="right"><h4>Index</h4><ul>'+pZ+"</ul></div></div>",tooltipClass:"wide"},{element:pJ.STEP_2.selector,intro:"These links provide more information about this database."},{element:pJ.STEP_3.selector,intro:"The “Filter results by” panel lets you filter complaint data. To clear filters, uncheck individual selections in the filter panel or to select “Clear filters” under the Search bar."},{element:pJ.STEP_4.selector,intro:"You can adjust the date range of the complaint data showed using the “Date received” filter. <br /> The default date range is three years from today’s date."},{element:pJ.STEP_5.selector,intro:"You can filter complaints by the product and issue the consumer selected when they submitted their complaint.<br /><br />Expand a product or issue to see its sub-products or sub-issues, where available. "},{element:pJ.STEP_6.selector,intro:"The blue show/hide icon allows you to expand or collapse specific filters."},{element:pJ.STEP_7.selector,intro:"Use the “Search within” bar to find specific words or phrases in complaints. By default, this will search “All data”, but you can change this using the gray dropdown menu.<br /> <br />Click “Show search tips” to see some advanced ways to refine your word search."},{element:pJ.STEP_8.selector,intro:"As you apply filters and search terms, this will display how many complaints are included out of the total number of complaints published in the database."},{element:pJ.STEP_9.selector,intro:"You can download complaint data as CSV by selecting “Export data”."},{element:pJ.STEP_10.selector,intro:"Select “Print page” to generate a pdf of the current page."},{element:pJ.STEP_11.selector,intro:"Select the number of complaints to view per page here."},{element:pJ.STEP_12.selector,intro:"Sort complaints by “Newest to oldest,” “Oldest to newest,” “Most relevant,” and “Least relevant.”<br /><br />Relevancy are based on any applied search terms."},{element:pJ.STEP_13.selector,intro:"These are your search results. As you apply filters and search terms, your results will display here. This view shows a preview of the complaint."},{element:pJ.STEP_14.selector,intro:"Click the blue ID number to see more details about a particular complaint."}],p1={disableInteraction:!0,scrollToElement:!0,scrollTo:"tooltip",showStepNumbers:!1,exitOnOverlayClick:!1,exitOnEsc:!0,nextLabel:"Next",prevLabel:"Previous",doneLabel:"End Tour"},p2=()=>{let e,t=(0,v.c)(2),n=rE();return t[0]!==n?(e=(0,h.jsx)(tw,{label:"Take a tour",iconLeft:"help-round",className:"tour-button",onClick:()=>n(i5())}),t[0]=n,t[1]=e):e=t[1],e};function p3(e){return(p3="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})(e)}function p7(e,t,n,r){return new(n||(n=Promise))(function(a,o){function s(e){try{l(r.next(e))}catch(e){o(e)}}function i(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?a(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(s,i)}l((r=r.apply(e,t||[])).next())})}function p5(e,t){var n,r,a,o,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:i(0),throw:i(1),return:i(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function i(i){return function(l){var c=[i,l];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,c[0]&&(s=0)),s;)try{if(n=1,r&&(a=2&c[0]?r.return:c[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,c[1])).done)return a;switch(r=0,a&&(c=[2&c[0],a.value]),c[0]){case 0:case 1:a=c;break;case 4:return s.label++,{value:c[1],done:!1};case 5:s.label++,r=c[1],c=[0];continue;case 7:c=s.ops.pop(),s.trys.pop();continue;default:if(!(a=(a=s.trys).length>0&&a[a.length-1])&&(6===c[0]||2===c[0])){s=0;continue}if(3===c[0]&&(!a||c[1]>a[0]&&c[1]<a[3])){s.label=c[1];break}if(6===c[0]&&s.label<a[1]){s.label=a[1],a=c;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(c);break}a[2]&&s.ops.pop(),s.trys.pop();continue}c=t.call(e,s)}catch(e){c=[6,e],r=0}finally{n=a=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}function p4(e,t,n){var r,a=((r={})[e]=t,r.path="/",r.expires=void 0,r);if(n){var o=new Date;o.setTime(o.getTime()+24*n*36e5),a.expires=o.toUTCString()}var s=[];for(var i in a)s.push("".concat(i,"=").concat(a[i]));return document.cookie=s.join("; "),p6(e)}function p6(e){var t;return(t={},document.cookie.split(";").forEach(function(e){var n=e.split("="),r=n[0],a=n[1];t[r.trim()]=a}),t)[e]}"function"==typeof SuppressedError&&SuppressedError;var p9,p8,he,ht,hn=(ht={},function(e,t){return void 0===t&&(t="introjs-stamp"),ht[t]=ht[t]||0,void 0===e[t]&&(e[t]=ht[t]++),e[t]}),hr=new(function(){function e(){this.events_key="introjs_event"}return e.prototype._id=function(e,t,n){return e+hn(t)+(n?"_".concat(hn(n)):"")},e.prototype.on=function(e,t,n,r,a){var o=this._id(t,n,r),s=function(t){return n(r||e,t||window.event)};"addEventListener"in e?e.addEventListener(t,s,a):"attachEvent"in e&&e.attachEvent("on".concat(t),s),e[this.events_key]=e[this.events_key]||{},e[this.events_key][o]=s},e.prototype.off=function(e,t,n,r,a){var o=this._id(t,n,r),s=e[this.events_key]&&e[this.events_key][o];s&&("removeEventListener"in e?e.removeEventListener(t,s,a):"detachEvent"in e&&e.detachEvent("on".concat(t),s),e[this.events_key][o]=null)},e}()),ha=function(e){return"function"==typeof e};function ho(e,t){if(e instanceof SVGElement){var n=e.getAttribute("class")||"";n.match(t)||e.setAttribute("class","".concat(n," ").concat(t))}else if(void 0!==e.classList)for(var r=0,a=t.split(" ");r<a.length;r++){var o=a[r];e.classList.add(o)}else e.className.match(t)||(e.className+=" ".concat(t))}function hs(e,t){var n="";return"currentStyle"in e?n=e.currentStyle[t]:document.defaultView&&document.defaultView.getComputedStyle&&(n=document.defaultView.getComputedStyle(e,null).getPropertyValue(t)),n&&n.toLowerCase?n.toLowerCase():n}function hi(e,t){if(e){var n=function(e){var t=window.getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.body;for(var a=e;a=a.parentElement;)if(t=window.getComputedStyle(a),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return a;return document.body}(t);n!==document.body&&(n.scrollTop=t.offsetTop-n.offsetTop)}}function hl(){if(void 0!==window.innerWidth)return{width:window.innerWidth,height:window.innerHeight};var e=document.documentElement;return{width:e.clientWidth,height:e.clientHeight}}function hc(e,t,n,r,a){if("off"!==t&&e&&(o="tooltip"===t?a.getBoundingClientRect():r.getBoundingClientRect(),!((s=r.getBoundingClientRect()).top>=0&&s.left>=0&&s.bottom+80<=window.innerHeight&&s.right<=window.innerWidth))){var o,s,i=hl().height;o.bottom-(o.bottom-o.top)<0||r.clientHeight>i?window.scrollBy(0,o.top-(i/2-o.height/2)-n):window.scrollBy(0,o.top-(i/2-o.height/2)+n)}}function hu(e){e.setAttribute("role","button"),e.tabIndex=0}function hd(e){var t=e.parentElement;return!(!t||"HTML"===t.nodeName)&&("fixed"===hs(e,"position")||hd(t))}function hf(e,t){var n=document.body,r=document.documentElement,a=window.pageYOffset||r.scrollTop||n.scrollTop,o=window.pageXOffset||r.scrollLeft||n.scrollLeft;t=t||n;var s=e.getBoundingClientRect(),i=t.getBoundingClientRect(),l=hs(t,"position"),c={width:s.width,height:s.height};return"body"!==t.tagName.toLowerCase()&&"relative"===l||"sticky"===l?Object.assign(c,{top:s.top-i.top,left:s.left-i.left}):hd(e)?Object.assign(c,{top:s.top,left:s.left}):Object.assign(c,{top:s.top+a,left:s.left+o})}function hp(e,t){if(e instanceof SVGElement){var n=e.getAttribute("class")||"";e.setAttribute("class",n.replace(t,"").replace(/^\s+|\s+$/g,""))}else e.className=e.className.replace(t,"").replace(/^\s+|\s+$/g,"")}function hh(e,t){var n="";if(e.style.cssText&&(n+=e.style.cssText),"string"==typeof t)n+=t;else for(var r in t)n+="".concat(r,":").concat(t[r],";");e.style.cssText=n}function hm(e,t,n){if(n&&t){var r=hf(t.element,e._targetElement),a=e._options.helperElementPadding;t.element instanceof Element&&hd(t.element)?ho(n,"introjs-fixedTooltip"):hp(n,"introjs-fixedTooltip"),"floating"===t.position&&(a=0),hh(n,{width:"".concat(r.width+a,"px"),height:"".concat(r.height+a,"px"),top:"".concat(r.top-a/2,"px"),left:"".concat(r.left-a/2,"px")})}}function hv(e,t,n,r,a){return e.left+t+n.width>r.width?(a.style.left="".concat(r.width-n.width-e.left,"px"),!1):(a.style.left="".concat(t,"px"),!0)}function hg(e,t,n,r){return e.left+e.width-t-n.width<0?(r.style.left="".concat(-e.left,"px"),!1):(r.style.right="".concat(t,"px"),!0)}function hb(e,t){e.includes(t)&&e.splice(e.indexOf(t),1)}function hy(e,t,n,r,a){if(void 0===a&&(a=!1),t){n.style.top="",n.style.right="",n.style.bottom="",n.style.left="",n.style.marginLeft="",n.style.marginTop="",r.style.display="inherit",n.className=["introjs-tooltip","string"==typeof t.tooltipClass?t.tooltipClass:e._options.tooltipClass].filter(Boolean).join(" "),n.setAttribute("role","dialog"),"floating"!==(l=t.position)&&e._options.autoPosition&&(l=function(e,t,n,r){var a=e.slice(),o=hl(),s=hf(n).height+10,i=hf(n).width+20,l=t.getBoundingClientRect(),c="floating";if(l.bottom+s>o.height&&hb(a,"bottom"),l.top-s<0&&hb(a,"top"),l.right+i>o.width&&hb(a,"right"),l.left-i<0&&hb(a,"left"),r&&(r=r.split("-")[0]),a.length&&(c=a[0],a.includes(r)&&(c=r)),"top"===c||"bottom"===c){var u,d,f,p,h,m=void 0,v=[];"top"===c?(m="top-middle-aligned",v=["top-left-aligned","top-middle-aligned","top-right-aligned"]):(m="bottom-middle-aligned",v=["bottom-left-aligned","bottom-middle-aligned","bottom-right-aligned"]),u=l.left,d=o.width,f=v,p=i/2,(h=Math.min(d,window.screen.width))-u<i&&(hb(f,"top-left-aligned"),hb(f,"bottom-left-aligned")),(u<p||h-u<p)&&(hb(f,"top-middle-aligned"),hb(f,"bottom-middle-aligned")),u<i&&(hb(f,"top-right-aligned"),hb(f,"bottom-right-aligned")),c=(f.length?f[0]:null)||m}return c}(e._options.positionPrecedence,t.element,n,l)),s=hf(t.element),o=hf(n),i=hl(),ho(n,"introjs-".concat(l));var o,s,i,l,c=s.width/2-o.width/2;switch(l){case"top-right-aligned":r.className="introjs-arrow bottom-right";hg(s,0,o,n),n.style.bottom="".concat(s.height+20,"px");break;case"top-middle-aligned":r.className="introjs-arrow bottom-middle",a&&(c+=5),hg(s,c,o,n)&&(n.style.right="",hv(s,c,o,i,n)),n.style.bottom="".concat(s.height+20,"px");break;case"top-left-aligned":case"top":r.className="introjs-arrow bottom",hv(s,15*!a,o,i,n),n.style.bottom="".concat(s.height+20,"px");break;case"right":n.style.left="".concat(s.width+20,"px"),s.top+o.height>i.height?(r.className="introjs-arrow left-bottom",n.style.top="-".concat(o.height-s.height-20,"px")):r.className="introjs-arrow left";break;case"left":a||!0!==e._options.showStepNumbers||(n.style.top="15px"),s.top+o.height>i.height?(n.style.top="-".concat(o.height-s.height-20,"px"),r.className="introjs-arrow right-bottom"):r.className="introjs-arrow right",n.style.right="".concat(s.width+20,"px");break;case"floating":r.style.display="none",n.style.left="50%",n.style.top="50%",n.style.marginLeft="-".concat(o.width/2,"px"),n.style.marginTop="-".concat(o.height/2,"px");break;case"bottom-right-aligned":r.className="introjs-arrow top-right",hg(s,0,o,n),n.style.top="".concat(s.height+20,"px");break;case"bottom-middle-aligned":r.className="introjs-arrow top-middle",a&&(c+=5),hg(s,c,o,n)&&(n.style.right="",hv(s,c,o,i,n)),n.style.top="".concat(s.height+20,"px");break;default:r.className="introjs-arrow top",hv(s,0,o,i,n),n.style.top="".concat(s.height+20,"px")}}}function hw(){for(var e=0,t=Array.from(document.querySelectorAll(".introjs-showElement"));e<t.length;e++)hp(t[e],/introjs-[a-zA-Z]+/g)}function hx(e,t){var n=document.createElement(e),r=/^(?:role|data-|aria-)/;for(var a in t=t||{}){var o=t[a];"style"===a&&"function"!=typeof o?hh(n,o):"string"==typeof o&&a.match(r)?n.setAttribute(a,o):n[a]=o}return n}function hS(e,t,n){if(void 0===n&&(n=!1),n){var r=t.style.opacity||"1";hh(t,{opacity:"0"}),window.setTimeout(function(){hh(t,{opacity:r})},10)}e.appendChild(t)}function hk(e,t){var n=hx("div",{className:"introjs-bullets"});!1===e._options.showBullets&&(n.style.display="none");var r=hx("ul");r.setAttribute("role","tablist");for(var a=function(){var t=this.getAttribute("data-step-number");null!=t&&e.goToStep(parseInt(t,10))},o=0;o<e._introItems.length;o++){var s=e._introItems[o].step,i=hx("li"),l=hx("a");i.setAttribute("role","presentation"),l.setAttribute("role","tab"),l.onclick=a,o===t.step-1&&(l.className="active"),hu(l),l.innerHTML=" ",l.setAttribute("data-step-number",s.toString()),i.appendChild(l),r.appendChild(i)}return n.appendChild(r),n}function h_(e,t,n){var r=e.querySelector(".introjs-progress .introjs-progressbar");if(r){var a=(t+1)/n*100;r.style.cssText="width:".concat(a,"%;"),r.setAttribute("aria-valuenow",a.toString())}}function hE(e,t){return p7(this,void 0,void 0,function(){var n,r,a,o,s,i,l,c,u,d,f,p,h,m,v,g,b,y,w,x,S,k,_,E,j=this;return p5(this,function(C){switch(C.label){case 0:return ha(e._introChangeCallback)?[4,e._introChangeCallback.call(e,t.element)]:[3,2];case 1:C.sent(),C.label=2;case 2:var P,N,O,T,A,M;return n=document.querySelector(".introjs-helperLayer"),r=document.querySelector(".introjs-tooltipReferenceLayer"),a="introjs-helperLayer","string"==typeof t.highlightClass&&(a+=" ".concat(t.highlightClass)),"string"==typeof e._options.highlightClass&&(a+=" ".concat(e._options.highlightClass)),null!==n&&null!==r?(l=r.querySelector(".introjs-helperNumberLayer"),c=r.querySelector(".introjs-tooltiptext"),u=r.querySelector(".introjs-tooltip-title"),d=r.querySelector(".introjs-arrow"),f=r.querySelector(".introjs-tooltip"),i=r.querySelector(".introjs-skipbutton"),s=r.querySelector(".introjs-prevbutton"),o=r.querySelector(".introjs-nextbutton"),n.className=a,f.style.opacity="0",f.style.display="none",hi(e._options.scrollToElement,t.element),hm(e,t,n),hm(e,t,r),hw(),e._lastShowElementTimer&&window.clearTimeout(e._lastShowElementTimer),e._lastShowElementTimer=window.setTimeout(function(){null!==l&&(l.innerHTML="".concat(t.step," ").concat(e._options.stepNumbersOfLabel," ").concat(e._introItems.length)),c.innerHTML=t.intro||"",u.innerHTML=t.title||"",f.style.display="block",hy(e,t,f,d),function(e,t,n){if(e){var r=t.querySelector(".introjs-bullets li > a.active"),a=t.querySelector('.introjs-bullets li > a[data-step-number="'.concat(n.step,'"]'));r&&a&&(r.className="",a.className="active")}}(e._options.showBullets,r,t),h_(r,e._currentStep,e._introItems.length),f.style.opacity="1",(null!=o&&/introjs-donebutton/gi.test(o.className)||null!=o)&&o.focus(),hc(e._options.scrollToElement,t.scrollTo,e._options.scrollPadding,t.element,c)},350)):(p=hx("div",{className:a}),h=hx("div",{className:"introjs-tooltipReferenceLayer"}),m=hx("div",{className:"introjs-arrow"}),v=hx("div",{className:"introjs-tooltip"}),g=hx("div",{className:"introjs-tooltiptext"}),b=hx("div",{className:"introjs-tooltip-header"}),y=hx("h1",{className:"introjs-tooltip-title"}),w=hx("div"),hh(p,{"box-shadow":"0 0 1px 2px rgba(33, 33, 33, 0.8), rgba(33, 33, 33, ".concat(e._options.overlayOpacity.toString(),") 0 0 0 5000px")}),hi(e._options.scrollToElement,t.element),hm(e,t,p),hm(e,t,h),hS(e._targetElement,p,!0),hS(e._targetElement,h),g.innerHTML=t.intro,y.innerHTML=t.title,w.className="introjs-tooltipbuttons",!1===e._options.showButtons&&(w.style.display="none"),b.appendChild(y),v.appendChild(b),v.appendChild(g),e._options.dontShowAgain&&(x=hx("div",{className:"introjs-dontShowAgain"}),(S=hx("input",{type:"checkbox",id:"introjs-dontShowAgain",name:"introjs-dontShowAgain"})).onchange=function(t){e.setDontShowAgain(t.target.checked)},(k=hx("label",{htmlFor:"introjs-dontShowAgain"})).innerText=e._options.dontShowAgainLabel,x.appendChild(S),x.appendChild(k),v.appendChild(x)),v.appendChild(hk(e,t)),v.appendChild(((P=hx("div")).className="introjs-progress",!1===e._options.showProgress&&(P.style.display="none"),N=hx("div",{className:"introjs-progressbar"}),e._options.progressBarAdditionalClass&&(N.className+=" "+e._options.progressBarAdditionalClass),O=(e._currentStep+1)/e._introItems.length*100,N.setAttribute("role","progress"),N.setAttribute("aria-valuemin","0"),N.setAttribute("aria-valuemax","100"),N.setAttribute("aria-valuenow",O.toString()),N.style.cssText="width:".concat(O,"%;"),P.appendChild(N),P)),_=hx("div"),!0===e._options.showStepNumbers&&(_.className="introjs-helperNumberLayer",_.innerHTML="".concat(t.step," ").concat(e._options.stepNumbersOfLabel," ").concat(e._introItems.length),v.appendChild(_)),v.appendChild(m),h.appendChild(v),(o=hx("a")).onclick=function(){return p7(j,void 0,void 0,function(){return p5(this,function(t){switch(t.label){case 0:return e._introItems.length-1===e._currentStep?[3,2]:[4,hj(e)];case 1:return t.sent(),[3,6];case 2:return/introjs-donebutton/gi.test(o.className)?ha(e._introCompleteCallback)?[4,e._introCompleteCallback.call(e,e._currentStep,"done")]:[3,4]:[3,6];case 3:t.sent(),t.label=4;case 4:return[4,hV(e,e._targetElement)];case 5:t.sent(),t.label=6;case 6:return[2]}})})},hu(o),o.innerHTML=e._options.nextLabel,(s=hx("a")).onclick=function(){return p7(j,void 0,void 0,function(){return p5(this,function(t){switch(t.label){case 0:return e._currentStep>0?[4,hC(e)]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}})})},hu(s),s.innerHTML=e._options.prevLabel,hu(i=hx("a",{className:"introjs-skipbutton"})),i.innerHTML=e._options.skipLabel,i.onclick=function(){return p7(j,void 0,void 0,function(){return p5(this,function(t){switch(t.label){case 0:return e._introItems.length-1===e._currentStep&&ha(e._introCompleteCallback)?[4,e._introCompleteCallback.call(e,e._currentStep,"skip")]:[3,2];case 1:t.sent(),t.label=2;case 2:return ha(e._introSkipCallback)?[4,e._introSkipCallback.call(e,e._currentStep)]:[3,4];case 3:t.sent(),t.label=4;case 4:return[4,hV(e,e._targetElement)];case 5:return t.sent(),[2]}})})},b.appendChild(i),e._introItems.length>1&&w.appendChild(s),w.appendChild(o),v.appendChild(w),hy(e,t,v,m),hc(e._options.scrollToElement,t.scrollTo,e._options.scrollPadding,t.element,v)),(E=e._targetElement.querySelector(".introjs-disableInteraction"))&&E.parentNode&&E.parentNode.removeChild(E),t.disableInteraction&&(null===(T=document.querySelector(".introjs-disableInteraction"))&&(T=hx("div",{className:"introjs-disableInteraction"}),e._targetElement.appendChild(T)),hm(e,t,T)),0===e._currentStep&&e._introItems.length>1?(null!=o&&(o.className="".concat(e._options.buttonClass," introjs-nextbutton"),o.innerHTML=e._options.nextLabel),!0===e._options.hidePrev?(null!=s&&(s.className="".concat(e._options.buttonClass," introjs-prevbutton introjs-hidden")),null!=o&&ho(o,"introjs-fullbutton")):null!=s&&(s.className="".concat(e._options.buttonClass," introjs-prevbutton introjs-disabled"))):e._introItems.length-1===e._currentStep||1===e._introItems.length?(null!=s&&(s.className="".concat(e._options.buttonClass," introjs-prevbutton")),!0===e._options.hideNext?(null!=o&&(o.className="".concat(e._options.buttonClass," introjs-nextbutton introjs-hidden")),null!=s&&ho(s,"introjs-fullbutton")):null!=o&&(!0===e._options.nextToDone?(o.innerHTML=e._options.doneLabel,ho(o,"".concat(e._options.buttonClass," introjs-nextbutton introjs-donebutton"))):o.className="".concat(e._options.buttonClass," introjs-nextbutton introjs-disabled"))):(null!=s&&(s.className="".concat(e._options.buttonClass," introjs-prevbutton")),null!=o&&(o.className="".concat(e._options.buttonClass," introjs-nextbutton"),o.innerHTML=e._options.nextLabel)),null!=s&&s.setAttribute("role","button"),null!=o&&o.setAttribute("role","button"),null!=i&&i.setAttribute("role","button"),null!=o&&o.focus(),ho(A=t.element,"introjs-showElement"),"absolute"!==(M=hs(A,"position"))&&"relative"!==M&&"sticky"!==M&&"fixed"!==M&&ho(A,"introjs-relativePosition"),ha(e._introAfterChangeCallback)?[4,e._introAfterChangeCallback.call(e,t.element)]:[3,4];case 3:C.sent(),C.label=4;case 4:return[2]}})})}function hj(e){return p7(this,void 0,void 0,function(){var t,n,r;return p5(this,function(a){switch(a.label){case 0:if(e._direction="forward",void 0!==e._currentStepNumber)for(t=0;t<e._introItems.length;t++)e._introItems[t].step===e._currentStepNumber&&(e._currentStep=t-1,e._currentStepNumber=void 0);return -1===e._currentStep?e._currentStep=0:++e._currentStep,n=e._introItems[e._currentStep],r=!0,ha(e._introBeforeChangeCallback)?[4,e._introBeforeChangeCallback.call(e,n&&n.element,e._currentStep,e._direction)]:[3,2];case 1:r=a.sent(),a.label=2;case 2:return!1===r?(--e._currentStep,[2,!1]):e._introItems.length<=e._currentStep?ha(e._introCompleteCallback)?[4,e._introCompleteCallback.call(e,e._currentStep,"end")]:[3,4]:[3,6];case 3:a.sent(),a.label=4;case 4:return[4,hV(e,e._targetElement)];case 5:return a.sent(),[2,!1];case 6:return[4,hE(e,n)];case 7:return a.sent(),[2,!0]}})})}function hC(e){return p7(this,void 0,void 0,function(){var t,n;return p5(this,function(r){switch(r.label){case 0:return e._direction="backward",e._currentStep<=0?[2,!1]:(--e._currentStep,t=e._introItems[e._currentStep],n=!0,ha(e._introBeforeChangeCallback)?[4,e._introBeforeChangeCallback.call(e,t&&t.element,e._currentStep,e._direction)]:[3,2]);case 1:n=r.sent(),r.label=2;case 2:return!1===n?(++e._currentStep,[2,!1]):[4,hE(e,t)];case 3:return r.sent(),[2,!0]}})})}function hP(e,t){return p7(this,void 0,void 0,function(){var n,r;return p5(this,function(a){switch(a.label){case 0:return null===(n=void 0===t.code?t.which:t.code)&&(n=null===t.charCode?t.keyCode:t.charCode),"Escape"!==n&&27!==n||!0!==e._options.exitOnEsc?[3,2]:[4,hV(e,e._targetElement)];case 1:case 3:case 5:return a.sent(),[3,16];case 2:return"ArrowLeft"!==n&&37!==n?[3,4]:[4,hC(e)];case 4:return"ArrowRight"!==n&&39!==n?[3,6]:[4,hj(e)];case 6:return"Enter"!==n&&"NumpadEnter"!==n&&13!==n?[3,16]:(r=t.target||t.srcElement)&&r.className.match("introjs-prevbutton")?[4,hC(e)]:[3,8];case 7:return a.sent(),[3,15];case 8:return r&&r.className.match("introjs-skipbutton")?e._introItems.length-1===e._currentStep&&ha(e._introCompleteCallback)?[4,e._introCompleteCallback.call(e,e._currentStep,"skip")]:[3,10]:[3,12];case 9:a.sent(),a.label=10;case 10:return[4,hV(e,e._targetElement)];case 11:return a.sent(),[3,15];case 12:return r&&r.getAttribute("data-step-number")?(r.click(),[3,15]):[3,13];case 13:return[4,hj(e)];case 14:a.sent(),a.label=15;case 15:t.preventDefault?t.preventDefault():t.returnValue=!1,a.label=16;case 16:return[2]}})})}function hN(e){if(null===e||"object"!==p3(e)||"nodeType"in e)return e;var t={};for(var n in e)"jQuery"in window&&e[n]instanceof window.jQuery?t[n]=e[n]:t[n]=hN(e[n]);return t}function hO(e){var t=document.querySelector(".introjs-hints");return t?Array.from(t.querySelectorAll(e)):[]}function hT(e,t){return p7(this,void 0,void 0,function(){var n;return p5(this,function(r){switch(r.label){case 0:return n=hO('.introjs-hint[data-step="'.concat(t,'"]'))[0],hL(),n&&ho(n,"introjs-hidehint"),ha(e._hintCloseCallback)?[4,e._hintCloseCallback.call(e,t)]:[3,2];case 1:r.sent(),r.label=2;case 2:return[2]}})})}function hA(e){var t=hO('.introjs-hint[data-step="'.concat(e,'"]'))[0];t&&hp(t,/introjs-hidehint/g)}function hM(e){var t=hO('.introjs-hint[data-step="'.concat(e,'"]'))[0];t&&t.parentNode&&t.parentNode.removeChild(t)}function hR(e,t,n){if(void 0!==n){var r=hf(n);switch(e){default:case"top-left":t.style.left="".concat(r.left,"px"),t.style.top="".concat(r.top,"px");break;case"top-right":t.style.left="".concat(r.left+r.width-20,"px"),t.style.top="".concat(r.top,"px");break;case"bottom-left":t.style.left="".concat(r.left,"px"),t.style.top="".concat(r.top+r.height-20,"px");break;case"bottom-right":t.style.left="".concat(r.left+r.width-20,"px"),t.style.top="".concat(r.top+r.height-20,"px");break;case"middle-left":t.style.left="".concat(r.left,"px"),t.style.top="".concat(r.top+(r.height-20)/2,"px");break;case"middle-right":t.style.left="".concat(r.left+r.width-20,"px"),t.style.top="".concat(r.top+(r.height-20)/2,"px");break;case"middle-middle":t.style.left="".concat(r.left+(r.width-20)/2,"px"),t.style.top="".concat(r.top+(r.height-20)/2,"px");break;case"bottom-middle":t.style.left="".concat(r.left+(r.width-20)/2,"px"),t.style.top="".concat(r.top+r.height-20,"px");break;case"top-middle":t.style.left="".concat(r.left+(r.width-20)/2,"px"),t.style.top="".concat(r.top,"px")}}}function hz(e,t){return p7(this,void 0,void 0,function(){var n,r,a,o,s,i,l,c,u,d,f;return p5(this,function(p){switch(p.label){case 0:return n=document.querySelector('.introjs-hint[data-step="'.concat(t,'"]')),r=e._hintItems[t],ha(e._hintClickCallback)?[4,e._hintClickCallback.call(e,n,r,t)]:[3,2];case 1:p.sent(),p.label=2;case 2:return void 0!==(a=hL())&&parseInt(a,10)===t||(o=hx("div",{className:"introjs-tooltip"}),s=hx("div"),i=hx("div"),l=hx("div"),o.onclick=function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0},s.className="introjs-tooltiptext",(c=hx("p")).innerHTML=r.hint||"",s.appendChild(c),e._options.hintShowButton&&((u=hx("a")).className=e._options.buttonClass,u.setAttribute("role","button"),u.innerHTML=e._options.hintButtonLabel,u.onclick=function(){return hT(e,t)},s.appendChild(u)),i.className="introjs-arrow",o.appendChild(i),o.appendChild(s),e._currentStep=parseInt(d=n.getAttribute("data-step")||"",10),f=e._hintItems[e._currentStep],l.className="introjs-tooltipReferenceLayer introjs-hintReference",l.setAttribute("data-step",d),hm(e,f,l),l.appendChild(o),document.body.appendChild(l),hy(e,f,o,i,!0)),[2]}})})}function hL(){var e=document.querySelector(".introjs-hintReference");if(e&&e.parentNode){var t=e.getAttribute("data-step");if(!t)return;return e.parentNode.removeChild(e),t}}function hI(e,t){return p7(this,void 0,void 0,function(){var n,r,a,o,s,i,l,c,u;return p5(this,function(d){switch(d.label){case 0:if(e._hintItems=[],e._options.hints&&e._options.hints.length>0)for(n=0,r=e._options.hints;n<r.length;n++)"string"==typeof(a=hN(r[n])).element&&(a.element=document.querySelector(a.element)),a.hintPosition=a.hintPosition||e._options.hintPosition,a.hintAnimation=a.hintAnimation||e._options.hintAnimation,null!==a.element&&e._hintItems.push(a);else{if(!(o=Array.from(t.querySelectorAll("*[data-hint]")))||!o.length)return[2,!1];for(s=0,i=o;s<i.length;s++)c=(l=i[s]).getAttribute("data-hint-animation"),u=e._options.hintAnimation,c&&(u="true"===c),e._hintItems.push({element:l,hint:l.getAttribute("data-hint")||"",hintPosition:l.getAttribute("data-hint-position")||e._options.hintPosition,hintAnimation:u,tooltipClass:l.getAttribute("data-tooltip-class")||void 0,position:l.getAttribute("data-position")||e._options.tooltipPosition})}return[4,function(e){return p7(this,void 0,void 0,function(){var t,n,r,a,o,s,i;return p5(this,function(l){var c,u,d;switch(l.label){case 0:for(null===(t=document.querySelector(".introjs-hints"))&&(t=hx("div",{className:"introjs-hints"})),n=function(t){return function(n){var r=n||window.event;r&&r.stopPropagation&&r.stopPropagation(),r&&null!==r.cancelBubble&&(r.cancelBubble=!0),hz(e,t)}},r=0;r<e._hintItems.length;r++){if(a=e._hintItems[r],document.querySelector('.introjs-hint[data-step="'.concat(r,'"]')))return[2];hu(o=hx("a",{className:"introjs-hint"})),o.onclick=n(r),a.hintAnimation||ho(o,"introjs-hint-no-anim"),hd(a.element)&&ho(o,"introjs-fixedhint"),s=hx("div",{className:"introjs-hint-dot"}),i=hx("div",{className:"introjs-hint-pulse"}),o.appendChild(s),o.appendChild(i),o.setAttribute("data-step",r.toString()),a.hintTargetElement=a.element,a.element=o,hR(a.hintPosition,o,a.hintTargetElement),t.appendChild(o)}return document.body.appendChild(t),ha(e._hintsAddedCallback)?[4,e._hintsAddedCallback.call(e)]:[3,2];case 1:l.sent(),l.label=2;case 2:return e._options.hintAutoRefreshInterval>=0&&(c=function(){return hD(e)},u=e._options.hintAutoRefreshInterval,e._hintsAutoRefreshFunction=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];window.clearTimeout(d),d=window.setTimeout(function(){c()},u)},hr.on(window,"scroll",e._hintsAutoRefreshFunction,e,!0)),[2]}})})}(e)];case 1:return d.sent(),hr.on(document,"click",hL,e,!1),hr.on(window,"resize",hD,e,!0),[2,!0]}})})}function hD(e){for(var t=0,n=e._hintItems;t<n.length;t++){var r=n[t],a=r.hintTargetElement;hR(r.hintPosition,r.element,a)}}function hH(e,t){var n=Array.from(t.querySelectorAll("*[data-intro]")),r=[];if(e._options.steps&&e._options.steps.length)for(var a=0,o=e._options.steps;a<o.length;a++){var s=hN(d=o[a]);if(s.step=r.length+1,s.title=s.title||"","string"==typeof s.element&&(s.element=document.querySelector(s.element)||void 0),void 0===s.element||null===s.element){var i=document.querySelector(".introjsFloatingElement");null===i&&(i=hx("div",{className:"introjsFloatingElement"}),document.body.appendChild(i)),s.element=i,s.position="floating"}s.position=s.position||e._options.tooltipPosition,s.scrollTo=s.scrollTo||e._options.scrollTo,void 0===s.disableInteraction&&(s.disableInteraction=e._options.disableInteraction),null!==s.element&&r.push(s)}else{var l=void 0;if(n.length<1)return[];for(var c=0;c<n.length;c++){var u=n[c];if((!e._options.group||u.getAttribute("data-intro-group")===e._options.group)&&"none"!==u.style.display){var d=parseInt(u.getAttribute("data-step")||"",10);l=e._options.disableInteraction,u.hasAttribute("data-disable-interaction")&&(l=!!u.getAttribute("data-disable-interaction")),d>0&&(r[d-1]={step:d,element:u,title:u.getAttribute("data-title")||"",intro:u.getAttribute("data-intro")||"",tooltipClass:u.getAttribute("data-tooltip-class")||void 0,highlightClass:u.getAttribute("data-highlight-class")||void 0,position:u.getAttribute("data-position")||e._options.tooltipPosition,scrollTo:u.getAttribute("data-scroll-to")||e._options.scrollTo,disableInteraction:l})}}for(var f=0,p=0;p<n.length;p++)if(u=n[p],(!e._options.group||u.getAttribute("data-intro-group")===e._options.group)&&null===u.getAttribute("data-step")){for(;void 0!==r[f];)f++;l=u.hasAttribute("data-disable-interaction")?!!u.getAttribute("data-disable-interaction"):e._options.disableInteraction,r[f]={element:u,title:u.getAttribute("data-title")||"",intro:u.getAttribute("data-intro")||"",step:f+1,tooltipClass:u.getAttribute("data-tooltip-class")||void 0,highlightClass:u.getAttribute("data-highlight-class")||void 0,position:u.getAttribute("data-position")||e._options.tooltipPosition,scrollTo:u.getAttribute("data-scroll-to")||e._options.scrollTo,disableInteraction:l}}}for(var h=[],m=0;m<r.length;m++)r[m]&&h.push(r[m]);return(r=h).sort(function(e,t){return e.step-t.step}),r}function hF(e,t){var n=e._currentStep;if(null!=n&&-1!=n){var r=e._introItems[n],a=document.querySelector(".introjs-tooltipReferenceLayer"),o=document.querySelector(".introjs-helperLayer"),s=document.querySelector(".introjs-disableInteraction");hm(e,r,o),hm(e,r,a),hm(e,r,s),t&&(e._introItems=hH(e,e._targetElement),function(e,t){if(e._options.showBullets){var n=document.querySelector(".introjs-bullets");n&&n.parentNode&&n.parentNode.replaceChild(hk(e,t),n)}}(e,r),h_(a,n,e._introItems.length));var i=document.querySelector(".introjs-arrow"),l=document.querySelector(".introjs-tooltip");return l&&i&&hy(e,e._introItems[n],l,i),hD(e),e}}function hB(e){hF(e)}function h$(e,t){if(void 0===t&&(t=!1),e&&e.parentElement){var n=e.parentElement;t?(hh(e,{opacity:"0"}),window.setTimeout(function(){try{n.removeChild(e)}catch(e){}},500)):n.removeChild(e)}}function hV(e,t,n){return void 0===n&&(n=!1),p7(this,void 0,void 0,function(){var r,a,o,s;return p5(this,function(i){switch(i.label){case 0:return r=!0,void 0===e._introBeforeExitCallback?[3,2]:[4,e._introBeforeExitCallback.call(e,t)];case 1:r=i.sent(),i.label=2;case 2:if(!n&&!1===r)return[2];if((a=Array.from(t.querySelectorAll(".introjs-overlay")))&&a.length)for(o=0,s=a;o<s.length;o++)h$(s[o]);return h$(t.querySelector(".introjs-helperLayer"),!0),h$(t.querySelector(".introjs-tooltipReferenceLayer")),h$(t.querySelector(".introjs-disableInteraction")),h$(document.querySelector(".introjsFloatingElement")),hw(),hr.off(window,"keydown",hP,e,!0),hr.off(window,"resize",hB,e,!0),ha(e._introExitCallback)?[4,e._introExitCallback.call(e)]:[3,4];case 3:i.sent(),i.label=4;case 4:return e._currentStep=-1,[2]}})})}var hq=function(){function e(e){this._currentStep=-1,this._introItems=[],this._hintItems=[],this._targetElement=e,this._options={steps:[],hints:[],isActive:!0,nextLabel:"Next",prevLabel:"Back",skipLabel:"×",doneLabel:"Done",hidePrev:!1,hideNext:!1,nextToDone:!0,tooltipPosition:"bottom",tooltipClass:"",group:"",highlightClass:"",exitOnEsc:!0,exitOnOverlayClick:!0,showStepNumbers:!1,stepNumbersOfLabel:"of",keyboardNavigation:!0,showButtons:!0,showBullets:!0,showProgress:!1,scrollToElement:!0,scrollTo:"element",scrollPadding:30,overlayOpacity:.5,autoPosition:!0,positionPrecedence:["bottom","top","right","left"],disableInteraction:!1,dontShowAgain:!1,dontShowAgainLabel:"Don't show this again",dontShowAgainCookie:"introjs-dontShowAgain",dontShowAgainCookieDays:365,helperElementPadding:10,hintPosition:"top-middle",hintButtonLabel:"Got it",hintShowButton:!0,hintAutoRefreshInterval:10,hintAnimation:!0,buttonClass:"introjs-button",progressBarAdditionalClass:!1}}return e.prototype.isActive=function(){var e;return(!this._options.dontShowAgain||""===(e=p6(this._options.dontShowAgainCookie))||"true"!==e)&&this._options.isActive},e.prototype.clone=function(){return new e(this._targetElement)},e.prototype.setOption=function(e,t){var n;return this._options=(n=this._options,n[e]=t,n),this},e.prototype.setOptions=function(e){return this._options=function(e,t){for(var n=0,r=Object.entries(t);n<r.length;n++){var a,o,s,i=r[n];a=e,o=i[0],s=i[1],a[o]=s,e=a}return e}(this._options,e),this},e.prototype.start=function(){return p7(this,void 0,void 0,function(){return p5(this,function(e){switch(e.label){case 0:return[4,function(e,t){return p7(this,void 0,void 0,function(){var n;return p5(this,function(r){switch(r.label){case 0:return e.isActive()?ha(e._introStartCallback)?[4,e._introStartCallback.call(e,t)]:[3,2]:[2,!1];case 1:r.sent(),r.label=2;case 2:return 0===(n=hH(e,t)).length?[2,!1]:(e._introItems=n,function(e,t){var n=this,r=hx("div",{className:"introjs-overlay"});hh(r,{top:0,bottom:0,left:0,right:0,position:"fixed"}),t.appendChild(r),!0===e._options.exitOnOverlayClick&&(hh(r,{cursor:"pointer"}),r.onclick=function(){return p7(n,void 0,void 0,function(){return p5(this,function(n){switch(n.label){case 0:return[4,hV(e,t)];case 1:return n.sent(),[2]}})})})}(e,t),[4,hj(e)]);case 3:r.sent(),t.addEventListener,e._options.keyboardNavigation&&hr.on(window,"keydown",hP,e,!0),hr.on(window,"resize",hB,e,!0),r.label=4;case 4:return[2,!1]}})})}(this,this._targetElement)];case 1:return e.sent(),[2,this]}})})},e.prototype.goToStep=function(e){return p7(this,void 0,void 0,function(){return p5(this,function(t){switch(t.label){case 0:return[4,function(e,t){return p7(this,void 0,void 0,function(){return p5(this,function(n){switch(n.label){case 0:return e._currentStep=t-2,void 0===e._introItems?[3,2]:[4,hj(e)];case 1:n.sent(),n.label=2;case 2:return[2]}})})}(this,e)];case 1:return t.sent(),[2,this]}})})},e.prototype.addStep=function(e){return this._options.steps||(this._options.steps=[]),this._options.steps.push(e),this},e.prototype.addSteps=function(e){if(!e.length)return this;for(var t=0;t<e.length;t++)this.addStep(e[t]);return this},e.prototype.goToStepNumber=function(e){return p7(this,void 0,void 0,function(){return p5(this,function(t){switch(t.label){case 0:return[4,function(e,t){return p7(this,void 0,void 0,function(){return p5(this,function(n){switch(n.label){case 0:return e._currentStepNumber=t,void 0===e._introItems?[3,2]:[4,hj(e)];case 1:n.sent(),n.label=2;case 2:return[2]}})})}(this,e)];case 1:return t.sent(),[2,this]}})})},e.prototype.nextStep=function(){return p7(this,void 0,void 0,function(){return p5(this,function(e){switch(e.label){case 0:return[4,hj(this)];case 1:return e.sent(),[2,this]}})})},e.prototype.previousStep=function(){return p7(this,void 0,void 0,function(){return p5(this,function(e){switch(e.label){case 0:return[4,hC(this)];case 1:return e.sent(),[2,this]}})})},e.prototype.currentStep=function(){return this._currentStep},e.prototype.exit=function(e){return p7(this,void 0,void 0,function(){return p5(this,function(t){switch(t.label){case 0:return[4,hV(this,this._targetElement,e)];case 1:return t.sent(),[2,this]}})})},e.prototype.refresh=function(e){return hF(this,e),this},e.prototype.setDontShowAgain=function(e){return e?p4(this._options.dontShowAgainCookie,"true",this._options.dontShowAgainCookieDays):p4(this._options.dontShowAgainCookie,"",-1),this},e.prototype.onbeforechange=function(e){if(!ha(e))throw Error("Provided callback for onbeforechange was not a function");return this._introBeforeChangeCallback=e,this},e.prototype.onchange=function(e){if(!ha(e))throw Error("Provided callback for onchange was not a function.");return this._introChangeCallback=e,this},e.prototype.onafterchange=function(e){if(!ha(e))throw Error("Provided callback for onafterchange was not a function");return this._introAfterChangeCallback=e,this},e.prototype.oncomplete=function(e){if(!ha(e))throw Error("Provided callback for oncomplete was not a function.");return this._introCompleteCallback=e,this},e.prototype.onhintsadded=function(e){if(!ha(e))throw Error("Provided callback for onhintsadded was not a function.");return this._hintsAddedCallback=e,this},e.prototype.onhintclick=function(e){if(!ha(e))throw Error("Provided callback for onhintclick was not a function.");return this._hintClickCallback=e,this},e.prototype.onhintclose=function(e){if(!ha(e))throw Error("Provided callback for onhintclose was not a function.");return this._hintCloseCallback=e,this},e.prototype.onstart=function(e){if(!ha(e))throw Error("Provided callback for onstart was not a function.");return this._introStartCallback=e,this},e.prototype.onexit=function(e){if(!ha(e))throw Error("Provided callback for onexit was not a function.");return this._introExitCallback=e,this},e.prototype.onskip=function(e){if(!ha(e))throw Error("Provided callback for onskip was not a function.");return this._introSkipCallback=e,this},e.prototype.onbeforeexit=function(e){if(!ha(e))throw Error("Provided callback for onbeforeexit was not a function.");return this._introBeforeExitCallback=e,this},e.prototype.addHints=function(){return p7(this,void 0,void 0,function(){return p5(this,function(e){switch(e.label){case 0:return[4,hI(this,this._targetElement)];case 1:return e.sent(),[2,this]}})})},e.prototype.hideHint=function(e){return p7(this,void 0,void 0,function(){return p5(this,function(t){switch(t.label){case 0:return[4,hT(this,e)];case 1:return t.sent(),[2,this]}})})},e.prototype.hideHints=function(){return p7(this,void 0,void 0,function(){return p5(this,function(e){switch(e.label){case 0:return[4,function(e){return p7(this,void 0,void 0,function(){var t,n,r,a;return p5(this,function(o){switch(o.label){case 0:t=hO(".introjs-hint"),n=0,r=t,o.label=1;case 1:return n<r.length?(a=r[n].getAttribute("data-step"))?[4,hT(e,parseInt(a,10))]:[3,3]:[3,4];case 2:o.sent(),o.label=3;case 3:return n++,[3,1];case 4:return[2]}})})}(this)];case 1:return e.sent(),[2,this]}})})},e.prototype.showHint=function(e){return hA(e),this},e.prototype.showHints=function(){return p7(this,void 0,void 0,function(){return p5(this,function(e){switch(e.label){case 0:return[4,function(e){return p7(this,void 0,void 0,function(){var t,n,r,a;return p5(this,function(o){switch(o.label){case 0:if(!(t=hO(".introjs-hint"))||!t.length)return[3,1];for(n=0,r=t;n<r.length;n++)(a=r[n].getAttribute("data-step"))&&hA(parseInt(a,10));return[3,3];case 1:return[4,hI(e,e._targetElement)];case 2:o.sent(),o.label=3;case 3:return[2]}})})}(this)];case 1:return e.sent(),[2,this]}})})},e.prototype.removeHints=function(){return function(e){for(var t=0,n=hO(".introjs-hint");t<n.length;t++){var r=n[t].getAttribute("data-step");r&&hM(parseInt(r,10))}hr.off(document,"click",hL,e,!1),hr.off(window,"resize",hD,e,!0),e._hintsAutoRefreshFunction&&hr.off(window,"scroll",e._hintsAutoRefreshFunction,e,!0)}(this),this},e.prototype.removeHint=function(e){return hM(e),this},e.prototype.showHintDialog=function(e){return p7(this,void 0,void 0,function(){return p5(this,function(t){switch(t.label){case 0:return[4,hz(this,e)];case 1:return t.sent(),[2,this]}})})},e}(),hU=function e(t){var n;if("object"===p3(t))n=new hq(t);else if("string"==typeof t){var r=document.querySelector(t);if(!r)throw Error("There is no element with given selector.");n=new hq(r)}else n=new hq(document.body);return e.instances[hn(n,"introjs-instance")]=n,n};hU.version="7.2.0",hU.instances={};var hW=a(7897);let hY="u"<typeof Element?il().any:il().instanceOf(Element);class hK extends g.Component{componentDidMount(){this.props.isEnabled&&(this.configureIntroJs(),this.renderSteps())}componentDidUpdate(e){let{isEnabled:t,steps:n,options:r}=this.props,a=!this.isConfigured||e.steps!==n||e.options!==r,o=e.isEnabled!==t;a&&this.configureIntroJs(),(a||o)&&this.renderSteps()}componentWillUnmount(){var e;this.restoreDocumentQueryPatch(),null==(e=this.introJs)||e.exit()}enableDocumentQueryPatch(){let e=ix();e===document.body||this._documentQuerySelector||(this._queryTarget=e,this._documentQuerySelector=document.querySelector,this._documentQuerySelectorAll=document.querySelectorAll,document.querySelector=e=>{if("string"==typeof e&&e.includes("introjs")){let t=this._queryTarget.querySelector(e);if(t)return t}return this._documentQuerySelector.call(document,e)},document.querySelectorAll=e=>{if("string"==typeof e&&e.includes("introjs")){let t=this._queryTarget.querySelectorAll(e);if(t.length>0)return t}return this._documentQuerySelectorAll.call(document,e)})}restoreDocumentQueryPatch(){this._documentQuerySelector&&(document.querySelector=this._documentQuerySelector,document.querySelectorAll=this._documentQuerySelectorAll,this._documentQuerySelector=null,this._documentQuerySelectorAll=null,this._queryTarget=null)}installIntroJs(){void 0!==globalThis.window&&(this.introJs=hU(ix()),this.introJs.onexit(this.onExit),this.introJs.onbeforeexit(this.onBeforeExit),this.introJs.onbeforechange(this.onBeforeChange),this.introJs.onafterchange(this.onAfterChange),this.introJs.onchange(this.onChange),this.introJs.oncomplete(this.onComplete))}configureIntroJs(){let{options:e,steps:t}=this.props,n=t.map(e=>this.prepareStep(e));this.introJs.setOptions(iq(rO({},e),{steps:n})),this.isConfigured=!0}renderSteps(){let{isEnabled:e,initialStep:t,steps:n,onStart:r}=this.props;e&&n.length>0&&!this.isVisible?(this.enableDocumentQueryPatch(),this.configureIntroJs(),this.introJs.start(),this.refreshAllStepElements(),this.isVisible=!0,this.introJs.goToStepNumber(t+1),r&&r(this.introJs._currentStep)):!e&&this.isVisible&&(this.isVisible=!1,this.introJs.exit(),this.restoreDocumentQueryPatch())}render(){return null}constructor(e){super(e),rN(this,"onExit",()=>{this.restoreDocumentQueryPatch();let{onExit:e}=this.props;this.isVisible=!1,e(this.introJs._currentStep)}),rN(this,"onBeforeExit",()=>{let{onBeforeExit:e}=this.props;return!e||e(this.introJs._currentStep)}),rN(this,"onBeforeChange",e=>{if(!this.isVisible)return!0;this.refreshAllStepElements();let{onBeforeChange:t,onPreventChange:n}=this.props;if(t){let r=t(this.introJs._currentStep,e);return!1===r&&n&&setTimeout(()=>{n(this.introJs._currentStep)},0),r}return!0}),rN(this,"onAfterChange",e=>{var t;if(!this.isVisible)return;this.refreshAllStepElements(),"function"==typeof(null==(t=this.introJs)?void 0:t.refresh)&&this.introJs.refresh(!0);let{onAfterChange:n}=this.props;n&&n(this.introJs._currentStep,e)}),rN(this,"onChange",e=>{if(!this.isVisible)return;let{onChange:t}=this.props;t&&t(this.introJs._currentStep,e)}),rN(this,"onComplete",()=>{let{onComplete:e}=this.props;e&&e()}),rN(this,"updateStepElement",e=>{var t,n,r,a,o;let s=null==(r=this.introJs)||null==(n=r._options)||null==(t=n.steps)?void 0:t[e],i=null==(o=this.introJs)||null==(a=o._introItems)?void 0:a[e],l=null==s?void 0:s._selector;if(!l||!i)return;let c=iw(l);c&&(i.element=c,i.position=s.position||"auto")}),rN(this,"refreshAllStepElements",()=>{var e,t;let n=(null==(t=this.introJs)||null==(e=t._options)?void 0:e.steps)||[];for(let e=0;e<n.length;e++)this.updateStepElement(e)}),rN(this,"prepareStep",e=>{let t="string"==typeof e.element?e.element:null,n=e.intro;if((0,g.isValidElement)(n)&&(n=(0,hW.qV)(n)),!t)return iq(rO({},e),{intro:n});let r=iw(t);return iq(rO({},e),{intro:n,_selector:t,element:r||void 0})}),this.introJs=null,this.isConfigured=!1,this.isVisible=!1,this._documentQuerySelector=null,this._documentQuerySelectorAll=null,this._queryTarget=null,this.installIntroJs()}}rN(hK,"propTypes",{isEnabled:il().bool,initialStep:il().number.isRequired,steps:il().arrayOf(il().shape({element:il().oneOfType([il().string,hY]),intro:il().node.isRequired,position:il().string,tooltipClass:il().string,highlightClass:il().string})).isRequired,onStart:il().func,onExit:il().func.isRequired,onBeforeExit:il().func,onBeforeChange:il().func,onAfterChange:il().func,onChange:il().func,onPreventChange:il().func,onComplete:il().func,options:il().object}),rN(hK,"defaultProps",{isEnabled:!1,onStart:null,onBeforeExit:null,onBeforeChange:null,onAfterChange:null,onChange:null,onPreventChange:null,onComplete:null,options:{}});let hQ=()=>{let e,t=(0,v.c)(5),{isLoading:n,isFetching:r}=l7(),{isLoading:a,isFetching:o}=pP();return t[0]!==r||t[1]!==n||t[2]!==o||t[3]!==a?(e=iN([n,r,a,o]),t[0]=r,t[1]=n,t[2]=o,t[3]=a,t[4]=e):e=t[4],e},hG=pK.MOBILE_FILTER_TOGGLE,hJ={disableInteraction:!1,element:hG,intro:"On mobile devices, click the Filter Panel toggle button to open the Filter Panel. Please click the button to proceed."},hX={disableInteraction:!1,element:hG,intro:"Click the Filter Panel toggle button again to close the Filter Panel. Please close the Filter Panel to proceed."},hZ=()=>{let e,t,n,r,a,o,s=(0,v.c)(21),i=rE(),l=hQ(),c=rC(pa),u=rC(pr),d=rC(po),f=(0,g.useRef)();s[0]!==l||s[1]!==u?(e=iN([l,u]),s[0]=l,s[1]=u,s[2]=e):e=s[2];let p=e,m=d<901;s[3]!==m?(t=m?[...p0.slice(0,2),hJ,...p0.slice(3,6),hX,...p0.slice(6)]:p0,s[3]=m,s[4]=t):t=s[4];let b=t;s[5]!==b||s[6]!==m?(n=()=>{if(!f.current)return;let e=f.current.introJs.currentStep();if(!Object.hasOwn(b,e))return;let t=async()=>{var n,r;null==(n=iw(".introjs-nextbutton"))||n.setAttribute("style","display: inline");let a=6===e?Promise.resolve():new Promise(e=>{let t=Date.now(),n=setInterval(()=>{if(null!==iw(pK.DATE_FILTER)){clearInterval(n),e();return}Date.now()-t>=5e3&&(clearInterval(n),e())},10)});await a,await f.current.introJs.nextStep(),null==(r=iw(hG))||r.removeEventListener("click",t)};if(m&&(2===e||6===e)){var n,r;null==(n=iw(".introjs-nextbutton"))||n.setAttribute("style","display: none"),null==(r=iw(hG))||r.addEventListener("click",t)}},s[5]=b,s[6]=m,s[7]=n):n=s[7];let y=n;s[8]!==b||s[9]!==c?(r=()=>!c||null===f.current||!(f.current.introJs.currentStep()+1<b.length)||confirm("Are you sure you want to exit the tour?"),s[8]=b,s[9]=c,s[10]=r):r=s[10];let w=r;s[11]!==i||s[12]!==c?(a=()=>{c&&i(i7())},s[11]=i,s[12]=c,s[13]=a):a=s[13];let x=a;return s[14]!==b||s[15]!==x||s[16]!==p||s[17]!==y||s[18]!==w||s[19]!==c?(o=p?null:(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(p2,{}),(0,h.jsx)(hK,{isEnabled:c,initialStep:0,steps:b,onExit:x,options:p1,onBeforeChange:y,onBeforeExit:w,ref:f})]}),s[14]=b,s[15]=x,s[16]=p,s[17]=y,s[18]=w,s[19]=c,s[20]=o):o=s[20],o};function h0(e,t,n){let r,a=(0,v.c)(4),o=void 0!==n&&n;a[0]!==e||a[1]!==t||a[2]!==o?(r=()=>(addEventListener(e,t,o),function(){removeEventListener(e,t)}),a[0]=e,a[1]=t,a[2]=o,a[3]=r):r=a[3],(0,g.useEffect)(r)}let h1=e=>{let t,n,r,a,o,s,i=(0,v.c)(22),{fieldName:l,value:c,displayValue:u,onRemove:d}=e,{data:f,error:p}=l7(),m=rC(lD);i[0]!==f||i[1]!==l?(t=iC(f,l,[]),i[0]=f,i[1]=l,i[2]=t):t=i[2];let g=t;i[3]!==l||i[4]!==m?(n=iC(m,l,[]),i[3]=l,i[4]=m,i[5]=n):n=i[5];let b=n;i[6]!==l?(r=(e=>{if("timely"===e){let t=e.replaceAll(/_/g," ");return t[0].toUpperCase()+t.slice(1)+": "}return""})(l),i[6]=l,i[7]=r):r=i[7];let y=r,w=u||c;i[8]!==w?(a=w.split("•").pop(),i[8]=w,i[9]=a):a=i[9];let x=a,S=rE();i[10]!==g||i[11]!==S||i[12]!==l||i[13]!==b||i[14]!==d||i[15]!==c?(o=()=>{if(d)return void d(c);if("date_received"===l)S(lE("All"));else if(sG.includes(l)){let e=lI(c,b,g,l);S(ls(l,e))}else S(la(l,c))},i[10]=g,i[11]=S,i[12]=l,i[13]=b,i[14]=d,i[15]=c,i[16]=o):o=i[16];let k=o;return i[17]!==p||i[18]!==y||i[19]!==k||i[20]!==x?(s=p?null:(0,h.jsx)("li",{children:(0,h.jsxs)("button",{className:"a-tag-filter","aria-label":"".concat(y).concat(x),onClick:k,children:[y,x,(0,h.jsx)("span",{className:"a-btn--icon a-btn--icon--on-right",children:(0,h.jsx)(N,{name:"error",isPresentational:!0})})]})}),i[17]=p,i[18]=y,i[19]=k,i[20]=x,i[21]=s):s=i[21],s};h1.propTypes={fieldName:il().string.isRequired,value:il().string.isRequired,displayValue:il().string,onRemove:il().func};let h2=()=>{let e,t,n,r,a,o,s,i,l=(0,v.c)(21),c=rE(),u=rC(lD),d=rC(lY),f=rC(lQ),p=rC(lK),m=rC(lX);if(l[0]!==d||l[1]!==p||l[2]!==f||l[3]!==u){a=Symbol.for("react.early_return_sentinel");n:{let o=(e=>{let t=[];for(let n of sY)if(Object.hasOwn(e,n))for(let r of e[n])t.push({fieldName:n,value:r});return t})(u),s=sM()(f).isSame(sM()(sF),"day")&&sM()(p).isSame(sM()(d),"day")?null:{fieldName:"date_received",value:"Date received: "+sM()(f).format("M/D/YYYY")+" - "+sM()(p).format("M/D/YYYY")};if(s&&o.unshift(s),0===o.length){a=null;break n}r="pill-panel",e="m-tag-group pill-panel__list",l[9]===Symbol.for("react.memo_cache_sentinel")?(t=(0,h.jsx)("li",{className:"pill-panel__label",children:(0,h.jsx)(tM,{children:"Filters applied:"})}),l[9]=t):t=l[9],n=o.map(h3)}l[0]=d,l[1]=p,l[2]=f,l[3]=u,l[4]=e,l[5]=t,l[6]=n,l[7]=r,l[8]=a}else e=l[4],t=l[5],n=l[6],r=l[7],a=l[8];return a!==Symbol.for("react.early_return_sentinel")?a:(l[10]!==c||l[11]!==m?(o=(0,h.jsx)("li",{className:"pill-panel__clear",children:(0,h.jsx)(tw,{appearance:"warning",label:"Clear filters",isLink:!0,onClick:()=>c(lo(m))})}),l[10]=c,l[11]=m,l[12]=o):o=l[12],l[13]!==e||l[14]!==t||l[15]!==n||l[16]!==o?(s=(0,h.jsxs)("ul",{className:e,children:[t,n,o]}),l[13]=e,l[14]=t,l[15]=n,l[16]=o,l[17]=s):s=l[17],l[18]!==r||l[19]!==s?(i=(0,h.jsx)("section",{className:r,children:s}),l[18]=r,l[19]=s,l[20]=i):i=l[20],i)};function h3(e){return(0,h.jsx)(h1,{fieldName:e.fieldName,value:e.value,displayValue:"state"===e.fieldName?lL(e.value):void 0},e.fieldName+e.value)}a(3544);let h7=e=>e&&"function"!=typeof e?t=>{e.current=t}:e;var h5=function(e,t){return(0,g.useMemo)(()=>{let n,r;return n=h7(e),r=h7(t),e=>{n&&n(e),r&&r(e)}},[e,t])};function h4(){return(0,g.useState)(null)}let h6=e=>e&&"function"!=typeof e?t=>{e.current=t}:e;var h9=function(e,t){return(0,g.useMemo)(()=>{let n,r;return n=h6(e),r=h6(t),e=>{n&&n(e),r&&r(e)}},[e,t])},h8=Object.prototype.hasOwnProperty;function me(e,t,n){for(n of e.keys())if(mt(n,t))return n}function mt(e,t){var n,r,a;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&mt(e[r],t[r]););return -1===r}if(n===Set){if(e.size!==t.size)return!1;for(r of e)if((a=r)&&"object"==typeof a&&!(a=me(t,a))||!t.has(a))return!1;return!0}if(n===Map){if(e.size!==t.size)return!1;for(r of e)if((a=r[0])&&"object"==typeof a&&!(a=me(t,a))||!mt(r[1],t.get(a)))return!1;return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return -1===r}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return -1===r}if(!n||"object"==typeof e){for(n in r=0,e)if(h8.call(e,n)&&++r&&!h8.call(t,n)||!(n in t)||!mt(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!=e&&t!=t}var mn=function(e){let t,n,r=(t=(0,g.useRef)(!0),n=(0,g.useRef)(()=>t.current),(0,g.useEffect)(()=>(t.current=!0,()=>{t.current=!1}),[]),n.current);return[e[0],(0,g.useCallback)(t=>{if(r())return e[1](t)},[r,e[1]])]};function mr(e){return e.split("-")[0]}function ma(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function mo(e){var t=ma(e).Element;return e instanceof t||e instanceof Element}function ms(e){var t=ma(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function mi(e){if("u"<typeof ShadowRoot)return!1;var t=ma(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var ml=Math.max,mc=Math.min,mu=Math.round;function md(){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}function mf(){return!/^((?!chrome|android).)*safari/i.test(md())}function mp(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),a=1,o=1;t&&ms(e)&&(a=e.offsetWidth>0&&mu(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&mu(r.height)/e.offsetHeight||1);var s=(mo(e)?ma(e):window).visualViewport,i=!mf()&&n,l=(r.left+(i&&s?s.offsetLeft:0))/a,c=(r.top+(i&&s?s.offsetTop:0))/o,u=r.width/a,d=r.height/o;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l,x:l,y:c}}function mh(e){var t=mp(e),n=e.offsetWidth,r=e.offsetHeight;return 1>=Math.abs(t.width-n)&&(n=t.width),1>=Math.abs(t.height-r)&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function mm(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&mi(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function mv(e){return e?(e.nodeName||"").toLowerCase():null}function mg(e){return ma(e).getComputedStyle(e)}function mb(e){return((mo(e)?e.ownerDocument:e.document)||window.document).documentElement}function my(e){return"html"===mv(e)?e:e.assignedSlot||e.parentNode||(mi(e)?e.host:null)||mb(e)}function mw(e){return ms(e)&&"fixed"!==mg(e).position?e.offsetParent:null}function mx(e){for(var t=ma(e),n=mw(e);n&&["table","td","th"].indexOf(mv(n))>=0&&"static"===mg(n).position;)n=mw(n);return n&&("html"===mv(n)||"body"===mv(n)&&"static"===mg(n).position)?t:n||function(e){var t=/firefox/i.test(md());if(/Trident/i.test(md())&&ms(e)&&"fixed"===mg(e).position)return null;var n=my(e);for(mi(n)&&(n=n.host);ms(n)&&0>["html","body"].indexOf(mv(n));){var r=mg(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function mS(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function mk(e,t,n){return ml(e,mc(t,n))}function m_(){return{top:0,right:0,bottom:0,left:0}}function mE(e){return Object.assign({},m_(),e)}function mj(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var mC="bottom",mP="right",mN="left",mO="auto",mT=["top",mC,mP,mN],mA="start",mM="viewport",mR="popper",mz=mT.reduce(function(e,t){return e.concat([t+"-"+mA,t+"-end"])},[]),mL=([].concat(mT,[mO])).reduce(function(e,t){return e.concat([t,t+"-"+mA,t+"-end"])},[]),mI=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function mD(e){return e.split("-")[1]}var mH={top:"auto",right:"auto",bottom:"auto",left:"auto"};function mF(e){var t,n,r,a,o,s,i,l=e.popper,c=e.popperRect,u=e.placement,d=e.variation,f=e.offsets,p=e.position,h=e.gpuAcceleration,m=e.adaptive,v=e.roundOffsets,g=e.isFixed,b=f.x,y=void 0===b?0:b,w=f.y,x=void 0===w?0:w,S="function"==typeof v?v({x:y,y:x}):{x:y,y:x};y=S.x,x=S.y;var k=f.hasOwnProperty("x"),_=f.hasOwnProperty("y"),E=mN,j="top",C=window;if(m){var P=mx(l),N="clientHeight",O="clientWidth";P===ma(l)&&"static"!==mg(P=mb(l)).position&&"absolute"===p&&(N="scrollHeight",O="scrollWidth"),("top"===u||(u===mN||u===mP)&&"end"===d)&&(j=mC,x-=(g&&P===C&&C.visualViewport?C.visualViewport.height:P[N])-c.height,x*=h?1:-1),(u===mN||("top"===u||u===mC)&&"end"===d)&&(E=mP,y-=(g&&P===C&&C.visualViewport?C.visualViewport.width:P[O])-c.width,y*=h?1:-1)}var T=Object.assign({position:p},m&&mH),A=!0===v?(t={x:y,y:x},n=ma(l),r=t.x,a=t.y,{x:mu(r*(o=n.devicePixelRatio||1))/o||0,y:mu(a*o)/o||0}):{x:y,y:x};return(y=A.x,x=A.y,h)?Object.assign({},T,((i={})[j]=_?"0":"",i[E]=k?"0":"",i.transform=1>=(C.devicePixelRatio||1)?"translate("+y+"px, "+x+"px)":"translate3d("+y+"px, "+x+"px, 0)",i)):Object.assign({},T,((s={})[j]=_?x+"px":"",s[E]=k?y+"px":"",s.transform="",s))}var mB={passive:!0},m$={left:"right",right:"left",bottom:"top",top:"bottom"};function mV(e){return e.replace(/left|right|bottom|top/g,function(e){return m$[e]})}var mq={start:"end",end:"start"};function mU(e){return e.replace(/start|end/g,function(e){return mq[e]})}function mW(e){var t=ma(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function mY(e){return mp(mb(e)).left+mW(e).scrollLeft}function mK(e){var t=mg(e),n=t.overflow,r=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+r)}function mQ(e,t){void 0===t&&(t=[]);var n,r=function e(t){return["html","body","#document"].indexOf(mv(t))>=0?t.ownerDocument.body:ms(t)&&mK(t)?t:e(my(t))}(e),a=r===(null==(n=e.ownerDocument)?void 0:n.body),o=ma(r),s=a?[o].concat(o.visualViewport||[],mK(r)?r:[]):r,i=t.concat(s);return a?i:i.concat(mQ(my(s)))}function mG(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function mJ(e,t,n){var r,a,o,s,i,l,c,u,d,f;return t===mM?mG(function(e,t){var n=ma(e),r=mb(e),a=n.visualViewport,o=r.clientWidth,s=r.clientHeight,i=0,l=0;if(a){o=a.width,s=a.height;var c=mf();(c||!c&&"fixed"===t)&&(i=a.offsetLeft,l=a.offsetTop)}return{width:o,height:s,x:i+mY(e),y:l}}(e,n)):mo(t)?((r=mp(t,!1,"fixed"===n)).top=r.top+t.clientTop,r.left=r.left+t.clientLeft,r.bottom=r.top+t.clientHeight,r.right=r.left+t.clientWidth,r.width=t.clientWidth,r.height=t.clientHeight,r.x=r.left,r.y=r.top,r):mG((a=mb(e),s=mb(a),i=mW(a),l=null==(o=a.ownerDocument)?void 0:o.body,c=ml(s.scrollWidth,s.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),u=ml(s.scrollHeight,s.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),d=-i.scrollLeft+mY(a),f=-i.scrollTop,"rtl"===mg(l||s).direction&&(d+=ml(s.clientWidth,l?l.clientWidth:0)-c),{width:c,height:u,x:d,y:f}))}function mX(e){var t,n=e.reference,r=e.element,a=e.placement,o=a?mr(a):null,s=a?mD(a):null,i=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(o){case"top":t={x:i,y:n.y-r.height};break;case mC:t={x:i,y:n.y+n.height};break;case mP:t={x:n.x+n.width,y:l};break;case mN:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var c=o?mS(o):null;if(null!=c){var u="y"===c?"height":"width";switch(s){case mA:t[c]=t[c]-(n[u]/2-r[u]/2);break;case"end":t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}function mZ(e,t){void 0===t&&(t={});var n,r,a,o,s,i,l,c,u=t,d=u.placement,f=void 0===d?e.placement:d,p=u.strategy,h=void 0===p?e.strategy:p,m=u.boundary,v=u.rootBoundary,g=u.elementContext,b=void 0===g?mR:g,y=u.altBoundary,w=u.padding,x=void 0===w?0:w,S=mE("number"!=typeof x?x:mj(x,mT)),k=e.rects.popper,_=e.elements[void 0!==y&&y?b===mR?"reference":mR:b],E=(n=mo(_)?_:_.contextElement||mb(e.elements.popper),r=void 0===m?"clippingParents":m,a=void 0===v?mM:v,l=(i=[].concat("clippingParents"===r?(o=mQ(my(n)),!mo(s=["absolute","fixed"].indexOf(mg(n).position)>=0&&ms(n)?mx(n):n)?[]:o.filter(function(e){return mo(e)&&mm(e,s)&&"body"!==mv(e)})):[].concat(r),[a]))[0],(c=i.reduce(function(e,t){var r=mJ(n,t,h);return e.top=ml(r.top,e.top),e.right=mc(r.right,e.right),e.bottom=mc(r.bottom,e.bottom),e.left=ml(r.left,e.left),e},mJ(n,l,h))).width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c),j=mp(e.elements.reference),C=mX({reference:j,element:k,strategy:"absolute",placement:f}),P=mG(Object.assign({},k,C)),N=b===mR?P:j,O={top:E.top-N.top+S.top,bottom:N.bottom-E.bottom+S.bottom,left:E.left-N.left+S.left,right:N.right-E.right+S.right},T=e.modifiersData.offset;if(b===mR&&T){var A=T[f];Object.keys(O).forEach(function(e){var t=[mP,mC].indexOf(e)>=0?1:-1,n=["top",mC].indexOf(e)>=0?"y":"x";O[e]+=A[n]*t})}return O}function m0(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 m1(e){return["top",mP,mC,mN].some(function(t){return e[t]>=0})}var m2={placement:"bottom",modifiers:[],strategy:"absolute"};function m3(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}let m7=(l=void 0===(i=(s={defaultModifiers:[{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,a=t.rects.popper,o=t.modifiersData.preventOverflow,s=mZ(t,{elementContext:"reference"}),i=mZ(t,{altBoundary:!0}),l=m0(s,r),c=m0(i,a,o),u=m1(l),d=m1(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=mX({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,a=n.adaptive,o=n.roundOffsets,s=void 0===o||o,i={placement:mr(t.placement),variation:mD(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:void 0===r||r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,mF(Object.assign({},i,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:void 0===a||a,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,mF(Object.assign({},i,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,a=r.scroll,o=void 0===a||a,s=r.resize,i=void 0===s||s,l=ma(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(e){e.addEventListener("scroll",n.update,mB)}),i&&l.addEventListener("resize",n.update,mB),function(){o&&c.forEach(function(e){e.removeEventListener("scroll",n.update,mB)}),i&&l.removeEventListener("resize",n.update,mB)}},data:{}},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,a=n.offset,o=void 0===a?[0,0]:a,s=mL.reduce(function(e,n){var r,a,s,i,l,c;return e[n]=(r=t.rects,s=[mN,"top"].indexOf(a=mr(n))>=0?-1:1,l=(i="function"==typeof o?o(Object.assign({},r,{placement:n})):o)[0],c=i[1],l=l||0,c=(c||0)*s,[mN,mP].indexOf(a)>=0?{x:c,y:l}:{x:l,y:c}),e},{}),i=s[t.placement],l=i.x,c=i.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=s}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var a=n.mainAxis,o=void 0===a||a,s=n.altAxis,i=void 0===s||s,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,h=void 0===p||p,m=n.allowedAutoPlacements,v=t.options.placement,g=mr(v)===v,b=l||(g||!h?[mV(v)]:function(e){if(mr(e)===mO)return[];var t=mV(e);return[mU(e),t,mU(t)]}(v)),y=[v].concat(b).reduce(function(e,n){var r,a,o,s,i,l,f,p,v,g,b,y;return e.concat(mr(n)===mO?(a=(r={placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:h,allowedAutoPlacements:m}).placement,o=r.boundary,s=r.rootBoundary,i=r.padding,l=r.flipVariations,p=void 0===(f=r.allowedAutoPlacements)?mL:f,0===(b=(g=(v=mD(a))?l?mz:mz.filter(function(e){return mD(e)===v}):mT).filter(function(e){return p.indexOf(e)>=0})).length&&(b=g),Object.keys(y=b.reduce(function(e,n){return e[n]=mZ(t,{placement:n,boundary:o,rootBoundary:s,padding:i})[mr(n)],e},{})).sort(function(e,t){return y[e]-y[t]})):n)},[]),w=t.rects.reference,x=t.rects.popper,S=new Map,k=!0,_=y[0],E=0;E<y.length;E++){var j=y[E],C=mr(j),P=mD(j)===mA,N=["top",mC].indexOf(C)>=0,O=N?"width":"height",T=mZ(t,{placement:j,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),A=N?P?mP:mN:P?mC:"top";w[O]>x[O]&&(A=mV(A));var M=mV(A),R=[];if(o&&R.push(T[C]<=0),i&&R.push(T[A]<=0,T[M]<=0),R.every(function(e){return e})){_=j,k=!1;break}S.set(j,R)}if(k)for(var z=h?3:1,L=function(e){var t=y.find(function(t){var n=S.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return _=t,"break"},I=z;I>0&&"break"!==L(I);I--);t.placement!==_&&(t.modifiersData[r]._skip=!0,t.placement=_,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,a=n.mainAxis,o=n.altAxis,s=n.boundary,i=n.rootBoundary,l=n.altBoundary,c=n.padding,u=n.tether,d=void 0===u||u,f=n.tetherOffset,p=void 0===f?0:f,h=mZ(t,{boundary:s,rootBoundary:i,padding:c,altBoundary:l}),m=mr(t.placement),v=mD(t.placement),g=!v,b=mS(m),y="x"===b?"y":"x",w=t.modifiersData.popperOffsets,x=t.rects.reference,S=t.rects.popper,k="function"==typeof p?p(Object.assign({},t.rects,{placement:t.placement})):p,_="number"==typeof k?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),E=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,j={x:0,y:0};if(w){if(void 0===a||a){var C,P="y"===b?"top":mN,N="y"===b?mC:mP,O="y"===b?"height":"width",T=w[b],A=T+h[P],M=T-h[N],R=d?-S[O]/2:0,z=v===mA?x[O]:S[O],L=v===mA?-S[O]:-x[O],I=t.elements.arrow,D=d&&I?mh(I):{width:0,height:0},H=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:m_(),F=H[P],B=H[N],$=mk(0,x[O],D[O]),V=g?x[O]/2-R-$-F-_.mainAxis:z-$-F-_.mainAxis,q=g?-x[O]/2+R+$+B+_.mainAxis:L+$+B+_.mainAxis,U=t.elements.arrow&&mx(t.elements.arrow),W=U?"y"===b?U.clientTop||0:U.clientLeft||0:0,Y=null!=(C=null==E?void 0:E[b])?C:0,K=mk(d?mc(A,T+V-Y-W):A,T,d?ml(M,T+q-Y):M);w[b]=K,j[b]=K-T}if(void 0!==o&&o){var Q,G,J="x"===b?"top":mN,X="x"===b?mC:mP,Z=w[y],ee="y"===y?"height":"width",et=Z+h[J],en=Z-h[X],er=-1!==["top",mN].indexOf(m),ea=null!=(G=null==E?void 0:E[y])?G:0,eo=er?et:Z-x[ee]-S[ee]-ea+_.altAxis,es=er?Z+x[ee]+S[ee]-ea-_.altAxis:en,ei=d&&er?(Q=mk(eo,Z,es))>es?es:Q:mk(d?eo:et,Z,d?es:en);w[y]=ei,j[y]=ei-Z}t.modifiersData[r]=j}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,a=e.options,o=n.elements.arrow,s=n.modifiersData.popperOffsets,i=mr(n.placement),l=mS(i),c=[mN,mP].indexOf(i)>=0?"height":"width";if(o&&s){var u,d=(u=a.padding,mE("number"!=typeof(u="function"==typeof u?u(Object.assign({},n.rects,{placement:n.placement})):u)?u:mj(u,mT))),f=mh(o),p="y"===l?"top":mN,h="y"===l?mC:mP,m=n.rects.reference[c]+n.rects.reference[l]-s[l]-n.rects.popper[c],v=s[l]-n.rects.reference[l],g=mx(o),b=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,y=d[p],w=b-f[c]-d[h],x=b/2-f[c]/2+(m/2-v/2),S=mk(y,x,w);n.modifiersData[r]=((t={})[l]=S,t.centerOffset=S-x,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null==r||("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&mm(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]}]}).defaultModifiers)?[]:i,u=void 0===(c=s.defaultOptions)?m2:c,function(e,t,n){void 0===n&&(n=u);var r,a,o={placement:"bottom",orderedModifiers:[],options:Object.assign({},m2,u),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],i=!1,c={state:o,setOptions:function(n){var r,a,i,f,p,h,m="function"==typeof n?n(o.options):n;d(),o.options=Object.assign({},u,o.options,m),o.scrollParents={reference:mo(e)?mQ(e):e.contextElement?mQ(e.contextElement):[],popper:mQ(t)};var v=(a=Object.keys(r=[].concat(l,o.options.modifiers).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},{})).map(function(e){return r[e]}),i=new Map,f=new Set,p=[],a.forEach(function(e){i.set(e.name,e)}),a.forEach(function(e){f.has(e.name)||function e(t){f.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){if(!f.has(t)){var n=i.get(t);n&&e(n)}}),p.push(t)}(e)}),h=p,mI.reduce(function(e,t){return e.concat(h.filter(function(e){return e.phase===t}))},[]));return o.orderedModifiers=v.filter(function(e){return e.enabled}),o.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=e.effect;if("function"==typeof r){var a=r({state:o,name:t,instance:c,options:void 0===n?{}:n});s.push(a||function(){})}}),c.update()},forceUpdate:function(){if(!i){var e=o.elements,t=e.reference,n=e.popper;if(m3(t,n)){o.rects={reference:(r=mx(n),a="fixed"===o.options.strategy,s=ms(r),f=ms(r)&&(u=mu((l=r.getBoundingClientRect()).width)/r.offsetWidth||1,d=mu(l.height)/r.offsetHeight||1,1!==u||1!==d),p=mb(r),h=mp(t,f,a),m={scrollLeft:0,scrollTop:0},v={x:0,y:0},(s||!s&&!a)&&(("body"!==mv(r)||mK(p))&&(m=function(e){return e!==ma(e)&&ms(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:mW(e)}(r)),ms(r)?(v=mp(r,!0),v.x+=r.clientLeft,v.y+=r.clientTop):p&&(v.x=mY(p))),{x:h.left+m.scrollLeft-v.x,y:h.top+m.scrollTop-v.y,width:h.width,height:h.height}),popper:mh(n)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach(function(e){return o.modifiersData[e.name]=Object.assign({},e.data)});for(var r,a,s,l,u,d,f,p,h,m,v,g=0;g<o.orderedModifiers.length;g++){if(!0===o.reset){o.reset=!1,g=-1;continue}var b=o.orderedModifiers[g],y=b.fn,w=b.options,x=void 0===w?{}:w,S=b.name;"function"==typeof y&&(o=y({state:o,options:x,name:S,instance:c})||o)}}}},update:(r=function(){return new Promise(function(e){c.forceUpdate(),e(o)})},function(){return a||(a=new Promise(function(e){Promise.resolve().then(function(){a=void 0,e(r())})})),a}),destroy:function(){d(),i=!0}};if(!m3(e,t))return c;function d(){s.forEach(function(e){return e()}),s=[]}return c.setOptions(n).then(function(e){!i&&n.onFirstUpdate&&n.onFirstUpdate(e)}),c}),m5=["enabled","placement","strategy","modifiers"],m4={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>void 0},m6={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:e})=>()=>{let{reference:t,popper:n}=e.elements;if("removeAttribute"in t){let e=(t.getAttribute("aria-describedby")||"").split(",").filter(e=>e.trim()!==n.id);e.length?t.setAttribute("aria-describedby",e.join(",")):t.removeAttribute("aria-describedby")}},fn:({state:e})=>{var t;let{popper:n,reference:r}=e.elements,a=null==(t=n.getAttribute("role"))?void 0:t.toLowerCase();if(n.id&&"tooltip"===a&&"setAttribute"in r){let e=r.getAttribute("aria-describedby");if(e&&-1!==e.split(",").indexOf(n.id))return;r.setAttribute("aria-describedby",e?`${e},${n.id}`:n.id)}}},m9=[];var m8=function(e,t,n={}){let{enabled:r=!0,placement:a="bottom",strategy:o="absolute",modifiers:s=m9}=n,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(n,m5),l=(0,g.useRef)(s),c=(0,g.useRef)(),u=(0,g.useCallback)(()=>{var e;null==(e=c.current)||e.update()},[]),d=(0,g.useCallback)(()=>{var e;null==(e=c.current)||e.forceUpdate()},[]),[f,p]=mn((0,g.useState)({placement:a,update:u,forceUpdate:d,attributes:{},styles:{popper:{},arrow:{}}})),h=(0,g.useMemo)(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:e})=>{let t={},n={};Object.keys(e.elements).forEach(r=>{t[r]=e.styles[r],n[r]=e.attributes[r]}),p({state:e,styles:t,attributes:n,update:u,forceUpdate:d,placement:e.placement})}}),[u,d,p]),m=(0,g.useMemo)(()=>(mt(l.current,s)||(l.current=s),l.current),[s]);return(0,g.useEffect)(()=>{c.current&&r&&c.current.setOptions({placement:a,strategy:o,modifiers:[...m,h,m4]})},[o,a,h,r,m]),(0,g.useEffect)(()=>{if(r&&null!=e&&null!=t)return c.current=m7(e,t,Object.assign({},i,{placement:a,strategy:o,modifiers:[...m,m6,h]})),()=>{null!=c.current&&(c.current.destroy(),c.current=void 0,p(e=>Object.assign({},e,{attributes:{},styles:{popper:{}}})))}},[r,e,t]),f};let ve=(0,g.createContext)(dA?window:void 0);ve.Provider;let vt=(e,t)=>dA?null==e?(t||dH()).body:("function"==typeof e&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect))?e:null:null;function vn(e,t){let n=(0,g.useContext)(ve),[r,a]=(0,g.useState)(()=>vt(e,null==n?void 0:n.document));if(!r){let t=vt(e);t&&a(t)}return(0,g.useEffect)(()=>{t&&r&&t(r)},[t,r]),(0,g.useEffect)(()=>{let t=vt(e);t!==r&&a(t)},[e,r]),r}let vr=void 0!==a.g&&a.g.navigator&&"ReactNative"===a.g.navigator.product;var va="u">typeof document||vr?g.useLayoutEffect:g.useEffect,vo=function({children:e,in:t,onExited:n,mountOnEnter:r,unmountOnExit:a}){let o=(0,g.useRef)(null),s=(0,g.useRef)(t),i=dB(n);(0,g.useEffect)(()=>{t?s.current=!0:i(o.current)},[t,i]);let l=h9(o,dY(e)),c=(0,g.cloneElement)(e,{ref:l});return t?c:a||!s.current&&r?null:c};let vs=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"],vi=["component"],vl=g.forwardRef((e,t)=>{let{component:n}=e,r=function(e){let{onEnter:t,onEntering:n,onEntered:r,onExit:a,onExiting:o,onExited:s,addEndListener:i,children:l}=e,c=function(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,vs),u=(0,g.useRef)(null),d=h9(u,dY(l)),f=e=>t=>{e&&u.current&&e(u.current,t)},p=(0,g.useCallback)(f(t),[t]),h=(0,g.useCallback)(f(n),[n]),m=(0,g.useCallback)(f(r),[r]),v=(0,g.useCallback)(f(a),[a]),b=(0,g.useCallback)(f(o),[o]),y=(0,g.useCallback)(f(s),[s]),w=(0,g.useCallback)(f(i),[i]);return Object.assign({},c,{nodeRef:u},t&&{onEnter:p},n&&{onEntering:h},r&&{onEntered:m},a&&{onExit:v},o&&{onExiting:b},s&&{onExited:y},i&&{addEndListener:w},{children:"function"==typeof l?(e,t)=>l(e,Object.assign({},t,{ref:d})):(0,g.cloneElement)(l,{ref:d})})}(function(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,vi));return(0,h.jsx)(n,Object.assign({ref:t},r))});function vc({children:e,in:t,onExited:n,onEntered:r,transition:a}){let[o,s]=(0,g.useState)(!t);t&&o&&s(!1);let i=h9(function({in:e,onTransition:t}){let n=(0,g.useRef)(null),r=(0,g.useRef)(!0),a=dB(t);return va(()=>{if(!n.current)return;let t=!1;return a({in:e,element:n.current,initial:r.current,isStale:()=>t}),()=>{t=!0}},[e,a]),va(()=>(r.current=!1,()=>{r.current=!0}),[]),n}({in:!!t,onTransition:e=>{Promise.resolve(a(e)).then(()=>{e.isStale()||(e.in?null==r||r(e.element,e.initial):(s(!0),null==n||n(e.element)))},t=>{throw e.in||s(!0),t})}}),dY(e));return o&&!t?null:(0,g.cloneElement)(e,{ref:i})}let vu=g.forwardRef((e,t)=>{var n;let{flip:r,offset:a,placement:o,containerPadding:s,popperConfig:i={},transition:l,runTransition:c}=e,[u,d]=h4(),[f,p]=h4(),m=h9(d,t),v=vn(e.container),b=vn(e.target),[y,w]=(0,g.useState)(!e.show),x=m8(b,u,function({enabled:e,enableEvents:t,placement:n,flip:r,offset:a,fixed:o,containerPadding:s,arrowElement:i,popperConfig:l={}}){var c,u,d,f,p,h;let m,v=(h=l.modifiers,m={},Array.isArray(h)?(null==h||h.forEach(e=>{m[e.name]=e}),m):h||m);return Object.assign({},l,{placement:n,enabled:e,strategy:o?"fixed":l.strategy,modifiers:function(e={}){return Array.isArray(e)?e:Object.keys(e).map(t=>(e[t].name=t,e[t]))}(Object.assign({},v,{eventListeners:{enabled:t,options:null==(c=v.eventListeners)?void 0:c.options},preventOverflow:Object.assign({},v.preventOverflow,{options:s?Object.assign({padding:s},null==(u=v.preventOverflow)?void 0:u.options):null==(d=v.preventOverflow)?void 0:d.options}),offset:{options:Object.assign({offset:a},null==(f=v.offset)?void 0:f.options)},arrow:Object.assign({},v.arrow,{enabled:!!i,options:Object.assign({},null==(p=v.arrow)?void 0:p.options,{element:i})}),flip:Object.assign({enabled:!!r},v.flip)}))})}({placement:o,enableEvents:!!e.show,containerPadding:s||5,flip:r,offset:a,arrowElement:f,popperConfig:i}));e.show&&y&&w(!1);let S=e.show||!y;if(dQ(u,e.onHide,{disabled:!e.rootClose||e.rootCloseDisabled,clickTrigger:e.rootCloseEvent}),!S)return null;let{onExit:k,onExiting:_,onEnter:E,onEntering:j,onEntered:C}=e,P=e.children(Object.assign({},x.attributes.popper,{style:x.styles.popper,ref:m}),{popper:x,placement:o,show:!!e.show,arrowProps:Object.assign({},x.attributes.arrow,{style:x.styles.arrow,ref:p})});return n={in:!!e.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:P,onExit:k,onExiting:_,onExited:(...t)=>{w(!0),e.onExited&&e.onExited(...t)},onEnter:E,onEntering:j,onEntered:C},P=l?(0,h.jsx)(vl,Object.assign({},n,{component:l})):c?(0,h.jsx)(vc,Object.assign({},n,{transition:c})):(0,h.jsx)(vo,Object.assign({},n)),v?ic.createPortal(P,v):null});vu.displayName="Overlay";var vd=function(e){let t=(0,g.useRef)(e);return(0,g.useEffect)(()=>{t.current=e},[e]),t};let vf=void 0!==a.g&&a.g.navigator&&"ReactNative"===a.g.navigator.product;var vp="u">typeof document||vf?g.useLayoutEffect:g.useEffect;function vh(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}let vm=g.createContext({prefixes:{},breakpoints:["xxl","xl","lg","md","sm","xs"],minBreakpoint:"xs"}),{Consumer:vv,Provider:vg}=vm;function vb(e,t){let{prefixes:n}=(0,g.useContext)(vm);return e||n[t]||t}function vy(){let{dir:e}=(0,g.useContext)(vm);return"rtl"===e}let vw=g.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},a)=>(t=vb(t,"popover-header"),(0,h.jsx)(n,{ref:a,className:cM()(e,t),...r})));vw.displayName="PopoverHeader";let vx=g.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},a)=>(t=vb(t,"popover-body"),(0,h.jsx)(n,{ref:a,className:cM()(e,t),...r})));function vS(e,t){let n=e;return"left"===e?n=t?"end":"start":"right"===e&&(n=t?"start":"end"),n}function vk(e="absolute"){return{position:e,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}vx.displayName="PopoverBody",g.Component;let v_=g.forwardRef(({bsPrefix:e,placement:t="right",className:n,style:r,children:a,body:o,arrowProps:s,hasDoneInitialMeasure:i,popper:l,show:c,...u},d)=>{let f=vb(e,"popover"),p=vy(),[m]=(null==t?void 0:t.split("-"))||[],v=vS(m,p),g=r;return c&&!i&&(g={...r,...vk(null==l?void 0:l.strategy)}),(0,h.jsxs)("div",{ref:d,role:"tooltip",style:g,"x-placement":m,className:cM()(n,f,m&&`bs-popover-${v}`),...u,children:[(0,h.jsx)("div",{className:"popover-arrow",...s}),o?(0,h.jsx)(vx,{children:a}):a]})});v_.displayName="Popover";var vE=Object.assign(v_,{Header:vw,Body:vx,POPPER_OFFSET:[0,8]});let vj=g.forwardRef(({bsPrefix:e,placement:t="right",className:n,style:r,children:a,arrowProps:o,hasDoneInitialMeasure:s,popper:i,show:l,...c},u)=>{e=vb(e,"tooltip");let d=vy(),[f]=(null==t?void 0:t.split("-"))||[],p=vS(f,d),m=r;return l&&!s&&(m={...r,...vk(null==i?void 0:i.strategy)}),(0,h.jsxs)("div",{ref:u,style:m,role:"tooltip","x-placement":f,className:cM()(n,e,`bs-tooltip-${p}`),...c,children:[(0,h.jsx)("div",{className:"tooltip-arrow",...o}),(0,h.jsx)("div",{className:`${e}-inner`,children:a})]})});vj.displayName="Tooltip";var vC=Object.assign(vj,{TOOLTIP_OFFSET:[0,6]}),vP=g.createContext(null),vN="unmounted",vO="exited",vT="entering",vA="entered",vM="exiting",vR=function(e){function t(t,n){var r,a=e.call(this,t,n)||this,o=n&&!n.isMounting?t.enter:t.appear;return a.appearStatus=null,t.in?o?(r=vO,a.appearStatus=vT):r=vA:r=t.unmountOnExit||t.mountOnEnter?vN:vO,a.state={status:r},a.nextCallback=null,a}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,c5(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===vN?{status:vO}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==vT&&n!==vA&&(t=vT):(n===vT||n===vA)&&(t=vM)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===vT){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:ic.findDOMNode(this);n&&n.scrollTop}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===vO&&this.setState({status:vN})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,a=this.props.nodeRef?[r]:[ic.findDOMNode(this),r],o=a[0],s=a[1],i=this.getTimeouts(),l=r?i.appear:i.enter;(e||n)&&1?(this.props.onEnter(o,s),this.safeSetState({status:vT},function(){t.props.onEntering(o,s),t.onTransitionEnd(l,function(){t.safeSetState({status:vA},function(){t.props.onEntered(o,s)})})})):this.safeSetState({status:vA},function(){t.props.onEntered(o)})},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:ic.findDOMNode(this);t?(this.props.onExit(r),this.safeSetState({status:vM},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:vO},function(){e.props.onExited(r)})})})):this.safeSetState({status:vO},function(){e.props.onExited(r)})},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:ic.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(!n||r)return void setTimeout(this.nextCallback,0);if(this.props.addEndListener){var a=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=a[0],s=a[1];this.props.addEndListener(o,s)}null!=e&&setTimeout(this.nextCallback,e)},n.render=function(){var e=this.state.status;if(e===vN)return null;var t=this.props,n=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,ct(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return g.createElement(vP.Provider,{value:null},"function"==typeof n?n(e,r):g.cloneElement(g.Children.only(n),r))},t}(g.Component);function vz(){}vR.contextType=vP,vR.propTypes={},vR.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:vz,onEntering:vz,onEntered:vz,onExit:vz,onExiting:vz,onExited:vz},vR.UNMOUNTED=vN,vR.EXITED=vO,vR.ENTERING=vT,vR.ENTERED=vA,vR.EXITING=vM;var vL=/([A-Z])/g,vI=/^ms-/;function vD(e){return e.replace(vL,"-$1").toLowerCase().replace(vI,"-ms-")}var vH=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i,vF=function(e,t){var n,r,a="",o="";if("string"==typeof t){return e.style.getPropertyValue(vD(t))||((r=dH(n=e))&&r.defaultView||window).getComputedStyle(n,void 0).getPropertyValue(vD(t))}Object.keys(t).forEach(function(n){var r=t[n];r||0===r?n&&vH.test(n)?o+=n+"("+r+") ":a+=vD(n)+": "+r+";":e.style.removeProperty(vD(n))}),o&&(a+="transform: "+o+";"),e.style.cssText+=";"+a};function vB(e,t){let n=vF(e,t)||"",r=-1===n.indexOf("ms")?1e3:1;return parseFloat(n)*r}function v$(e,t){let n=vB(e,"transitionDuration"),r=vB(e,"transitionDelay"),a=function(e,t,n){null==n&&(a=-1===(r=vF(e,"transitionDuration")||"").indexOf("ms")?1e3:1,n=parseFloat(r)*a||0);var r,a,o,s,i,l=(o=!1,s=setTimeout(function(){o||function(e,t,n,r){if(void 0===n&&(n=!1),void 0===r&&(r=!0),e){var a=document.createEvent("HTMLEvents");a.initEvent(t,n,r),e.dispatchEvent(a)}}(e,"transitionend",!0)},n+5),i=dD(e,"transitionend",function(){o=!0},{once:!0}),function(){clearTimeout(s),i()}),c=dD(e,"transitionend",t);return function(){l(),c()}}(e,n=>{n.target===e&&(a(),t(n))},n+r)}function vV(e){return e&&"setState"in e?ic.findDOMNode(e):null!=e?e:null}let vq=g.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:r,onExiting:a,onExited:o,addEndListener:s,children:i,childRef:l,...c},u)=>{let d=(0,g.useRef)(null),f=h5(d,l),p=e=>{f(vV(e))},m=e=>t=>{e&&d.current&&e(d.current,t)},v=(0,g.useCallback)(m(e),[e]),b=(0,g.useCallback)(m(t),[t]),y=(0,g.useCallback)(m(n),[n]),w=(0,g.useCallback)(m(r),[r]),x=(0,g.useCallback)(m(a),[a]),S=(0,g.useCallback)(m(o),[o]),k=(0,g.useCallback)(m(s),[s]);return(0,h.jsx)(vR,{ref:u,...c,onEnter:v,onEntered:y,onEntering:b,onExit:w,onExited:S,onExiting:x,addEndListener:k,nodeRef:d,children:"function"==typeof i?(e,t)=>i(e,{...t,ref:p}):g.cloneElement(i,{ref:p})})});vq.displayName="TransitionWrapper";let vU={[vT]:"show",[vA]:"show"},vW=g.forwardRef(({className:e,children:t,transitionClasses:n={},onEnter:r,...a},o)=>{let s={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...a},i=(0,g.useCallback)((e,t)=>{e.offsetHeight,null==r||r(e,t)},[r]);return(0,h.jsx)(vq,{ref:o,addEndListener:v$,...s,onEnter:i,childRef:dY(t),children:(r,a)=>g.cloneElement(t,{...a,className:cM()("fade",e,t.props.className,vU[r],n[r])})})});vW.displayName="Fade";var vY=vW;let vK=g.forwardRef(({children:e,transition:t=vY,popperConfig:n={},rootClose:r=!1,placement:a="top",show:o=!1,...s},i)=>{var l;let c,u,d,f,p,m=(0,g.useRef)({}),[v,b]=(0,g.useState)(null),[y,w]=(l=s.offset,c=(0,g.useRef)(null),u=vb(void 0,"popover"),d=vb(void 0,"tooltip"),f=(0,g.useMemo)(()=>({name:"offset",options:{offset:()=>{if(l)return l;if(c.current){if(vh(c.current,u))return vE.POPPER_OFFSET;if(vh(c.current,d))return vC.TOOLTIP_OFFSET}return[0,0]}}}),[l,u,d]),[c,[f]]),x=h5(i,y),S=!0===t?vY:t||void 0,k=(p=vd(e=>{b(e),null==n||null==n.onFirstUpdate||n.onFirstUpdate(e)}),(0,g.useCallback)(function(...e){return p.current&&p.current(...e)},[p]));return vp(()=>{v&&s.target&&(null==m.current.scheduleUpdate||m.current.scheduleUpdate())},[v,s.target]),(0,g.useEffect)(()=>{o||b(null)},[o]),(0,h.jsx)(vu,{...s,ref:x,popperConfig:{...n,modifiers:w.concat(n.modifiers||[]),onFirstUpdate:k},transition:S,rootClose:r,placement:a,show:o,children:(r,{arrowProps:a,popper:o,show:s})=>{var i;!function(e,t){let{ref:n}=e,{ref:r}=t;e.ref=n.__wrapped||(n.__wrapped=e=>n(vV(e))),t.ref=r.__wrapped||(r.__wrapped=e=>r(vV(e)))}(r,a);let l=null==o?void 0:o.placement,c=Object.assign(m.current,{state:null==o?void 0:o.state,scheduleUpdate:null==o?void 0:o.update,placement:l,outOfBoundaries:(null==o||null==(i=o.state)||null==(i=i.modifiersData.hide)?void 0:i.isReferenceHidden)||!1,strategy:n.strategy}),u=!!v;return"function"==typeof e?e({...r,placement:l,show:s,...!t&&s&&{className:"show"},popper:c,arrowProps:a,hasDoneInitialMeasure:u}):g.cloneElement(e,{...r,placement:l,arrowProps:a,popper:c,hasDoneInitialMeasure:u,className:cM()(e.props.className,!t&&s&&"show"),style:{...e.props.style,...r.style}})}})});function vQ(e,t,n){let[r]=t,a=r.currentTarget,o=r.relatedTarget||r.nativeEvent[n];o&&o===a||d$(a,o)||e(...t)}vK.displayName="Overlay",il().oneOf(["click","hover","focus"]);var vG=({trigger:e=["hover","focus"],overlay:t,children:n,popperConfig:r={},show:a,defaultShow:o=!1,onToggle:s,delay:i,placement:l,flip:c=l&&-1!==l.indexOf("auto"),...u})=>{var d,f,p,m,v,b,y;let w,x,S,k,_,E,j=(0,g.useRef)(null),C=h5(j,dY(n)),P=(_=(w=(0,g.useRef)(!0),x=(0,g.useRef)(()=>w.current),(0,g.useEffect)(()=>(w.current=!0,()=>{w.current=!1}),[]),x.current),E=(0,g.useRef)(),y=()=>clearTimeout(E.current),(S=(0,g.useRef)(y)).current=y,k=S,(0,g.useEffect)(()=>()=>k.current(),[]),(0,g.useMemo)(()=>{let e=()=>clearTimeout(E.current);return{set:function(t,n=0){_()&&(e(),n<=0x7fffffff?E.current=setTimeout(t,n):function e(t,n,r){let a=r-Date.now();t.current=a<=0x7fffffff?setTimeout(n,a):setTimeout(()=>e(t,n,r),0x7fffffff)}(E,t,Date.now()+n))},clear:e,handleRef:E}},[])),N=(0,g.useRef)(""),[O,T]=(d=(0,g.useRef)(void 0!==a),p=(f=(0,g.useState)(o))[0],m=f[1],v=void 0!==a,b=d.current,d.current=v,!v&&b&&p!==o&&m(o),[v?a:p,(0,g.useCallback)(function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];s&&s.apply(void 0,[e].concat(n)),m(e)},[s])]),A=i&&"object"==typeof i?i:{show:i,hide:i},{onFocus:M,onBlur:R,onClick:z}="function"!=typeof n?g.Children.only(n).props:{},L=(0,g.useCallback)(()=>{(P.clear(),N.current="show",A.show)?P.set(()=>{"show"===N.current&&T(!0)},A.show):T(!0)},[A.show,T,P]),I=(0,g.useCallback)(()=>{(P.clear(),N.current="hide",A.hide)?P.set(()=>{"hide"===N.current&&T(!1)},A.hide):T(!1)},[A.hide,T,P]),D=(0,g.useCallback)((...e)=>{L(),null==M||M(...e)},[L,M]),H=(0,g.useCallback)((...e)=>{I(),null==R||R(...e)},[I,R]),F=(0,g.useCallback)((...e)=>{T(!O),null==z||z(...e)},[z,T,O]),B=(0,g.useCallback)((...e)=>{vQ(L,e,"fromElement")},[L]),$=(0,g.useCallback)((...e)=>{vQ(I,e,"toElement")},[I]),V=null==e?[]:[].concat(e),q={ref:e=>{C(vV(e))}};return -1!==V.indexOf("click")&&(q.onClick=F),-1!==V.indexOf("focus")&&(q.onFocus=D,q.onBlur=H),-1!==V.indexOf("hover")&&(q.onMouseOver=B,q.onMouseOut=$),(0,h.jsxs)(h.Fragment,{children:["function"==typeof n?n(q):(0,g.cloneElement)(n,q),(0,h.jsx)(vK,{...u,show:O,onHide:I,flip:c,placement:l,popperConfig:r,target:j.current,children:t})]})};let vJ=e=>{let t,n,r=(0,v.c)(6),{children:a,placement:o,text:s}=e;return r[0]!==s?(t=(0,h.jsx)(vC,{children:s}),r[0]=s,r[1]=t):t=r[1],r[2]!==a||r[3]!==o||r[4]!==t?(n=(0,h.jsx)(vG,{placement:o,overlay:t,children:a}),r[2]=a,r[3]=o,r[4]=t,r[5]=n):n=r[5],n};vJ.propTypes={children:il().element.isRequired,placement:il().string,text:il().string.isRequired};let vX=e=>{let t,n,r,a,o,s,i=(0,v.c)(18),{id:l,notes:c,placeholderText:u,tooltipText:d}=e,[f,p]=(0,g.useState)(!1);return i[0]!==f?(t=()=>{p(!f)},i[0]=f,i[1]=t):t=i[1],i[2]===Symbol.for("react.memo_cache_sentinel")?(n=(0,h.jsx)(tP,{type:"3",className:"o-expandable__label",children:"Additional information and examples"}),i[2]=n):n=i[2],i[3]!==f?(r=(0,h.jsx)("span",{className:"o-expandable__cues",children:f?(0,h.jsx)("span",{className:"o-expandable__cue-close",role:"img","aria-label":"Hide",children:(0,h.jsx)("span",{className:"u-visually-hidden-on-mobile",children:(0,h.jsx)(N,{name:"up",isPresentational:!0})})}):(0,h.jsx)("span",{className:"o-expandable__cue-open",role:"img","aria-label":"Show",children:(0,h.jsx)("span",{className:"u-visually-hidden-on-mobile",children:(0,h.jsx)(N,{name:"down",isPresentational:!0})})})}),i[3]=f,i[4]=r):r=i[4],i[5]!==f||i[6]!==t||i[7]!==r?(a=(0,h.jsxs)("button",{className:"o-expandable__header","aria-expanded":f,onClick:t,title:"Expand content",children:[n,r]}),i[5]=f,i[6]=t,i[7]=r,i[8]=a):a=i[8],i[9]!==l||i[10]!==f||i[11]!==c||i[12]!==u||i[13]!==d?(o=f?(0,h.jsxs)("div",{className:"o-expandable__content",children:[d&&u?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(t_,{isInline:!0,className:"descriptor",htmlFor:"example-".concat(l),children:"Complex example:"}),(0,h.jsx)("span",{className:"u-visually-hidden",children:d}),(0,h.jsx)(vJ,{text:d,children:u.length>30?(0,h.jsx)(tD,{className:"example-input",id:"example-".concat(l),rows:2,placeholder:"",readOnly:!0,value:u}):(0,h.jsx)(tH,{className:"example-input",id:"example-".concat(l),readOnly:!0,value:u})})]}):null,(0,h.jsx)(tP,{type:"4",className:"descriptor",children:"Notes:"}),(0,h.jsx)(O,{children:c.map(vZ)})]}):null,i[9]=l,i[10]=f,i[11]=c,i[12]=u,i[13]=d,i[14]=o):o=i[14],i[15]!==a||i[16]!==o?(s=(0,h.jsxs)("div",{className:"o-expandable complex-example",children:[a,o]}),i[15]=a,i[16]=o,i[17]=s):s=i[17],s};function vZ(e,t){return(0,h.jsx)(z,{children:e},t)}vX.propTypes={id:il().string.isRequired,notes:il().array.isRequired,placeholderText:il().string,tooltipText:il().string};let v0=e=>{let t,n,r,a,o=(0,v.c)(13),{id:s,label:i,tooltip:l,value:c,className:u}=e;return o[0]!==s||o[1]!==i?(t=(0,h.jsx)(t_,{isInline:!0,className:"u-visually-hidden",htmlFor:s,children:i}),o[0]=s,o[1]=i,o[2]=t):t=o[2],o[3]!==u||o[4]!==s||o[5]!==c?(n=(0,h.jsx)(tH,{id:s,className:u,readOnly:!0,value:c}),o[3]=u,o[4]=s,o[5]=c,o[6]=n):n=o[6],o[7]!==n||o[8]!==l?(r=(0,h.jsx)(vJ,{text:l,children:n}),o[7]=n,o[8]=l,o[9]=r):r=o[9],o[10]!==t||o[11]!==r?(a=(0,h.jsxs)(h.Fragment,{children:[t,r]}),o[10]=t,o[11]=r,o[12]=a):a=o[12],a};v0.propTypes={id:il().string.isRequired,label:il().string.isRequired,tooltip:il().string.isRequired,value:il().string.isRequired,className:il().string};let v1=()=>{let e,t,n,r,a,o,s,i,l,c,u,d,f,p,m,g,b,y,w,x,S,k,_,E,j,C,P,N,T,A,M,R,I,D,H=(0,v.c)(34);return H[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,h.jsx)(tP,{type:"3",children:"Search tips"}),H[0]=e):e=H[0],H[1]===Symbol.for("react.memo_cache_sentinel")?(t=(0,h.jsxs)("div",{children:[e,(0,h.jsxs)(O,{children:[(0,h.jsx)(z,{children:"Hover over the examples within the sample search bars below to see what their results should return"}),(0,h.jsx)(z,{children:'When searching within "All data", terms must be found in the same field to be considered a match'}),(0,h.jsx)(z,{children:"The search function will look for any variations of the word that includes the stem – for example, if deferment is searched, it would return the following variations: deferment, defer, deferred, deferral, etc."})]})]}),H[1]=t):t=H[1],H[2]===Symbol.for("react.memo_cache_sentinel")?(n=(0,h.jsx)(tP,{type:"4",children:"AND / OR / NOT"}),r=(0,h.jsx)(v0,{id:"example-and",label:"Use AND when results must contain all terms",tooltip:"Results would include both call (call, called, calling, etc.) as well as harass (harass, harassed, harassing, etc.).",value:"call AND harass"}),a=(0,h.jsx)(v0,{id:"example-or",label:"Use OR when results should contain at least one of the terms",tooltip:"Results would include either loan (loan, loans, loaned, etc.) or mortage (mortgage, mortgages, etc.).",value:"loan OR mortgage"}),o=(0,h.jsx)(v0,{id:"example-not",label:"Use NOT when results should contain at least one of the terms",tooltip:"Results would only include claim (claim, claims, claimed, etc.) and cannot include the term accident (accident, accidents, etc.)",value:"claim NOT accident"}),H[2]=n,H[3]=r,H[4]=a,H[5]=o):(n=H[2],r=H[3],a=H[4],o=H[5]),H[6]===Symbol.for("react.memo_cache_sentinel")?(s=(0,h.jsxs)("div",{className:"tip-description",children:[(0,h.jsx)(tM,{children:"Use AND when results must contain both terms"}),(0,h.jsx)(tM,{children:"Use OR when results should contain at least one of the terms"}),(0,h.jsx)(tM,{children:"Use NOT when results must not contain the term"})]}),H[6]=s):s=H[6],H[7]===Symbol.for("react.memo_cache_sentinel")?(i=(0,h.jsxs)("div",{className:"tip content-l__col content-l__col-1-3",children:[n,r,a,o,s,(0,h.jsx)(vX,{id:"and-or-not",notes:["The Boolean operators (AND / OR / NOT) must be capitalized","Boolean operators do not honor precedence rules, so parentheses should be used whenever multiple operators are used together – if they are not used correctly (i.e., having multiple operators outside of parentheses), then your results might not return what you intended."],placeholderText:"call AND (harass* OR annoy* OR threat OR repeat) AND NOT spam",tooltipText:"This example would return results that include the word call (called, calling, etc.) and one of the words in the parentheses, but exclude the word spam (spammed, spamming, etc.)."})]}),H[7]=i):i=H[7],H[8]===Symbol.for("react.memo_cache_sentinel")?(c=(0,h.jsx)(tP,{type:"4",children:"Must/Must not contain"}),u=(0,h.jsx)(v0,{id:"example-must-plus",label:"Use + if the search must contain the selected term",tooltip:"Results must include the word foreclosure (foreclosure, foreclosed, etc.).",value:"+foreclosure"}),l=(0,h.jsx)(v0,{id:"example-must-minus",label:"Use - if the search must not contain the selected term",tooltip:"Results cannot include the word collect (collect, collects, collecting, etc.).",value:"-collect"}),H[8]=l,H[9]=c,H[10]=u):(l=H[8],c=H[9],u=H[10]),H[11]===Symbol.for("react.memo_cache_sentinel")?(d=(0,h.jsxs)("div",{className:"tip-description",children:[(0,h.jsx)(tM,{children:"Use + if the search must contain the selected term"}),(0,h.jsx)(tM,{children:"Use - if the search must not contain the selected term"})]}),H[11]=d):d=H[11],H[12]===Symbol.for("react.memo_cache_sentinel")?(f=(0,h.jsxs)("div",{className:"tip content-l__col content-l__col-1-3",children:[c,u,l,d,(0,h.jsx)(vX,{id:"must-or-must-not",notes:['Since the terms "insurance" and "claim" do not have to be included in the results, their appearance will give the result a greater relevance score.',"There cannot be a space between the operator (+ / -) and searched term."],placeholderText:"insurance claim +agent +car -accident",tooltipText:"Results must include the terms agent and car but exclude accident – the terms insurance and claim are optional"})]}),H[12]=f):f=H[12],H[13]===Symbol.for("react.memo_cache_sentinel")?(p=(0,h.jsx)(tP,{type:"4",children:"Wildcard search"}),m=(0,h.jsx)(v0,{id:"example-wc-star",label:"Use * to substitute any consecutive number of characters.",tooltip:'Results would include all terms that start with the base "report" (report, reports, reported, reporting, etc.) and "$*.00" would include all variations of whole number dollar values ($8.00, $1234.00, etc.).',value:"report* AND $*.00"}),g=(0,h.jsx)(v0,{id:"example-wc-question",label:"Use ? to replace any single character anywhere in a term.",tooltip:"Results would return variations such as: woman, women, etc.",value:"wom?n"}),H[13]=p,H[14]=m,H[15]=g):(p=H[13],m=H[14],g=H[15]),H[16]===Symbol.for("react.memo_cache_sentinel")?(b=(0,h.jsxs)("div",{className:"tip content-l__col content-l__col-1-3",children:[p,m,g,(0,h.jsxs)("div",{className:"tip-description",children:[(0,h.jsx)(tM,{children:"Use * to substitute any consecutive number of characters."}),(0,h.jsx)(tM,{children:"Use ? to replace any single character anywhere in a term."})]})]}),H[16]=b):b=H[16],H[17]===Symbol.for("react.memo_cache_sentinel")?(y=(0,h.jsx)(tP,{type:"4",children:"Proximity search"}),w=(0,h.jsx)(v0,{id:"example-proximity",className:"example-input",label:'Use ~[#] at the end of a phrase to search for terms with up to that number of gap words between them; Order does not matter and the terms should be in a single set of quotation marks (" ").',tooltip:'Results would include the terms "auto", "loan", and "default" in any order, with up to three (3) gap words in between them. For example, results could include: "defaulted auto loan", "auto loan that went into default", "Auto Loan with the same defaulted", etc.',value:'"auto loan default"~3'}),H[17]=y,H[18]=w):(y=H[17],w=H[18]),H[19]===Symbol.for("react.memo_cache_sentinel")?(x=(0,h.jsx)("div",{className:"tip-description",children:(0,h.jsx)(tM,{children:'Use ~[#] at the end of a phrase to search for terms with up to that number of gap words between them; Order does not matter and the terms should be in a single set of quotation marks (" ").'})}),H[19]=x):x=H[19],H[20]===Symbol.for("react.memo_cache_sentinel")?(S=(0,h.jsxs)("div",{className:"tip content-l__col content-l__col-1-3",children:[y,w,x,(0,h.jsx)(vX,{id:"proximity",notes:['Proximity phrase search must use straight quotes (" ") versus curly quotes (“ ”), or else the search function will not perform properly',"The closer the specified terms are within the data, the more relevant the search results become."]})]}),H[20]=S):S=H[20],H[21]===Symbol.for("react.memo_cache_sentinel")?(k=(0,h.jsx)(tP,{type:"4",children:"Fuzzy search"}),_=(0,h.jsx)(v0,{id:"example-fuzzy",className:"example-input",label:"Use ~1 at the end of a term to search for terms that are spelled similarly to your keyword within a certain margin of error.",tooltip:"Results would include the correct spelling of escrow, as well as other (potentially misspelled) versions, such as: escrow, escrowed, escro, esrow, etc.",value:"escrow~1"}),H[21]=k,H[22]=_):(k=H[21],_=H[22]),H[23]===Symbol.for("react.memo_cache_sentinel")?(E=(0,h.jsx)("div",{className:"tip-description",children:(0,h.jsx)(tM,{children:"Use ~1 at the end of a term to search for terms that are spelled similarly to your keyword within a certain margin of error."})}),H[23]=E):E=H[23],H[24]===Symbol.for("react.memo_cache_sentinel")?(j=(0,h.jsxs)("div",{className:"tip content-l__col content-l__col-1-3",children:[k,_,E,(0,h.jsx)(vX,{id:"fuzzy",notes:["The search looks for a maximum of two changes in the term, where a change is the insertion, deletion or substitution of a single character or transposition of two adjacent characters (this catches about 80% of misspelled words).","Fuzzy term search can only be used with single terms, it does not support phrases."],placeholderText:"escrow~1 -escrow -escrowed",tooltipText:'Results would return the various misspellings of the word "escrow" that fuzzy term search identifies (after excluding the escrow and escrowed).'})]}),H[24]=j):j=H[24],H[25]===Symbol.for("react.memo_cache_sentinel")?(C=(0,h.jsx)(tP,{type:"4",children:"Boost search"}),P=(0,h.jsx)(v0,{id:"example-boost",className:"example-input",label:"Use ^[#] at the end of a term or terms to increase or decrease its relevance compared to the other term(s).",tooltip:'Results would be sorted by relevance in favor of the term "pay"',value:"pay^2 OR credit"}),H[25]=C,H[26]=P):(C=H[25],P=H[26]),H[27]===Symbol.for("react.memo_cache_sentinel")?(N=(0,h.jsx)("div",{className:"tip-description",children:(0,h.jsx)(tM,{children:"Use ^[#] at the end of a term or terms to increase or decrease its relevance compared to the other term(s)."})}),H[27]=N):N=H[27],H[28]===Symbol.for("react.memo_cache_sentinel")?(T=(0,h.jsxs)("div",{className:"tips content-l",children:[i,f,b,S,j,(0,h.jsxs)("div",{className:"tip content-l__col content-l__col-1-3",children:[C,P,N,(0,h.jsx)(vX,{id:"boost",notes:["A boost value between 0 and 1.0 decreases the relevance score while a value greater than 1.0 increases the relevance score."]})]})]}),H[28]=T):T=H[28],H[29]===Symbol.for("react.memo_cache_sentinel")?(A=(0,h.jsx)(tP,{type:"3",children:"Additional notes:"}),H[29]=A):A=H[29],H[30]===Symbol.for("react.memo_cache_sentinel")?(M=(0,h.jsx)(z,{children:'Putting a phrase only in quotations (" ") will search for the words in that order, but it will not be an exact match – meaning it may include stemmed versions of the term.'}),R=(0,h.jsx)(z,{children:'The default operator is "AND", meaning if you search "foreclosure house", it will search results that include both words (i.e., foreclosure AND house).'}),I=(0,h.jsx)(z,{children:"Capitalization does not have an effect on searched terms (except for the AND / OR / NOT operators)."}),H[30]=M,H[31]=R,H[32]=I):(M=H[30],R=H[31],I=H[32]),H[33]===Symbol.for("react.memo_cache_sentinel")?(D=(0,h.jsxs)("div",{className:"advanced-tips",children:[t,T,(0,h.jsxs)("div",{className:"advanced-tips__footer",children:[A,(0,h.jsxs)(O,{children:[M,R,I,(0,h.jsxs)(z,{children:[(0,h.jsx)(L,{to:"https://docs.opensearch.org/latest/getting-started/intro/",target:"_blank",rel:"noopener noreferrer",iconRight:"external-link",label:"Find out more"})," ","about OpenSearch"]})]})]})]}),H[33]=D):D=H[33],D},v2=e=>{let t,n,r,a,o,s,i,l=(0,v.c)(22),{ariaLabel:c,className:u,htmlId:d,isDisabled:f,handleChange:p,handleClear:m,handlePressEnter:g,placeholder:b,value:y}=e,w=void 0!==f&&f,x=void 0===b?"Enter your search text":b;l[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,h.jsx)(N,{name:"search",isPresentational:!0}),l[0]=t):t=l[0],l[1]!==c||l[2]!==d?(n=(0,h.jsx)("label",{htmlFor:d,className:"o-search-input__input-label","aria-label":c,children:t}),l[1]=c,l[2]=d,l[3]=n):n=l[3];let S="a-text-input a-text-input--full "+(void 0===u?"":u),k=x||c;return l[4]!==p||l[5]!==g||l[6]!==d||l[7]!==w||l[8]!==x||l[9]!==S||l[10]!==k||l[11]!==y?(r=(0,h.jsx)("input",{type:"search",id:d,disabled:w,value:y,onChange:p,onKeyDown:g,className:S,placeholder:x,title:k,autoComplete:"off",maxLength:75}),l[4]=p,l[5]=g,l[6]=d,l[7]=w,l[8]=x,l[9]=S,l[10]=k,l[11]=y,l[12]=r):r=l[12],l[13]!==m?(a=(0,h.jsx)(fH,{onClear:m}),l[13]=m,l[14]=a):a=l[14],l[15]!==n||l[16]!==r||l[17]!==a?(o=(0,h.jsxs)("div",{className:"o-search-input__input",children:[n,r,a]}),l[15]=n,l[16]=r,l[17]=a,l[18]=o):o=l[18],l[19]===Symbol.for("react.memo_cache_sentinel")?(s=(0,h.jsx)(tw,{type:"submit",label:"Search"}),l[19]=s):s=l[19],l[20]!==o?(i=(0,h.jsxs)("div",{className:"o-search-input",children:[o,s]}),l[20]=o,l[21]=i):i=l[21],i},v3=[{value:"all",label:"All data"},{value:"company",label:"Company name"}],v7=()=>{let e,t,n,r,a,o,s,i,l,c,u,d,f,p,m,b,y=(0,v.c)(47),w=rE(),x=rC(lX),S=rC(lZ),k=rC(pt),[_,E]=(0,g.useState)(S),[j,C]=(0,g.useState)(!1),[P,N]=(0,g.useState)(!0),O=j?_:S;y[0]!==w?(e=e=>{e?w(i0()):w(i3())},y[0]=w,y[1]=e):e=y[1];let T=e;y[2]!==w||y[3]!==O?(t=e=>{e.preventDefault(),w(lN(O)),C(!1)},y[2]=w,y[3]=O,y[4]=t):t=y[4];let A=t;y[5]!==w?(n=e=>{(null==e?void 0:e.value)&&w(lP(e.value))},y[5]=w,y[6]=n):n=y[6];let M=n;y[7]!==k||y[8]!==T?(r=e=>{e.preventDefault(),T(k)},y[7]=k,y[8]=T,y[9]=r):r=y[9];let R=r;y[10]!==w?(a=e=>{w(lN(e&&e[0]?e[0].key:""))},y[10]=w,y[11]=a):a=y[11];let z=a;y[12]!==w?(o=()=>{w(lN(""))},y[12]=w,y[13]=o):o=y[13];let I=o;y[14]!==w||y[15]!==P?(s=()=>{P&&(w(lN("")),E(""),C(!1)),N(!0)},y[14]=w,y[15]=P,y[16]=s):s=y[16];let D=s;y[17]!==w?(i=e=>{"Enter"===e.key&&(N(!1),w(lN(e.target.value)),E(e.target.value),C(!1))},y[17]=w,y[18]=i):i=y[18];let H=i;y[19]!==M||y[20]!==x?(l=(0,h.jsx)("div",{className:"search-field-select",children:(0,h.jsx)(tR,{id:"searchField",label:"Choose which field will be searched",options:v3,value:x,onChange:M})}),y[19]=M,y[20]=x,y[21]=l):l=y[21],y[22]!==O||y[23]!==D||y[24]!==H||y[25]!==z||y[26]!==I||y[27]!==x||y[28]!==S?(c=(0,h.jsx)("div",{className:"search-bar__input",children:"company"===x?(0,h.jsx)(fB,{ariaLabel:"Enter your search term(s)",htmlId:"searchText",defaultValue:S,handleChange:z,handleClear:I,handlePressEnter:H,handleSelectionOverride:z,hasClearButton:!0,hasSearchButton:!0,placeholder:"",fieldName:"company"}):(0,h.jsx)(v2,{handleChange:e=>{E(e.target.value),C(!0)},handleClear:D,handlePressEnter:H,htmlId:"searchText",value:O,ariaLabel:"Enter the term you want to search for",placeholder:""})}),y[22]=O,y[23]=D,y[24]=H,y[25]=z,y[26]=I,y[27]=x,y[28]=S,y[29]=c):c=y[29],y[30]===Symbol.for("react.memo_cache_sentinel")?(u=(0,h.jsx)(L,{className:"u-visually-hidden",to:"#search-summary",label:"Skip to Results"}),y[30]=u):u=y[30],y[31]!==l||y[32]!==c?(d=(0,h.jsxs)("div",{className:"search-bar__controls",children:[l,c,u]}),y[31]=l,y[32]=c,y[33]=d):d=y[33],y[34]!==A||y[35]!==d?(f=(0,h.jsx)("form",{action:"",onSubmit:A,children:d}),y[34]=A,y[35]=d,y[36]=f):f=y[36];let F=k?"Hide search tips":"Show search tips",B=k?"minus":"plus";return y[37]!==R||y[38]!==F||y[39]!==B?(p=(0,h.jsx)("div",{className:"search-bar__tips",children:(0,h.jsx)(tw,{label:F,isLink:!0,iconLeft:B,onClick:R})}),y[37]=R,y[38]=F,y[39]=B,y[40]=p):p=y[40],y[41]!==k?(m=k?(0,h.jsx)(v1,{}):null,y[41]=k,y[42]=m):m=y[42],y[43]!==f||y[44]!==p||y[45]!==m?(b=(0,h.jsxs)("div",{className:"search-bar",role:"search",children:[f,p,m]}),y[43]=f,y[44]=p,y[45]=m,y[46]=b):b=y[46],b},v5=()=>{var e;let t,n,r=(0,v.c)(6),{data:a,isLoading:o,isFetching:s}=io("meta"),i=null==a||null==(e=a._meta)?void 0:e.last_indexed;if(r[0]!==i){let e;t=i?(0,h.jsxs)("span",{className:"search-panel__last-updated",children:["(Last updated ",(e=sM()(new Date(i)).utc(),"".concat(sD[e.month()]," ").concat(e.date(),", ").concat(e.year())),")"]}):null,r[0]=i,r[1]=t}else t=r[1];let l=t;return r[2]!==s||r[3]!==o||r[4]!==l?(n=o||s?(0,h.jsx)(iS,{isLoading:!0}):(0,h.jsxs)(tW,{className:"search-panel",children:[(0,h.jsxs)(tP,{type:"3",children:["Search complaint data ",l]}),(0,h.jsx)(v7,{}),(0,h.jsx)(h2,{})]}),r[2]=s,r[3]=o,r[4]=l,r[5]=n):n=r[5],n},v4=()=>{let e,t,n,r,a,o,s,i,l,c,u,d,f,p,m,b,y,w,x,S,k=(0,v.c)(18);f=(0,v.c)(7),p=l2(),m=nT(),f[0]!==p||f[1]!==m.pathname||f[2]!==m.search?(u=()=>{var e,t;p((e=m.pathname,t=function(e,t){s5((t={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,types:Object.create(null),...t}).arrayFormatSeparator);let n=function(e){let t;switch(e.arrayFormat){case"index":return(e,n,r)=>{if(t=/\[(\d*)]$/.exec(e),e=e.replace(/\[\d*]$/,""),!t){r[e]=n;return}void 0===r[e]&&(r[e]={}),r[e][t[1]]=n};case"bracket":return(e,n,r)=>{if(t=/(\[])$/.exec(e),e=e.replace(/\[]$/,""),!t){r[e]=n;return}if(void 0===r[e]){r[e]=[n];return}if(!Array.isArray(r[e])){r[e]=[r[e],n];return}r[e].push(n)};case"colon-list-separator":return(e,n,r)=>{if(t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),!t){r[e]=n;return}if(void 0===r[e]){r[e]=[n];return}if(!Array.isArray(r[e])){r[e]=[r[e],n];return}r[e].push(n)};case"comma":case"separator":return(t,n,r)=>{let a="string"==typeof n&&n.includes(e.arrayFormatSeparator)?n.split(e.arrayFormatSeparator).map(t=>s6(t,e)):null===n?n:s6(n,e);r[t]=a};case"bracket-separator":return(t,n,r)=>{let a=/(\[])$/.test(t);if(t=t.replace(/\[]$/,""),!a){r[t]=n?s6(n,e):n;return}let o=null===n?[]:s6(n,e).split(e.arrayFormatSeparator);if(void 0===r[t]){r[t]=o;return}for(let e of(Array.isArray(r[t])||(r[t]=[r[t]]),o))r[t].push(e)};default:return(e,t,n)=>{if(void 0===n[e]){n[e]=t;return}Array.isArray(n[e])?n[e].push(t):n[e]=[n[e],t]}}}(t),r=Object.create(null);if("string"!=typeof e||!(e=e.trim().replace(/^[?#&]/,""))||/^&+$/.test(e))return r;let a=0,o=e.indexOf("&");-1===o&&(o=e.length);for(let s=o;s<=e.length;s++){if(s<e.length&&"&"!==e[s])continue;if(s===a){a=s+1;continue}let o=e.slice(a,s),i=t.decode?o.replaceAll("+"," "):o,[l,c]=function(e){if("string"!=typeof e)throw TypeError("Expected the arguments to be of type `string`");if(""===e)return[];let t=e.indexOf("=");return -1===t?[]:[e.slice(0,t),e.slice(t+1)]}(i);void 0===l&&(l=i),c=void 0===c?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?c:s6(c,t),n(s6(l,t),c,r),a=s+1}for(let[e,n]of Object.entries(r))if("object"==typeof n&&null!==n&&"string"!==t.types[e])for(let[r,a]of Object.entries(n)){let o=t.types[e],s="function"==typeof o?o:o?o.replace("[]",""):void 0;n[r]=s9(a,t,s)}else"object"==typeof n&&null!==n&&"string"===t.types[e]?r[e]=Object.values(n).join(t.arrayFormatSeparator):r[e]=s9(n,t,t.types[e]);return!1===t.sort?r:(!0===t.sort?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce((e,t)=>{let n=r[t];return e[t]=n&&"object"==typeof n&&!Array.isArray(n)?function e(t){return Array.isArray(t)?t.sort():"object"==typeof t?e(Object.keys(t)).sort((e,t)=>Number(e)-Number(t)).map(e=>t[e]):t}(n):n,e},Object.create(null))}(m.search),function(n,r){let a=r(),o=function(e){let t=rO({},e);for(let e of["search_after","tab"])Object.prototype.hasOwnProperty.call(t,e)&&delete t[e];for(let e of["size","page"])Object.prototype.hasOwnProperty.call(t,e)&&(t[e]=Number(t[e]));return t}(t),s=sM()(t.date_received_max).isValid()&&sM()(t.date_received_min).isValid(),{routes:i}=a;!(i.path===e&&pf()(i.params,o))&&s&&n(iJ(e,o))}))},f[0]=p,f[1]=m.pathname,f[2]=m.search,f[3]=u):u=f[3],f[4]!==p||f[5]!==m?(d=[m,p],f[4]=p,f[5]=m,f[6]=d):d=f[6],(0,g.useEffect)(u,d),w=(0,v.c)(4),x=l3(po),S=l2(),w[0]!==S||w[1]!==x?(b=()=>{var e;let t,n=(e=()=>{x!==window.innerWidth&&S(i8(window.innerWidth))},function(){for(var n=arguments.length,r=Array(n),a=0;a<n;a++)r[a]=arguments[a];clearTimeout(t),t=setTimeout(()=>{t=null,e(...r)},500)});return window.addEventListener("resize",n),n(),()=>window.removeEventListener("resize",n)},y=[S,x],w[0]=S,w[1]=x,w[2]=b,w[3]=y):(b=w[2],y=w[3]),(0,g.useEffect)(b,y);let _=rC(pr),E=hQ(),j=rE();k[0]!==j||k[1]!==_?(e=()=>{_&&j(i6())},k[0]=j,k[1]=_,k[2]=e):e=k[2],h0("afterprint",e),k[3]!==j||k[4]!==_?(t=()=>{_||j(i9())},k[3]=j,k[4]=_,k[5]=t):t=k[5],h0("beforeprint",t),k[6]!==_?(n=()=>{_&&setTimeout(v6,2e3)},r=[_],k[6]=_,k[7]=n,k[8]=r):(n=k[7],r=k[8]),(0,g.useEffect)(n,r);let C="content content--1-3 ccdb-content ".concat(_?"print":"");return k[9]===Symbol.for("react.memo_cache_sentinel")?(a=(0,h.jsx)(lt,{}),k[9]=a):a=k[9],k[10]===Symbol.for("react.memo_cache_sentinel")?(o=(0,h.jsxs)("div",{className:"content__wrapper",children:[(0,h.jsx)(v5,{}),(0,h.jsx)(pw,{}),(0,h.jsx)(pD,{})]}),s=(0,h.jsx)(hZ,{}),i=(0,h.jsx)(pU,{}),k[10]=o,k[11]=s,k[12]=i):(o=k[10],s=k[11],i=k[12]),k[13]!==E?(l=(0,h.jsx)(iS,{isLoading:E}),k[13]=E,k[14]=l):l=k[14],k[15]!==C||k[16]!==l?(c=(0,h.jsxs)("main",{className:C,role:"main",children:[a,o,s,i,l]}),k[15]=C,k[16]=l,k[17]=c):c=k[17],c};function v6(){print()}"/".replace(/\/$/,"").replace(/^$/,"/");(d=p||(p={})).Pop="POP",d.Push="PUSH",d.Replace="REPLACE";var v9=function(e){return e},v8="beforeunload";function ge(e){e.preventDefault(),e.returnValue=""}function gt(){var e=[];return{get length(){return e.length},push:function(t){return e.push(t),function(){e=e.filter(function(e){return e!==t})}},call:function(t){e.forEach(function(e){return e&&e(t)})}}}function gn(e){return t=>n=>{var r;let a,o,s=t(n),i=e.getState();if("routes/routeChanged"===n.type||!i.query.dateLastIndexed)return s;let l=(a=Object.keys((r=i).filters),o=Object.assign({},l$(r.query,["dateRange","company_received_min","company_received_max","date_received_min","date_received_max","searchText","searchField","search_after","size","page","sort"]),l$(r.filters,a),l$(r.view,["debug","tour"])),r.query.searchAfter&&(o.search_after=r.query.searchAfter),o),c=function(e){void 0===e&&(e={});var t=e.window,n=void 0===t?document.defaultView:t,r=n.history;function a(){var e=n.location,t=e.pathname,a=e.search,o=e.hash,s=r.state||{};return[s.idx,v9({pathname:t,search:a,hash:o,state:s.usr||null,key:s.key||"default"})]}var o=null;n.addEventListener("popstate",function(){if(o)d.call(o),o=null;else{var e=p.Pop,t=a(),n=t[0],r=t[1];if(d.length){if(null!=n){var s=l-n;s&&(o={action:e,location:r,retry:function(){b(-1*s)}},b(s))}}else g(e)}});var s=p.Pop,i=a(),l=i[0],c=i[1],u=gt(),d=gt();function f(e){var t,n,r,a,o,s,i;return"string"==typeof e?e:(r=void 0===(n=(t=e).pathname)?"/":n,o=void 0===(a=t.search)?"":a,i=void 0===(s=t.hash)?"":s,o&&"?"!==o&&(r+="?"===o.charAt(0)?o:"?"+o),i&&"#"!==i&&(r+="#"===i.charAt(0)?i:"#"+i),r)}function h(e,t){return void 0===t&&(t=null),v9(l6({pathname:c.pathname,hash:"",search:""},"string"==typeof e?function(e){var t={};if(e){var n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));var r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}(e):e,{state:t,key:Math.random().toString(36).substr(2,8)}))}function m(e,t){return[{usr:e.state,key:e.key,idx:t},f(e)]}function v(e,t,n){return!d.length||(d.call({action:e,location:t,retry:n}),!1)}function g(e){s=e;var t=a();l=t[0],c=t[1],u.call({action:s,location:c})}function b(e){r.go(e)}return null==l&&(l=0,r.replaceState(l6({},r.state,{idx:l}),"")),{get action(){return s},get location(){return c},createHref:f,push:function e(t,a){var o=p.Push,s=h(t,a);if(v(o,s,function(){e(t,a)})){var i=m(s,l+1),c=i[0],u=i[1];try{r.pushState(c,"",u)}catch(e){n.location.assign(u)}g(o)}},replace:function e(t,n){var a=p.Replace,o=h(t,n);if(v(a,o,function(){e(t,n)})){var s=m(o,l),i=s[0],c=s[1];r.replaceState(i,"",c),g(a)}},go:b,back:function(){b(-1)},forward:function(){b(1)},listen:function(e){return u.push(e)},block:function(e){var t=d.push(e);return 1===d.length&&n.addEventListener(v8,ge),function(){t(),d.length||n.removeEventListener(v8,ge)}}}}({basename:void 0}),u=c.location,{queryString:d}=i.routes,f=s8(l);return(""===d||d!==f)&&(c.push({pathname:u.pathname,search:"?"+f}),e.dispatch(iG(u.pathname,l))),s}}let gr=function(e){let t,n,r,a=function(e){let{thunk:t=!0,immutableCheck:n=!0,serializableCheck:r=!0,actionCreatorCheck:a=!0}=e??{},o=new aq;return t&&("boolean"==typeof t?o.push(aB):o.push(aF(t.extraArgument))),o},{reducer:o,middleware:s,devTools:i=!0,duplicateMiddlewareCheck:l=!0,preloadedState:c,enhancers:u}=e||{};if("function"==typeof o)t=o;else if(rz(o))t=rL(o);else throw Error(od(1));n="function"==typeof s?s(a):a();let d=rI;i&&(d=a$({trace:!1,..."object"==typeof i&&i}));let f=(r=function(...e){return t=>(n,r)=>{let a=t(n,r),o=()=>{throw Error(rT(15))},s={getState:a.getState,dispatch:(e,...t)=>o(e,...t)};return o=rI(...e.map(e=>e(s)))(a.dispatch),{...a,dispatch:o}}}(...n),function(e){let{autoBatch:t=!0}=e??{},n=new aq(r);return t&&n.push(((e={type:"raf"})=>t=>(...n)=>{let r,a=t(...n),o=!0,s=!1,i=!1,l=new Set,c="tick"===e.type?queueMicrotask:"raf"===e.type?"u">typeof window&&window.requestAnimationFrame?(r=window.requestAnimationFrame,e=>{let t=!1,n=()=>{t||(t=!0,cancelAnimationFrame(a),clearTimeout(o),e())},a=r(n),o=setTimeout(n,100)}):aQ(10):"callback"===e.type?e.queueNotification:aQ(e.timeout),u=()=>{i=!1,s&&(s=!1,l.forEach(e=>e()))};return Object.assign({},a,{subscribe(e){let t=a.subscribe(()=>o&&e());return l.add(e),()=>{t(),l.delete(e)}},dispatch(e){try{return(s=!(o=!e?.meta?.[aY]))&&!i&&(i=!0,c(u)),a.dispatch(e)}finally{o=!0}}})})("object"==typeof t?t:void 0)),n});return function e(t,n,r){if("function"!=typeof t)throw Error(rT(2));if("function"==typeof n&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw Error(rT(0));if("function"==typeof n&&void 0===r&&(r=n,n=void 0),void 0!==r){if("function"!=typeof r)throw Error(rT(1));return r(e)(t,n)}let a=t,o=n,s=new Map,i=s,l=0,c=!1;function u(){i===s&&(i=new Map,s.forEach((e,t)=>{i.set(t,e)}))}function d(){if(c)throw Error(rT(3));return o}function f(e){if("function"!=typeof e)throw Error(rT(4));if(c)throw Error(rT(5));let t=!0;u();let n=l++;return i.set(n,e),function(){if(t){if(c)throw Error(rT(6));t=!1,u(),i.delete(n),s=null}}}function p(e){if(!rz(e))throw Error(rT(7));if(void 0===e.type)throw Error(rT(8));if("string"!=typeof e.type)throw Error(rT(17));if(c)throw Error(rT(9));try{c=!0,o=a(o,e)}finally{c=!1}return(s=i).forEach(e=>{e()}),e}return p({type:rR.INIT}),{dispatch:p,subscribe:f,getState:d,replaceReducer:function(e){if("function"!=typeof e)throw Error(rT(10));a=e,p({type:rR.REPLACE})},[rA]:function(){return{subscribe(e){if("object"!=typeof e||null===e)throw Error(rT(11));function t(){e.next&&e.next(d())}return t(),{unsubscribe:f(t)}},[rA](){return this}}}}}(t,c,d(..."function"==typeof u?u(f):f()))}({devTools:!0,reducer:{[ie.reducerPath]:ie.reducer,filters:lp,query:lA,routes:iX,view:le},middleware:e=>e().concat(gn,ie.middleware)});f=gr.dispatch,function(){let[e,t,n,r]=[oD,oH,oF,oB].map(e=>()=>f(e()));if(!o$&&"u">typeof window&&window.addEventListener){let a=function(e){Object.entries(o).forEach(([t,n])=>{e?window.addEventListener(t,n,!1):window.removeEventListener(t,n)})},o={focus:e,visibilitychange:()=>{"visible"===window.document.visibilityState?e():t()},[oz]:n,[oL]:r};a(!0),o$=!0}}(),void 0!==globalThis.window&&(globalThis.__ccdbDom={querySelector:iw,querySelectorAll:e=>{let t=ig();if(t&&t.querySelectorAll){let n=t.querySelectorAll(e);if(n.length>0&&n.length>0)return n}return t instanceof ShadowRoot?[]:document.querySelectorAll(e)}});let ga=iy(iv());if(!ga)throw Error("ccdb5-ui mount element not found.");(0,m.createRoot)(ga).render((0,h.jsx)(g.StrictMode,{children:(0,h.jsx)(function(e){let{children:t,context:n,serverState:r,store:a}=e,o=g.useMemo(()=>{let e=function(e){let t,n=rf,r=0,a=!1;function o(){l.onStateChange&&l.onStateChange()}function s(){if(r++,!t){let r,a;t=e.subscribe(o),r=null,a=null,n={clear(){r=null,a=null},notify(){let e=r;for(;e;)e.callback(),e=e.next},get(){let e=[],t=r;for(;t;)e.push(t),t=t.next;return e},subscribe(e){let t=!0,n=a={callback:e,next:null,prev:a};return n.prev?n.prev.next=n:r=n,function(){t&&null!==r&&(t=!1,n.next?n.next.prev=n.prev:a=n.prev,n.prev?n.prev.next=n.next:r=n.next)}}}}}function i(){r--,t&&0===r&&(t(),t=void 0,n.clear(),n=rf)}let l={addNestedSub:function(e){s();let t=n.subscribe(e),r=!1;return()=>{r||(r=!0,t(),i())}},notifyNestedSubs:function(){n.notify()},handleChangeWrapper:o,isSubscribed:function(){return a},trySubscribe:function(){a||(a=!0,s())},tryUnsubscribe:function(){a&&(a=!1,i())},getListeners:()=>n};return l}(a);return{store:a,subscription:e,getServerState:r?()=>r:void 0}},[a,r]),s=g.useMemo(()=>a.getState(),[a]);return rm(()=>{let{subscription:e}=o;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),s!==a.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}},[o,s]),g.createElement((n||rw).Provider,{value:o},t)},{store:gr,children:(0,h.jsx)(function(){let e,t,n,r,a,s,i=(0,v.c)(6);return i[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,h.jsx)(nW,{index:!0,element:(0,h.jsx)(v4,{})}),i[0]=e):e=i[0],i[1]===Symbol.for("react.memo_cache_sentinel")?(t=(0,h.jsx)(nW,{path:"/data-research/consumer-complaints/search",element:(0,h.jsx)(v4,{})}),i[1]=t):t=i[1],i[2]===Symbol.for("react.memo_cache_sentinel")?(n=(0,h.jsx)(nW,{path:"/data-research/consumer-complaints/search/detail/:id",element:(0,h.jsx)(iV,{})}),i[2]=n):n=i[2],i[3]===Symbol.for("react.memo_cache_sentinel")?(r=(0,h.jsx)(nW,{path:"/detail/:id",element:(0,h.jsx)(iV,{})}),i[3]=r):r=i[3],i[4]===Symbol.for("react.memo_cache_sentinel")?(a=(0,h.jsx)(nW,{path:"/export/",element:(0,h.jsx)(lR,{})}),i[4]=a):a=i[4],i[5]===Symbol.for("react.memo_cache_sentinel")?(s=(0,h.jsx)(ri,{basename:o,children:(0,h.jsx)(R,{LinkComponent:iU,children:(0,h.jsxs)(nK,{children:[e,t,n,r,a,(0,h.jsx)(nW,{path:"/data-research/consumer-complaints/search/export/",element:(0,h.jsx)(lR,{})})]})})}),i[5]=s):s=i[5],s},{})})}))})()})();
|
|
9
|
+
Please change the parent <Route path="${e}"> to <Route path="${"/"===e?"*":`${e}/*`}">.`)}let d=nT();if(t){let e="string"==typeof t?t2(t):t;tJ("/"===c||e.pathname?.startsWith(c),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${c}" but pathname "${e.pathname}" was given in the \`location\` prop.`),r=e}else r=d;let f=r.pathname||"/",p=f;if("/"!==c){let e=c.replace(/^\//,"").split("/");p="/"+f.replace(/^\//,"").split("/").slice(e.length).join("/")}let h=n&&n.state.matches.length?n.state.matches.map(e=>Object.assign(e,{route:n.manifest[e.route.id]||e.route})):t3(e,{pathname:p});tX(u||null!=h,`No routes matched location "${r.pathname}${r.search}${r.hash}" `),tX(null==h||void 0!==h[h.length-1].route.element||void 0!==h[h.length-1].route.Component||void 0!==h[h.length-1].route.lazy,`Matched leaf route at location "${r.pathname}${r.search}${r.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let m=function(e,t=[],n){let r=n?.state;if(null==e){if(!r)return null;if(r.errors)e=r.matches;else{if(0!==t.length||r.initialized||!(r.matches.length>0))return null;e=r.matches}}let a=e,o=r?.errors;if(null!=o){let e=a.findIndex(e=>e.route.id&&o?.[e.route.id]!==void 0);tJ(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`),a=a.slice(0,Math.min(a.length,e+1))}let s=!1,i=-1;if(n&&r){s=r.renderFallback;for(let e=0;e<a.length;e++){let t=a[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(i=e),t.route.id){let{loaderData:e,errors:o}=r,l=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!o||void 0===o[t.route.id]);if(t.route.lazy||l){n.isStatic&&(s=!0),a=i>=0?a.slice(0,i+1):[a[0]];break}}}}let l=n?.onError,c=r&&l?(e,t)=>{l(e,{location:r.location,params:r.matches?.[0]?.params??{},pattern:ns(r.matches.map(e=>e.route.path).filter(Boolean))||"/",errorInfo:t})}:void 0;return a.reduceRight((e,n,l)=>{let u,d=!1,f=null,p=null;r&&(u=o&&n.route.id?o[n.route.id]:void 0,f=n.route.errorElement||nL,s&&(i<0&&0===l?(nU("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,p=null):i===l&&(d=!0,p=n.route.hydrateFallbackElement||null)));let h=t.concat(a.slice(0,l+1)),m=()=>{let t;return t=u?f:d?p:n.route.Component?g.createElement(n.route.Component,null):n.route.element?n.route.element:e,g.createElement(nF,{match:n,routeContext:{outlet:e,matches:h,isDataRoute:null!=r},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||0===l)?g.createElement(nI,{location:r.location,revalidation:r.revalidation,component:f,error:u,children:m(),routeContext:{outlet:null,matches:h,isDataRoute:!0},onError:c}):m()},null)}(h&&h.map(e=>Object.assign({},e,{params:Object.assign({},i,e.params),pathname:ns([c,a.encodeLocation?a.encodeLocation(e.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?c:ns([c,a.encodeLocation?a.encodeLocation(e.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathnameBase])})),o,n);return t&&m?g.createElement(nj.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...r},navigationType:"POP"}},m):m}g.createContext(null);var nL=g.createElement(function(){let e,t,n,r=(e=g.useContext(nP),t=n$("useRouteError"),n=nV("useRouteError"),void 0!==e?e:t.errors?.[n]),a=nf(r)?`${r.status} ${r.statusText}`:r instanceof Error?r.message:JSON.stringify(r),o=r instanceof Error?r.stack:null,s="rgba(200,200,200, 0.5)",i={padding:"2px 4px",backgroundColor:s},l=null;return console.error("Error handled by React Router default ErrorBoundary:",r),l=g.createElement(g.Fragment,null,g.createElement("p",null,"💿 Hey developer 👋"),g.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",g.createElement("code",{style:i},"ErrorBoundary")," or"," ",g.createElement("code",{style:i},"errorElement")," prop on your route.")),g.createElement(g.Fragment,null,g.createElement("h2",null,"Unexpected Application Error!"),g.createElement("h3",{style:{fontStyle:"italic"}},a),o?g.createElement("pre",{style:{padding:"0.5rem",backgroundColor:s}},o):null,l)},null),nI=class extends g.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&"object"==typeof e&&e&&"digest"in e&&"string"==typeof e.digest){let t=function(e){if(e.startsWith(`${nN}:ROUTE_ERROR_RESPONSE:{`))try{let t=JSON.parse(e.slice(40));if("object"==typeof t&&t&&"number"==typeof t.status&&"string"==typeof t.statusText)return new nd(t.status,t.statusText,t.data)}catch{}}(e.digest);t&&(e=t)}let t=void 0!==e?g.createElement(nC.Provider,{value:this.props.routeContext},g.createElement(nP.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?g.createElement(nH,{error:e},t):t}};nI.contextType=nS;var nD=new WeakMap;function nH({children:e,error:t}){let{basename:n,navigator:r}=g.useContext(nE);if("object"==typeof t&&t&&"digest"in t&&"string"==typeof t.digest){let e=function(e){if(e.startsWith(`${nN}:REDIRECT:{`))try{let t=JSON.parse(e.slice(28));if("object"==typeof t&&t&&"number"==typeof t.status&&"string"==typeof t.statusText&&"string"==typeof t.location&&"boolean"==typeof t.reloadDocument&&"boolean"==typeof t.replace)return t}catch{}}(t.digest);if(e){let a=nD.get(t);if(a)throw a;let o=nh(e.location,n),s=o.absoluteURL||o.to;if(nb(e.location,s,nv(r),"allow-explicit"),function(e){try{return ny.includes(new URL(e).protocol)}catch{return!1}}(s))throw Error("Invalid redirect location");if(np&&!nD.get(t))if(o.isExternal||e.reloadDocument)window.location.href=s;else{let n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(o.to,{replace:e.replace}));throw nD.set(t,n),n}return g.createElement("meta",{httpEquiv:"refresh",content:`0;url=${s}`})}}return e}function nF({routeContext:e,match:t,children:n}){let r=g.useContext(nw);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),g.createElement(nC.Provider,{value:e},n)}function nB(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function n$(e){let t=g.useContext(nx);return tJ(t,nB(e)),t}function nV(e){let t,n=(tJ(t=g.useContext(nC),nB(e)),t),r=n.matches[n.matches.length-1];return tJ(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}var nq={};function nU(e,t,n){t||nq[e]||(nq[e]=!0,tX(!1,n))}function nW(e){tJ(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function nY({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:a,static:o=!1,useTransitions:s}){tJ(!nO(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let i=e.replace(/^\/*/,"/"),l=g.useMemo(()=>({basename:i,navigator:a,static:o,useTransitions:s,future:{}}),[i,a,o,s]);"string"==typeof n&&(n=t2(n));let{pathname:c="/",search:u="",hash:d="",state:f=null,key:p="default",mask:h}=n,m=g.useMemo(()=>{let e=ne(c,i);return null==e?null:{location:{pathname:e,search:u,hash:d,state:f,key:p,mask:h},navigationType:r}},[i,c,u,d,f,p,r,h]);return(tX(null!=m,`<Router basename="${i}"> is not able to match the URL "${c}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`),null==m)?null:g.createElement(nE.Provider,{value:l},g.createElement(nj.Provider,{children:t,value:m}))}function nK({children:e,location:t}){return nz(function e(t,n=[]){let r=[];return g.Children.forEach(t,(t,a)=>{if(!g.isValidElement(t))return;let o=[...n,a];if(t.type===g.Fragment)return void r.push.apply(r,e(t.props.children,o));tJ(t.type===nW,`[${"string"==typeof t.type?t.type:t.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),tJ(!t.props.index||!t.props.children,"An index route cannot have child routes.");let s={id:t.props.id||o.join("-"),caseSensitive:t.props.caseSensitive,element:t.props.element,Component:t.props.Component,index:t.props.index,path:t.props.path,middleware:t.props.middleware,loader:t.props.loader,action:t.props.action,hydrateFallbackElement:t.props.hydrateFallbackElement,HydrateFallback:t.props.HydrateFallback,errorElement:t.props.errorElement,ErrorBoundary:t.props.ErrorBoundary,hasErrorBoundary:!0===t.props.hasErrorBoundary||null!=t.props.ErrorBoundary||null!=t.props.errorElement,shouldRevalidate:t.props.shouldRevalidate,handle:t.props.handle,lazy:t.props.lazy};t.props.children&&(s.children=e(t.props.children,o)),r.push(s)}),r}(e),t)}b.useOptimistic,g.memo(function({routes:e,manifest:t,future:n,state:r,isStatic:a,onError:o}){return nz(e,void 0,{manifest:t,state:r,isStatic:a,onError:o,future:n})}),g.Component;var nQ="get",nG="application/x-www-form-urlencoded";function nJ(e){return"u">typeof HTMLElement&&e instanceof HTMLElement}var nX=null,nZ=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function n0(e){return null==e||nZ.has(e)?e:(tX(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${nG}"`),null)}Object.getOwnPropertyNames(Object.prototype).sort().join("\0"),"u">typeof window&&window;function n1(e,t){if(!1===e||null==e)throw Error(t)}function n2(e,t,n,r){let a="string"==typeof e?new URL(e,"u"<typeof window?"server://singlefetch/":window.location.origin):e;return n?a.pathname.endsWith("/")?a.pathname=`${a.pathname}_.${r}`:a.pathname=`${a.pathname}.${r}`:"/"===a.pathname?a.pathname=`_root.${r}`:t&&"/"===ne(a.pathname,t)?a.pathname=`${ni(t)}/_root.${r}`:a.pathname=`${ni(a.pathname)}.${r}`,a}async function n3(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function n7(e){return null!=e&&(null==e.href?"preload"===e.rel&&"string"==typeof e.imageSrcSet&&"string"==typeof e.imageSizes:"string"==typeof e.rel&&"string"==typeof e.href)}async function n5(e,t,n){var r;let a,o;return r=(await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await n3(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(n7).filter(e=>"stylesheet"===e.rel||"preload"===e.rel).map(e=>"stylesheet"===e.rel?{...e,rel:"prefetch",as:"style"}:{...e,rel:"prefetch"}),a=new Set,o=new Set(void 0),r.reduce((e,t)=>{!1;let n=JSON.stringify(function(e){let t={};for(let n of Object.keys(e).sort())t[n]=e[n];return t}(t));return a.has(n)||(a.add(n),e.push({key:n,link:t})),e},[])}function n4(e,t,n,r,a,o){let s=(e,t)=>!n[t]||e.route.id!==n[t].route.id,i=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith("*")&&n[t].params["*"]!==e.params["*"];return"assets"===o?t.filter((e,t)=>s(e,t)||i(e,t)):"data"===o?t.filter((t,o)=>{let l=r.routes[t.route.id];if(!l||!l.hasLoader)return!1;if(s(t,o)||i(t,o))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if("boolean"==typeof r)return r}return!0}):[]}function n6(e,t,{includeHydrateFallback:n}={}){return[...new Set(e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let a=[r.module];return r.clientActionModule&&(a=a.concat(r.clientActionModule)),r.clientLoaderModule&&(a=a.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(a=a.concat(r.hydrateFallbackModule)),r.imports&&(a=a.concat(r.imports)),a}).flat(1))]}function n9(){let e=g.useContext(nw);return n1(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function n8(){let e=g.useContext(nx);return n1(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}Symbol("SingleFetchRedirect");var re=g.createContext(void 0);function rt(){let e=g.useContext(re);return n1(e,"You must render this element inside a <HydratedRouter> element"),e}function rn(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function rr({page:e,...t}){let n=nk(),{nonce:r}=rt(),{router:a}=n9(),o=g.useMemo(()=>t3(a.routes,e,a.basename),[a.routes,e,a.basename]);return o?(null==t.nonce&&r&&(t={...t,nonce:r}),n)?g.createElement(ra,{page:e,matches:o,...t}):g.createElement(ro,{page:e,matches:o,...t}):null}function ra({page:e,matches:t,...n}){let r=nT(),{future:a}=rt(),{basename:o}=n9(),s=g.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=n2(e,o,a.v8_trailingSlashAwareDataRequests,"rsc"),s=!1,i=[];for(let e of t)"function"==typeof e.route.shouldRevalidate?s=!0:i.push(e.route.id);return s&&i.length>0&&n.searchParams.set("_routes",i.join(",")),[n.pathname+n.search]},[o,a.v8_trailingSlashAwareDataRequests,e,r,t]);return g.createElement(g.Fragment,null,s.map(e=>g.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...n})))}function ro({page:e,matches:t,...n}){let r=nT(),{future:a,manifest:o,routeModules:s}=rt(),{basename:i}=n9(),{loaderData:l,matches:c}=n8(),u=g.useMemo(()=>n4(e,t,c,o,r,"data"),[e,t,c,o,r]),d=g.useMemo(()=>n4(e,t,c,o,r,"assets"),[e,t,c,o,r]),f=g.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,c=!1;if(t.forEach(e=>{let t=o.routes[e.route.id];t&&t.hasLoader&&(!u.some(t=>t.route.id===e.route.id)&&e.route.id in l&&s[e.route.id]?.shouldRevalidate||t.hasClientLoader?c=!0:n.add(e.route.id))}),0===n.size)return[];let d=n2(e,i,a.v8_trailingSlashAwareDataRequests,"data");return c&&n.size>0&&d.searchParams.set("_routes",t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(",")),[d.pathname+d.search]},[i,a.v8_trailingSlashAwareDataRequests,l,r,o,u,t,e,s]),p=g.useMemo(()=>n6(d,o),[d,o]),h=function(e){let{manifest:t,routeModules:n}=rt(),[r,a]=g.useState([]);return g.useEffect(()=>{let r=!1;return n5(e,t,n).then(e=>{r||a(e)}),()=>{r=!0}},[e,t,n]),r}(d);return g.createElement(g.Fragment,null,f.map(e=>g.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...n})),p.map(e=>g.createElement("link",{key:e,rel:"modulepreload",href:e,...n})),h.map(({key:e,link:t})=>g.createElement("link",{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin})))}re.displayName="FrameworkContext";g.Component;var rs="u">typeof window&&void 0!==window.document&&void 0!==window.document.createElement;try{rs&&(window.__reactRouterVersion="7.18.3")}catch(e){}function ri({basename:e,children:t,useTransitions:n,window:r}){let a=g.useRef();null==a.current&&(a.current=function(e={}){return function(e,t,n={}){let{window:r=document.defaultView,v5Compat:a=!1}=n,o=r.history,s="POP",i=null,l=c();function c(){return(o.state||{idx:null}).idx}function u(){s="POP";let e=c(),t=null==e?null:e-l;l=e,i&&i({action:s,location:f.location,delta:t})}function d(e){return function(e,t,n=!1){let r="http://localhost";e&&(r="null"!==e.location.origin?e.location.origin:e.location.href),tJ(r,"No window.location.(origin|href) available to create URL");let a="string"==typeof t?t:t1(t);return a=a.replace(/ $/,"%20"),!n&&tK.test(a)&&(a=r+a),new URL(a,r)}(r,e)}null==l&&(l=0,o.replaceState({...o.state,idx:l},""));let f={get action(){return s},get location(){return e(r,o)},listen(e){if(i)throw Error("A history only accepts one active listener");return r.addEventListener(tQ,u),i=e,()=>{r.removeEventListener(tQ,u),i=null}},createHref:e=>t(r,e),createURL:d,encodeLocation(e){let t=d(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){s="PUSH";let n=tG(e)?e:t0(f.location,e,t);let u=tZ(n,l=c()+1),d=f.createHref(n.mask||n);try{o.pushState(u,"",d)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;r.location.assign(d)}a&&i&&i({action:s,location:f.location,delta:1})},replace:function(e,t){s="REPLACE";let n=tG(e)?e:t0(f.location,e,t);let r=tZ(n,l=c()),u=f.createHref(n.mask||n);o.replaceState(r,"",u),a&&i&&i({action:s,location:f.location,delta:0})},go:e=>o.go(e)};return f}(function(e,t){let n=t.state?.masked,{pathname:r,search:a,hash:o}=n||e.location;return t0("",{pathname:r,search:a,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default",n?{pathname:e.location.pathname,search:e.location.search,hash:e.location.hash}:void 0)},function(e,t){return"string"==typeof t?t:t1(t)},e)}({window:r,v5Compat:!0}));let o=a.current,[s,i]=g.useState({action:o.action,location:o.location}),l=g.useCallback(e=>{!1===n?i(e):g.startTransition(()=>i(e))},[n]);return g.useLayoutEffect(()=>o.listen(l),[o,l]),g.createElement(nY,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:o,useTransitions:n})}var rl=g.forwardRef(function({onClick:e,discover:t="render",prefetch:n="none",relative:r,reloadDocument:a,replace:o,mask:s,state:i,target:l,to:c,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},h){let{basename:m,navigator:v,useTransitions:b}=g.useContext(nE),y="string"==typeof c&&tY.test(c),w=nh(c,m),x=function(e,{relative:t}={}){tJ(nO(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=g.useContext(nE),{hash:a,pathname:o,search:s}=nR(e,{relative:t}),i=o;return"/"!==n&&(i="/"===o?n:ns([n,o])),r.createHref({pathname:i,search:s,hash:a})}(c=w.to,{relative:r}),S=nT(),k=null;if(s){let e=na(s,[],S.mask?S.mask.pathname:"/",!0);"/"!==m&&(e.pathname="/"===e.pathname?m:ns([m,e.pathname])),k=v.createHref(e)}let[_,E,j]=function(e,t){let n=g.useContext(re),[r,a]=g.useState(!1),[o,s]=g.useState(!1),{onFocus:i,onBlur:l,onMouseEnter:c,onMouseLeave:u,onTouchStart:d}=t,f=g.useRef(null);g.useEffect(()=>{if("render"===e&&s(!0),"viewport"===e){let e=new IntersectionObserver(e=>{e.forEach(e=>{s(e.isIntersecting)})},{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}},[e]),g.useEffect(()=>{if(r){let e=setTimeout(()=>{s(!0)},100);return()=>{clearTimeout(e)}}},[r]);let p=()=>{a(!0)},h=()=>{a(!1),s(!1)};return n?"intent"!==e?[o,f,{}]:[o,f,{onFocus:rn(i,p),onBlur:rn(l,h),onMouseEnter:rn(c,p),onMouseLeave:rn(u,h),onTouchStart:rn(d,p)}]:[!1,f,{}]}(n,p),C=function(e,{target:t,replace:n,mask:r,state:a,preventScrollReset:o,relative:s,viewTransition:i,defaultShouldRevalidate:l,useTransitions:c}={}){let u=function(){let{isDataRoute:e}=g.useContext(nC);return e?function(){let e,{router:t}=(tJ(e=g.useContext(nw),nB("useNavigate")),e),n=nV("useNavigate"),r=g.useRef(!1);return nM(()=>{r.current=!0}),g.useCallback(async(e,a={})=>{tX(r.current,nA),r.current&&("number"==typeof e?await t.navigate(e):await t.navigate(e,{fromRouteId:n,...a}))},[t,n])}():function(){tJ(nO(),"useNavigate() may be used only in the context of a <Router> component.");let e=g.useContext(nw),{basename:t,navigator:n}=g.useContext(nE),{matches:r}=g.useContext(nC),{pathname:a}=nT(),o=JSON.stringify(nr(r)),s=g.useRef(!1);return nM(()=>{s.current=!0}),g.useCallback((r,i={})=>{if(tX(s.current,nA),!s.current)return;if("number"==typeof r)return void n.go(r);let l=na(r,JSON.parse(o),a,"path"===i.relative);null==e&&"/"!==t&&(l.pathname="/"===l.pathname?t:ns([t,l.pathname])),nb("string"==typeof r?r:t1(r),n.createHref(l),nv(n),"reject"),(i.replace?n.replace:n.push)(l,i.state,i)},[t,n,o,a,e])}()}(),d=nT(),f=nR(e,{relative:s});return g.useCallback(p=>{if(0===p.button&&(!t||"_self"===t)&&!(p.metaKey||p.altKey||p.ctrlKey||p.shiftKey)){p.preventDefault();let t=void 0!==n?n:t1(d)===t1(f),h=()=>u(e,{replace:t,mask:r,state:a,preventScrollReset:o,relative:s,viewTransition:i,defaultShouldRevalidate:l});c?g.startTransition(()=>h()):h()}},[d,u,f,n,r,a,t,e,o,s,i,l,c])}(c,{replace:o,mask:s,state:i,target:l,preventScrollReset:u,relative:r,viewTransition:d,defaultShouldRevalidate:f,useTransitions:b}),P=!(w.isExternal||a),N=g.createElement("a",{...p,...j,href:(P?k:void 0)||w.absoluteURL||x,onClick:P?function(t){e&&e(t),t.defaultPrevented||C(t)}:e,ref:function(...e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}}(h,E),target:l,"data-discover":y||"render"!==t?void 0:"true"});return _&&!y?g.createElement(g.Fragment,null,N,g.createElement(rr,{page:x})):N});rl.displayName="Link",g.forwardRef(function({"aria-current":e="page",caseSensitive:t=!1,className:n="",end:r=!1,style:a,to:o,viewTransition:s,children:i,...l},c){let u,d=nR(o,{relative:l.relative}),f=nT(),p=g.useContext(nx),{navigator:h,basename:m}=g.useContext(nE),v=null!=p&&function(e,{relative:t}={}){let n=g.useContext(n_);tJ(null!=n,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=rc("useViewTransitionState"),a=nR(e,{relative:t});if(!n.isTransitioning)return!1;let o=ne(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=ne(n.nextLocation.pathname,r)||n.nextLocation.pathname;return null!=t6(a.pathname,s)||null!=t6(a.pathname,o)}(d)&&!0===s,b=h.encodeLocation?h.encodeLocation(d).pathname:d.pathname,y=f.pathname,w=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;t||(y=y.toLowerCase(),w=w?w.toLowerCase():null,b=b.toLowerCase()),w&&m&&(w=ne(w,m)||w);let x="/"!==b&&b.endsWith("/")?b.length-1:b.length,S=y===b||!r&&y.startsWith(b)&&"/"===y.charAt(x),k=null!=w&&(w===b||!r&&w.startsWith(b)&&"/"===w.charAt(b.length)),_={isActive:S,isPending:k,isTransitioning:v},E=S?e:void 0;u="function"==typeof n?n(_):[n,S?"active":null,k?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let j="function"==typeof a?a(_):a;return g.createElement(rl,{...l,"aria-current":E,className:u,ref:c,style:j,to:o,viewTransition:s},"function"==typeof i?i(_):i)}).displayName="NavLink",g.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:a,state:o,method:s=nQ,action:i,onSubmit:l,relative:c,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},h)=>{let{useTransitions:m}=g.useContext(nE),v=function(){let{router:e}=rc("useSubmit"),{basename:t}=g.useContext(nE),n=nV("useRouteId"),r=e.fetch,a=e.navigate;return g.useCallback(async(e,o={})=>{let{action:s,method:i,encType:l,formData:c,body:u}=function(e,t){let n,r,a,o,s;if(nJ(e)&&"form"===e.tagName.toLowerCase()){let s=e.getAttribute("action");r=s?ne(s,t):null,n=e.getAttribute("method")||nQ,a=n0(e.getAttribute("enctype"))||nG,o=new FormData(e)}else if(nJ(e)&&"button"===e.tagName.toLowerCase()||nJ(e)&&"input"===e.tagName.toLowerCase()&&("submit"===e.type||"image"===e.type)){let s=e.form;if(null==s)throw Error('Cannot submit a <button> or <input type="submit"> without a <form>');let i=e.getAttribute("formaction")||s.getAttribute("action");if(r=i?ne(i,t):null,n=e.getAttribute("formmethod")||s.getAttribute("method")||nQ,a=n0(e.getAttribute("formenctype"))||n0(s.getAttribute("enctype"))||nG,o=new FormData(s,e),!function(){if(null===nX)try{new FormData(document.createElement("form"),0),nX=!1}catch(e){nX=!0}return nX}()){let{name:t,type:n,value:r}=e;if("image"===n){let e=t?`${t}.`:"";o.append(`${e}x`,"0"),o.append(`${e}y`,"0")}else t&&o.append(t,r)}}else if(nJ(e))throw Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');else n=nQ,r=null,a=nG,s=e;return o&&"text/plain"===a&&(s=o,o=void 0),{action:r,method:n.toLowerCase(),encType:a,formData:o,body:s}}(e,t);if(!1===o.navigate){let e=o.fetcherKey||`__${String(++ru)}__`;await r(e,n,o.action||s,{defaultShouldRevalidate:o.defaultShouldRevalidate,preventScrollReset:o.preventScrollReset,formData:c,body:u,formMethod:o.method||i,formEncType:o.encType||l,flushSync:o.flushSync})}else await a(o.action||s,{defaultShouldRevalidate:o.defaultShouldRevalidate,preventScrollReset:o.preventScrollReset,formData:c,body:u,formMethod:o.method||i,formEncType:o.encType||l,replace:o.replace,state:o.state,fromRouteId:n,flushSync:o.flushSync,viewTransition:o.viewTransition})},[r,a,t,n])}(),b=function(e,{relative:t}={}){let{basename:n}=g.useContext(nE),r=g.useContext(nC);tJ(r,"useFormAction must be used inside a RouteContext");let[a]=r.matches.slice(-1),o={...nR(e||".",{relative:t})},s=nT();if(null==e){o.search=s.search;let e=new URLSearchParams(o.search),t=e.getAll("index");if(t.some(e=>""===e)){e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let n=e.toString();o.search=n?`?${n}`:""}}return(!e||"."===e)&&a.route.index&&(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index"),"/"!==n&&(o.pathname="/"===o.pathname?n:ns([n,o.pathname])),t1(o)}(i,{relative:c}),y="get"===s.toLowerCase()?"get":"post",w="string"==typeof i&&tY.test(i);return g.createElement("form",{ref:h,method:y,action:b,onSubmit:r?l:e=>{if(l&&l(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,i=r?.getAttribute("formmethod")||s,p=()=>v(r||e.currentTarget,{fetcherKey:t,method:i,navigate:n,replace:a,state:o,relative:c,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f});m&&!1!==n?g.startTransition(()=>p()):p()},...p,"data-discover":w||"render"!==e?void 0:"true"})}).displayName="Form";function rc(e){var t;let n=g.useContext(nw);return tJ(n,(t=e,`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`)),n}var ru=0,rd=a(4041),rf={notify(){},get:()=>[]},rp="u">typeof window&&void 0!==window.document&&void 0!==window.document.createElement,rh="u">typeof navigator&&"ReactNative"===navigator.product,rm=rp||rh?g.useLayoutEffect:g.useEffect;function rv(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function rg(e,t){if(rv(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!rv(e[n[r]],t[n[r]]))return!1;return!0}var rb=Symbol.for("react-redux-context"),ry="u">typeof globalThis?globalThis:{},rw=function(){if(!g.createContext)return{};let e=ry[rb]??=new Map,t=e.get(g.createContext);return t||(t=g.createContext(null),e.set(g.createContext,t)),t}();function rx(e=rw){return function(){return g.useContext(e)}}var rS=rx();function rk(e=rw){let t=e===rw?rS:rx(e),n=()=>{let{store:e}=t();return e};return Object.assign(n,{withTypes:()=>n}),n}var r_=rk(),rE=function(e=rw){let t=e===rw?r_:rk(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}(),rj=(e,t)=>e===t,rC=function(e=rw){let t=e===rw?rS:rx(e),n=(e,n={})=>{let{equalityFn:r=rj}="function"==typeof n?{equalityFn:n}:n,{store:a,subscription:o,getServerState:s}=t();g.useRef(!0);let i=g.useCallback({[e.name]:t=>e(t)}[e.name],[e]),l=(0,rd.useSyncExternalStoreWithSelector)(o.addNestedSub,a.getState,s||a.getState,i,r);return g.useDebugValue(l),l};return Object.assign(n,{withTypes:()=>n}),n}(),rP=function(e){e()};function rN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){rN(e,t,n[t])})}return e}function rT(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var rA="function"==typeof Symbol&&Symbol.observable||"@@observable",rM=()=>Math.random().toString(36).substring(7).split("").join("."),rR={INIT:`@@redux/INIT${rM()}`,REPLACE:`@@redux/REPLACE${rM()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${rM()}`};function rz(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function rL(e){let t,n=Object.keys(e),r={};for(let t=0;t<n.length;t++){let a=n[t];"function"==typeof e[a]&&(r[a]=e[a])}let a=Object.keys(r);try{Object.keys(r).forEach(e=>{let t=r[e];if(void 0===t(void 0,{type:rR.INIT}))throw Error(rT(12));if(void 0===t(void 0,{type:rR.PROBE_UNKNOWN_ACTION()}))throw Error(rT(13))})}catch(e){t=e}return function(e={},n){if(t)throw t;let o=!1,s={};for(let t=0;t<a.length;t++){let i=a[t],l=r[i],c=e[i],u=l(c,n);if(void 0===u)throw n&&n.type,Error(rT(14));s[i]=u,o=o||u!==c}return(o=o||a.length!==Object.keys(e).length)?s:e}}function rI(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce((e,t)=>(...n)=>e(t(...n)))}function rD(e){return rz(e)&&"type"in e&&"string"==typeof e.type}var rH=Symbol.for("immer-nothing"),rF=Symbol.for("immer-draftable"),rB=Symbol.for("immer-state");function r$(e){throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var rV=Object,rq=rV.getPrototypeOf,rU="constructor",rW="prototype",rY="configurable",rK="enumerable",rQ="writable",rG="value",rJ=e=>!!e&&!!e[rB];function rX(e){return!!e&&(r1(e)||r6(e)||!!e[rF]||!!e[rU]?.[rF]||r9(e)||r8(e))}var rZ=rV[rW][rU].toString(),r0=new WeakMap;function r1(e){if(!e||!ae(e))return!1;let t=rq(e);if(null===t||t===rV[rW])return!0;let n=rV.hasOwnProperty.call(t,rU)&&t[rU];if(n===Object)return!0;if(!at(n))return!1;let r=r0.get(n);return void 0===r&&(r=Function.toString.call(n),r0.set(n,r)),r===rZ}function r2(e,t,n=!0){0===r3(e)?(n?Reflect.ownKeys(e):rV.keys(e)).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function r3(e){let t=e[rB];return t?t.type_:r6(e)?1:r9(e)?2:3*!!r8(e)}var r7=(e,t,n=r3(e))=>2===n?e.has(t):rV[rW].hasOwnProperty.call(e,t),r5=(e,t,n=r3(e))=>2===n?e.get(t):e[t],r4=(e,t,n,r=r3(e))=>{2===r?e.set(t,n):3===r?e.add(n):e[t]=n},r6=Array.isArray,r9=e=>e instanceof Map,r8=e=>e instanceof Set,ae=e=>"object"==typeof e,at=e=>"function"==typeof e,an=e=>e.modified_?e.copy_:e.base_;function ar(e,t){if(r9(e))return new Map(e);if(r8(e))return new Set(e);if(r6(e))return Array[rW].slice.call(e);let n=r1(e);if(!0!==t&&("class_only"!==t||n)){let t=rq(e);if(null!==t&&n)return{...e};let r=rV.create(t);return rV.assign(r,e)}{let t=rV.getOwnPropertyDescriptors(e);delete t[rB];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){let a=n[r],o=t[a];!1===o[rQ]&&(o[rQ]=!0,o[rY]=!0),(o.get||o.set)&&(t[a]={[rY]:!0,[rQ]:!0,[rK]:o[rK],[rG]:e[a]})}return rV.create(rq(e),t)}}function aa(e,t=!1){return as(e)||rJ(e)||!rX(e)||(r3(e)>1&&rV.defineProperties(e,{set:ao,add:ao,clear:ao,delete:ao}),rV.freeze(e),t&&r2(e,(e,t)=>{aa(t,!0)},!1)),e}var ao={[rG]:function(){r$(2)}};function as(e){return!(null!==e&&ae(e))||rV.isFrozen(e)}var ai="MapSet",al="Patches",ac="ArrayMethods",au={};function ad(e){let t=au[e];return t||r$(0),t}var af=e=>!!au[e];function ap(e,t){t&&(e.patchPlugin_=ad(al),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function ah(e){am(e),e.drafts_.forEach(ag),e.drafts_=null}function am(e){e===he&&(he=e.parent_)}var av=e=>he={drafts_:[],parent_:he,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:af(ai)?ad(ai):void 0,arrayMethodsPlugin_:af(ac)?ad(ac):void 0};function ag(e){let t=e[rB];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function ab(e,t){t.unfinalizedDrafts_=t.drafts_.length;let n=t.drafts_[0];if(void 0!==e&&e!==n){n[rB].modified_&&(ah(t),r$(4)),rX(e)&&(e=ay(t,e));let{patchPlugin_:r}=t;r&&r.generateReplacementPatches_(n[rB].base_,e,t)}else e=ay(t,n);return function(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&aa(t,n)}(t,e,!0),ah(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==rH?e:void 0}function ay(e,t){if(as(t))return t;let n=t[rB];if(!n)return aE(t,e.handledSet_,e);if(!ax(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){let{callbacks_:t}=n;if(t)for(;t.length>0;)t.pop()(e);a_(n,e)}return n.copy_}function aw(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var ax=(e,t)=>e.scope_===t,aS=[];function ak(e,t,n,r){let a=e.copy_||e.base_,o=e.type_;if(void 0!==r&&r5(a,r,o)===t)return void r4(a,r,n,o);if(!e.draftLocations_){let t=e.draftLocations_=new Map;r2(a,(e,n)=>{if(rJ(n)){let r=t.get(n)||[];r.push(e),t.set(n,r)}})}for(let r of e.draftLocations_.get(t)??aS)r4(a,r,n,o)}function a_(e,t){if(e.modified_&&!e.finalized_&&(3===e.type_||1===e.type_&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){let{patchPlugin_:n}=t;if(n){let r=n.getPath(e);r&&n.generatePatches_(e,r,t)}aw(e)}}function aE(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||rJ(e)||t.has(e)||!rX(e)||as(e)||(t.add(e),r2(e,(r,a)=>{if(rJ(a)){let t=a[rB];ax(t,n)&&(r4(e,r,an(t),e.type_),aw(t))}else rX(a)&&aE(a,t,n)})),e}var aj={get(e,t){var n,r,a,o;let s;if(t===rB)return e;let i=e.scope_.arrayMethodsPlugin_,l=1===e.type_&&"string"==typeof t;if(l&&i?.isArrayOperationMethod(t))return i.createMethodInterceptor(e,t);let c=e.copy_||e.base_;if(!r7(c,t,e.type_)){let r;return n=e,(r=aN(c,t))?rG in r?r[rG]:r.get?.call(n.draft_):void 0}let u=c[t];if(e.finalized_||!rX(u)||l&&e.operationMethod&&i?.isMutatingArrayMethod(e.operationMethod)&&Number.isInteger(s=+t)&&String(s)===t)return u;if(u===aP(e.base_,t)||(r=e,a=t,o=u,!(1!==r.type_||!r.allIndicesReassigned_||r.assigned_?.get(a))&&rX(o)&&!o[rB]&&r.baseRefs_.has(o))){aT(e);let n=1===e.type_?+t:t,r=aM(e.scope_,u,e,n);return e.copy_[n]=r}return u},has:(e,t)=>t in(e.copy_||e.base_),ownKeys:e=>Reflect.ownKeys(e.copy_||e.base_),set(e,t,n){let r=aN(e.copy_||e.base_,t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){let r=aP(e.copy_||e.base_,t),a=r?.[rB];if(a&&a.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if((n===r?0!==n||1/n==1/r:n!=n&&r!=r)&&(void 0!==n||r7(e.base_,t,e.type_)))return!0;aT(e),aO(e)}return!!(e.copy_[t]===n&&(void 0!==n||r7(e.copy_,t,e.type_))||Number.isNaN(n)&&Number.isNaN(e.copy_[t]))||(e.copy_[t]=n,e.assigned_.set(t,!0),!function(e,t,n){let{scope_:r}=e;if(rJ(n)){let a=n[rB];ax(a,r)&&a.callbacks_.push(function(){aT(e),ak(e,n,an(a),t)})}else rX(n)&&e.callbacks_.push(function(){let a=e.copy_||e.base_;3===e.type_?a.has(n)&&aE(n,r.handledSet_,r):r5(a,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&aE(r5(e.copy_,t,e.type_),r.handledSet_,r)})}(e,t,n),!0)},deleteProperty:(e,t)=>(aT(e),void 0!==aP(e.base_,t)||t in e.base_?(e.assigned_.set(t,!1),aO(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){let n=e.copy_||e.base_,r=Reflect.getOwnPropertyDescriptor(n,t);return r?{[rQ]:!0,[rY]:1!==e.type_||"length"!==t,[rK]:r[rK],[rG]:n[t]}:r},defineProperty(){r$(11)},getPrototypeOf:e=>rq(e.base_),setPrototypeOf(){r$(12)}},aC={};for(let e in aj){let t=aj[e];aC[e]=function(){let e=arguments;return e[0]=e[0][0],t.apply(this,e)}}function aP(e,t){let n=e[rB];return(n?n.copy_||n.base_:e)[t]}function aN(e,t){if(!(t in e))return;let n=rq(e);for(;n;){let e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=rq(n)}}function aO(e){!e.modified_&&(e.modified_=!0,e.parent_&&aO(e.parent_))}function aT(e){e.copy_||(e.assigned_=new Map,e.copy_=ar(e.base_,e.scope_.immer_.useStrictShallowCopy_))}aC.deleteProperty=function(e,t){return aC.set.call(this,e,t,void 0)},aC.set=function(e,t,n){return aj.set.call(this,e[0],t,n,e[0])};var aA=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,t,n)=>{let r;if(at(e)&&!at(t)){let n=t;t=e;let r=this;return function(e=n,...a){return r.produce(e,e=>t.call(this,e,...a))}}if(at(t)||r$(6),void 0===n||at(n)||r$(7),rX(e)){let a=av(this),o=aM(a,e,void 0),s=!0;try{r=t(o),s=!1}finally{s?ah(a):am(a)}return ap(a,n),ab(r,a)}if(e&&ae(e))r$(1);else{if(void 0===(r=t(e))&&(r=e),r===rH&&(r=void 0),this.autoFreeze_&&aa(r,!0),n){let t=[],a=[];ad(al).generateReplacementPatches_(e,r,{patches_:t,inversePatches_:a}),n(t,a)}return r}},this.produceWithPatches=(e,t)=>{let n,r;return at(e)?(t,...n)=>this.produceWithPatches(t,t=>e(t,...n)):[this.produce(e,t,(e,t)=>{n=e,r=t}),n,r]},"boolean"==typeof e?.autoFreeze&&this.setAutoFreeze(e.autoFreeze),"boolean"==typeof e?.useStrictShallowCopy&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),"boolean"==typeof e?.useStrictIteration&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){rX(e)||r$(8),rJ(e)&&(e=aR(e));let t=av(this),n=aM(t,e,void 0);return n[rB].isManual_=!0,am(t),n}finishDraft(e,t){let n=e&&e[rB];n&&n.isManual_||r$(9);let{scope_:r}=n;return ap(r,t),ab(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){let r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));let r=ad(al).applyPatches_;return rJ(e)?r(e,t):this.produce(e,e=>r(e,t))}};function aM(e,t,n,r){let[a,o]=r9(t)?ad(ai).proxyMap_(t,n):r8(t)?ad(ai).proxySet_(t,n):function(e,t){let n=r6(e),r={type_:+!!n,scope_:t?t.scope_:he,modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},a=r,o=aj;n&&(a=[r],o=aC);let{revoke:s,proxy:i}=Proxy.revocable(a,o);return r.draft_=i,r.revoke_=s,[i,r]}(t,n);if((n?.scope_??he).drafts_.push(a),o.callbacks_=n?.callbacks_??[],o.key_=r,n&&void 0!==r)n.callbacks_.push(function(e){if(!o||!ax(o,e))return;e.mapSetPlugin_?.fixSetContents(o);let t=an(o);ak(n,o.draft_??o,t,r),a_(o,e)});else o.callbacks_.push(function(e){e.mapSetPlugin_?.fixSetContents(o);let{patchPlugin_:t}=e;o.modified_&&t&&t.generatePatches_(o,[],e)});return a}function aR(e){return rJ(e)||r$(10),function e(t){let n;if(!rX(t)||as(t))return t;let r=t[rB],a=!0;if(r){if(!r.modified_)return r.base_;r.finalized_=!0,n=ar(t,r.scope_.immer_.useStrictShallowCopy_),a=r.scope_.immer_.shouldUseStrictIteration()}else n=ar(t,!0);return r2(n,(t,r)=>{r4(n,t,e(r))},a),r&&(r.finalized_=!1),n}(e)}var az=globalThis.Iterator;az?.from;var aL=new aA,aI=aL.produce,aD=aL.produceWithPatches.bind(aL),aH=aL.applyPatches.bind(aL);function aF(e){return({dispatch:t,getState:n})=>r=>a=>"function"==typeof a?a(t,n,e):r(a)}var aB=aF(),a$="u">typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!=arguments.length)return"object"==typeof arguments[0]?rI:rI.apply(null,arguments)};function aV(e,t){function n(...r){if(t){let n=t(...r);if(!n)throw Error(od(0));return{type:e,payload:n.payload,..."meta"in n&&{meta:n.meta},..."error"in n&&{error:n.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=t=>rD(t)&&t.type===e,n}"u">typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;var aq=class e extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,e.prototype)}static get[Symbol.species](){return e}concat(...e){return super.concat.apply(this,e)}prepend(...t){return 1===t.length&&Array.isArray(t[0])?new e(...t[0].concat(this)):new e(...t.concat(this))}};function aU(e){return rX(e)?aI(e,()=>{}):e}function aW(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}var aY="RTK_autoBatch",aK=()=>e=>({payload:e,meta:{[aY]:!0}}),aQ=e=>t=>{setTimeout(t,e)};function aG(e){let t,n={},r=[],a={addCase(e,t){let r="string"==typeof e?e:e.type;if(!r)throw Error(od(28));if(r in n)throw Error(od(29));return n[r]=t,a},addAsyncThunk:(e,t)=>(t.pending&&(n[e.pending.type]=t.pending),t.rejected&&(n[e.rejected.type]=t.rejected),t.fulfilled&&(n[e.fulfilled.type]=t.fulfilled),t.settled&&r.push({matcher:e.settled,reducer:t.settled}),a),addMatcher:(e,t)=>(r.push({matcher:e,reducer:t}),a),addDefaultCase:e=>(t=e,a)};return e(a),[n,r,t]}var aJ=(e,t)=>e&&"function"==typeof e.match?e.match(t):e(t);function aX(...e){return t=>e.some(e=>aJ(e,t))}function aZ(...e){return t=>e.every(e=>aJ(e,t))}function a0(e,t){if(!e||!e.meta)return!1;let n="string"==typeof e.meta.requestId,r=t.indexOf(e.meta.requestStatus)>-1;return n&&r}function a1(e){return"function"==typeof e[0]&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function a2(...e){return 0===e.length?e=>a0(e,["pending"]):a1(e)?aX(...e.map(e=>e.pending)):a2()(e[0])}function a3(...e){return 0===e.length?e=>a0(e,["rejected"]):a1(e)?aX(...e.map(e=>e.rejected)):a3()(e[0])}function a7(...e){let t=e=>e&&e.meta&&e.meta.rejectedWithValue;return 0===e.length||a1(e)?aZ(a3(...e),t):a7()(e[0])}function a5(...e){return 0===e.length?e=>a0(e,["fulfilled"]):a1(e)?aX(...e.map(e=>e.fulfilled)):a5()(e[0])}function a4(...e){return 0===e.length?e=>a0(e,["pending","fulfilled","rejected"]):a1(e)?aX(...e.flatMap(e=>[e.pending,e.rejected,e.fulfilled])):a4()(e[0])}var a6=(e=21)=>{let t="",n=e;for(;n--;)t+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return t},a9=["name","message","stack","code"],a8=class{constructor(e,t){this.payload=e,this.meta=t}payload;meta;_type},oe=class{constructor(e,t){this.payload=e,this.meta=t}payload;meta;_type},ot="External signal was aborted",on=(()=>{function e(e,t,n){let r=aV(e+"/fulfilled",(e,t,n,r)=>({payload:e,meta:{...r||{},arg:n,requestId:t,requestStatus:"fulfilled"}})),a=aV(e+"/pending",(e,t,n)=>({payload:void 0,meta:{...n||{},arg:t,requestId:e,requestStatus:"pending"}})),o=aV(e+"/rejected",(e,t,r,a,o)=>({payload:a,error:(n&&n.serializeError||(e=>{if("object"==typeof e&&null!==e){let t={};for(let n of a9)"string"==typeof e[n]&&(t[n]=e[n]);return t}return{message:String(e)}}))(e||"Rejected"),meta:{...o||{},arg:r,requestId:t,rejectedWithValue:!!a,requestStatus:"rejected",aborted:e?.name==="AbortError",condition:e?.name==="ConditionError"}}));return Object.assign(function(e,{signal:s}={}){return(i,l,c)=>{let u,d,f=n?.idGenerator?n.idGenerator(e):a6(),p=new AbortController;function h(e){d=e,p.abort()}s&&(s.aborted?h(ot):s.addEventListener("abort",()=>h(ot),{once:!0}));let m=async function(){let s;try{var m;let o=n?.condition?.(e,{getState:l,extra:c});if(m=o,null!==m&&"object"==typeof m&&"function"==typeof m.then&&(o=await o),!1===o||p.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};let v=new Promise((e,t)=>{u=()=>{t({name:"AbortError",message:d||"Aborted"})},p.signal.addEventListener("abort",u,{once:!0})});i(a(f,e,n?.getPendingMeta?.({requestId:f,arg:e},{getState:l,extra:c}))),s=await Promise.race([v,Promise.resolve(t(e,{dispatch:i,getState:l,extra:c,requestId:f,signal:p.signal,abort:h,rejectWithValue:(e,t)=>new a8(e,t),fulfillWithValue:(e,t)=>new oe(e,t)})).then(t=>{if(t instanceof a8)throw t;return t instanceof oe?r(t.payload,f,e,t.meta):r(t,f,e)})])}catch(t){s=t instanceof a8?o(null,f,e,t.payload,t.meta):o(t,f,e)}finally{u&&p.signal.removeEventListener("abort",u)}return n&&!n.dispatchConditionRejection&&o.match(s)&&s.meta.condition||i(s),s}();return Object.assign(m,{abort:h,requestId:f,arg:e,unwrap:()=>m.then(or)})}},{pending:a,rejected:o,fulfilled:r,settled:aX(o,r),typePrefix:e})}return e.withTypes=()=>e,e})();function or(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}var oa=Symbol.for("rtk-slice-createasyncthunk"),oo=function({creators:e}={}){let t=e?.asyncThunk?.[oa];return function(e){let n,{name:r,reducerPath:a=r}=e;if(!r)throw Error(od(11));let o=("function"==typeof e.reducers?e.reducers(function(){function e(e,t){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...t}}return e.withTypes=()=>e,{reducer:e=>Object.assign({[e.name]:(...t)=>e(...t)}[e.name],{_reducerDefinitionType:"reducer"}),preparedReducer:(e,t)=>({_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:t}),asyncThunk:e}}()):e.reducers)||{},s=Object.keys(o),i={},l={},c={},u=[],d={addCase(e,t){let n="string"==typeof e?e:e.type;if(!n)throw Error(od(12));if(n in l)throw Error(od(13));return l[n]=t,d},addMatcher:(e,t)=>(u.push({matcher:e,reducer:t}),d),exposeAction:(e,t)=>(c[e]=t,d),exposeCaseReducer:(e,t)=>(i[e]=t,d)};function f(){let[t={},n=[],r]="function"==typeof e.extraReducers?aG(e.extraReducers):[e.extraReducers],a={...t,...l};return function(e,t){let n,[r,a,o]=aG(t);if("function"==typeof e)n=()=>aU(e());else{let t=aU(e);n=()=>t}function s(e=n(),t){let i=[r[t.type],...a.filter(({matcher:e})=>e(t)).map(({reducer:e})=>e)];return 0===i.filter(e=>!!e).length&&(i=[o]),i.reduce((e,n)=>{if(n)if(rJ(e)){let r=n(e,t);return void 0===r?e:r}else{if(rX(e))return aI(e,e=>n(e,t));let r=n(e,t);if(void 0===r){if(null===e)return e;throw Error("A case reducer on a non-draftable value must not return undefined")}return r}return e},e)}return s.getInitialState=n,s}(e.initialState,e=>{for(let t in a)e.addCase(t,a[t]);for(let t of u)e.addMatcher(t.matcher,t.reducer);for(let t of n)e.addMatcher(t.matcher,t.reducer);r&&e.addDefaultCase(r)})}s.forEach(n=>{let a=o[n],s={reducerName:n,type:`${r}/${n}`,createNotation:"function"==typeof e.reducers};"asyncThunk"===a._reducerDefinitionType?function({type:e,reducerName:t},n,r,a){if(!a)throw Error(od(18));let{payloadCreator:o,fulfilled:s,pending:i,rejected:l,settled:c,options:u}=n,d=a(e,o,u);r.exposeAction(t,d),s&&r.addCase(d.fulfilled,s),i&&r.addCase(d.pending,i),l&&r.addCase(d.rejected,l),c&&r.addMatcher(d.settled,c),r.exposeCaseReducer(t,{fulfilled:s||os,pending:i||os,rejected:l||os,settled:c||os})}(s,a,d,t):function({type:e,reducerName:t,createNotation:n},r,a){let o,s;if("reducer"in r){if(n&&"reducerWithPrepare"!==r._reducerDefinitionType)throw Error(od(17));o=r.reducer,s=r.prepare}else o=r;a.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,s?aV(e,s):aV(e))}(s,a,d)});let p=e=>e,h=new Map,m=new WeakMap;function v(e,t){return n||(n=f()),n(e,t)}function g(){return n||(n=f()),n.getInitialState()}function b(t,n=!1){function r(e){let a=e[t];return void 0===a&&n&&(a=aW(m,r,g)),a}function a(t=p){let r=aW(h,n,()=>new WeakMap);return aW(r,t,()=>{let r={};for(let[a,o]of Object.entries(e.selectors??{}))r[a]=function(e,t,n,r){function a(o,...s){let i=t(o);return void 0===i&&r&&(i=n()),e(i,...s)}return a.unwrapped=e,a}(o,t,()=>aW(m,t,g),n);return r})}return{reducerPath:t,getSelectors:a,get selectors(){return a(r)},selectSlice:r}}let y={name:r,reducer:v,actions:c,caseReducers:i,getInitialState:g,...b(a),injectInto(e,{reducerPath:t,...n}={}){let r=t??a;return e.inject({reducerPath:r,reducer:v},n),{...y,...b(r,!0)}}};return y}}();function os(){}var{assign:oi}=Object,ol="listenerMiddleware",oc=oi(aV(`${ol}/add`),{withTypes:()=>oc}),ou=oi(aV(`${ol}/remove`),{withTypes:()=>ou});function od(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var of="u"<typeof WeakRef?class{constructor(e){this.value=e}deref(){return this.value}}:WeakRef;function op(){return{s:0,v:void 0,o:null,p:null}}function oh(e,t={}){let n,r=op(),{resultEqualityCheck:a,maxSize:o}=t,s=void 0!==o;if(s&&(!Number.isInteger(o)||o<1))throw TypeError(`maxSize must be a positive integer, received: ${o}`);let i=null,l=0,c=0;function u(){l>=o&&(i=r,r=op(),l=0)}function d(){let t=r,{length:o}=arguments;for(let e=0;e<o;e++){let n=arguments[e];if("function"==typeof n||"object"==typeof n&&null!==n){let e=t.o;null===e&&(t.o=e=new WeakMap);let r=e.get(n);void 0===r?(t=op(),e.set(n,t)):t=r}else{let e=t.p;null===e&&(t.p=e=new Map);let r=e.get(n);void 0===r?(t=op(),e.set(n,t),l++):t=r}}if(1===t.s)return t.v;if(null!==i){let e=i;for(let t=0;t<o;t++){let n,r=arguments[t];if("function"==typeof r||"object"==typeof r&&null!==r){let t=e.o;n=null!==t?t.get(r):void 0}else{let t=e.p;n=null!==t?t.get(r):void 0}if(void 0===n){e=null;break}e=n}if(null!==e&&1===e.s){let n=t;return n.s=1,n.v=e.v,u(),e.v}}let d=t,f=e.apply(null,arguments);if(c++,a){var p;let e=(p=n)instanceof of?p.deref():p;null!=e&&a(e,f)&&(f=e,0!==c&&c--),n="object"==typeof f&&null!==f||"function"==typeof f?new of(f):f}return d.s=1,d.v=f,s&&u(),f}return d.clearCache=()=>{r=op(),i=null,l=0,d.resetResultsCount()},d.resultsCount=()=>c,d.resetResultsCount=()=>{c=0},d}var om=e=>Array.isArray(e)?e:[e],ov=function(e,...t){let n="function"==typeof e?{memoize:e,memoizeOptions:t}:e,r=(...e)=>{let t,r,a=0,o=0,s={},i=e.pop();"object"==typeof i&&(s=i,i=e.pop()),function(e,t=`expected a function, instead received ${typeof e}`){if("function"!=typeof e)throw TypeError(t)}(i,`createSelector expects an output function after the inputs, but received: [${typeof i}]`);let{memoize:l,memoizeOptions:c=[],argsMemoize:u=oh,argsMemoizeOptions:d=[]}={...n,...s},f=om(c),p=om(d),h=(!function(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(e=>"function"==typeof e)){let n=e.map(e=>"function"==typeof e?`function ${e.name||"unnamed"}()`:typeof e).join(", ");throw TypeError(`${t}[${n}]`)}}(t=Array.isArray(e[0])?e[0]:e,"createSelector expects all input-selectors to be functions, but received the following types: "),t),m=l(function(){return a++,i.apply(null,arguments)},...f);return Object.assign(u(function(){o++;let{length:e}=h,t=Array(e);for(let n=0;n<e;n++)t[n]=h[n].apply(null,arguments);return r=m.apply(null,t)},...p),{resultFunc:i,memoizedResultFunc:m,dependencies:h,dependencyRecomputations:()=>o,resetDependencyRecomputations:()=>{o=0},lastResult:()=>r,recomputations:()=>a,resetRecomputations:()=>{a=0},memoize:l,argsMemoize:u})};return Object.assign(r,{withTypes:()=>r}),r}(oh),og=class extends Error{issues;constructor(e){super(e[0].message),this.name="SchemaError",this.issues=e}},ob=((p8=ob||{}).uninitialized="uninitialized",p8.pending="pending",p8.fulfilled="fulfilled",p8.rejected="rejected",p8),oy="uninitialized",ow="pending",ox="fulfilled",oS="rejected";function ok(e){return{status:e,isUninitialized:e===oy,isLoading:e===ow,isSuccess:e===ox,isError:e===oS}}function o_(e,t){if(e===t||!(rz(e)&&rz(t)||Array.isArray(e)&&Array.isArray(t)))return t;let n=Object.keys(t),r=Object.keys(e),a=n.length===r.length,o=Array.isArray(t)?[]:{};for(let r of n)o[r]=o_(e[r],t[r]),a&&(a=e[r]===o[r]);return a?e:o}function oE(e,t,n){return e.reduce((e,r,a)=>(t(r,a)&&e.push(n(r,a)),e),[]).flat()}function oj(e){return null!=e}function oC(e){return[...e?.values()??[]].filter(oj)}function oP(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}var oN=()=>new Map,oO=(...e)=>fetch(...e),oT=e=>e.status>=200&&e.status<=299;function oA(e){if(!rz(e))return e;let t={...e};for(let[e,n]of Object.entries(t))void 0===n&&delete t[e];return t}var oM=class{constructor(e,t){this.value=e,this.meta=t}value;meta},oR="__rtkq/",oz="online",oL="offline",oI="focused",oD=aV(`${oR}${oI}`),oH=aV(`${oR}un${oI}`),oF=aV(`${oR}${oz}`),oB=aV(`${oR}${oL}`),o$=!1,oV="query",oq="mutation",oU="infinitequery";function oW(e){return e.type===oV}function oY(e){return e.type===oU}function oK(e){return oW(e)||oY(e)}function oQ(e,t,n,r,a,o){let s="function"==typeof e?e(t,n,r,a):e;return s?oE(s,oj,e=>o(oG(e))):[]}function oG(e){return"string"==typeof e?{type:e}:e}var oJ=(e,t)=>e.endpointDefinitions[t],oX=Symbol("forceQueryFn"),oZ=e=>"function"==typeof e[oX],o0=class extends og{constructor(e,t,n,r){super(e),this.value=t,this.schemaName=n,this._bqMeta=r}value;schemaName;_bqMeta},o1=(e,t)=>Array.isArray(e)?e.includes(t):!!e;async function o2(e,t,n,r){let a=await e["~standard"].validate(t);if(a.issues)throw new o0(a.issues,t,n,r);return a.value}function o3(e){return e}var o7=(e={})=>({...e,[aY]:!0});function o5(e,{pages:t,pageParams:n},r){let a=t.length-1;return e.getNextPageParam(t[a],t,n[a],n,r)}function o4(e,{pages:t,pageParams:n},r){return e.getPreviousPageParam?.(t[0],t,n[0],n,r)}function o6(e,t,n,r){return oQ(n[e.meta.arg.endpointName][t],a5(e)?e.payload:void 0,a7(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,r)}function o9(e,t,n){let r=e[t];r&&n(r)}function o8(e){return("arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)??e.requestId}function se(e,t,n){let r=e[o8(t)];r&&n(r)}var st={},sn=Symbol.for("RTKQ/skipToken"),sr={status:oy},sa=aI(sr,()=>{}),so=aI(sr,()=>{}),ss=WeakMap?new WeakMap:void 0,si=({endpointName:e,queryArgs:t})=>{let n="",r=ss?.get(t);if("string"==typeof r)n=r;else{let e=JSON.stringify(t,(e,t)=>t=rz(t="bigint"==typeof t?{$bigint:t.toString()}:t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t);rz(t)&&ss?.set(t,e),n=e}return`${e}(${n})`};function sl(e,...t){return Object.assign(e,...t)}var sc=({reducerPath:e,api:t,queryThunk:n,context:r,internalState:a,selectors:{selectQueryEntry:o,selectConfig:s},getRunningQueryThunk:i,mwApi:l})=>{let{removeQueryResult:c,unsubscribeQueryResult:u,cacheEntriesUpserted:d}=t.internalActions,f=aX(u.match,n.fulfilled,n.rejected,d.match);function p(e){let t=a.currentSubscriptions.get(e);return!!t&&t.size>0}let h={};function m(e){for(let t of e.values())t?.abort?.()}function v(e,t,n){let a=t.getState();for(let s of e){let e=o(a,s);e?.endpointName&&function(e,t,n,a){let s=oJ(r,t),l=s?.keepUnusedDataFor??a.keepUnusedDataFor;if(1/0===l)return;let u=Math.max(0,Math.min(l,2147482.647));if(!p(e)){let t=h[e];t&&clearTimeout(t),h[e]=setTimeout(()=>{if(!p(e)){let t=o(n.getState(),e);if(t?.endpointName){let e=n.dispatch(i(t.endpointName,t.originalArgs));e?.abort()}n.dispatch(c({queryCacheKey:e}))}delete h[e]},1e3*u)}}(s,e.endpointName,t,n)}}return(e,n)=>{let o=s(n.getState());if(f(e)){let t;if(d.match(e))t=e.payload.map(e=>e.queryDescription.queryCacheKey);else{let{queryCacheKey:n}=u.match(e)?e.payload:e.meta.arg;t=[n]}v(t,n,o)}if(t.util.resetApiState.match(e)){for(let[e,t]of Object.entries(h))t&&clearTimeout(t),delete h[e];m(a.runningQueries),m(a.runningMutations)}if(r.hasRehydrationInfo(e)){let{queries:t}=r.extractRehydrationInfo(e);v(Object.keys(t),n,o)}}},su=Error("Promise never resolved before cacheEntryRemoved."),sd=({api:e,reducerPath:t,context:n,queryThunk:r,mutationThunk:a,internalState:o,selectors:{selectQueryEntry:s,selectApiState:i}})=>{let l=a4(r),c=a4(a),u=a5(r,a),d={},{removeQueryResult:f,removeMutationResult:p,cacheEntriesUpserted:h}=e.internalActions;function m(e,t,n){let r=d[e];r?.valueResolved&&(r.valueResolved({data:t,meta:n}),delete r.valueResolved)}function v(e){let t=d[e];t&&(delete d[e],t.cacheEntryRemoved())}function g(e){let{arg:t,requestId:n}=e.meta,{endpointName:r,originalArgs:a}=t;return[r,a,n]}function b(t,r,a,o,s){let i=oJ(n,t),l=i?.onCacheEntryAdded;if(!l)return;let c={},u=new Promise(e=>{c.cacheEntryRemoved=e}),f=Promise.race([new Promise(e=>{c.valueResolved=e}),u.then(()=>{throw su})]);f.catch(()=>{}),d[a]=c;let p=e.endpoints[t].select(oK(i)?r:a),h=o.dispatch((e,t,n)=>n),m={...o,getCacheEntry:()=>p(o.getState()),requestId:s,extra:h,updateCachedData:oK(i)?n=>o.dispatch(e.util.updateQueryData(t,r,n)):void 0,cacheDataLoaded:f,cacheEntryRemoved:u};Promise.resolve(l(r,m)).catch(e=>{if(e!==su)throw e})}return(n,o,i)=>{var y;let w=l(y=n)?y.meta.arg.queryCacheKey:c(y)?y.meta.arg.fixedCacheKey??y.meta.requestId:f.match(y)?y.payload.queryCacheKey:p.match(y)?o8(y.payload):"";function x(e,t,n,r){let a=s(i,t),l=s(o.getState(),t);!a&&l&&b(e,r,t,o,n)}if(r.pending.match(n)){let[e,t,r]=g(n);x(e,w,r,t)}else if(h.match(n))for(let{queryDescription:e,value:t}of n.payload){let{endpointName:r,originalArgs:a,queryCacheKey:o}=e;x(r,o,n.meta.requestId,a),m(o,t,{})}else if(a.pending.match(n)){if(o.getState()[t].mutations[w]){let[e,t,r]=g(n);b(e,t,w,o,r)}}else if(u(n))m(w,n.payload,n.meta.baseQueryMeta);else if(f.match(n)||p.match(n))v(w);else if(e.util.resetApiState.match(n))for(let e of Object.keys(d))v(e)}},sf=({api:e,context:{apiUid:t},reducerPath:n})=>(n,r)=>{e.util.resetApiState.match(n)&&r.dispatch(e.internalActions.middlewareRegistered(t))},sp=({reducerPath:e,context:t,context:{endpointDefinitions:n},mutationThunk:r,queryThunk:a,api:o,assertTagType:s,refetchQuery:i,internalState:l})=>{let{removeQueryResult:c}=o.internalActions,u=aX(a5(r),a7(r)),d=aX(a5(a,r),a3(a,r)),f=[],p=0;function h(n,r){let a=r.getState(),s=a[e];if(f.push(...n),"delayed"===s.config.invalidationBehavior&&p>0)return;let u=f;if(f=[],0===u.length)return;let d=o.util.selectInvalidatedBy(a,u);t.batch(()=>{for(let{queryCacheKey:e}of Array.from(d.values())){let t=s.queries[e],n=oP(l.currentSubscriptions,e,oN);t&&(0===n.size?r.dispatch(c({queryCacheKey:e})):t.status!==oy&&r.dispatch(i(t)))}})}return(e,t)=>{(a.pending.match(e)||r.pending.match(e))&&p++,d(e)&&(p=Math.max(0,p-1)),u(e)?h(o6(e,"invalidatesTags",n,s),t):d(e)?h([],t):o.util.invalidateTags.match(e)&&h(oQ(e.payload,void 0,void 0,void 0,void 0,s),t)}},sh=({reducerPath:e,queryThunk:t,api:n,refetchQuery:r,internalState:a})=>{let{currentPolls:o,currentSubscriptions:s}=a,i=new Set,l=null;function c(t,n){i.add(t),l||(l=setTimeout(()=>{for(let t of i)!function({queryCacheKey:t},n){let r=n.getState()[e].queries[t],a=s.get(t);if(!r||r.status===oy)return;let{lowestPollingInterval:i}=f(a);if(!Number.isFinite(i))return d(t);let l=o.get(t),c=Date.now()+i;(!l||c<l.nextPollTimestamp)&&u({queryCacheKey:t},n)}({queryCacheKey:t},n);i.clear(),l=null},0))}function u({queryCacheKey:t},n){let a=n.getState()[e],i=a.queries[t],l=s.get(t);if(!i||i.status===oy)return;let{lowestPollingInterval:c,skipPollingIfUnfocused:d}=f(l);if(!Number.isFinite(c))return;let p=o.get(t);p?.timeout&&(clearTimeout(p.timeout),p.timeout=void 0);let h=Date.now()+c;o.set(t,{nextPollTimestamp:h,pollingInterval:c,timeout:setTimeout(()=>{(a.config.focused||!d)&&n.dispatch(r(i)),u({queryCacheKey:t},n)},c)})}function d(e){let t=o.get(e);t?.timeout&&clearTimeout(t.timeout),o.delete(e)}function f(e=new Map){let t=!1,n=1/0;for(let r of e.values())r.pollingInterval&&(n=Math.min(r.pollingInterval,n),t=r.skipPollingIfUnfocused||t);return{lowestPollingInterval:n,skipPollingIfUnfocused:t}}return(e,r)=>{(n.internalActions.updateSubscriptionOptions.match(e)||n.internalActions.unsubscribeQueryResult.match(e))&&c(e.payload.queryCacheKey,r),(t.pending.match(e)||t.rejected.match(e)&&e.meta.condition)&&c(e.meta.arg.queryCacheKey,r),(t.fulfilled.match(e)||t.rejected.match(e)&&!e.meta.condition)&&u(e.meta.arg,r),n.util.resetApiState.match(e)&&(function(){for(let e of o.keys())d(e)}(),l&&(clearTimeout(l),l=null),i.clear())}},sm=({api:e,context:t,queryThunk:n,mutationThunk:r})=>{let a=a2(n,r),o=a3(n,r),s=a5(n,r),i={};return(n,r)=>{if(a(n)){let{requestId:a,arg:{endpointName:o,originalArgs:s}}=n.meta,l=oJ(t,o),c=l?.onQueryStarted;if(c){let t={},n=new Promise((e,n)=>{t.resolve=e,t.reject=n});n.catch(()=>{}),i[a]=t;let u=e.endpoints[o].select(oK(l)?s:a),d=r.dispatch((e,t,n)=>n),f={...r,getCacheEntry:()=>u(r.getState()),requestId:a,extra:d,updateCachedData:oK(l)?t=>r.dispatch(e.util.updateQueryData(o,s,t)):void 0,queryFulfilled:n};c(s,f)}}else if(s(n)){let{requestId:e,baseQueryMeta:t}=n.meta;i[e]?.resolve({data:n.payload,meta:t}),delete i[e]}else if(o(n)){let{requestId:e,rejectedWithValue:t,baseQueryMeta:r}=n.meta;i[e]?.reject({error:n.payload??n.error,isUnhandledError:!t,meta:r}),delete i[e]}}},sv=Symbol(),sg=({createSelector:e=ov}={})=>({name:sv,init(t,{baseQuery:n,tagTypes:r,reducerPath:a,serializeQueryArgs:o,keepUnusedDataFor:s,refetchOnMountOrArgChange:i,refetchOnFocus:l,refetchOnReconnect:c,invalidationBehavior:u,onSchemaFailure:d,catchSchemaFailure:f,skipSchemaValidation:p},h){!function(){let e="replace",t="remove";function n(e){if(!rX(e))return e;if(r6(e))return e.map(n);if(r9(e))return new Map(Array.from(e.entries()).map(([e,t])=>[e,n(t)]));if(r8(e))return new Set(Array.from(e).map(n));let t=Object.create(rq(e));for(let r in e)t[r]=n(e[r]);return r7(e,rF)&&(t[rF]=e[rF]),t}function r(e){return rJ(e)?n(e):e}au[al]||(au[al]={applyPatches_:function(r,a){return a.forEach(a=>{let{path:o,op:s}=a,i=r;for(let e=0;e<o.length-1;e++){let t=r3(i),n=o[e];"string"!=typeof n&&"number"!=typeof n&&(n=""+n),(0===t||1===t)&&("__proto__"===n||n===rU)&&r$(19),at(i)&&n===rW&&r$(19),null!==(i=r5(i,n))&&ae(i)||r$(18,o.join("/"))}let l=r3(i),c=n(a.value),u=o[o.length-1];switch(s){case e:switch(l){case 2:return i.set(u,c);case 3:r$(16);default:return i[u]=c}case"add":switch(l){case 1:return"-"===u?i.push(c):i.splice(u,0,c);case 2:return i.set(u,c);case 3:return i.add(c);default:return i[u]=c}case t:switch(l){case 1:return i.splice(u,1);case 2:return i.delete(u);case 3:return i.delete(a.value);default:return delete i[u]}default:r$(17)}}),r},generatePatches_:function(n,a,o){if(n.scope_.processedForPatches_.has(n))return;n.scope_.processedForPatches_.add(n);let{patches_:s,inversePatches_:i}=o;switch(n.type_){case 0:case 2:return function(n,a,o,s){let{base_:i,copy_:l,type_:c}=n;r2(n.assigned_,(n,u)=>{let d=r5(i,n,c),f=r5(l,n,c),p=u?r7(i,n)?e:"add":t;if(d===f&&p===e)return;let h=a.concat(n);o.push(p===t?{op:p,path:h}:{op:p,path:h,value:r(f)}),s.push("add"===p?{op:t,path:h}:p===t?{op:"add",path:h,value:r(d)}:{op:e,path:h,value:r(d)})})}(n,a,s,i);case 1:return function(n,a,o,s){let{base_:i,assigned_:l}=n,c=n.copy_;c.length<i.length&&([i,c]=[c,i],[o,s]=[s,o]);let u=!0===n.allIndicesReassigned_;for(let t=0;t<i.length;t++){let n=c[t],d=i[t];if((u||l?.get(t.toString()))&&n!==d){let i=n?.[rB];if(i&&i.modified_)continue;let l=a.concat([t]);o.push({op:e,path:l,value:r(n)}),s.push({op:e,path:l,value:r(d)})}}for(let e=i.length;e<c.length;e++){let t=a.concat([e]);o.push({op:"add",path:t,value:r(c[e])})}for(let e=c.length-1;i.length<=e;--e){let n=a.concat([e]);s.push({op:t,path:n})}}(n,a,s,i);case 3:return function(e,n,r,a){let{base_:o,copy_:s}=e,i=0;o.forEach(e=>{if(!s.has(e)){let o=n.concat([i]);r.push({op:t,path:o,value:e}),a.unshift({op:"add",path:o,value:e})}i++}),i=0,s.forEach(e=>{if(!o.has(e)){let o=n.concat([i]);r.push({op:"add",path:o,value:e}),a.unshift({op:t,path:o,value:e})}i++})}(n,a,s,i)}},generateReplacementPatches_:function(t,n,r){let{patches_:a,inversePatches_:o}=r;a.push({op:e,path:[],value:n===rH?void 0:n}),o.push({op:e,path:[],value:t})},getPath:function e(t,n=[]){if(void 0!==t.key_){var r;let e,a=t.parent_.copy_??t.parent_.base_,o=ae(r=r5(a,t.key_))?r?.[rB]:null,s=r5(a,t.key_);if(void 0===s||s!==t.draft_&&s!==t.base_&&s!==t.copy_||null!=o&&o.base_!==t.base_)return null;let i=3===t.parent_.type_;if(e=i?Array.from(t.parent_.drafts_.keys()).indexOf(t.key_):t.key_,!(i&&a.size>e||r7(a,e)))return null;n.push(e)}if(t.parent_)return e(t.parent_,n);n.reverse();try{var a=t.copy_,o=n;let e=a;for(let t=0;t<o.length-1;t++)if(!ae(e=r5(e,o[t]))||null===e)throw Error(`Cannot resolve path at '${o.join("/")}'`)}catch(e){return null}return n}})}();let m=e=>e;Object.assign(t,{reducerPath:a,endpoints:{},internalActions:{onOnline:oF,onOffline:oB,onFocus:oD,onFocusLost:oH},util:{}});let v=function({serializeQueryArgs:e,reducerPath:t,createSelector:n}){let r=e=>sa,a=e=>so;return{buildQuerySelector:function(e,t){return c(e,t,o)},buildInfiniteQuerySelector:function(e,t){let{infiniteQueryOptions:n}=t;return c(e,t,function(e){var t,r,a,o,s,i;let l={...e,...ok(e.status)},{isLoading:c,isError:u,direction:d}=l,f="forward"===d,p="backward"===d;return{...l,hasNextPage:(t=n,r=l.data,a=l.originalArgs,!!r&&null!=o5(t,r,a)),hasPreviousPage:(o=n,s=l.data,i=l.originalArgs,!!s&&!!o.getPreviousPageParam&&null!=o4(o,s,i)),isFetchingNextPage:c&&f,isFetchingPreviousPage:c&&p,isFetchNextPageError:u&&f,isFetchPreviousPageError:u&&p}})},buildMutationSelector:function(){return e=>{let r;return n((r="object"==typeof e?o8(e)??sn:e)===sn?a:e=>(function(e){return e[t]})(e)?.mutations?.[r]??so,o)}},selectInvalidatedBy:function(e,n){let r=e[t],a=new Set;for(let e of oE(n,oj,oG)){let t=r.provided.tags[e.type];if(t)for(let n of(void 0!==e.id?t[e.id]:Object.values(t).flat())??[])a.add(n)}return Array.from(a.values()).flatMap(e=>{let t=r.queries[e];return t?{queryCacheKey:e,endpointName:t.endpointName,originalArgs:t.originalArgs}:[]})},selectCachedArgsForQuery:function(e,t){return oE(Object.values(i(e)),e=>e?.endpointName===t&&e.status!==oy,e=>e.originalArgs)},selectApiState:s,selectQueries:i,selectMutations:function(e){return function(e){return e[t]}(e)?.mutations},selectQueryEntry:l,selectConfig:function(e){return function(e){return e[t]}(e)?.config}};function o(e){return{...e,...ok(e.status)}}function s(e){return e[t]}function i(e){return e[t]?.queries}function l(e,t){return i(e)?.[t]}function c(t,a,o){return s=>{if(s===sn)return n(r,o);let i=e({queryArgs:s,endpointDefinition:a,endpointName:t});return n(e=>l(e,i)??sa,o)}}}({serializeQueryArgs:o,reducerPath:a,createSelector:e}),{selectInvalidatedBy:g,selectCachedArgsForQuery:b,buildQuerySelector:y,buildInfiniteQuerySelector:w,buildMutationSelector:x}=v;sl(t.util,{selectInvalidatedBy:g,selectCachedArgsForQuery:b});let{queryThunk:S,infiniteQueryThunk:k,mutationThunk:_,patchQueryData:E,updateQueryData:j,upsertQueryData:C,prefetch:P,buildMatchThunkActions:N}=function({reducerPath:e,baseQuery:t,context:{endpointDefinitions:n},serializeQueryArgs:r,api:a,assertTagType:o,selectors:s,onSchemaFailure:i,catchSchemaFailure:l,skipSchemaValidation:c}){function u(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}function d(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}let f=(e,t)=>e.query&&e[t]?e[t]:o3,p=async(e,{signal:r,abort:a,rejectWithValue:o,fulfillWithValue:p,dispatch:m,getState:v,extra:g})=>{let b=n[e.endpointName],{metaSchema:y,skipSchemaValidation:w=c}=b,x=e.type===oV;try{let n,o=o3,i={signal:r,abort:a,dispatch:m,getState:v,extra:g,endpoint:e.endpointName,type:e.type,forced:x?h(e,v()):void 0,queryCacheKey:x?e.queryCacheKey:void 0},l=x?e[oX]:void 0,c=async(t,n,r,a)=>{if(null==n&&t.pages.length)return Promise.resolve({data:t});let o={queryArg:e.originalArgs,pageParam:n},s=await S(o),i=a?u:d;return{data:{pages:i(t.pages,s.data,r),pageParams:i(t.pageParams,n,r)},meta:s.meta}};async function S(e){let n,{extraOptions:r,argSchema:a,rawResponseSchema:s,responseSchema:c}=b;if(a&&!o1(w,"arg")&&(e=await o2(a,e,"argSchema",{})),l?n=l():b.query?(o=f(b,"transformResponse"),n=await t(b.query(e),i,r)):n=await b.queryFn(e,i,r,e=>t(e,i,r)),n.error)throw new oM(n.error,n.meta);let{data:u}=n;s&&!o1(w,"rawResponse")&&(u=await o2(s,n.data,"rawResponseSchema",n.meta));let d=await o(u,n.meta,e);return c&&!o1(w,"response")&&(d=await o2(c,d,"responseSchema",n.meta)),{...n,data:d}}if(x&&"infiniteQueryOptions"in b){let t,{infiniteQueryOptions:r}=b,{maxPages:a=1/0}=r,o=e.refetchCachedPages??r.refetchCachedPages??!0,i=s.selectQueryEntry(v(),e.queryCacheKey)?.data,u=(!h(e,v())||e.direction)&&i?i:{pages:[],pageParams:[]};if("direction"in e&&e.direction&&u.pages.length){let n="backward"===e.direction,o=(n?o4:o5)(r,u,e.originalArgs);t=await c(u,o,a,n)}else{let{initialPageParam:n=r.initialPageParam}=e,s=i?.pageParams??[],d=s[0]??n,f=s.length;if(t=await c(u,d,a),l&&(t={data:t.data.pages[0]}),o)for(let n=1;n<f;n++){let n=o5(r,t.data,e.originalArgs);t=await c(t.data,n,a)}}n=t}else n=await S(e.originalArgs);return y&&!o1(w,"meta")&&n.meta&&(n.meta=await o2(y,n.meta,"metaSchema",n.meta)),p(n.data,o7({fulfilledTimeStamp:Date.now(),baseQueryMeta:n.meta}))}catch(n){let t=n;if(t instanceof oM){let n=f(b,"transformErrorResponse"),{rawErrorResponseSchema:r,errorResponseSchema:a}=b,{value:s,meta:i}=t;try{r&&!o1(w,"rawErrorResponse")&&(s=await o2(r,s,"rawErrorResponseSchema",i)),y&&!o1(w,"meta")&&(i=await o2(y,i,"metaSchema",i));let t=await n(s,i,e.originalArgs);return a&&!o1(w,"errorResponse")&&(t=await o2(a,t,"errorResponseSchema",i)),o(t,o7({baseQueryMeta:i}))}catch(e){t=e}}try{if(t instanceof o0){let n={endpoint:e.endpointName,arg:e.originalArgs,type:e.type,queryCacheKey:x?e.queryCacheKey:void 0};b.onSchemaFailure?.(t,n),i?.(t,n);let{catchSchemaFailure:r=l}=b;if(r)return o(r(t,n),o7({baseQueryMeta:t._bqMeta}))}}catch(e){t=e}throw console.error(t),t}};function h(e,t){let n=s.selectQueryEntry(t,e.queryCacheKey),r=s.selectConfig(t).refetchOnMountOrArgChange,a=n?.fulfilledTimeStamp,o=e.forceRefetch??(e.subscribe&&r);return!!o&&(!0===o||(Number(new Date)-Number(a))/1e3>=o)}let m=()=>on(`${e}/executeQuery`,p,{getPendingMeta({arg:e}){let t=n[e.endpointName];return o7({startedTimeStamp:Date.now(),...oY(t)?{direction:e.direction}:{}})},condition(e,{getState:t}){let r=t(),a=s.selectQueryEntry(r,e.queryCacheKey),o=a?.fulfilledTimeStamp,i=e.originalArgs,l=a?.originalArgs,c=n[e.endpointName],u=e.direction;return!!oZ(e)||a?.status!=="pending"&&(!!(h(e,r)||oW(c)&&c?.forceRefetch?.({currentArg:i,previousArg:l,endpointState:a,state:r}))||!o||!!u)},dispatchConditionRejection:!0}),v=m(),g=m();function b(e){return t=>t?.meta?.arg?.endpointName===e}return{queryThunk:v,mutationThunk:on(`${e}/executeMutation`,p,{getPendingMeta:()=>o7({startedTimeStamp:Date.now()})}),infiniteQueryThunk:g,prefetch:(e,t,n={})=>(r,o)=>{let s="force"in n&&n.force,i="ifOlderThan"in n&&n.ifOlderThan,l=(n=!0)=>a.endpoints[e].initiate(t,{forceRefetch:n,subscribe:!1}),c=a.endpoints[e].select(t)(o());if(s)r(l());else if(i){let e=c?.fulfilledTimeStamp;if(!e)return void r(l());(Number(new Date)-Number(new Date(e)))/1e3>=i&&r(l())}else r(l(!1))},updateQueryData:(e,t,n,r=!0)=>(o,s)=>{let i,l=a.endpoints[e].select(t)(s()),c={patches:[],inversePatches:[],undo:()=>o(a.util.patchQueryData(e,t,c.inversePatches,r))};if(l.status===oy)return c;if("data"in l)if(rX(l.data)){let[e,t,r]=aD(l.data,n);c.patches.push(...t),c.inversePatches.push(...r),i=e}else i=n(l.data),c.patches.push({op:"replace",path:[],value:i}),c.inversePatches.push({op:"replace",path:[],value:l.data});return 0===c.patches.length||o(a.util.patchQueryData(e,t,c.patches,r)),c},upsertQueryData:(e,t,n)=>r=>r(a.endpoints[e].initiate(t,{subscribe:!1,forceRefetch:!0,[oX]:()=>({data:n})})),patchQueryData:(e,t,s,i)=>(l,c)=>{let u=n[e],d=r({queryArgs:t,endpointDefinition:u,endpointName:e});if(l(a.internalActions.queryResultPatched({queryCacheKey:d,patches:s})),!i)return;let f=a.endpoints[e].select(t)(c()),p=oQ(u.providesTags,f.data,void 0,t,{},o);l(a.internalActions.updateProvidedBy([{queryCacheKey:d,providedTags:p}]))},buildMatchThunkActions:function(e,t){return{matchPending:aZ(a2(e),b(t)),matchFulfilled:aZ(a5(e),b(t)),matchRejected:aZ(a3(e),b(t))}}}}({baseQuery:n,reducerPath:a,context:h,api:t,serializeQueryArgs:o,assertTagType:m,selectors:v,onSchemaFailure:d,catchSchemaFailure:f,skipSchemaValidation:p}),{reducer:O,actions:T}=function({reducerPath:e,queryThunk:t,mutationThunk:n,serializeQueryArgs:r,context:{endpointDefinitions:a,apiUid:o,extractRehydrationInfo:s,hasRehydrationInfo:i},assertTagType:l,config:c}){let u=aV(`${e}/resetApiState`);function d(e,t,n,r){e[t.queryCacheKey]??={status:oy,endpointName:t.endpointName},o9(e,t.queryCacheKey,e=>{e.status=ow,e.requestId=n&&e.requestId?e.requestId:r.requestId,void 0!==t.originalArgs&&(e.originalArgs=t.originalArgs),e.startedTimeStamp=r.startedTimeStamp,oY(a[r.arg.endpointName])&&"direction"in t&&(e.direction=t.direction)})}function f(e,t,n,r){o9(e,t.arg.queryCacheKey,e=>{if(e.requestId!==t.requestId&&!r)return;let{merge:o}=a[t.arg.endpointName];if(e.status=ox,o)if(void 0!==e.data){let{fulfilledTimeStamp:r,arg:a,baseQueryMeta:s,requestId:i}=t,l=aI(e.data,e=>o(e,n,{arg:a.originalArgs,baseQueryMeta:s,fulfilledTimeStamp:r,requestId:i}));e.data=l}else e.data=n;else{var s;e.data=a[t.arg.endpointName].structuralSharing??!0?o_(rJ(e.data)?(rJ(s=e.data)||r$(15),s[rB].base_):e.data,n):n}delete e.error,e.fulfilledTimeStamp=t.fulfilledTimeStamp})}let p=oo({name:`${e}/queries`,initialState:st,reducers:{removeQueryResult:{reducer(e,{payload:{queryCacheKey:t}}){delete e[t]},prepare:aK()},cacheEntriesUpserted:{reducer(e,t){for(let n of t.payload){let{queryDescription:r,value:a}=n;d(e,r,!0,{arg:r,requestId:t.meta.requestId,startedTimeStamp:t.meta.timestamp}),f(e,{arg:r,requestId:t.meta.requestId,fulfilledTimeStamp:t.meta.timestamp,baseQueryMeta:{}},a,!0)}},prepare:e=>({payload:e.map(e=>{let{endpointName:t,arg:n,value:o}=e,s=a[t];return{queryDescription:{type:oV,endpointName:t,originalArgs:e.arg,queryCacheKey:r({queryArgs:n,endpointDefinition:s,endpointName:t})},value:o}}),meta:{[aY]:!0,requestId:a6(),timestamp:Date.now()}})},queryResultPatched:{reducer(e,{payload:{queryCacheKey:t,patches:n}}){o9(e,t,e=>{e.data=aH(e.data,n.concat())})},prepare:aK()}},extraReducers(e){e.addCase(t.pending,(e,{meta:t,meta:{arg:n}})=>{let r=oZ(n);d(e,n,r,t)}).addCase(t.fulfilled,(e,{meta:t,payload:n})=>{let r=oZ(t.arg);f(e,t,n,r)}).addCase(t.rejected,(e,{meta:{condition:t,arg:n,requestId:r},error:a,payload:o})=>{o9(e,n.queryCacheKey,e=>{if(t);else{if(e.requestId!==r)return;e.status=oS,e.error=o??a}})}).addMatcher(i,(e,t)=>{let{queries:n}=s(t);for(let[t,r]of Object.entries(n))(r?.status===ox||r?.status===oS)&&(e[t]=r)})}}),h=oo({name:`${e}/mutations`,initialState:st,reducers:{removeMutationResult:{reducer(e,{payload:t}){let n=o8(t);n in e&&delete e[n]},prepare:aK()}},extraReducers(e){e.addCase(n.pending,(e,{meta:t,meta:{requestId:n,arg:r,startedTimeStamp:a}})=>{r.track&&(e[o8(t)]={requestId:n,status:ow,endpointName:r.endpointName,startedTimeStamp:a})}).addCase(n.fulfilled,(e,{payload:t,meta:n})=>{n.arg.track&&se(e,n,e=>{e.requestId===n.requestId&&(e.status=ox,e.data=t,e.fulfilledTimeStamp=n.fulfilledTimeStamp)})}).addCase(n.rejected,(e,{payload:t,error:n,meta:r})=>{r.arg.track&&se(e,r,e=>{e.requestId===r.requestId&&(e.status=oS,e.error=t??n)})}).addMatcher(i,(e,t)=>{let{mutations:n}=s(t);for(let[t,r]of Object.entries(n))(r?.status===ox||r?.status===oS)&&t!==r?.requestId&&(e[t]=r)})}}),m=oo({name:`${e}/invalidation`,initialState:{tags:{},keys:{}},reducers:{updateProvidedBy:{reducer(e,t){for(let{queryCacheKey:n,providedTags:r}of t.payload){for(let{type:t,id:a}of(v(e,n),r)){let r=(e.tags[t]??={})[a||"__internal_without_id"]??=[];r.includes(n)||r.push(n)}e.keys[n]=r}},prepare:aK()}},extraReducers(e){e.addCase(p.actions.removeQueryResult,(e,{payload:{queryCacheKey:t}})=>{v(e,t)}).addMatcher(i,(e,t)=>{let{provided:n}=s(t);for(let[t,r]of Object.entries(n.tags??{}))for(let[a,o]of Object.entries(r)){let r=(e.tags[t]??={})[a||"__internal_without_id"]??=[];for(let t of o)r.includes(t)||r.push(t),e.keys[t]=n.keys[t]}}).addMatcher(aX(a5(t),a7(t)),(e,t)=>{g(e,[t])}).addMatcher(p.actions.cacheEntriesUpserted.match,(e,t)=>{g(e,t.payload.map(({queryDescription:e,value:t})=>({type:"UNKNOWN",payload:t,meta:{requestStatus:"fulfilled",requestId:"UNKNOWN",arg:e}})))})}});function v(e,t){var n;for(let r of rJ(n=e.keys[t]??[])?aR(n):n){let n=r.type,a=r.id??"__internal_without_id",o=e.tags[n]?.[a];o&&(e.tags[n][a]=(rJ(o)?aR(o):o).filter(e=>e!==t))}delete e.keys[t]}function g(e,t){let n=t.map(e=>{let t=o6(e,"providesTags",a,l),{queryCacheKey:n}=e.meta.arg;return{queryCacheKey:n,providedTags:t}});m.caseReducers.updateProvidedBy(e,m.actions.updateProvidedBy(n))}let b=oo({name:`${e}/subscriptions`,initialState:st,reducers:{updateSubscriptionOptions(e,t){},unsubscribeQueryResult(e,t){},internal_getRTKQSubscriptions(){}}}),y=oo({name:`${e}/internalSubscriptions`,initialState:st,reducers:{subscriptionsUpdated:{reducer:(e,t)=>aH(e,t.payload),prepare:aK()}}}),w=oo({name:`${e}/config`,initialState:{online:"u"<typeof navigator||void 0===navigator.onLine||navigator.onLine,focused:"u"<typeof document||"hidden"!==document.visibilityState,middlewareRegistered:!1,...c},reducers:{middlewareRegistered(e,{payload:t}){e.middlewareRegistered="conflict"!==e.middlewareRegistered&&o===t||"conflict"}},extraReducers:e=>{e.addCase(oF,e=>{e.online=!0}).addCase(oB,e=>{e.online=!1}).addCase(oD,e=>{e.focused=!0}).addCase(oH,e=>{e.focused=!1}).addMatcher(i,e=>({...e}))}}),x=rL({queries:p.reducer,mutations:h.reducer,provided:m.reducer,subscriptions:y.reducer,config:w.reducer});return{reducer:(e,t)=>x(u.match(t)?void 0:e,t),actions:{...w.actions,...p.actions,...b.actions,...y.actions,...h.actions,...m.actions,resetApiState:u}}}({context:h,queryThunk:S,infiniteQueryThunk:k,mutationThunk:_,serializeQueryArgs:o,reducerPath:a,assertTagType:m,config:{refetchOnFocus:l,refetchOnReconnect:c,refetchOnMountOrArgChange:i,keepUnusedDataFor:s,reducerPath:a,invalidationBehavior:u}});sl(t.util,{patchQueryData:E,updateQueryData:j,upsertQueryData:C,prefetch:P,resetApiState:T.resetApiState,upsertQueryEntries:T.cacheEntriesUpserted}),sl(t.internalActions,T);let A=new WeakMap,M=e=>oP(A,e,()=>({currentSubscriptions:new Map,currentPolls:new Map,runningQueries:new Map,runningMutations:new Map})),{buildInitiateQuery:R,buildInitiateInfiniteQuery:z,buildInitiateMutation:L,getRunningMutationThunk:I,getRunningMutationsThunk:D,getRunningQueriesThunk:H,getRunningQueryThunk:F}=function({serializeQueryArgs:e,queryThunk:t,infiniteQueryThunk:n,mutationThunk:r,api:a,context:o,getInternalState:s}){let i=e=>s(e)?.runningQueries,l=e=>s(e)?.runningMutations,{unsubscribeQueryResult:c,removeMutationResult:u,updateSubscriptionOptions:d}=a.internalActions;return{buildInitiateQuery:function(e,t){return f(e,t)},buildInitiateInfiniteQuery:function(e,t){return f(e,t)},buildInitiateMutation:function(e){return(t,{track:n=!0,fixedCacheKey:a}={})=>(o,s)=>{var i,c;let d=o(r({type:"mutation",endpointName:e,originalArgs:t,track:n,fixedCacheKey:a})),{requestId:f,abort:p,unwrap:h}=d,m=Object.assign((i=d.unwrap().then(e=>({data:e})),c=e=>({error:e}),i.catch(c)),{arg:d.arg,requestId:f,abort:p,unwrap:h,reset:()=>{o(u({requestId:f,fixedCacheKey:a}))}}),v=l(o);return v.set(f,m),m.then(()=>{v.delete(f)}),a&&(v.set(a,m),m.then(()=>{v.get(a)===m&&v.delete(a)})),m}},getRunningQueryThunk:function(t,n){return r=>{let a=e({queryArgs:n,endpointDefinition:oJ(o,t),endpointName:t});return i(r)?.get(a)}},getRunningMutationThunk:function(e,t){return e=>l(e)?.get(t)},getRunningQueriesThunk:function(){return e=>oC(i(e))},getRunningMutationsThunk:function(){return e=>oC(l(e))}};function f(r,o){let s=(l,{subscribe:u=!0,forceRefetch:f,subscriptionOptions:p,[oX]:h,...m}={})=>(v,g)=>{let b,y=e({queryArgs:l,endpointDefinition:o,endpointName:r}),w={...m,type:oV,subscribe:u,forceRefetch:f,subscriptionOptions:p,endpointName:r,originalArgs:l,queryCacheKey:y,[oX]:h};if(oW(o))b=t(w);else{let{direction:e,initialPageParam:t,refetchCachedPages:r}=m;b=n({...w,direction:e,initialPageParam:t,refetchCachedPages:r})}let x=a.endpoints[r].select(l),S=v(b),k=x(g()),{requestId:_,abort:E}=S,j=k.requestId!==_,C=i(v)?.get(y),P=()=>x(g()),N=Object.assign(h?S.then(P):j&&!C?Promise.resolve(k):Promise.all([C,S]).then(P),{arg:l,requestId:_,subscriptionOptions:p,queryCacheKey:y,abort:E,async unwrap(){let e=await N;if(e.isError)throw e.error;return e.data},refetch:e=>v(s(l,{subscribe:!1,forceRefetch:!0,...e})),unsubscribe(){u&&v(c({queryCacheKey:y,requestId:_}))},updateSubscriptionOptions(e){N.subscriptionOptions=e,v(d({endpointName:r,requestId:_,queryCacheKey:y,options:e}))}});if(!C&&!j&&!h){let e=i(v);e.set(y,N),N.then(()=>{e.delete(y)})}return N};return s}}({queryThunk:S,mutationThunk:_,infiniteQueryThunk:k,api:t,serializeQueryArgs:o,context:h,getInternalState:M});sl(t.util,{getRunningMutationThunk:I,getRunningMutationsThunk:D,getRunningQueryThunk:F,getRunningQueriesThunk:H});let{middleware:B,actions:$}=function(e){let{reducerPath:t,queryThunk:n,api:r,context:a,getInternalState:o}=e,{apiUid:s}=a,i={invalidateTags:aV(`${t}/invalidateTags`)},l=e=>e.type.startsWith(`${t}/`),c=[sf,sc,sp,sh,sd,sm];return{middleware:n=>{let i=!1,d=o(n.dispatch),f={...e,internalState:d,refetchQuery:u,isThisApiSliceAction:l,mwApi:n},p=c.map(e=>e(f)),h=(({api:e,queryThunk:t,internalState:n,mwApi:r})=>{let a=`${e.reducerPath}/subscriptions`,o=null,s=null,{updateSubscriptionOptions:i,unsubscribeQueryResult:l}=e.internalActions,c=()=>n.currentSubscriptions,u={getSubscriptions:c,getSubscriptionCount:e=>{let t=c().get(e);return t?.size??0},isRequestSubscribed:(e,t)=>{let n=c();return!!n?.get(e)?.get(t)}};function d(e){return JSON.parse(JSON.stringify(Object.fromEntries([...e].map(([e,t])=>[e,Object.fromEntries(t)]))))}return(r,c)=>{if(o||(o=d(n.currentSubscriptions)),e.util.resetApiState.match(r))return o={},n.currentSubscriptions.clear(),s=null,[!0,!1];if(e.internalActions.internal_getRTKQSubscriptions.match(r))return[!1,u];let f=((n,r)=>{if(i.match(r)){let{queryCacheKey:e,requestId:t,options:a}=r.payload,o=n.get(e);return o?.has(t)&&o.set(t,a),!0}if(l.match(r)){let{queryCacheKey:e,requestId:t}=r.payload,a=n.get(e);return a&&a.delete(t),!0}if(e.internalActions.removeQueryResult.match(r))return n.delete(r.payload.queryCacheKey),!0;if(t.pending.match(r)){let{meta:{arg:e,requestId:t}}=r,a=oP(n,e.queryCacheKey,oN);return e.subscribe&&a.set(t,e.subscriptionOptions??a.get(t)??{}),!0}let a=!1;if(t.rejected.match(r)){let{meta:{condition:e,arg:t,requestId:o}}=r;if(e&&t.subscribe){let e=oP(n,t.queryCacheKey,oN);e.set(o,t.subscriptionOptions??e.get(o)??{}),a=!0}}return a})(n.currentSubscriptions,r),p=!0;if(f){s||(s=setTimeout(()=>{let t=d(n.currentSubscriptions),[,r]=aD(o,()=>t);c.next(e.internalActions.subscriptionsUpdated(r)),o=t,s=null},500));let i="string"==typeof r.type&&!!r.type.startsWith(a),l=t.rejected.match(r)&&r.meta.condition&&!!r.meta.arg.subscribe;p=!i&&!l}return[p,!1]}})(f),m=(({reducerPath:e,context:t,api:n,refetchQuery:r,internalState:a})=>{let{removeQueryResult:o}=n.internalActions;function s(n,s){let i=n.getState()[e],l=i.queries,c=a.currentSubscriptions;t.batch(()=>{for(let e of c.keys()){let t=l[e],a=c.get(e);if(!a||!t)continue;let u=[...a.values()];(u.some(e=>!0===e[s])||u.every(e=>void 0===e[s])&&i.config[s])&&(0===a.size?n.dispatch(o({queryCacheKey:e})):t.status!==oy&&n.dispatch(r(t)))}})}return(e,t)=>{oD.match(e)&&s(t,"refetchOnFocus"),oF.match(e)&&s(t,"refetchOnReconnect")}})(f);return e=>o=>{let c;if(!rD(o))return e(o);i||(i=!0,n.dispatch(r.internalActions.middlewareRegistered(s)));let u={...n,next:e},d=n.getState(),[f,v]=h(o,u,d);if(c=f?e(o):v,n.getState()[t]&&(m(o,u,d),l(o)||a.hasRehydrationInfo(o)))for(let e of p)e(o,u,d);return c}},actions:i};function u(t){return e.api.endpoints[t.endpointName].initiate(t.originalArgs,{subscribe:!1,forceRefetch:!0})}}({reducerPath:a,context:h,queryThunk:S,mutationThunk:_,infiniteQueryThunk:k,api:t,assertTagType:m,selectors:v,getRunningQueryThunk:F,getInternalState:M});return sl(t.util,$),sl(t,{reducer:O,middleware:B}),{name:sv,injectEndpoint(e,n){let r=t.endpoints[e]??={};oW(n)&&sl(r,{name:e,select:y(e,n),initiate:R(e,n)},N(S,e)),n.type===oq&&sl(r,{name:e,select:x(),initiate:L(e)},N(_,e)),oY(n)&&sl(r,{name:e,select:w(e,n),initiate:z(e,n)},N(S,e))}}}});function sb(e){return e.replace(e[0],e[0].toUpperCase())}function sy(e){return"infinitequery"===e.type}function sw(e,...t){return Object.assign(e,...t)}sg();var sx=Symbol();function sS(e){let t=(0,g.useRef)(e),n=(0,g.useMemo)(()=>o_(t.current,e),[e]);return(0,g.useEffect)(()=>{t.current!==n&&(t.current=n)},[n]),n}function sk(e){let t=(0,g.useRef)(e);return(0,g.useEffect)(()=>{rg(t.current,e)||(t.current=e)},[e]),rg(t.current,e)?t.current:e}var s_="u">typeof window&&void 0!==window.document&&void 0!==window.document.createElement,sE="u">typeof navigator&&"ReactNative"===navigator.product,sj=s_||sE?g.useLayoutEffect:g.useEffect,sC=e=>e.isUninitialized?{...e,isUninitialized:!1,isFetching:!0,isLoading:void 0===e.data,status:ob.pending}:e;function sP(e,...t){let n={};return t.forEach(t=>{n[t]=e[t]}),n}var sN=["data","status","isLoading","isSuccess","isError","error"],sO=Symbol(),sT=function(...e){return function(t){let n=oh(e=>t.extractRehydrationInfo?.(e,{reducerPath:t.reducerPath??"api"})),r={reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1,invalidationBehavior:"delayed",...t,extractRehydrationInfo:n,serializeQueryArgs(e){let n=si;if("serializeQueryArgs"in e.endpointDefinition){let t=e.endpointDefinition.serializeQueryArgs;n=e=>{let n=t(e);return"string"==typeof n?n:si({...e,queryArgs:n})}}else t.serializeQueryArgs&&(n=t.serializeQueryArgs);return n(e)},tagTypes:[...t.tagTypes||[]]},a={endpointDefinitions:{},batch(e){e()},apiUid:a6(),extractRehydrationInfo:n,hasRehydrationInfo:oh(e=>null!=n(e))},o={injectEndpoints:function(e){for(let[t,n]of Object.entries(e.endpoints({query:e=>({...e,type:oV}),mutation:e=>({...e,type:oq}),infiniteQuery:e=>({...e,type:oU})}))){if(!0!==e.overrideExisting&&t in a.endpointDefinitions){if("throw"===e.overrideExisting)throw Error(od(39));continue}for(let e of(a.endpointDefinitions[t]=n,s))e.injectEndpoint(t,n)}return o},enhanceEndpoints({addTagTypes:e,endpoints:t}){if(e)for(let t of e)r.tagTypes.includes(t)||r.tagTypes.push(t);if(t)for(let[e,n]of Object.entries(t))"function"==typeof n?n(oJ(a,e)):Object.assign(oJ(a,e)||{},n);return o}},s=e.map(e=>e.init(o,r,a));return o.injectEndpoints({endpoints:t.endpoints})}}(sg(),(({batch:e=rP,hooks:t={useDispatch:rE,useSelector:rC,useStore:r_},createSelector:n=ov,unstable__sideEffectsInRender:r=!1,...a}={})=>({name:sO,init(a,{serializeQueryArgs:o},s){let{buildQueryHooks:i,buildInfiniteQueryHooks:l,buildMutationHook:c,usePrefetch:u}=function({api:e,moduleOptions:{batch:t,hooks:{useDispatch:n,useSelector:r,useStore:a},unstable__sideEffectsInRender:o,createSelector:s},serializeQueryArgs:i,context:l}){let c=o?e=>e():g.useEffect,u=e=>e.current?.unsubscribe?.(),d=l.endpointDefinitions;return{buildQueryHooks:function(r){let a=(e,t={})=>{let[n]=h(r,e,t);return v(n),(0,g.useMemo)(()=>({refetch:()=>(function(e){if(!e.current)throw Error(od(38));return e.current.refetch()})(n)}),[n])},o=({refetchOnReconnect:a,refetchOnFocus:o,pollingInterval:s=0,skipPollingIfUnfocused:i=!1}={})=>{let{initiate:l}=e.endpoints[r],d=n(),[f,p]=(0,g.useState)(sx),h=(0,g.useRef)(void 0),m=sk({refetchOnReconnect:a,refetchOnFocus:o,pollingInterval:s,skipPollingIfUnfocused:i});c(()=>{m!==h.current?.subscriptionOptions&&h.current?.updateSubscriptionOptions(m)},[m]);let v=(0,g.useRef)(m);c(()=>{v.current=m},[m]);let b=(0,g.useCallback)(function(e,n=!1){let r;return t(()=>{u(h),h.current=r=d(l(e,{subscriptionOptions:v.current,forceRefetch:!n})),p(e)}),r},[d,l]),y=(0,g.useCallback)(()=>{h.current?.queryCacheKey&&d(e.internalActions.removeQueryResult({queryCacheKey:h.current?.queryCacheKey}))},[d]);return(0,g.useEffect)(()=>()=>{u(h)},[]),(0,g.useEffect)(()=>{f===sx||h.current||b(f,!0)},[f,b]),(0,g.useMemo)(()=>[b,f,{reset:y}],[b,f,y])},s=m(r,f);return{useQueryState:s,useQuerySubscription:a,useLazyQuerySubscription:o,useLazyQuery(e){let[t,n,{reset:r}]=o(e),a=s(n,{...e,skip:n===sx}),i=(0,g.useMemo)(()=>({lastArg:n}),[n]);return(0,g.useMemo)(()=>[t,{...a,reset:r},i],[t,a,r,i])},useQuery(e,t){let n=a(e,t),r=s(e,{selectFromResult:e===sn||t?.skip?void 0:sC,...t}),o=sP(r,...sN);return(0,g.useDebugValue)(o),(0,g.useMemo)(()=>({...r,...n}),[r,n])}}},buildInfiniteQueryHooks:function(e){let n=(n,r={})=>{let[a,o,s,i]=h(e,n,r),l=(0,g.useRef)(i);c(()=>{l.current=i},[i]);let d=sk(r.refetchCachedPages),f=(0,g.useCallback)(function(e,n){let r;return t(()=>{u(a),a.current=r=o(s(e,{subscriptionOptions:l.current,direction:n}))}),r},[a,o,s]);v(a);let p=sS(r.skip?sn:n),m=(0,g.useCallback)(e=>{if(!a.current)throw Error(od(38));let t={refetchCachedPages:e?.refetchCachedPages??d};return a.current.refetch(t)},[a,d]);return(0,g.useMemo)(()=>({trigger:f,refetch:m,fetchNextPage:()=>f(p,"forward"),fetchPreviousPage:()=>f(p,"backward")}),[m,f,p])},r=m(e,p);return{useInfiniteQueryState:r,useInfiniteQuerySubscription:n,useInfiniteQuery(e,t){let{refetch:a,fetchNextPage:o,fetchPreviousPage:s}=n(e,t),i=r(e,{selectFromResult:e===sn||t?.skip?void 0:sC,...t}),l=sP(i,...sN,"hasNextPage","hasPreviousPage");return(0,g.useDebugValue)(l),(0,g.useMemo)(()=>({...i,fetchNextPage:o,fetchPreviousPage:s,refetch:a}),[i,o,s,a])}}},buildMutationHook:function(a){return({selectFromResult:o,fixedCacheKey:i}={})=>{let{select:l,initiate:c}=e.endpoints[a],u=n(),[d,f]=(0,g.useState)();(0,g.useEffect)(()=>()=>{d?.arg.fixedCacheKey||d?.reset()},[d]);let p=(0,g.useCallback)(function(e){let t=u(c(e,{fixedCacheKey:i}));return f(t),t},[u,c,i]),{requestId:h}=d||{},m=(0,g.useMemo)(()=>l({fixedCacheKey:i,requestId:d?.requestId}),[i,d,l]),v=r((0,g.useMemo)(()=>o?s([m],o):m,[o,m]),rg),b=null==i?d?.arg.originalArgs:void 0,y=(0,g.useCallback)(()=>{t(()=>{d&&f(void 0),i&&u(e.internalActions.removeMutationResult({requestId:h,fixedCacheKey:i}))})},[u,i,d,h]),w=sP(v,...sN,"endpointName");(0,g.useDebugValue)(w);let x=(0,g.useMemo)(()=>({...v,originalArgs:b,reset:y}),[v,b,y]);return(0,g.useMemo)(()=>[p,x],[p,x])}},usePrefetch:function(t,r){let a=n(),o=sk(r);return(0,g.useCallback)((n,r)=>a(e.util.prefetch(t,n,{...o,...r})),[t,a,o])}};function f(e,t,n){if(t?.endpointName&&e.isUninitialized){let{endpointName:e}=t,r=d[e];n!==sn&&i({queryArgs:t.originalArgs,endpointDefinition:r,endpointName:e})===i({queryArgs:n,endpointDefinition:r,endpointName:e})&&(t=void 0)}let r=e.isSuccess?e.data:t?.data;void 0===r&&(r=e.data);let a=void 0!==r,o=e.isLoading,s=(!t||t.isLoading||t.isUninitialized)&&!a&&o,l=e.isSuccess||a&&(o&&!t?.isError||e.isUninitialized);return{...e,data:r,currentData:e.data,isFetching:o,isLoading:s,isSuccess:l}}function p(e,t,n){if(t?.endpointName&&e.isUninitialized){let{endpointName:e}=t,r=d[e];n!==sn&&i({queryArgs:t.originalArgs,endpointDefinition:r,endpointName:e})===i({queryArgs:n,endpointDefinition:r,endpointName:e})&&(t=void 0)}let r=e.isSuccess?e.data:t?.data;void 0===r&&(r=e.data);let a=void 0!==r,o=e.isLoading,s=(!t||t.isLoading||t.isUninitialized)&&!a&&o,l=e.isSuccess||a&&(o&&!t?.isError||e.isUninitialized);return{...e,data:r,currentData:e.data,isFetching:o,isLoading:s,isSuccess:l}}function h(t,r,{refetchOnReconnect:a,refetchOnFocus:o,refetchOnMountOrArgChange:s,skip:i=!1,pollingInterval:l=0,skipPollingIfUnfocused:u=!1,...f}={}){let{initiate:p}=e.endpoints[t],m=n(),v=(0,g.useRef)(void 0);v.current||(v.current=m(e.internalActions.internal_getRTKQSubscriptions()));let b=sS(i?sn:r),y=sk({refetchOnReconnect:a,refetchOnFocus:o,pollingInterval:l,skipPollingIfUnfocused:u}),w=sk(f.initialPageParam),x=sk(f.refetchCachedPages),S=(0,g.useRef)(void 0),{queryCacheKey:k,requestId:_}=S.current||{},E=!1;k&&_&&(E=v.current.isRequestSubscribed(k,_));let j=!E&&void 0!==S.current;return c(()=>{j&&(S.current=void 0)},[j]),c(()=>{let e=S.current;if(b===sn){e?.unsubscribe(),S.current=void 0;return}let n=S.current?.subscriptionOptions;e&&e.arg===b?y!==n&&e.updateSubscriptionOptions(y):(e?.unsubscribe(),S.current=m(p(b,{subscriptionOptions:y,forceRefetch:s,...sy(d[t])?{initialPageParam:w,refetchCachedPages:x}:{}})))},[m,p,s,b,y,j,w,x,t]),[S,m,p,y]}function m(t,n){return(o,{skip:i=!1,selectFromResult:l}={})=>{let{select:c}=e.endpoints[t],u=sS(i?sn:o),d=(0,g.useRef)(void 0),f=(0,g.useMemo)(()=>s([c(u),(e,t)=>t,e=>u],n,{memoizeOptions:{resultEqualityCheck:rg}}),[c,u]),p=(0,g.useMemo)(()=>l?s([f],l,{devModeChecks:{identityFunctionCheck:"never"}}):f,[f,l]),h=r(e=>p(e,d.current),rg),m=f(a().getState(),d.current);return sj(()=>{d.current=m},[m]),h}}function v(e){(0,g.useEffect)(()=>()=>{u(e),e.current=void 0},[e])}}({api:a,moduleOptions:{batch:e,hooks:t,unstable__sideEffectsInRender:r,createSelector:n},serializeQueryArgs:o,context:s});return sw(a,{usePrefetch:u}),sw(s,{batch:e}),{injectEndpoint(e,t){if("query"===t.type){let{useQuery:t,useLazyQuery:n,useLazyQuerySubscription:r,useQueryState:o,useQuerySubscription:s}=i(e);sw(a.endpoints[e],{useQuery:t,useLazyQuery:n,useLazyQuerySubscription:r,useQueryState:o,useQuerySubscription:s}),a[`use${sb(e)}Query`]=t,a[`useLazy${sb(e)}Query`]=n}if("mutation"===t.type){let t=c(e);sw(a.endpoints[e],{useMutation:t}),a[`use${sb(e)}Mutation`]=t}else if(sy(t)){let{useInfiniteQuery:t,useInfiniteQuerySubscription:n,useInfiniteQueryState:r}=l(e);sw(a.endpoints[e],{useInfiniteQuery:t,useInfiniteQuerySubscription:n,useInfiniteQueryState:r}),a[`use${sb(e)}InfiniteQuery`]=t}}}}}))()),sA=a(746),sM=a.n(sA),sR=a(3791),sz=a.n(sR);sM().extend(sz());let sL=e=>e&&("string"!=typeof e||10!==e.length)?sM()(new Date(e)).format("YYYY-MM-DD"):e,sI=e=>sM()(new Date(e)).utc().format("M/D/YYYY"),sD=["Jan.","Feb.","March","April","May","June","July","Aug.","Sept.","Oct.","Nov.","Dec."],sH=e=>sM()(new Date(e)).utc().add(5.5,"hours").format("YYYY-MM-DD"),sF="2011-12-01",sB="M/D/YYYY",s$=sL(new Date),sV=sL(sF),sq="MODAL_TYPE_DATA_EXPORT",sU="MODAL_TYPE_EXPORT_CONFIRMATION",sW="MODAL_TYPE_MORE_ABOUT",sY=["company","company_public_response","company_response","issue","product","state","submitted_via","tags","timely","zip_code"],sK=["company_received_max","company_received_min","date_received_max","date_received_min"],sQ={"3m":"3 months","6m":"6 months","1y":"1 year","3y":"3 years",All:"Full date range"},sG=["issue","product"],sJ={};sJ["10"]="10 results",sJ["25"]="25 results",sJ["50"]="50 results",sJ["100"]="100 results";let sX={created_date_desc:"Newest to oldest",created_date_asc:"Oldest to newest",relevance_desc:"Most relevant",relevance_asc:"Least relevant"},sZ={AA:"Armed Forces Americas",AE:"Armed Forces Europe",AL:"Alabama",AK:"Alaska",AS:"American Samoa",AP:"Armed Forces Pacific",AZ:"Arizona",AR:"Arkansas",CA:"California",CO:"Colorado",CT:"Connecticut",DE:"Delaware",DC:"District Of Columbia",FM:"Federated States Of Micronesia",FL:"Florida",GA:"Georgia",GU:"Guam",HI:"Hawaii",ID:"Idaho",IL:"Illinois",IN:"Indiana",IA:"Iowa",KS:"Kansas",KY:"Kentucky",LA:"Louisiana",ME:"Maine",MH:"Marshall Islands",MD:"Maryland",MA:"Massachusetts",MI:"Michigan",MN:"Minnesota",MS:"Mississippi",MO:"Missouri",MT:"Montana",NE:"Nebraska",NV:"Nevada",NH:"New Hampshire",NJ:"New Jersey",NM:"New Mexico",NY:"New York",NC:"North Carolina",ND:"North Dakota",MP:"Northern Mariana Islands",OH:"Ohio",OK:"Oklahoma",OR:"Oregon",PW:"Palau",PA:"Pennsylvania",PR:"Puerto Rico",RI:"Rhode Island",SC:"South Carolina",SD:"South Dakota",TN:"Tennessee",TX:"Texas",UT:"Utah",VT:"Vermont",VI:"Virgin Islands",VA:"Virginia",WA:"Washington",WV:"West Virginia",WI:"Wisconsin",WY:"Wyoming"},s0="/data-research/consumer-complaints/search/api/v1/",s1=location.origin.includes("localhost")?"https://www.consumerfinance.gov/complaint/data-use/":"/complaint/data-use/",s2=RegExp("(%[a-f0-9]{2})+","gi"),s3=/^[a-f\d]{2}$/i;function s7(e,t){if(37!==e.codePointAt(t)||t+3>e.length)return;let n=e.slice(t+1,t+3);if(s3.test(n))return{byte:Number.parseInt(n,16),next:t+3}}function s5(e){if("string"!=typeof e||1!==e.length)throw TypeError("arrayFormatSeparator must be single character string")}function s4(e,t){return t.encode?t.strict?encodeURIComponent(e).replaceAll(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`):encodeURIComponent(e):e}function s6(e,t){if(t.decode){if("string"!=typeof e)throw TypeError(`Expected \`encodedURI\` to be of type \`string\`, got \`${typeof e}\``);try{return decodeURIComponent(e)}catch{var n=e;let t={"%FE%FF":"��","%FF%FE":"��"},r=s2.exec(n);for(;r;){try{t[r[0]]=decodeURIComponent(r[0])}catch{let e=function(e){try{return decodeURIComponent(e)}catch{let r="",a=0;for(;a<e.length;){var t,n;if(37!==e.codePointAt(a)){r+=e.charAt(a),a++;continue}let o=s7(e,a);if(!o){r+=e.charAt(a),a++;continue}let s=(t=o.byte)<=127?1:t>=194&&t<=223?2:t>=224&&t<=239?3:4*(t>=240&&t<=244);if(0===s){r+=e.slice(a,a+3),a+=3;continue}let i=o.next,l=!0;for(let t=1;t<s;t++){let t=s7(e,i);if(!t||!((n=t.byte)>=128&&n<=191)){l=!1;break}i=t.next}if(l){let t=e.slice(a,i);try{r+=decodeURIComponent(t),a=i;continue}catch{}}r+=e.slice(a,a+3),a+=3}return r}}(r[0]);e!==r[0]&&(t[r[0]]=e)}r=s2.exec(n)}for(let e of(t["%C2"]="�",Object.keys(t)))n=n.replace(RegExp(e,"g"),t[e]);return n}}return e}function s9(e,t,n){return"string"===n&&"string"==typeof e?e:"function"==typeof n&&"string"==typeof e?n(e):"boolean"===n&&null===e||("boolean"===n&&null!==e&&("true"===e.toLowerCase()||"false"===e.toLowerCase())?"true"===e.toLowerCase():"boolean"===n&&null!==e&&("1"===e.toLowerCase()||"0"===e.toLowerCase())?"1"===e.toLowerCase():"string[]"===n&&"none"!==t.arrayFormat&&"string"==typeof e?[e]:"number[]"!==n||"none"===t.arrayFormat||Number.isNaN(Number(e))||"string"!=typeof e||""===e.trim()?"number"!==n||Number.isNaN(Number(e))||"string"!=typeof e||""===e.trim()?t.parseBooleans&&null!==e&&("true"===e.toLowerCase()||"false"===e.toLowerCase())?"true"===e.toLowerCase():t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?Number(e):e:Number(e):[Number(e)])}function s8(e,t){if(!e)return"";s5((t={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...t}).arrayFormatSeparator);let n=n=>t.skipNull&&null==e[n]||t.skipEmptyString&&""===e[n],r=function(e){switch(e.arrayFormat){case"index":return t=>(n,r)=>{let a=n.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r||(null===r?n.push([s4(t,e),"[",a,"]"].join("")):n.push([s4(t,e),"[",s4(a,e),"]=",s4(r,e)].join(""))),n};case"bracket":return t=>(n,r)=>(void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r||(null===r?n.push([s4(t,e),"[]"].join("")):n.push([s4(t,e),"[]=",s4(r,e)].join(""))),n);case"colon-list-separator":return t=>(n,r)=>(void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r||(null===r?n.push([s4(t,e),":list="].join("")):n.push([s4(t,e),":list=",s4(r,e)].join(""))),n);case"comma":case"separator":case"bracket-separator":{let t="bracket-separator"===e.arrayFormat?"[]=":"=";return n=>(r,a)=>(void 0===a||e.skipNull&&null===a||e.skipEmptyString&&""===a||((a=null===a?"":a,0===r.length)?r.push([s4(n,e),t,s4(a,e)].join("")):r.push(s4(a,e))),r)}default:return t=>(n,r)=>(void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r||(null===r?n.push(s4(t,e)):n.push([s4(t,e),"=",s4(r,e)].join(""))),n)}}(t),a={};for(let[t,r]of Object.entries(e))n(t)||(a[t]=r);let o=Object.keys(a);return!1!==t.sort&&o.sort(t.sort),o.map(n=>{let a=e[n];if(t.replacer&&void 0===(a=t.replacer(n,a))||void 0===a)return"";if(null===a)return s4(n,t);if(Array.isArray(a)){if(0===a.length&&"bracket-separator"===t.arrayFormat)return s4(n,t)+"[]";let e=a;t.replacer&&(e=a.map((e,r)=>t.replacer(`${n}[${r}]`,e)).filter(e=>void 0!==e));let o=e.reduce(r(n),[]),s=["comma","separator","bracket-separator"].includes(t.arrayFormat)?t.arrayFormatSeparator:"&";return o.join(s)}return s4(n,t)+"="+s4(a,t)}).filter(e=>e.length>0).join("&")}Symbol("encodeFragmentIdentifier");let ie=sT({baseQuery:function({baseUrl:e,prepareHeaders:t=e=>e,fetchFn:n=oO,paramsSerializer:r,isJsonContentType:a=e=>/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||""),jsonContentType:o="application/json",jsonReplacer:s,timeout:i,responseHandler:l,validateStatus:c,...u}={}){return"u"<typeof fetch&&n===oO&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),async(f,p,h)=>{let m,v,g,b,y,{getState:w,extra:x,endpoint:S,forced:k,type:_}=p,{url:E,headers:j=new Headers(u.headers),params:C,responseHandler:P=l??"json",validateStatus:N=c??oT,timeout:O=i,...T}="string"==typeof f?{url:f}:f,A={...u,signal:O?((...e)=>{for(let t of e)if(t.aborted)return AbortSignal.abort(t.reason);let t=new AbortController;for(let n of e)n.addEventListener("abort",()=>t.abort(n.reason),{signal:t.signal,once:!0});return t.signal})(p.signal,(b=new AbortController,setTimeout(()=>{let e="signal timed out",t="TimeoutError";b.abort("u">typeof DOMException?new DOMException(e,t):Object.assign(Error(e),{name:t}))},O),b.signal)):p.signal,...T};j=new Headers(oA(j)),A.headers=await t(j,{getState:w,arg:f,extra:x,endpoint:S,forced:k,type:_,extraOptions:h})||j;let M="object"==typeof(y=A.body)&&(rz(y)||Array.isArray(y)||"function"==typeof y.toJSON);if(null==A.body||M||"string"==typeof A.body||A.headers.delete("content-type"),!A.headers.has("content-type")&&M&&A.headers.set("content-type",o),M&&a(A.headers)&&(A.body=JSON.stringify(A.body,s)),A.headers.has("accept")||("json"===P?A.headers.set("accept","application/json"):"text"===P&&A.headers.set("accept","text/plain, text/html, */*")),C){let e=~E.indexOf("?")?"&":"?";E+=e+(r?r(C):new URLSearchParams(oA(C)))}let R=new Request(E=function(e,t){var n;if(!e)return t;if(!t)return e;if(n=t,RegExp("(^|:)//").test(n))return t;let r=e.endsWith("/")||!t.startsWith("?")?"/":"";return e=e.replace(/\/$/,""),t=t.replace(/^\//,""),`${e}${r}${t}`}(e,E),A);m={request:new Request(E,A)};try{v=await n(R)}catch(e){return{error:{status:(e instanceof Error||"u">typeof DOMException&&e instanceof DOMException)&&"TimeoutError"===e.name?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(e)},meta:m}}let z=v.clone();m.response=z;let L="";try{let e;if(await Promise.all([d(v,P).then(e=>g=e,t=>e=t),z.text().then(e=>L=e,()=>{})]),e)throw e}catch(e){return{error:{status:"PARSING_ERROR",originalStatus:v.status,data:L,error:String(e)},meta:m}}return N(v,g)?{data:g,meta:m}:{error:{status:v.status,data:g},meta:m}};async function d(e,t){if("function"==typeof t)return t(e);if("content-type"===t&&(t=a(e.headers)?"json":"text"),"json"===t){let t=await e.text();return t.length?JSON.parse(t):null}return e.text()}}({baseUrl:s0}),keepUnusedDataFor:3600,endpoints:e=>({getAggregations:e.query({query:e=>({url:"?".concat(s8(e))}),transformResponse:e=>{if(!e)return{};let t={},n=e.aggregations,r=Object.keys(n);for(let a of(t.doc_count=Math.max(e.hits.total.value,e._meta.total_record_count),t.lastUpdated=e._meta.last_updated,t.lastIndexed=e._meta.last_indexed,t.hasDataIssue=e._meta.has_data_issue,t.isDataStale=e._meta.is_data_stale,t.total=e.hits.total.value,r))t[a]=n[a][a].buckets;return t}}),getDocument:e.query({query:e=>e,transformResponse:e=>e.hits.hits[0]._source}),getList:e.query({query:e=>({url:"?".concat(s8(e))}),transformResponse:e=>{let t=e._meta.break_points,n=e.hits.hits.map(e=>{let t=rO({},e._source);if(e.highlight)for(let[n,r]of Object.entries(e.highlight))t[n]=r[0];return t}),r=Object.keys(t).length+1;return{breakPoints:t,hits:n,totalPages:r}}}),getMeta:e.query({query:()=>({url:"?field=all&size=0&no_aggs=true"})}),getSuggest:e.query({query:e=>({url:e.url})})})}),{useGetAggregationsQuery:it,useGetDocumentQuery:ir,useGetListQuery:ia,useGetMetaQuery:io,useGetSuggestQuery:is}=ie;var ii=a(4137),il=a.n(ii),ic=a(6266);function iu(){let e=Object.freeze(Object.defineProperties(["\\$&"],{raw:{value:Object.freeze(["\\\\$&"])}}));return iu=function(){return e},e}let id="ccdb-ui-modal-portal",ip="ccdb-ui-overlay-portal",ih=()=>void 0===globalThis.window?{}:globalThis.__CCDB_CONFIG__||{},im=e=>"u">typeof CSS&&CSS.escape?CSS.escape(e):String(e).replaceAll(/[^a-zA-Z0-9_-]/g,String.raw(iu())),iv=()=>{let{mountId:e}=ih();return e||"ccdb-ui-root"},ig=()=>{let{root:e}=ih();return e?"string"==typeof e?document.querySelector(e)||document:e instanceof ShadowRoot||e instanceof HTMLElement?e:document:document},ib=()=>{let e=ig();if(e instanceof ShadowRoot){let t=im(id),n=e.querySelector("#".concat(t));return n||((n=document.createElement("div")).id=id,e.append(n)),n}return e instanceof HTMLElement?e:document.body},iy=e=>{let t=ig(),n=im(e);if(t&&t.querySelector){let e=t.querySelector("#".concat(n));if(e)return e}return document.querySelector("#".concat(n))},iw=e=>{let t=ig();if(t&&t.querySelector){let n=t.querySelector(e);if(n)return n}return t instanceof ShadowRoot?null:document.querySelector(e)},ix=()=>{let e=ig();return e instanceof ShadowRoot?ib():e instanceof HTMLElement?e:document.body},iS=e=>{let t,n,r=(0,v.c)(2),{isLoading:a}=e;return a?(r[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,h.jsx)(N,{name:"updating",isPresentational:!0}),r[0]=t):t=r[0],r[1]===Symbol.for("react.memo_cache_sentinel")?(n=(0,ic.createPortal)((0,h.jsx)("section",{className:"loading-overlay","aria-busy":"true","aria-live":"polite",children:(0,h.jsxs)("div",{className:"loading-overlay__box",children:[t," ",(0,h.jsx)("span",{children:"This page is loading"})]})}),(()=>{let e=ig();if(e instanceof ShadowRoot){let t=im(ip),n=e.querySelector("#".concat(t));return n||((n=document.createElement("div")).id=ip,n.className="ccdb-ui-overlay-portal",e.append(n)),n}return e instanceof HTMLElement?e:document.body})()),r[1]=n):n=r[1],n):null};iS.propTypes={isLoading:il().bool.isRequired};let ik=e=>e.routes.params,i_=e=>e.routes.queryString,iE={tagManagerIsLoaded:!1,EVENT_CATEGORY:"Consumer Complaint Search",getDataLayerOptions:function(e,t,n,r,a){return{event:n||iE.EVENT_CATEGORY,action:e,label:t||"",eventCallback:r,eventTimeout:a||500}},init:function(){if(Object.prototype.hasOwnProperty.call(globalThis,"google_tag_manager"))iE.tagManagerIsLoaded=!0;else{let e;Object.defineProperty(globalThis,"google_tag_manager",{enumerable:!0,configurable:!0,get:function(){return e},set:function(t){e=t,iE.tagManagerIsLoaded=!0}})}},sendEvent:function(e){let t=e.eventCallback,n=globalThis.dataLayer;n&&iE.tagManagerIsLoaded?n.push(e):"function"==typeof t&&t()}};function ij(e){return[...e||""].join(" ")}iE.init();let iC=(e,t,n)=>"object"==typeof e&&Object.hasOwn(e,t)&&e[t]||n,iP=e=>e.toLowerCase(),iN=e=>e.some(e=>!!e),iO=e=>e.toLowerCase().replaceAll(/[^a-z0-9]+/g,"-").replaceAll(/^-+|-+$/g,""),iT=(e,t)=>e+"•"+t,iA=(e,t,n)=>{e.every(e=>e.key!==t)&&e.push({key:t,doc_count:0,["sub_".concat(n,".raw")]:{doc_count_error_upper_bound:0,sum_other_doc_count:0,buckets:[]}})},iM=(e,t,n)=>{let r=e.find(e=>e.key===t.split("•")[0]),a="sub_".concat(n,".raw");if(!Object.hasOwn(r,a))return;let o=r[a];o&&o.buckets.every(e=>e.key!==t.split("•")[1])&&o.buckets.push({key:t.split("•")[1],doc_count:0})},iR=(e,t,n)=>{let r=t||[],a="sub_".concat(n,".raw");return[...structuredClone(e)||[]].toSorted((e,t)=>{let n=r.includes(e.key);if(n!==r.includes(t.key))return n?-1:1;let o=(()=>{if(!e||!Object.hasOwn(e,a))return!1;let t=e[a];return!!t&&t.buckets.some(t=>r.includes(e.key+"•"+t.key))})();return o!==(()=>{if(!t||!Object.hasOwn(t,a))return!1;let e=t[a];return!!e&&e.buckets.some(e=>r.includes(t.key+"•"+e.key))})()?o?-1:1:t.doc_count-e.doc_count})};function iz(e){let t=sM()(e);return e?t.format("M/D/YYYY"):""}let iL={value:null};function iI(){return iL.value||(console.error("waiting for API response, setting MAX_DATE to today"),iL.value=sL(sM()().startOf("day"))),iL.value}function iD(e){if(!e)return e;let t=document.createElement("a");return t.href=e,t.href}let iH=(e,t)=>{iE.sendEvent(iE.getDataLayerOptions(e,t))},iF=e=>{let t,n=(0,v.c)(3),{label:r,value:a}=e;return n[0]!==r||n[1]!==a?(t=a?(0,h.jsxs)("div",{className:"complaint-detail__subaggregation",children:[(0,h.jsx)("span",{className:"complaint-detail__subaggregation-label",children:r}),(0,h.jsx)("span",{children:a})]}):null,n[0]=r,n[1]=a,n[2]=t):t=n[2],t};iF.propTypes={label:il().string,value:il().string};let iB=e=>{let t,n,r=(0,v.c)(4),{value:a}=e;if(!a){let e;return r[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,h.jsx)("span",{children:"N/A"}),r[0]=e):e=r[0],e}return r[1]===Symbol.for("react.memo_cache_sentinel")?(t=(0,h.jsx)("span",{className:"complaint-detail__timely-icon",children:(0,h.jsx)(N,{name:"clock-round",isPresentational:!0})}),r[1]=t):t=r[1],r[2]!==a?(n=(0,h.jsxs)("div",{children:[t,(0,h.jsx)("span",{children:a})]}),r[2]=a,r[3]=n):n=r[3],n};iB.propTypes={value:il().string};let i$=e=>{let t,n,r,a,o,s,i,l,c,u,d,f,p,m,g,b,y,w,x,S,k,_,E,j,C,P,N,O,T,A,M,R,z,L,I,D,H=(0,v.c)(77),{data:F,error:B,id:$}=e;if(B){let e;return H[0]!==$?(e=(0,h.jsxs)(tP,{type:"1",children:["There was a problem retrieving ",$]}),H[0]=$,H[1]=e):e=H[1],e}let V="Complaint "+ij($);H[2]!==$||H[3]!==V?(t=(0,h.jsx)(tP,{type:"1","aria-label":V,children:$}),H[2]=$,H[3]=V,H[4]=t):t=H[4],H[5]===Symbol.for("react.memo_cache_sentinel")?(n=(0,h.jsx)(tP,{type:"4",children:"Date CFPB received the complaint"}),H[5]=n):n=H[5],H[6]!==F.date_received?(r=sI(F.date_received),H[6]=F.date_received,H[7]=r):r=H[7],H[8]!==r?(a=(0,h.jsx)("span",{children:r}),H[8]=r,H[9]=a):a=H[9],H[10]===Symbol.for("react.memo_cache_sentinel")?(o=(0,h.jsx)(tP,{type:"4",className:"u-mt15",children:"Consumer’s state"}),H[10]=o):o=H[10],H[11]!==F.state?(s=(0,h.jsx)("span",{children:F.state}),H[11]=F.state,H[12]=s):s=H[12],H[13]===Symbol.for("react.memo_cache_sentinel")?(i=(0,h.jsx)(tP,{type:"4",className:"u-mt15",children:"Consumer’s zip"}),H[13]=i):i=H[13],H[14]!==F.zip_code?(l=(0,h.jsx)("span",{children:F.zip_code}),H[14]=F.zip_code,H[15]=l):l=H[15],H[16]===Symbol.for("react.memo_cache_sentinel")?(c=(0,h.jsx)(tP,{type:"4",className:"u-mt15",children:"Submitted via"}),H[16]=c):c=H[16],H[17]!==F.submitted_via?(u=(0,h.jsx)("span",{children:F.submitted_via}),H[17]=F.submitted_via,H[18]=u):u=H[18],H[19]!==F.tags?(d=F.tags&&F.tags.length>0?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(tP,{type:"4",className:"u-mt15",children:"Tags"}),(0,h.jsx)("span",{children:F.tags})]}):null,H[19]=F.tags,H[20]=d):d=H[20],H[21]!==u||H[22]!==d||H[23]!==a||H[24]!==s||H[25]!==l?(f=(0,h.jsxs)("div",{className:"complaint-detail__column complaint-detail__column--narrow",children:[n,a,o,s,i,l,c,u,d]}),H[21]=u,H[22]=d,H[23]=a,H[24]=s,H[25]=l,H[26]=f):f=H[26],H[27]===Symbol.for("react.memo_cache_sentinel")?(p=(0,h.jsx)(tP,{type:"4",children:"Product"}),H[27]=p):p=H[27],H[28]!==F.product?(m=(0,h.jsx)(tP,{type:"3",children:F.product}),H[28]=F.product,H[29]=m):m=H[29],H[30]!==F.sub_product?(g=(0,h.jsx)(iF,{label:"Sub-product:",value:F.sub_product}),H[30]=F.sub_product,H[31]=g):g=H[31],H[32]===Symbol.for("react.memo_cache_sentinel")?(b=(0,h.jsx)(tP,{type:"4",className:"u-mt15",children:"Issue"}),H[32]=b):b=H[32],H[33]!==F.issue?(y=(0,h.jsx)(tP,{type:"3",children:F.issue}),H[33]=F.issue,H[34]=y):y=H[34],H[35]!==F.sub_issue?(w=(0,h.jsx)(iF,{label:"Sub-issue:",value:F.sub_issue}),H[35]=F.sub_issue,H[36]=w):w=H[36],H[37]!==m||H[38]!==g||H[39]!==y||H[40]!==w?(x=(0,h.jsxs)("div",{className:"complaint-detail__column complaint-detail__column--wide",children:[p,m,g,b,y,w]}),H[37]=m,H[38]=g,H[39]=y,H[40]=w,H[41]=x):x=H[41],H[42]!==f||H[43]!==x?(S=(0,h.jsxs)("div",{className:"complaint-detail__card",children:[f,x]}),H[42]=f,H[43]=x,H[44]=S):S=H[44],H[45]===Symbol.for("react.memo_cache_sentinel")?(k=(0,h.jsx)(tP,{type:"2",className:"complaint-detail__company-heading",children:"Company information"}),H[45]=k):k=H[45],H[46]===Symbol.for("react.memo_cache_sentinel")?(_=(0,h.jsx)(tP,{type:"4",children:"Date complaint sent to company"}),H[46]=_):_=H[46],H[47]!==F.date_sent_to_company?(E=sI(F.date_sent_to_company),H[47]=F.date_sent_to_company,H[48]=E):E=H[48],H[49]!==E?(j=(0,h.jsx)("span",{children:E}),H[49]=E,H[50]=j):j=H[50],H[51]===Symbol.for("react.memo_cache_sentinel")?(C=(0,h.jsx)(tP,{type:"4",className:"u-mt15",children:"Company name"}),H[51]=C):C=H[51],H[52]!==F.company?(P=(0,h.jsx)("span",{children:F.company}),H[52]=F.company,H[53]=P):P=H[53],H[54]!==j||H[55]!==P?(N=(0,h.jsxs)("div",{className:"complaint-detail__column complaint-detail__column--narrow",children:[_,j,C,P]}),H[54]=j,H[55]=P,H[56]=N):N=H[56],H[57]===Symbol.for("react.memo_cache_sentinel")?(O=(0,h.jsx)(tP,{type:"4",children:"Timely response?"}),H[57]=O):O=H[57],H[58]!==F.timely?(T=(0,h.jsx)(iB,{value:F.timely}),H[58]=F.timely,H[59]=T):T=H[59],H[60]===Symbol.for("react.memo_cache_sentinel")?(A=(0,h.jsx)(tP,{type:"4",className:"u-mt15",children:"Company response to consumer"}),H[60]=A):A=H[60];let q=F.company_response||"N/A";H[61]!==q?(M=(0,h.jsx)("span",{children:q}),H[61]=q,H[62]=M):M=H[62],H[63]===Symbol.for("react.memo_cache_sentinel")?(R=(0,h.jsx)(tP,{type:"4",className:"u-mt15",children:"Company public response"}),H[63]=R):R=H[63];let U=F.company_public_response||"N/A";return H[64]!==U?(z=(0,h.jsx)("span",{children:U}),H[64]=U,H[65]=z):z=H[65],H[66]!==T||H[67]!==M||H[68]!==z?(L=(0,h.jsxs)("div",{className:"complaint-detail__column complaint-detail__column--wide",children:[O,T,A,M,R,z]}),H[66]=T,H[67]=M,H[68]=z,H[69]=L):L=H[69],H[70]!==N||H[71]!==L?(I=(0,h.jsxs)("div",{className:"complaint-detail__card",children:[N,L]}),H[70]=N,H[71]=L,H[72]=I):I=H[72],H[73]!==t||H[74]!==S||H[75]!==I?(D=(0,h.jsxs)("article",{className:"complaint-detail__body",children:[t,S,k,I]}),H[73]=t,H[74]=S,H[75]=I,H[76]=D):D=H[76],D};i$.propTypes={data:il().object,error:il().oneOfType([il().string,il().object]),id:il().string};let iV=()=>{var e;let t,n,r,a,o,s,i,l=(0,v.c)(20),c=nT(),{id:u}=function(){let{matches:e}=g.useContext(nC),t=e[e.length-1];return t?.params??{}}(),d=rC(ik),f=null!=(e=null==c?void 0:c.pathname)?e:"";l[0]!==f?(t=f.indexOf("detail"),l[0]=f,l[1]=t):t=l[1];let p=t;l[2]!==p||l[3]!==c||l[4]!==d||l[5]!==f?(n=c?f.slice(0,Math.max(0,p))+"?"+s8(d):"",l[2]=p,l[3]=c,l[4]=d,l[5]=f,l[6]=n):n=l[6];let m=n,{data:b,isLoading:y,error:w}=ir(u);return l[7]!==m?(r=(0,h.jsx)("div",{className:"complaint-detail__back-link",children:(0,h.jsx)(L,{to:m,iconLeft:"left",label:"Back to search results"})}),l[7]=m,l[8]=r):r=l[8],l[9]===Symbol.for("react.memo_cache_sentinel")?(a=(0,h.jsx)("div",{className:"complaint-detail__meaning-link",children:(0,h.jsx)(L,{to:s1,target:"_blank",rel:"noopener noreferrer",label:"What do all these data points mean?"})}),l[9]=a):a=l[9],l[10]!==r?(o=(0,h.jsxs)("nav",{className:"complaint-detail__nav",children:[r,a]}),l[10]=r,l[11]=o):o=l[11],l[12]!==b||l[13]!==w||l[14]!==u||l[15]!==y?(s=y?(0,h.jsx)(iS,{isLoading:!0}):(0,h.jsx)(i$,{data:b,error:w,id:u}),l[12]=b,l[13]=w,l[14]=u,l[15]=y,l[16]=s):s=l[16],l[17]!==o||l[18]!==s?(i=(0,h.jsxs)("section",{className:"complaint-detail",children:[o,s]}),l[17]=o,l[18]=s,l[19]=i):i=l[19],i};function iq(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}let iU=e=>{let t,n,r,a,o=(0,v.c)(12);o[0]!==e?({to:r,children:t}=e,n=function(e,t){if(null==e)return{};var n,r,a,o={};if("u">typeof Reflect&&Reflect.ownKeys){for(n=Reflect.ownKeys(Object(e)),a=0;a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r]);return o}if(o=function(e,t){if(null==e)return{};var n,r,a={},o=Object.getOwnPropertyNames(e);for(r=0;r<o.length;r++)n=o[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(e,t),Object.getOwnPropertySymbols)for(n=Object.getOwnPropertySymbols(e),a=0;a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r]);return o}(e,["to","children"]),o[0]=e,o[1]=t,o[2]=n,o[3]=r):(t=o[1],n=o[2],r=o[3]);let s="string"==typeof r&&(/^(https?:|mailto:|tel:)/i.test(r)||r.startsWith("#")||r.startsWith("//"));if(!r||s){let e;return o[4]!==t||o[5]!==n||o[6]!==r?(e=(0,h.jsx)("a",iq(rO({href:r},n),{children:t})),o[4]=t,o[5]=n,o[6]=r,o[7]=e):e=o[7],e}return o[8]!==t||o[9]!==n||o[10]!==r?(a=(0,h.jsx)(rl,iq(rO({to:r},n),{children:t})),o[8]=t,o[9]=n,o[10]=r,o[11]=a):a=o[11],a};iU.propTypes={to:il().string,children:il().node};let iW={dateRange:{defaultVal:"3y",values:Object.keys(sQ)},searchField:{defaultVal:"all",values:["all","company"]},size:{defaultVal:25,values:Object.keys(sJ)},sort:{defaultVal:"created_date_desc",values:Object.keys(sX)}},iY=(e,t)=>{if(Object.hasOwn(iW,t)){let n=iW[t];return n.values.includes(e)?e:n.defaultVal}return e},iK=(e,t)=>{let{params:n,path:r}=t.payload;e.path=r,e.params=n,e.queryString=s8(n)},iQ=oo({name:"routes",initialState:{path:"",params:{},queryString:""},reducers:{appUrlChanged:{reducer:iK,prepare:(e,t)=>({payload:{path:e,params:t}})},routeChanged:{reducer:iK,prepare:(e,t)=>{let n=t.size;return"string"==typeof n&&Number(n)>0&&(t.size=iY(n,"size")),{payload:{path:e,params:t}}}}}}),{appUrlChanged:iG,routeChanged:iJ}=iQ.actions;var iX=iQ.reducer;let iZ=oo({name:"view",initialState:{isPrintMode:!1,hasAdvancedSearchTips:!1,hasFilters:!0,modalTypeShown:!1,showTour:!1,width:0},reducers:{hideAdvancedSearchTips(e){e.hasAdvancedSearchTips=!1},modalHidden(e){e.modalTypeShown=!1},modalShown(e,t){e.modalTypeShown=t.payload},showAdvancedSearchTips(e){e.hasAdvancedSearchTips=!0},updatePrintModeOn(e){e.isPrintMode=!0},updatePrintModeOff(e){e.isPrintMode=!1},updateScreenSize(e,t){e.hasFilters=t.payload>749,e.width=t.payload},updateFilterVisibility(e){e.hasFilters=!e.hasFilters},tourHidden(e){e.showTour=!1},tourShown(e){e.showTour=!0}},extraReducers:e=>{e.addCase(iJ,(e,t)=>{let{params:n}=t.payload;e.isPrintMode="true"===n.isPrintMode})}}),{hideAdvancedSearchTips:i0,modalHidden:i1,modalShown:i2,showAdvancedSearchTips:i3,tourHidden:i7,tourShown:i5,updateFilterVisibility:i4,updatePrintModeOff:i6,updatePrintModeOn:i9,updateScreenSize:i8}=iZ.actions;var le=iZ.reducer;let lt=()=>{let e,t,n,r,a,o,s=(0,v.c)(8),i=rE();return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,h.jsx)(tP,{type:"1",className:"content-header",children:"Consumer Complaint Database"}),s[0]=e):e=s[0],s[1]!==i?(t=(0,h.jsx)("li",{className:"m-list__item",children:(0,h.jsx)(tw,{label:"Things to know before you use this database",isLink:!0,onClick:()=>{i(i2(sW))}})}),s[1]=i,s[2]=t):t=s[2],s[3]===Symbol.for("react.memo_cache_sentinel")?(n=(0,h.jsx)("li",{className:"m-list__item",children:(0,h.jsx)(L,{to:s1,label:"How we use complaint data",target:"_blank",rel:"noopener noreferrer"})}),s[3]=n):n=s[3],s[4]===Symbol.for("react.memo_cache_sentinel")?(r=(0,h.jsx)("li",{className:"m-list__item",children:(0,h.jsx)(L,{to:"https://cfpb.github.io/api/ccdb/",iconRight:"external-link",target:"_blank",rel:"noopener noreferrer",label:"Technical documentation"})}),s[4]=r):r=s[4],s[5]===Symbol.for("react.memo_cache_sentinel")?(a=(0,h.jsx)("li",{className:"m-list__item",children:(0,h.jsx)(L,{to:"https://cfpb.github.io/api/ccdb/release-notes.html",iconRight:"external-link",target:"_blank",rel:"noopener noreferrer",label:"Release notes"})}),s[5]=a):a=s[5],s[6]!==t?(o=(0,h.jsxs)("header",{className:"content__hero",children:[e,(0,h.jsxs)("ul",{className:"m-list m-list--horizontal",children:[t,n,r,a]})]}),s[6]=t,s[7]=o):o=s[7],o},ln=oo({name:"filters",initialState:{company:[],company_public_response:[],company_response:[],issue:[],product:[],state:[],submitted_via:[],tags:[],timely:[],zip_code:[]},reducers:{filterAdded:{reducer:(e,t)=>{let{filterName:n,filterValue:r}=t.payload;Object.hasOwn(e,n)?-1===e[n].indexOf(r)&&e[n].push(r):e[n]=[r]},prepare:(e,t)=>({payload:{filterName:e,filterValue:t}})},filterRemoved:{reducer:(e,t)=>{let{filterName:n,filterValue:r}=t.payload;if(Object.hasOwn(e,n)){let t=e[n].indexOf(r);-1!==t&&e[n].splice(t,1)}},prepare:(e,t)=>({payload:{filterName:e,filterValue:t}})},filtersCleared(e){for(let t of sY)Object.hasOwn(e,t)&&(e[t]=[])},filtersReplaced:{reducer:(e,t)=>{let{filterName:n,values:r}=t.payload;e[n]=[...new Set(r)]},prepare:(e,t)=>({payload:{filterName:e,values:t}})},filterToggled:{reducer:(e,t)=>{let{filterName:n,filterValue:r}=t.payload;e[n]=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return e.includes(t)?e=e.filter(function(e){return e!==t}):e.push(t),[...e]}(e[n],r.key)},prepare:(e,t)=>({payload:{filterName:e,filterValue:t}})},multipleFiltersAdded:{reducer:(e,t)=>{let n=t.payload.filterName,r=iC(e,n,[]);for(let e of t.payload.values)r.includes(e)||r.push(e);e[n]=r},prepare:(e,t)=>({payload:{filterName:e,values:t}})},multipleFiltersRemoved:{reducer:(e,t)=>{if(Object.hasOwn(e,t.payload.filterName))for(let n of t.payload.values){let r=e[t.payload.filterName].indexOf(n);-1!==r&&e[t.payload.filterName].splice(r,1)}},prepare:(e,t)=>({payload:{filterName:e,values:t}})},stateFilterAdded(e,t){let n=iC(e,"state",[]),{abbr:r}=t.payload;n.includes(r)||n.push(r),e.state=n},stateFilterCleared(e){e.state=[]},stateFilterRemoved(e,t){let n=iC(e,"state",[]),{abbr:r}=t.payload;e.state=n.filter(e=>e!==r)}},extraReducers:e=>{e.addCase(iJ,(e,t)=>{let{params:n}=t.payload;for(let t of sY)void 0!==n[t]&&(e[t]="string"==typeof n[t]?[n[t]]:n[t])})}}),{filterAdded:lr,filterRemoved:la,filtersCleared:lo,filtersReplaced:ls,filterToggled:li,multipleFiltersAdded:ll,multipleFiltersRemoved:lc,stateFilterAdded:lu,stateFilterCleared:ld,stateFilterRemoved:lf}=ln.actions;var lp=ln.reducer;function lh(e){let t=e.dateLastIndexed||iI(),n=e.date_received_max,r=e.date_received_min;if(sM()(n).isSame(t)&&sM()(r).isSame(sF)){e.dateRange="All";return}let a={"3y":sM()(n).subtract(3,"years"),"3m":sM()(n).subtract(3,"months"),"6m":sM()(n).subtract(6,"months"),"1y":sM()(n).subtract(1,"year")},o=Object.keys(a),s=!1;for(let t=0;!s&&t<o.length;t++){let n=o[t];sM()(r).isSame(a[n],"day")&&(e.dateRange=n,s=!0)}s||(e.dateRange="")}let lm=e=>{var t;return String(null!=(t=sL(e.toDate()))?t:"")};function lv(e,t){if(!e||!Object.hasOwn(e,t))return"";let n=e[t];return n?n.join("_"):""}function lg(e,t){return{from:(e-1)*t.size,page:e,searchAfter:lv(t,e)}}let lb={searchAfter:"search_after",searchText:"search_term",searchField:"field",from:"frm"};function ly(e){let t={};for(let r of Object.keys(e)){var n;if(!Object.hasOwn(e,r))continue;let a=e[r];if(!a)continue;let o=a;"string"==typeof o&&sK.includes(r)&&(o="string"==typeof(n=o)?n.slice(0,10):"object"==typeof n&&null!==n?sM()(n).toISOString().slice(0,10):""),Object.hasOwn(lb,r)?t[lb[r]]=o:t[r]=o}let r=new Set(["search_term","field",...sK,...sY,"frm","search_after","size","sort","format","no_aggs"]),a={};for(let[e,n]of Object.entries(t))r.has(e)&&(a[e]=n);return"?"+s8(a)}let lw={company_received_max:"",company_received_min:"",dateRange:"",dateLastIndexed:"",date_received_max:"",date_received_min:"",from:0,page:1,searchAfter:"",searchField:"all",searchText:"",size:25,sort:"created_date_desc"};function lx(e,t){var n;let r=String(iY(t,"dateRange")),a=lm(sM()(iI())),o={All:lm(sM()(sF)),"3m":lm(sM()(a).subtract(3,"months")),"6m":lm(sM()(a).subtract(6,"months")),"1y":lm(sM()(a).subtract(1,"year")),"3y":lm(sM()(a).subtract(3,"years"))};e.dateRange=r,e.date_received_min=null!=(n=o[r])?n:e.date_received_min,e.date_received_max=a}let lS=oo({name:"query",initialState:lw,reducers:{dateRangeChanged(e,t){lx(e,t.payload)},companyReceivedDateChanged:{reducer:(e,t)=>{let{maxDate:n,minDate:r}=t.payload,a=sM()(r).isValid()?lm(sM()(r).startOf("day")):null,o=sM()(n).isValid()?lm(sM()(n).startOf("day")):null;e.company_received_min=null!=a?a:"",e.company_received_max=null!=o?o:""},prepare:(e,t)=>({payload:{minDate:e,maxDate:t}})},datesChanged:{reducer:(e,t)=>{let{maxDate:n,minDate:r}=t.payload,a=sM()(r).isValid()?lm(sM()(r).startOf("day")):null,o=sM()(n).isValid()?lm(sM()(n).startOf("day")):null,s=e.date_received_min!==a||e.date_received_max!==o,i=((e,t,n)=>{let r=n?sM()(n):iI(),a=sM()(t).startOf("day");if(0!==a.diff(r,"days"))return"";let o=sM()(e).startOf("day");if(sM()(e).isSame(sF,"day"))return"All";let s=a.diff(o,"years",!0);if(3===s||1===s)return s+"y";let i=a.diff(o,"months",!0);return 6===i||3===i?i+"m":""})(a,o,e.dateLastIndexed);i&&s?e.dateRange=i:delete e.dateRange,e.date_received_min=a||e.date_received_min,e.date_received_max=o||e.date_received_max},prepare:(e,t)=>({payload:{minDate:e,maxDate:t}})},searchFieldChanged(e,t){e.searchField=t.payload},searchTextChanged(e,t){e.searchText=t.payload},prevPageShown(e,t){let n=t.payload,r=e.page-1,a=lg(r,e);e.page=a.page,e.from=a.from,e.searchAfter=lv(n,r)},nextPageShown(e,t){let n=t.payload,r=e.page+1,a=lg(r,e);e.page=a.page,e.from=a.from,e.searchAfter=lv(n,r)},sizeChanged(e,t){e.size=iY(t.payload,"size")},sortChanged(e,t){e.sort=String(iY(t.payload,"sort"))}},extraReducers:e=>{e.addCase(lo,e=>{e.dateRange="All",e.company_received_max="",e.company_received_min="",e.date_received_min=sV,e.date_received_max=e.dateLastIndexed,e.company_received_max="",e.company_received_min=""}).addCase(iJ,(e,t)=>{var n,r;let a,{params:o}=t.payload;for(let t of["dateRange","searchField","searchText","sort"]){if(!Object.hasOwn(o,t))continue;let n=o[t];n&&(e[t]=String(iY(String(n),t)))}for(let t of sK){if(void 0===o[t]||!sM()(o[t]).isValid())continue;let n=function(e){if(sM()(e).isValid()){var t;return String(null!=(t=sL(e))?t:"")}return null}(o[t]);n&&(e[t]=n)}e.page=Number(null!=(n=o.page)?n:lw.page),e.size=Number(null!=(r=o.size)?r:lw.size),o.search_after&&(e.searchAfter=String(o.search_after)),(!(a=Object.keys(o)).includes("dateRange")||a.includes("date_received_min")||a.includes("date_received_max"))&&"All"!==o.dateRange||lx(e,String(o.dateRange)),lh(e)}).addMatcher(ie.endpoints.getMeta.matchFulfilled,(e,t)=>{let{payload:n}=t;e.dateLastIndexed=sM()(n._meta.last_updated).startOf("day").format("YYYY-MM-DD"),iL.value=lm(sM()(e.dateLastIndexed).startOf("day")),e.date_received_max||(e.date_received_max=lm(sM()(e.dateLastIndexed))),e.date_received_min||(e.date_received_min=lm(sM()(e.dateLastIndexed).subtract(3,"years"))),lh(e)}).addMatcher(aX(lk,l_,lE,lr,la,li,lo,ls,ll,lc,lP,lN,lO,lT),e=>{e.from=0,e.page=1,e.searchAfter=""})}}),{companyReceivedDateChanged:lk,datesChanged:l_,dateRangeChanged:lE,nextPageShown:lj,prevPageShown:lC,searchFieldChanged:lP,searchTextChanged:lN,sizeChanged:lO,sortChanged:lT}=lS.actions;var lA=lS.reducer;function lM(){return"https://files.consumerfinance.gov/ccdb/complaints.csv.zip"}let lR=()=>{let e,t,n,r,a=(0,v.c)(4);if(a[0]===Symbol.for("react.memo_cache_sentinel")){let t=lM();e=()=>{iH("Export All Data","csv"),location.assign(t)},a[0]=e}else e=a[0];let o=e;return a[1]===Symbol.for("react.memo_cache_sentinel")?(t=(0,h.jsx)(lt,{}),a[1]=t):t=a[1],a[2]===Symbol.for("react.memo_cache_sentinel")?(n=(0,h.jsx)(tP,{type:"3",children:"Download all complaint data (ZIP CSV)"}),a[2]=n):n=a[2],a[3]===Symbol.for("react.memo_cache_sentinel")?(r=(0,h.jsxs)(h.Fragment,{children:[t,(0,h.jsxs)("section",{className:"block block--flush-top",children:[n,(0,h.jsx)(tw,{label:"Download data",iconRight:"download","data-gtm_ignore":"true",onClick:()=>{o()}})]})]}),a[3]=r):r=a[3],r},lz=e=>{let t,n,r,a,o,s,i,l,c=(0,v.c)(22),{className:u,title:d,desc:f,children:p}=e,m=void 0===f?"":f,[b,y]=(0,g.useState)(!0);c[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,h.jsx)("span",{className:"o-expandable__cue-close",role:"img","aria-label":"Hide",children:(0,h.jsx)(N,{name:"minus-round",isPresentational:!0})}),c[0]=t):t=c[0];let w=t;c[1]===Symbol.for("react.memo_cache_sentinel")?(n=(0,h.jsx)("span",{className:"o-expandable__cue-open",role:"img","aria-label":"Show",children:(0,h.jsx)(N,{name:"plus-round",isPresentational:!0})}),c[1]=n):n=c[1];let x=n,S=b?"Collapse ".concat(d," filter"):"Expand ".concat(d," filter"),k="o-expandable ".concat(void 0===u?"":u);c[2]!==b?(r=()=>y(!b),c[2]=b,c[3]=r):r=c[3],c[4]!==d?(a=(0,h.jsx)(tP,{type:"3",className:"o-expandable__label",children:d}),c[4]=d,c[5]=a):a=c[5];let _=b?w:x;return c[6]!==_?(o=(0,h.jsx)("span",{className:"o-expandable__cues",children:_}),c[6]=_,c[7]=o):o=c[7],c[8]!==b||c[9]!==S||c[10]!==r||c[11]!==a||c[12]!==o?(s=(0,h.jsxs)("button",{className:"o-expandable__header","aria-expanded":b,"aria-label":S,onClick:r,children:[a,o]}),c[8]=b,c[9]=S,c[10]=r,c[11]=a,c[12]=o,c[13]=s):s=c[13],c[14]!==p||c[15]!==m||c[16]!==b?(i=b?(0,h.jsxs)("div",{className:"o-expandable__content",children:[m?(0,h.jsx)("p",{children:m}):null,p]}):null,c[14]=p,c[15]=m,c[16]=b,c[17]=i):i=c[17],c[18]!==s||c[19]!==i||c[20]!==k?(l=(0,h.jsxs)("section",{className:k,children:[s,i]}),c[18]=s,c[19]=i,c[20]=k,c[21]=l):l=c[21],l},lL=e=>{let t=sZ[e];return t?"".concat(t," (").concat(e,")"):e},lI=(e,t,n,r,a)=>{if(!sG.includes(r))return t;let o=e.split("•"),s=o[0],i=t.includes(s),l=t.filter(t=>t!==s&&e).filter(t=>t!==e),c=[],u=n.find(e=>e.key===s);if(i){var d;let e=null==u?void 0:u["sub_"+r+".raw"];for(let t of null!=(d=null!=a?a:null==e?void 0:e.buckets)?d:[]){let e=t.key.includes("•")?t.key.split("•")[1]:t.key;e!==o[1]&&c.push(iT(s,e))}}return[...l,...c]},lD=e=>e.filters,lH=e=>e.filters.company,lF=e=>e.filters.state,lB=e=>e.filters.zip_code;function l$(e,t){let n={};for(let r of t){let t=e[r];Array.isArray(t)?t.length>0&&(n[r]=t):t&&(n[r]=t)}return n}function lV(e){var t;let n={company_received_max:null==e?void 0:e.company_received_max,company_received_min:null==e?void 0:e.company_received_min,date_received_max:e.date_received_max,date_received_min:e.date_received_min,field:iY(e.searchField,"searchField"),frm:void 0===e.from?(0===Math.max(t=e.page-1,0)?0:t)*e.size:e.from,page:e.page,size:e.size,sort:e.sort};e.searchText&&(n.search_term=e.searchText),e.searchAfter&&(n.search_after=e.searchAfter);let r={};for(let[e,t]of Object.entries(n))null==t||""===t||Number.isNaN(t)||(r[e]=t);for(let e in r)Array.isArray(r[e])&&0===r[e].length&&delete r[e];return r}let lq=e=>e.query,lU=e=>e.query.company_received_max,lW=e=>e.query.company_received_min,lY=e=>e.query.dateLastIndexed,lK=e=>e.query.date_received_max,lQ=e=>e.query.date_received_min,lG=e=>e.query.dateRange,lJ=e=>e.query.page,lX=e=>e.query.searchField,lZ=e=>e.query.searchText,l0=e=>e.query.size,l1=e=>e.query.sort,l2=rE.withTypes(),l3=rC.withTypes(),l7=()=>{let e,t,n,r=(0,v.c)(8),a=l3(lD),o=l3(lq),s=l3(i_),i=l3(lY);if(r[0]!==a||r[1]!==o){let t,n,s;n=Object.keys(t=lV(o)).filter(e=>!["frm","page","search_after","size","sort"].includes(e)),s=Object.keys(a),e=Object.assign({size:0},l$(t,n),l$(a,s)),r[0]=a,r[1]=o,r[2]=e}else e=r[2];let l=e,c=!i,u=""===s;r[3]!==c||r[4]!==u?(t=iN([c,u]),r[3]=c,r[4]=u,r[5]=t):t=r[5];let d=t;return r[6]!==d?(n={skip:d},r[6]=d,r[7]=n):n=r[7],it(l,n)},l5=e=>{let t,n,r,a,o,s,i,l,c,u,d,f,p=(0,v.c)(44),{fieldName:m,item:g,siblings:b}=e;p[0]!==b?(t=void 0===b?[]:b,p[0]=b,p[1]=t):t=p[1];let y=t,{data:w,isSuccess:x,error:S}=l7(),k=rC(lD),_=rE();p[2]!==w||p[3]!==m?(n=iC(w,m,[]),p[2]=w,p[3]=m,p[4]=n):n=p[4];let E=n;if(!x||!E||S)return null;p[5]!==m||p[6]!==k||p[7]!==g.key?(a=(r=iC(k,m,[])).includes(g.key)||r.includes(g.key.split("•")[0]),p[5]=m,p[6]=k,p[7]=g.key,p[8]=r,p[9]=a):(r=p[8],a=p[9]);let j=a,C=g.value||g.key,P=m+"-"+g.key;p[10]!==P?(o=iO(P),p[10]=P,p[11]=o):o=p[11];let N=o;p[12]!==E||p[13]!==_||p[14]!==m||p[15]!==r||p[16]!==j||p[17]!==g||p[18]!==y?(s=()=>{if(g.key.includes("•")&&sG.includes(m)){var e,t,n;let a=g.key.split("•")[0],o=null!=(e=null==(n=E.find(e=>e.key===a))||null==(t=n["sub_"+m+".raw"])?void 0:t.buckets)?e:[];_(ls(m,(e=>{let{item:t,siblings:n,filters:r,isActive:a}=e,[o]=t.key.split("•"),s=o+"•",i=new Set(r.filter(e=>e.startsWith(s)));return!a&&n.length>0&&n.filter(e=>e.key!==t.key).every(e=>i.has(e.key))?[...r.filter(e=>e!==o&&!e.startsWith(s)),o]:[...r,t.key]})({item:g,siblings:y.length>0?y:o.map(e=>iq(rO({},e),{key:"".concat(a).concat("•").concat(e.key)})),filters:r,isActive:j})))}else _(li(m,g))},p[12]=E,p[13]=_,p[14]=m,p[15]=r,p[16]=j,p[17]=g,p[18]=y,p[19]=s):s=p[19];let O=s;p[20]!==E||p[21]!==_||p[22]!==m||p[23]!==r||p[24]!==g||p[25]!==y?(i=()=>{if(sG.includes(m)){let e=lI(g.key,r,E,m,y);_(ls(m,e))}else _(li(m,g))},p[20]=E,p[21]=_,p[22]=m,p[23]=r,p[24]=g,p[25]=y,p[26]=i):i=p[26];let T=i;p[27]!==O||p[28]!==j||p[29]!==T?(l=()=>{j?T():O()},p[27]=O,p[28]=j,p[29]=T,p[30]=l):l=p[30];let A=l;return p[31]!==N||p[32]!==j||p[33]!==g.isDisabled||p[34]!==A||p[35]!==C?(c=(0,h.jsx)(tC,{id:N,label:C,labelClassName:"bucket-key",className:"aggregation-item__checkbox",disabled:g.isDisabled,checked:j,onChange:A}),p[31]=N,p[32]=j,p[33]=g.isDisabled,p[34]=A,p[35]=C,p[36]=c):c=p[36],p[37]!==g.doc_count?(u=g.doc_count.toLocaleString(),p[37]=g.doc_count,p[38]=u):u=p[38],p[39]!==u?(d=(0,h.jsx)(tP,{type:"5",className:"flex-fixed bucket-count",children:u}),p[39]=u,p[40]=d):d=p[40],p[41]!==c||p[42]!==d?(f=(0,h.jsxs)("li",{className:"aggregation-item layout-row",children:[c,d]}),p[41]=c,p[42]=d,p[43]=f):f=p[43],f};l5.propTypes={fieldName:il().string.isRequired,item:il().shape({doc_count:il().number.isRequired,key:il().string.isRequired,value:il().string,isDisabled:il().bool}).isRequired,siblings:il().array};let l4=e=>{let t,n,r=(0,v.c)(7),{fieldName:a,options:o,selections:s,getLabel:i}=e;if(r[0]!==i||r[1]!==o||r[2]!==s){for(let e of(t=[],o)){if(!s.includes(e.key))continue;let n=i?i(e.key):e.value;t.push(iq(rO({},e),{value:n}))}for(let e of s)t.every(t=>t.key!==e)&&t.push({key:e,value:i?i(e):e,doc_count:0});r[0]=i,r[1]=o,r[2]=s,r[3]=t}else t=r[3];return 0===t.length?null:(r[4]!==a||r[5]!==t?(n=(0,h.jsx)("ul",{children:t.map(e=>(0,h.jsx)(l5,{item:e,fieldName:a},e.key))}),r[4]=a,r[5]=t,r[6]=n):n=r[6],n)};function l6(){return(l6=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}function l9(e){return(l9="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})(e)}function l8(e){var t=function(e,t){if("object"!=l9(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=l9(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==l9(t)?t:t+""}function ce(e,t,n){return(t=l8(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ct(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}function cn(e,t){if(null==e)return{};var n,r,a=ct(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&({}).propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}l4.propTypes={fieldName:il().string.isRequired,options:il().array.isRequired,selections:il().array,getLabel:il().func};var cr=a(2026),ca=a.n(cr),co="label",cs=a(1792),ci=a.n(cs);function cl(e){return"string"==typeof e?e:co}function cc(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var cu=0;function cd(e){return"function"==typeof e}function cf(e){return"string"==typeof e}function cp(){}function ch(e,t){var n={};return t.forEach(function(t){n[t]=e[t]}),n}var cm=function(e,t){var n;return!cf(e)&&(cc(e,"paginationOption")||cc(e,"customOption"))?e[cl(t)]:(n=cd(t)?t(e):cf(e)?e:e[t],cf(n)||ci()(!1),n)},cv=function(e,t){var n=t.allowNew,r=t.labelKey,a=t.text;return!!n&&!!a.trim()&&(cd(n)?n(e,t):!e.some(function(e){return cm(e,r)===a}))},cg=a(6310),cb=a.n(cg);function cy(e,t){if(!cf(e))return e[t]}var cw=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹÐ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"OE",letters:"Œ"},{base:"oe",letters:"œ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}].reduce(function(e,t){var n=t.base;return t.letters.split("").forEach(function(t){e[t]=n}),e},{});function cx(e){return e.normalize("NFD").replace(RegExp("[".concat("̀-ͯ").concat("゙゚","]"),"g"),"").replace(/[^\u0000-\u007E]/g,function(e){return cw[e]||e})}var cS=a(5132),ck=a.n(cS),c_={};function cE(e,t){if(!e&&-1!==t.indexOf("deprecated")){if(c_[t])return;c_[t]=!0}for(var n=arguments.length,r=Array(n>2?n-2:0),a=2;a<n;a++)r[a-2]=arguments[a];ck().apply(void 0,[e,"[react-bootstrap-typeahead] ".concat(t)].concat(r))}function cj(e,t,n){var r=e,a=t;return n.caseSensitive||(r=r.toLowerCase(),a=a.toLowerCase()),n.ignoreDiacritics&&(r=cx(r),a=cx(a)),-1!==a.indexOf(r)}function cC(e,t){var n=t.filterBy,r=t.labelKey,a=t.multiple,o=t.selected,s=t.text;if(a&&o.some(function(t){return cb()(t,e)}))return!1;if(cd(r))return cj(s,r(e),t);var i=n.slice();return(cf(r)&&-1===i.indexOf(r)&&i.unshift(r),cf(e))?(cE(i.length<=1,"You cannot filter by properties when `option` is a string."),cj(s,e,t)):i.some(function(n){var r=cy(e,n);return cf(r)||(cE(!1,"Fields passed to `filterBy` should have string values. Value will be converted to a string; results may be unexpected."),r=String(r)),cj(s,r,t)})}function cP(e){return null!=e.selectionStart}var cN=/[\u0300-\u036F]/;function cO(e,t){var n,r=RegExp(("string"!=typeof(n=cx(t))&&ci()(!1),n.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")),"i").exec(cx(e));if(!r)return null;var a=r.index,o=r[0].length;if(cN.test(e)){for(var s=0;s<=a;s++)cN.test(e[s])&&(a+=1);for(var i=a;i<=a+o;i++)cN.test(e[i])&&(o+=1)}return{end:a+o,start:a}}var cT=function(e){var t=e.activeIndex,n=e.initialItem,r=e.isFocused,a=e.isMenuShown,o=e.labelKey,s=e.multiple,i=e.selected,l=e.text;if(!l||!r||!a||!n||!cf(n)&&cc(n,"customOption")||!cf(n)&&n.disabled||t>-1||i.length&&!s)return"";var c=cm(n,o),u=cO(c.toLowerCase(),l.toLowerCase());return u&&0===u.start?l+c.slice(u.end,c.length):""},cA=a(7721),cM=a.n(cA);function cR(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;return"".concat(e,"-item-").concat(t)}var cz=["activeIndex","id","isFocused","isMenuShown","multiple","onClick","onFocus","placeholder"];function cL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function cI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cL(Object(n),!0).forEach(function(t){ce(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cL(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var cD=function(e){var t=e.activeIndex,n=e.id,r=e.isFocused,a=e.isMenuShown,o=e.multiple,s=e.onClick,i=e.onFocus,l=e.placeholder,c=cn(e,cz);return function(){var e,u=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},d=cc(u,"className")?String(u.className):void 0;return cI(cI(cI(cI({autoComplete:"off",placeholder:l,type:"text"},u),c),{},{"aria-activedescendant":t>=0?cR(n,t):void 0,"aria-autocomplete":"both","aria-expanded":a,"aria-haspopup":"listbox","aria-multiselectable":o||void 0,"aria-owns":a?n:void 0,className:cM()((ce(e={},d||"",!o),ce(e,"focus",r),e))},o&&{inputClassName:d}),{},{onClick:s,onFocus:i,role:"combobox"})}},cH=function(e){var t=e.activeItem,n=e.labelKey,r=e.multiple,a=e.selected,o=e.text;return t?cm(t,n):!r&&a.length&&a[0]?cm(a[0],n):o},cF=function(e){var t=e.allowNew,n=e.highlightOnlyResult,r=e.results;return!!n&&!t&&1===r.length&&!cy(r[0],"disabled")};function cB(e,t,n){for(var r=e;function(e,t){var n=t[e];return!!n&&!!cy(n,"disabled")}(r,n);)r+="ArrowUp"===t?-1:1;return r}function c$(e){e.preventDefault()}var cV=["className","isInvalid","isValid","size"];function cq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function cU(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cq(Object(n),!0).forEach(function(t){ce(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cq(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function cW(e){var t=e.className,n=e.isInvalid,r=e.isValid,a=e.size;return cU(cU({},cn(e,cV)),{},{className:cM()("form-control","rbt-input",{"form-control-lg":"lg"===a,"form-control-sm":"sm"===a,"is-invalid":n,"is-valid":r},t)})}var cY=[{alt:"onBlur",prop:"onBlur"},{alt:"onInputChange",prop:"onChange"},{alt:"onFocus",prop:"onFocus"},{alt:"onKeyDown",prop:"onKeyDown"}],cK=il().oneOf(["lg","sm"]);function cQ(e,t){return function(n,r,a){il().checkPropTypes(ce({},r,e),n,"prop",a),cd(t)&&t(n,r,a)}}function cG(e,t,n){cE(null!=e[t],"The prop `".concat(t,"` is required to make `").concat(n,"` ")+"accessible for users of assistive technologies such as screen readers.")}var cJ=il().oneOfType([il().object,il().string]),cX=["allowNew","delay","emptyLabel","isLoading","minLength","onInputChange","onSearch","options","promptText","searchText","useCache"];function cZ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function c0(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cZ(Object(n),!0).forEach(function(t){ce(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cZ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function c1(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function c2(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,l8(r.key),r)}}function c3(e,t,n){return t&&c2(e.prototype,t),n&&c2(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function c7(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c5(e,t){return(c5=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function c4(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c5(e,t)}function c6(e,t){if(t&&("object"==l9(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return c7(e)}function c9(e){return(c9=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}il().number,il().bool.isRequired,il().number,il().func.isRequired,il().arrayOf(cJ),il().node,il().node,il().bool;var c8=(0,g.createContext)({activeIndex:-1,hintText:"",id:"",initialItem:null,inputNode:null,isOnlyResult:!1,onActiveItemChange:cp,onAdd:cp,onInitialItemChange:cp,onMenuItemClick:cp,setItem:cp}),ue=function(){return(0,g.useContext)(c8)};function ut(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function un(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ut(Object(n),!0).forEach(function(t){ce(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ut(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var ur=["activeIndex","disabled","id","inputRef","isFocused","isMenuShown","multiple","onBlur","onChange","onClick","onFocus","onKeyDown","placeholder"],ua=["activeIndex","hideMenu","isMenuShown","labelKey","onClear","onHide","onRemove","results","selected","text","toggleMenu"],uo=["activeIndex","id","initialItem","inputNode","onActiveItemChange","onAdd","onInitialItemChange","onMenuItemClick","setItem"],us=function(e){var t=e.allowNew,n=e.children,r=e.initialItem,a=e.isMenuShown,o=e.onAdd,s=e.onInitialItemChange,i=e.onKeyDown,l=e.onMenuToggle,c=e.results,u=e.selectHint,d=cT(e);(0,g.useEffect)(function(){t||c.length||s()});var f=(0,g.useRef)(!0);(0,g.useEffect)(function(){if(f.current){f.current=!1;return}l(a)},[a,l]);var p=un(un({},ch(e,ua)),{},{getInputProps:cD(un(un({},ch(e,ur)),{},{onKeyDown:function(t){if(i(t),r){var n,a="Enter"===t.key&&cF(e),s=d&&(n=!1,"ArrowRight"===t.key&&(n=!cP(t.currentTarget)||t.currentTarget.selectionStart===t.currentTarget.value.length),"Tab"===t.key&&(t.preventDefault(),n=!0),u?u(n,t):n);(a||s)&&o(r)}},value:cH(e)}))}),h=un(un({},ch(e,uo)),{},{hintText:d,isOnlyResult:cF(e)});return g.createElement(c8.Provider,{value:h},cd(n)?n(p):n)};function ui(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ul(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ui(Object(n),!0).forEach(function(t){ce(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ui(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function uc(e){var t=e.defaultInputValue,n=e.defaultOpen,r=e.defaultSelected,a=e.maxResults,o=e.multiple,s=e.selected?e.selected.slice():r.slice(),i=t;return!o&&s.length&&(i=cm(s[0],e.labelKey),s.length>1&&(s=s.slice(0,1))),{activeIndex:-1,activeItem:void 0,initialItem:void 0,isFocused:!1,selected:s,showMenu:n,shownResults:a,text:i}}function uu(e,t){return ul(ul({},uc(t)),{},{isFocused:e.isFocused,selected:[],text:""})}function ud(e){return ul(ul({},e),{},{isFocused:!0,showMenu:!0})}function uf(e,t){var n=uc(t),r=n.activeIndex,a=n.activeItem,o=n.initialItem,s=n.shownResults;return ul(ul({},e),{},{activeIndex:r,activeItem:a,initialItem:o,showMenu:!1,shownResults:s})}function up(e,t){return e.showMenu?uf(e,t):ul(ul({},e),{},{showMenu:!0})}var uh=["onChange"];function um(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function uv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?um(Object(n),!0).forEach(function(t){ce(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):um(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var ug={allowNew:il().oneOfType([il().bool,il().func]),autoFocus:il().bool,caseSensitive:cQ(il().bool,function(e){var t=e.caseSensitive,n=e.filterBy;cE(!t||"function"!=typeof n,"Your `filterBy` function will override the `caseSensitive` prop.")}),defaultInputValue:cQ(il().string,function(e){var t=e.defaultInputValue,n=e.defaultSelected,r=e.multiple,a=e.selected,o=n.length?"defaultSelected":"selected";cE(!(!r&&t&&(n.length||a&&a.length)),"`defaultInputValue` will be overridden by the value from `".concat(o,"`."))}),defaultOpen:il().bool,defaultSelected:cQ(il().arrayOf(cJ),function(e){var t=e.defaultSelected;cE(e.multiple||t.length<=1,"You are passing multiple options to the `defaultSelected` prop of a Typeahead in single-select mode. The selections will be truncated to a single selection.")}),filterBy:il().oneOfType([il().arrayOf(il().string.isRequired),il().func]),highlightOnlyResult:cQ(il().bool,function(e){var t=e.allowNew;cE(!(e.highlightOnlyResult&&t),"`highlightOnlyResult` will not work with `allowNew`.")}),id:cQ(il().oneOfType([il().number,il().string]),cG),ignoreDiacritics:cQ(il().bool,function(e){var t=e.filterBy;cE(e.ignoreDiacritics||"function"!=typeof t,"Your `filterBy` function will override the `ignoreDiacritics` prop.")}),labelKey:cQ(il().oneOfType([il().string,il().func]),function(e){var t=e.allowNew;cE(!(cd(e.labelKey)&&t),"`labelKey` must be a string when `allowNew={true}`.")}),maxResults:il().number,minLength:il().number,multiple:il().bool,onBlur:il().func,onChange:il().func,onFocus:il().func,onInputChange:il().func,onKeyDown:il().func,onMenuToggle:il().func,onPaginate:il().func,open:il().bool,options:il().arrayOf(cJ).isRequired,paginate:il().bool,selected:cQ(il().arrayOf(cJ),function(e){var t=e.multiple,n=e.onChange,r=e.selected;cE(t||!r||r.length<=1,"You are passing multiple options to the `selected` prop of a Typeahead in single-select mode. This may lead to unexpected behaviors or errors."),cE(!r||r&&cd(n),"You provided a `selected` prop without an `onChange` handler. If you want the typeahead to be uncontrolled, use `defaultSelected`. Otherwise, set `onChange`.")})},ub=function(e){c4(r,e);var t,n=(t=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=c9(r);return e=t?Reflect.construct(n,arguments,c9(this).constructor):n.apply(this,arguments),c6(this,e)});function r(){var e;c1(this,r);for(var t=arguments.length,a=Array(t),o=0;o<t;o++)a[o]=arguments[o];return ce(c7(e=n.call.apply(n,[this].concat(a))),"state",uc(e.props)),ce(c7(e),"inputNode",null),ce(c7(e),"isMenuShown",!1),ce(c7(e),"items",[]),ce(c7(e),"blur",function(){e.inputNode&&e.inputNode.blur(),e.hideMenu()}),ce(c7(e),"clear",function(){e.setState(uu)}),ce(c7(e),"focus",function(){e.inputNode&&e.inputNode.focus()}),ce(c7(e),"getInput",function(){return e.inputNode}),ce(c7(e),"inputRef",function(t){e.inputNode=t}),ce(c7(e),"setItem",function(t,n){e.items[n]=t}),ce(c7(e),"hideMenu",function(){e.setState(uf)}),ce(c7(e),"toggleMenu",function(){e.setState(up)}),ce(c7(e),"_handleActiveIndexChange",function(t){e.setState(function(e){return{activeIndex:t,activeItem:t>=0?e.activeItem:void 0}})}),ce(c7(e),"_handleActiveItemChange",function(t){cb()(t,e.state.activeItem)||e.setState({activeItem:t})}),ce(c7(e),"_handleBlur",function(t){t.persist(),e.setState({isFocused:!1},function(){return e.props.onBlur(t)})}),ce(c7(e),"_handleChange",function(t){e.props.onChange&&e.props.onChange(t)}),ce(c7(e),"_handleClear",function(){var t,n,r;e.inputNode&&(t=e.inputNode,(n=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value"))&&n.set&&n.set.call(t,""),r=new Event("input",{bubbles:!0}),t.dispatchEvent(r)),e.setState(uu,function(){e.props.multiple&&e._handleChange([])})}),ce(c7(e),"_handleClick",function(t){t.persist();var n,r=null==(n=e.props.inputProps)?void 0:n.onClick;e.setState(ud,function(){return cd(r)&&r(t)})}),ce(c7(e),"_handleFocus",function(t){t.persist(),e.setState(ud,function(){return e.props.onFocus(t)})}),ce(c7(e),"_handleInitialItemChange",function(t){cb()(t,e.state.initialItem)||e.setState({initialItem:t})}),ce(c7(e),"_handleInputChange",function(t){t.persist();var n=t.currentTarget.value,r=e.props,a=r.multiple,o=r.onInputChange,s=e.state.selected.length&&!a;e.setState(function(e,t){var r=uc(t),a=r.activeIndex,o=r.activeItem,i=r.shownResults;return{activeIndex:a,activeItem:o,selected:s?[]:e.selected,showMenu:!0,shownResults:i,text:n}},function(){o(n,t),s&&e._handleChange([])})}),ce(c7(e),"_handleKeyDown",function(t){var n,r,a,o,s=e.state.activeItem;if(!e.isMenuShown){("ArrowUp"===t.key||"ArrowDown"===t.key)&&e.setState({showMenu:!0}),e.props.onKeyDown(t);return}switch(t.key){case"ArrowUp":case"ArrowDown":t.preventDefault(),e._handleActiveIndexChange((n=e.state.activeIndex,r=t.key,a=e.items,(o=cB(o=n+("ArrowUp"===r?-1:1),r,a))===a.length?o=-1:-2===o&&(o=cB(o=a.length-1,r,a)),o));break;case"Enter":t.preventDefault(),s&&e._handleMenuItemSelect(s,t);break;case"Escape":case"Tab":e.hideMenu()}e.props.onKeyDown(t)}),ce(c7(e),"_handleMenuItemSelect",function(t,n){cy(t,"paginationOption")?e._handlePaginate(n):e._handleSelectionAdd(t)}),ce(c7(e),"_handlePaginate",function(t){t.persist(),e.setState(function(e,t){return{shownResults:e.shownResults+t.maxResults}},function(){return e.props.onPaginate(t,e.state.shownResults)})}),ce(c7(e),"_handleSelectionAdd",function(t){var n,r,a=e.props,o=a.multiple,s=a.labelKey,i=t;!cf(i)&&i.customOption&&(i=uv(uv({},i),{},{id:(cu+=1,String("new-id-")+cu)})),o?(n=e.state.selected.concat(i),r=""):(n=[i],r=cm(i,s)),e.setState(function(e,t){return uv(uv({},uf(e,t)),{},{initialItem:i,selected:n,text:r})},function(){return e._handleChange(n)})}),ce(c7(e),"_handleSelectionRemove",function(t){var n=e.state.selected.filter(function(e){return!cb()(e,t)});e.focus(),e.setState(function(e,t){return uv(uv({},uf(e,t)),{},{selected:n})},function(){return e._handleChange(n)})}),e}return c3(r,[{key:"componentDidMount",value:function(){this.props.autoFocus&&this.focus()}},{key:"componentDidUpdate",value:function(e,t){var n,r,a,o,s,i=this.props,l=i.labelKey,c=i.multiple,u=i.selected;n=e.selected,(s=!u&&n)?(r="uncontrolled",a="controlled",o="an"):(r="controlled",a="uncontrolled",o="a"),cE(!(s||u&&!n),"You are changing ".concat(o," ").concat(r," typeahead to be ").concat(a,". ")+"Input elements should not switch from ".concat(r," to ").concat(a," (or vice versa). ")+"Decide between using a controlled or uncontrolled element for the lifetime of the component."),u&&!cb()(u,t.selected)&&(this.setState({selected:u}),c||this.setState({text:u.length?cm(u[0],l):""}))}},{key:"render",value:function(){var e=this.props,t=uv(uv({},(e.onChange,cn(e,uh))),this.state),n=t.filterBy,r=t.labelKey,a=t.options,o=t.paginate,s=t.shownResults,i=t.text;this.isMenuShown=(c=t.open,u=t.minLength,d=t.showMenu,f=t.text,c||!1===c?c:!(f.length<u)&&d),this.items=[];var l=[];if(this.isMenuShown){var c,u,d,f,p,h,m=cd(n)?n:cC;l=a.filter(function(e){return m(e,t)});var v=o&&l.length>s;p=l,cv(l=s&&!(s>=p.length)?p.slice(0,s):p,t)&&l.push(ce({customOption:!0},cl(r),i)),v&&l.push((ce(h={},cl(r),""),ce(h,"paginationOption",!0),h))}return g.createElement(us,l6({},t,{hideMenu:this.hideMenu,inputNode:this.inputNode,inputRef:this.inputRef,isMenuShown:this.isMenuShown,onActiveItemChange:this._handleActiveItemChange,onAdd:this._handleSelectionAdd,onBlur:this._handleBlur,onChange:this._handleInputChange,onClear:this._handleClear,onClick:this._handleClick,onFocus:this._handleFocus,onHide:this.hideMenu,onInitialItemChange:this._handleInitialItemChange,onKeyDown:this._handleKeyDown,onMenuItemClick:this._handleMenuItemSelect,onRemove:this._handleSelectionRemove,results:l,setItem:this.setItem,toggleMenu:this.toggleMenu}))}}]),r}(g.Component);ce(ub,"propTypes",ug),ce(ub,"defaultProps",{allowNew:!1,autoFocus:!1,caseSensitive:!1,defaultInputValue:"",defaultOpen:!1,defaultSelected:[],filterBy:[],highlightOnlyResult:!1,ignoreDiacritics:!0,labelKey:co,maxResults:100,minLength:0,multiple:!1,onBlur:cp,onFocus:cp,onInputChange:cp,onKeyDown:cp,onMenuToggle:cp,onPaginate:cp,paginate:!0});var uy=["className","label","onClick","onKeyDown","size"],uw={label:il().string,onClick:il().func,onKeyDown:il().func,size:cK},ux=function(e){var t=e.className,n=e.label,r=void 0===n?"Clear":n,a=e.onClick,o=e.onKeyDown,s=e.size,i=cn(e,uy);return g.createElement("button",l6({},i,{"aria-label":r,className:cM()("close","btn-close","rbt-close",{"rbt-close-lg":"lg"===s,"rbt-close-sm":"sm"===s},t),onClick:function(e){e.stopPropagation(),a&&a(e)},onKeyDown:function(e){"Backspace"===e.key&&e.preventDefault(),o&&o(e)},type:"button"}),g.createElement("span",{"aria-hidden":"true",className:"rbt-close-content"},"×"),g.createElement("span",{className:"sr-only visually-hidden"},r))};ux.propTypes=uw;var uS={label:il().string},uk=function(e){var t=e.label;return g.createElement("div",{className:"rbt-loader spinner-border spinner-border-sm",role:"status"},g.createElement("span",{className:"sr-only visually-hidden"},void 0===t?"Loading...":t))};function u_(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function uE(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,s,i=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(i.push(r.value),i.length!==t);l=!0);}catch(e){c=!0,a=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw a}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return u_(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)?u_(e,t):void 0}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}uk.propTypes=uS;let uj=Math.min,uC=Math.max,uP=Math.round,uN=Math.floor,uO=e=>({x:e,y:e}),uT={left:"right",right:"left",bottom:"top",top:"bottom"};function uA(e,t){return"function"==typeof e?e(t):e}function uM(e){return e.split("-")[0]}function uR(e){return e.split("-")[1]}function uz(e){return"y"===e?"height":"width"}function uL(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function uI(e){return"x"===uL(e)?"y":"x"}function uD(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let uH=["left","right"],uF=["right","left"],uB=["top","bottom"],u$=["bottom","top"];function uV(e){let t=uM(e);return uT[t]+e.slice(t.length)}function uq(e){let{x:t,y:n,width:r,height:a}=e;return{width:r,height:a,top:n,left:t,right:t+r,bottom:n+a,x:t,y:n}}function uU(e,t,n){let r,{reference:a,floating:o}=e,s=uL(t),i=uI(t),l=uz(i),c=uM(t),u=a.x+a.width/2-o.width/2,d=a.y+a.height/2-o.height/2,f=a[l]/2-o[l]/2;switch(c){case"top":r={x:u,y:a.y-o.height};break;case"bottom":r={x:u,y:a.y+a.height};break;case"right":r={x:a.x+a.width,y:d};break;case"left":r={x:a.x-o.width,y:d};break;default:r={x:a.x,y:a.y}}let p=uR(t);return p&&(r[i]+=f*("end"===p?1:-1)*(n&&"y"===s?-1:1)),r}async function uW(e,t){var n,r,a,o,s;void 0===t&&(t={});let{x:i,y:l,platform:c,rects:u,elements:d,strategy:f}=e,{boundary:p="clippingAncestors",rootBoundary:h="viewport",elementContext:m="floating",altBoundary:v=!1,padding:g=0}=uA(t,e),b="number"!=typeof g?{top:null!=(r=g.top)?r:0,right:null!=(a=g.right)?a:0,bottom:null!=(o=g.bottom)?o:0,left:null!=(s=g.left)?s:0}:{top:g,right:g,bottom:g,left:g},y=d[v?"floating"===m?"reference":"floating":m],w=uq(await c.getClippingRect({element:null==(n=await (null==c.isElement?void 0:c.isElement(y)))||n?y:y.contextElement||await (null==c.getDocumentElement?void 0:c.getDocumentElement(d.floating)),boundary:p,rootBoundary:h,strategy:f})),x="floating"===m?{x:i,y:l,width:u.floating.width,height:u.floating.height}:u.reference,S=await (null==c.getOffsetParent?void 0:c.getOffsetParent(d.floating)),k=await (null==c.isElement?void 0:c.isElement(S))&&await (null==c.getScale?void 0:c.getScale(S))||{x:1,y:1},_=uq(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:x,offsetParent:S,strategy:f}):x);return{top:(w.top-_.top+b.top)/k.y,bottom:(_.bottom-w.bottom+b.bottom)/k.y,left:(w.left-_.left+b.left)/k.x,right:(_.right-w.right+b.right)/k.x}}let uY=async(e,t,n)=>{let{placement:r="bottom",strategy:a="absolute",middleware:o=[],platform:s}=n,i=s.detectOverflow?s:{...s,detectOverflow:uW},l=await (null==s.isRTL?void 0:s.isRTL(t)),c=await s.getElementRects({reference:e,floating:t,strategy:a}),{x:u,y:d}=uU(c,r,l),f=r,p=0,h={};for(let n=0;n<o.length;n++){let m=o[n];if(!m)continue;let{name:v,fn:g}=m,{x:b,y:y,data:w,reset:x}=await g({x:u,y:d,initialPlacement:r,placement:f,strategy:a,middlewareData:h,rects:c,platform:i,elements:{reference:e,floating:t}});u=null!=b?b:u,d=null!=y?y:d,h[v]={...h[v],...w},x&&p<50&&(p++,"object"==typeof x&&(x.placement&&(f=x.placement),x.rects&&(c=!0===x.rects?await s.getElementRects({reference:e,floating:t,strategy:a}):x.rects),{x:u,y:d}=uU(c,f,l)),n=-1)}return{x:u,y:d,placement:f,strategy:a,middlewareData:h}};function uK(){return"u">typeof window}function uQ(e){return uX(e)?(e.nodeName||"").toLowerCase():"#document"}function uG(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function uJ(e){var t;return null==(t=(uX(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function uX(e){return!!uK()&&(e instanceof Node||e instanceof uG(e).Node)}function uZ(e){return!!uK()&&(e instanceof Element||e instanceof uG(e).Element)}function u0(e){return!!uK()&&(e instanceof HTMLElement||e instanceof uG(e).HTMLElement)}function u1(e){return!(!uK()||"u"<typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof uG(e).ShadowRoot)}function u2(e){let{overflow:t,overflowX:n,overflowY:r,display:a}=de(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==a&&"contents"!==a}function u3(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}let u7=/transform|translate|scale|rotate|perspective|filter/,u5=/paint|layout|strict|content/,u4=e=>!!e&&"none"!==e;function u6(e){let t=uZ(e)?de(e):e;return u4(t.transform)||u4(t.translate)||u4(t.scale)||u4(t.rotate)||u4(t.perspective)||!u9()&&(u4(t.backdropFilter)||u4(t.filter))||u7.test(t.willChange||"")||u5.test(t.contain||"")}function u9(){return null==e&&(e="u">typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),e}function u8(e){return/^(html|body|#document)$/.test(uQ(e))}function de(e){return uG(e).getComputedStyle(e)}function dt(e){return uZ(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function dn(e){if("html"===uQ(e))return e;let t=e.assignedSlot||e.parentNode||u1(e)&&e.host||uJ(e);return u1(t)?t.host:t}function dr(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let a=function e(t){let n=dn(t);return u8(n)?(t.ownerDocument||t).body:u0(n)&&u2(n)?n:e(n)}(e),o=a===(null==(r=e.ownerDocument)?void 0:r.body),s=uG(a);if(!o)return t.concat(a,dr(a,[],n));{let e=da(s);return t.concat(s,s.visualViewport||[],u2(a)?a:[],e&&n?dr(e):[])}}function da(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ds(e){let t=de(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,a=u0(e),o=a?e.offsetWidth:n,s=a?e.offsetHeight:r,i=uP(n)!==o||uP(r)!==s;return i&&(n=o,r=s),{width:n,height:r,$:i}}function di(e){return uZ(e)?e:e.contextElement}function dl(e){let t=di(e);if(!u0(t))return uO(1);let n=t.getBoundingClientRect(),{width:r,height:a,$:o}=ds(t),s=(o?uP(n.width):n.width)/r,i=(o?uP(n.height):n.height)/a;return s&&Number.isFinite(s)||(s=1),i&&Number.isFinite(i)||(i=1),{x:s,y:i}}let dc=uO(0);function du(e){let t=uG(e);return u9()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:dc}function dd(e,t,n,r){var a;void 0===t&&(t=!1),void 0===n&&(n=!1);let o=e.getBoundingClientRect(),s=di(e),i=uO(1);t&&(r?uZ(r)&&(i=dl(r)):i=dl(e));let l=(void 0===(a=n)&&(a=!1),r&&a&&r===uG(s))?du(s):uO(0),c=(o.left+l.x)/i.x,u=(o.top+l.y)/i.y,d=o.width/i.x,f=o.height/i.y;if(s&&r){let e=uG(s),t=uZ(r)?uG(r):r,n=e,a=da(n);for(;a&&t!==n;){let e=dl(a),t=a.getBoundingClientRect(),r=de(a),o=t.left+(a.clientLeft+parseFloat(r.paddingLeft))*e.x,s=t.top+(a.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,u*=e.y,d*=e.x,f*=e.y,c+=o,u+=s,a=da(n=uG(a))}}return uq({width:d,height:f,x:c,y:u})}function df(e,t){let n=dt(e).scrollLeft;return t?t.left+n:dd(uJ(e)).left+n}function dp(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-df(e,n),y:n.top+t.scrollTop}}function dh(e,t,n){var r;let a;if("viewport"===t||"layoutViewport"===t)a=function(e,t,n){void 0===n&&(n="viewport");let r="layoutViewport"===n,a=uG(e),o=uJ(e),s=a.visualViewport,i=o.clientWidth,l=o.clientHeight,c=0,u=0;if(s){let e=!u9()||"fixed"===t;r?e||(c=-s.offsetLeft,u=-s.offsetTop):(i=s.width,l=s.height,e&&(c=s.offsetLeft,u=s.offsetTop))}if(0>=df(o)){let e=o.ownerDocument,t=e.body,n=getComputedStyle(t),r="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,a=Math.abs(o.clientWidth-t.clientWidth-r),s="stable both-edges"===getComputedStyle(o).scrollbarGutter?a/2:a;s<=25&&(i-=s)}return{width:i,height:l,x:c,y:u}}(e,n,t);else if("document"===t){let t,n,o,s,i,l;t=dt(r=uJ(e)),n=r.ownerDocument.body,o=uC(r.scrollWidth,r.clientWidth,n.scrollWidth,n.clientWidth),s=uC(r.scrollHeight,r.clientHeight,n.scrollHeight,n.clientHeight),i=-t.scrollLeft+df(r),l=-t.scrollTop,"rtl"===de(n).direction&&(i+=uC(r.clientWidth,n.clientWidth)-o),a={width:o,height:s,x:i,y:l}}else if(uZ(t)){let e,r,o,s,i,l;r=(e=dd(t,!0,"fixed"===n)).top+t.clientTop,o=e.left+t.clientLeft,s=dl(t),i=t.clientWidth*s.x,l=t.clientHeight*s.y,a={width:i,height:l,x:o*s.x,y:r*s.y}}else{let n=du(e);a={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return uq(a)}function dm(e){return"static"===de(e).position}function dv(e,t){if(!u0(e)||"fixed"===de(e).position)return null;if(t)return t(e);let n=e.offsetParent;return uJ(e)===n&&(n=n.ownerDocument.body),n}function dg(e,t){var n;let r=uG(e);if(u3(e))return r;if(!u0(e)){let t=dn(e);for(;t&&!u8(t);){if(uZ(t)&&!dm(t))return t;t=dn(t)}return r}let a=dv(e,t);for(;a&&(n=a,/^(table|td|th)$/.test(uQ(n)))&&dm(a);)a=dv(a,t);return a&&u8(a)&&dm(a)&&!u6(a)?r:a||function(e){let t=dn(e);for(;u0(t)&&!u8(t);){if(u6(t))return t;if(u3(t))break;t=dn(t)}return null}(e)||r}let db=async function(e){let t=this.getOffsetParent||dg,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=u0(t),a=uJ(t),o="fixed"===n,s=dd(e,!0,o,t),i={scrollLeft:0,scrollTop:0},l=uO(0);if((r||!o)&&(("body"!==uQ(t)||u2(a))&&(i=dt(t)),r)){let e=dd(t,!0,o,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}!r&&a&&(l.x=df(a));let c=!a||r||o?uO(0):dp(a,i);return{x:s.left+i.scrollLeft-l.x-c.x,y:s.top+i.scrollTop-l.y-c.y,width:s.width,height:s.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},dy={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:a}=e,o="fixed"===a,s=uJ(r),i=!!t&&u3(t.floating);if(r===s||i&&o)return n;let l={scrollLeft:0,scrollTop:0},c=uO(1),u=uO(0),d=u0(r);if((d||!o)&&(("body"!==uQ(r)||u2(s))&&(l=dt(r)),d)){let e=dd(r);c=dl(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=!s||d||o?uO(0):dp(s,l);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+f.x,y:n.y*c.y-l.scrollTop*c.y+u.y+f.y}},getDocumentElement:uJ,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:a}=e,o=[..."clippingAncestors"===n?u3(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=dr(e,[],!1).filter(e=>uZ(e)&&"body"!==uQ(e)),a=null,o="fixed"===de(e).position,s=o?dn(e):e;for(;uZ(s)&&!u8(s);){let e=de(s),t=u6(s),n=a?a.position:o?"fixed":"";t||"fixed"!==n&&("absolute"!==n||"static"!==e.position)?a=e:r=r.filter(e=>e!==s),s=dn(s)}return t.set(e,r),r}(t,this._c):[].concat(n),r],s=dh(t,o[0],a),i=s.top,l=s.right,c=s.bottom,u=s.left;for(let e=1;e<o.length;e++){let n=dh(t,o[e],a);i=uC(n.top,i),l=uj(n.right,l),c=uj(n.bottom,c),u=uC(n.left,u)}return{width:l-u,height:c-i,x:u,y:i}},getOffsetParent:dg,getElementRects:db,getClientRects:function(e){return e.getClientRects?Array.from(e.getClientRects()):[]},getDimensions:function(e){let{width:t,height:n}=ds(e);return{width:t,height:n}},getScale:dl,isElement:uZ,isRTL:function(e){return"rtl"===de(e).direction}};function dw(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function dx(e,t,n,r){let a;void 0===r&&(r={});let{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:c=!1}=r,u=di(e),d=o||s?[...u?dr(u):[],...t?dr(t):[]]:[];d.forEach(e=>{o&&e.addEventListener("scroll",n),s&&e.addEventListener("resize",n)});let f=u&&l?function(e,t,n){let r,a=null,o=uJ(e);function s(){var e;clearTimeout(r),null==(e=a)||e.disconnect(),a=null}function i(n,l){void 0===n&&(n=!1),void 0===l&&(l=1),s();let c=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=c;if(n||t(),!f||!p)return;let h={rootMargin:-uN(d)+"px "+-uN(o.clientWidth-(u+f))+"px "+-uN(o.clientHeight-(d+p))+"px "+-uN(u)+"px",threshold:uC(0,uj(1,l))||1},m=!0;function v(t){let n=t[0].intersectionRatio;if(!dw(c,e.getBoundingClientRect()))return i();if(n!==l){if(!m)return i();n?i(!1,n):r=setTimeout(()=>{i(!1,1e-7)},1e3)}m=!1}try{a=new IntersectionObserver(v,{...h,root:o.ownerDocument})}catch(e){a=new IntersectionObserver(v,h)}a.observe(e)}let l=uG(e),c=()=>i(n);return l.addEventListener("resize",c),i(!0),()=>{l.removeEventListener("resize",c),s()}}(u,n,s):null,p=-1,h=null;i&&(h=new ResizeObserver(e=>{let[r]=e;r&&r.target===u&&h&&t&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=h)||e.observe(t)})),n()}),u&&!c&&h.observe(u),t&&h.observe(t));let m=c?dd(e):null;return c&&function t(){let r=dd(e);m&&!dw(m,r)&&n(),m=r,a=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach(e=>{o&&e.removeEventListener("scroll",n),s&&e.removeEventListener("resize",n)}),null==f||f(),null==(e=h)||e.disconnect(),h=null,c&&cancelAnimationFrame(a)}}var dS="u">typeof document?g.useLayoutEffect:function(){};function dk(e,t){let n,r,a;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!dk(e[r],t[r]))return!1;return!0}if((n=(a=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,a[r]))return!1;for(r=n;0!=r--;){let n=a[r];if(("_owner"!==n||!e.$$typeof)&&!dk(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function d_(e){return"u"<typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function dE(e,t){let n=d_(e);return Math.round(t*n)/n}function dj(e){let t=g.useRef(e);return dS(()=>{t.current=e}),t}var dC=function(e,t){let n,r;var a,o,s,i,l,c,u=uE((0,g.useState)(null),2),d=u[0];return{innerRef:u[1],style:function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:a,elements:{reference:o,floating:s}={},transform:i=!0,whileElementsMounted:l,open:c}=e,[u,d]=g.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=g.useState(r);dk(f,r)||p(r);let[h,m]=g.useState(null),[v,b]=g.useState(null),y=g.useCallback(e=>{e!==k.current&&(k.current=e,m(e))},[]),w=g.useCallback(e=>{e!==_.current&&(_.current=e,b(e))},[]),x=o||h,S=s||v,k=g.useRef(null),_=g.useRef(null),E=g.useRef(u),j=null!=l,C=dj(l),P=dj(a),N=dj(c),O=g.useCallback(()=>{var e,r;let a,o,s;if(!k.current||!_.current)return;let i={placement:t,strategy:n,middleware:f};P.current&&(i.platform=P.current),(e=k.current,r=_.current,a=new Map,o=null!=i?i:{},s={...dy,...o.platform,_c:a},uY(e,r,{...o,platform:s})).then(e=>{let t={...e,isPositioned:!1!==N.current};T.current&&!dk(E.current,t)&&(E.current=t,ic.flushSync(()=>{d(t)}))})},[f,t,n,P,N]);dS(()=>{!1===c&&E.current.isPositioned&&(E.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[c]);let T=g.useRef(!1);dS(()=>(T.current=!0,()=>{T.current=!1}),[]),dS(()=>{if(x&&(k.current=x),S&&(_.current=S),x&&S){if(C.current)return C.current(x,S,O);O()}},[x,S,O,C,j]);let A=g.useMemo(()=>({reference:k,floating:_,setReference:y,setFloating:w}),[y,w]),M=g.useMemo(()=>({reference:x,floating:S}),[x,S]),R=g.useMemo(()=>{let e={position:n,left:0,top:0};if(!M.floating)return e;let t=dE(M.floating,u.x),r=dE(M.floating,u.y);return i?{...e,transform:"translate("+t+"px, "+r+"px)",...d_(M.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,i,M.floating,u.x,u.y]);return g.useMemo(()=>({...u,update:O,refs:A,elements:M,floatingStyles:R}),[u,O,A,M,R])}({elements:{floating:d,reference:e},middleware:(a=[],t.flip&&a.push((o=void 0,{name:(n={name:"flip",options:o={},async fn(e){var t,n,r,a,s,i;let l,c,u,{placement:d,middlewareData:f,rects:p,initialPlacement:h,platform:m,elements:v}=e,{mainAxis:g=!0,crossAxis:b=!0,fallbackPlacements:y,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:S=!0,...k}=uA(o,e);if(null!=(t=f.arrow)&&t.alignmentOffset)return{};let _=uM(d),E=uL(h),j=uM(h)===h,C=await (null==m.isRTL?void 0:m.isRTL(v.floating)),P=y||(j||!S?[uV(h)]:(l=uV(h),[uD(h),l,uD(l)])),N="none"!==x;!y&&N&&P.push(...(c=uR(h),u=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?uF:uH;return t?uH:uF;case"left":case"right":return t?uB:u$;default:return[]}}(uM(h),"start"===x,C),c&&(u=u.map(e=>e+"-"+c),S&&(u=u.concat(u.map(uD)))),u));let O=[h,...P],T=await m.detectOverflow(e,k),A=[],M=(null==(n=f.flip)?void 0:n.overflows)||[];if(g&&A.push(T[_]),b){let e,t,n,r,a=(void 0===(i=C)&&(i=!1),e=uR(d),n=uz(t=uI(d)),r="x"===t?e===(i?"end":"start")?"right":"left":"start"===e?"bottom":"top",p.reference[n]>p.floating[n]&&(r=uV(r)),[r,uV(r)]);A.push(T[a[0]],T[a[1]])}if(M=[...M,{placement:d,overflows:A}],!A.every(e=>e<=0)){let e=((null==(r=f.flip)?void 0:r.index)||0)+1,t=O[e];if(t&&("alignment"!==b||E===uL(t)||M.every(e=>uL(e.placement)!==E||e.overflows[0]>0)))return{data:{index:e,overflows:M},reset:{placement:t}};let n=null==(a=M.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:a.placement;if(!n)switch(w){case"bestFit":{let e=null==(s=M.filter(e=>{if(N){let t=uL(e.placement);return t===E||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:s[0];e&&(n=e);break}case"initialPlacement":n=h}if(d!==n)return{reset:{placement:n}}}return{}}}).name,fn:n.fn,options:[void 0,void 0]})),"right"!==t.align&&"left"!==t.align&&a.push({name:(r={name:"size",options:i=s={apply:function(e){var t=e.rects;Object.assign(e.elements.floating.style,{width:"".concat(t.reference.width,"px")})}},async fn(e){let t,n,{placement:r,rects:a,platform:o,elements:s}=e,{apply:l=()=>{},...c}=uA(i,e),u=await o.detectOverflow(e,c),d=uM(r),f=uR(r),p="y"===uL(r),{width:h,height:m}=a.floating;"top"===d||"bottom"===d?(t=d,n=f===(await (null==o.isRTL?void 0:o.isRTL(s.floating))?"start":"end")?"left":"right"):(n=d,t="end"===f?"top":"bottom");let v=m-u.top-u.bottom,g=h-u.left-u.right,b=uj(m-u[t],v),y=uj(h-u[n],g),w=e.middlewareData.shift,x=!w,S=b,k=y;null!=w&&w.enabled.x&&(k=g),null!=w&&w.enabled.y&&(S=v),x&&!f&&(p?k=h-2*uC(u.left,u.right):S=m-2*uC(u.top,u.bottom)),await l({...e,availableWidth:k,availableHeight:S});let _=await o.getDimensions(s.floating);return h!==_.width||m!==_.height?{reset:{rects:!0}}:{}}}).name,fn:r.fn,options:[s,void 0]}),a),placement:(l="right"===t.align?"end":"start",c=t.dropup?"top":"bottom","".concat(c,"-").concat(l)),strategy:t.positionFixed?"fixed":"absolute",whileElementsMounted:dx}).floatingStyles}},dP=["referenceElement","isMenuShown"],dN="u"<typeof Element?cp:Element,dO={align:il().oneOf(["justify","left","right"]),children:il().func.isRequired,dropup:il().bool,flip:il().bool,isMenuShown:il().bool,positionFixed:il().bool,referenceElement:il().instanceOf(dN)},dT=function(e){var t=e.referenceElement,n=e.isMenuShown,r=cn(e,dP),a=dC(t,r);return n?r.children(a):null};dT.propTypes=dO;var dA=!!("u">typeof window&&window.document&&window.document.createElement),dM=!1,dR=!1;try{var dz={get passive(){return dM=!0},get once(){return dR=dM=!0}};dA&&(window.addEventListener("test",dz,dz),window.removeEventListener("test",dz,!0))}catch(e){}var dL=function(e,t,n,r){if(r&&"boolean"!=typeof r&&!dR){var a=r.once,o=r.capture,s=n;!dR&&a&&(s=n.__once||function e(r){this.removeEventListener(t,e,o),n.call(this,r)},n.__once=s),e.addEventListener(t,s,dM?r:o)}e.addEventListener(t,n,r)},dI=function(e,t,n,r){var a=r&&"boolean"!=typeof r?r.capture:r;e.removeEventListener(t,n,a),n.__once&&e.removeEventListener(t,n.__once,a)},dD=function(e,t,n,r){return dL(e,t,n,r),function(){dI(e,t,n,r)}};function dH(e){return e&&e.ownerDocument||document}var dF=function(e){let t=(0,g.useRef)(e);return(0,g.useEffect)(()=>{t.current=e},[e]),t};function dB(e){let t=dF(e);return(0,g.useCallback)(function(...e){return t.current&&t.current(...e)},[t])}function d$(e,t){return e.contains?e.contains(t):e.compareDocumentPosition?e===t||!!(16&e.compareDocumentPosition(t)):void 0}let dV=()=>{},dq=e=>e&&("current"in e?e.current:e),dU={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};var dW=function(e,t=dV,{disabled:n,clickTrigger:r="click"}={}){let a=(0,g.useRef)(!1),o=(0,g.useRef)(!1),s=(0,g.useCallback)(t=>{let n=dq(e);ck()(!!n,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),a.current=!n||!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)||0!==t.button||!!d$(n,t.target)||o.current,o.current=!1},[e]),i=dB(t=>{let n=dq(e);n&&d$(n,t.target)?o.current=!0:o.current=!1}),l=dB(e=>{a.current||t(e)});(0,g.useEffect)(()=>{var t,a;if(n||null==e)return;let o=dH(dq(e)),c=o.defaultView||window,u=null!=(t=c.event)?t:null==(a=c.parent)?void 0:a.event,d=null;dU[r]&&(d=dD(o,dU[r],i,!0));let f=dD(o,r,s,!0),p=dD(o,r,e=>{if(e===u){u=void 0;return}l(e)}),h=[];return"ontouchstart"in o.documentElement&&(h=[].slice.call(o.body.children).map(e=>dD(e,"mousemove",dV))),()=>{null==d||d(),f(),p(),h.forEach(e=>e())}},[e,n,r,s,i,l])};function dY(e){let t;if(!e||"function"==typeof e)return null;let{major:n}={major:+(t=g.version.split("."))[0],minor:+t[1],patch:+t[2]};return n>=19?e.props.ref:e.ref}let dK=()=>{};var dQ=function(e,t,{disabled:n,clickTrigger:r}={}){let a=t||dK;dW(e,a,{disabled:n,clickTrigger:r});let o=dB(e=>{("Escape"===e.code||27===e.keyCode)&&a(e)});(0,g.useEffect)(()=>{if(n||null==e)return;let t=dH(dq(e)),r=(t.defaultView||window).event,a=dD(t,"keyup",e=>{if(e===r){r=void 0;return}o(e)});return()=>{a()}},[e,n,o])},dG=function(e,t){var n=(0,g.useRef)(null);return dQ(n,e,t),n},dJ=["children","onRootClose"],dX=function(e){return(0,e.children)(dG(e.onRootClose,cn(e,dJ)))},dZ=["onBlur","onClick","onFocus","onRemove","option"];function d0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function d1(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d0(Object(n),!0).forEach(function(t){ce(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d0(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}il().func,il().func,il().func,il().func,cJ.isRequired;var d2=["active","children","className","onRemove","tabIndex"],d3=["children","option","readOnly"],d7=["ref"];function d5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function d4(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d5(Object(n),!0).forEach(function(t){ce(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d5(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var d6=(0,g.forwardRef)(function(e,t){var n=e.active,r=e.children,a=e.className,o=e.onRemove,s=e.tabIndex,i=cn(e,d2);return g.createElement("div",l6({},i,{className:cM()("rbt-token","rbt-token-removeable",{"rbt-token-active":!!n},a),ref:t,tabIndex:s||0}),r,g.createElement(ux,{className:"rbt-token-remove-button",label:"Remove",onClick:o,tabIndex:-1}))}),d9=function(e){var t=e.children,n=e.className,r=e.disabled,a=e.href,o=cM()("rbt-token",{"rbt-token-disabled":r},n);return a&&!r?g.createElement("a",{className:o,href:a},t):g.createElement("div",{className:o},t)},d8=function(e){var t,n,r,a,o,s,i,l,c,u,d,f,p,h=e.children,m=e.option,v=e.readOnly,b=cn(e,d3),y=(n=(t=d4(d4({},b),{},{option:m})).onBlur,r=t.onClick,a=t.onFocus,o=t.onRemove,s=t.option,i=cn(t,dZ),c=(l=uE((0,g.useState)(!1),2))[0],u=l[1],d=function(e){u(!1),n&&n(e)},f=function(){o&&o(s)},p=dG(d,d1(d1({},i),{},{disabled:!c})),{active:c,onBlur:d,onClick:function(e){u(!0),r&&r(e)},onFocus:function(e){u(!0),a&&a(e)},onKeyDown:function(e){"Backspace"===e.key&&c&&(e.preventDefault(),f())},onRemove:cd(o)?f:void 0,ref:p}),w=y.ref,x=cn(y,d7),S=g.createElement("div",{className:"rbt-token-label"},h);return!b.disabled&&!v&&cd(x.onRemove)?g.createElement(d6,l6({},b,x,{ref:w}),S):g.createElement(d9,b,S)};function fe(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return n&&(n=n.replace(n[0],n[0].toUpperCase())),["Top","Right","Bottom","Left"].map(function(r){return e["".concat(t).concat(r).concat(n)]}).join(" ")}var ft=function(){var e=ue(),t=e.hintText,n=e.inputNode,r=(0,g.useRef)(null);return(0,g.useEffect)(function(){var e=function(){r.current&&n&&(r.current.scrollLeft=n.scrollLeft)};return null==n||n.addEventListener("scroll",e),function(){null==n||n.removeEventListener("scroll",e)}},[n]),(0,g.useEffect)(function(){var e,t;n&&r.current&&(e=r.current,t=window.getComputedStyle(n),e.style.borderStyle=fe(t,"border","style"),e.style.borderWidth=fe(t,"border","width"),e.style.fontSize=t.fontSize,e.style.fontWeight=t.fontWeight,e.style.height=t.height,e.style.lineHeight=t.lineHeight,e.style.margin=fe(t,"margin"),e.style.padding=fe(t,"padding"))}),{hintRef:r,hintText:t}},fn=function(e){var t=e.children,n=e.className,r=ft(),a=r.hintRef,o=r.hintText;return g.createElement("div",{className:n,style:{display:"flex",flex:1,height:"100%",position:"relative"}},t,g.createElement("input",{"aria-hidden":!0,className:"rbt-input-hint",ref:a,readOnly:!0,style:{backgroundColor:"transparent",borderColor:"transparent",boxShadow:"none",color:"rgba(0, 0, 0, 0.54)",left:0,pointerEvents:"none",position:"absolute",top:0,width:"100%"},tabIndex:-1,value:o}))},fr=(0,g.forwardRef)(function(e,t){return g.createElement("input",l6({},e,{className:cM()("rbt-input-main",e.className),ref:t}))}),fa=["children","className","inputClassName","inputRef","referenceElementRef","selected"],fo=function(e){var t=g.useRef(null),n=g.useRef(null),r=cW(e),a=r.children,o=r.className,s=r.inputClassName,i=(r.inputRef,r.referenceElementRef),l=r.selected,c=cn(r,fa);function u(t){if(e.disabled)return void t.currentTarget.blur();var r=n.current;!r||t.currentTarget.contains(t.target)&&t.currentTarget!==t.target||(cP(r)&&(r.selectionStart=r.value.length),r.focus())}return g.createElement("div",{className:cM()("rbt-input-multi",{disabled:e.disabled},o),onClick:u,onFocus:u,ref:i,tabIndex:-1},g.createElement("div",{className:"rbt-input-wrapper",ref:t},a,g.createElement(fn,null,g.createElement(fr,l6({},c,{className:s,onKeyDown:function(n){if("Backspace"===n.key&&l.length&&!e.value){n.preventDefault();var r,a=null==(r=t.current)?void 0:r.children;if(null!=a&&a.length){var o=a[a.length-2];null==o||o.focus()}}e.onKeyDown&&e.onKeyDown(n)},ref:function(t){n.current=t,e.inputRef(t)},style:{backgroundColor:"transparent",border:0,boxShadow:"none",cursor:"inherit",outline:"none",padding:0,width:"100%",zIndex:1}})))))},fs=["inputRef","referenceElementRef"],fi=function(e){var t=e.inputRef,n=e.referenceElementRef,r=cn(e,fs);return g.createElement(fn,null,g.createElement(fr,l6({},cW(r),{ref:function(e){t(e),n(e)}})))},fl={children:il().string.isRequired,highlightClassName:il().string,search:il().string.isRequired},fc=function(e){var t=e.children,n=e.highlightClassName,r=void 0===n?"rbt-highlight-text":n,a=e.search;if(!a||!t)return g.createElement(g.Fragment,null,t);for(var o=0,s=t,i=[];s;){var l=cO(s,a);if(!l){i.push(s);break}var c=s.slice(0,l.start);c&&i.push(c);var u=s.slice(l.start,l.end);i.push(g.createElement("mark",{className:r,key:o},u)),o+=1,s=s.slice(l.end)}return g.createElement(g.Fragment,null,i)};fc.propTypes=fl;let fu=e=>"object"==typeof e&&null!=e&&1===e.nodeType,fd=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,ff=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){let n,r=getComputedStyle(e,null);return fd(r.overflowY,t)||fd(r.overflowX,t)||!!(n=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e))&&(n.clientHeight<e.scrollHeight||n.clientWidth<e.scrollWidth)}return!1},fp=(e,t,n,r,a,o,s,i)=>o<e&&s>t||o>e&&s<t?0:o<=e&&i<=n||s>=t&&i>=n?o-e-r:s>t&&i<n||o<e&&i>n?s-t+a:0,fh=e=>{let t=e.parentElement;return null==t?e.getRootNode().host||null:t},fm=(e,t)=>{var n,r,a,o;let s;if("u"<typeof document)return[];let{scrollMode:i,block:l,inline:c,boundary:u,skipOverflowHiddenElements:d}=t,f="function"==typeof u?u:e=>e!==u;if(!fu(e))throw TypeError("Invalid target");let p=document.scrollingElement||document.documentElement,h=[],m=e;for(;fu(m)&&f(m);){if((m=fh(m))===p){h.push(m);break}null!=m&&m===document.body&&ff(m)&&!ff(document.documentElement)||null!=m&&ff(m,d)&&h.push(m)}let v=null!=(r=null==(n=window.visualViewport)?void 0:n.width)?r:innerWidth,g=null!=(o=null==(a=window.visualViewport)?void 0:a.height)?o:innerHeight,{scrollX:b,scrollY:y}=window,{height:w,width:x,top:S,right:k,bottom:_,left:E}=e.getBoundingClientRect(),{top:j,right:C,bottom:P,left:N}={top:parseFloat((s=window.getComputedStyle(e)).scrollMarginTop)||0,right:parseFloat(s.scrollMarginRight)||0,bottom:parseFloat(s.scrollMarginBottom)||0,left:parseFloat(s.scrollMarginLeft)||0},O="start"===l||"nearest"===l?S-j:"end"===l?_+P:S+w/2-j+P,T="center"===c?E+x/2-N+C:"end"===c?k+C:E-N,A=[];for(let e=0;e<h.length;e++){let t=h[e],{height:n,width:r,top:a,right:o,bottom:s,left:u}=t.getBoundingClientRect();if("if-needed"===i&&S>=0&&E>=0&&_<=g&&k<=v&&(t===p&&!ff(t)||S>=a&&_<=s&&E>=u&&k<=o))break;let d=getComputedStyle(t),f=parseInt(d.borderLeftWidth,10),m=parseInt(d.borderTopWidth,10),j=parseInt(d.borderRightWidth,10),C=parseInt(d.borderBottomWidth,10),P=0,N=0,M="offsetWidth"in t?t.offsetWidth-t.clientWidth-f-j:0,R="offsetHeight"in t?t.offsetHeight-t.clientHeight-m-C:0,z="offsetWidth"in t?0===t.offsetWidth?0:r/t.offsetWidth:0,L="offsetHeight"in t?0===t.offsetHeight?0:n/t.offsetHeight:0;if(p===t)P="start"===l?O:"end"===l?O-g:"nearest"===l?fp(y,y+g,g,m,C,y+O,y+O+w,w):O-g/2,N="start"===c?T:"center"===c?T-v/2:"end"===c?T-v:fp(b,b+v,v,f,j,b+T,b+T+x,x),P=Math.max(0,P+y),N=Math.max(0,N+b);else{P="start"===l?O-a-m:"end"===l?O-s+C+R:"nearest"===l?fp(a,s,n,m,C+R,O,O+w,w):O-(a+n/2)+R/2,N="start"===c?T-u-f:"center"===c?T-(u+r/2)+M/2:"end"===c?T-o+j+M:fp(u,o,r,f,j+M,T,T+x,x);let{scrollLeft:e,scrollTop:i}=t;P=0===L?0:Math.max(0,Math.min(i+P/L,t.scrollHeight-n/L+R)),N=0===z?0:Math.max(0,Math.min(e+N/z,t.scrollWidth-r/z+M)),O+=i-P,T+=e-N}A.push({el:t,top:P,left:N})}return A};var fv=["label","onClick","option","position"];function fg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function fb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fg(Object(n),!0).forEach(function(t){ce(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fg(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}cJ.isRequired,il().number;var fy=["active","children","className","disabled","onClick"],fw=(0,g.forwardRef)(function(e,t){var n=e.active,r=e.children,a=e.className,o=e.disabled,s=e.onClick,i=cn(e,fy);return g.createElement("a",l6({},i,{className:cM()("dropdown-item",{active:n,disabled:o},a),href:i.href||"#",onClick:function(e){e.preventDefault(),!o&&s&&s(e)},ref:t}),r)});function fx(e){var t,n,r,a,o,s,i,l,c,u,d,f,p,h,m,v;return g.createElement(fw,(t=e.label,n=e.onClick,r=e.option,a=e.position,o=cn(e,fv),i=(s=ue()).activeIndex,l=s.id,c=s.isOnlyResult,u=s.onActiveItemChange,d=s.onInitialItemChange,f=s.onMenuItemClick,p=s.setItem,h=(0,g.useRef)(null),(0,g.useEffect)(function(){0===a&&d(r)}),(0,g.useEffect)(function(){if(a===i){u(r);var e=h.current;e&&function(e,t){let n;if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;let r={top:parseFloat((n=window.getComputedStyle(e)).scrollMarginTop)||0,right:parseFloat(n.scrollMarginRight)||0,bottom:parseFloat(n.scrollMarginBottom)||0,left:parseFloat(n.scrollMarginLeft)||0};if("object"==typeof t&&"function"==typeof t.behavior)return t.behavior(fm(e,t));let a="boolean"==typeof t||null==t?void 0:t.behavior;for(let{el:n,top:o,left:s}of fm(e,!1===t?{block:"end",inline:"nearest"}:t===Object(t)&&0!==Object.keys(t).length?t:{block:"start",inline:"nearest"})){let e=o-r.top+r.bottom,t=s-r.left+r.right;n.scroll({top:e,left:t,behavior:a})}}(e,{boundary:e.parentNode,scrollMode:"if-needed"})}},[i,u,r,a]),m=(0,g.useCallback)(function(e){f(r,e),n&&n(e)},[n,f,r]),v=c||i===a,p(r,a),fb(fb({},o),{},{active:v,"aria-label":t,"aria-selected":v,id:cR(l,a),onClick:m,onMouseDown:c$,ref:h,role:"option"})))}var fS=["emptyLabel","innerRef","maxHeight","style"];function fk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function f_(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fk(Object(n),!0).forEach(function(t){ce(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fk(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var fE={"aria-label":il().string,emptyLabel:il().node,id:cQ(il().oneOfType([il().number,il().string]),cG),maxHeight:il().string},fj=function(e){var t=e.emptyLabel,n=e.innerRef,r=e.maxHeight,a=e.style,o=cn(e,fS),s=0===g.Children.count(o.children)?g.createElement(fw,{disabled:!0,role:"option"},void 0===t?"No matches found.":t):o.children;return g.createElement("div",l6({},o,{"aria-label":o["aria-label"]||"menu-options",className:cM()("rbt-menu","dropdown-menu","show",o.className),onMouseDown:c$,ref:n,role:"listbox",style:f_(f_({},a),{},{display:"block",maxHeight:void 0===r?"300px":r,overflow:"auto"})}),s)};fj.propTypes=fE,fj.Divider=function(){return g.createElement("div",{className:"dropdown-divider",role:"separator"})},fj.Header=function(e){return g.createElement("div",l6({},e,{className:"dropdown-header",role:"heading"}))};var fC=["labelKey","newSelectionPrefix","options","paginationText","renderMenuItemChildren","text"],fP={newSelectionPrefix:il().node,paginationText:il().node,renderMenuItemChildren:il().func};function fN(e,t){return g.createElement(fc,{search:t.text},cm(e,t.labelKey))}var fO=function(e){var t=e.labelKey,n=e.newSelectionPrefix,r=void 0===n?"New selection: ":n,a=e.options,o=e.paginationText,s=void 0===o?"Display additional results...":o,i=e.renderMenuItemChildren,l=void 0===i?fN:i,c=e.text,u=cn(e,fC);return g.createElement(fj,l6({},u,{key:c}),a.map(function(n,a){var o=cm(n,t),i={disabled:!!cy(n,"disabled"),label:o,option:n,position:a};return cy(n,"customOption")?g.createElement(fx,l6({},i,{className:"rbt-menu-custom-option",key:a,label:o}),r,g.createElement(fc,{search:c},o)):cy(n,"paginationOption")?g.createElement(g.Fragment,{key:"pagination-option-divider"},g.createElement(fj.Divider,null),g.createElement(fx,l6({},i,{className:"rbt-menu-pagination-option",label:cf(s)?s:""}),s)):g.createElement(fx,l6({},i,{key:a}),l(n,e,a))}))};function fT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function fA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fT(Object(n),!0).forEach(function(t){ce(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fT(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}fO.propTypes=fP;var fM={clearButton:il().bool,inputProps:cQ(il().object,function(e){var t=e.inputProps;t&&"[object Object]"===Object.prototype.toString.call(t)&&cY.forEach(function(e){var n=e.alt,r=e.prop;cE(!t[r],"The `".concat(r,"` property of `inputProps` will be ignored.").concat(n?" Use the top-level `".concat(n,"` prop instead."):null))})}),isInvalid:il().bool,isLoading:il().bool,isValid:il().bool,renderInput:il().func,renderMenu:il().func,renderToken:il().func,size:cK},fR=["align","dropup","flip","positionFixed"],fz=function(e){c4(r,e);var t,n=(t=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=c9(r);return e=t?Reflect.construct(n,arguments,c9(this).constructor):n.apply(this,arguments),c6(this,e)});function r(){var e;c1(this,r);for(var t=arguments.length,a=Array(t),o=0;o<t;o++)a[o]=arguments[o];return ce(c7(e=n.call.apply(n,[this].concat(a))),"_referenceElement",null),ce(c7(e),"referenceElementRef",function(t){e._referenceElement=t}),ce(c7(e),"_renderInput",function(t,n){var r=e.props,a=r.isInvalid,o=r.isValid,s=r.multiple,i=r.renderInput,l=r.renderToken,c=r.size;if(cd(i))return i(t,n);var u=fA(fA({},t),{},{isInvalid:a,isValid:o,size:c});if(!s)return g.createElement(fi,u);var d=n.labelKey,f=n.onRemove,p=n.selected;return g.createElement(fo,l6({},u,{placeholder:p.length?"":t.placeholder,selected:p}),p.map(function(e,t){return(l||function(e,t,n){return g.createElement(d8,{disabled:t.disabled,key:n,onRemove:t.onRemove,option:e,tabIndex:t.tabIndex},cm(e,t.labelKey))})(e,fA(fA({},u),{},{labelKey:d,onRemove:f}),t)}))}),ce(c7(e),"_renderMenu",function(t,n,r){var a=e.props,o=a.emptyLabel,s=a.id,i=a.maxHeight,l=a.newSelectionPrefix,c=a.paginationText,u=a.renderMenu,d=a.renderMenuItemChildren;return(u||function(e,t,n){return g.createElement(fO,l6({},t,{labelKey:n.labelKey,options:e,text:n.text}))})(t,fA(fA({},n),{},{emptyLabel:o,id:s,maxHeight:i,newSelectionPrefix:l,paginationText:c,renderMenuItemChildren:d}),r)}),ce(c7(e),"_renderAux",function(t){var n,r=t.onClear,a=t.selected,o=e.props,s=o.clearButton,i=o.disabled,l=o.isLoading,c=o.size;return l?n=g.createElement(uk,null):s&&!i&&a.length&&(n=g.createElement(ux,{onClick:r,onMouseDown:c$,size:c})),n?g.createElement("div",{className:cM()("rbt-aux",{"rbt-aux-lg":"lg"===c})},n):null}),e}return c3(r,[{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=t.className,a=t.instanceRef,o=t.open,s=t.options,i=t.style;return g.createElement(ub,l6({},this.props,{options:s,ref:a}),function(t){var a=t.hideMenu,s=t.isMenuShown,l=t.results,c=e._renderAux(t);return g.createElement(dX,{disabled:o||!s,onRootClose:a},function(a){return g.createElement("div",{className:cM()("rbt",{"has-aux":!!c,"is-invalid":e.props.isInvalid,"is-valid":e.props.isValid},r),ref:a,style:fA(fA({},i),{},{outline:"none",position:"relative"}),tabIndex:-1},e._renderInput(fA(fA({},t.getInputProps(e.props.inputProps)),{},{referenceElementRef:e.referenceElementRef}),t),g.createElement(dT,l6({},ch(e.props,fR),{isMenuShown:s,referenceElement:e._referenceElement}),function(n){return e._renderMenu(l,n,t)}),c,cd(n)?n(t):n)})})}}]),r}(g.Component);ce(fz,"propTypes",fM),ce(fz,"defaultProps",{isLoading:!1});var fL=(0,g.forwardRef)(function(e,t){return g.createElement(fz,l6({},e,{instanceRef:t}))}),fI=(0,g.forwardRef)(function(e,t){var n,r,a,o,s,i,l,c,u,d,f,p,h,m,v,b,y,w,x,S,k,_,E,j,C,P;let N;return g.createElement(fL,l6({},(n=e.allowNew,a=void 0===(r=e.delay)?200:r,o=e.emptyLabel,s=e.isLoading,l=void 0===(i=e.minLength)?2:i,c=e.onInputChange,u=e.onSearch,f=void 0===(d=e.options)?[]:d,h=void 0===(p=e.promptText)?"Type to search...":p,v=void 0===(m=e.searchText)?"Searching...":m,y=void 0===(b=e.useCache)||b,w=cn(e,cX),x=(0,g.useRef)({}),S=(0,g.useRef)(null),k=(0,g.useRef)(e.defaultInputValue||""),_=function(){let[,e]=(0,g.useReducer)(e=>!e,!1);return e}(),N=(0,g.useRef)(null),(0,g.useEffect)(()=>{N.current=e}),E=N.current,j=(0,g.useCallback)(function(e){if(k.current=e,e&&(!l||!(e.length<l))){if(y&&x.current[e])return void _();u(e)}},[_,l,u,y]),(0,g.useEffect)(function(){return S.current=ca()(j,a),function(){S.current&&S.current.cancel()}},[a,j]),(0,g.useEffect)(function(){!s&&E&&E.isLoading&&y&&(x.current[k.current]=f)}),C=(0,g.useCallback)(function(e,t){c&&c(e,t),S.current&&S.current(e)},[c]),P=x.current[k.current],c0(c0({},w),{},{allowNew:cd(n)?n:n&&!s,emptyLabel:k.current.length?s?v:o:h,isLoading:s,minLength:l,onInputChange:C,options:y&&P?P:f})),{ref:t}))});let fD=e=>{let t,n,r,a,o,s=(0,v.c)(19),{label:i,position:l,value:c}=e;if(!c||l<0){let e;return s[0]!==i?(e=(0,h.jsx)("span",{children:i}),s[0]=i,s[1]=e):e=s[1],e}s[2]!==i||s[3]!==l?(t=i.slice(0,Math.max(0,l)),s[2]=i,s[3]=l,s[4]=t):t=s[4];let u=t;s[5]!==i||s[6]!==l||s[7]!==c.length?(n=i.slice(l,l+c.length),s[5]=i,s[6]=l,s[7]=c.length,s[8]=n):n=s[8];let d=n;s[9]!==i||s[10]!==l||s[11]!==c.length?(r=i.slice(Math.max(0,l+c.length)),s[9]=i,s[10]=l,s[11]=c.length,s[12]=r):r=s[12];let f=r;return s[13]!==d?(a=(0,h.jsx)("b",{children:d}),s[13]=d,s[14]=a):a=s[14],s[15]!==f||s[16]!==u||s[17]!==a?(o=(0,h.jsxs)("span",{children:[u,a,f]}),s[15]=f,s[16]=u,s[17]=a,s[18]=o):o=s[18],o};fD.propTypes={label:il().string.isRequired,position:il().number.isRequired,value:il().string.isRequired};let fH=e=>{let t,n,r=(0,v.c)(3),{onClear:a}=e;return r[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,h.jsx)(N,{name:"error",isPresentational:!0}),r[0]=t):t=r[0],r[1]!==a?(n=(0,h.jsx)("button",{type:"reset",title:"Clear search",onClick:a,"aria-label":"clear search",children:t}),r[1]=a,r[2]=n):n=r[2],n};fH.propTypes={onClear:il().func.isRequired};let fF=()=>!0,fB=e=>{let t,n,r,a,o,s,i,l,c,u,d,f,p,m,b,y,w,x,S,k=(0,v.c)(57),{ariaLabel:_,defaultValue:E,fieldName:j,htmlId:C,isDisabled:P,handleChange:O,handleClear:T,handlePressEnter:A,hasClearButton:M,hasSearchButton:R,handleSelectionOverride:z,maxResults:L,placeholder:I}=e,D=void 0===E?"":E,H=void 0!==P&&P,F=void 0!==R&&R,B=void 0===L?5:L,$=void 0===I?"Enter your search text":I,V=rE(),q=(0,g.useRef)(),U=rC(lq),W=rC(lD),[Y,K]=(0,g.useState)(D),[Q,G]=(0,g.useState)(void 0!==M&&M&&(!!D||!!Y)),[J,X]=(0,g.useState)(!1);k[0]!==D?(t=()=>{q.current.setState({text:D}),K(q.current.inputNode.value),""===D?(q.current.clear(),G(!1)):G(!0)},n=[D],k[0]=D,k[1]=t,k[2]=n):(t=k[1],n=k[2]),(0,g.useEffect)(t,n),k[3]!==T?(r=()=>{T&&T(),q.current.clear(),K("")},k[3]=T,k[4]=r):r=k[4];let Z=r;k[5]!==V||k[6]!==j||k[7]!==z?(a=e=>{z?z(e):V(ll(j,[e[0].key])),K("")},k[5]=V,k[6]=j,k[7]=z,k[8]=a):a=k[8];let ee=a;k[9]!==O?(o=e=>{O&&O(e),X(!0),G(!!e),K(e)},k[9]=O,k[10]=o):o=k[10];let et=o,en="company"===j?"company":"zip";if(k[11]!==W||k[12]!==U){let e=Object.assign({},U,W);e.searchAfter="",s=ly(e),k[11]=W,k[12]=U,k[13]=s}else s=k[13];let er=s+"&text="+encodeURIComponent(Y),ea="_suggest_".concat(en,"/").concat(er);k[14]!==ea?(i={url:ea},k[14]=ea,k[15]=i):i=k[15];let eo=!Y;k[16]!==eo?(l={skip:eo},k[16]=eo,k[17]=l):l=k[17];let{currentData:es,isFetching:ei,isLoading:el}=is(i,l);k[18]!==es||k[19]!==Y?(c=es?es.map(e=>({key:e,label:e,position:e.toLowerCase().indexOf(Y.toLowerCase()),value:Y})):[],k[18]=es,k[19]=Y,k[20]=c):c=k[20];let ec=c;k[21]===Symbol.for("react.memo_cache_sentinel")?(u=(0,h.jsx)(N,{name:"search",isPresentational:!0}),k[21]=u):u=k[21],k[22]!==_||k[23]!==C?(d=(0,h.jsx)("label",{"aria-label":_,className:"o-search-input__input-label",htmlFor:C,children:u}),k[22]=_,k[23]=C,k[24]=d):d=k[24],k[25]!==C?(f={id:C,type:"search",className:"a-text-input a-text-input--full"},k[25]=C,k[26]=f):f=k[26];let eu=el||ei;k[27]!==ee?(p=e=>{ee(e),q.current.clear(),K("")},k[27]=ee,k[28]=p):p=k[28],k[29]!==A?(m=e=>{A&&"Enter"===e.key&&(A(e),X(!1))},k[29]=A,k[30]=m):m=k[30];let ed=Y?"No matches found":"";return k[31]!==D||k[32]!==C||k[33]!==H||k[34]!==J||k[35]!==B||k[36]!==et||k[37]!==ec||k[38]!==$||k[39]!==f||k[40]!==eu||k[41]!==p||k[42]!==m||k[43]!==ed?(b=(0,h.jsx)(fI,{id:C,minLength:1,className:"typeahead__selector",defaultInputValue:D,delay:250,disabled:H,filterBy:fF,inputProps:f,isLoading:eu,ref:q,onInputChange:et,onChange:p,onKeyDown:m,onSearch:et,options:ec,maxResults:B,placeholder:$,renderMenuItemChildren:f$,open:J,promptText:"",searchText:"",emptyLabel:ed,useCache:!1}),k[31]=D,k[32]=C,k[33]=H,k[34]=J,k[35]=B,k[36]=et,k[37]=ec,k[38]=$,k[39]=f,k[40]=eu,k[41]=p,k[42]=m,k[43]=ed,k[44]=b):b=k[44],k[45]!==Z||k[46]!==Q?(y=!!Q&&(0,h.jsx)(fH,{onClear:()=>{Z(),G(!1)}}),k[45]=Z,k[46]=Q,k[47]=y):y=k[47],k[48]!==d||k[49]!==b||k[50]!==y?(w=(0,h.jsxs)("div",{className:"o-search-input__input",children:[d,b,y]}),k[48]=d,k[49]=b,k[50]=y,k[51]=w):w=k[51],k[52]!==F?(x=!!F&&(0,h.jsx)(tw,{type:"submit",label:"Search"}),k[52]=F,k[53]=x):x=k[53],k[54]!==w||k[55]!==x?(S=(0,h.jsx)("section",{className:"typeahead",children:(0,h.jsxs)("div",{className:"o-search-input",children:[w,x]})}),k[54]=w,k[55]=x,k[56]=S):S=k[56],S};function f$(e){return(0,h.jsx)("li",{className:"typeahead__option",children:(0,h.jsx)(fD,{label:e.label,position:e.position,value:e.value},e.key)})}fB.propTypes={ariaLabel:il().string.isRequired,defaultValue:il().string,fieldName:il().string.isRequired,isDisabled:il().bool,handleChange:il().func,handleClear:il().func,handlePressEnter:il().func,handleSelectionOverride:il().func,hasClearButton:il().bool,hasSearchButton:il().bool,htmlId:il().string.isRequired,maxResults:il().number,placeholder:il().string};let fV="company",fq=()=>{let e,t,n,r,a=(0,v.c)(9),{data:o,error:s}=l7(),i=rC(lH);a[0]!==(null==o?void 0:o.company)||a[1]!==s?(e=s?[]:(null==o?void 0:o.company)||[],a[0]=null==o?void 0:o.company,a[1]=s,a[2]=e):e=a[2];let l=e;a[3]!==l?(t=structuredClone(l),a[3]=l,a[4]=t):t=a[4];let c=t;return a[5]===Symbol.for("react.memo_cache_sentinel")?(n=(0,h.jsx)(fB,{fieldName:fV,placeholder:"Enter company name",ariaLabel:"Company Search",htmlId:"company-typeahead"}),a[5]=n):n=a[5],a[6]!==i||a[7]!==c?(r=(0,h.jsxs)(lz,{title:"Company name",desc:"The company the consumer identified in the complaint.",className:"aggregation company",children:[n,(0,h.jsx)(l4,{fieldName:fV,options:c,selections:i})]}),a[6]=i,a[7]=c,a[8]=r):r=a[8],r};var fU=a(6336),fW=a.n(fU),fY=a(8657),fK=a.n(fY);sM().extend(fW()),sM().extend(fK());let fQ=e=>["a-text-input",e?"a-text-input--error":""].filter(Boolean).join(" "),fG=()=>{let e,t,n,r,a,o,s,i,l,c,u=(0,v.c)(49),d=rC(lW),f=rC(lU);u[0]!==d?(e=sM()(d).isValid()?sL(d):"",u[0]=d,u[1]=e):e=u[1];let p=e;u[2]!==f?(t=sM()(f).isValid()?sL(f):"",u[2]=f,u[3]=t):t=u[3];let m=t,[b,y]=(0,g.useState)(null),[w,x]=(0,g.useState)(null),S=rE(),k=(0,g.useRef)(),_=(0,g.useRef)(),E=null!=b?b:p,j=null!=w?w:m;if(u[4]!==d||u[5]!==f||u[6]!==S||u[7]!==E||u[8]!==j){let e,t,l,c,p,m,v,g,b,w,C,P,N,O=(N=[],sM()(E).isAfter(j)&&N.push("'From' date must be less than 'To' date"),sM()(E).isBefore(sV)&&N.push("'From' date must be after "+sM()(sV).format(sB)),sM()(j).isAfter(s$)&&N.push("'To' date must be before "+sM()(s$).format(sB)),N);u[15]===Symbol.for("react.memo_cache_sentinel")?(e=e=>{"Enter"===e.key&&k.current.blur()},u[15]=e):e=u[15];let T=e;u[16]===Symbol.for("react.memo_cache_sentinel")?(t=e=>{"Enter"===e.key&&_.current.blur()},u[16]=t):t=u[16];let A=t,M=()=>{let e=j,t=E;t&&!sM()(E).isValid()&&(k.current.value="",t=""),e&&!sM()(j).isValid()&&(_.current.value="",e=""),(d!==t||f!==e)&&S(lk(t,e)),y(null),x(null)};if(u[17]!==E||u[18]!==j)l=fQ(sM()(E).isBefore(sV)||sM()(E).isAfter(j)),u[17]=E,u[18]=j,u[19]=l;else l=u[19];let R=l;if(u[20]!==E||u[21]!==j)c=fQ(sM()(j).isAfter(s$)||sM()(j).isBefore(E)),u[20]=E,u[21]=j,u[22]=c;else c=u[22];let z=c;n=lz,o="The date the CFPB sent the complaint to the company",s="aggregation date-filter",i="",u[23]===Symbol.for("react.memo_cache_sentinel")?(p=(0,h.jsx)("label",{className:"a-label a-label--heading",htmlFor:iO("company_received-from"),children:"From"}),u[23]=p):p=u[23],u[24]===Symbol.for("react.memo_cache_sentinel")?(m=iO("company_received-from"),u[24]=m):m=u[24],u[25]===Symbol.for("react.memo_cache_sentinel")?(v=e=>y(e.target.value),u[25]=v):v=u[25],u[26]!==E||u[27]!==M||u[28]!==R?(g=(0,h.jsxs)("li",{children:[p,(0,h.jsx)("div",{className:"o-search-input",children:(0,h.jsx)("div",{className:"o-search-input__input",children:(0,h.jsx)("input",{id:m,className:R,onBlur:M,onChange:v,onKeyDown:T,min:sV,max:s$,ref:k,placeholder:sB,type:"date",value:E})})})]}),u[26]=E,u[27]=M,u[28]=R,u[29]=g):g=u[29],u[30]===Symbol.for("react.memo_cache_sentinel")?(b=(0,h.jsx)("label",{className:"a-label a-label--heading",htmlFor:iO("company_received-through"),children:"To"}),u[30]=b):b=u[30],u[31]===Symbol.for("react.memo_cache_sentinel")?(w=iO("company_received-through"),u[31]=w):w=u[31],u[32]===Symbol.for("react.memo_cache_sentinel")?(C=e=>x(e.target.value),u[32]=C):C=u[32],u[33]!==M||u[34]!==z||u[35]!==j?(P=(0,h.jsxs)("li",{children:[b,(0,h.jsx)("div",{className:"o-search-input",children:(0,h.jsx)("div",{className:"o-search-input__input",children:(0,h.jsx)("input",{id:w,className:z,onBlur:M,onChange:C,onKeyDown:A,min:sV,max:s$,placeholder:sB,ref:_,type:"date",value:j})})})]}),u[33]=M,u[34]=z,u[35]=j,u[36]=P):P=u[36],u[37]!==g||u[38]!==P?(r=(0,h.jsxs)("ul",{className:"date-inputs",children:[g,P]}),u[37]=g,u[38]=P,u[39]=r):r=u[39],a=O.length>0?(0,h.jsx)("div",{className:"a-form-alert a-form-alert--error",role:"alert",children:O.map(fJ)}):null,u[4]=d,u[5]=f,u[6]=S,u[7]=E,u[8]=j,u[9]=n,u[10]=r,u[11]=a,u[12]=o,u[13]=s,u[14]=i}else n=u[9],r=u[10],a=u[11],o=u[12],s=u[13],i=u[14];return u[40]!==r||u[41]!==a?(l=(0,h.jsxs)("div",{children:[r,a]}),u[40]=r,u[41]=a,u[42]=l):l=u[42],u[43]!==n||u[44]!==o||u[45]!==s||u[46]!==i||u[47]!==l?(c=(0,h.jsx)(n,{title:o,className:s,desc:i,children:l}),u[43]=n,u[44]=o,u[45]=s,u[46]=i,u[47]=l,u[48]=c):c=u[48],c};function fJ(e,t){return(0,h.jsxs)("div",{children:[(0,h.jsx)("span",{"aria-hidden":"true",children:(0,h.jsx)(N,{name:"error-round",isPresentational:!0})}),(0,h.jsx)("div",{className:"a-form-alert__text",children:e})]},t)}let fX=()=>{let e,t,n,r,a=(0,v.c)(10),o=rE(),s=rC(lG);a[0]!==s?(e=e=>e===s?"active":"",a[0]=s,a[1]=e):e=a[1];let i=e;a[2]!==s||a[3]!==o?(t=e=>{s!==e&&(iH("Button",e),o(lE(e)))},a[2]=s,a[3]=o,a[4]=t):t=a[4];let l=t;return a[5]===Symbol.for("react.memo_cache_sentinel")?(n=(0,h.jsx)("p",{children:"Select date range"}),a[5]=n):n=a[5],a[6]!==i||a[7]!==s||a[8]!==l?(r=(0,h.jsxs)("section",{className:"date-ranges",children:[n,(0,h.jsx)(tx,{id:"date-range",children:Object.entries(sQ).map(e=>{let[t,n]=e;return(0,h.jsx)(tw,{label:t,"aria-label":n,"aria-pressed":t===s,appearance:"secondary",className:i(t),title:n,onClick:()=>{l(t)}},t)})})]}),a[6]=i,a[7]=s,a[8]=l,a[9]=r):r=a[9],r};sM().extend(fW()),sM().extend(fK()),sM().extend(sz());let fZ=e=>["a-text-input",e?"a-text-input--error":""].filter(Boolean).join(" "),f0=()=>{let e,t,n,r,a,o,s,i,l,c,u,d,f,p,m=(0,v.c)(31),b=rC(lQ),y=rC(lK),w=sM()(b).isValid()?sH(b):"",x=sM()(y).isValid()?sH(y):"",[S,k]=(0,g.useState)(null),[_,E]=(0,g.useState)(null),j=rE(),C=(0,g.useRef)(),P=(0,g.useRef)(),O=null!=S?S:w,T=null!=_?_:x,A=sM()(O).isAfter(T)?"'From' date must be less than 'To' date":sM()(O).isSame(T)?"'From' date cannot be the same as 'To' date":!!sM()(T).isAfter(s$)&&"'To' date cannot be later than "+sI(s$);m[0]===Symbol.for("react.memo_cache_sentinel")?(e=e=>{"Enter"===e.key&&C.current.blur()},m[0]=e):e=m[0];let M=e;m[1]===Symbol.for("react.memo_cache_sentinel")?(t=e=>{"Enter"===e.key&&P.current.blur()},m[1]=t):t=m[1];let R=t,z=()=>{let e=O,t=T;if(iN([!sM()(O).isValid(),sM()(O).isBefore(sV),sM()(O).isAfter(s$),!C.current.value])&&(C.current.value=sV,e=sV),iN([!sM()(T).isValid(),sM()(T).isAfter(s$),sM()(T).isBefore(sV),sM()(T).isBefore(O),!P.current.value])&&(P.current.value=s$,t=s$),sM()(t).isAfter(e)){j(l_(e,t)),k(null),E(null);return}k(e),E(t)},L=fZ(iN([!sM()(O).isValid(),sM()(O).isBefore(sV),sM()(O).isAfter(T),sM()(O).isSame(T)])),I=fZ(iN([!sM()(T).isValid(),sM()(T).isAfter(s$),sM()(T).isBefore(O),sM()(T).isSame(O)]));return m[2]===Symbol.for("react.memo_cache_sentinel")?(n=(0,h.jsx)("label",{className:"a-label a-label--heading",htmlFor:iO("date_received-from"),children:"From"}),m[2]=n):n=m[2],m[3]===Symbol.for("react.memo_cache_sentinel")?(r=iO("date_received-from"),m[3]=r):r=m[3],m[4]!==k?(a=e=>{k(e.target.value)},m[4]=k,m[5]=a):a=m[5],m[6]!==O||m[7]!==z||m[8]!==M||m[9]!==L||m[10]!==a?(o=(0,h.jsxs)("li",{children:[n,(0,h.jsx)("div",{className:"o-search-input",children:(0,h.jsx)("div",{className:"o-search-input__input",children:(0,h.jsx)("input",{id:r,className:L,onBlur:z,onChange:a,onKeyDown:M,min:sV,max:s$,ref:C,placeholder:sB,type:"date",value:O})})})]}),m[6]=O,m[7]=z,m[8]=M,m[9]=L,m[10]=a,m[11]=o):o=m[11],m[12]===Symbol.for("react.memo_cache_sentinel")?(s=(0,h.jsx)("label",{className:"a-label a-label--heading",htmlFor:iO("date_received-through"),children:"To"}),m[12]=s):s=m[12],m[13]===Symbol.for("react.memo_cache_sentinel")?(i=iO("date_received-through"),m[13]=i):i=m[13],m[14]!==E?(l=e=>{E(e.target.value)},m[14]=E,m[15]=l):l=m[15],m[16]!==z||m[17]!==R||m[18]!==I||m[19]!==l||m[20]!==T?(c=(0,h.jsxs)("li",{children:[s,(0,h.jsx)("div",{className:"o-search-input",children:(0,h.jsx)("div",{className:"o-search-input__input",children:(0,h.jsx)("input",{id:i,className:I,onBlur:z,onChange:l,onKeyDown:R,min:sV,max:s$,placeholder:sB,ref:P,type:"date",value:T})})})]}),m[16]=z,m[17]=R,m[18]=I,m[19]=l,m[20]=T,m[21]=c):c=m[21],m[22]!==o||m[23]!==c?(u=(0,h.jsxs)("ul",{className:"date-inputs",children:[o,c]}),m[22]=o,m[23]=c,m[24]=u):u=m[24],m[25]===Symbol.for("react.memo_cache_sentinel")?(d=(0,h.jsx)(fX,{}),m[25]=d):d=m[25],m[26]!==A?(f=A?(0,h.jsxs)("div",{className:"a-form-alert a-form-alert--error",role:"alert",children:[(0,h.jsx)("span",{"aria-hidden":"true",children:(0,h.jsx)(N,{name:"error-round",isPresentational:!0})}),(0,h.jsx)("span",{className:"a-form-alert__text",children:A+" "})]}):null,m[26]=A,m[27]=f):f=m[27],m[28]!==u||m[29]!==f?(p=(0,h.jsx)(lz,{title:"Date received",className:"aggregation date-filter",desc:"The date the CFPB received the complaint.",children:(0,h.jsxs)("div",{children:[u,d,f]})}),m[28]=u,m[29]=f,m[30]=p):p=m[30],p},f1=e=>{let t,n,r,a,o,s,i,l,c,u=(0,v.c)(26),{ariaLabel:d,htmlId:f,isDisabled:p,handleChange:m,handleInputChange:b,maxResults:y,options:w,placeholder:x}=e,S=void 0!==p&&p,k=void 0===y?5:y,_=void 0===x?"Enter your search text":x,E=(0,g.useRef)(),[j,C]=(0,g.useState)("");u[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>{E.current.clear(),C("")},u[0]=t):t=u[0];let P=t;return u[1]===Symbol.for("react.memo_cache_sentinel")?(n=(0,h.jsx)(N,{name:"search",isPresentational:!0}),u[1]=n):n=u[1],u[2]!==d||u[3]!==f?(r=(0,h.jsx)("label",{"aria-label":d,className:"o-search-input__input-label",htmlFor:f,children:n}),u[2]=d,u[3]=f,u[4]=r):r=u[4],u[5]!==m?(a=e=>{m(e),P()},u[5]=m,u[6]=a):a=u[6],u[7]!==b?(o=e=>{b(e),C(e)},u[7]=b,u[8]=o):o=u[8],u[9]!==f?(s={id:f,type:"search",className:"a-text-input a-text-input--full"},u[9]=f,u[10]=s):s=u[10],u[11]!==f||u[12]!==S||u[13]!==k||u[14]!==w||u[15]!==_||u[16]!==a||u[17]!==o||u[18]!==s?(i=(0,h.jsx)(fL,{id:f,minLength:1,className:"typeahead__selector",disabled:S,isLoading:!1,ref:E,onChange:a,onInputChange:o,options:w,maxResults:k,placeholder:_,renderMenuItemChildren:f2,inputProps:s}),u[11]=f,u[12]=S,u[13]=k,u[14]=w,u[15]=_,u[16]=a,u[17]=o,u[18]=s,u[19]=i):i=u[19],u[20]!==j?(l=!!j&&(0,h.jsx)(fH,{onClear:P}),u[20]=j,u[21]=l):l=u[21],u[22]!==i||u[23]!==l||u[24]!==r?(c=(0,h.jsx)("section",{className:"typeahead",children:(0,h.jsx)("div",{className:"o-search-input",children:(0,h.jsxs)("div",{className:"o-search-input__input",children:[r,i,l]})})}),u[22]=i,u[23]=l,u[24]=r,u[25]=c):c=u[25],c};function f2(e){return(0,h.jsx)("li",{className:"typeahead__option",children:(0,h.jsx)(fD,{label:e.label,position:e.position,value:e.value},e.key)})}f1.propTypes={ariaLabel:il().string.isRequired,isDisabled:il().bool,handleChange:il().func.isRequired,handleInputChange:il().func.isRequired,htmlId:il().string.isRequired,maxResults:il().number,options:il().array,placeholder:il().string};let f3="state",f7=e=>lL(e),f5=()=>{let e,t,n,r,a,o,s,i,l=(0,v.c)(18),{data:c,error:u}=l7();l[0]!==(null==c?void 0:c.state)||l[1]!==u?(e=u?[]:(null==c?void 0:c.state)||[],l[0]=null==c?void 0:c.state,l[1]=u,l[2]=e):e=l[2];let d=e;l[3]!==d?(t=structuredClone(d),l[3]=d,l[4]=t):t=l[4];let f=t,p=rE(),m=rC(lF);l[5]===Symbol.for("react.memo_cache_sentinel")?(n=Object.keys(sZ).map(f4),l[5]=n):n=l[5];let b=n,[y,w]=(0,g.useState)(b);l[6]===Symbol.for("react.memo_cache_sentinel")?(r=e=>{let t=iP(e);""===t?w(b):w(b.map(n=>({key:n.key,label:n.label,normalized:n.normalized,position:n.normalized.indexOf(t),value:e})))},l[6]=r):r=l[6];let x=r;l[7]!==p?(a=e=>{p(ll(f3,[e[0].key]))},l[7]=p,l[8]=a):a=l[8];let S=a;return l[9]!==y||l[10]!==S?(o=(0,h.jsx)(f1,{ariaLabel:"Start typing to begin listing US states",htmlId:"state-typeahead",handleChange:S,handleInputChange:x,hasClearButton:!0,options:y,placeholder:"Enter state name or abbreviation"}),l[9]=y,l[10]=S,l[11]=o):o=l[11],l[12]!==m||l[13]!==f?(s=(0,h.jsx)(l4,{fieldName:f3,options:f,getLabel:f7,selections:m}),l[12]=m,l[13]=f,l[14]=s):s=l[14],l[15]!==o||l[16]!==s?(i=(0,h.jsxs)(lz,{title:"State",desc:"The state in the mailing address provided by the consumer.",className:"aggregation state",children:[o,s]}),l[15]=o,l[16]=s,l[17]=i):i=l[17],i};function f4(e){let t=f7(e);return{key:e,label:t,position:0,normalized:iP(t),value:e}}let f6=e=>{let{fieldName:t,listComponent:n,options:r,perBucketProps:a=(e,t)=>t,hasMore:o=!1}=e,[s,i]=(0,g.useState)(o),l=iR(r,iC(rC(lD),t,[]),t),c=l.length>5?l.slice(0,5):l,u=l.length-5,d=e=>{let r=a(e,{fieldName:t,item:e,key:e.key});return(0,g.createElement)(n,r)};return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("ul",{children:s?l.map(e=>d(e)):c.map(e=>d(e))}),u>0?(0,h.jsx)("div",{children:(0,h.jsx)(tw,{label:s?"- Show ".concat(u," less"):"+ Show ".concat(u," more"),isLink:!0,className:"more",onClick:()=>{i(!s)}})}):null]})};f6.propTypes={fieldName:il().string.isRequired,listComponent:il().oneOfType([il().element,il().func,il().object]).isRequired,options:il().array.isRequired,perBucketProps:il().func,hasMore:il().bool};let f9=e=>{let t,n,r,a,o=(0,v.c)(14),{fieldName:s,title:i,desc:l}=e,{data:c,error:u}=l7();o[0]!==c||o[1]!==u?(t=u?{}:c,o[0]=c,o[1]=u,o[2]=t):t=o[2];let d=t;o[3]!==d||o[4]!==s?(n=iC(d,s,[]),o[3]=d,o[4]=s,o[5]=n):n=o[5];let f=n,p="aggregation simple "+s;return o[6]!==s||o[7]!==f?(r=(0,h.jsx)(f6,{fieldName:s,listComponent:l5,options:f}),o[6]=s,o[7]=f,o[8]=r):r=o[8],o[9]!==l||o[10]!==p||o[11]!==r||o[12]!==i?(a=(0,h.jsx)(lz,{title:i,desc:l,className:p,children:r}),o[9]=l,o[10]=p,o[11]=r,o[12]=i,o[13]=a):a=o[13],a};f9.propTypes={fieldName:il().string.isRequired,title:il().string.isRequired,desc:il().string};let f8="zip_code",pe=()=>{let e,t,n,r,a=(0,v.c)(9),{data:o,error:s}=l7(),i=rC(lB);a[0]!==(null==o?void 0:o.zip_code)||a[1]!==s?(e=s?[]:(null==o?void 0:o.zip_code)||[],a[0]=null==o?void 0:o.zip_code,a[1]=s,a[2]=e):e=a[2];let l=e;a[3]!==l?(t=structuredClone(l),a[3]=l,a[4]=t):t=a[4];let c=t;return a[5]===Symbol.for("react.memo_cache_sentinel")?(n=(0,h.jsx)(fB,{fieldName:f8,placeholder:"Enter ZIP code",ariaLabel:"Start typing to begin listing zip codes",htmlId:"zip-code-typeahead",hasClearButton:!0}),a[5]=n):n=a[5],a[6]!==i||a[7]!==c?(r=(0,h.jsxs)(lz,{title:"ZIP code",desc:"The mailing ZIP code provided by the consumer.",className:"aggregation",children:[n,(0,h.jsx)(l4,{fieldName:f8,options:c,selections:i})]}),a[6]=i,a[7]=c,a[8]=r):r=a[8],r},pt=e=>e.view.hasAdvancedSearchTips,pn=e=>e.view.hasFilters,pr=e=>e.view.isPrintMode,pa=e=>e.view.showTour,po=e=>e.view.width,ps=e=>e.view.modalTypeShown,pi="INDETERMINATE",pl="CHECKED",pc=e=>{let t,n,r=(0,v.c)(39),{fieldName:a,item:o,subitems:s}=e,i=rC(lD),l=rE(),[c,u]=(0,g.useState)(!1);if(r[0]!==l||r[1]!==a||r[2]!==i||r[3]!==c||r[4]!==o||r[5]!==s){n=Symbol.for("react.early_return_sentinel");n:{let e,d,f,p,m,v,g,b,y,w,x,S,k=iC(i,a,[]);r[8]!==o.key?(e=e=>e===o.key||e.startsWith(o.key+"•"),r[8]=o.key,r[9]=e):e=r[9];let _=k.filter(e),E=_.filter(pu);r[10]!==o.key?(d=e=>e===o.key,r[10]=o.key,r[11]=d):d=r[11];let j=_.filter(d),C="UNCHECKED";0===j.length&&E.length>0?C=pi:j.length>0&&(C=pl),r[12]!==o.key?(f=e=>({isDisabled:e.isDisabled,key:iT(o.key,e.key),value:e.key,doc_count:e.doc_count}),r[12]=o.key,r[13]=f):f=r[13];let P=iR(s.map(f),k,a);if(0===P.length){let e;r[14]!==a||r[15]!==o?(e=(0,h.jsx)(l5,{item:o,fieldName:a},o.key),r[14]=a,r[15]=o,r[16]=e):e=r[16],n=e;break n}let O="".concat(a," ").concat(o.key);r[17]!==O?(p=iO(O),r[17]=O,r[18]=p):p=r[18];let T=p;r[19]!==c?(m=()=>{u(!c)},r[19]=c,r[20]=m):m=r[20];let A=m;r[21]!==o.key?(v=iO(o.key),r[21]=o.key,r[22]=v):v=r[22],r[23]!==o.key?(g=(0,h.jsx)("span",{className:"u-visually-hidden",children:o.key}),r[23]=o.key,r[24]=g):g=r[24],r[25]!==o.key?(b=(0,h.jsx)("span",{className:"aggregation-branch__label",children:o.key}),r[25]=o.key,r[26]=b):b=r[26],r[27]!==o.doc_count?(y=o.doc_count.toLocaleString(),r[27]=o.doc_count,r[28]=y):y=r[28],r[29]!==y?(w=(0,h.jsx)(tP,{type:"5",className:"aggregation-branch__count",children:y}),r[29]=y,r[30]=w):w=r[30];let M=c?"up":"down";r[31]!==M?(x=(0,h.jsx)(N,{name:M,isPresentational:!0,className:"aggregation-branch__caret"}),r[31]=M,r[32]=x):x=r[32],r[33]!==c||r[34]!==b||r[35]!==w||r[36]!==x||r[37]!==A?(S=(0,h.jsxs)("button",{type:"button",className:"aggregation-branch__toggle","aria-expanded":c,onClick:A,children:[b,w,x]}),r[33]=c,r[34]=b,r[35]=w,r[36]=x,r[37]=A,r[38]=S):S=r[38],t=(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)("li",{className:"aggregation-branch ".concat(v," parent"),children:[(0,h.jsx)(tC,{id:T,label:g,className:"aggregation-branch__checkbox",disabled:o.isDisabled,checked:C===pl,isIndeterminate:C===pi,onChange:()=>{let e=((e,t)=>{let n=new Set([e]);for(let r of t)n.add(iT(e,r.key));return n})(o.key,s);for(let t of E)e.add(t);if(C===pl)l(lc(a,[...e]));else{let e=k.filter(e=>e!==o.key&&!e.startsWith(o.key+"•"));e.push(o.key),l(ls(a,[...e]))}}}),S]}),c?(0,h.jsx)("ul",{className:"children",children:P.map(e=>(0,h.jsx)(l5,{item:e,fieldName:a,siblings:P},e.key))}):null]})}r[0]=l,r[1]=a,r[2]=i,r[3]=c,r[4]=o,r[5]=s,r[6]=t,r[7]=n}else t=r[6],n=r[7];return n!==Symbol.for("react.early_return_sentinel")?n:t};function pu(e){return e.includes("•")}pc.propTypes={fieldName:il().string.isRequired,item:il().shape({doc_count:il().number.isRequired,key:il().string.isRequired,value:il().string,isDisabled:il().bool}).isRequired,subitems:il().array.isRequired};var pd=a(9277),pf=a.n(pd);let pp=oo({name:"actions",initialState:{actions:[]},reducers:{addAction:(e,t)=>{e.actions.push(t.payload)},clearActions:e=>{e.actions.length=0}}}),{addAction:ph,clearActions:pm}=pp.actions;pp.reducer;let pv=e=>{let t,n,r,a,o,s,i,l,c,u,d,f,p,m,b=(0,v.c)(39),{fieldName:y}=e,w=(0,g.useRef)(null),x=rE(),S=y.replaceAll("_"," "),{data:k,error:_}=l7();b[0]!==k||b[1]!==_||b[2]!==y?(t=_||!k?[]:k[y]||[],b[0]=k,b[1]=_,b[2]=y,b[3]=t):t=b[3];let E=t,j="sub_".concat(y,".raw").toLowerCase(),C=[],[P,O]=(0,g.useState)("");for(let e of E){var T;if(C.every(t=>t.key!==e.key)){let t=iq(rO({},e),{isParent:!0,label:e.key,normalized:iP(e.key),position:0,top:{key:e.key,label:e.key,normalized:iP(e.key),position:0}});C.push(t)}if(Object.hasOwn(e,j)&&(null==(T=e[j])?void 0:T.buckets))for(let t of e[j].buckets){let n={key:e.key+"•"+t.key,label:t.key,normalized:iP(t.key),position:0,top:{key:e.key,label:e.key,normalized:iP(e.key),position:0}};C.push(n)}}let[A,M]=(0,g.useState)(C);b[4]!==O?(n=()=>{w.current.clear(),O("")},b[4]=O,b[5]=n):n=b[5];let R=n,z=e=>{O(e);let t=iP(e);t?M(C.map(n=>iq(rO({},n),{position:n.normalized.indexOf(t),value:e,top:iq(rO({},n.top),{position:n.top.normalized.indexOf(t),value:e})}))):M(C)};b[6]!==x||b[7]!==y||b[8]!==R?(r=e=>{x(lr(y,e[0].key)),R()},b[6]=x,b[7]=y,b[8]=R,b[9]=r):r=b[9];let L=r,I="Search "+y,D="filter-search-".concat(y);b[10]!==D?(a=iO(D),b[10]=D,b[11]=a):a=b[11],b[12]===Symbol.for("react.memo_cache_sentinel")?(o=(0,h.jsx)(N,{name:"search",isPresentational:!0}),b[12]=o):o=b[12],b[13]!==I||b[14]!==a?(s=(0,h.jsx)("label",{"aria-label":I,className:"o-search-input__input-label",htmlFor:a,children:o}),b[13]=I,b[14]=a,b[15]=s):s=b[15];let H="filter-search-".concat(y);b[16]!==H?(i=iO(H),b[16]=H,b[17]=i):i=b[17],b[18]===Symbol.for("react.memo_cache_sentinel")?(l=["key"],b[18]=l):l=b[18],b[19]!==L?(c=e=>L(e),b[19]=L,b[20]=c):c=b[20],b[21]!==z?(u=e=>z(e),b[21]=z,b[22]=u):u=b[22];let F="Enter name of "+S,B="".concat(S," Filter Menu Input");return b[23]!==B?(d={"aria-label":B,className:"a-text-input a-text-input--full",type:"search"},b[23]=B,b[24]=d):d=b[24],b[25]!==A||b[26]!==i||b[27]!==c||b[28]!==u||b[29]!==F||b[30]!==d?(f=(0,h.jsx)(fL,{id:i,maxResults:5,minLength:2,className:"typeahead__selector",filterBy:l,onChange:c,onInputChange:u,placeholder:F,labelKey:"key",options:A,ref:w,inputProps:d,renderMenuItemChildren:pg}),b[25]=A,b[26]=i,b[27]=c,b[28]=u,b[29]=F,b[30]=d,b[31]=f):f=b[31],b[32]!==R||b[33]!==P?(p=!!P&&(0,h.jsx)(fH,{onClear:R}),b[32]=R,b[33]=P,b[34]=p):p=b[34],b[35]!==f||b[36]!==p||b[37]!==s?(m=(0,h.jsx)("div",{className:"typeahead",children:(0,h.jsx)("div",{className:"o-search-input",children:(0,h.jsxs)("div",{className:"o-search-input__input",children:[s,f,p]})})}),b[35]=f,b[36]=p,b[37]=s,b[38]=m):m=b[38],m};function pg(e){return(0,h.jsxs)("li",{className:"typeahead__option typeahead__option--multi",children:[(0,h.jsx)(fD,rO({},e.top),e.value),e.isParent?null:(0,h.jsx)("div",{className:"typeahead__option-sub",children:e.value?(0,h.jsx)(fD,rO({},e),e.value):null})]})}pv.propTypes={fieldName:il().string.isRequired};let pb=e=>{let t,n,r,a,o,s,i,l=(0,v.c)(25),{desc:c,fieldName:u}=e,{data:d,error:f}=l7(),p=rC(lD);l[0]!==u||l[1]!==p?(t=p[u]||[],l[0]=u,l[1]=p,l[2]=t):t=l[2];let m=t,g="sub_".concat(u,".raw");l[3]!==d||l[4]!==f||l[5]!==u?(n=f?[]:(null==d?void 0:d[u])||[],l[3]=d,l[4]=f,l[5]=u,l[6]=n):n=l[6];let b=n;l[7]!==b||l[8]!==u||l[9]!==m?(r=((e,t,n)=>{var r=null!=t?t:[];let a=iR(e,r,n);if(r.length>0)for(let e of r)e.includes("•")?(iA(a,e.split("•")[0],n),iM(a,e,n)):iA(a,e,n);return a})(b,m,u),l[7]=b,l[8]=u,l[9]=m,l[10]=r):r=l[10];let y=r;l[11]!==g?(a=(e,t)=>{if(Object.hasOwn(e,g)){let n=e[g];t.subitems=n?n.buckets:[]}else t.subitems=[];return t},l[11]=g,l[12]=a):a=l[12];let w=a,x=("string"!=typeof u||0===u.length?u:u.charAt(0).toUpperCase()+u.slice(1))+" and sub-"+u,S="aggregation "+u;return l[13]!==u?(o=(0,h.jsx)(pv,{fieldName:u}),l[13]=u,l[14]=o):o=l[14],l[15]!==w||l[16]!==u||l[17]!==y?(s=(0,h.jsx)(f6,{fieldName:u,listComponent:pc,options:y,perBucketProps:w}),l[15]=w,l[16]=u,l[17]=y,l[18]=s):s=l[18],l[19]!==c||l[20]!==x||l[21]!==S||l[22]!==o||l[23]!==s?(i=(0,h.jsxs)(lz,{title:x,desc:c,className:S,children:[o,s]}),l[19]=c,l[20]=x,l[21]=S,l[22]=o,l[23]=s,l[24]=i):i=l[24],i};pb.propTypes={desc:il().string.isRequired,fieldName:il().string.isRequired};let py=()=>{let e,t,n=(0,v.c)(4),r=rC(pn);return n[0]!==r?(e=!!r&&(0,h.jsxs)("section",{className:"filter-panel o-well",children:[(0,h.jsx)(tP,{type:"3",children:"Filter results by"}),(0,h.jsx)("hr",{}),(0,h.jsx)(f0,{}),(0,h.jsx)("hr",{}),(0,h.jsx)(pb,{desc:"The type of product and sub-product the consumer identified in the complaint.",fieldName:"product"}),(0,h.jsx)("hr",{}),(0,h.jsx)(pb,{desc:"The issue and sub-issue the consumer identified in the complaint.",fieldName:"issue"}),(0,h.jsx)("hr",{}),(0,h.jsx)(f5,{}),(0,h.jsx)("hr",{}),(0,h.jsx)(pe,{}),(0,h.jsx)("hr",{}),(0,h.jsx)(fq,{}),(0,h.jsx)("hr",{}),(0,h.jsx)(f9,{title:"Did the company provide a timely response?",desc:"",fieldName:"timely"}),(0,h.jsx)("hr",{}),(0,h.jsx)(f9,{title:"Company response to consumer",desc:"The company's response to the consumer's complaint.",fieldName:"company_response"}),(0,h.jsx)("hr",{}),(0,h.jsx)(f9,{title:"Company public response",desc:"The company's optional public-facing response to a consumer's complaint.",fieldName:"company_public_response"}),(0,h.jsx)("hr",{}),(0,h.jsx)(fG,{}),(0,h.jsx)("hr",{}),(0,h.jsx)(f9,{title:"How did the consumer submit the complaint to the CFPB?",fieldName:"submitted_via",desc:""}),(0,h.jsx)("hr",{}),(0,h.jsx)(f9,{title:"Tags",desc:"Data that supports easier searching and sorting of complaints submitted by or on behalf of consumers.",fieldName:"tags"})]}),n[0]=r,n[1]=e):e=n[1],n[2]!==e?(t=(0,h.jsx)(h.Fragment,{children:e}),n[2]=e,n[3]=t):t=n[3],t},pw=()=>{let e,t=(0,v.c)(2),n=rC(po)>=901;return t[0]!==n?(e=n?(0,h.jsx)("aside",{className:"content__sidebar",children:(0,h.jsx)(py,{})}):null,t[0]=n,t[1]=e):e=t[1],e},px=e=>{let t,n,r,a,o=(0,v.c)(8),{text:s,closeFn:i}=e;return o[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,h.jsx)(N,{name:"warning-round",isPresentational:!0}),o[0]=t):t=o[0],o[1]!==s?(n=(0,h.jsx)("div",{className:"m-notification__content",children:(0,h.jsx)("div",{className:"m-notification__message",children:s})}),o[1]=s,o[2]=n):n=o[2],o[3]!==i?(r=i?(0,h.jsx)("button",{onClick:i,onKeyDown:i,"aria-label":"Dismiss",className:"warning-notification__close",children:(0,h.jsx)(N,{name:"error",isPresentational:!0})}):"",o[3]=i,o[4]=r):r=o[4],o[5]!==n||o[6]!==r?(a=(0,h.jsxs)("div",{role:"alert",className:"warning-notification m-notification m-notification--visible m-notification--warning",children:[t,n,r]}),o[5]=n,o[6]=r,o[7]=a):a=o[7],a};px.propTypes={text:il().string.isRequired,closeFn:il().func};let pS=()=>{let e,t=(0,v.c)(1),{data:n}=l7();return iN([null==n?void 0:n.hasDataIssue,null==n?void 0:n.isDataStale])?(t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,h.jsx)("div",{children:(0,h.jsx)(px,{text:"We’re currently experiencing technical issues that have delayed the refresh of data on the Consumer Complaint Database. We expect to refresh the data in the next few days."})}),t[0]=e):e=t[0],e):null},pk=()=>{let e,t,n,r,a,o,s=(0,v.c)(15),i=rE(),{data:l,error:c}=l7(),u=c?0:(null==l?void 0:l.doc_count)||0,d=c?0:(null==l?void 0:l.total)||0;s[0]!==i?(e=()=>{iH("Print","Print"),i(i9())},s[0]=i,s[1]=e):e=s[1];let f=e;return s[2]!==u||s[3]!==d?(t=d===u?(0,h.jsx)(tP,{type:"3",children:"Showing "+u.toLocaleString()+" total complaints"}):(0,h.jsx)(tP,{type:"3",children:"Showing "+d.toLocaleString()+" matches out of "+u.toLocaleString()+" total complaints"}),s[2]=u,s[3]=d,s[4]=t):t=s[4],s[5]!==i||s[6]!==c||s[7]!==f?(n=c?null:(0,h.jsxs)("div",{className:"action-bar__actions",children:[(0,h.jsx)(tw,{label:"Download data",isLink:!0,iconRight:"download",className:"export-btn","data-gtm_ignore":"true",onClick:()=>{iH("Export","User Opens Export Modal"),i(i2(sq))}}),(0,h.jsx)(tw,{label:"Print page",isLink:!0,iconRight:"print",className:"print-preview",onClick:f})]}),s[5]=i,s[6]=c,s[7]=f,s[8]=n):n=s[8],s[9]!==t||s[10]!==n?(r=(0,h.jsxs)("div",{className:"action-bar",id:"search-summary",children:[t,n]}),s[9]=t,s[10]=n,s[11]=r):r=s[11],s[12]===Symbol.for("react.memo_cache_sentinel")?(a=(0,h.jsx)(pS,{}),s[12]=a):a=s[12],s[13]!==r?(o=(0,h.jsxs)(h.Fragment,{children:[r,a]}),s[13]=r,s[14]=o):o=s[14],o},p_=e=>{let t,n,r,a,o=(0,v.c)(9),{title:s,children:i}=e;if(o[0]!==s?(t=(0,h.jsx)(tP,{type:"4",children:s}),o[0]=s,o[1]=t):t=o[1],o[2]!==i)n="string"==typeof i?(0,h.jsx)("span",{dangerouslySetInnerHTML:{__html:i}}):i,o[2]=i,o[3]=n;else n=o[3];return o[4]!==n?(r=(0,h.jsx)("div",{className:"complaint-card__field-value",children:n}),o[4]=n,o[5]=r):r=o[5],o[6]!==t||o[7]!==r?(a=(0,h.jsxs)("div",{className:"complaint-card__field",children:[t,r]}),o[6]=t,o[7]=r,o[8]=a):a=o[8],a},pE=e=>{let t,n,r,a,o,s,i,l,c,u,d,f,p,m,g,b,y,w,x,S,k,_,E,j,C,P,N,O,T,A=(0,v.c)(65),{row:M}=e;if(A[0]!==M.complaint_id){r=M.complaint_id.replaceAll(/(<em>)?(.*?)(<\/em>)?/gi,"$2");let e="detail/"+M.complaint_id.replaceAll(/(<em>)?(.*?)(<\/em>)?/gi,"$2");o="complaint-card",p="complaint-card__body",f="complaint-card__column complaint-card__column--primary",d="complaint-card__id",n=tP,u="3",t=L,i="complaint-card__detail-link",l=!0,c=e,a="Complaint ",s=ij(r),A[0]=M.complaint_id,A[1]=t,A[2]=n,A[3]=r,A[4]=a,A[5]=o,A[6]=s,A[7]=i,A[8]=l,A[9]=c,A[10]=u,A[11]=d,A[12]=f,A[13]=p}else t=A[1],n=A[2],r=A[3],a=A[4],o=A[5],s=A[6],i=A[7],l=A[8],c=A[9],u=A[10],d=A[11],f=A[12],p=A[13];let R=a+s;return A[14]!==t||A[15]!==r||A[16]!==R||A[17]!==i||A[18]!==l||A[19]!==c?(m=(0,h.jsx)(t,{className:i,isJump:l,to:c,"aria-label":R,label:r}),A[14]=t,A[15]=r,A[16]=R,A[17]=i,A[18]=l,A[19]=c,A[20]=m):m=A[20],A[21]!==n||A[22]!==m||A[23]!==u?(g=(0,h.jsx)(n,{type:u,children:m}),A[21]=n,A[22]=m,A[23]=u,A[24]=g):g=A[24],A[25]!==g||A[26]!==d?(b=(0,h.jsx)("div",{className:d,children:g}),A[25]=g,A[26]=d,A[27]=b):b=A[27],A[28]!==M.company?(y=(0,h.jsx)(p_,{title:"Company name",children:M.company}),A[28]=M.company,A[29]=y):y=A[29],A[30]!==M.company_response?(w=(0,h.jsx)(p_,{title:"Company response to consumer",children:M.company_response}),A[30]=M.company_response,A[31]=w):w=A[31],A[32]!==M.timely?(x=(0,h.jsx)(p_,{title:"Timely response?",children:M.timely}),A[32]=M.timely,A[33]=x):x=A[33],A[34]!==b||A[35]!==y||A[36]!==w||A[37]!==x||A[38]!==f?(S=(0,h.jsxs)("div",{className:f,children:[b,y,w,x]}),A[34]=b,A[35]=y,A[36]=w,A[37]=x,A[38]=f,A[39]=S):S=A[39],A[40]!==M.date_received?(k=sI(M.date_received),A[40]=M.date_received,A[41]=k):k=A[41],A[42]!==k?(_=(0,h.jsx)(p_,{title:"Date received",children:k}),A[42]=k,A[43]=_):_=A[43],A[44]!==M.product?(E=(0,h.jsx)(p_,{title:"Product",children:M.product}),A[44]=M.product,A[45]=E):E=A[45],A[46]!==M.sub_product?(j=M.sub_product?(0,h.jsx)(p_,{title:"Sub-product",children:M.sub_product}):null,A[46]=M.sub_product,A[47]=j):j=A[47],A[48]!==M.issue?(C=(0,h.jsx)(p_,{title:"Issue",children:M.issue}),A[48]=M.issue,A[49]=C):C=A[49],A[50]!==M.sub_issue?(P=M.sub_issue?(0,h.jsx)(p_,{title:"Sub-issue",children:M.sub_issue}):null,A[50]=M.sub_issue,A[51]=P):P=A[51],A[52]!==_||A[53]!==E||A[54]!==j||A[55]!==C||A[56]!==P?(N=(0,h.jsxs)("div",{className:"complaint-card__column complaint-card__column--secondary",children:[_,E,j,C,P]}),A[52]=_,A[53]=E,A[54]=j,A[55]=C,A[56]=P,A[57]=N):N=A[57],A[58]!==S||A[59]!==N||A[60]!==p?(O=(0,h.jsxs)("div",{className:p,children:[S,N]}),A[58]=S,A[59]=N,A[60]=p,A[61]=O):O=A[61],A[62]!==o||A[63]!==O?(T=(0,h.jsx)("article",{className:o,children:O}),A[62]=o,A[63]=O,A[64]=T):T=A[64],T},pj=e=>{let t,n,r=(0,v.c)(3),{text:a}=e;return r[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,h.jsx)(N,{name:"error-round",isPresentational:!0}),r[0]=t):t=r[0],r[1]!==a?(n=(0,h.jsxs)("div",{role:"alert",className:"error-notification m-notification m-notification--visible m-notification--error",children:[t,(0,h.jsx)("div",{className:"m-notification__content",children:(0,h.jsx)("div",{className:"m-notification__message",children:a})})]}),r[1]=a,r[2]=n):n=r[2],n};pj.propTypes={text:il().string.isRequired};let pC=()=>{let e,t,n,r,a,o=(0,v.c)(12),s=rE(),i=rC(pn),l="filter-panel-toggle"+(i?" filter-panel-toggle--open":"");o[0]!==s?(e=()=>{s(i4())},o[0]=s,o[1]=e):e=o[1],o[2]===Symbol.for("react.memo_cache_sentinel")?(t=(0,h.jsx)(tP,{type:"3",className:"filter-panel-toggle__label",children:"Filter results"}),o[2]=t):t=o[2];let c=i?"up":"down";return o[3]!==c?(n=(0,h.jsx)("span",{className:"filter-panel-toggle__cue","aria-hidden":"true",children:(0,h.jsx)(N,{name:c,isPresentational:!0})}),o[3]=c,o[4]=n):n=o[4],o[5]!==i||o[6]!==e||o[7]!==n?(r=(0,h.jsxs)("button",{type:"button",className:"filter-panel-toggle__header","aria-expanded":i,onClick:e,children:[t,n]}),o[5]=i,o[6]=e,o[7]=n,o[8]=r):r=o[8],o[9]!==l||o[10]!==r?(a=(0,h.jsx)("section",{className:l,children:r}),o[9]=l,o[10]=r,o[11]=a):a=o[11],a},pP=()=>{let e,t,n,r=(0,v.c)(8),a=l3(lD),o=l3(lq),s=l3(i_);if(r[0]!==a||r[1]!==o){let t;t=Object.keys(a),e=Object.assign({no_aggs:!0},lV(o),l$(a,t)),r[0]=a,r[1]=o,r[2]=e}else e=r[2];let i=e,l=l3(lY),c=""===s,u=!l;r[3]!==c||r[4]!==u?(t=iN([c,u]),r[3]=c,r[4]=u,r[5]=t):t=r[5];let d=t;return r[6]!==d?(n={skip:d},r[6]=d,r[7]=n):n=r[7],ia(i,n)},pN=()=>{let e,t,n,r=(0,v.c)(13),a=rE(),o=rC(lJ),{data:s,error:i}=pP(),l=null==s?void 0:s.hits,c=(null==s?void 0:s.totalPages)||0,u=null==s?void 0:s.breakPoints;r[0]!==u||r[1]!==a?(e=()=>{a(lj(u))},r[0]=u,r[1]=a,r[2]=e):e=r[2];let d=e;r[3]!==u||r[4]!==a?(t=()=>{a(lC(u))},r[3]=u,r[4]=a,r[5]=t):t=r[5];let f=t;return r[6]!==i||r[7]!==l||r[8]!==d||r[9]!==o||r[10]!==f||r[11]!==c?(n=!i&&l&&l.length>0?(0,h.jsxs)("nav",{className:"m-pagination",role:"navigation","aria-label":"Pagination",children:[(0,h.jsx)(tw,{label:"Previous",iconLeft:"left",className:"a-btn m-pagination__btn-prev",onClick:()=>f(),disabled:o<=1}),(0,h.jsx)(tw,{label:"Next",iconRight:"right",className:"a-btn m-pagination__btn-next",onClick:()=>d(),disabled:o>=c}),(0,h.jsx)("div",{className:"m-pagination__form",children:(0,h.jsxs)("label",{className:"m-pagination__label",children:["Page ",o]})})]}):null,r[6]=i,r[7]=l,r[8]=d,r[9]=o,r[10]=f,r[11]=c,r[12]=n):n=r[12],n},pO=e=>{let t,n,r,a,o=(0,v.c)(14),{id:s,handleChange:i,label:l,value:c,values:u}=e,d="select-"+s;o[0]!==u?(t=(e=>{if(Array.isArray(e))return Array.isArray(e)&&e.length>0&&"object"==typeof e[0]&&null!==e[0]&&Object.prototype.hasOwnProperty.call(e[0],"name")?e.filter(e=>!e.disabled).map(e=>{var t;return{label:e.name,value:String(null!=(t=e.value)?t:e.name)}}):e.map(e=>({label:String(e),value:String(e)}));return Object.entries(e).map(e=>{let[t,n]=e;return{label:n,value:t}})})(u),o[0]=u,o[1]=t):t=o[1];let f=t,p=String(null!=c?c:"");o[2]!==p||o[3]!==i?(n=e=>{let t=Array.isArray(e)?e[0]:e;(null==t?void 0:t.value)&&t.value!==p&&i({target:{value:t.value}})},o[2]=p,o[3]=i,o[4]=n):n=o[4];let m=n;return o[5]!==p||o[6]!==d||o[7]!==l||o[8]!==m||o[9]!==f?(r=(0,h.jsx)(tR,{id:d,label:l,options:f,value:p,onChange:m}),o[5]=p,o[6]=d,o[7]=l,o[8]=m,o[9]=f,o[10]=r):r=o[10],o[11]!==d||o[12]!==r?(a=(0,h.jsx)("section",{"data-tour":d,className:"refine-select",children:r}),o[11]=d,o[12]=r,o[13]=a):a=o[13],a},pT="NO_RESULTS",pA=()=>(0,h.jsx)(pj,{text:"There was a problem executing your search"}),pM=()=>(0,h.jsx)(tP,{type:"2",children:"No results were found for your search"}),pR=()=>{let e,t,n,r,a,o,s,i,l,c,u,d,f=(0,v.c)(44),p=rE(),{data:m,isLoading:g,isFetching:b,error:y}=pP(),w=rC(l0),x=rC(l1),S=901>rC(po);f[0]!==(null==m?void 0:m.hits)?(e=(null==m?void 0:m.hits)||[],f[0]=null==m?void 0:m.hits,f[1]=e):e=f[1];let k=e;f[2]!==p?(t=e=>{let t=e.target.value;iH("Dropdown",t+" results"),p(lO(t))},f[2]=p,f[3]=t):t=f[3];let _=t;f[4]!==p?(n=e=>{let{value:t}=e.target;iH("Dropdown",sX[t]),p(lT(t))},f[4]=p,f[5]=n):n=f[5];let E=n;f[6]!==y||f[7]!==b||f[8]!==g||f[9]!==k?(r=()=>y?"ERROR":g||b||0===k.length?pT:k.length>0?"RESULTS":pT,f[6]=y,f[7]=b,f[8]=g,f[9]=k,f[10]=r):r=f[10];let j=r;f[11]!==k?(a=()=>(0,h.jsx)("div",{className:"cards-panel",children:k.map(pz)}),f[11]=k,f[12]=a):a=f[12];let C=a;if(f[13]!==j||f[14]!==C||f[15]!==S||f[16]!==_||f[17]!==E||f[18]!==w||f[19]!==x){let e,t,n=j();o="list-panel",f[25]===Symbol.for("react.memo_cache_sentinel")?(s=(0,h.jsx)(pC,{}),f[25]=s):s=f[25],f[26]!==S?(i=!!S&&(0,h.jsx)(py,{}),f[26]=S,f[27]=i):i=f[27],f[28]!==_||f[29]!==w?(e=(0,h.jsx)(pO,{label:"Show per page",values:sJ,id:"size",value:w,handleChange:_}),f[28]=_,f[29]=w,f[30]=e):e=f[30],f[31]!==E||f[32]!==x?(t=(0,h.jsx)(pO,{label:"Sort by",values:sX,id:"sort",value:x,handleChange:E}),f[31]=E,f[32]=x,f[33]=t):t=f[33],f[34]!==e||f[35]!==t?(l=(0,h.jsxs)("div",{className:"refine-bar",children:[e,t]}),f[34]=e,f[35]=t,f[36]=l):l=f[36],c=({ERROR:pA,NO_RESULTS:pM,RESULTS:C})[n](),f[13]=j,f[14]=C,f[15]=S,f[16]=_,f[17]=E,f[18]=w,f[19]=x,f[20]=o,f[21]=s,f[22]=i,f[23]=l,f[24]=c}else o=f[20],s=f[21],i=f[22],l=f[23],c=f[24];return f[37]===Symbol.for("react.memo_cache_sentinel")?(u=(0,h.jsx)(pN,{}),f[37]=u):u=f[37],f[38]!==o||f[39]!==s||f[40]!==i||f[41]!==l||f[42]!==c?(d=(0,h.jsxs)("section",{className:o,children:[s,i,l,c,u]}),f[38]=o,f[39]=s,f[40]=i,f[41]=l,f[42]=c,f[43]=d):d=f[43],d};function pz(e){return(0,h.jsx)(pE,{row:e},e.complaint_id)}let pL=()=>{let e,t=(0,v.c)(6),{data:n,error:r}=l7(),a=rC(lQ),o=rC(lK),s=iz(a)+" - "+iz(o),i=rC(lZ),l=rC(pr),c=r?0:(null==n?void 0:n.doc_count)||0,u=r?0:(null==n?void 0:n.total)||0;return t[0]!==s||t[1]!==c||t[2]!==l||t[3]!==i||t[4]!==u?(e=l?(0,h.jsxs)("section",{className:"print-info",children:[(0,h.jsxs)("p",{children:[(0,h.jsx)("span",{children:"Dates:"})," ",s]}),!!i&&(0,h.jsxs)("p",{children:[(0,h.jsx)("span",{children:"Search Term:"})," ",i]}),(0,h.jsx)("div",{children:c===u?(0,h.jsxs)("div",{children:["Showing ",(0,h.jsx)("span",{children:u.toLocaleString()})," complaints"]}):(0,h.jsxs)("div",{children:["Showing ",(0,h.jsx)("span",{children:u.toLocaleString()})," out of",(0,h.jsxs)("span",{children:[" ",c.toLocaleString()," "]})," total complaints"," "]})})]}):null,t[0]=s,t[1]=c,t[2]=l,t[3]=i,t[4]=u,t[5]=e):e=t[5],e},pI=()=>{let e,t=(0,v.c)(2),n=rC(pr);return t[0]!==n?(e=n?(0,h.jsx)("section",{className:"print-info-footer",children:(0,h.jsxs)("p",{children:[(0,h.jsx)("span",{children:"URL:"})," ",location.href]})}):null,t[0]=n,t[1]=e):e=t[1],e},pD=()=>{let e,t=(0,v.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,h.jsxs)("div",{className:"content__main",children:[(0,h.jsx)(pL,{}),(0,h.jsx)(pk,{}),(0,h.jsx)(pR,{}),(0,h.jsx)(pI,{})]}),t[0]=e):e=t[0],e},pH="filtered",pF="full",pB=e=>{let t,n,r,a=(0,v.c)(4),{onClose:o}=e;return a[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,h.jsx)("div",{className:"ccdb-modal__header",children:(0,h.jsx)(tP,{type:"3",children:"Things you should know before you use this database"})}),a[0]=t):t=a[0],a[1]===Symbol.for("react.memo_cache_sentinel")?(n=(0,h.jsxs)("div",{className:"ccdb-modal__body",children:[(0,h.jsx)(tM,{children:"This database only includes complaints the CFPB sent to companies and complaints are only published after the company responds, confirming a commercial relationship or after 15 days, whichever comes first. This database does not include complaints referred to other regulators, such as complaints about depository institutions with less than $10 billion in assets."}),(0,h.jsx)(tM,{children:"This database is not a statistical sample of consumers’ experiences in the marketplace. Complaints are not necessarily representative of all consumers’ experiences with a financial product or company. Company-specific information should be considered in the context of that company’s size and/or market share."}),(0,h.jsx)(tM,{children:"One consumer’s experience is not necessarily representative of all consumers’ experiences"}),(0,h.jsx)(tM,{children:"This database generally updates daily."})]}),a[1]=n):n=a[1],a[2]!==o?(r=(0,h.jsxs)("section",{className:"more-about-modal",children:[t,n,(0,h.jsx)("div",{className:"ccdb-modal__footer",children:(0,h.jsx)(tw,{label:"Close",onClick:o})})]}),a[2]=o,a[3]=r):r=a[3],r};pB.propTypes={onClose:il().func.isRequired};var p$=a(567),pV=a.n(p$);let pq={[sq]:()=>{var e;let t,n,r,a,o,s,i,l,c,u,d,f,p,m,b,y,w,x,S,k,_,E,j,C,P,N,O,T,M,R,z,L=(0,v.c)(66),I=rE(),D=rC(lq),H=rC(lD),{data:F}=l7(),B=(null==F?void 0:F.total)||0,$=(null==F?void 0:F.doc_count)||0;if(L[0]!==H||L[1]!==D){let n,r,a;n=Object.values(H).some(e=>Array.isArray(e)?e.length>0:!!e),r=!!(null==(e=D.searchText)?void 0:e.trim()),a=!!(D.date_received_min&&D.date_received_max)&&(!sM()(D.date_received_min).isSame(sF,"day")||!sM()(D.date_received_max).isSame(D.dateLastIndexed,"day")),t=n||r||a,L[0]=H,L[1]=D,L[2]=t}else t=L[2];let V=t,q=B>1e5,U=!V||q,[W,Y]=(0,g.useState)(V&&!q?pH:pF),[K,Q]=(0,g.useState)(!1),G=U&&W===pH?pF:W;if(L[3]!==G||L[4]!==H||L[5]!==D||L[6]!==B){let e,t=rO({},H,D);n=iD(G===pF?lM():(e=iq(rO({},t),{size:B,format:"csv",no_aggs:!0}),delete e.from,delete e.searchAfter,s0+ly(e))),L[3]=G,L[4]=H,L[5]=D,L[6]=B,L[7]=n}else n=L[7];let J=n;L[8]===Symbol.for("react.memo_cache_sentinel")?(r=iD(location.href),L[8]=r):r=L[8];let X=r,Z=V?q?"Filtered option is unavailable as filtered results exceed download limit. Refine your search terms and filters to reduce the number of complaints.":null:"Filtered option is unavailable. You must add search terms or apply filters to download filtered results.";L[9]!==I||L[10]!==G||L[11]!==J?(a=()=>{G===pF?iH("Export All Data","csv"):iH("Export Some Data","filtered"),location.assign(J),I(i2(sU))},L[9]=I,L[10]=G,L[11]=J,L[12]=a):a=L[12];let ee=a;L[13]===Symbol.for("react.memo_cache_sentinel")?(o=e=>{Q(!1),Y(e)},L[13]=o):o=L[13];let et=o;L[14]===Symbol.for("react.memo_cache_sentinel")?(s=e=>{let t=iy("export-uri-input");t.select(),t.setSelectionRange(0,99999),navigator.clipboard.writeText(t.value),e.target.focus(),Q(!0)},L[14]=s):s=L[14];let en=s;L[15]===Symbol.for("react.memo_cache_sentinel")?(i=(0,h.jsx)(tP,{type:"3",children:"Download complaint data"}),L[15]=i):i=L[15],L[16]!==I?(l=(0,h.jsxs)("div",{className:"ccdb-modal__header",children:[i,(0,h.jsx)(tw,{label:"Close",isLink:!0,"data-gtm_ignore":"true",onClick:()=>{I(i1())}})]}),L[16]=I,L[17]=l):l=L[17],L[18]===Symbol.for("react.memo_cache_sentinel")?(c=(0,h.jsx)("div",{className:"export-modal__instructions",children:"Download your filtered results (CSV) or download all complaint data (CSV ZIP). Filtered results downloads are limited to 100,000 complaints."}),L[18]=c):c=L[18],L[19]===Symbol.for("react.memo_cache_sentinel")?(u=(0,h.jsx)(tP,{type:"4",className:"export-modal__group-title",children:"Select the data you would like to download"}),L[19]=u):u=L[19];let er=G===pH;L[20]===Symbol.for("react.memo_cache_sentinel")?(d=()=>{et(pH)},L[20]=d):d=L[20],L[21]!==U||L[22]!==er?(f=(0,h.jsx)("input",{checked:er,disabled:U,className:"a-radio",id:"dataset-filtered",onChange:d,type:"radio",value:"filtered"}),L[21]=U,L[22]=er,L[23]=f):f=L[23];let ea="Filtered results ("+B.toLocaleString()+" complaints)";L[24]===Symbol.for("react.memo_cache_sentinel")?(p=(0,h.jsx)("br",{}),L[24]=p):p=L[24],L[25]!==ea?(m=(0,h.jsxs)("label",{className:"a-label",htmlFor:"dataset-filtered",children:[ea,p,"(limited to 100,000 complaints or fewer)"]}),L[25]=ea,L[26]=m):m=L[26],L[27]!==f||L[28]!==m?(b=(0,h.jsxs)("div",{className:"m-form-field m-form-field--radio m-form-field--lg-target",children:[f,m]}),L[27]=f,L[28]=m,L[29]=b):b=L[29];let eo=G===pF;L[30]===Symbol.for("react.memo_cache_sentinel")?(y=()=>{et(pF)},L[30]=y):y=L[30],L[31]!==eo?(w=(0,h.jsx)("input",{checked:eo,className:"a-radio",id:"dataset-full",onChange:y,type:"radio",value:"full"}),L[31]=eo,L[32]=w):w=L[32];let es="All complaint data ("+$.toLocaleString()+" complaints)";L[33]===Symbol.for("react.memo_cache_sentinel")?(x=(0,h.jsx)("br",{}),L[33]=x):x=L[33],L[34]!==es?(S=(0,h.jsxs)("label",{className:"a-label",htmlFor:"dataset-full",children:[es,x,"(large, zipped CSV file of every complaint)"]}),L[34]=es,L[35]=S):S=L[35],L[36]!==w||L[37]!==S?(k=(0,h.jsxs)("div",{className:"m-form-field m-form-field--radio m-form-field--lg-target",children:[w,S]}),L[36]=w,L[37]=S,L[38]=k):k=L[38],L[39]!==b||L[40]!==k?(_=(0,h.jsxs)("div",{children:[b,k]}),L[39]=b,L[40]=k,L[41]=_):_=L[41],L[42]!==Z?(E=Z?(0,h.jsx)("div",{className:"export-modal__filter-alert",children:(0,h.jsx)(A,{message:Z,status:"error"})}):null,L[42]=Z,L[43]=E):E=L[43],L[44]!==_||L[45]!==E?(j=(0,h.jsxs)("div",{className:"export-modal__group",children:[u,_,E]}),L[44]=_,L[45]=E,L[46]=j):j=L[46],L[47]===Symbol.for("react.memo_cache_sentinel")?(C=(0,h.jsx)(tP,{type:"4",children:"Save a link to your filtered results"}),L[47]=C):C=L[47],L[48]===Symbol.for("react.memo_cache_sentinel")?(P=(0,h.jsx)("input",{className:"export-modal__url-input a-text-input",id:"export-uri-input",type:"text",value:X,readOnly:!0}),L[48]=P):P=L[48];let ei=K?"Link copied":"Copy link",el=K?"approved":"link";return L[49]!==ei||L[50]!==el?(N=(0,h.jsxs)("div",{className:"export-modal__url",children:[C,(0,h.jsxs)("div",{className:"export-modal__url-control",children:[P,(0,h.jsx)(tw,{label:ei,iconRight:el,appearance:"secondary",disabled:!X,onClick:en})]})]}),L[49]=ei,L[50]=el,L[51]=N):N=L[51],L[52]!==j||L[53]!==N?(O=(0,h.jsxs)("div",{className:"ccdb-modal__body",children:[c,j,N]}),L[52]=j,L[53]=N,L[54]=O):O=L[54],L[55]!==ee?(T=(0,h.jsx)(tw,{label:"Download data",iconRight:"download","data-gtm_ignore":"true",onClick:()=>{ee()}}),L[55]=ee,L[56]=T):T=L[56],L[57]!==I?(M=(0,h.jsx)(tw,{label:"Cancel",isLink:!0,appearance:"warning","data-gtm_ignore":"true",onClick:()=>{I(i1())}}),L[57]=I,L[58]=M):M=L[58],L[59]!==T||L[60]!==M?(R=(0,h.jsxs)("div",{className:"ccdb-modal__footer",children:[T,M]}),L[59]=T,L[60]=M,L[61]=R):R=L[61],L[62]!==O||L[63]!==R||L[64]!==l?(z=(0,h.jsxs)("section",{className:"export-modal",children:[l,O,R]}),L[62]=O,L[63]=R,L[64]=l,L[65]=z):z=L[65],z},[sU]:()=>{let e,t,n,r,a=(0,v.c)(6),o=rE();return a[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,h.jsx)(tP,{type:"3",children:"Download complaint data"}),a[0]=e):e=a[0],a[1]!==o?(t=(0,h.jsxs)("div",{className:"ccdb-modal__header",children:[e,(0,h.jsx)(tw,{label:"Close",isLink:!0,"data-gtm_ignore":"true",onClick:()=>{o(i1())}})]}),a[1]=o,a[2]=t):t=a[2],a[3]===Symbol.for("react.memo_cache_sentinel")?(n=(0,h.jsx)("div",{className:"ccdb-modal__body",children:(0,h.jsx)("div",{className:"export-modal__instructions",children:"It may take a few minutes for your file to download. You can keep working while it processes."})}),a[3]=n):n=a[3],a[4]!==t?(r=(0,h.jsxs)("section",{className:"export-modal",children:[t,n]}),a[4]=t,a[5]=r):r=a[5],r},[sW]:pB},pU=()=>{let e,t,n,r=(0,v.c)(5),a=rC(ps),o=rE();r[0]===Symbol.for("react.memo_cache_sentinel")?(e=(()=>{let e=iy(iv());if(e)return e;let t=ig();return t instanceof ShadowRoot?t.host||null:t instanceof HTMLElement?t:null})(),r[0]=e):e=r[0];let s=e;r[1]===Symbol.for("react.memo_cache_sentinel")?(t=ib(),r[1]=t):t=r[1];let i=t,l=pq[a];return r[2]!==l||r[3]!==o?(n=l?(0,h.jsx)(pV(),iq(rO({},s?{appElement:s}:{}),{isOpen:!0,contentLabel:"CFPB Modal Dialog",className:"ccdb-modal",overlayClassName:"ccdb-modal__overlay",parentSelector:()=>i,onRequestClose:()=>{o(i1())},children:(0,h.jsx)(l,{onClose:()=>{o(i1())}})})):null,r[2]=l,r[3]=o,r[4]=n):n=r[4],n},pW=".ccdb-content",pY="".concat("".concat(pW," aside.content__sidebar")," .filter-panel"),pK={CONTENT:"".concat(pW,".content"),HERO_LINKS:"".concat(pW," header.content__hero .m-list--horizontal"),FILTER_PANEL:pY,DATE_FILTER:"".concat(pY," .date-filter"),PRODUCT_AGGREGATION:"".concat(pY," .aggregation.product"),FILTER_SHOW_HIDE:"".concat(pY," .aggregation button"),SEARCH_BAR:"".concat(pW," .search-bar"),SEARCH_SUMMARY:"".concat(pW," #search-summary"),EXPORT_BTN:"".concat(pW," .action-bar__actions .export-btn"),PRINT_BTN:"".concat(pW," .action-bar__actions .print-preview"),SELECT_SIZE:"".concat(pW,' [data-tour="select-size"]'),SELECT_SORT:"".concat(pW,' [data-tour="select-sort"]'),CARDS_PANEL:"".concat(pW," .cards-panel"),TO_DETAIL:"".concat(pW," .cards-panel .complaint-card__detail-link"),MOBILE_FILTER_TOGGLE:"".concat(pW," .filter-panel-toggle__header")},pQ=(e,t)=>({selector:e,label:t}),pG={INDEX:pQ(pK.CONTENT,"Index"),HELP_LINKS:pQ(pK.HERO_LINKS,"Help Links"),FILTERS:pQ(pK.FILTER_PANEL,"Filters"),DATE_RECEIVED:pQ(pK.DATE_FILTER,"Date received"),PRODUCT_ISSUE:pQ(pK.PRODUCT_AGGREGATION,"Product/Issue"),SHOW_HIDE:pQ(pK.FILTER_SHOW_HIDE,"Show/Hide"),SEARCH_BAR:pQ(pK.SEARCH_BAR,"Search Bar"),SEARCH_SUMMARY:pQ(pK.SEARCH_SUMMARY,"Search Summary"),EXPORT_DATA:pQ(pK.EXPORT_BTN,"Download Data"),PRINT_PAGE:pQ(pK.PRINT_BTN,"Print Page"),SELECT_SIZE:pQ(pK.SELECT_SIZE,"Show Number"),SELECT_SORT:pQ(pK.SELECT_SORT,"Sort Results"),RESULTS:pQ(pK.CARDS_PANEL,"Results"),COMPLAINT_DETAIL:pQ(pK.TO_DETAIL,"View Detailed Complaints")},pJ={STEP_1:pG.INDEX,STEP_2:pG.HELP_LINKS,STEP_3:pG.FILTERS,STEP_4:pG.DATE_RECEIVED,STEP_5:pG.PRODUCT_ISSUE,STEP_6:pG.SHOW_HIDE,STEP_7:pG.SEARCH_BAR,STEP_8:pG.SEARCH_SUMMARY,STEP_9:pG.EXPORT_DATA,STEP_10:pG.PRINT_PAGE,STEP_11:pG.SELECT_SIZE,STEP_12:pG.SELECT_SORT,STEP_13:pG.RESULTS,STEP_14:pG.COMPLAINT_DETAIL},pX=(e,t)=>'<li><button class="a-btn a-btn--link" onclick="(function(){var t=window.__ccdbDom&&window.__ccdbDom.querySelectorAll(\'.introjs-bullets li a\')['.concat(e+1,'];t&&t.click();})()">')+t[1].label+"</button></li>",pZ="";for(let[e,t]of Object.entries(pJ).slice(1).entries())pZ+=pX(e,t);let p0=[{element:pJ.STEP_1.selector,intro:'<div><div class="left">Welcome to the Consumer Complaint Database!<br /><br />Complaints the CFPB sends to companies for response are published in the Consumer Complaint Database after the company responds, confirming a commercial relationship with the consumer, or after 15 days, whichever comes first.<br /><br />Complaints the CFPB refers to other regulators, such as complaints about depository institutions with less than $10 billion in assets, are not published in the database. This database is not a statistical sample of consumers’ experiences in the marketplace.</div><div class="right"><h4>Index</h4><ul>'+pZ+"</ul></div></div>",tooltipClass:"wide"},{element:pJ.STEP_2.selector,intro:"These links provide more information about this database."},{element:pJ.STEP_3.selector,intro:"The “Filter results by” panel lets you filter complaint data. To clear filters, uncheck individual selections in the filter panel or to select “Clear filters” under the Search bar."},{element:pJ.STEP_4.selector,intro:"You can adjust the date range of the complaint data showed using the “Date received” filter. <br /> The default date range is three years from today’s date."},{element:pJ.STEP_5.selector,intro:"You can filter complaints by the product and issue the consumer selected when they submitted their complaint.<br /><br />Expand a product or issue to see its sub-products or sub-issues, where available. "},{element:pJ.STEP_6.selector,intro:"The blue show/hide icon allows you to expand or collapse specific filters."},{element:pJ.STEP_7.selector,intro:"Use the “Search within” bar to find specific words or phrases in complaints. By default, this will search “All data”, but you can change this using the gray dropdown menu.<br /> <br />Click “Show search tips” to see some advanced ways to refine your word search."},{element:pJ.STEP_8.selector,intro:"As you apply filters and search terms, this will display how many complaints are included out of the total number of complaints published in the database."},{element:pJ.STEP_9.selector,intro:"You can download complaint data as CSV by selecting “Download data”."},{element:pJ.STEP_10.selector,intro:"Select “Print page” to generate a pdf of the current page."},{element:pJ.STEP_11.selector,intro:"Select the number of complaints to view per page here."},{element:pJ.STEP_12.selector,intro:"Sort complaints by “Newest to oldest,” “Oldest to newest,” “Most relevant,” and “Least relevant.”<br /><br />Relevancy are based on any applied search terms."},{element:pJ.STEP_13.selector,intro:"These are your search results. As you apply filters and search terms, your results will display here. This view shows a preview of the complaint."},{element:pJ.STEP_14.selector,intro:"Click the blue ID number to see more details about a particular complaint."}],p1={disableInteraction:!0,scrollToElement:!0,scrollTo:"tooltip",showStepNumbers:!1,exitOnOverlayClick:!1,exitOnEsc:!0,nextLabel:"Next",prevLabel:"Previous",doneLabel:"End Tour"},p2=()=>{let e,t=(0,v.c)(2),n=rE();return t[0]!==n?(e=(0,h.jsx)(tw,{label:"Take a tour",iconLeft:"help-round",className:"tour-button",onClick:()=>n(i5())}),t[0]=n,t[1]=e):e=t[1],e};function p3(e){return(p3="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})(e)}function p7(e,t,n,r){return new(n||(n=Promise))(function(a,o){function s(e){try{l(r.next(e))}catch(e){o(e)}}function i(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?a(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(s,i)}l((r=r.apply(e,t||[])).next())})}function p5(e,t){var n,r,a,o,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:i(0),throw:i(1),return:i(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function i(i){return function(l){var c=[i,l];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,c[0]&&(s=0)),s;)try{if(n=1,r&&(a=2&c[0]?r.return:c[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,c[1])).done)return a;switch(r=0,a&&(c=[2&c[0],a.value]),c[0]){case 0:case 1:a=c;break;case 4:return s.label++,{value:c[1],done:!1};case 5:s.label++,r=c[1],c=[0];continue;case 7:c=s.ops.pop(),s.trys.pop();continue;default:if(!(a=(a=s.trys).length>0&&a[a.length-1])&&(6===c[0]||2===c[0])){s=0;continue}if(3===c[0]&&(!a||c[1]>a[0]&&c[1]<a[3])){s.label=c[1];break}if(6===c[0]&&s.label<a[1]){s.label=a[1],a=c;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(c);break}a[2]&&s.ops.pop(),s.trys.pop();continue}c=t.call(e,s)}catch(e){c=[6,e],r=0}finally{n=a=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}function p4(e,t,n){var r,a=((r={})[e]=t,r.path="/",r.expires=void 0,r);if(n){var o=new Date;o.setTime(o.getTime()+24*n*36e5),a.expires=o.toUTCString()}var s=[];for(var i in a)s.push("".concat(i,"=").concat(a[i]));return document.cookie=s.join("; "),p6(e)}function p6(e){var t;return(t={},document.cookie.split(";").forEach(function(e){var n=e.split("="),r=n[0],a=n[1];t[r.trim()]=a}),t)[e]}"function"==typeof SuppressedError&&SuppressedError;var p9,p8,he,ht,hn=(ht={},function(e,t){return void 0===t&&(t="introjs-stamp"),ht[t]=ht[t]||0,void 0===e[t]&&(e[t]=ht[t]++),e[t]}),hr=new(function(){function e(){this.events_key="introjs_event"}return e.prototype._id=function(e,t,n){return e+hn(t)+(n?"_".concat(hn(n)):"")},e.prototype.on=function(e,t,n,r,a){var o=this._id(t,n,r),s=function(t){return n(r||e,t||window.event)};"addEventListener"in e?e.addEventListener(t,s,a):"attachEvent"in e&&e.attachEvent("on".concat(t),s),e[this.events_key]=e[this.events_key]||{},e[this.events_key][o]=s},e.prototype.off=function(e,t,n,r,a){var o=this._id(t,n,r),s=e[this.events_key]&&e[this.events_key][o];s&&("removeEventListener"in e?e.removeEventListener(t,s,a):"detachEvent"in e&&e.detachEvent("on".concat(t),s),e[this.events_key][o]=null)},e}()),ha=function(e){return"function"==typeof e};function ho(e,t){if(e instanceof SVGElement){var n=e.getAttribute("class")||"";n.match(t)||e.setAttribute("class","".concat(n," ").concat(t))}else if(void 0!==e.classList)for(var r=0,a=t.split(" ");r<a.length;r++){var o=a[r];e.classList.add(o)}else e.className.match(t)||(e.className+=" ".concat(t))}function hs(e,t){var n="";return"currentStyle"in e?n=e.currentStyle[t]:document.defaultView&&document.defaultView.getComputedStyle&&(n=document.defaultView.getComputedStyle(e,null).getPropertyValue(t)),n&&n.toLowerCase?n.toLowerCase():n}function hi(e,t){if(e){var n=function(e){var t=window.getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.body;for(var a=e;a=a.parentElement;)if(t=window.getComputedStyle(a),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return a;return document.body}(t);n!==document.body&&(n.scrollTop=t.offsetTop-n.offsetTop)}}function hl(){if(void 0!==window.innerWidth)return{width:window.innerWidth,height:window.innerHeight};var e=document.documentElement;return{width:e.clientWidth,height:e.clientHeight}}function hc(e,t,n,r,a){if("off"!==t&&e&&(o="tooltip"===t?a.getBoundingClientRect():r.getBoundingClientRect(),!((s=r.getBoundingClientRect()).top>=0&&s.left>=0&&s.bottom+80<=window.innerHeight&&s.right<=window.innerWidth))){var o,s,i=hl().height;o.bottom-(o.bottom-o.top)<0||r.clientHeight>i?window.scrollBy(0,o.top-(i/2-o.height/2)-n):window.scrollBy(0,o.top-(i/2-o.height/2)+n)}}function hu(e){e.setAttribute("role","button"),e.tabIndex=0}function hd(e){var t=e.parentElement;return!(!t||"HTML"===t.nodeName)&&("fixed"===hs(e,"position")||hd(t))}function hf(e,t){var n=document.body,r=document.documentElement,a=window.pageYOffset||r.scrollTop||n.scrollTop,o=window.pageXOffset||r.scrollLeft||n.scrollLeft;t=t||n;var s=e.getBoundingClientRect(),i=t.getBoundingClientRect(),l=hs(t,"position"),c={width:s.width,height:s.height};return"body"!==t.tagName.toLowerCase()&&"relative"===l||"sticky"===l?Object.assign(c,{top:s.top-i.top,left:s.left-i.left}):hd(e)?Object.assign(c,{top:s.top,left:s.left}):Object.assign(c,{top:s.top+a,left:s.left+o})}function hp(e,t){if(e instanceof SVGElement){var n=e.getAttribute("class")||"";e.setAttribute("class",n.replace(t,"").replace(/^\s+|\s+$/g,""))}else e.className=e.className.replace(t,"").replace(/^\s+|\s+$/g,"")}function hh(e,t){var n="";if(e.style.cssText&&(n+=e.style.cssText),"string"==typeof t)n+=t;else for(var r in t)n+="".concat(r,":").concat(t[r],";");e.style.cssText=n}function hm(e,t,n){if(n&&t){var r=hf(t.element,e._targetElement),a=e._options.helperElementPadding;t.element instanceof Element&&hd(t.element)?ho(n,"introjs-fixedTooltip"):hp(n,"introjs-fixedTooltip"),"floating"===t.position&&(a=0),hh(n,{width:"".concat(r.width+a,"px"),height:"".concat(r.height+a,"px"),top:"".concat(r.top-a/2,"px"),left:"".concat(r.left-a/2,"px")})}}function hv(e,t,n,r,a){return e.left+t+n.width>r.width?(a.style.left="".concat(r.width-n.width-e.left,"px"),!1):(a.style.left="".concat(t,"px"),!0)}function hg(e,t,n,r){return e.left+e.width-t-n.width<0?(r.style.left="".concat(-e.left,"px"),!1):(r.style.right="".concat(t,"px"),!0)}function hb(e,t){e.includes(t)&&e.splice(e.indexOf(t),1)}function hy(e,t,n,r,a){if(void 0===a&&(a=!1),t){n.style.top="",n.style.right="",n.style.bottom="",n.style.left="",n.style.marginLeft="",n.style.marginTop="",r.style.display="inherit",n.className=["introjs-tooltip","string"==typeof t.tooltipClass?t.tooltipClass:e._options.tooltipClass].filter(Boolean).join(" "),n.setAttribute("role","dialog"),"floating"!==(l=t.position)&&e._options.autoPosition&&(l=function(e,t,n,r){var a=e.slice(),o=hl(),s=hf(n).height+10,i=hf(n).width+20,l=t.getBoundingClientRect(),c="floating";if(l.bottom+s>o.height&&hb(a,"bottom"),l.top-s<0&&hb(a,"top"),l.right+i>o.width&&hb(a,"right"),l.left-i<0&&hb(a,"left"),r&&(r=r.split("-")[0]),a.length&&(c=a[0],a.includes(r)&&(c=r)),"top"===c||"bottom"===c){var u,d,f,p,h,m=void 0,v=[];"top"===c?(m="top-middle-aligned",v=["top-left-aligned","top-middle-aligned","top-right-aligned"]):(m="bottom-middle-aligned",v=["bottom-left-aligned","bottom-middle-aligned","bottom-right-aligned"]),u=l.left,d=o.width,f=v,p=i/2,(h=Math.min(d,window.screen.width))-u<i&&(hb(f,"top-left-aligned"),hb(f,"bottom-left-aligned")),(u<p||h-u<p)&&(hb(f,"top-middle-aligned"),hb(f,"bottom-middle-aligned")),u<i&&(hb(f,"top-right-aligned"),hb(f,"bottom-right-aligned")),c=(f.length?f[0]:null)||m}return c}(e._options.positionPrecedence,t.element,n,l)),s=hf(t.element),o=hf(n),i=hl(),ho(n,"introjs-".concat(l));var o,s,i,l,c=s.width/2-o.width/2;switch(l){case"top-right-aligned":r.className="introjs-arrow bottom-right";hg(s,0,o,n),n.style.bottom="".concat(s.height+20,"px");break;case"top-middle-aligned":r.className="introjs-arrow bottom-middle",a&&(c+=5),hg(s,c,o,n)&&(n.style.right="",hv(s,c,o,i,n)),n.style.bottom="".concat(s.height+20,"px");break;case"top-left-aligned":case"top":r.className="introjs-arrow bottom",hv(s,15*!a,o,i,n),n.style.bottom="".concat(s.height+20,"px");break;case"right":n.style.left="".concat(s.width+20,"px"),s.top+o.height>i.height?(r.className="introjs-arrow left-bottom",n.style.top="-".concat(o.height-s.height-20,"px")):r.className="introjs-arrow left";break;case"left":a||!0!==e._options.showStepNumbers||(n.style.top="15px"),s.top+o.height>i.height?(n.style.top="-".concat(o.height-s.height-20,"px"),r.className="introjs-arrow right-bottom"):r.className="introjs-arrow right",n.style.right="".concat(s.width+20,"px");break;case"floating":r.style.display="none",n.style.left="50%",n.style.top="50%",n.style.marginLeft="-".concat(o.width/2,"px"),n.style.marginTop="-".concat(o.height/2,"px");break;case"bottom-right-aligned":r.className="introjs-arrow top-right",hg(s,0,o,n),n.style.top="".concat(s.height+20,"px");break;case"bottom-middle-aligned":r.className="introjs-arrow top-middle",a&&(c+=5),hg(s,c,o,n)&&(n.style.right="",hv(s,c,o,i,n)),n.style.top="".concat(s.height+20,"px");break;default:r.className="introjs-arrow top",hv(s,0,o,i,n),n.style.top="".concat(s.height+20,"px")}}}function hw(){for(var e=0,t=Array.from(document.querySelectorAll(".introjs-showElement"));e<t.length;e++)hp(t[e],/introjs-[a-zA-Z]+/g)}function hx(e,t){var n=document.createElement(e),r=/^(?:role|data-|aria-)/;for(var a in t=t||{}){var o=t[a];"style"===a&&"function"!=typeof o?hh(n,o):"string"==typeof o&&a.match(r)?n.setAttribute(a,o):n[a]=o}return n}function hS(e,t,n){if(void 0===n&&(n=!1),n){var r=t.style.opacity||"1";hh(t,{opacity:"0"}),window.setTimeout(function(){hh(t,{opacity:r})},10)}e.appendChild(t)}function hk(e,t){var n=hx("div",{className:"introjs-bullets"});!1===e._options.showBullets&&(n.style.display="none");var r=hx("ul");r.setAttribute("role","tablist");for(var a=function(){var t=this.getAttribute("data-step-number");null!=t&&e.goToStep(parseInt(t,10))},o=0;o<e._introItems.length;o++){var s=e._introItems[o].step,i=hx("li"),l=hx("a");i.setAttribute("role","presentation"),l.setAttribute("role","tab"),l.onclick=a,o===t.step-1&&(l.className="active"),hu(l),l.innerHTML=" ",l.setAttribute("data-step-number",s.toString()),i.appendChild(l),r.appendChild(i)}return n.appendChild(r),n}function h_(e,t,n){var r=e.querySelector(".introjs-progress .introjs-progressbar");if(r){var a=(t+1)/n*100;r.style.cssText="width:".concat(a,"%;"),r.setAttribute("aria-valuenow",a.toString())}}function hE(e,t){return p7(this,void 0,void 0,function(){var n,r,a,o,s,i,l,c,u,d,f,p,h,m,v,g,b,y,w,x,S,k,_,E,j=this;return p5(this,function(C){switch(C.label){case 0:return ha(e._introChangeCallback)?[4,e._introChangeCallback.call(e,t.element)]:[3,2];case 1:C.sent(),C.label=2;case 2:var P,N,O,T,A,M;return n=document.querySelector(".introjs-helperLayer"),r=document.querySelector(".introjs-tooltipReferenceLayer"),a="introjs-helperLayer","string"==typeof t.highlightClass&&(a+=" ".concat(t.highlightClass)),"string"==typeof e._options.highlightClass&&(a+=" ".concat(e._options.highlightClass)),null!==n&&null!==r?(l=r.querySelector(".introjs-helperNumberLayer"),c=r.querySelector(".introjs-tooltiptext"),u=r.querySelector(".introjs-tooltip-title"),d=r.querySelector(".introjs-arrow"),f=r.querySelector(".introjs-tooltip"),i=r.querySelector(".introjs-skipbutton"),s=r.querySelector(".introjs-prevbutton"),o=r.querySelector(".introjs-nextbutton"),n.className=a,f.style.opacity="0",f.style.display="none",hi(e._options.scrollToElement,t.element),hm(e,t,n),hm(e,t,r),hw(),e._lastShowElementTimer&&window.clearTimeout(e._lastShowElementTimer),e._lastShowElementTimer=window.setTimeout(function(){null!==l&&(l.innerHTML="".concat(t.step," ").concat(e._options.stepNumbersOfLabel," ").concat(e._introItems.length)),c.innerHTML=t.intro||"",u.innerHTML=t.title||"",f.style.display="block",hy(e,t,f,d),function(e,t,n){if(e){var r=t.querySelector(".introjs-bullets li > a.active"),a=t.querySelector('.introjs-bullets li > a[data-step-number="'.concat(n.step,'"]'));r&&a&&(r.className="",a.className="active")}}(e._options.showBullets,r,t),h_(r,e._currentStep,e._introItems.length),f.style.opacity="1",(null!=o&&/introjs-donebutton/gi.test(o.className)||null!=o)&&o.focus(),hc(e._options.scrollToElement,t.scrollTo,e._options.scrollPadding,t.element,c)},350)):(p=hx("div",{className:a}),h=hx("div",{className:"introjs-tooltipReferenceLayer"}),m=hx("div",{className:"introjs-arrow"}),v=hx("div",{className:"introjs-tooltip"}),g=hx("div",{className:"introjs-tooltiptext"}),b=hx("div",{className:"introjs-tooltip-header"}),y=hx("h1",{className:"introjs-tooltip-title"}),w=hx("div"),hh(p,{"box-shadow":"0 0 1px 2px rgba(33, 33, 33, 0.8), rgba(33, 33, 33, ".concat(e._options.overlayOpacity.toString(),") 0 0 0 5000px")}),hi(e._options.scrollToElement,t.element),hm(e,t,p),hm(e,t,h),hS(e._targetElement,p,!0),hS(e._targetElement,h),g.innerHTML=t.intro,y.innerHTML=t.title,w.className="introjs-tooltipbuttons",!1===e._options.showButtons&&(w.style.display="none"),b.appendChild(y),v.appendChild(b),v.appendChild(g),e._options.dontShowAgain&&(x=hx("div",{className:"introjs-dontShowAgain"}),(S=hx("input",{type:"checkbox",id:"introjs-dontShowAgain",name:"introjs-dontShowAgain"})).onchange=function(t){e.setDontShowAgain(t.target.checked)},(k=hx("label",{htmlFor:"introjs-dontShowAgain"})).innerText=e._options.dontShowAgainLabel,x.appendChild(S),x.appendChild(k),v.appendChild(x)),v.appendChild(hk(e,t)),v.appendChild(((P=hx("div")).className="introjs-progress",!1===e._options.showProgress&&(P.style.display="none"),N=hx("div",{className:"introjs-progressbar"}),e._options.progressBarAdditionalClass&&(N.className+=" "+e._options.progressBarAdditionalClass),O=(e._currentStep+1)/e._introItems.length*100,N.setAttribute("role","progress"),N.setAttribute("aria-valuemin","0"),N.setAttribute("aria-valuemax","100"),N.setAttribute("aria-valuenow",O.toString()),N.style.cssText="width:".concat(O,"%;"),P.appendChild(N),P)),_=hx("div"),!0===e._options.showStepNumbers&&(_.className="introjs-helperNumberLayer",_.innerHTML="".concat(t.step," ").concat(e._options.stepNumbersOfLabel," ").concat(e._introItems.length),v.appendChild(_)),v.appendChild(m),h.appendChild(v),(o=hx("a")).onclick=function(){return p7(j,void 0,void 0,function(){return p5(this,function(t){switch(t.label){case 0:return e._introItems.length-1===e._currentStep?[3,2]:[4,hj(e)];case 1:return t.sent(),[3,6];case 2:return/introjs-donebutton/gi.test(o.className)?ha(e._introCompleteCallback)?[4,e._introCompleteCallback.call(e,e._currentStep,"done")]:[3,4]:[3,6];case 3:t.sent(),t.label=4;case 4:return[4,hV(e,e._targetElement)];case 5:t.sent(),t.label=6;case 6:return[2]}})})},hu(o),o.innerHTML=e._options.nextLabel,(s=hx("a")).onclick=function(){return p7(j,void 0,void 0,function(){return p5(this,function(t){switch(t.label){case 0:return e._currentStep>0?[4,hC(e)]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}})})},hu(s),s.innerHTML=e._options.prevLabel,hu(i=hx("a",{className:"introjs-skipbutton"})),i.innerHTML=e._options.skipLabel,i.onclick=function(){return p7(j,void 0,void 0,function(){return p5(this,function(t){switch(t.label){case 0:return e._introItems.length-1===e._currentStep&&ha(e._introCompleteCallback)?[4,e._introCompleteCallback.call(e,e._currentStep,"skip")]:[3,2];case 1:t.sent(),t.label=2;case 2:return ha(e._introSkipCallback)?[4,e._introSkipCallback.call(e,e._currentStep)]:[3,4];case 3:t.sent(),t.label=4;case 4:return[4,hV(e,e._targetElement)];case 5:return t.sent(),[2]}})})},b.appendChild(i),e._introItems.length>1&&w.appendChild(s),w.appendChild(o),v.appendChild(w),hy(e,t,v,m),hc(e._options.scrollToElement,t.scrollTo,e._options.scrollPadding,t.element,v)),(E=e._targetElement.querySelector(".introjs-disableInteraction"))&&E.parentNode&&E.parentNode.removeChild(E),t.disableInteraction&&(null===(T=document.querySelector(".introjs-disableInteraction"))&&(T=hx("div",{className:"introjs-disableInteraction"}),e._targetElement.appendChild(T)),hm(e,t,T)),0===e._currentStep&&e._introItems.length>1?(null!=o&&(o.className="".concat(e._options.buttonClass," introjs-nextbutton"),o.innerHTML=e._options.nextLabel),!0===e._options.hidePrev?(null!=s&&(s.className="".concat(e._options.buttonClass," introjs-prevbutton introjs-hidden")),null!=o&&ho(o,"introjs-fullbutton")):null!=s&&(s.className="".concat(e._options.buttonClass," introjs-prevbutton introjs-disabled"))):e._introItems.length-1===e._currentStep||1===e._introItems.length?(null!=s&&(s.className="".concat(e._options.buttonClass," introjs-prevbutton")),!0===e._options.hideNext?(null!=o&&(o.className="".concat(e._options.buttonClass," introjs-nextbutton introjs-hidden")),null!=s&&ho(s,"introjs-fullbutton")):null!=o&&(!0===e._options.nextToDone?(o.innerHTML=e._options.doneLabel,ho(o,"".concat(e._options.buttonClass," introjs-nextbutton introjs-donebutton"))):o.className="".concat(e._options.buttonClass," introjs-nextbutton introjs-disabled"))):(null!=s&&(s.className="".concat(e._options.buttonClass," introjs-prevbutton")),null!=o&&(o.className="".concat(e._options.buttonClass," introjs-nextbutton"),o.innerHTML=e._options.nextLabel)),null!=s&&s.setAttribute("role","button"),null!=o&&o.setAttribute("role","button"),null!=i&&i.setAttribute("role","button"),null!=o&&o.focus(),ho(A=t.element,"introjs-showElement"),"absolute"!==(M=hs(A,"position"))&&"relative"!==M&&"sticky"!==M&&"fixed"!==M&&ho(A,"introjs-relativePosition"),ha(e._introAfterChangeCallback)?[4,e._introAfterChangeCallback.call(e,t.element)]:[3,4];case 3:C.sent(),C.label=4;case 4:return[2]}})})}function hj(e){return p7(this,void 0,void 0,function(){var t,n,r;return p5(this,function(a){switch(a.label){case 0:if(e._direction="forward",void 0!==e._currentStepNumber)for(t=0;t<e._introItems.length;t++)e._introItems[t].step===e._currentStepNumber&&(e._currentStep=t-1,e._currentStepNumber=void 0);return -1===e._currentStep?e._currentStep=0:++e._currentStep,n=e._introItems[e._currentStep],r=!0,ha(e._introBeforeChangeCallback)?[4,e._introBeforeChangeCallback.call(e,n&&n.element,e._currentStep,e._direction)]:[3,2];case 1:r=a.sent(),a.label=2;case 2:return!1===r?(--e._currentStep,[2,!1]):e._introItems.length<=e._currentStep?ha(e._introCompleteCallback)?[4,e._introCompleteCallback.call(e,e._currentStep,"end")]:[3,4]:[3,6];case 3:a.sent(),a.label=4;case 4:return[4,hV(e,e._targetElement)];case 5:return a.sent(),[2,!1];case 6:return[4,hE(e,n)];case 7:return a.sent(),[2,!0]}})})}function hC(e){return p7(this,void 0,void 0,function(){var t,n;return p5(this,function(r){switch(r.label){case 0:return e._direction="backward",e._currentStep<=0?[2,!1]:(--e._currentStep,t=e._introItems[e._currentStep],n=!0,ha(e._introBeforeChangeCallback)?[4,e._introBeforeChangeCallback.call(e,t&&t.element,e._currentStep,e._direction)]:[3,2]);case 1:n=r.sent(),r.label=2;case 2:return!1===n?(++e._currentStep,[2,!1]):[4,hE(e,t)];case 3:return r.sent(),[2,!0]}})})}function hP(e,t){return p7(this,void 0,void 0,function(){var n,r;return p5(this,function(a){switch(a.label){case 0:return null===(n=void 0===t.code?t.which:t.code)&&(n=null===t.charCode?t.keyCode:t.charCode),"Escape"!==n&&27!==n||!0!==e._options.exitOnEsc?[3,2]:[4,hV(e,e._targetElement)];case 1:case 3:case 5:return a.sent(),[3,16];case 2:return"ArrowLeft"!==n&&37!==n?[3,4]:[4,hC(e)];case 4:return"ArrowRight"!==n&&39!==n?[3,6]:[4,hj(e)];case 6:return"Enter"!==n&&"NumpadEnter"!==n&&13!==n?[3,16]:(r=t.target||t.srcElement)&&r.className.match("introjs-prevbutton")?[4,hC(e)]:[3,8];case 7:return a.sent(),[3,15];case 8:return r&&r.className.match("introjs-skipbutton")?e._introItems.length-1===e._currentStep&&ha(e._introCompleteCallback)?[4,e._introCompleteCallback.call(e,e._currentStep,"skip")]:[3,10]:[3,12];case 9:a.sent(),a.label=10;case 10:return[4,hV(e,e._targetElement)];case 11:return a.sent(),[3,15];case 12:return r&&r.getAttribute("data-step-number")?(r.click(),[3,15]):[3,13];case 13:return[4,hj(e)];case 14:a.sent(),a.label=15;case 15:t.preventDefault?t.preventDefault():t.returnValue=!1,a.label=16;case 16:return[2]}})})}function hN(e){if(null===e||"object"!==p3(e)||"nodeType"in e)return e;var t={};for(var n in e)"jQuery"in window&&e[n]instanceof window.jQuery?t[n]=e[n]:t[n]=hN(e[n]);return t}function hO(e){var t=document.querySelector(".introjs-hints");return t?Array.from(t.querySelectorAll(e)):[]}function hT(e,t){return p7(this,void 0,void 0,function(){var n;return p5(this,function(r){switch(r.label){case 0:return n=hO('.introjs-hint[data-step="'.concat(t,'"]'))[0],hL(),n&&ho(n,"introjs-hidehint"),ha(e._hintCloseCallback)?[4,e._hintCloseCallback.call(e,t)]:[3,2];case 1:r.sent(),r.label=2;case 2:return[2]}})})}function hA(e){var t=hO('.introjs-hint[data-step="'.concat(e,'"]'))[0];t&&hp(t,/introjs-hidehint/g)}function hM(e){var t=hO('.introjs-hint[data-step="'.concat(e,'"]'))[0];t&&t.parentNode&&t.parentNode.removeChild(t)}function hR(e,t,n){if(void 0!==n){var r=hf(n);switch(e){default:case"top-left":t.style.left="".concat(r.left,"px"),t.style.top="".concat(r.top,"px");break;case"top-right":t.style.left="".concat(r.left+r.width-20,"px"),t.style.top="".concat(r.top,"px");break;case"bottom-left":t.style.left="".concat(r.left,"px"),t.style.top="".concat(r.top+r.height-20,"px");break;case"bottom-right":t.style.left="".concat(r.left+r.width-20,"px"),t.style.top="".concat(r.top+r.height-20,"px");break;case"middle-left":t.style.left="".concat(r.left,"px"),t.style.top="".concat(r.top+(r.height-20)/2,"px");break;case"middle-right":t.style.left="".concat(r.left+r.width-20,"px"),t.style.top="".concat(r.top+(r.height-20)/2,"px");break;case"middle-middle":t.style.left="".concat(r.left+(r.width-20)/2,"px"),t.style.top="".concat(r.top+(r.height-20)/2,"px");break;case"bottom-middle":t.style.left="".concat(r.left+(r.width-20)/2,"px"),t.style.top="".concat(r.top+r.height-20,"px");break;case"top-middle":t.style.left="".concat(r.left+(r.width-20)/2,"px"),t.style.top="".concat(r.top,"px")}}}function hz(e,t){return p7(this,void 0,void 0,function(){var n,r,a,o,s,i,l,c,u,d,f;return p5(this,function(p){switch(p.label){case 0:return n=document.querySelector('.introjs-hint[data-step="'.concat(t,'"]')),r=e._hintItems[t],ha(e._hintClickCallback)?[4,e._hintClickCallback.call(e,n,r,t)]:[3,2];case 1:p.sent(),p.label=2;case 2:return void 0!==(a=hL())&&parseInt(a,10)===t||(o=hx("div",{className:"introjs-tooltip"}),s=hx("div"),i=hx("div"),l=hx("div"),o.onclick=function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0},s.className="introjs-tooltiptext",(c=hx("p")).innerHTML=r.hint||"",s.appendChild(c),e._options.hintShowButton&&((u=hx("a")).className=e._options.buttonClass,u.setAttribute("role","button"),u.innerHTML=e._options.hintButtonLabel,u.onclick=function(){return hT(e,t)},s.appendChild(u)),i.className="introjs-arrow",o.appendChild(i),o.appendChild(s),e._currentStep=parseInt(d=n.getAttribute("data-step")||"",10),f=e._hintItems[e._currentStep],l.className="introjs-tooltipReferenceLayer introjs-hintReference",l.setAttribute("data-step",d),hm(e,f,l),l.appendChild(o),document.body.appendChild(l),hy(e,f,o,i,!0)),[2]}})})}function hL(){var e=document.querySelector(".introjs-hintReference");if(e&&e.parentNode){var t=e.getAttribute("data-step");if(!t)return;return e.parentNode.removeChild(e),t}}function hI(e,t){return p7(this,void 0,void 0,function(){var n,r,a,o,s,i,l,c,u;return p5(this,function(d){switch(d.label){case 0:if(e._hintItems=[],e._options.hints&&e._options.hints.length>0)for(n=0,r=e._options.hints;n<r.length;n++)"string"==typeof(a=hN(r[n])).element&&(a.element=document.querySelector(a.element)),a.hintPosition=a.hintPosition||e._options.hintPosition,a.hintAnimation=a.hintAnimation||e._options.hintAnimation,null!==a.element&&e._hintItems.push(a);else{if(!(o=Array.from(t.querySelectorAll("*[data-hint]")))||!o.length)return[2,!1];for(s=0,i=o;s<i.length;s++)c=(l=i[s]).getAttribute("data-hint-animation"),u=e._options.hintAnimation,c&&(u="true"===c),e._hintItems.push({element:l,hint:l.getAttribute("data-hint")||"",hintPosition:l.getAttribute("data-hint-position")||e._options.hintPosition,hintAnimation:u,tooltipClass:l.getAttribute("data-tooltip-class")||void 0,position:l.getAttribute("data-position")||e._options.tooltipPosition})}return[4,function(e){return p7(this,void 0,void 0,function(){var t,n,r,a,o,s,i;return p5(this,function(l){var c,u,d;switch(l.label){case 0:for(null===(t=document.querySelector(".introjs-hints"))&&(t=hx("div",{className:"introjs-hints"})),n=function(t){return function(n){var r=n||window.event;r&&r.stopPropagation&&r.stopPropagation(),r&&null!==r.cancelBubble&&(r.cancelBubble=!0),hz(e,t)}},r=0;r<e._hintItems.length;r++){if(a=e._hintItems[r],document.querySelector('.introjs-hint[data-step="'.concat(r,'"]')))return[2];hu(o=hx("a",{className:"introjs-hint"})),o.onclick=n(r),a.hintAnimation||ho(o,"introjs-hint-no-anim"),hd(a.element)&&ho(o,"introjs-fixedhint"),s=hx("div",{className:"introjs-hint-dot"}),i=hx("div",{className:"introjs-hint-pulse"}),o.appendChild(s),o.appendChild(i),o.setAttribute("data-step",r.toString()),a.hintTargetElement=a.element,a.element=o,hR(a.hintPosition,o,a.hintTargetElement),t.appendChild(o)}return document.body.appendChild(t),ha(e._hintsAddedCallback)?[4,e._hintsAddedCallback.call(e)]:[3,2];case 1:l.sent(),l.label=2;case 2:return e._options.hintAutoRefreshInterval>=0&&(c=function(){return hD(e)},u=e._options.hintAutoRefreshInterval,e._hintsAutoRefreshFunction=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];window.clearTimeout(d),d=window.setTimeout(function(){c()},u)},hr.on(window,"scroll",e._hintsAutoRefreshFunction,e,!0)),[2]}})})}(e)];case 1:return d.sent(),hr.on(document,"click",hL,e,!1),hr.on(window,"resize",hD,e,!0),[2,!0]}})})}function hD(e){for(var t=0,n=e._hintItems;t<n.length;t++){var r=n[t],a=r.hintTargetElement;hR(r.hintPosition,r.element,a)}}function hH(e,t){var n=Array.from(t.querySelectorAll("*[data-intro]")),r=[];if(e._options.steps&&e._options.steps.length)for(var a=0,o=e._options.steps;a<o.length;a++){var s=hN(d=o[a]);if(s.step=r.length+1,s.title=s.title||"","string"==typeof s.element&&(s.element=document.querySelector(s.element)||void 0),void 0===s.element||null===s.element){var i=document.querySelector(".introjsFloatingElement");null===i&&(i=hx("div",{className:"introjsFloatingElement"}),document.body.appendChild(i)),s.element=i,s.position="floating"}s.position=s.position||e._options.tooltipPosition,s.scrollTo=s.scrollTo||e._options.scrollTo,void 0===s.disableInteraction&&(s.disableInteraction=e._options.disableInteraction),null!==s.element&&r.push(s)}else{var l=void 0;if(n.length<1)return[];for(var c=0;c<n.length;c++){var u=n[c];if((!e._options.group||u.getAttribute("data-intro-group")===e._options.group)&&"none"!==u.style.display){var d=parseInt(u.getAttribute("data-step")||"",10);l=e._options.disableInteraction,u.hasAttribute("data-disable-interaction")&&(l=!!u.getAttribute("data-disable-interaction")),d>0&&(r[d-1]={step:d,element:u,title:u.getAttribute("data-title")||"",intro:u.getAttribute("data-intro")||"",tooltipClass:u.getAttribute("data-tooltip-class")||void 0,highlightClass:u.getAttribute("data-highlight-class")||void 0,position:u.getAttribute("data-position")||e._options.tooltipPosition,scrollTo:u.getAttribute("data-scroll-to")||e._options.scrollTo,disableInteraction:l})}}for(var f=0,p=0;p<n.length;p++)if(u=n[p],(!e._options.group||u.getAttribute("data-intro-group")===e._options.group)&&null===u.getAttribute("data-step")){for(;void 0!==r[f];)f++;l=u.hasAttribute("data-disable-interaction")?!!u.getAttribute("data-disable-interaction"):e._options.disableInteraction,r[f]={element:u,title:u.getAttribute("data-title")||"",intro:u.getAttribute("data-intro")||"",step:f+1,tooltipClass:u.getAttribute("data-tooltip-class")||void 0,highlightClass:u.getAttribute("data-highlight-class")||void 0,position:u.getAttribute("data-position")||e._options.tooltipPosition,scrollTo:u.getAttribute("data-scroll-to")||e._options.scrollTo,disableInteraction:l}}}for(var h=[],m=0;m<r.length;m++)r[m]&&h.push(r[m]);return(r=h).sort(function(e,t){return e.step-t.step}),r}function hF(e,t){var n=e._currentStep;if(null!=n&&-1!=n){var r=e._introItems[n],a=document.querySelector(".introjs-tooltipReferenceLayer"),o=document.querySelector(".introjs-helperLayer"),s=document.querySelector(".introjs-disableInteraction");hm(e,r,o),hm(e,r,a),hm(e,r,s),t&&(e._introItems=hH(e,e._targetElement),function(e,t){if(e._options.showBullets){var n=document.querySelector(".introjs-bullets");n&&n.parentNode&&n.parentNode.replaceChild(hk(e,t),n)}}(e,r),h_(a,n,e._introItems.length));var i=document.querySelector(".introjs-arrow"),l=document.querySelector(".introjs-tooltip");return l&&i&&hy(e,e._introItems[n],l,i),hD(e),e}}function hB(e){hF(e)}function h$(e,t){if(void 0===t&&(t=!1),e&&e.parentElement){var n=e.parentElement;t?(hh(e,{opacity:"0"}),window.setTimeout(function(){try{n.removeChild(e)}catch(e){}},500)):n.removeChild(e)}}function hV(e,t,n){return void 0===n&&(n=!1),p7(this,void 0,void 0,function(){var r,a,o,s;return p5(this,function(i){switch(i.label){case 0:return r=!0,void 0===e._introBeforeExitCallback?[3,2]:[4,e._introBeforeExitCallback.call(e,t)];case 1:r=i.sent(),i.label=2;case 2:if(!n&&!1===r)return[2];if((a=Array.from(t.querySelectorAll(".introjs-overlay")))&&a.length)for(o=0,s=a;o<s.length;o++)h$(s[o]);return h$(t.querySelector(".introjs-helperLayer"),!0),h$(t.querySelector(".introjs-tooltipReferenceLayer")),h$(t.querySelector(".introjs-disableInteraction")),h$(document.querySelector(".introjsFloatingElement")),hw(),hr.off(window,"keydown",hP,e,!0),hr.off(window,"resize",hB,e,!0),ha(e._introExitCallback)?[4,e._introExitCallback.call(e)]:[3,4];case 3:i.sent(),i.label=4;case 4:return e._currentStep=-1,[2]}})})}var hq=function(){function e(e){this._currentStep=-1,this._introItems=[],this._hintItems=[],this._targetElement=e,this._options={steps:[],hints:[],isActive:!0,nextLabel:"Next",prevLabel:"Back",skipLabel:"×",doneLabel:"Done",hidePrev:!1,hideNext:!1,nextToDone:!0,tooltipPosition:"bottom",tooltipClass:"",group:"",highlightClass:"",exitOnEsc:!0,exitOnOverlayClick:!0,showStepNumbers:!1,stepNumbersOfLabel:"of",keyboardNavigation:!0,showButtons:!0,showBullets:!0,showProgress:!1,scrollToElement:!0,scrollTo:"element",scrollPadding:30,overlayOpacity:.5,autoPosition:!0,positionPrecedence:["bottom","top","right","left"],disableInteraction:!1,dontShowAgain:!1,dontShowAgainLabel:"Don't show this again",dontShowAgainCookie:"introjs-dontShowAgain",dontShowAgainCookieDays:365,helperElementPadding:10,hintPosition:"top-middle",hintButtonLabel:"Got it",hintShowButton:!0,hintAutoRefreshInterval:10,hintAnimation:!0,buttonClass:"introjs-button",progressBarAdditionalClass:!1}}return e.prototype.isActive=function(){var e;return(!this._options.dontShowAgain||""===(e=p6(this._options.dontShowAgainCookie))||"true"!==e)&&this._options.isActive},e.prototype.clone=function(){return new e(this._targetElement)},e.prototype.setOption=function(e,t){var n;return this._options=(n=this._options,n[e]=t,n),this},e.prototype.setOptions=function(e){return this._options=function(e,t){for(var n=0,r=Object.entries(t);n<r.length;n++){var a,o,s,i=r[n];a=e,o=i[0],s=i[1],a[o]=s,e=a}return e}(this._options,e),this},e.prototype.start=function(){return p7(this,void 0,void 0,function(){return p5(this,function(e){switch(e.label){case 0:return[4,function(e,t){return p7(this,void 0,void 0,function(){var n;return p5(this,function(r){switch(r.label){case 0:return e.isActive()?ha(e._introStartCallback)?[4,e._introStartCallback.call(e,t)]:[3,2]:[2,!1];case 1:r.sent(),r.label=2;case 2:return 0===(n=hH(e,t)).length?[2,!1]:(e._introItems=n,function(e,t){var n=this,r=hx("div",{className:"introjs-overlay"});hh(r,{top:0,bottom:0,left:0,right:0,position:"fixed"}),t.appendChild(r),!0===e._options.exitOnOverlayClick&&(hh(r,{cursor:"pointer"}),r.onclick=function(){return p7(n,void 0,void 0,function(){return p5(this,function(n){switch(n.label){case 0:return[4,hV(e,t)];case 1:return n.sent(),[2]}})})})}(e,t),[4,hj(e)]);case 3:r.sent(),t.addEventListener,e._options.keyboardNavigation&&hr.on(window,"keydown",hP,e,!0),hr.on(window,"resize",hB,e,!0),r.label=4;case 4:return[2,!1]}})})}(this,this._targetElement)];case 1:return e.sent(),[2,this]}})})},e.prototype.goToStep=function(e){return p7(this,void 0,void 0,function(){return p5(this,function(t){switch(t.label){case 0:return[4,function(e,t){return p7(this,void 0,void 0,function(){return p5(this,function(n){switch(n.label){case 0:return e._currentStep=t-2,void 0===e._introItems?[3,2]:[4,hj(e)];case 1:n.sent(),n.label=2;case 2:return[2]}})})}(this,e)];case 1:return t.sent(),[2,this]}})})},e.prototype.addStep=function(e){return this._options.steps||(this._options.steps=[]),this._options.steps.push(e),this},e.prototype.addSteps=function(e){if(!e.length)return this;for(var t=0;t<e.length;t++)this.addStep(e[t]);return this},e.prototype.goToStepNumber=function(e){return p7(this,void 0,void 0,function(){return p5(this,function(t){switch(t.label){case 0:return[4,function(e,t){return p7(this,void 0,void 0,function(){return p5(this,function(n){switch(n.label){case 0:return e._currentStepNumber=t,void 0===e._introItems?[3,2]:[4,hj(e)];case 1:n.sent(),n.label=2;case 2:return[2]}})})}(this,e)];case 1:return t.sent(),[2,this]}})})},e.prototype.nextStep=function(){return p7(this,void 0,void 0,function(){return p5(this,function(e){switch(e.label){case 0:return[4,hj(this)];case 1:return e.sent(),[2,this]}})})},e.prototype.previousStep=function(){return p7(this,void 0,void 0,function(){return p5(this,function(e){switch(e.label){case 0:return[4,hC(this)];case 1:return e.sent(),[2,this]}})})},e.prototype.currentStep=function(){return this._currentStep},e.prototype.exit=function(e){return p7(this,void 0,void 0,function(){return p5(this,function(t){switch(t.label){case 0:return[4,hV(this,this._targetElement,e)];case 1:return t.sent(),[2,this]}})})},e.prototype.refresh=function(e){return hF(this,e),this},e.prototype.setDontShowAgain=function(e){return e?p4(this._options.dontShowAgainCookie,"true",this._options.dontShowAgainCookieDays):p4(this._options.dontShowAgainCookie,"",-1),this},e.prototype.onbeforechange=function(e){if(!ha(e))throw Error("Provided callback for onbeforechange was not a function");return this._introBeforeChangeCallback=e,this},e.prototype.onchange=function(e){if(!ha(e))throw Error("Provided callback for onchange was not a function.");return this._introChangeCallback=e,this},e.prototype.onafterchange=function(e){if(!ha(e))throw Error("Provided callback for onafterchange was not a function");return this._introAfterChangeCallback=e,this},e.prototype.oncomplete=function(e){if(!ha(e))throw Error("Provided callback for oncomplete was not a function.");return this._introCompleteCallback=e,this},e.prototype.onhintsadded=function(e){if(!ha(e))throw Error("Provided callback for onhintsadded was not a function.");return this._hintsAddedCallback=e,this},e.prototype.onhintclick=function(e){if(!ha(e))throw Error("Provided callback for onhintclick was not a function.");return this._hintClickCallback=e,this},e.prototype.onhintclose=function(e){if(!ha(e))throw Error("Provided callback for onhintclose was not a function.");return this._hintCloseCallback=e,this},e.prototype.onstart=function(e){if(!ha(e))throw Error("Provided callback for onstart was not a function.");return this._introStartCallback=e,this},e.prototype.onexit=function(e){if(!ha(e))throw Error("Provided callback for onexit was not a function.");return this._introExitCallback=e,this},e.prototype.onskip=function(e){if(!ha(e))throw Error("Provided callback for onskip was not a function.");return this._introSkipCallback=e,this},e.prototype.onbeforeexit=function(e){if(!ha(e))throw Error("Provided callback for onbeforeexit was not a function.");return this._introBeforeExitCallback=e,this},e.prototype.addHints=function(){return p7(this,void 0,void 0,function(){return p5(this,function(e){switch(e.label){case 0:return[4,hI(this,this._targetElement)];case 1:return e.sent(),[2,this]}})})},e.prototype.hideHint=function(e){return p7(this,void 0,void 0,function(){return p5(this,function(t){switch(t.label){case 0:return[4,hT(this,e)];case 1:return t.sent(),[2,this]}})})},e.prototype.hideHints=function(){return p7(this,void 0,void 0,function(){return p5(this,function(e){switch(e.label){case 0:return[4,function(e){return p7(this,void 0,void 0,function(){var t,n,r,a;return p5(this,function(o){switch(o.label){case 0:t=hO(".introjs-hint"),n=0,r=t,o.label=1;case 1:return n<r.length?(a=r[n].getAttribute("data-step"))?[4,hT(e,parseInt(a,10))]:[3,3]:[3,4];case 2:o.sent(),o.label=3;case 3:return n++,[3,1];case 4:return[2]}})})}(this)];case 1:return e.sent(),[2,this]}})})},e.prototype.showHint=function(e){return hA(e),this},e.prototype.showHints=function(){return p7(this,void 0,void 0,function(){return p5(this,function(e){switch(e.label){case 0:return[4,function(e){return p7(this,void 0,void 0,function(){var t,n,r,a;return p5(this,function(o){switch(o.label){case 0:if(!(t=hO(".introjs-hint"))||!t.length)return[3,1];for(n=0,r=t;n<r.length;n++)(a=r[n].getAttribute("data-step"))&&hA(parseInt(a,10));return[3,3];case 1:return[4,hI(e,e._targetElement)];case 2:o.sent(),o.label=3;case 3:return[2]}})})}(this)];case 1:return e.sent(),[2,this]}})})},e.prototype.removeHints=function(){return function(e){for(var t=0,n=hO(".introjs-hint");t<n.length;t++){var r=n[t].getAttribute("data-step");r&&hM(parseInt(r,10))}hr.off(document,"click",hL,e,!1),hr.off(window,"resize",hD,e,!0),e._hintsAutoRefreshFunction&&hr.off(window,"scroll",e._hintsAutoRefreshFunction,e,!0)}(this),this},e.prototype.removeHint=function(e){return hM(e),this},e.prototype.showHintDialog=function(e){return p7(this,void 0,void 0,function(){return p5(this,function(t){switch(t.label){case 0:return[4,hz(this,e)];case 1:return t.sent(),[2,this]}})})},e}(),hU=function e(t){var n;if("object"===p3(t))n=new hq(t);else if("string"==typeof t){var r=document.querySelector(t);if(!r)throw Error("There is no element with given selector.");n=new hq(r)}else n=new hq(document.body);return e.instances[hn(n,"introjs-instance")]=n,n};hU.version="7.2.0",hU.instances={};var hW=a(7897);let hY="u"<typeof Element?il().any:il().instanceOf(Element);class hK extends g.Component{componentDidMount(){this.props.isEnabled&&(this.configureIntroJs(),this.renderSteps())}componentDidUpdate(e){let{isEnabled:t,steps:n,options:r}=this.props,a=!this.isConfigured||e.steps!==n||e.options!==r,o=e.isEnabled!==t;a&&this.configureIntroJs(),(a||o)&&this.renderSteps()}componentWillUnmount(){var e;this.restoreDocumentQueryPatch(),null==(e=this.introJs)||e.exit()}enableDocumentQueryPatch(){let e=ix();e===document.body||this._documentQuerySelector||(this._queryTarget=e,this._documentQuerySelector=document.querySelector,this._documentQuerySelectorAll=document.querySelectorAll,document.querySelector=e=>{if("string"==typeof e&&e.includes("introjs")){let t=this._queryTarget.querySelector(e);if(t)return t}return this._documentQuerySelector.call(document,e)},document.querySelectorAll=e=>{if("string"==typeof e&&e.includes("introjs")){let t=this._queryTarget.querySelectorAll(e);if(t.length>0)return t}return this._documentQuerySelectorAll.call(document,e)})}restoreDocumentQueryPatch(){this._documentQuerySelector&&(document.querySelector=this._documentQuerySelector,document.querySelectorAll=this._documentQuerySelectorAll,this._documentQuerySelector=null,this._documentQuerySelectorAll=null,this._queryTarget=null)}installIntroJs(){void 0!==globalThis.window&&(this.introJs=hU(ix()),this.introJs.onexit(this.onExit),this.introJs.onbeforeexit(this.onBeforeExit),this.introJs.onbeforechange(this.onBeforeChange),this.introJs.onafterchange(this.onAfterChange),this.introJs.onchange(this.onChange),this.introJs.oncomplete(this.onComplete))}configureIntroJs(){let{options:e,steps:t}=this.props,n=t.map(e=>this.prepareStep(e));this.introJs.setOptions(iq(rO({},e),{steps:n})),this.isConfigured=!0}renderSteps(){let{isEnabled:e,initialStep:t,steps:n,onStart:r}=this.props;e&&n.length>0&&!this.isVisible?(this.enableDocumentQueryPatch(),this.configureIntroJs(),this.introJs.start(),this.refreshAllStepElements(),this.isVisible=!0,this.introJs.goToStepNumber(t+1),r&&r(this.introJs._currentStep)):!e&&this.isVisible&&(this.isVisible=!1,this.introJs.exit(),this.restoreDocumentQueryPatch())}render(){return null}constructor(e){super(e),rN(this,"onExit",()=>{this.restoreDocumentQueryPatch();let{onExit:e}=this.props;this.isVisible=!1,e(this.introJs._currentStep)}),rN(this,"onBeforeExit",()=>{let{onBeforeExit:e}=this.props;return!e||e(this.introJs._currentStep)}),rN(this,"onBeforeChange",e=>{if(!this.isVisible)return!0;this.refreshAllStepElements();let{onBeforeChange:t,onPreventChange:n}=this.props;if(t){let r=t(this.introJs._currentStep,e);return!1===r&&n&&setTimeout(()=>{n(this.introJs._currentStep)},0),r}return!0}),rN(this,"onAfterChange",e=>{var t;if(!this.isVisible)return;this.refreshAllStepElements(),"function"==typeof(null==(t=this.introJs)?void 0:t.refresh)&&this.introJs.refresh(!0);let{onAfterChange:n}=this.props;n&&n(this.introJs._currentStep,e)}),rN(this,"onChange",e=>{if(!this.isVisible)return;let{onChange:t}=this.props;t&&t(this.introJs._currentStep,e)}),rN(this,"onComplete",()=>{let{onComplete:e}=this.props;e&&e()}),rN(this,"updateStepElement",e=>{var t,n,r,a,o;let s=null==(r=this.introJs)||null==(n=r._options)||null==(t=n.steps)?void 0:t[e],i=null==(o=this.introJs)||null==(a=o._introItems)?void 0:a[e],l=null==s?void 0:s._selector;if(!l||!i)return;let c=iw(l);c&&(i.element=c,i.position=s.position||"auto")}),rN(this,"refreshAllStepElements",()=>{var e,t;let n=(null==(t=this.introJs)||null==(e=t._options)?void 0:e.steps)||[];for(let e=0;e<n.length;e++)this.updateStepElement(e)}),rN(this,"prepareStep",e=>{let t="string"==typeof e.element?e.element:null,n=e.intro;if((0,g.isValidElement)(n)&&(n=(0,hW.qV)(n)),!t)return iq(rO({},e),{intro:n});let r=iw(t);return iq(rO({},e),{intro:n,_selector:t,element:r||void 0})}),this.introJs=null,this.isConfigured=!1,this.isVisible=!1,this._documentQuerySelector=null,this._documentQuerySelectorAll=null,this._queryTarget=null,this.installIntroJs()}}rN(hK,"propTypes",{isEnabled:il().bool,initialStep:il().number.isRequired,steps:il().arrayOf(il().shape({element:il().oneOfType([il().string,hY]),intro:il().node.isRequired,position:il().string,tooltipClass:il().string,highlightClass:il().string})).isRequired,onStart:il().func,onExit:il().func.isRequired,onBeforeExit:il().func,onBeforeChange:il().func,onAfterChange:il().func,onChange:il().func,onPreventChange:il().func,onComplete:il().func,options:il().object}),rN(hK,"defaultProps",{isEnabled:!1,onStart:null,onBeforeExit:null,onBeforeChange:null,onAfterChange:null,onChange:null,onPreventChange:null,onComplete:null,options:{}});let hQ=()=>{let e,t=(0,v.c)(5),{isLoading:n,isFetching:r}=l7(),{isLoading:a,isFetching:o}=pP();return t[0]!==r||t[1]!==n||t[2]!==o||t[3]!==a?(e=iN([n,r,a,o]),t[0]=r,t[1]=n,t[2]=o,t[3]=a,t[4]=e):e=t[4],e},hG=pK.MOBILE_FILTER_TOGGLE,hJ={disableInteraction:!1,element:hG,intro:"On mobile devices, click the Filter Panel toggle button to open the Filter Panel. Please click the button to proceed."},hX={disableInteraction:!1,element:hG,intro:"Click the Filter Panel toggle button again to close the Filter Panel. Please close the Filter Panel to proceed."},hZ=()=>{let e,t,n,r,a,o,s=(0,v.c)(21),i=rE(),l=hQ(),c=rC(pa),u=rC(pr),d=rC(po),f=(0,g.useRef)();s[0]!==l||s[1]!==u?(e=iN([l,u]),s[0]=l,s[1]=u,s[2]=e):e=s[2];let p=e,m=d<901;s[3]!==m?(t=m?[...p0.slice(0,2),hJ,...p0.slice(3,6),hX,...p0.slice(6)]:p0,s[3]=m,s[4]=t):t=s[4];let b=t;s[5]!==b||s[6]!==m?(n=()=>{if(!f.current)return;let e=f.current.introJs.currentStep();if(!Object.hasOwn(b,e))return;let t=async()=>{var n,r;null==(n=iw(".introjs-nextbutton"))||n.setAttribute("style","display: inline");let a=6===e?Promise.resolve():new Promise(e=>{let t=Date.now(),n=setInterval(()=>{if(null!==iw(pK.DATE_FILTER)){clearInterval(n),e();return}Date.now()-t>=5e3&&(clearInterval(n),e())},10)});await a,await f.current.introJs.nextStep(),null==(r=iw(hG))||r.removeEventListener("click",t)};if(m&&(2===e||6===e)){var n,r;null==(n=iw(".introjs-nextbutton"))||n.setAttribute("style","display: none"),null==(r=iw(hG))||r.addEventListener("click",t)}},s[5]=b,s[6]=m,s[7]=n):n=s[7];let y=n;s[8]!==b||s[9]!==c?(r=()=>!c||null===f.current||!(f.current.introJs.currentStep()+1<b.length)||confirm("Are you sure you want to exit the tour?"),s[8]=b,s[9]=c,s[10]=r):r=s[10];let w=r;s[11]!==i||s[12]!==c?(a=()=>{c&&i(i7())},s[11]=i,s[12]=c,s[13]=a):a=s[13];let x=a;return s[14]!==b||s[15]!==x||s[16]!==p||s[17]!==y||s[18]!==w||s[19]!==c?(o=p?null:(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(p2,{}),(0,h.jsx)(hK,{isEnabled:c,initialStep:0,steps:b,onExit:x,options:p1,onBeforeChange:y,onBeforeExit:w,ref:f})]}),s[14]=b,s[15]=x,s[16]=p,s[17]=y,s[18]=w,s[19]=c,s[20]=o):o=s[20],o};function h0(e,t,n){let r,a=(0,v.c)(4),o=void 0!==n&&n;a[0]!==e||a[1]!==t||a[2]!==o?(r=()=>(addEventListener(e,t,o),function(){removeEventListener(e,t)}),a[0]=e,a[1]=t,a[2]=o,a[3]=r):r=a[3],(0,g.useEffect)(r)}let h1=e=>{let t,n,r,a,o,s,i=(0,v.c)(22),{fieldName:l,value:c,displayValue:u,onRemove:d}=e,{data:f,error:p}=l7(),m=rC(lD);i[0]!==f||i[1]!==l?(t=iC(f,l,[]),i[0]=f,i[1]=l,i[2]=t):t=i[2];let g=t;i[3]!==l||i[4]!==m?(n=iC(m,l,[]),i[3]=l,i[4]=m,i[5]=n):n=i[5];let b=n;i[6]!==l?(r=(e=>{if("timely"===e){let t=e.replaceAll(/_/g," ");return t[0].toUpperCase()+t.slice(1)+": "}return""})(l),i[6]=l,i[7]=r):r=i[7];let y=r,w=u||c;i[8]!==w?(a=w.split("•").pop(),i[8]=w,i[9]=a):a=i[9];let x=a,S=rE();i[10]!==g||i[11]!==S||i[12]!==l||i[13]!==b||i[14]!==d||i[15]!==c?(o=()=>{if(d)return void d(c);if("date_received"===l)S(lE("All"));else if(sG.includes(l)){let e=lI(c,b,g,l);S(ls(l,e))}else S(la(l,c))},i[10]=g,i[11]=S,i[12]=l,i[13]=b,i[14]=d,i[15]=c,i[16]=o):o=i[16];let k=o;return i[17]!==p||i[18]!==y||i[19]!==k||i[20]!==x?(s=p?null:(0,h.jsx)("li",{children:(0,h.jsxs)("button",{className:"a-tag-filter","aria-label":"".concat(y).concat(x),onClick:k,children:[y,x,(0,h.jsx)("span",{className:"a-btn--icon a-btn--icon--on-right",children:(0,h.jsx)(N,{name:"error",isPresentational:!0})})]})}),i[17]=p,i[18]=y,i[19]=k,i[20]=x,i[21]=s):s=i[21],s};h1.propTypes={fieldName:il().string.isRequired,value:il().string.isRequired,displayValue:il().string,onRemove:il().func};let h2=()=>{let e,t,n,r,a,o,s,i,l=(0,v.c)(21),c=rE(),u=rC(lD),d=rC(lY),f=rC(lQ),p=rC(lK),m=rC(lX);if(l[0]!==d||l[1]!==p||l[2]!==f||l[3]!==u){a=Symbol.for("react.early_return_sentinel");n:{let o=(e=>{let t=[];for(let n of sY)if(Object.hasOwn(e,n))for(let r of e[n])t.push({fieldName:n,value:r});return t})(u),s=sM()(f).isSame(sM()(sF),"day")&&sM()(p).isSame(sM()(d),"day")?null:{fieldName:"date_received",value:"Date received: "+sM()(f).format("M/D/YYYY")+" - "+sM()(p).format("M/D/YYYY")};if(s&&o.unshift(s),0===o.length){a=null;break n}r="pill-panel",e="m-tag-group pill-panel__list",l[9]===Symbol.for("react.memo_cache_sentinel")?(t=(0,h.jsx)("li",{className:"pill-panel__label",children:(0,h.jsx)(tM,{children:"Filters applied:"})}),l[9]=t):t=l[9],n=o.map(h3)}l[0]=d,l[1]=p,l[2]=f,l[3]=u,l[4]=e,l[5]=t,l[6]=n,l[7]=r,l[8]=a}else e=l[4],t=l[5],n=l[6],r=l[7],a=l[8];return a!==Symbol.for("react.early_return_sentinel")?a:(l[10]!==c||l[11]!==m?(o=(0,h.jsx)("li",{className:"pill-panel__clear",children:(0,h.jsx)(tw,{appearance:"warning",label:"Clear filters",isLink:!0,onClick:()=>c(lo(m))})}),l[10]=c,l[11]=m,l[12]=o):o=l[12],l[13]!==e||l[14]!==t||l[15]!==n||l[16]!==o?(s=(0,h.jsxs)("ul",{className:e,children:[t,n,o]}),l[13]=e,l[14]=t,l[15]=n,l[16]=o,l[17]=s):s=l[17],l[18]!==r||l[19]!==s?(i=(0,h.jsx)("section",{className:r,children:s}),l[18]=r,l[19]=s,l[20]=i):i=l[20],i)};function h3(e){return(0,h.jsx)(h1,{fieldName:e.fieldName,value:e.value,displayValue:"state"===e.fieldName?lL(e.value):void 0},e.fieldName+e.value)}a(3544);let h7=e=>e&&"function"!=typeof e?t=>{e.current=t}:e;var h5=function(e,t){return(0,g.useMemo)(()=>{let n,r;return n=h7(e),r=h7(t),e=>{n&&n(e),r&&r(e)}},[e,t])};function h4(){return(0,g.useState)(null)}let h6=e=>e&&"function"!=typeof e?t=>{e.current=t}:e;var h9=function(e,t){return(0,g.useMemo)(()=>{let n,r;return n=h6(e),r=h6(t),e=>{n&&n(e),r&&r(e)}},[e,t])},h8=Object.prototype.hasOwnProperty;function me(e,t,n){for(n of e.keys())if(mt(n,t))return n}function mt(e,t){var n,r,a;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&mt(e[r],t[r]););return -1===r}if(n===Set){if(e.size!==t.size)return!1;for(r of e)if((a=r)&&"object"==typeof a&&!(a=me(t,a))||!t.has(a))return!1;return!0}if(n===Map){if(e.size!==t.size)return!1;for(r of e)if((a=r[0])&&"object"==typeof a&&!(a=me(t,a))||!mt(r[1],t.get(a)))return!1;return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return -1===r}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return -1===r}if(!n||"object"==typeof e){for(n in r=0,e)if(h8.call(e,n)&&++r&&!h8.call(t,n)||!(n in t)||!mt(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!=e&&t!=t}var mn=function(e){let t,n,r=(t=(0,g.useRef)(!0),n=(0,g.useRef)(()=>t.current),(0,g.useEffect)(()=>(t.current=!0,()=>{t.current=!1}),[]),n.current);return[e[0],(0,g.useCallback)(t=>{if(r())return e[1](t)},[r,e[1]])]};function mr(e){return e.split("-")[0]}function ma(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function mo(e){var t=ma(e).Element;return e instanceof t||e instanceof Element}function ms(e){var t=ma(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function mi(e){if("u"<typeof ShadowRoot)return!1;var t=ma(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var ml=Math.max,mc=Math.min,mu=Math.round;function md(){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}function mf(){return!/^((?!chrome|android).)*safari/i.test(md())}function mp(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),a=1,o=1;t&&ms(e)&&(a=e.offsetWidth>0&&mu(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&mu(r.height)/e.offsetHeight||1);var s=(mo(e)?ma(e):window).visualViewport,i=!mf()&&n,l=(r.left+(i&&s?s.offsetLeft:0))/a,c=(r.top+(i&&s?s.offsetTop:0))/o,u=r.width/a,d=r.height/o;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l,x:l,y:c}}function mh(e){var t=mp(e),n=e.offsetWidth,r=e.offsetHeight;return 1>=Math.abs(t.width-n)&&(n=t.width),1>=Math.abs(t.height-r)&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function mm(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&mi(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function mv(e){return e?(e.nodeName||"").toLowerCase():null}function mg(e){return ma(e).getComputedStyle(e)}function mb(e){return((mo(e)?e.ownerDocument:e.document)||window.document).documentElement}function my(e){return"html"===mv(e)?e:e.assignedSlot||e.parentNode||(mi(e)?e.host:null)||mb(e)}function mw(e){return ms(e)&&"fixed"!==mg(e).position?e.offsetParent:null}function mx(e){for(var t=ma(e),n=mw(e);n&&["table","td","th"].indexOf(mv(n))>=0&&"static"===mg(n).position;)n=mw(n);return n&&("html"===mv(n)||"body"===mv(n)&&"static"===mg(n).position)?t:n||function(e){var t=/firefox/i.test(md());if(/Trident/i.test(md())&&ms(e)&&"fixed"===mg(e).position)return null;var n=my(e);for(mi(n)&&(n=n.host);ms(n)&&0>["html","body"].indexOf(mv(n));){var r=mg(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function mS(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function mk(e,t,n){return ml(e,mc(t,n))}function m_(){return{top:0,right:0,bottom:0,left:0}}function mE(e){return Object.assign({},m_(),e)}function mj(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var mC="bottom",mP="right",mN="left",mO="auto",mT=["top",mC,mP,mN],mA="start",mM="viewport",mR="popper",mz=mT.reduce(function(e,t){return e.concat([t+"-"+mA,t+"-end"])},[]),mL=([].concat(mT,[mO])).reduce(function(e,t){return e.concat([t,t+"-"+mA,t+"-end"])},[]),mI=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function mD(e){return e.split("-")[1]}var mH={top:"auto",right:"auto",bottom:"auto",left:"auto"};function mF(e){var t,n,r,a,o,s,i,l=e.popper,c=e.popperRect,u=e.placement,d=e.variation,f=e.offsets,p=e.position,h=e.gpuAcceleration,m=e.adaptive,v=e.roundOffsets,g=e.isFixed,b=f.x,y=void 0===b?0:b,w=f.y,x=void 0===w?0:w,S="function"==typeof v?v({x:y,y:x}):{x:y,y:x};y=S.x,x=S.y;var k=f.hasOwnProperty("x"),_=f.hasOwnProperty("y"),E=mN,j="top",C=window;if(m){var P=mx(l),N="clientHeight",O="clientWidth";P===ma(l)&&"static"!==mg(P=mb(l)).position&&"absolute"===p&&(N="scrollHeight",O="scrollWidth"),("top"===u||(u===mN||u===mP)&&"end"===d)&&(j=mC,x-=(g&&P===C&&C.visualViewport?C.visualViewport.height:P[N])-c.height,x*=h?1:-1),(u===mN||("top"===u||u===mC)&&"end"===d)&&(E=mP,y-=(g&&P===C&&C.visualViewport?C.visualViewport.width:P[O])-c.width,y*=h?1:-1)}var T=Object.assign({position:p},m&&mH),A=!0===v?(t={x:y,y:x},n=ma(l),r=t.x,a=t.y,{x:mu(r*(o=n.devicePixelRatio||1))/o||0,y:mu(a*o)/o||0}):{x:y,y:x};return(y=A.x,x=A.y,h)?Object.assign({},T,((i={})[j]=_?"0":"",i[E]=k?"0":"",i.transform=1>=(C.devicePixelRatio||1)?"translate("+y+"px, "+x+"px)":"translate3d("+y+"px, "+x+"px, 0)",i)):Object.assign({},T,((s={})[j]=_?x+"px":"",s[E]=k?y+"px":"",s.transform="",s))}var mB={passive:!0},m$={left:"right",right:"left",bottom:"top",top:"bottom"};function mV(e){return e.replace(/left|right|bottom|top/g,function(e){return m$[e]})}var mq={start:"end",end:"start"};function mU(e){return e.replace(/start|end/g,function(e){return mq[e]})}function mW(e){var t=ma(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function mY(e){return mp(mb(e)).left+mW(e).scrollLeft}function mK(e){var t=mg(e),n=t.overflow,r=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+r)}function mQ(e,t){void 0===t&&(t=[]);var n,r=function e(t){return["html","body","#document"].indexOf(mv(t))>=0?t.ownerDocument.body:ms(t)&&mK(t)?t:e(my(t))}(e),a=r===(null==(n=e.ownerDocument)?void 0:n.body),o=ma(r),s=a?[o].concat(o.visualViewport||[],mK(r)?r:[]):r,i=t.concat(s);return a?i:i.concat(mQ(my(s)))}function mG(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function mJ(e,t,n){var r,a,o,s,i,l,c,u,d,f;return t===mM?mG(function(e,t){var n=ma(e),r=mb(e),a=n.visualViewport,o=r.clientWidth,s=r.clientHeight,i=0,l=0;if(a){o=a.width,s=a.height;var c=mf();(c||!c&&"fixed"===t)&&(i=a.offsetLeft,l=a.offsetTop)}return{width:o,height:s,x:i+mY(e),y:l}}(e,n)):mo(t)?((r=mp(t,!1,"fixed"===n)).top=r.top+t.clientTop,r.left=r.left+t.clientLeft,r.bottom=r.top+t.clientHeight,r.right=r.left+t.clientWidth,r.width=t.clientWidth,r.height=t.clientHeight,r.x=r.left,r.y=r.top,r):mG((a=mb(e),s=mb(a),i=mW(a),l=null==(o=a.ownerDocument)?void 0:o.body,c=ml(s.scrollWidth,s.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),u=ml(s.scrollHeight,s.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),d=-i.scrollLeft+mY(a),f=-i.scrollTop,"rtl"===mg(l||s).direction&&(d+=ml(s.clientWidth,l?l.clientWidth:0)-c),{width:c,height:u,x:d,y:f}))}function mX(e){var t,n=e.reference,r=e.element,a=e.placement,o=a?mr(a):null,s=a?mD(a):null,i=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(o){case"top":t={x:i,y:n.y-r.height};break;case mC:t={x:i,y:n.y+n.height};break;case mP:t={x:n.x+n.width,y:l};break;case mN:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var c=o?mS(o):null;if(null!=c){var u="y"===c?"height":"width";switch(s){case mA:t[c]=t[c]-(n[u]/2-r[u]/2);break;case"end":t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}function mZ(e,t){void 0===t&&(t={});var n,r,a,o,s,i,l,c,u=t,d=u.placement,f=void 0===d?e.placement:d,p=u.strategy,h=void 0===p?e.strategy:p,m=u.boundary,v=u.rootBoundary,g=u.elementContext,b=void 0===g?mR:g,y=u.altBoundary,w=u.padding,x=void 0===w?0:w,S=mE("number"!=typeof x?x:mj(x,mT)),k=e.rects.popper,_=e.elements[void 0!==y&&y?b===mR?"reference":mR:b],E=(n=mo(_)?_:_.contextElement||mb(e.elements.popper),r=void 0===m?"clippingParents":m,a=void 0===v?mM:v,l=(i=[].concat("clippingParents"===r?(o=mQ(my(n)),!mo(s=["absolute","fixed"].indexOf(mg(n).position)>=0&&ms(n)?mx(n):n)?[]:o.filter(function(e){return mo(e)&&mm(e,s)&&"body"!==mv(e)})):[].concat(r),[a]))[0],(c=i.reduce(function(e,t){var r=mJ(n,t,h);return e.top=ml(r.top,e.top),e.right=mc(r.right,e.right),e.bottom=mc(r.bottom,e.bottom),e.left=ml(r.left,e.left),e},mJ(n,l,h))).width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c),j=mp(e.elements.reference),C=mX({reference:j,element:k,strategy:"absolute",placement:f}),P=mG(Object.assign({},k,C)),N=b===mR?P:j,O={top:E.top-N.top+S.top,bottom:N.bottom-E.bottom+S.bottom,left:E.left-N.left+S.left,right:N.right-E.right+S.right},T=e.modifiersData.offset;if(b===mR&&T){var A=T[f];Object.keys(O).forEach(function(e){var t=[mP,mC].indexOf(e)>=0?1:-1,n=["top",mC].indexOf(e)>=0?"y":"x";O[e]+=A[n]*t})}return O}function m0(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 m1(e){return["top",mP,mC,mN].some(function(t){return e[t]>=0})}var m2={placement:"bottom",modifiers:[],strategy:"absolute"};function m3(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}let m7=(l=void 0===(i=(s={defaultModifiers:[{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,a=t.rects.popper,o=t.modifiersData.preventOverflow,s=mZ(t,{elementContext:"reference"}),i=mZ(t,{altBoundary:!0}),l=m0(s,r),c=m0(i,a,o),u=m1(l),d=m1(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=mX({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,a=n.adaptive,o=n.roundOffsets,s=void 0===o||o,i={placement:mr(t.placement),variation:mD(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:void 0===r||r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,mF(Object.assign({},i,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:void 0===a||a,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,mF(Object.assign({},i,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,a=r.scroll,o=void 0===a||a,s=r.resize,i=void 0===s||s,l=ma(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(e){e.addEventListener("scroll",n.update,mB)}),i&&l.addEventListener("resize",n.update,mB),function(){o&&c.forEach(function(e){e.removeEventListener("scroll",n.update,mB)}),i&&l.removeEventListener("resize",n.update,mB)}},data:{}},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,a=n.offset,o=void 0===a?[0,0]:a,s=mL.reduce(function(e,n){var r,a,s,i,l,c;return e[n]=(r=t.rects,s=[mN,"top"].indexOf(a=mr(n))>=0?-1:1,l=(i="function"==typeof o?o(Object.assign({},r,{placement:n})):o)[0],c=i[1],l=l||0,c=(c||0)*s,[mN,mP].indexOf(a)>=0?{x:c,y:l}:{x:l,y:c}),e},{}),i=s[t.placement],l=i.x,c=i.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=s}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var a=n.mainAxis,o=void 0===a||a,s=n.altAxis,i=void 0===s||s,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,h=void 0===p||p,m=n.allowedAutoPlacements,v=t.options.placement,g=mr(v)===v,b=l||(g||!h?[mV(v)]:function(e){if(mr(e)===mO)return[];var t=mV(e);return[mU(e),t,mU(t)]}(v)),y=[v].concat(b).reduce(function(e,n){var r,a,o,s,i,l,f,p,v,g,b,y;return e.concat(mr(n)===mO?(a=(r={placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:h,allowedAutoPlacements:m}).placement,o=r.boundary,s=r.rootBoundary,i=r.padding,l=r.flipVariations,p=void 0===(f=r.allowedAutoPlacements)?mL:f,0===(b=(g=(v=mD(a))?l?mz:mz.filter(function(e){return mD(e)===v}):mT).filter(function(e){return p.indexOf(e)>=0})).length&&(b=g),Object.keys(y=b.reduce(function(e,n){return e[n]=mZ(t,{placement:n,boundary:o,rootBoundary:s,padding:i})[mr(n)],e},{})).sort(function(e,t){return y[e]-y[t]})):n)},[]),w=t.rects.reference,x=t.rects.popper,S=new Map,k=!0,_=y[0],E=0;E<y.length;E++){var j=y[E],C=mr(j),P=mD(j)===mA,N=["top",mC].indexOf(C)>=0,O=N?"width":"height",T=mZ(t,{placement:j,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),A=N?P?mP:mN:P?mC:"top";w[O]>x[O]&&(A=mV(A));var M=mV(A),R=[];if(o&&R.push(T[C]<=0),i&&R.push(T[A]<=0,T[M]<=0),R.every(function(e){return e})){_=j,k=!1;break}S.set(j,R)}if(k)for(var z=h?3:1,L=function(e){var t=y.find(function(t){var n=S.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return _=t,"break"},I=z;I>0&&"break"!==L(I);I--);t.placement!==_&&(t.modifiersData[r]._skip=!0,t.placement=_,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,a=n.mainAxis,o=n.altAxis,s=n.boundary,i=n.rootBoundary,l=n.altBoundary,c=n.padding,u=n.tether,d=void 0===u||u,f=n.tetherOffset,p=void 0===f?0:f,h=mZ(t,{boundary:s,rootBoundary:i,padding:c,altBoundary:l}),m=mr(t.placement),v=mD(t.placement),g=!v,b=mS(m),y="x"===b?"y":"x",w=t.modifiersData.popperOffsets,x=t.rects.reference,S=t.rects.popper,k="function"==typeof p?p(Object.assign({},t.rects,{placement:t.placement})):p,_="number"==typeof k?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),E=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,j={x:0,y:0};if(w){if(void 0===a||a){var C,P="y"===b?"top":mN,N="y"===b?mC:mP,O="y"===b?"height":"width",T=w[b],A=T+h[P],M=T-h[N],R=d?-S[O]/2:0,z=v===mA?x[O]:S[O],L=v===mA?-S[O]:-x[O],I=t.elements.arrow,D=d&&I?mh(I):{width:0,height:0},H=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:m_(),F=H[P],B=H[N],$=mk(0,x[O],D[O]),V=g?x[O]/2-R-$-F-_.mainAxis:z-$-F-_.mainAxis,q=g?-x[O]/2+R+$+B+_.mainAxis:L+$+B+_.mainAxis,U=t.elements.arrow&&mx(t.elements.arrow),W=U?"y"===b?U.clientTop||0:U.clientLeft||0:0,Y=null!=(C=null==E?void 0:E[b])?C:0,K=mk(d?mc(A,T+V-Y-W):A,T,d?ml(M,T+q-Y):M);w[b]=K,j[b]=K-T}if(void 0!==o&&o){var Q,G,J="x"===b?"top":mN,X="x"===b?mC:mP,Z=w[y],ee="y"===y?"height":"width",et=Z+h[J],en=Z-h[X],er=-1!==["top",mN].indexOf(m),ea=null!=(G=null==E?void 0:E[y])?G:0,eo=er?et:Z-x[ee]-S[ee]-ea+_.altAxis,es=er?Z+x[ee]+S[ee]-ea-_.altAxis:en,ei=d&&er?(Q=mk(eo,Z,es))>es?es:Q:mk(d?eo:et,Z,d?es:en);w[y]=ei,j[y]=ei-Z}t.modifiersData[r]=j}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,a=e.options,o=n.elements.arrow,s=n.modifiersData.popperOffsets,i=mr(n.placement),l=mS(i),c=[mN,mP].indexOf(i)>=0?"height":"width";if(o&&s){var u,d=(u=a.padding,mE("number"!=typeof(u="function"==typeof u?u(Object.assign({},n.rects,{placement:n.placement})):u)?u:mj(u,mT))),f=mh(o),p="y"===l?"top":mN,h="y"===l?mC:mP,m=n.rects.reference[c]+n.rects.reference[l]-s[l]-n.rects.popper[c],v=s[l]-n.rects.reference[l],g=mx(o),b=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,y=d[p],w=b-f[c]-d[h],x=b/2-f[c]/2+(m/2-v/2),S=mk(y,x,w);n.modifiersData[r]=((t={})[l]=S,t.centerOffset=S-x,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null==r||("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&mm(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]}]}).defaultModifiers)?[]:i,u=void 0===(c=s.defaultOptions)?m2:c,function(e,t,n){void 0===n&&(n=u);var r,a,o={placement:"bottom",orderedModifiers:[],options:Object.assign({},m2,u),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],i=!1,c={state:o,setOptions:function(n){var r,a,i,f,p,h,m="function"==typeof n?n(o.options):n;d(),o.options=Object.assign({},u,o.options,m),o.scrollParents={reference:mo(e)?mQ(e):e.contextElement?mQ(e.contextElement):[],popper:mQ(t)};var v=(a=Object.keys(r=[].concat(l,o.options.modifiers).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},{})).map(function(e){return r[e]}),i=new Map,f=new Set,p=[],a.forEach(function(e){i.set(e.name,e)}),a.forEach(function(e){f.has(e.name)||function e(t){f.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){if(!f.has(t)){var n=i.get(t);n&&e(n)}}),p.push(t)}(e)}),h=p,mI.reduce(function(e,t){return e.concat(h.filter(function(e){return e.phase===t}))},[]));return o.orderedModifiers=v.filter(function(e){return e.enabled}),o.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=e.effect;if("function"==typeof r){var a=r({state:o,name:t,instance:c,options:void 0===n?{}:n});s.push(a||function(){})}}),c.update()},forceUpdate:function(){if(!i){var e=o.elements,t=e.reference,n=e.popper;if(m3(t,n)){o.rects={reference:(r=mx(n),a="fixed"===o.options.strategy,s=ms(r),f=ms(r)&&(u=mu((l=r.getBoundingClientRect()).width)/r.offsetWidth||1,d=mu(l.height)/r.offsetHeight||1,1!==u||1!==d),p=mb(r),h=mp(t,f,a),m={scrollLeft:0,scrollTop:0},v={x:0,y:0},(s||!s&&!a)&&(("body"!==mv(r)||mK(p))&&(m=function(e){return e!==ma(e)&&ms(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:mW(e)}(r)),ms(r)?(v=mp(r,!0),v.x+=r.clientLeft,v.y+=r.clientTop):p&&(v.x=mY(p))),{x:h.left+m.scrollLeft-v.x,y:h.top+m.scrollTop-v.y,width:h.width,height:h.height}),popper:mh(n)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach(function(e){return o.modifiersData[e.name]=Object.assign({},e.data)});for(var r,a,s,l,u,d,f,p,h,m,v,g=0;g<o.orderedModifiers.length;g++){if(!0===o.reset){o.reset=!1,g=-1;continue}var b=o.orderedModifiers[g],y=b.fn,w=b.options,x=void 0===w?{}:w,S=b.name;"function"==typeof y&&(o=y({state:o,options:x,name:S,instance:c})||o)}}}},update:(r=function(){return new Promise(function(e){c.forceUpdate(),e(o)})},function(){return a||(a=new Promise(function(e){Promise.resolve().then(function(){a=void 0,e(r())})})),a}),destroy:function(){d(),i=!0}};if(!m3(e,t))return c;function d(){s.forEach(function(e){return e()}),s=[]}return c.setOptions(n).then(function(e){!i&&n.onFirstUpdate&&n.onFirstUpdate(e)}),c}),m5=["enabled","placement","strategy","modifiers"],m4={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>void 0},m6={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:e})=>()=>{let{reference:t,popper:n}=e.elements;if("removeAttribute"in t){let e=(t.getAttribute("aria-describedby")||"").split(",").filter(e=>e.trim()!==n.id);e.length?t.setAttribute("aria-describedby",e.join(",")):t.removeAttribute("aria-describedby")}},fn:({state:e})=>{var t;let{popper:n,reference:r}=e.elements,a=null==(t=n.getAttribute("role"))?void 0:t.toLowerCase();if(n.id&&"tooltip"===a&&"setAttribute"in r){let e=r.getAttribute("aria-describedby");if(e&&-1!==e.split(",").indexOf(n.id))return;r.setAttribute("aria-describedby",e?`${e},${n.id}`:n.id)}}},m9=[];var m8=function(e,t,n={}){let{enabled:r=!0,placement:a="bottom",strategy:o="absolute",modifiers:s=m9}=n,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(n,m5),l=(0,g.useRef)(s),c=(0,g.useRef)(),u=(0,g.useCallback)(()=>{var e;null==(e=c.current)||e.update()},[]),d=(0,g.useCallback)(()=>{var e;null==(e=c.current)||e.forceUpdate()},[]),[f,p]=mn((0,g.useState)({placement:a,update:u,forceUpdate:d,attributes:{},styles:{popper:{},arrow:{}}})),h=(0,g.useMemo)(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:e})=>{let t={},n={};Object.keys(e.elements).forEach(r=>{t[r]=e.styles[r],n[r]=e.attributes[r]}),p({state:e,styles:t,attributes:n,update:u,forceUpdate:d,placement:e.placement})}}),[u,d,p]),m=(0,g.useMemo)(()=>(mt(l.current,s)||(l.current=s),l.current),[s]);return(0,g.useEffect)(()=>{c.current&&r&&c.current.setOptions({placement:a,strategy:o,modifiers:[...m,h,m4]})},[o,a,h,r,m]),(0,g.useEffect)(()=>{if(r&&null!=e&&null!=t)return c.current=m7(e,t,Object.assign({},i,{placement:a,strategy:o,modifiers:[...m,m6,h]})),()=>{null!=c.current&&(c.current.destroy(),c.current=void 0,p(e=>Object.assign({},e,{attributes:{},styles:{popper:{}}})))}},[r,e,t]),f};let ve=(0,g.createContext)(dA?window:void 0);ve.Provider;let vt=(e,t)=>dA?null==e?(t||dH()).body:("function"==typeof e&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect))?e:null:null;function vn(e,t){let n=(0,g.useContext)(ve),[r,a]=(0,g.useState)(()=>vt(e,null==n?void 0:n.document));if(!r){let t=vt(e);t&&a(t)}return(0,g.useEffect)(()=>{t&&r&&t(r)},[t,r]),(0,g.useEffect)(()=>{let t=vt(e);t!==r&&a(t)},[e,r]),r}let vr=void 0!==a.g&&a.g.navigator&&"ReactNative"===a.g.navigator.product;var va="u">typeof document||vr?g.useLayoutEffect:g.useEffect,vo=function({children:e,in:t,onExited:n,mountOnEnter:r,unmountOnExit:a}){let o=(0,g.useRef)(null),s=(0,g.useRef)(t),i=dB(n);(0,g.useEffect)(()=>{t?s.current=!0:i(o.current)},[t,i]);let l=h9(o,dY(e)),c=(0,g.cloneElement)(e,{ref:l});return t?c:a||!s.current&&r?null:c};let vs=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"],vi=["component"],vl=g.forwardRef((e,t)=>{let{component:n}=e,r=function(e){let{onEnter:t,onEntering:n,onEntered:r,onExit:a,onExiting:o,onExited:s,addEndListener:i,children:l}=e,c=function(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,vs),u=(0,g.useRef)(null),d=h9(u,dY(l)),f=e=>t=>{e&&u.current&&e(u.current,t)},p=(0,g.useCallback)(f(t),[t]),h=(0,g.useCallback)(f(n),[n]),m=(0,g.useCallback)(f(r),[r]),v=(0,g.useCallback)(f(a),[a]),b=(0,g.useCallback)(f(o),[o]),y=(0,g.useCallback)(f(s),[s]),w=(0,g.useCallback)(f(i),[i]);return Object.assign({},c,{nodeRef:u},t&&{onEnter:p},n&&{onEntering:h},r&&{onEntered:m},a&&{onExit:v},o&&{onExiting:b},s&&{onExited:y},i&&{addEndListener:w},{children:"function"==typeof l?(e,t)=>l(e,Object.assign({},t,{ref:d})):(0,g.cloneElement)(l,{ref:d})})}(function(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,vi));return(0,h.jsx)(n,Object.assign({ref:t},r))});function vc({children:e,in:t,onExited:n,onEntered:r,transition:a}){let[o,s]=(0,g.useState)(!t);t&&o&&s(!1);let i=h9(function({in:e,onTransition:t}){let n=(0,g.useRef)(null),r=(0,g.useRef)(!0),a=dB(t);return va(()=>{if(!n.current)return;let t=!1;return a({in:e,element:n.current,initial:r.current,isStale:()=>t}),()=>{t=!0}},[e,a]),va(()=>(r.current=!1,()=>{r.current=!0}),[]),n}({in:!!t,onTransition:e=>{Promise.resolve(a(e)).then(()=>{e.isStale()||(e.in?null==r||r(e.element,e.initial):(s(!0),null==n||n(e.element)))},t=>{throw e.in||s(!0),t})}}),dY(e));return o&&!t?null:(0,g.cloneElement)(e,{ref:i})}let vu=g.forwardRef((e,t)=>{var n;let{flip:r,offset:a,placement:o,containerPadding:s,popperConfig:i={},transition:l,runTransition:c}=e,[u,d]=h4(),[f,p]=h4(),m=h9(d,t),v=vn(e.container),b=vn(e.target),[y,w]=(0,g.useState)(!e.show),x=m8(b,u,function({enabled:e,enableEvents:t,placement:n,flip:r,offset:a,fixed:o,containerPadding:s,arrowElement:i,popperConfig:l={}}){var c,u,d,f,p,h;let m,v=(h=l.modifiers,m={},Array.isArray(h)?(null==h||h.forEach(e=>{m[e.name]=e}),m):h||m);return Object.assign({},l,{placement:n,enabled:e,strategy:o?"fixed":l.strategy,modifiers:function(e={}){return Array.isArray(e)?e:Object.keys(e).map(t=>(e[t].name=t,e[t]))}(Object.assign({},v,{eventListeners:{enabled:t,options:null==(c=v.eventListeners)?void 0:c.options},preventOverflow:Object.assign({},v.preventOverflow,{options:s?Object.assign({padding:s},null==(u=v.preventOverflow)?void 0:u.options):null==(d=v.preventOverflow)?void 0:d.options}),offset:{options:Object.assign({offset:a},null==(f=v.offset)?void 0:f.options)},arrow:Object.assign({},v.arrow,{enabled:!!i,options:Object.assign({},null==(p=v.arrow)?void 0:p.options,{element:i})}),flip:Object.assign({enabled:!!r},v.flip)}))})}({placement:o,enableEvents:!!e.show,containerPadding:s||5,flip:r,offset:a,arrowElement:f,popperConfig:i}));e.show&&y&&w(!1);let S=e.show||!y;if(dQ(u,e.onHide,{disabled:!e.rootClose||e.rootCloseDisabled,clickTrigger:e.rootCloseEvent}),!S)return null;let{onExit:k,onExiting:_,onEnter:E,onEntering:j,onEntered:C}=e,P=e.children(Object.assign({},x.attributes.popper,{style:x.styles.popper,ref:m}),{popper:x,placement:o,show:!!e.show,arrowProps:Object.assign({},x.attributes.arrow,{style:x.styles.arrow,ref:p})});return n={in:!!e.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:P,onExit:k,onExiting:_,onExited:(...t)=>{w(!0),e.onExited&&e.onExited(...t)},onEnter:E,onEntering:j,onEntered:C},P=l?(0,h.jsx)(vl,Object.assign({},n,{component:l})):c?(0,h.jsx)(vc,Object.assign({},n,{transition:c})):(0,h.jsx)(vo,Object.assign({},n)),v?ic.createPortal(P,v):null});vu.displayName="Overlay";var vd=function(e){let t=(0,g.useRef)(e);return(0,g.useEffect)(()=>{t.current=e},[e]),t};let vf=void 0!==a.g&&a.g.navigator&&"ReactNative"===a.g.navigator.product;var vp="u">typeof document||vf?g.useLayoutEffect:g.useEffect;function vh(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}let vm=g.createContext({prefixes:{},breakpoints:["xxl","xl","lg","md","sm","xs"],minBreakpoint:"xs"}),{Consumer:vv,Provider:vg}=vm;function vb(e,t){let{prefixes:n}=(0,g.useContext)(vm);return e||n[t]||t}function vy(){let{dir:e}=(0,g.useContext)(vm);return"rtl"===e}let vw=g.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},a)=>(t=vb(t,"popover-header"),(0,h.jsx)(n,{ref:a,className:cM()(e,t),...r})));vw.displayName="PopoverHeader";let vx=g.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},a)=>(t=vb(t,"popover-body"),(0,h.jsx)(n,{ref:a,className:cM()(e,t),...r})));function vS(e,t){let n=e;return"left"===e?n=t?"end":"start":"right"===e&&(n=t?"start":"end"),n}function vk(e="absolute"){return{position:e,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}vx.displayName="PopoverBody",g.Component;let v_=g.forwardRef(({bsPrefix:e,placement:t="right",className:n,style:r,children:a,body:o,arrowProps:s,hasDoneInitialMeasure:i,popper:l,show:c,...u},d)=>{let f=vb(e,"popover"),p=vy(),[m]=(null==t?void 0:t.split("-"))||[],v=vS(m,p),g=r;return c&&!i&&(g={...r,...vk(null==l?void 0:l.strategy)}),(0,h.jsxs)("div",{ref:d,role:"tooltip",style:g,"x-placement":m,className:cM()(n,f,m&&`bs-popover-${v}`),...u,children:[(0,h.jsx)("div",{className:"popover-arrow",...s}),o?(0,h.jsx)(vx,{children:a}):a]})});v_.displayName="Popover";var vE=Object.assign(v_,{Header:vw,Body:vx,POPPER_OFFSET:[0,8]});let vj=g.forwardRef(({bsPrefix:e,placement:t="right",className:n,style:r,children:a,arrowProps:o,hasDoneInitialMeasure:s,popper:i,show:l,...c},u)=>{e=vb(e,"tooltip");let d=vy(),[f]=(null==t?void 0:t.split("-"))||[],p=vS(f,d),m=r;return l&&!s&&(m={...r,...vk(null==i?void 0:i.strategy)}),(0,h.jsxs)("div",{ref:u,style:m,role:"tooltip","x-placement":f,className:cM()(n,e,`bs-tooltip-${p}`),...c,children:[(0,h.jsx)("div",{className:"tooltip-arrow",...o}),(0,h.jsx)("div",{className:`${e}-inner`,children:a})]})});vj.displayName="Tooltip";var vC=Object.assign(vj,{TOOLTIP_OFFSET:[0,6]}),vP=g.createContext(null),vN="unmounted",vO="exited",vT="entering",vA="entered",vM="exiting",vR=function(e){function t(t,n){var r,a=e.call(this,t,n)||this,o=n&&!n.isMounting?t.enter:t.appear;return a.appearStatus=null,t.in?o?(r=vO,a.appearStatus=vT):r=vA:r=t.unmountOnExit||t.mountOnEnter?vN:vO,a.state={status:r},a.nextCallback=null,a}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,c5(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===vN?{status:vO}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==vT&&n!==vA&&(t=vT):(n===vT||n===vA)&&(t=vM)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===vT){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:ic.findDOMNode(this);n&&n.scrollTop}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===vO&&this.setState({status:vN})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,a=this.props.nodeRef?[r]:[ic.findDOMNode(this),r],o=a[0],s=a[1],i=this.getTimeouts(),l=r?i.appear:i.enter;(e||n)&&1?(this.props.onEnter(o,s),this.safeSetState({status:vT},function(){t.props.onEntering(o,s),t.onTransitionEnd(l,function(){t.safeSetState({status:vA},function(){t.props.onEntered(o,s)})})})):this.safeSetState({status:vA},function(){t.props.onEntered(o)})},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:ic.findDOMNode(this);t?(this.props.onExit(r),this.safeSetState({status:vM},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:vO},function(){e.props.onExited(r)})})})):this.safeSetState({status:vO},function(){e.props.onExited(r)})},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:ic.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(!n||r)return void setTimeout(this.nextCallback,0);if(this.props.addEndListener){var a=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=a[0],s=a[1];this.props.addEndListener(o,s)}null!=e&&setTimeout(this.nextCallback,e)},n.render=function(){var e=this.state.status;if(e===vN)return null;var t=this.props,n=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,ct(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return g.createElement(vP.Provider,{value:null},"function"==typeof n?n(e,r):g.cloneElement(g.Children.only(n),r))},t}(g.Component);function vz(){}vR.contextType=vP,vR.propTypes={},vR.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:vz,onEntering:vz,onEntered:vz,onExit:vz,onExiting:vz,onExited:vz},vR.UNMOUNTED=vN,vR.EXITED=vO,vR.ENTERING=vT,vR.ENTERED=vA,vR.EXITING=vM;var vL=/([A-Z])/g,vI=/^ms-/;function vD(e){return e.replace(vL,"-$1").toLowerCase().replace(vI,"-ms-")}var vH=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i,vF=function(e,t){var n,r,a="",o="";if("string"==typeof t){return e.style.getPropertyValue(vD(t))||((r=dH(n=e))&&r.defaultView||window).getComputedStyle(n,void 0).getPropertyValue(vD(t))}Object.keys(t).forEach(function(n){var r=t[n];r||0===r?n&&vH.test(n)?o+=n+"("+r+") ":a+=vD(n)+": "+r+";":e.style.removeProperty(vD(n))}),o&&(a+="transform: "+o+";"),e.style.cssText+=";"+a};function vB(e,t){let n=vF(e,t)||"",r=-1===n.indexOf("ms")?1e3:1;return parseFloat(n)*r}function v$(e,t){let n=vB(e,"transitionDuration"),r=vB(e,"transitionDelay"),a=function(e,t,n){null==n&&(a=-1===(r=vF(e,"transitionDuration")||"").indexOf("ms")?1e3:1,n=parseFloat(r)*a||0);var r,a,o,s,i,l=(o=!1,s=setTimeout(function(){o||function(e,t,n,r){if(void 0===n&&(n=!1),void 0===r&&(r=!0),e){var a=document.createEvent("HTMLEvents");a.initEvent(t,n,r),e.dispatchEvent(a)}}(e,"transitionend",!0)},n+5),i=dD(e,"transitionend",function(){o=!0},{once:!0}),function(){clearTimeout(s),i()}),c=dD(e,"transitionend",t);return function(){l(),c()}}(e,n=>{n.target===e&&(a(),t(n))},n+r)}function vV(e){return e&&"setState"in e?ic.findDOMNode(e):null!=e?e:null}let vq=g.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:r,onExiting:a,onExited:o,addEndListener:s,children:i,childRef:l,...c},u)=>{let d=(0,g.useRef)(null),f=h5(d,l),p=e=>{f(vV(e))},m=e=>t=>{e&&d.current&&e(d.current,t)},v=(0,g.useCallback)(m(e),[e]),b=(0,g.useCallback)(m(t),[t]),y=(0,g.useCallback)(m(n),[n]),w=(0,g.useCallback)(m(r),[r]),x=(0,g.useCallback)(m(a),[a]),S=(0,g.useCallback)(m(o),[o]),k=(0,g.useCallback)(m(s),[s]);return(0,h.jsx)(vR,{ref:u,...c,onEnter:v,onEntered:y,onEntering:b,onExit:w,onExited:S,onExiting:x,addEndListener:k,nodeRef:d,children:"function"==typeof i?(e,t)=>i(e,{...t,ref:p}):g.cloneElement(i,{ref:p})})});vq.displayName="TransitionWrapper";let vU={[vT]:"show",[vA]:"show"},vW=g.forwardRef(({className:e,children:t,transitionClasses:n={},onEnter:r,...a},o)=>{let s={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...a},i=(0,g.useCallback)((e,t)=>{e.offsetHeight,null==r||r(e,t)},[r]);return(0,h.jsx)(vq,{ref:o,addEndListener:v$,...s,onEnter:i,childRef:dY(t),children:(r,a)=>g.cloneElement(t,{...a,className:cM()("fade",e,t.props.className,vU[r],n[r])})})});vW.displayName="Fade";var vY=vW;let vK=g.forwardRef(({children:e,transition:t=vY,popperConfig:n={},rootClose:r=!1,placement:a="top",show:o=!1,...s},i)=>{var l;let c,u,d,f,p,m=(0,g.useRef)({}),[v,b]=(0,g.useState)(null),[y,w]=(l=s.offset,c=(0,g.useRef)(null),u=vb(void 0,"popover"),d=vb(void 0,"tooltip"),f=(0,g.useMemo)(()=>({name:"offset",options:{offset:()=>{if(l)return l;if(c.current){if(vh(c.current,u))return vE.POPPER_OFFSET;if(vh(c.current,d))return vC.TOOLTIP_OFFSET}return[0,0]}}}),[l,u,d]),[c,[f]]),x=h5(i,y),S=!0===t?vY:t||void 0,k=(p=vd(e=>{b(e),null==n||null==n.onFirstUpdate||n.onFirstUpdate(e)}),(0,g.useCallback)(function(...e){return p.current&&p.current(...e)},[p]));return vp(()=>{v&&s.target&&(null==m.current.scheduleUpdate||m.current.scheduleUpdate())},[v,s.target]),(0,g.useEffect)(()=>{o||b(null)},[o]),(0,h.jsx)(vu,{...s,ref:x,popperConfig:{...n,modifiers:w.concat(n.modifiers||[]),onFirstUpdate:k},transition:S,rootClose:r,placement:a,show:o,children:(r,{arrowProps:a,popper:o,show:s})=>{var i;!function(e,t){let{ref:n}=e,{ref:r}=t;e.ref=n.__wrapped||(n.__wrapped=e=>n(vV(e))),t.ref=r.__wrapped||(r.__wrapped=e=>r(vV(e)))}(r,a);let l=null==o?void 0:o.placement,c=Object.assign(m.current,{state:null==o?void 0:o.state,scheduleUpdate:null==o?void 0:o.update,placement:l,outOfBoundaries:(null==o||null==(i=o.state)||null==(i=i.modifiersData.hide)?void 0:i.isReferenceHidden)||!1,strategy:n.strategy}),u=!!v;return"function"==typeof e?e({...r,placement:l,show:s,...!t&&s&&{className:"show"},popper:c,arrowProps:a,hasDoneInitialMeasure:u}):g.cloneElement(e,{...r,placement:l,arrowProps:a,popper:c,hasDoneInitialMeasure:u,className:cM()(e.props.className,!t&&s&&"show"),style:{...e.props.style,...r.style}})}})});function vQ(e,t,n){let[r]=t,a=r.currentTarget,o=r.relatedTarget||r.nativeEvent[n];o&&o===a||d$(a,o)||e(...t)}vK.displayName="Overlay",il().oneOf(["click","hover","focus"]);var vG=({trigger:e=["hover","focus"],overlay:t,children:n,popperConfig:r={},show:a,defaultShow:o=!1,onToggle:s,delay:i,placement:l,flip:c=l&&-1!==l.indexOf("auto"),...u})=>{var d,f,p,m,v,b,y;let w,x,S,k,_,E,j=(0,g.useRef)(null),C=h5(j,dY(n)),P=(_=(w=(0,g.useRef)(!0),x=(0,g.useRef)(()=>w.current),(0,g.useEffect)(()=>(w.current=!0,()=>{w.current=!1}),[]),x.current),E=(0,g.useRef)(),y=()=>clearTimeout(E.current),(S=(0,g.useRef)(y)).current=y,k=S,(0,g.useEffect)(()=>()=>k.current(),[]),(0,g.useMemo)(()=>{let e=()=>clearTimeout(E.current);return{set:function(t,n=0){_()&&(e(),n<=0x7fffffff?E.current=setTimeout(t,n):function e(t,n,r){let a=r-Date.now();t.current=a<=0x7fffffff?setTimeout(n,a):setTimeout(()=>e(t,n,r),0x7fffffff)}(E,t,Date.now()+n))},clear:e,handleRef:E}},[])),N=(0,g.useRef)(""),[O,T]=(d=(0,g.useRef)(void 0!==a),p=(f=(0,g.useState)(o))[0],m=f[1],v=void 0!==a,b=d.current,d.current=v,!v&&b&&p!==o&&m(o),[v?a:p,(0,g.useCallback)(function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];s&&s.apply(void 0,[e].concat(n)),m(e)},[s])]),A=i&&"object"==typeof i?i:{show:i,hide:i},{onFocus:M,onBlur:R,onClick:z}="function"!=typeof n?g.Children.only(n).props:{},L=(0,g.useCallback)(()=>{(P.clear(),N.current="show",A.show)?P.set(()=>{"show"===N.current&&T(!0)},A.show):T(!0)},[A.show,T,P]),I=(0,g.useCallback)(()=>{(P.clear(),N.current="hide",A.hide)?P.set(()=>{"hide"===N.current&&T(!1)},A.hide):T(!1)},[A.hide,T,P]),D=(0,g.useCallback)((...e)=>{L(),null==M||M(...e)},[L,M]),H=(0,g.useCallback)((...e)=>{I(),null==R||R(...e)},[I,R]),F=(0,g.useCallback)((...e)=>{T(!O),null==z||z(...e)},[z,T,O]),B=(0,g.useCallback)((...e)=>{vQ(L,e,"fromElement")},[L]),$=(0,g.useCallback)((...e)=>{vQ(I,e,"toElement")},[I]),V=null==e?[]:[].concat(e),q={ref:e=>{C(vV(e))}};return -1!==V.indexOf("click")&&(q.onClick=F),-1!==V.indexOf("focus")&&(q.onFocus=D,q.onBlur=H),-1!==V.indexOf("hover")&&(q.onMouseOver=B,q.onMouseOut=$),(0,h.jsxs)(h.Fragment,{children:["function"==typeof n?n(q):(0,g.cloneElement)(n,q),(0,h.jsx)(vK,{...u,show:O,onHide:I,flip:c,placement:l,popperConfig:r,target:j.current,children:t})]})};let vJ=e=>{let t,n,r=(0,v.c)(6),{children:a,placement:o,text:s}=e;return r[0]!==s?(t=(0,h.jsx)(vC,{children:s}),r[0]=s,r[1]=t):t=r[1],r[2]!==a||r[3]!==o||r[4]!==t?(n=(0,h.jsx)(vG,{placement:o,overlay:t,children:a}),r[2]=a,r[3]=o,r[4]=t,r[5]=n):n=r[5],n};vJ.propTypes={children:il().element.isRequired,placement:il().string,text:il().string.isRequired};let vX=e=>{let t,n,r,a,o,s,i=(0,v.c)(18),{id:l,notes:c,placeholderText:u,tooltipText:d}=e,[f,p]=(0,g.useState)(!1);return i[0]!==f?(t=()=>{p(!f)},i[0]=f,i[1]=t):t=i[1],i[2]===Symbol.for("react.memo_cache_sentinel")?(n=(0,h.jsx)(tP,{type:"3",className:"o-expandable__label",children:"Additional information and examples"}),i[2]=n):n=i[2],i[3]!==f?(r=(0,h.jsx)("span",{className:"o-expandable__cues",children:f?(0,h.jsx)("span",{className:"o-expandable__cue-close",role:"img","aria-label":"Hide",children:(0,h.jsx)("span",{className:"u-visually-hidden-on-mobile",children:(0,h.jsx)(N,{name:"up",isPresentational:!0})})}):(0,h.jsx)("span",{className:"o-expandable__cue-open",role:"img","aria-label":"Show",children:(0,h.jsx)("span",{className:"u-visually-hidden-on-mobile",children:(0,h.jsx)(N,{name:"down",isPresentational:!0})})})}),i[3]=f,i[4]=r):r=i[4],i[5]!==f||i[6]!==t||i[7]!==r?(a=(0,h.jsxs)("button",{className:"o-expandable__header","aria-expanded":f,onClick:t,title:"Expand content",children:[n,r]}),i[5]=f,i[6]=t,i[7]=r,i[8]=a):a=i[8],i[9]!==l||i[10]!==f||i[11]!==c||i[12]!==u||i[13]!==d?(o=f?(0,h.jsxs)("div",{className:"o-expandable__content",children:[d&&u?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(t_,{isInline:!0,className:"descriptor",htmlFor:"example-".concat(l),children:"Complex example:"}),(0,h.jsx)("span",{className:"u-visually-hidden",children:d}),(0,h.jsx)(vJ,{text:d,children:u.length>30?(0,h.jsx)(tD,{className:"example-input",id:"example-".concat(l),rows:2,placeholder:"",readOnly:!0,value:u}):(0,h.jsx)(tH,{className:"example-input",id:"example-".concat(l),readOnly:!0,value:u})})]}):null,(0,h.jsx)(tP,{type:"4",className:"descriptor",children:"Notes:"}),(0,h.jsx)(O,{children:c.map(vZ)})]}):null,i[9]=l,i[10]=f,i[11]=c,i[12]=u,i[13]=d,i[14]=o):o=i[14],i[15]!==a||i[16]!==o?(s=(0,h.jsxs)("div",{className:"o-expandable complex-example",children:[a,o]}),i[15]=a,i[16]=o,i[17]=s):s=i[17],s};function vZ(e,t){return(0,h.jsx)(z,{children:e},t)}vX.propTypes={id:il().string.isRequired,notes:il().array.isRequired,placeholderText:il().string,tooltipText:il().string};let v0=e=>{let t,n,r,a,o=(0,v.c)(13),{id:s,label:i,tooltip:l,value:c,className:u}=e;return o[0]!==s||o[1]!==i?(t=(0,h.jsx)(t_,{isInline:!0,className:"u-visually-hidden",htmlFor:s,children:i}),o[0]=s,o[1]=i,o[2]=t):t=o[2],o[3]!==u||o[4]!==s||o[5]!==c?(n=(0,h.jsx)(tH,{id:s,className:u,readOnly:!0,value:c}),o[3]=u,o[4]=s,o[5]=c,o[6]=n):n=o[6],o[7]!==n||o[8]!==l?(r=(0,h.jsx)(vJ,{text:l,children:n}),o[7]=n,o[8]=l,o[9]=r):r=o[9],o[10]!==t||o[11]!==r?(a=(0,h.jsxs)(h.Fragment,{children:[t,r]}),o[10]=t,o[11]=r,o[12]=a):a=o[12],a};v0.propTypes={id:il().string.isRequired,label:il().string.isRequired,tooltip:il().string.isRequired,value:il().string.isRequired,className:il().string};let v1=()=>{let e,t,n,r,a,o,s,i,l,c,u,d,f,p,m,g,b,y,w,x,S,k,_,E,j,C,P,N,T,A,M,R,I,D,H=(0,v.c)(34);return H[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,h.jsx)(tP,{type:"3",children:"Search tips"}),H[0]=e):e=H[0],H[1]===Symbol.for("react.memo_cache_sentinel")?(t=(0,h.jsxs)("div",{children:[e,(0,h.jsxs)(O,{children:[(0,h.jsx)(z,{children:"Hover over the examples within the sample search bars below to see what their results should return"}),(0,h.jsx)(z,{children:'When searching within "All data", terms must be found in the same field to be considered a match'}),(0,h.jsx)(z,{children:"The search function will look for any variations of the word that includes the stem – for example, if deferment is searched, it would return the following variations: deferment, defer, deferred, deferral, etc."})]})]}),H[1]=t):t=H[1],H[2]===Symbol.for("react.memo_cache_sentinel")?(n=(0,h.jsx)(tP,{type:"4",children:"AND / OR / NOT"}),r=(0,h.jsx)(v0,{id:"example-and",label:"Use AND when results must contain all terms",tooltip:"Results would include both call (call, called, calling, etc.) as well as harass (harass, harassed, harassing, etc.).",value:"call AND harass"}),a=(0,h.jsx)(v0,{id:"example-or",label:"Use OR when results should contain at least one of the terms",tooltip:"Results would include either loan (loan, loans, loaned, etc.) or mortage (mortgage, mortgages, etc.).",value:"loan OR mortgage"}),o=(0,h.jsx)(v0,{id:"example-not",label:"Use NOT when results should contain at least one of the terms",tooltip:"Results would only include claim (claim, claims, claimed, etc.) and cannot include the term accident (accident, accidents, etc.)",value:"claim NOT accident"}),H[2]=n,H[3]=r,H[4]=a,H[5]=o):(n=H[2],r=H[3],a=H[4],o=H[5]),H[6]===Symbol.for("react.memo_cache_sentinel")?(s=(0,h.jsxs)("div",{className:"tip-description",children:[(0,h.jsx)(tM,{children:"Use AND when results must contain both terms"}),(0,h.jsx)(tM,{children:"Use OR when results should contain at least one of the terms"}),(0,h.jsx)(tM,{children:"Use NOT when results must not contain the term"})]}),H[6]=s):s=H[6],H[7]===Symbol.for("react.memo_cache_sentinel")?(i=(0,h.jsxs)("div",{className:"tip content-l__col content-l__col-1-3",children:[n,r,a,o,s,(0,h.jsx)(vX,{id:"and-or-not",notes:["The Boolean operators (AND / OR / NOT) must be capitalized","Boolean operators do not honor precedence rules, so parentheses should be used whenever multiple operators are used together – if they are not used correctly (i.e., having multiple operators outside of parentheses), then your results might not return what you intended."],placeholderText:"call AND (harass* OR annoy* OR threat OR repeat) AND NOT spam",tooltipText:"This example would return results that include the word call (called, calling, etc.) and one of the words in the parentheses, but exclude the word spam (spammed, spamming, etc.)."})]}),H[7]=i):i=H[7],H[8]===Symbol.for("react.memo_cache_sentinel")?(c=(0,h.jsx)(tP,{type:"4",children:"Must/Must not contain"}),u=(0,h.jsx)(v0,{id:"example-must-plus",label:"Use + if the search must contain the selected term",tooltip:"Results must include the word foreclosure (foreclosure, foreclosed, etc.).",value:"+foreclosure"}),l=(0,h.jsx)(v0,{id:"example-must-minus",label:"Use - if the search must not contain the selected term",tooltip:"Results cannot include the word collect (collect, collects, collecting, etc.).",value:"-collect"}),H[8]=l,H[9]=c,H[10]=u):(l=H[8],c=H[9],u=H[10]),H[11]===Symbol.for("react.memo_cache_sentinel")?(d=(0,h.jsxs)("div",{className:"tip-description",children:[(0,h.jsx)(tM,{children:"Use + if the search must contain the selected term"}),(0,h.jsx)(tM,{children:"Use - if the search must not contain the selected term"})]}),H[11]=d):d=H[11],H[12]===Symbol.for("react.memo_cache_sentinel")?(f=(0,h.jsxs)("div",{className:"tip content-l__col content-l__col-1-3",children:[c,u,l,d,(0,h.jsx)(vX,{id:"must-or-must-not",notes:['Since the terms "insurance" and "claim" do not have to be included in the results, their appearance will give the result a greater relevance score.',"There cannot be a space between the operator (+ / -) and searched term."],placeholderText:"insurance claim +agent +car -accident",tooltipText:"Results must include the terms agent and car but exclude accident – the terms insurance and claim are optional"})]}),H[12]=f):f=H[12],H[13]===Symbol.for("react.memo_cache_sentinel")?(p=(0,h.jsx)(tP,{type:"4",children:"Wildcard search"}),m=(0,h.jsx)(v0,{id:"example-wc-star",label:"Use * to substitute any consecutive number of characters.",tooltip:'Results would include all terms that start with the base "report" (report, reports, reported, reporting, etc.) and "$*.00" would include all variations of whole number dollar values ($8.00, $1234.00, etc.).',value:"report* AND $*.00"}),g=(0,h.jsx)(v0,{id:"example-wc-question",label:"Use ? to replace any single character anywhere in a term.",tooltip:"Results would return variations such as: woman, women, etc.",value:"wom?n"}),H[13]=p,H[14]=m,H[15]=g):(p=H[13],m=H[14],g=H[15]),H[16]===Symbol.for("react.memo_cache_sentinel")?(b=(0,h.jsxs)("div",{className:"tip content-l__col content-l__col-1-3",children:[p,m,g,(0,h.jsxs)("div",{className:"tip-description",children:[(0,h.jsx)(tM,{children:"Use * to substitute any consecutive number of characters."}),(0,h.jsx)(tM,{children:"Use ? to replace any single character anywhere in a term."})]})]}),H[16]=b):b=H[16],H[17]===Symbol.for("react.memo_cache_sentinel")?(y=(0,h.jsx)(tP,{type:"4",children:"Proximity search"}),w=(0,h.jsx)(v0,{id:"example-proximity",className:"example-input",label:'Use ~[#] at the end of a phrase to search for terms with up to that number of gap words between them; Order does not matter and the terms should be in a single set of quotation marks (" ").',tooltip:'Results would include the terms "auto", "loan", and "default" in any order, with up to three (3) gap words in between them. For example, results could include: "defaulted auto loan", "auto loan that went into default", "Auto Loan with the same defaulted", etc.',value:'"auto loan default"~3'}),H[17]=y,H[18]=w):(y=H[17],w=H[18]),H[19]===Symbol.for("react.memo_cache_sentinel")?(x=(0,h.jsx)("div",{className:"tip-description",children:(0,h.jsx)(tM,{children:'Use ~[#] at the end of a phrase to search for terms with up to that number of gap words between them; Order does not matter and the terms should be in a single set of quotation marks (" ").'})}),H[19]=x):x=H[19],H[20]===Symbol.for("react.memo_cache_sentinel")?(S=(0,h.jsxs)("div",{className:"tip content-l__col content-l__col-1-3",children:[y,w,x,(0,h.jsx)(vX,{id:"proximity",notes:['Proximity phrase search must use straight quotes (" ") versus curly quotes (“ ”), or else the search function will not perform properly',"The closer the specified terms are within the data, the more relevant the search results become."]})]}),H[20]=S):S=H[20],H[21]===Symbol.for("react.memo_cache_sentinel")?(k=(0,h.jsx)(tP,{type:"4",children:"Fuzzy search"}),_=(0,h.jsx)(v0,{id:"example-fuzzy",className:"example-input",label:"Use ~1 at the end of a term to search for terms that are spelled similarly to your keyword within a certain margin of error.",tooltip:"Results would include the correct spelling of escrow, as well as other (potentially misspelled) versions, such as: escrow, escrowed, escro, esrow, etc.",value:"escrow~1"}),H[21]=k,H[22]=_):(k=H[21],_=H[22]),H[23]===Symbol.for("react.memo_cache_sentinel")?(E=(0,h.jsx)("div",{className:"tip-description",children:(0,h.jsx)(tM,{children:"Use ~1 at the end of a term to search for terms that are spelled similarly to your keyword within a certain margin of error."})}),H[23]=E):E=H[23],H[24]===Symbol.for("react.memo_cache_sentinel")?(j=(0,h.jsxs)("div",{className:"tip content-l__col content-l__col-1-3",children:[k,_,E,(0,h.jsx)(vX,{id:"fuzzy",notes:["The search looks for a maximum of two changes in the term, where a change is the insertion, deletion or substitution of a single character or transposition of two adjacent characters (this catches about 80% of misspelled words).","Fuzzy term search can only be used with single terms, it does not support phrases."],placeholderText:"escrow~1 -escrow -escrowed",tooltipText:'Results would return the various misspellings of the word "escrow" that fuzzy term search identifies (after excluding the escrow and escrowed).'})]}),H[24]=j):j=H[24],H[25]===Symbol.for("react.memo_cache_sentinel")?(C=(0,h.jsx)(tP,{type:"4",children:"Boost search"}),P=(0,h.jsx)(v0,{id:"example-boost",className:"example-input",label:"Use ^[#] at the end of a term or terms to increase or decrease its relevance compared to the other term(s).",tooltip:'Results would be sorted by relevance in favor of the term "pay"',value:"pay^2 OR credit"}),H[25]=C,H[26]=P):(C=H[25],P=H[26]),H[27]===Symbol.for("react.memo_cache_sentinel")?(N=(0,h.jsx)("div",{className:"tip-description",children:(0,h.jsx)(tM,{children:"Use ^[#] at the end of a term or terms to increase or decrease its relevance compared to the other term(s)."})}),H[27]=N):N=H[27],H[28]===Symbol.for("react.memo_cache_sentinel")?(T=(0,h.jsxs)("div",{className:"tips content-l",children:[i,f,b,S,j,(0,h.jsxs)("div",{className:"tip content-l__col content-l__col-1-3",children:[C,P,N,(0,h.jsx)(vX,{id:"boost",notes:["A boost value between 0 and 1.0 decreases the relevance score while a value greater than 1.0 increases the relevance score."]})]})]}),H[28]=T):T=H[28],H[29]===Symbol.for("react.memo_cache_sentinel")?(A=(0,h.jsx)(tP,{type:"3",children:"Additional notes:"}),H[29]=A):A=H[29],H[30]===Symbol.for("react.memo_cache_sentinel")?(M=(0,h.jsx)(z,{children:'Putting a phrase only in quotations (" ") will search for the words in that order, but it will not be an exact match – meaning it may include stemmed versions of the term.'}),R=(0,h.jsx)(z,{children:'The default operator is "AND", meaning if you search "foreclosure house", it will search results that include both words (i.e., foreclosure AND house).'}),I=(0,h.jsx)(z,{children:"Capitalization does not have an effect on searched terms (except for the AND / OR / NOT operators)."}),H[30]=M,H[31]=R,H[32]=I):(M=H[30],R=H[31],I=H[32]),H[33]===Symbol.for("react.memo_cache_sentinel")?(D=(0,h.jsxs)("div",{className:"advanced-tips",children:[t,T,(0,h.jsxs)("div",{className:"advanced-tips__footer",children:[A,(0,h.jsxs)(O,{children:[M,R,I,(0,h.jsxs)(z,{children:[(0,h.jsx)(L,{to:"https://docs.opensearch.org/latest/getting-started/intro/",target:"_blank",rel:"noopener noreferrer",iconRight:"external-link",label:"Find out more"})," ","about OpenSearch"]})]})]})]}),H[33]=D):D=H[33],D},v2=e=>{let t,n,r,a,o,s,i,l=(0,v.c)(22),{ariaLabel:c,className:u,htmlId:d,isDisabled:f,handleChange:p,handleClear:m,handlePressEnter:g,placeholder:b,value:y}=e,w=void 0!==f&&f,x=void 0===b?"Enter your search text":b;l[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,h.jsx)(N,{name:"search",isPresentational:!0}),l[0]=t):t=l[0],l[1]!==c||l[2]!==d?(n=(0,h.jsx)("label",{htmlFor:d,className:"o-search-input__input-label","aria-label":c,children:t}),l[1]=c,l[2]=d,l[3]=n):n=l[3];let S="a-text-input a-text-input--full "+(void 0===u?"":u),k=x||c;return l[4]!==p||l[5]!==g||l[6]!==d||l[7]!==w||l[8]!==x||l[9]!==S||l[10]!==k||l[11]!==y?(r=(0,h.jsx)("input",{type:"search",id:d,disabled:w,value:y,onChange:p,onKeyDown:g,className:S,placeholder:x,title:k,autoComplete:"off",maxLength:75}),l[4]=p,l[5]=g,l[6]=d,l[7]=w,l[8]=x,l[9]=S,l[10]=k,l[11]=y,l[12]=r):r=l[12],l[13]!==m?(a=(0,h.jsx)(fH,{onClear:m}),l[13]=m,l[14]=a):a=l[14],l[15]!==n||l[16]!==r||l[17]!==a?(o=(0,h.jsxs)("div",{className:"o-search-input__input",children:[n,r,a]}),l[15]=n,l[16]=r,l[17]=a,l[18]=o):o=l[18],l[19]===Symbol.for("react.memo_cache_sentinel")?(s=(0,h.jsx)(tw,{type:"submit",label:"Search"}),l[19]=s):s=l[19],l[20]!==o?(i=(0,h.jsxs)("div",{className:"o-search-input",children:[o,s]}),l[20]=o,l[21]=i):i=l[21],i},v3=[{value:"all",label:"All data"},{value:"company",label:"Company name"}],v7=()=>{let e,t,n,r,a,o,s,i,l,c,u,d,f,p,m,b,y=(0,v.c)(47),w=rE(),x=rC(lX),S=rC(lZ),k=rC(pt),[_,E]=(0,g.useState)(S),[j,C]=(0,g.useState)(!1),[P,N]=(0,g.useState)(!0),O=j?_:S;y[0]!==w?(e=e=>{e?w(i0()):w(i3())},y[0]=w,y[1]=e):e=y[1];let T=e;y[2]!==w||y[3]!==O?(t=e=>{e.preventDefault(),w(lN(O)),C(!1)},y[2]=w,y[3]=O,y[4]=t):t=y[4];let A=t;y[5]!==w?(n=e=>{(null==e?void 0:e.value)&&w(lP(e.value))},y[5]=w,y[6]=n):n=y[6];let M=n;y[7]!==k||y[8]!==T?(r=e=>{e.preventDefault(),T(k)},y[7]=k,y[8]=T,y[9]=r):r=y[9];let R=r;y[10]!==w?(a=e=>{w(lN(e&&e[0]?e[0].key:""))},y[10]=w,y[11]=a):a=y[11];let z=a;y[12]!==w?(o=()=>{w(lN(""))},y[12]=w,y[13]=o):o=y[13];let I=o;y[14]!==w||y[15]!==P?(s=()=>{P&&(w(lN("")),E(""),C(!1)),N(!0)},y[14]=w,y[15]=P,y[16]=s):s=y[16];let D=s;y[17]!==w?(i=e=>{"Enter"===e.key&&(N(!1),w(lN(e.target.value)),E(e.target.value),C(!1))},y[17]=w,y[18]=i):i=y[18];let H=i;y[19]!==M||y[20]!==x?(l=(0,h.jsx)("div",{className:"search-field-select",children:(0,h.jsx)(tR,{id:"searchField",label:"Choose which field will be searched",options:v3,value:x,onChange:M})}),y[19]=M,y[20]=x,y[21]=l):l=y[21],y[22]!==O||y[23]!==D||y[24]!==H||y[25]!==z||y[26]!==I||y[27]!==x||y[28]!==S?(c=(0,h.jsx)("div",{className:"search-bar__input",children:"company"===x?(0,h.jsx)(fB,{ariaLabel:"Enter your search term(s)",htmlId:"searchText",defaultValue:S,handleChange:z,handleClear:I,handlePressEnter:H,handleSelectionOverride:z,hasClearButton:!0,hasSearchButton:!0,placeholder:"",fieldName:"company"}):(0,h.jsx)(v2,{handleChange:e=>{E(e.target.value),C(!0)},handleClear:D,handlePressEnter:H,htmlId:"searchText",value:O,ariaLabel:"Enter the term you want to search for",placeholder:""})}),y[22]=O,y[23]=D,y[24]=H,y[25]=z,y[26]=I,y[27]=x,y[28]=S,y[29]=c):c=y[29],y[30]===Symbol.for("react.memo_cache_sentinel")?(u=(0,h.jsx)(L,{className:"u-visually-hidden",to:"#search-summary",label:"Skip to Results"}),y[30]=u):u=y[30],y[31]!==l||y[32]!==c?(d=(0,h.jsxs)("div",{className:"search-bar__controls",children:[l,c,u]}),y[31]=l,y[32]=c,y[33]=d):d=y[33],y[34]!==A||y[35]!==d?(f=(0,h.jsx)("form",{action:"",onSubmit:A,children:d}),y[34]=A,y[35]=d,y[36]=f):f=y[36];let F=k?"Hide search tips":"Show search tips",B=k?"minus":"plus";return y[37]!==R||y[38]!==F||y[39]!==B?(p=(0,h.jsx)("div",{className:"search-bar__tips",children:(0,h.jsx)(tw,{label:F,isLink:!0,iconLeft:B,onClick:R})}),y[37]=R,y[38]=F,y[39]=B,y[40]=p):p=y[40],y[41]!==k?(m=k?(0,h.jsx)(v1,{}):null,y[41]=k,y[42]=m):m=y[42],y[43]!==f||y[44]!==p||y[45]!==m?(b=(0,h.jsxs)("div",{className:"search-bar",role:"search",children:[f,p,m]}),y[43]=f,y[44]=p,y[45]=m,y[46]=b):b=y[46],b},v5=()=>{var e;let t,n,r=(0,v.c)(6),{data:a,isLoading:o,isFetching:s}=io("meta"),i=null==a||null==(e=a._meta)?void 0:e.last_indexed;if(r[0]!==i){let e;t=i?(0,h.jsxs)("span",{className:"search-panel__last-updated",children:["(Last updated ",(e=sM()(new Date(i)).utc(),"".concat(sD[e.month()]," ").concat(e.date(),", ").concat(e.year())),")"]}):null,r[0]=i,r[1]=t}else t=r[1];let l=t;return r[2]!==s||r[3]!==o||r[4]!==l?(n=o||s?(0,h.jsx)(iS,{isLoading:!0}):(0,h.jsxs)(tW,{className:"search-panel",children:[(0,h.jsxs)(tP,{type:"3",children:["Search complaint data ",l]}),(0,h.jsx)(v7,{}),(0,h.jsx)(h2,{})]}),r[2]=s,r[3]=o,r[4]=l,r[5]=n):n=r[5],n},v4=()=>{let e,t,n,r,a,o,s,i,l,c,u,d,f,p,m,b,y,w,x,S,k=(0,v.c)(18);f=(0,v.c)(7),p=l2(),m=nT(),f[0]!==p||f[1]!==m.pathname||f[2]!==m.search?(u=()=>{var e,t;p((e=m.pathname,t=function(e,t){s5((t={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,types:Object.create(null),...t}).arrayFormatSeparator);let n=function(e){let t;switch(e.arrayFormat){case"index":return(e,n,r)=>{if(t=/\[(\d*)]$/.exec(e),e=e.replace(/\[\d*]$/,""),!t){r[e]=n;return}void 0===r[e]&&(r[e]={}),r[e][t[1]]=n};case"bracket":return(e,n,r)=>{if(t=/(\[])$/.exec(e),e=e.replace(/\[]$/,""),!t){r[e]=n;return}if(void 0===r[e]){r[e]=[n];return}if(!Array.isArray(r[e])){r[e]=[r[e],n];return}r[e].push(n)};case"colon-list-separator":return(e,n,r)=>{if(t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),!t){r[e]=n;return}if(void 0===r[e]){r[e]=[n];return}if(!Array.isArray(r[e])){r[e]=[r[e],n];return}r[e].push(n)};case"comma":case"separator":return(t,n,r)=>{let a="string"==typeof n&&n.includes(e.arrayFormatSeparator)?n.split(e.arrayFormatSeparator).map(t=>s6(t,e)):null===n?n:s6(n,e);r[t]=a};case"bracket-separator":return(t,n,r)=>{let a=/(\[])$/.test(t);if(t=t.replace(/\[]$/,""),!a){r[t]=n?s6(n,e):n;return}let o=null===n?[]:s6(n,e).split(e.arrayFormatSeparator);if(void 0===r[t]){r[t]=o;return}for(let e of(Array.isArray(r[t])||(r[t]=[r[t]]),o))r[t].push(e)};default:return(e,t,n)=>{if(void 0===n[e]){n[e]=t;return}Array.isArray(n[e])?n[e].push(t):n[e]=[n[e],t]}}}(t),r=Object.create(null);if("string"!=typeof e||!(e=e.trim().replace(/^[?#&]/,""))||/^&+$/.test(e))return r;let a=0,o=e.indexOf("&");-1===o&&(o=e.length);for(let s=o;s<=e.length;s++){if(s<e.length&&"&"!==e[s])continue;if(s===a){a=s+1;continue}let o=e.slice(a,s),i=t.decode?o.replaceAll("+"," "):o,[l,c]=function(e){if("string"!=typeof e)throw TypeError("Expected the arguments to be of type `string`");if(""===e)return[];let t=e.indexOf("=");return -1===t?[]:[e.slice(0,t),e.slice(t+1)]}(i);void 0===l&&(l=i),c=void 0===c?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?c:s6(c,t),n(s6(l,t),c,r),a=s+1}for(let[e,n]of Object.entries(r))if("object"==typeof n&&null!==n&&"string"!==t.types[e])for(let[r,a]of Object.entries(n)){let o=t.types[e],s="function"==typeof o?o:o?o.replace("[]",""):void 0;n[r]=s9(a,t,s)}else"object"==typeof n&&null!==n&&"string"===t.types[e]?r[e]=Object.values(n).join(t.arrayFormatSeparator):r[e]=s9(n,t,t.types[e]);return!1===t.sort?r:(!0===t.sort?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce((e,t)=>{let n=r[t];return e[t]=n&&"object"==typeof n&&!Array.isArray(n)?function e(t){return Array.isArray(t)?t.sort():"object"==typeof t?e(Object.keys(t)).sort((e,t)=>Number(e)-Number(t)).map(e=>t[e]):t}(n):n,e},Object.create(null))}(m.search),function(n,r){let a=r(),o=function(e){let t=rO({},e);for(let e of["search_after","tab"])Object.prototype.hasOwnProperty.call(t,e)&&delete t[e];for(let e of["size","page"])Object.prototype.hasOwnProperty.call(t,e)&&(t[e]=Number(t[e]));return t}(t),s=sM()(t.date_received_max).isValid()&&sM()(t.date_received_min).isValid(),{routes:i}=a;!(i.path===e&&pf()(i.params,o))&&s&&n(iJ(e,o))}))},f[0]=p,f[1]=m.pathname,f[2]=m.search,f[3]=u):u=f[3],f[4]!==p||f[5]!==m?(d=[m,p],f[4]=p,f[5]=m,f[6]=d):d=f[6],(0,g.useEffect)(u,d),w=(0,v.c)(4),x=l3(po),S=l2(),w[0]!==S||w[1]!==x?(b=()=>{var e;let t,n=(e=()=>{x!==window.innerWidth&&S(i8(window.innerWidth))},function(){for(var n=arguments.length,r=Array(n),a=0;a<n;a++)r[a]=arguments[a];clearTimeout(t),t=setTimeout(()=>{t=null,e(...r)},500)});return window.addEventListener("resize",n),n(),()=>window.removeEventListener("resize",n)},y=[S,x],w[0]=S,w[1]=x,w[2]=b,w[3]=y):(b=w[2],y=w[3]),(0,g.useEffect)(b,y);let _=rC(pr),E=hQ(),j=rE();k[0]!==j||k[1]!==_?(e=()=>{_&&j(i6())},k[0]=j,k[1]=_,k[2]=e):e=k[2],h0("afterprint",e),k[3]!==j||k[4]!==_?(t=()=>{_||j(i9())},k[3]=j,k[4]=_,k[5]=t):t=k[5],h0("beforeprint",t),k[6]!==_?(n=()=>{_&&setTimeout(v6,2e3)},r=[_],k[6]=_,k[7]=n,k[8]=r):(n=k[7],r=k[8]),(0,g.useEffect)(n,r);let C="content content--1-3 ccdb-content ".concat(_?"print":"");return k[9]===Symbol.for("react.memo_cache_sentinel")?(a=(0,h.jsx)(lt,{}),k[9]=a):a=k[9],k[10]===Symbol.for("react.memo_cache_sentinel")?(o=(0,h.jsxs)("div",{className:"content__wrapper",children:[(0,h.jsx)(v5,{}),(0,h.jsx)(pw,{}),(0,h.jsx)(pD,{})]}),s=(0,h.jsx)(hZ,{}),i=(0,h.jsx)(pU,{}),k[10]=o,k[11]=s,k[12]=i):(o=k[10],s=k[11],i=k[12]),k[13]!==E?(l=(0,h.jsx)(iS,{isLoading:E}),k[13]=E,k[14]=l):l=k[14],k[15]!==C||k[16]!==l?(c=(0,h.jsxs)("main",{className:C,role:"main",children:[a,o,s,i,l]}),k[15]=C,k[16]=l,k[17]=c):c=k[17],c};function v6(){print()}"/".replace(/\/$/,"").replace(/^$/,"/");(d=p||(p={})).Pop="POP",d.Push="PUSH",d.Replace="REPLACE";var v9=function(e){return e},v8="beforeunload";function ge(e){e.preventDefault(),e.returnValue=""}function gt(){var e=[];return{get length(){return e.length},push:function(t){return e.push(t),function(){e=e.filter(function(e){return e!==t})}},call:function(t){e.forEach(function(e){return e&&e(t)})}}}function gn(e){return t=>n=>{var r;let a,o,s=t(n),i=e.getState();if("routes/routeChanged"===n.type||!i.query.dateLastIndexed)return s;let l=(a=Object.keys((r=i).filters),o=Object.assign({},l$(r.query,["dateRange","company_received_min","company_received_max","date_received_min","date_received_max","searchText","searchField","search_after","size","page","sort"]),l$(r.filters,a),l$(r.view,["debug","tour"])),r.query.searchAfter&&(o.search_after=r.query.searchAfter),o),c=function(e){void 0===e&&(e={});var t=e.window,n=void 0===t?document.defaultView:t,r=n.history;function a(){var e=n.location,t=e.pathname,a=e.search,o=e.hash,s=r.state||{};return[s.idx,v9({pathname:t,search:a,hash:o,state:s.usr||null,key:s.key||"default"})]}var o=null;n.addEventListener("popstate",function(){if(o)d.call(o),o=null;else{var e=p.Pop,t=a(),n=t[0],r=t[1];if(d.length){if(null!=n){var s=l-n;s&&(o={action:e,location:r,retry:function(){b(-1*s)}},b(s))}}else g(e)}});var s=p.Pop,i=a(),l=i[0],c=i[1],u=gt(),d=gt();function f(e){var t,n,r,a,o,s,i;return"string"==typeof e?e:(r=void 0===(n=(t=e).pathname)?"/":n,o=void 0===(a=t.search)?"":a,i=void 0===(s=t.hash)?"":s,o&&"?"!==o&&(r+="?"===o.charAt(0)?o:"?"+o),i&&"#"!==i&&(r+="#"===i.charAt(0)?i:"#"+i),r)}function h(e,t){return void 0===t&&(t=null),v9(l6({pathname:c.pathname,hash:"",search:""},"string"==typeof e?function(e){var t={};if(e){var n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));var r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}(e):e,{state:t,key:Math.random().toString(36).substr(2,8)}))}function m(e,t){return[{usr:e.state,key:e.key,idx:t},f(e)]}function v(e,t,n){return!d.length||(d.call({action:e,location:t,retry:n}),!1)}function g(e){s=e;var t=a();l=t[0],c=t[1],u.call({action:s,location:c})}function b(e){r.go(e)}return null==l&&(l=0,r.replaceState(l6({},r.state,{idx:l}),"")),{get action(){return s},get location(){return c},createHref:f,push:function e(t,a){var o=p.Push,s=h(t,a);if(v(o,s,function(){e(t,a)})){var i=m(s,l+1),c=i[0],u=i[1];try{r.pushState(c,"",u)}catch(e){n.location.assign(u)}g(o)}},replace:function e(t,n){var a=p.Replace,o=h(t,n);if(v(a,o,function(){e(t,n)})){var s=m(o,l),i=s[0],c=s[1];r.replaceState(i,"",c),g(a)}},go:b,back:function(){b(-1)},forward:function(){b(1)},listen:function(e){return u.push(e)},block:function(e){var t=d.push(e);return 1===d.length&&n.addEventListener(v8,ge),function(){t(),d.length||n.removeEventListener(v8,ge)}}}}({basename:void 0}),u=c.location,{queryString:d}=i.routes,f=s8(l);return(""===d||d!==f)&&(c.push({pathname:u.pathname,search:"?"+f}),e.dispatch(iG(u.pathname,l))),s}}let gr=function(e){let t,n,r,a=function(e){let{thunk:t=!0,immutableCheck:n=!0,serializableCheck:r=!0,actionCreatorCheck:a=!0}=e??{},o=new aq;return t&&("boolean"==typeof t?o.push(aB):o.push(aF(t.extraArgument))),o},{reducer:o,middleware:s,devTools:i=!0,duplicateMiddlewareCheck:l=!0,preloadedState:c,enhancers:u}=e||{};if("function"==typeof o)t=o;else if(rz(o))t=rL(o);else throw Error(od(1));n="function"==typeof s?s(a):a();let d=rI;i&&(d=a$({trace:!1,..."object"==typeof i&&i}));let f=(r=function(...e){return t=>(n,r)=>{let a=t(n,r),o=()=>{throw Error(rT(15))},s={getState:a.getState,dispatch:(e,...t)=>o(e,...t)};return o=rI(...e.map(e=>e(s)))(a.dispatch),{...a,dispatch:o}}}(...n),function(e){let{autoBatch:t=!0}=e??{},n=new aq(r);return t&&n.push(((e={type:"raf"})=>t=>(...n)=>{let r,a=t(...n),o=!0,s=!1,i=!1,l=new Set,c="tick"===e.type?queueMicrotask:"raf"===e.type?"u">typeof window&&window.requestAnimationFrame?(r=window.requestAnimationFrame,e=>{let t=!1,n=()=>{t||(t=!0,cancelAnimationFrame(a),clearTimeout(o),e())},a=r(n),o=setTimeout(n,100)}):aQ(10):"callback"===e.type?e.queueNotification:aQ(e.timeout),u=()=>{i=!1,s&&(s=!1,l.forEach(e=>e()))};return Object.assign({},a,{subscribe(e){let t=a.subscribe(()=>o&&e());return l.add(e),()=>{t(),l.delete(e)}},dispatch(e){try{return(s=!(o=!e?.meta?.[aY]))&&!i&&(i=!0,c(u)),a.dispatch(e)}finally{o=!0}}})})("object"==typeof t?t:void 0)),n});return function e(t,n,r){if("function"!=typeof t)throw Error(rT(2));if("function"==typeof n&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw Error(rT(0));if("function"==typeof n&&void 0===r&&(r=n,n=void 0),void 0!==r){if("function"!=typeof r)throw Error(rT(1));return r(e)(t,n)}let a=t,o=n,s=new Map,i=s,l=0,c=!1;function u(){i===s&&(i=new Map,s.forEach((e,t)=>{i.set(t,e)}))}function d(){if(c)throw Error(rT(3));return o}function f(e){if("function"!=typeof e)throw Error(rT(4));if(c)throw Error(rT(5));let t=!0;u();let n=l++;return i.set(n,e),function(){if(t){if(c)throw Error(rT(6));t=!1,u(),i.delete(n),s=null}}}function p(e){if(!rz(e))throw Error(rT(7));if(void 0===e.type)throw Error(rT(8));if("string"!=typeof e.type)throw Error(rT(17));if(c)throw Error(rT(9));try{c=!0,o=a(o,e)}finally{c=!1}return(s=i).forEach(e=>{e()}),e}return p({type:rR.INIT}),{dispatch:p,subscribe:f,getState:d,replaceReducer:function(e){if("function"!=typeof e)throw Error(rT(10));a=e,p({type:rR.REPLACE})},[rA]:function(){return{subscribe(e){if("object"!=typeof e||null===e)throw Error(rT(11));function t(){e.next&&e.next(d())}return t(),{unsubscribe:f(t)}},[rA](){return this}}}}}(t,c,d(..."function"==typeof u?u(f):f()))}({devTools:!0,reducer:{[ie.reducerPath]:ie.reducer,filters:lp,query:lA,routes:iX,view:le},middleware:e=>e().concat(gn,ie.middleware)});f=gr.dispatch,function(){let[e,t,n,r]=[oD,oH,oF,oB].map(e=>()=>f(e()));if(!o$&&"u">typeof window&&window.addEventListener){let a=function(e){Object.entries(o).forEach(([t,n])=>{e?window.addEventListener(t,n,!1):window.removeEventListener(t,n)})},o={focus:e,visibilitychange:()=>{"visible"===window.document.visibilityState?e():t()},[oz]:n,[oL]:r};a(!0),o$=!0}}(),void 0!==globalThis.window&&(globalThis.__ccdbDom={querySelector:iw,querySelectorAll:e=>{let t=ig();if(t&&t.querySelectorAll){let n=t.querySelectorAll(e);if(n.length>0&&n.length>0)return n}return t instanceof ShadowRoot?[]:document.querySelectorAll(e)}});let ga=iy(iv());if(!ga)throw Error("ccdb5-ui mount element not found.");(0,m.createRoot)(ga).render((0,h.jsx)(g.StrictMode,{children:(0,h.jsx)(function(e){let{children:t,context:n,serverState:r,store:a}=e,o=g.useMemo(()=>{let e=function(e){let t,n=rf,r=0,a=!1;function o(){l.onStateChange&&l.onStateChange()}function s(){if(r++,!t){let r,a;t=e.subscribe(o),r=null,a=null,n={clear(){r=null,a=null},notify(){let e=r;for(;e;)e.callback(),e=e.next},get(){let e=[],t=r;for(;t;)e.push(t),t=t.next;return e},subscribe(e){let t=!0,n=a={callback:e,next:null,prev:a};return n.prev?n.prev.next=n:r=n,function(){t&&null!==r&&(t=!1,n.next?n.next.prev=n.prev:a=n.prev,n.prev?n.prev.next=n.next:r=n.next)}}}}}function i(){r--,t&&0===r&&(t(),t=void 0,n.clear(),n=rf)}let l={addNestedSub:function(e){s();let t=n.subscribe(e),r=!1;return()=>{r||(r=!0,t(),i())}},notifyNestedSubs:function(){n.notify()},handleChangeWrapper:o,isSubscribed:function(){return a},trySubscribe:function(){a||(a=!0,s())},tryUnsubscribe:function(){a&&(a=!1,i())},getListeners:()=>n};return l}(a);return{store:a,subscription:e,getServerState:r?()=>r:void 0}},[a,r]),s=g.useMemo(()=>a.getState(),[a]);return rm(()=>{let{subscription:e}=o;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),s!==a.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}},[o,s]),g.createElement((n||rw).Provider,{value:o},t)},{store:gr,children:(0,h.jsx)(function(){let e,t,n,r,a,s,i=(0,v.c)(6);return i[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,h.jsx)(nW,{index:!0,element:(0,h.jsx)(v4,{})}),i[0]=e):e=i[0],i[1]===Symbol.for("react.memo_cache_sentinel")?(t=(0,h.jsx)(nW,{path:"/data-research/consumer-complaints/search",element:(0,h.jsx)(v4,{})}),i[1]=t):t=i[1],i[2]===Symbol.for("react.memo_cache_sentinel")?(n=(0,h.jsx)(nW,{path:"/data-research/consumer-complaints/search/detail/:id",element:(0,h.jsx)(iV,{})}),i[2]=n):n=i[2],i[3]===Symbol.for("react.memo_cache_sentinel")?(r=(0,h.jsx)(nW,{path:"/detail/:id",element:(0,h.jsx)(iV,{})}),i[3]=r):r=i[3],i[4]===Symbol.for("react.memo_cache_sentinel")?(a=(0,h.jsx)(nW,{path:"/export/",element:(0,h.jsx)(lR,{})}),i[4]=a):a=i[4],i[5]===Symbol.for("react.memo_cache_sentinel")?(s=(0,h.jsx)(ri,{basename:o,children:(0,h.jsx)(R,{LinkComponent:iU,children:(0,h.jsxs)(nK,{children:[e,t,n,r,a,(0,h.jsx)(nW,{path:"/data-research/consumer-complaints/search/export/",element:(0,h.jsx)(lR,{})})]})})}),i[5]=s):s=i[5],s},{})})}))})()})();
|