PageSourceSearch

https://www.charitynavigator.org/_next/static/chunks/da685212ddf1e064.js

js charitynavigator.org collected 2026-09-24 08:24:40 UTC 76,576 bytes, 4 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,91310,(e,t,n)=>{!function(n,i){if("function"==typeof define&&define.amd){let t;void 0!==(t=i())&&e.v(t)}else t.exports=i()}(e.e,function(){"use strict";function e(e,t){var n,i,o;for(n=1,i=arguments.length;n<i;++n)if(t=arguments[n],null!=t)for(o in t)s(t,o)&&(e[o]=t[o]);return e}function t(e,t){return t.length-e.length}function n(e,t){return e.factor-t.factor}function i(e,t){var n;for(n in e)s(e,n)&&t(e[n],n)}var o,s=(o=Object.prototype.hasOwnProperty,function(e,t){return null!=e&&o.call(e,t)});function r(e,t){for(;"string"==typeof t;)t=e[t];return t}function l(e){this._prefixes=e;var o=[],r=[];i(e,function(e,t){o.push(t.replace(/([.*+?=^!:${}()|[\]/\\])/g,"\\$1")),r.push({factor:e,prefix:t})});var l=this._lcPrefixes={};i(e,function(t,n){var i=n.toLowerCase();s(e,i)||(l[i]=n)}),r.sort(n),this._list=r,o.sort(t),this._regexp=RegExp("^\\s*(-)?\\s*(\\d+(?:\\.\\d+)?)\\s*("+o.join("|")+")\\s*(.*)\\s*?$","i")}l.create=function(e,t,n){var i,o,s,r,a={};void 0===n&&(n=0);for(s=0,r=e.length;s<r;++s){i=e[s],o=s,a[i]=Math.pow(t,o+n)}return new l(a)},l.prototype.findPrefix=function(e){for(var t,n=this._list,i=0,o=n.length-1;i!==o;)n[t=i+o+1>>1].factor>e?o=t-1:i=t;return n[i]},l.prototype.parse=function(e,t){var n,i=e.match(this._regexp);if(null!==i){var o=i[3];if(s(this._prefixes,o))n=this._prefixes[o];else{if(!(!t&&(o=o.toLowerCase(),s(this._lcPrefixes,o))))return;o=this._lcPrefixes[o],n=this._prefixes[o]}var r=+i[2];return void 0!==i[1]&&(r=-r),{factor:n,prefix:o,unit:i[4],value:r}}};var a={binary:l.create(",Ki,Mi,Gi,Ti,Pi,Ei,Zi,Yi".split(","),1024),SI:l.create("y,z,a,f,p,n,µ,m,,k,M,G,T,P,E,Z,Y".split(","),1e3,-8)},u={maxDecimals:2,separator:" ",unit:""},c={scale:"SI",strict:!1};function d(t,n){var i=(n=e({},u,n)).decimals;void 0!==i&&delete n.maxDecimals;var o=m(t,n);t=void 0!==i?o.value.toFixed(i):String(o.value);var s=o.prefix+n.unit;return""===s?t:t+n.separator+s}var f={scale:"binary",unit:"B"};function h(e,t){var n=p(e,t);return n.value*n.factor}function p(t,n){if("string"!=typeof t)throw TypeError("str must be a string");var i=r(a,(n=e({},c,n)).scale);if(void 0===i)throw Error("missing scale");var o=i.parse(t,n.strict);if(void 0===o)throw Error("cannot parse str");return o}function m(t,n){if(0===t)return{value:0,prefix:""};if(t<0){var i,o,l=m(-t,n);return l.value=-l.value,l}if("number"!=typeof t||Number.isNaN(t))throw TypeError("value must be a number");var u=r(a,(n=e({},c,n)).scale);if(void 0===u)throw Error("missing scale");var d=n.maxDecimals,f="auto"===d;f?i=10:void 0!==d&&(i=Math.pow(10,d));var h=n.prefix;if(void 0!==h){if(!s(u._prefixes,h))throw Error("invalid prefix");o=u._prefixes[h]}else{var p=u.findPrefix(t);if(void 0!==i)do{var v=(o=p.factor)/i;t=Math.round(t/v)*v}while((p=u.findPrefix(t)).factor!==o)else o=p.factor;h=p.prefix}return t=void 0===i?t/o:Math.round(t*i/o)/i,f&&Math.abs(t)>=10&&(t=Math.round(t)),{prefix:h,value:t}}return d.bytes=function(t,n){return d(t,void 0===n?f:e({},f,n))},d.parse=h,h.raw=p,d.raw=m,d.Scale=l,d})},36891,25601,e=>{"use strict";let t,n,i,o;var s,r=((s={}).LIST="LIST",s.FUND="FUND",s);function l(e){return`${(+(e??0)).toFixed(0)}%`}e.s(["CuratedItemType",()=>r,"formatSearchResultScorePercent",()=>l],36891);var a=e.i(43476),u=e.i(29427),c=e.i(71330),d=e.i(71645),f=e.i(74080);function h(e,t,n){let i,o=n.initialDeps??[],s=!0;function r(){var r,l,a;let u,c;n.key&&(null==(r=n.debug)?void 0:r.call(n))&&(u=Date.now());let d=e();if(!(d.length!==o.length||d.some((e,t)=>o[t]!==e)))return i;if(o=d,n.key&&(null==(l=n.debug)?void 0:l.call(n))&&(c=Date.now()),i=t(...d),n.key&&(null==(a=n.debug)?void 0:a.call(n))){let e=Math.round((Date.now()-u)*100)/100,t=Math.round((Date.now()-c)*100)/100,i=t/16,o=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e;return e};console.info(`%c⏱ ${o(t,5)} /${o(e,5)} ms`,`
2            font-size: .6rem;
3            font-weight: bold;
4            color: hsl(${Math.max(0,Math.min(120-120*i,120))}deg 100% 31%);`,null==n?void 0:n.key)}return(null==n?void 0:n.onChange)&&!(s&&n.skipInitialOnChange)&&n.onChange(i),s=!1,i}return r.updateDeps=e=>{o=e},r}function p(e,t){if(void 0!==e)return e;throw Error(`Unexpected undefined${t?`: ${t}`:""}`)}e.i(47167);let m=e=>{let{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},v=e=>e,g=e=>{let t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),i=[];for(let e=t;e<=n;e++)i.push(e);return i},w=(e,t)=>{let n=e.scrollElement;if(!n)return;let i=e.targetWindow;if(!i)return;let o=e=>{let{width:n,height:i}=e;t({width:Math.round(n),height:Math.round(i)})};if(o(m(n)),!i.ResizeObserver)return()=>{};let s=new i.ResizeObserver(t=>{let i=()=>{let e=t[0];if(null==e?void 0:e.borderBoxSize){let t=e.borderBoxSize[0];if(t)return void o({width:t.inlineSize,height:t.blockSize})}o(m(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(i):i()});return s.observe(n,{box:"border-box"}),()=>{s.unobserve(n)}},x={passive:!0},b="u"<typeof window||"onscrollend"in window,S=(e,t)=>{var n,i;let o,s=e.scrollElement;if(!s)return;let r=e.targetWindow;if(!r)return;let l=0,a=e.options.useScrollendEvent&&b?()=>void 0:(n=()=>{t(l,!1)},i=e.options.isScrollingResetDelay,function(...e){r.clearTimeout(o),o=r.setTimeout(()=>n.apply(this,e),i)}),u=n=>()=>{let{horizontal:i,isRtl:o}=e.options;l=i?s.scrollLeft*(o&&-1||1):s.scrollTop,a(),t(l,n)},c=u(!0),d=u(!1);s.addEventListener("scroll",c,x);let f=e.options.useScrollendEvent&&b;return f&&s.addEventListener("scrollend",d,x),()=>{s.removeEventListener("scroll",c),f&&s.removeEventListener("scrollend",d)}},y=(e,t,n)=>{if(null==t?void 0:t.borderBoxSize){let e=t.borderBoxSize[0];if(e)return Math.round(e[n.options.horizontal?"inlineSize":"blockSize"])}return e[n.options.horizontal?"offsetWidth":"offsetHeight"]}
4,E=(e,{adjustments:t=0,behavior:n},i)=>{var o,s;null==(s=null==(o=i.scrollElement)?void 0:o.scrollTo)||s.call(o,{[i.options.horizontal?"left":"top"]:e+t,behavior:n})};class O{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.currentScrollToIndex=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.laneAssignments=new Map,this.pendingMeasuredCacheIndexes=[],this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let e=null,t=()=>e||(this.targetWindow&&this.targetWindow.ResizeObserver?e=new this.targetWindow.ResizeObserver(e=>{e.forEach(e=>{let t=()=>{this._measureElement(e.target,e)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(t):t()})}):null);return{disconnect:()=>{var n;null==(n=t())||n.disconnect(),e=null},observe:e=>{var n;return null==(n=t())?void 0:n.observe(e,{box:"border-box"})},unobserve:e=>{var n;return null==(n=t())?void 0:n.unobserve(e)}}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach(([t,n])=>{void 0===n&&delete e[t]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:v,rangeExtractor:g,onChange:()=>{},measureElement:y,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...e}},this.notify=e=>{var t,n;null==(n=(t=this.options).onChange)||n.call(t,this,e)},this.maybeNotify=h(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var e;let t=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==t){if(this.cleanup(),!t)return void this.maybeNotify();this.scrollElement=t,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(null==(e=this.scrollElement)?void 0:e.window)??null,this.elementsCache.forEach(e=>{this.observer.observe(e)}),this.unsubs.push(this.options.observeElementRect(this,e=>{this.scrollRect=e,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(e,t)=>{this.scrollAdjustments=0,this.scrollDirection=t?this.getScrollOffset()<e?"forward":"backward":null,this.scrollOffset=e,this.isScrolling=t,this.maybeNotify()})),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}}
4,this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??("function"==typeof this.options.initialOffset?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(e,t)=>{let n=new Map,i=new Map;for(let o=t-1;o>=0;o--){let t=e[o];if(n.has(t.lane))continue;let s=i.get(t.lane);if(null==s||t.end>s.end?i.set(t.lane,t):t.end<s.end&&n.set(t.lane,!0),n.size===this.options.lanes)break}return i.size===this.options.lanes?Array.from(i.values()).sort((e,t)=>e.end===t.end?e.index-t.index:e.end-t.end)[0]:void 0},this.getMeasurementOptions=h(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes],(e,t,n,i,o,s)=>(void 0!==this.prevLanes&&this.prevLanes!==s&&(this.lanesChangedFlag=!0),this.prevLanes=s,this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:t,scrollMargin:n,getItemKey:i,enabled:o,lanes:s}),{key:!1}),this.getMeasurements=h(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:t,scrollMargin:n,getItemKey:i,enabled:o,lanes:s},r)=>{if(!o)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>e)for(let t of this.laneAssignments.keys())t>=e&&this.laneAssignments.delete(t);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMeasuredCacheIndexes=[]),0!==this.measurementsCache.length||this.lanesSettling||(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(e=>{this.itemSizeCache.set(e.key,e.size)}));let l=this.lanesSettling?0:this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[],this.lanesSettling&&this.measurementsCache.length===e&&(this.lanesSettling=!1);let a=this.measurementsCache.slice(0,l),u=Array(s).fill(void 0);for(let e=0;e<l;e++){let t=a[e];t&&(u[t.lane]=e)}for(let o=l;o<e;o++){let e,s,l=i(o),c=this.laneAssignments.get(o);if(void 0!==c&&this.options.lanes>1){let i=u[e=c],o=void 0!==i?a[i]:void 0;s=o?o.end+this.options.gap:t+n}else{let i=1===this.options.lanes?a[o-1]:this.getFurthestMeasurement(a,o);s=i?i.end+this.options.gap:t+n,e=i?i.lane:o%this.options.lanes,this.options.lanes>1&&this.laneAssignments.set(o,e)}let d=r.get(l),f="number"==typeof d?d:this.options.estimateSize(o),h=s+f;a[o]={index:o,start:s,size:f,end:h,key:l,lane:e},u[e]=o}return this.measurementsCache=a,a},{key:!1,debug:()=>this.options.debug}),this.calculateRange=h(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(e,t,n,i)=>this.range=e.length>0&&t>0?function({measurements:e,outerSize:t,scrollOffset:n,lanes:i}){let o=e.length-1;if(e.length<=i)return{startIndex:0,endIndex:o};let s=C(0,o,t=>e[t].start,n),r=s;if(1===i)for(;r<o&&e[r].end<n+t;)r++;else if(i>1){let l=Array(i).fill(0);for(;r<o&&l.some(e=>e<n+t);){let t=e[r];l[t.lane]=t.end,r++}let a=Array(i).fill(n+t);for(;s>=0&&a.some(e=>e>=n);){let t=e[s];a[t.lane]=t.start,s--}s=Math.max(0,s-s%i),r=Math.min(o,r+(i-1-r%i))}return{startIndex:s,endIndex:r}}({measurements:e,outerSize:t,scrollOffset:n,lanes:i}):null,{key:!1,debug:()=>this.options.debug}
4),this.getVirtualIndexes=h(()=>{let e=null,t=null,n=this.calculateRange();return n&&(e=n.startIndex,t=n.endIndex),this.maybeNotify.updateDeps([this.isScrolling,e,t]),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,t]},(e,t,n,i,o)=>null===i||null===o?[]:e({startIndex:i,endIndex:o,overscan:t,count:n}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{let t=this.options.indexAttribute,n=e.getAttribute(t);return n?parseInt(n,10):(console.warn(`Missing attribute name '${t}={index}' on measured element.`),-1)},this._measureElement=(e,t)=>{let n=this.indexFromElement(e),i=this.measurementsCache[n];if(!i)return;let o=i.key,s=this.elementsCache.get(o);s!==e&&(s&&this.observer.unobserve(s),this.observer.observe(e),this.elementsCache.set(o,e)),e.isConnected&&this.resizeItem(n,this.options.measureElement(e,t,this))},this.resizeItem=(e,t)=>{let n=this.measurementsCache[e];if(!n)return;let i=t-(this.itemSizeCache.get(n.key)??n.size);0!==i&&((void 0!==this.shouldAdjustScrollPositionOnItemSizeChange?this.shouldAdjustScrollPositionOnItemSizeChange(n,i,this):n.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=i,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(n.index),this.itemSizeCache=new Map(this.itemSizeCache.set(n.key,t)),this.notify(!1))},this.measureElement=e=>{e?this._measureElement(e,void 0):this.elementsCache.forEach((e,t)=>{e.isConnected||(this.observer.unobserve(e),this.elementsCache.delete(t))})},this.getVirtualItems=h(()=>
4[this.getVirtualIndexes(),this.getMeasurements()],(e,t)=>{let n=[];for(let i=0,o=e.length;i<o;i++){let o=t[e[i]];n.push(o)}return n},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{let t=this.getMeasurements();if(0!==t.length)return p(t[C(0,t.length-1,e=>p(t[e]).start,e)])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if("scrollHeight"in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{let e=this.scrollElement.document.documentElement;return this.options.horizontal?e.scrollWidth-this.scrollElement.innerWidth:e.scrollHeight-this.scrollElement.innerHeight}},this.getOffsetForAlignment=(e,t,n=0)=>{if(!this.scrollElement)return 0;let i=this.getSize(),o=this.getScrollOffset();return"auto"===t&&(t=e>=o+i?"end":"start"),"center"===t?e+=(n-i)/2:"end"===t&&(e-=i),Math.max(Math.min(this.getMaxScrollOffset(),e),0)},this.getOffsetForIndex=(e,t="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));let n=this.measurementsCache[e];if(!n)return;let i=this.getSize(),o=this.getScrollOffset();if("auto"===t)if(n.end>=o+i-this.options.scrollPaddingEnd)t="end";else{if(!(n.start<=o+this.options.scrollPaddingStart))return[o,t];t="start"}if("end"===t&&e===this.options.count-1)return[this.getMaxScrollOffset(),t];let s="end"===t?n.end+this.options.scrollPaddingEnd:n.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(s,t,n.size),t]},this.isDynamicMode=()=>this.elementsCache.size>0,this.scrollToOffset=(e,{align:t="start",behavior:n}={})=>{"smooth"===n&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(e,t),{adjustments:void 0,behavior:n})},this.scrollToIndex=(e,{align:t="auto",behavior:n}={})=>{"smooth"===n&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),e=Math.max(0,Math.min(e,this.options.count-1)),this.currentScrollToIndex=e;let i=0,o=t=>{if(!this.targetWindow)return;let i=this.getOffsetForIndex(e,t);if(!i)return void console.warn("Failed to get offset for index:",e);let[o,r]=i;this._scrollToOffset(o,{adjustments:void 0,behavior:n}),this.targetWindow.requestAnimationFrame(()=>{let t=()=>{if(this.currentScrollToIndex!==e)return;let t=this.getScrollOffset(),n=this.getOffsetForIndex(e,r);n?1.01>Math.abs(n[0]-t)||s(r):console.warn("Failed to get offset for index:",e)};this.isDynamicMode()?this.targetWindow.requestAnimationFrame(t):t()})},s=t=>{this.targetWindow&&this.currentScrollToIndex===e&&(++i<10?this.targetWindow.requestAnimationFrame(()=>o(t)):console.warn(`Failed to scroll to index ${e} after 10 attempts.`))};o(t)},this.scrollBy=(e,{behavior:t}={})=>{"smooth"===t&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+e,{adju
4stments:void 0,behavior:t})},this.getTotalSize=()=>{var e;let t,n=this.getMeasurements();if(0===n.length)t=this.options.paddingStart;else if(1===this.options.lanes)t=(null==(e=n[n.length-1])?void 0:e.end)??0;else{let e=Array(this.options.lanes).fill(null),i=n.length-1;for(;i>=0&&e.some(e=>null===e);){let t=n[i];null===e[t.lane]&&(e[t.lane]=t.end),i--}t=Math.max(...e.filter(e=>null!==e))}return Math.max(t-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,{adjustments:t,behavior:n})=>{this.options.scrollToFn(e,{behavior:n,adjustments:t},this)},this.measure=()=>{this.itemSizeCache=new Map,this.laneAssignments=new Map,this.notify(!1)},this.setOptions(e)}}let C=(e,t,n,i)=>{for(;e<=t;){let o=(e+t)/2|0,s=n(o);if(s<i)e=o+1;else{if(!(s>i))return o;t=o-1}}return e>0?e-1:0},I="u">typeof document?d.useLayoutEffect:d.useEffect;var T=e.i(94487),M=e.i(36289),R=e.i(3269),j=e.i(14520),N=e.i(46725),F=e.i(92704),P=e.i(14189),A=e.i(88374),k=e.i(84653),D=e.i(35696),_=e.i(41444),V=e.i(77891),z=e.i(52744),L=e.i(5083),B=e.i(57138),W=e.i(13581),$=e.i(2155),H=e.i(93456);function K(e){let t=(0,d.useRef)({value:"",selectionStart:null,selectionEnd:null});return(0,H.useEventListener)(e,"blur",e=>{let n=e.target;W.isHTMLInputElement(n)&&(t.current={value:n.value,selectionStart:n.selectionStart,selectionEnd:n.selectionEnd})}),(0,P.useEvent)(()=>{if(!(0,$.isActiveElement)(e)&&W.isHTMLInputElement(e)&&e.isConnected){if(e.focus({preventScroll:!0}),e.value!==t.current.value)e.setSelectionRange(e.value.length,e.value.length);else{let{selectionStart:n,selectionEnd:i}=t.current;null!==n&&null!==i&&e.setSelectionRange(n,i)}t.current={value:"",selectionStart:null,selectionEnd:null}}})}var U=e.i(44279),G=e.i(1852),q=e.i(55743),Y=e.i(94316),Z=e.i(71616),J=e.i(83733),Q=e.i(40143),X=e.i(33633),ee=e.i(1893),et=e.i(19751),en=e.i(40721),ei=e.i(4016),eo=e.i(42803),es=e.i(33137),er=e.i(41650),el=e.i(40407),ea=e.i(3935),eu=e.i(65659),ec=e.i(44508),ed=e.i(97701),ef=e.i(9507),eh=e.i(20),ep=e.i(35889),em=e.i(98348),ev=e.i(22678),eg=e.i(63516),ew=e.i(35307),ex=e.i(25720),eb=e.i(67310),eS=e.i(52265),ey=Object.defineProperty,eE=(e,t,n)=>{let i;return(i="symbol"!=typeof t?t+"":t)in e?ey(e,i,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[i]=n,n},eO=((t=eO||{})[t.Open=0]="Open",t[t.Closed=1]="Closed",t),eC=((n=eC||{})[n.Single=0]="Single",n[n.Multi=1]="Multi",n),eI=((i=eI||{})[i.Pointer=0]="Pointer",i[i.Focus=1]="Focus",i[i.Other=2]="Other",i),eT=((o=eT||{})[o.OpenCombobox=0]="OpenCombobox",o[o.CloseCombobox=1]="CloseCombobox",o[o.GoToOption=2]="GoToOption",o[o.SetTyping=3]="SetTyping",o[o.RegisterOption=4]="RegisterOption",o[o.UnregisterOption=5]="UnregisterOption",o[o.DefaultToFirstOption=6]="DefaultToFirstOption",o[o.SetActivationTrigger=7]="SetActivationTrigger",o[o.UpdateVirtualConfiguration=8]="UpdateVirtualConfiguration",o[o.SetInputElement=9]="SetInputElement",o[o.SetButtonElement=10]="SetButtonElement",o[o.SetOptionsElement=11]="SetOptionsElement",o[o.MarkInputAsMoved=12]="MarkInputAsMoved",o);function eM(e,t=e=>e){let n=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,i=t(e.options.slice()),o=i.length>0&&null!==i[0].dataRef.current.order?i.sort((e,t)=>e.dataRef.current.order-t.dataRef.current.order):(0,eS.sortByDomNode)(i,e=>e.dataRef.current.domRef.current),s=n?o.indexOf(n):null;return -1===s&&(s=null),{options:o,activeOptionIndex:s}}let eR={1(e){var t;if(null!=(t=e.dataRef.current)&&t.disabled||1===e.comboboxState)return e;let n=e.inputElement?eb.ElementPositionState.Tracked((0,eb.computeVisualPosition)(e.inputElement)):e.inputPositionState;return{...e,activeOptionIndex:null,comboboxState:1,isTyping:!1,activationTrigger:2,inputPositionState:n,__demoMode:!1}},0(e){var t,n;if(null!=(t=e.dataRef.current)&&t.disabled||0===e.comboboxState)return e;if(null!=(n=e.dataRef.current)&&n.value){let t=e.dataRef.current.calculateIndex(e.dataRef.current.value);if(-1!==t)return{...e,activeOptionIndex:t,comboboxState:0,__demoMode:!1,inputPositionState:eb.ElementPositionState.Idle}}return{...e,comboboxState:0,inputPositionState:eb.ElementPositionState.Idle,__demoMode:!1}},3:(e,t)=>
4e.isTyping===t.isTyping?e:{...e,isTyping:t.isTyping},2(e,t){var n,i,o,s;if(null!=(n=e.dataRef.current)&&n.disabled||e.optionsElement&&!(null!=(i=e.dataRef.current)&&i.optionsPropsRef.current.static)&&1===e.comboboxState)return e;if(e.virtual){let{options:n,disabled:i}=e.virtual,s=t.focus===eu.Focus.Specific?t.idx:(0,eu.calculateActiveIndex)(t,{resolveItems:()=>n,resolveActiveIndex:()=>{var t,o;return null!=(o=null!=(t=e.activeOptionIndex)?t:n.findIndex(e=>!i(e)))?o:null},resolveDisabled:i,resolveId(){throw Error("Function not implemented.")}}),r=null!=(o=t.trigger)?o:2;return e.activeOptionIndex===s&&e.activationTrigger===r?e:{...e,activeOptionIndex:s,activationTrigger:r,isTyping:!1,__demoMode:!1}}let r=eM(e);if(null===r.activeOptionIndex){let e=r.options.findIndex(e=>!e.dataRef.current.disabled);-1!==e&&(r.activeOptionIndex=e)}let l=t.focus===eu.Focus.Specific?t.idx:(0,eu.calculateActiveIndex)(t,{resolveItems:()=>r.options,resolveActiveIndex:()=>r.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled}),a=null!=(s=t.trigger)?s:2;return e.activeOptionIndex===l&&e.activationTrigger===a?e:{...e,...r,isTyping:!1,activeOptionIndex:l,activationTrigger:a,__demoMode:!1}},4:(e,t)=>{var n,i,o,s;if(null!=(n=e.dataRef.current)&&n.virtual)return{...e,options:[...e.options,t.payload]};let r=t.payload,l=eM(e,e=>(e.push(r),e));null===e.activeOptionIndex&&null!=(o=(i=e.dataRef.current).isSelected)&&o.call(i,t.payload.dataRef.current.value)&&(l.activeOptionIndex=l.options.indexOf(r));let a={...e,...l,activationTrigger:2};return null!=(s=e.dataRef.current)&&s.__demoMode&&void 0===e.dataRef.current.value&&(a.activeOptionIndex=0),a},5:(e,t)=>{var n;if(null!=(n=e.dataRef.current)&&n.virtual)return{...e,options:e.options.filter(e=>e.id!==t.id)};let i=eM(e,e=>{let n=e.findIndex(e=>e.id===t.id);return -1!==n&&e.splice(n,1),e});return{...e,...i,activationTrigger:2}},6:(e,t)=>e.defaultToFirstOption===t.value?e:{...e,defaultToFirstOption:t.value},7:(e,t)=>e.activationTrigger===t.trigger?e:{...e,activationTrigger:t.trigger},8:(e,t)=>
4{var n,i;if(null===e.virtual)return{...e,virtual:{options:t.options,disabled:null!=(n=t.disabled)?n:()=>!1}};if(e.virtual.options===t.options&&e.virtual.disabled===t.disabled)return e;let o=e.activeOptionIndex;if(null!==e.activeOptionIndex){let n=t.options.indexOf(e.virtual.options[e.activeOptionIndex]);o=-1!==n?n:null}return{...e,activeOptionIndex:o,virtual:{options:t.options,disabled:null!=(i=t.disabled)?i:()=>!1}}},9:(e,t)=>e.inputElement===t.element?e:{...e,inputElement:t.element},10:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},11:(e,t)=>e.optionsElement===t.element?e:{...e,optionsElement:t.element},12:e=>"Tracked"!==e.inputPositionState.kind?e:{...e,inputPositionState:eb.ElementPositionState.Moved}};class ej extends ex.Machine{constructor(e){super(e),eE(this,"actions",{onChange:e=>{let{onChange:t,compare:n,mode:i,value:o}=this.state.dataRef.current;return(0,ed.match)(i,{0:()=>null==t?void 0:t(e),1:()=>{let i=o.slice(),s=i.findIndex(t=>n(t,e));return -1===s?i.push(e):i.splice(s,1),null==t?void 0:t(i)}})},registerOption:(e,t)=>(this.send({type:4,payload:{id:e,dataRef:t}}),()=>{this.state.activeOptionIndex===this.state.dataRef.current.calculateIndex(t.current.value)&&this.send({type:6,value:!0}),this.send({type:5,id:e})}),goToOption:(e,t)=>(this.send({type:6,value:!1}),this.send({type:2,...e,trigger:t})),setIsTyping:e=>{this.send({type:3,isTyping:e})},closeCombobox:()=>{var e,t;this.send({type:1}),this.send({type:6,value:!1}),null==(t=(e=this.state.dataRef.current).onClose)||t.call(e)},openCombobox:()=>{this.send({type:0}),this.send({type:6,value:!0})},setActivationTrigger:e=>{this.send({type:7,trigger:e})},selectActiveOption:()=>{let e=this.selectors.activeOptionIndex(this.state);if(null!==e){if(this.actions.setIsTyping(!1),this.state.virtual)this.actions.onChange(this.state.virtual.options[e]);else{let{dataRef:t}=this.state.options[e];this.actions.onChange(t.current.value)}this.actions.goToOption({focus:eu.Focus.Specific,idx:e})}},setInputElement:e=>{this.send({type:9,element:e})},setButtonElement:e=>{this.send({type:10,element:e})},setOptionsElement:e=>{this.send({type:11,element:e})}}),eE(this,"selectors",{activeDescendantId:e=>{var t,n;let i=this.selectors.activeOptionIndex(e);if(null!==i)return e.virtual?null==(n=e.options.find(t=>!t.dataRef.current.disabled&&e.dataRef.current.compare(t.dataRef.current.value,e.virtual.options[i])))?void 0:n.id:null==(t=e.options[i])?void 0:t.id},activeOptionIndex:e=>{if(e.defaultToFirstOption&&null===e.activeOptionIndex&&(e.virtual?e.virtual.options.length>0:e.options.length>0)){if(e.virtual){let{options:t,disabled:n}=e.virtual,i=t.findIndex(e=>{var t;return!(null!=(t=null==n?void 0:n(e))&&t)});if(-1!==i)return i}let t=e.options.findIndex(e=>!e.dataRef.current.disabled);if(-1!==t)return t}return e.activeOptionIndex},activeOption:e=>{var t,n;let i=this.selectors.activeOptionIndex(e);return null===i?null:e.virtual?e.virtual.options[null!=i?i:0]:null!=(n=null==(t=e.options[i])?void 0:t.dataRef.current.value)?n:null},isActive:(e,t,n)=>{var i;let o=this.selectors.activeOptionIndex(e);return null!==o&&(e.virtual?o===e.dataRef.current.calculateIndex(t):(null==(i=e.options[o])?void 0:i.id)===n)},shouldScrollIntoView:(e,t,n)=>!(e.virtual||e.__demoMode||0!==e.comboboxState||0===e.activationTrigger||!this.selectors.isActive(e,t,n)),didInputMove:e=>"Moved"===e.inputPositionState.kind});{let e=this.state.id,t=er.stackMachines.get(null);this.disposables.add(t.on(er.ActionTypes.Push,n=>{t.selectors.isTop(n,e)||0!==this.state.comboboxState||this.actions.closeCombobox()})),this.on(0,()=>t.actions.push(e)),this.on(1,()=>t.actions.pop(e))}this.disposables.group(e=>{this.on(1,t=>{t.inputElement&&(e.dispose(),e.add((0,eb.detectMovement)(t.inputElement,t.inputPositionState,()=>{this.send({type:12})})))})})}static new({id:e,virtual:t=null,__demoMode:n=!1}){var i;return new ej({id:e,dataRef:{current:{}},comboboxState:+!n,isTyping:!1,options:[],virtual:t?{options:t.options,disabled:null!=(i=t.disabled)?i:()=>!1}:null,activeOptionIndex:null,activationTrigger:2,inputElement:null,buttonElement:null,optionsElement:null,__demoMode:n,inputPositionState:eb.ElementPositionState.Idle})}reduce(e,t){return(0,ed.match)(t.type,eR,e,t)}}var eN=e.i(26599);let eF=(0,d.createContext)(null);function eP(e){let t=(0,d.useContext)(eF);if(null===t){let t=Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,eA),t}return t}function eA({id:e,virtual:t=null,__demoMode:n=!1}){let i=(0,d.useMemo)(()=>ej.new({id:e,virtual:t,__demoMode:n}),[]);return(0,eN.useOnUnmount)(()=>i.dispose()),i}let ek=(0,d.createContext)(null);function eD(e){let t=(0,d.useContext)(ek);if(null===t){let t=Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,eD),t}return t}ek.displayName="ComboboxDataContext";let e_=(0,d.createContext)(null);function eV(e){let t=eP("VirtualProvider"),{options:n}=eD("VirtualProvider").virtual,i=(0,el.useSlice)(t,e=>e.optionsElement),[o,s]=(0,d.useMemo)(()=>
4{if(!i)return[0,0];let e=window.getComputedStyle(i);return[parseFloat(e.paddingBlockStart||e.paddingTop),parseFloat(e.paddingBlockEnd||e.paddingBottom)]},[i]),r=function({useFlushSync:e=!0,...t}){let n=d.useReducer(()=>({}),{})[1],i={...t,onChange:(i,o)=>{var s;e&&o?(0,f.flushSync)(n):n(),null==(s=t.onChange)||s.call(t,i,o)}},[o]=d.useState(()=>new O(i));return o.setOptions(i),I(()=>o._didMount(),[]),I(()=>o._willUpdate()),o}({observeElementRect:w,observeElementOffset:S,scrollToFn:E,...{enabled:0!==n.length,scrollPaddingStart:o,scrollPaddingEnd:s,count:n.length,estimateSize:()=>40,getScrollElement:()=>t.state.optionsElement,overscan:12}}),[l,a]=(0,d.useState)(0);(0,D.useIsoMorphicEffect)(()=>{a(e=>e+1)},[n]);let u=r.getVirtualItems(),c=(0,el.useSlice)(t,e=>e.activationTrigger===eI.Pointer),h=(0,el.useSlice)(t,t.selectors.activeOptionIndex);return 0===u.length?null:d.default.createElement(e_.Provider,{value:r},d.default.createElement("div",{style:{position:"relative",width:"100%",height:`${r.getTotalSize()}px`},ref:e=>{e&&(c||null!==h&&n.length>h&&r.scrollToIndex(h))}},u.map(t=>{var i;return d.default.createElement(d.Fragment,{key:t.key},d.default.cloneElement(null==(i=e.children)?void 0:i.call(e,{...e.slot,option:n[t.index]}),{key:`${l}-${t.key}`,"data-index":t.index,"aria-setsize":n.length,"aria-posinset":t.index+1,style:{position:"absolute",top:0,left:0,transform:`translateY(${t.start}px)`,overflowAnchor:"none"}}))})))}let ez=d.Fragment,eL=eh.RenderFeatures.RenderStrategy|eh.RenderFeatures.Static,eB=(0,eh.forwardRefWithAs)(function(e,t){let n=(0,d.useId)(),i=(0,ee.useDisabled)(),{value:o,defaultValue:s,onChange:r,form:l,name:a,by:u,invalid:c=!1,disabled:f=i||!1,onClose:h,__demoMode:p=!1,multiple:m=!1,immediate:v=!1,virtual:g=null,nullable:w,...x}=e,b=(0,j.useDefaultValue)(s),[S=m?[]:void 0,y]=(0,R.useControllable)(o,r,b),E=eA({id:n,virtual:g,__demoMode:p}),O=(0,d.useRef)({static:!1,hold:!1}),C=(0,M.useByComparator)(u),I=(0,P.useEvent)(e=>g?null===u?g.options.indexOf(e):g.options.findIndex(t=>C(t,e)):E.state.options.findIndex(t=>C(t.dataRef.current.value,e))),T=(0,d.useCallback)(e=>(0,ed.match)(A.mode,{[eC.Multi]:()=>S.some(t=>C(t,e)),[eC.Single]:()=>C(S,e)}),[S]),N=(0,el.useSlice)(E,e=>e.virtual),F=(0,P.useEvent)(()=>null==h?void 0:h()),A=(0,d.useMemo)(()=>({__demoMode:p,immediate:v,optionsPropsRef:O,value:S,defaultValue:b,disabled:f,invalid:c,mode:m?eC.Multi:eC.Single,virtual:g?N:null,onChange:y,isSelected:T,calculateIndex:I,compare:C,onClose:F}),[p,v,O,S,b,f,c,m,g,N,y,T,I,C,F]);(0,D.useIsoMorphicEffect)(()=>{var e;g&&E.send({type:eT.UpdateVirtualConfiguration,options:g.options,disabled:null!=(e=g.disabled)?e:null})},[g,null==g?void 0:g.options,null==g?void 0:g.disabled]),(0,D.useIsoMorphicEffect)(()=>{E.state.dataRef.current=A},[A]);let[k,_,V,L]=(0,el.useSlice)(E,e=>[e.comboboxState,e.buttonElement,e.inputElement,e.optionsElement]),B=er.stackMachines.get(null),W=(0,el.useSlice)(B,(0,d.useCallback)(e=>B.selectors.isTop(e,n),[B,n]));(0,z.useOutsideClick)(W,[_,V,L],()=>E.actions.closeCombobox());let $=(0,el.useSlice)(E,E.selectors.activeOptionIndex),H=(0,el.useSlice)(E,E.selectors.activeOption),K=(0,q.useSlot)({open:k===eO.Open,disabled:f,invalid:c,activeIndex:$,activeOption:H,value:S}),[U,G]=(0,ev.useLabels)(),Y=(0,d.useCallback)(()=>{if(void 0!==b)return null==y?void 0:y(b)},[y,b]),Z=(0,eh.useRender)();return d.default.createElement(G,{value:U,props:{htmlFor:null==V?void 0:V.id},slot:{open:k===eO.Open,disabled:f}},d.default.createElement(et.FloatingProvider,null,d.default.createElement(ek.Provider,{value:A},d.default.createElement(eF.Provider,{value:E},d.default.createElement(es.OpenClosedProvider,{value:(0,ed.match)(k,{[eO.Open]:es.State.Open,[eO.Closed]:es.State.Closed})},null!=a&&d.default.createElement(en.FormFields,{disabled:f,data:null!=S?{[a]:S}:{},form:l,onReset:Y}),Z({ourProps:null===t?{}:{ref:t},theirProps:x,slot:K,defaultTag:ez,name:"Combobox"}))))))}),eW=(0,eh.forwardRefWithAs)(function(e,t){let n=eP("Combobox.Button"),i=eD("Combobox.Button"),[o,s]=(0,d.useState)(null),r=(0,Y.useSyncRefs)(t,s,n.actions.setButtonElement),l=(0,d.useId)(),{id:a=`headlessui-combobox-button-${l}`,disabled:h=i.disabled||!1,autoFocus:p=!1,...m}=e,[v,g,w]=(0,el.useSlice)(n,e=>[e.comboboxState,e.inputElement,e.optionsElement]),x=K(g),b=v===eO.Open;(0,B.useQuickRelease)(b,{trigger:o,action:(0,d.useCallback)(e=>{if(null!=o&&o.contains(e.target)||null!=g&&g.contains(e.target))return B.Action.Ignore;let t=e.target.closest('[role="option"]:not([data-disabled])');return W.isHTMLElement(t)?B.Action.Select(t):null!=w&&w.contains(e.target)?B.Action.Ignore:B.Action.Close},[o,g,w]),close:n.actions.closeCombobox,select:n.actions.selectActiveOption});let S=(0,P.useEvent)(e=>{switch(e.key){case em.Keys.Space:case em.Keys.Enter:e.preventDefault(),e.stopPropagation(),n.state.comboboxState===eO.Closed&&(0,f.flushSync)(()=>n.actions.openCombobox()),x();return;case em.Keys.ArrowDown:e.preventDefault(),e.stopPropagation(),n.state.comboboxState===eO.Closed&&((0,f.flushSync)(()=>n.actions.openCombobox()),n.state.dataRef.current.value||n.actions.goToOption({focus:eu.Focus.First})),x();return;case em.Keys.ArrowUp:e.preventDefault(),e.stopPropagation(),n.state.comboboxState===eO.Closed&&((0,f.flushSync)(()=>n.actions.openCombobox()),n.state.dataRef.current.value||n.actions.goToOption({focus:eu.Focus.Last})),x();return;case em.Keys.Escape:if(n.state.comboboxState!==eO.Open)return;e.preventDefault(),n.state.optionsElement&&!i.optionsPropsRef.current.static&&e.stopPropagation(),(0,f.flushSync)(()=>n.actions.closeCombobox()),x();return;default:return}}),y=(0,A.useHandleToggle)(()=>{n.state.comboboxState===eO.Open?n.actions.closeCombobox():n.actions.openCombobox(),x()}),E=(0,ev.useLabelledBy)([a]),{isFocusVisible:O,focusProps:C}=(0,u.useFocusRing)({autoFocus:p}),{isHovered:I,hoverProps:M}=(0,c.useHover)({isDisabled:h}),{pressed:R,pressProps:j}=(0,T.useActivePress)({disabled:h}),N=(0,q.useSlot)({open:v===eO.Open,active:R||v===eO.Open,disabled:h,invalid:i.invalid,value:i.value,hover:I,focus:O}),F=(0,eh.mergeProps)({ref:r,id:a,type:(0,U.useResolveButtonType)(e,o),tabIndex:-1,"aria-haspopup":"listbox","aria-controls":null==w?void 0:w.id,"aria-expanded":v===eO.Open,"aria-labelledby":E,disabled:h||void 0,autoFocus:p,onKeyDown:S},y,C,M,j);return(0,eh.useRender)()({ourProps:F,theirProps:m,slot:N,defaultTag:"button",name:"Combobox.Button"})}),e$=(0,eh.forwardRefWithAs)(function(e,t){var n,i;let o=eP("Combobox.Input"),s=eD("Combobox.Input"),r=(0,d.useId)(),l=(0,eo.useProvidedId)(),{id:a=l||`headlessui-combobox-input-${r}`,onChange:h,displayValue:p,disabled:m=s.disabled||!1,autoFocus:v=!1,type:g="text",...w}=e,x=(0,d.useRef)(null),b=(0,Y.useSyncRefs)(x,t,(0,et.useFloatingReference)(),o.actions.setInputElement),[S,y]=(0,el.useSlice)(o,e=>[e.comboboxState,e.isTyping]),E=(0,N.useDisposables)(),O=(0,P.useEvent)(()=>{o.actions.onChange(null),o.state.optionsElement&&(o.state.optionsElement.scrollTop=0),o.actions.goToOption({focus:eu.Focus.Nothing})}),C=(0,d.useMemo)(()=>{var e;return"function"==typeof p&&void 0!==s.value?null!=(e=p(s.value))?e:"":"string"==typeof s.value?s.value:""},[s.value,p]);(0,X.useWatch)(([e,t],[n,i])=>{if(o.state.isTyping)return;let s=x.current;s&&((i===eO.Open&&t===eO.Closed||e!==n)&&(s.value=e),requestAnimationFrame(()=>{if(o.state.isTyping||!s||(0,$.isActiveElement)(s))return;let{selectionStart:e,selectionEnd:t}=s;0===Math.abs((null!=t?t:0)-(null!=e?e:0))&&0===e&&s.setSelectionRange(s.value.length,s.value.length)}))},[C,S,y]),(0,X.useWatch)(([e],[t])=>
4{if(e===eO.Open&&t===eO.Closed){if(o.state.isTyping)return;let e=x.current;if(!e)return;let t=e.value,{selectionStart:n,selectionEnd:i,selectionDirection:s}=e;e.value="",e.value=t,null!==s?e.setSelectionRange(n,i,s):e.setSelectionRange(n,i)}},[S]);let I=(0,d.useRef)(!1),T=(0,P.useEvent)(()=>{I.current=!0}),M=(0,P.useEvent)(()=>{E.nextFrame(()=>{I.current=!1})}),R=(0,P.useEvent)(e=>{switch(o.actions.setIsTyping(!0),e.key){case em.Keys.Enter:if(o.state.comboboxState!==eO.Open||I.current)return;if(e.preventDefault(),e.stopPropagation(),null===o.selectors.activeOptionIndex(o.state))return void o.actions.closeCombobox();o.actions.selectActiveOption(),s.mode===eC.Single&&o.actions.closeCombobox();break;case em.Keys.ArrowDown:return e.preventDefault(),e.stopPropagation(),(0,ed.match)(o.state.comboboxState,{[eO.Open]:()=>o.actions.goToOption({focus:eu.Focus.Next}),[eO.Closed]:()=>o.actions.openCombobox()});case em.Keys.ArrowUp:return e.preventDefault(),e.stopPropagation(),(0,ed.match)(o.state.comboboxState,{[eO.Open]:()=>o.actions.goToOption({focus:eu.Focus.Previous}),[eO.Closed]:()=>{(0,f.flushSync)(()=>o.actions.openCombobox()),s.value||o.actions.goToOption({focus:eu.Focus.Last})}});case em.Keys.Home:if(o.state.comboboxState===eO.Closed||e.shiftKey)break;return e.preventDefault(),e.stopPropagation(),o.actions.goToOption({focus:eu.Focus.First});case em.Keys.PageUp:return e.preventDefault(),e.stopPropagation(),o.actions.goToOption({focus:eu.Focus.First});case em.Keys.End:if(o.state.comboboxState===eO.Closed||e.shiftKey)break;return e.preventDefault(),e.stopPropagation(),o.actions.goToOption({focus:eu.Focus.Last});case em.Keys.PageDown:return e.preventDefault(),e.stopPropagation(),o.actions.goToOption({focus:eu.Focus.Last});case em.Keys.Escape:return o.state.comboboxState!==eO.Open?void 0:(e.preventDefault(),o.state.optionsElement&&!s.optionsPropsRef.current.static&&e.stopPropagation(),s.mode===eC.Single&&null===s.value&&O(),o.actions.closeCombobox());case em.Keys.Tab:if(o.actions.setIsTyping(!1),o.state.comboboxState!==eO.Open)return;s.mode===eC.Single&&o.state.activationTrigger!==eI.Focus&&o.actions.selectActiveOption(),o.actions.closeCombobox()}}),j=(0,P.useEvent)(e=>{null==h||h(e),s.mode===eC.Single&&""===e.target.value&&O(),o.actions.openCombobox()}),F=(0,P.useEvent)(e=>{var t,n,i;let r=null!=(t=e.relatedTarget)?t:ea.history.find(t=>t!==e.currentTarget);if(!(null!=(n=o.state.optionsElement)&&n.contains(r))&&!(null!=(i=o.state.buttonElement)&&i.contains(r))&&o.state.comboboxState===eO.Open)return e.preventDefault(),s.mode===eC.Single&&null===s.value&&O(),o.actions.closeCombobox()}),A=(0,P.useEvent)(e=>{var t,n,i;let r=null!=(t=e.relatedTarget)?t:ea.history.find(t=>t!==e.currentTarget);null!=(n=o.state.buttonElement)&&n.contains(r)||null!=(i=o.state.optionsElement)&&i.contains(r)||s.disabled||s.immediate&&o.state.comboboxState!==eO.Open&&E.microTask(()=>{(0,f.flushSync)(()=>o.actions.openCombobox()),o.actions.setActivationTrigger(eI.Focus)})}),k=(0,ev.useLabelledBy)(),D=(0,ep.useDescribedBy)(),{isFocused:_,focusProps:V}=(0,u.useFocusRing)({autoFocus:v}),{isHovered:z,hoverProps:L}=(0,c.useHover)({isDisabled:m}),B=(0,el.useSlice)(o,e=>e.optionsElement),W=(0,q.useSlot)({open:S===eO.Open,disabled:m,invalid:s.invalid,hover:z,focus:_,autofocus:v}),H=(0,eh.mergeProps)({ref:b,id:a,role:"combobox",type:g,"aria-controls":null==B?void 0:B.id,"aria-expanded":S===eO.Open,"aria-activedescendant":(0,el.useSlice)(o,o.selectors.activeDescendantId),"aria-labelledby":k,"aria-describedby":D,"aria-autocomplete":"list",defaultValue:null!=(i=null!=(n=e.defaultValue)?n:void 0!==s.defaultValue?null==p?void 0:p(s.defaultValue):null)?i:s.defaultValue,disabled:m||void 0,autoFocus:v,onCompositionStart:T,onCompositionEnd:M,onKeyDown:R,onChange:j,onFocus:A,onBlur:F},V,L);return(0,eh.useRender)()({ourProps:H,theirProps:w,slot:W,defaultTag:"input",name:"Combobox.Input"})}),eH=ev.Label,eK=(0,eh.forwardRefWithAs)(function(e,t){var n,i,o;let s=(0,d.useId)(),{id:r=`headlessui-combobox-options-${s}`,hold:l=!1,anchor:a,portal:u=!1,modal:c=!0,transition:f=!1,...h}=e,p=eP("Combobox.Options"),m=eD("Combobox.Options"),v=(0,et.useResolvedAnchor)(a);v&&(u=!0);let[g,w]=(0,et.useFloatingPanel)(v),[x,b]=(0,d.useState)(null),S=(0,et.useFloatingPanelProps)(),y=(0,Y.useSyncRefs)(t,v?g:null,p.actions.setOptionsElement,b),[E,O,C,I,T]=(0,el.useSlice)(p,e=>[e.comboboxState,e.inputElement,e.buttonElement,e.optionsElement,e.activationTrigger]),M=(0,L.useOwnerDocument)(O||C),R=(0,L.useOwnerDocument)(I),j=(0,es.useOpenClosed)(),[
4N,A]=(0,J.useTransition)(f,x,null!==j?(j&es.State.Open)===es.State.Open:E===eO.Open);(0,V.useOnDisappear)(N,O,p.actions.closeCombobox);let _=!m.__demoMode&&c&&E===eO.Open;(0,G.useScrollLock)(_,R);let z=!m.__demoMode&&c&&E===eO.Open;(0,k.useInertOthers)(z,{allowed:(0,d.useCallback)(()=>[O,C,I],[O,C,I])});let B=!(0,el.useSlice)(p,p.selectors.didInputMove)&&N;(0,D.useIsoMorphicEffect)(()=>{var t;m.optionsPropsRef.current.static=null!=(t=e.static)&&t},[m.optionsPropsRef,e.static]),(0,D.useIsoMorphicEffect)(()=>{m.optionsPropsRef.current.hold=l},[m.optionsPropsRef,l]),(0,Q.useTreeWalker)(E===eO.Open,{container:I,accept:e=>"option"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let W=(0,ev.useLabelledBy)([null==C?void 0:C.id]),$=(0,q.useSlot)({open:E===eO.Open,option:void 0}),H=(0,P.useEvent)(()=>{p.actions.setActivationTrigger(eI.Pointer)}),K=(0,P.useEvent)(e=>{e.preventDefault(),p.actions.setActivationTrigger(eI.Pointer)}),U=(0,eh.mergeProps)(v?S():{},{"aria-labelledby":W,role:"listbox","aria-multiselectable":m.mode===eC.Multi||void 0,id:r,ref:y,style:{...h.style,...w,"--input-width":(0,F.useElementSize)(N,O,!0).width,"--button-width":(0,F.useElementSize)(N,C,!0).width},onWheel:T===eI.Pointer?void 0:H,onMouseDown:K,...(0,J.transitionDataAttributes)(A)}),Z=N&&E===eO.Closed&&!e.static,X=(0,ei.useFrozenData)(Z,null==(n=m.virtual)?void 0:n.options),ee=(0,ei.useFrozenData)(Z,m.value),en=(0,d.useCallback)(e=>m.compare(ee,e),[m.compare,ee]),eo=(0,d.useMemo)(()=>{if(!m.virtual)return m;if(void 0===X)throw Error("Missing `options` in virtual mode");return X!==m.virtual.options?{...m,virtual:{...m.virtual,options:X}}:m},[m,X,null==(i=m.virtual)?void 0:i.options]);m.virtual&&Object.assign(h,{children:d.default.createElement(ek.Provider,{value:eo},d.default.createElement(eV,{slot:$},h.children))});let er=(0,eh.useRender)(),ea=(0,d.useMemo)(()=>m.mode===eC.Multi?m:{...m,isSelected:en},[m,en]);return d.default.createElement(ew.Portal,{enabled:!!u&&(e.static||N),ownerDocument:M},d.default.createElement(ek.Provider,{value:ea},er({ourProps:U,theirProps:{...h,children:d.default.createElement(ei.Frozen,{freeze:Z},"function"==typeof h.children?null==(o=h.children)?void 0:o.call(h,$):h.children)},slot:$,defaultTag:"div",features:eL,visible:B,name:"Combobox.Options"}
4)))}),eU=(0,eh.forwardRefWithAs)(function(e,t){var n,i,o;let s=eD("Combobox.Option"),r=eP("Combobox.Option"),l=(0,d.useId)(),{id:a=`headlessui-combobox-option-${l}`,value:u,disabled:c=null!=(o=null==(i=null==(n=s.virtual)?void 0:n.disabled)?void 0:i.call(n,u))&&o,order:f=null,...h}=e,[p]=(0,el.useSlice)(r,e=>[e.inputElement]),m=K(p),v=(0,el.useSlice)(r,(0,d.useCallback)(e=>r.selectors.isActive(e,u,a),[u,a])),g=s.isSelected(u),w=(0,d.useRef)(null),x=(0,_.useLatestValue)({disabled:c,value:u,domRef:w,order:f}),b=(0,d.useContext)(e_),S=(0,Y.useSyncRefs)(t,w,b?b.measureElement:null),y=(0,P.useEvent)(()=>{r.actions.setIsTyping(!1),r.actions.onChange(u)});(0,D.useIsoMorphicEffect)(()=>r.actions.registerOption(a,x),[x,a]);let E=(0,el.useSlice)(r,(0,d.useCallback)(e=>r.selectors.shouldScrollIntoView(e,u,a),[u,a]));(0,D.useIsoMorphicEffect)(()=>{if(E)return(0,ec.disposables)().requestAnimationFrame(()=>{var e,t;null==(t=null==(e=w.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})},[E,w]);let O=(0,P.useEvent)(e=>{e.preventDefault(),e.button===eg.MouseButton.Left&&(c||(y(),(0,ef.isMobile)()||requestAnimationFrame(()=>m()),s.mode===eC.Single&&r.actions.closeCombobox()))}),C=(0,P.useEvent)(()=>{if(c)return r.actions.goToOption({focus:eu.Focus.Nothing});let e=s.calculateIndex(u);r.actions.goToOption({focus:eu.Focus.Specific,idx:e})}),I=(0,Z.useTrackedPointer)(),T=(0,P.useEvent)(e=>I.update(e)),M=(0,P.useEvent)(e=>{if(!I.wasMoved(e)||c||v&&r.state.activationTrigger===eI.Pointer)return;let t=s.calculateIndex(u);r.actions.goToOption({focus:eu.Focus.Specific,idx:t},eI.Pointer)}),R=(0,P.useEvent)(e=>{I.wasMoved(e)&&(c||v&&(s.optionsPropsRef.current.hold||r.state.activationTrigger===eI.Pointer&&r.actions.goToOption({focus:eu.Focus.Nothing})))}),j=(0,q.useSlot)({active:v,focus:v,selected:g,disabled:c});return(0,eh.useRender)()({ourProps:{id:a,ref:S,role:"option",tabIndex:!0===c?void 0:-1,"aria-disabled":!0===c||void 0,"aria-selected":g,disabled:void 0,onMouseDown:O,onFocus:C,onPointerEnter:T,onMouseEnter:T,onPointerMove:M,onMouseMove:M,onPointerLeave:R,onMouseLeave:R},theirProps:h,slot:j,defaultTag:"div",name:"Combobox.Option"})}),eG=Object.assign(eB,{Input:e$,Button:eW,Label:eH,Options:eK,Option:eU});var eq=e.i(95470),eY=e.i(54056),eZ=e.i(43794),eJ=e.i(91310);function eQ(e){let t=(0,d.useMemo)(()=>e.id?e.id:e.name?`select-${e.name}`:void 0,[e.id,e.name]),[n,i]=(0,d.useState)(e.selected),[o,s]=(0,d.useState)(""),[r,l]=(0,d.useState)(e.options??[]);(0,d.useEffect)(()=>{(Array.isArray(e.selected)||""===e.selected||e.options?.find(t=>t.value===e.selected))&&i(e.selected)},[e.selected]);let u=t=>{let n=null===t?null:Array.isArray(t)?t.filter(e=>"string"==typeof e):t;i(n),e.onChange?.(n)};return(0,d.useEffect)(()=>
4{l(e.options??[])},[e.options]),(0,a.jsx)("div",{children:e.isSearchable?(0,a.jsx)(eG,{value:n,onChange:u,multiple:e.isMulti,children:({open:i})=>(0,a.jsxs)(a.Fragment,{children:[e.label&&t?(0,a.jsx)("label",{htmlFor:t,className:"tw-block tw-text-sm tw-font-medium tw-text-gray-800",children:e.label}):e.label?(0,a.jsx)("div",{className:"tw-block tw-text-sm tw-font-medium tw-text-gray-800",children:e.label}):null,(0,a.jsxs)("div",{className:"tw-relative tw-mt-1",children:[(0,a.jsx)(e$,{id:t,className:(0,eZ.default)("tw-relative tw-w-full tw-inline-flex tw-justify-between tw-cursor-default tw-border tw-text-gray-800 tw-bg-white tw-py-2 tw-px-4 tw-text-left tw-shadow-sm focus:blue-400 tw-text-sm",i?"tw-rounded-t-md tw-border-blue-400":"tw-rounded-md tw-border-gray-500"),onChange:e=>s(e.target.value),displayValue:()=>""}),(0,a.jsxs)(eW,{className:(0,eZ.default)("tw-absolute tw-top-0 tw-left-0 tw-w-full tw-inline-flex tw-justify-between tw-cursor-default tw-text-gray-800 tw-py-2 tw-px-4 tw-text-left tw-text-sm"),children:[o?(0,a.jsx)("span",{}):(0,a.jsx)(a.Fragment,{children:e.isMulti?(0,a.jsx)("span",{className:"tw-block tw-truncate tw-font-medium",children:!n||n.length<1?e.placeholder??"Select Options":`(${n.length}) selected`}):(0,a.jsx)("span",{className:"tw-block tw-truncate tw-font-medium",children:!n||n.length<1?e.placeholder??"Select Option":e.options?.filter(e=>e.value===n)?.[0]?.label})}),(0,a.jsx)("span",{className:"combobox-dropdown",children:"b"})]}),(0,a.jsx)(eY.Transition,{show:i,as:d.Fragment,leave:"tw-transition tw-ease-in tw-duration-100",leaveFrom:"tw-opacity-100",leaveTo:"tw-opacity-0",children:(0,a.jsxs)(eK,{className:"tw-absolute tw-z-10 tw-max-h-60 tw-w-full tw-overflow-auto tw-rounded-b-md tw-bg-gray-50 tw-py-1 tw-text-sm tw-border tw-border-blue-400 tw-text-cn-search tw-shadow-lg -tw-mt-[1px] focus:tw-outline-none sm:tw-text-sm",children:[r.filter(e=>e.name?.toString().toLowerCase().includes(o.toLowerCase())).length<=0&&(0,a.jsx)("div",{className:"tw-text-center tw-text-sm",children:"No results found"}),r.filter(e=>e.name?.toString().toLowerCase().includes(o.toLowerCase())).map(t=>(0,a.jsx)(eU,{className:({active:e})=>(0,eZ.default)(e?"tw-text-white tw-bg-blue-500 tw-cursor-pointer":"tw-text-gray-800","tw-relative tw-py-2 tw-pl-3 tw-pr-3"),value:t.value,children:({selected:n})=>(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"tw-flex tw-items-center",children:[((e.isMulti??!1)||!e.isMulti&&"radio"===e.optionType)&&(0,a.jsx)("div",{className:"tw-flex tw-h-5 tw-items-center tw-mr-2",children:(0,a.jsx)("input",{name:e.name,type:e.optionType??"checkbox",className:(0,eZ.default)("!tw-inline-block tw-h-4 tw-w-4 tw-border-gray-500 tw-shadow-[inset_0_2px_2px_0_rgba(230,232,239,0.3)] checked:tw-border-green-500 checked:tw-bg-green-500 checked:hover:tw-border-green-500 checked:hover:tw-bg-green-500 checked:focus:tw-border-green-500 checked:focus:tw-bg-green-500 focus:tw-ring-0 focus:tw-ring-offset-0 tw-cursor-pointer","radio"===e.optionType?"tw-rounded-full":"tw-rounded-sm"),checked:!!n,readOnly:!0})}),(0,a.jsxs)("span",{className:(0,eZ.default)(n?"tw-font-semibold":"tw-font-normal","tw-ml-1 tw-inline-flex tw-font-sofia-pro tw-text-sm tw-leading-5 tw-items-center"),children:[t.label,void 0!==t.count&&(0,a.jsxs)("span",{className:"tw-text-xs tw-ml-1",children:["(",(0,eJ.default)(t.count||0,{separator:"",maxDecimals:"auto"}),")"]})]})]})})},`${t.id}-${t.value}`))]})})]})]})}):(0,a.jsx)(eq.Listbox,{value:n,onChange:u,multiple:e.isMulti,children:({open:i})=>(0,a.jsxs)(a.Fragment,{children:[e.label&&t?(0,a.jsx)("label",{htmlFor:t,className:"tw-block tw-text-sm tw-font-medium tw-text-gray-800",children:e.label}):e.label?(0,a.jsx)("div",{className:"tw-block tw-text-sm tw-font-medium tw-text-gray-800",children:e.label}):null,(0,a.jsxs)("div",{className:"tw-relative tw-mt-1",children:[(0,a.jsxs)(eq.ListboxButton,{id:t,className:(0,eZ.default)("tw-relative tw-w-full tw-inline-flex tw-justify-between tw-cursor-default tw-border tw-text-gray-800 tw-bg-white tw-py-2 tw-px-4 tw-text-left tw-shadow-sm focus:tw-text-blue-400 tw-text-sm",i?"tw-rounded-t-md tw-border-blue-400":"tw-rounded-md tw-border-gray-500"),children:[e.isMulti?(0,a.jsx)("span",{className:"tw-block tw-truncate tw-font-medium",children:!n||n.length<1?e.placeholder??"Select Options":`(${n.length}) selected`}):(0,a.jsxs)("span",{className:"tw-block tw-truncate tw-font-medium",children:[n&&n.length>0&&e.options&&e.options.filter(e=>e.value===n).length>0?e.options?.filter(e=>e.value===n)?.[0]?.label:e.placeholder??"Select Option"," "]}),(0,a.jsx)("span",{className:"combobox-dropdown",children:"b"})]}),(0,a.jsx)(eY.Transition,{show:i,as:d.Fragment,leave:"tw-transition tw-ease-in tw-duration-100",leaveFrom:"tw-opacity-100",leaveTo:"tw-opacity-0",children:(0,a.jsxs)(eq.ListboxOptions,{className:"tw-absolute tw-z-10 tw-max-h-60 t
4w-w-full tw-overflow-auto tw-rounded-b-md tw-bg-gray-50 tw-py-1 tw-text-sm tw-border tw-border-blue-400 tw-text-cn-search tw-shadow-lg -tw-mt-[1px] focus:tw-outline-none sm:tw-text-sm",children:[r.length<=0&&(0,a.jsx)("div",{className:"tw-text-center tw-text-sm",children:"No results found"}),r.map(t=>(0,a.jsx)(eq.ListboxOption,{className:({active:e})=>(0,eZ.default)(e?"tw-text-white tw-bg-blue-500 tw-cursor-pointer":"tw-text-gray-800","tw-relative tw-py-2 tw-pl-3 tw-pr-3"),value:t.value,children:({selected:n})=>(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"tw-flex tw-items-center",children:[((e.isMulti??!1)||!e.isMulti&&"radio"===e.optionType)&&(0,a.jsx)("div",{className:"tw-flex tw-h-5 tw-items-center tw-mr-2",children:(0,a.jsx)("input",{name:e.name,type:e.optionType??"checkbox",className:(0,eZ.default)("!tw-inline-block tw-h-4 tw-w-4 tw-border-gray-500 tw-shadow-[inset_0_2px_2px_0_rgba(230,232,239,0.3)] checked:tw-border-green-500 checked:tw-bg-green-500 checked:hover:tw-border-green-500 checked:hover:tw-bg-green-500 checked:focus:tw-border-green-500 checked:focus:tw-bg-green-500 focus:tw-ring-0 focus:tw-ring-offset-0 tw-cursor-pointer","radio"==e.optionType?"tw-rounded-full":"tw-rounded-sm"),checked:!!n,readOnly:!0})}),(0,a.jsxs)("span",{className:(0,eZ.default)(n?"tw-font-semibold":"tw-font-normal","tw-ml-1 tw-inline-flex tw-font-sofia-pro tw-text-sm tw-leading-5 tw-items-center"),children:[t.label,void 0!==t.count&&(0,a.jsxs)("span",{className:"tw-text-xs tw-ml-1",children:["(",(0,eJ.default)(t.count||0,{separator:"",maxDecimals:"auto"}),")"]})]})]})})},`${t.id}-${t.value}`))]})})]})]})})})}e.s(["Select",()=>eQ],25601)},86664,e=>{"use strict";var t,n,i,o,s,r,l=e.i(43476),a=e.i(95939),u=e.i(14880),c=e.i(43794),d=e.i(84363),f=e.i(79260),h=e.i(99912),p=e.i(5363),m=e.i(50719),v=e.i(80229),g=e.i(36891),w=((t=w||{}).NONE="NONE",t.LOW="LOW",t.MEDIUM="MEDIUM",t.HIGH="HIGH",t.HIGHEST="HIGHEST",t);function x(e){var t;let n=!0===e.isProfileComplete,i=(t=+(e.starRating??0))>=4?"Four-Star Charity":t>=3?"Three-Star Charity":"",o=(0,p.getAlertLevelFromString)(e.advisory),s=e.eligible&&e.starRating!==v.StarRatingValue.NOT_RATED;return(0,l.jsx)("div",{children:(0,l.jsxs)("div",{className:(0,c.default)({"tw-w-full tw-rounded-xl tw-rounded-b-xl tw-border-l-[1px] tw-border-r-[1px] tw-border-b-[1px]":e.advisory},{"tw-w-full tw-rounded-xl tw-border-[1px] tw-border-gray-50":!e.advisory},function(e){switch(e){case"LOW":return"tw-border-cn-alert-low";case"MEDIUM":return"tw-border-cn-alert-medium";case"HIGH":return"tw-border-cn-alert-high";case"HIGHEST":return"tw-border-cn-alert-highest";default:return""}}(e.advisory),o===h.AlertLevel.HIGHEST?"tw-bg-cn-alert-highest tw-text-white":""),children:[o!==h.AlertLevel.HIGHEST&&(0,l.jsx)(l.Fragment,{children:"string"==typeof e.advisory&&e.advisory.length>0&&(0,l.jsx)(d.AlertBanner,{alertLevel:o,clickable:!0})}),(0,l.jsx)("div",{className:(0,c.default)("tw-px-7 lg:tw-px-7 lg:tw-pt-0 lg:tw-min-w-[396px] tw-pb-2 tw-justify-center"),children:e.eligible?s?(0,l.jsxs)("div",{className:"tw-flex tw-flex-col-reverse lg:tw-flex-row tw-justify-between tw-items-center tw-min-w-full lg:tw-min-w-[340px]",children:[(0,l.jsxs)("div",{className:"tw-flex tw-flex-col tw-items-start tw-text-center",children:[n&&(0,l.jsx)(f.Ribbon,{className:"tw-mb-2 tw-w-[210px] tw-whitespace-nowrap",compact:!0,children:"Complete Profile"}),(0,l.jsxs)("div",{className:"tw-flex tw-flex-col tw-items-start tw-w-[180px]",children:[(0,l.jsx)(u.StarRating,{rating:e.starRating?Number(e.starRating):0,width:180,height:0}),i&&(0,l.jsxs)("p",{className:(0,c.default)("tw-w-full tw-font-sofia-pro tw-font-normal tw-text-xs tw-uppercase tw-text-center tw-tracking-widest tw-mt-2.5","tw-text-cn-search-bold"),children:[(0,l.jsx)("span",{className:"tw-mr-1 tw-uppercase",children:"•"}),i,(0,l.jsx)("span",{className:"tw-ml-1",children:"•"})]})]})]}),(0,l.jsx)("div",{className:(0,c.default)("tw-font-sofia-pro tw-font-normal tw-text-[3rem] lg:tw-text-[4rem]","tw-text-cn-search-bold"),children:(0,g.formatSearchResultScorePercent)(e.rating)})]}):(0,l.jsx)("div",{className:"tw-flex tw-items-center tw-justify-center tw-py-8",children:(0,l.jsx)("span",{className:"tw-text-xl tw-text-gray-700",children:v.StarRatingValue.NOT_RATED})}):(0,l.jsx)("div",{className:"tw-flex tw-items-center tw-justify-center tw-py-8",children:o===h.AlertLevel.HIGHEST?(0,l.jsxs)("div",{className:"tw-flex tw-items-center",children:[(0,l.jsx)(m.HiBell,{className:"tw-w-[30px] tw-text-white tw-mr
4-2"}),(0,l.jsx)("span",{className:"tw-text-xl tw-text-white",children:"Giving Not Recommended"})]}):(0,l.jsx)("span",{className:"tw-text-xl tw-text-gray-700",children:v.StarRatingValue.NOT_RATED})})})]})})}var b=e.i(18072),S=e.i(71645),y=e.i(98956),E=e.i(74366),O=e.i(4301);function C({header:e,causes:t,onClose:n}){return(0,l.jsx)("div",{className:"tw-bg-black tw-bg-opacity-50 tw-fixed tw-inset-0 tw-z-[1000] tw-flex tw-justify-center tw-items-center tw-overflow-x-hidden tw-overflow-y-auto tw-outline-none focus:tw-outline-none",id:"modal-wrapper",onClick:e=>{e?.target?.id==="modal-wrapper"&&n(),e.stopPropagation()},children:(0,l.jsxs)("div",{className:"tw-w-[550px] tw-relative tw-my-6 tw-mx-auto tw-max-w-3xl tw-overflow-y-auto tw-max-h-[600px] tw-text-xl tw-font-300 tw-border-0 tw-rounded-lg tw-shadow-lg tw-bg-white tw-outline-none focus:tw-outline-none tw-p-[24px]",children:[(0,l.jsxs)("div",{className:"tw-flex tw-flex-col tw-w-full",children:[(0,l.jsxs)("div",{className:"tw-py-2 tw-font-bold tw-text-xl tw-mr-[50px]",children:[e,"'s Causes"]}),(0,l.jsx)("button",{className:"tw-bg-transparent tw-border-0 tw-rounded-lg tw-p-1 tw-text-black tw-float-right hover:tw-text-gray-400 tw-absolute tw-right-[24px] tw-top-[24px]",onClick:e=>{n(),e.stopPropagation()},children:(0,l.jsx)(O.Close,{className:"tw-w-4 tw-h-4"})})]}),(0,l.jsx)("div",{className:"tw-py-2 tw-max-h-[600px] tw-overflow-auto tw-pt-[24px]",children:t})]})})}var I=e.i(18566),T=e.i(18766),M=e.i(14334),R=e.i(88715);function j({result:e,onClick:t}){let n=(0,y.useBasketContext)(),[i,o]=(0,S.useState)(!1),s=(0,I.usePathname)(),r=n.cart?.id,u=(0,I.useRouter)(),c=(0,M.isValidBasket)(n);return(0,l.jsxs)(l.Fragment,{children:[i&&(0,l.jsx)(C,{header:e.name,causes:e.causes.map(e=>(0,l.jsx)(a.SearchResultTag,{name:e,url:`${s}?causes=${e}`,disabled:!0},e)),onClose:()=>o(!1)}),(0,l.jsx)("div",{onClick:()=>{t?t(e.ein):(sessionStorage.setItem("aiChatScrollY",String(window.scrollY)),u.push(`/ein/${e.ein}`))},className:b.default["AISearchResult-xffEng2324"],"aria-label":"nonprofit profile page",children:(0,l.jsxs)("div",{className:"tw-flex tw-flex-col lg:tw-flex-row lg:tw-justify-between lg:tw-gap-6",children:[(0,l.jsxs)("div",{className:"tw-flex tw-flex-col tw-gap-2 tw-flex-1",children:[(0,l.jsxs)("div",{className:"tw-flex tw-items-center tw-overflow-hidden tw-flex-wrap",children:[(0,l.jsx)("h2",{className:"tw-text-lg lg:tw-text-xl tw-font-semibold tw-leading-normal tw-overflow-hidden tw-min-w-0 tw-pr-2 tw-self-end",children:e.name}),(0,l.jsx)(T.CharityLocationSubsection,{city:e.city??"",state:e.state??"",subsection:e.subsection})]}),(0,l.jsxs)("div",{className:"tw-flex tw-flex-wrap-reverse tw-items-center tw-gap-2 tw-mt-2 lg:tw-mt-4",children:[(0,l.jsx)(E.DonateButtonWithModal,{cartId:r??"",ein:e.ein,name:e.name,enabled:c,className:"tw-w-full lg:tw-w-auto tw-hidden lg:tw-block",donationEligible:e.donation_eligible,donationIneligibleReason:e.donationIneligibleReason,showConsolidatedAlert:e.is_subsidiary,consolidatedAlertMobile:!0}),(0,l.jsxs)("div",{className:"tw-flex tw-items-center",children:[e.size&&(0,l.jsx)(a.SearchResultTag,{name:R.LabelConvert.formatSizeTag(e.size),url:`/search?sizes=${e.size.toUpperCase()}`,className:"!tw-my-0",disabled:!0}),e.causes.slice(0,1).map(e=>(0,l.jsx)(a.SearchResultTag,{name:e,url:`${s}?causes=${e}`,className:"!tw-my-0",disabled:!0},e)),e.causes.length>1&&(0,l.jsx)("span",{className:`${b.default.SearchResultTagBold} !tw-m-0`,onClick:e=>{e.stopPropagation(),e.preventDefault(),o(!i)},children:"+"})]})]}),(0,l.jsx)("div",{className:"tw-flex tw-flex-wrap tw-items-center tw-gap-2 tw-mt-2 lg:tw-hidden",children:(0,l.jsx)(E.DonateButtonWithModal,{cartId:r??"",ein:e.ein,name:e.name,enabled:c,className:"tw-w-full lg:tw-w-auto",donationEligible:e.donation_eligible,donationIneligibleReason:e.donationIneligibleReason,showConsolidatedAlert:e.is_subsidiary,consolidatedAlertMobile:!0})})]}),(0,l.jsx)("div",{className:"tw-flex-shrink-0 tw-mt-4 lg:tw-mt-0 tw-flex tw-items-center tw-justify-center","data-ai-result":!0,"data-ein":e.ein,children:(0,l.jsx)(x,{eligible:e.encompass_eligible,rating:e.rating,starRating:e.star_rating,advisory:e.highest_level_advisory,isProfileComplete:e.is_profile_complete})})]})})]})}var N=e.i(25601);let F=[{name:"Relevance",label:"Relevance",value:"relevance"},{name:"Rating",label:"Rating",value:"rating"},{name:"Size",label:"Size",value:"size"}],P=()=>{let e=(0,I.useSearchParams)(),t=(0,I.usePathname)(),n=(0,I.useRouter)(),i=e.get("sort")??"relevance",[o,s]=(0,S.useState)(i);return(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(N.Select,{name:"sort",label:"Sort by",placeholder:"Select sort",options:F,selected:o,onChange:i=>{let r=i?.toString();if(r!==o){s(r);let i=new URLSearchParams({...e?Object.fromEntries(e.entries()):{},sort:r,page:"1"});n.push(`${t}?${i.toString()}`)}}})})};function A(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)0>t.indexOf(i[o])&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]]);return n}function k(){}function D(e){return!!(e||"").match(/\d/)}function _(e){return null==e}function V(e){return _(e)||"number"==typeof e&&isNaN(e)||"number"==typeof e&&!isFinite(e)}function z(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function L(e,t){void 0===t&&(t=!0);var n="-"===e[0],i=n&&t,o=(e=e.replace("-","")).split(".");
4return{beforeDecimal:o[0],afterDecimal:o[1]||"",hasNegation:n,addNegation:i}}function B(e,t,n){for(var i="",o=n?"0":"",s=0;s<=t-1;s++)i+=e[s]||o;return i}function W(e,t){return Array(t+1).join(e)}function $(e){var t=e+"",n="-"===t[0]?"-":"";n&&(t=t.substring(1));var i=t.split(/[eE]/g),o=i[0],s=i[1];if(!(s=Number(s)))return n+o;o=o.replace(".","");var r=1+s,l=o.length;return r<0?o="0."+W("0",Math.abs(r))+o:r>=l?o+=W("0",r-l):o=(o.substring(0,r)||"0")+"."+o.substring(r),n+o}function H(e,t,n){if(-1!==["","-"].indexOf(e))return e;var i=(-1!==e.indexOf(".")||n)&&t,o=L(e),s=o.beforeDecimal,r=o.afterDecimal,l=o.hasNegation,a=parseFloat("0."+(r||"0")),u=(r.length<=t?"0."+r:a.toFixed(t)).split("."),c=s;return s&&Number(u[0])&&(c=s.split("").reverse().reduce(function(e,t,n){return e.length>n?(Number(e[0])+Number(t)).toString()+e.substring(1,e.length):t+e},u[0])),(l?"-":"")+c+(i?".":"")+B(u[1]||"",t,n)}function K(e,t){if(e.value=e.value,null!==e){if(e.createTextRange){var n=e.createTextRange();return n.move("character",t),n.select(),!0}return e.selectionStart||0===e.selectionStart?(e.focus(),e.setSelectionRange(t,t),!0):(e.focus(),!1)}}(n=r||(r={})).event="event",n.props="prop";var U=(i=function(e,t){for(var n=0,i=0,o=e.length,s=t.length;e[n]===t[n]&&n<o;)n++;for(;e[o-1-i]===t[s-1-i]&&s-i>n&&o-i>n;)i++;return{from:{start:n,end:o-i},to:{start:n,end:s-i}}},s=void 0,function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return o&&e.length===o.length&&e.every(function(e,t){return e===o[t]})?s:(o=e,s=i.apply(void 0,e))}),G=function(e,t){var n=Math.min(e.selectionStart,t);return{from:{start:n,end:e.selectionEnd},to:{start:n,end:t}}};function q(e){return Math.max(e.selectionStart,e.selectionEnd)}function Y(e){var t=e.currentValue,n=e.formattedValue,i=e.currentValueIndex,o=e.formattedValueIndex;return t[i]===n[o]}function Z(e,t,n,i){var o=e.length;if(t=Math.min(Math.max(t,0),o),"left"===i){for(;t>=0&&!n[t];)t--;-1===t&&(t=n.indexOf(!0))}else{for(;t<=o&&!n[t];)t++;t>o&&(t=n.lastIndexOf(!0))}return -1===t&&(t=o),t}function J(e){for(var t=Array.from({length:e.length+1}).map(function(){return!0}),n=0,i=t.length;n<i;n++)t[n]=!!(D(e[n])||D(e[n-1]));return t}function Q(e,t,n,i,o,s){void 0===s&&(s=k);var r,l,a=(r=function(e,t){var n,s;return V(e)?(s="",n=""):n="number"==typeof e||t?i(s="number"==typeof e?$(e):e):i(s=o(e,void 0)),{formattedValue:n,numAsString:s}},(l=(0,S.useRef)(r)).current=r,(0,S.useRef)(function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return l.current.apply(l,e)}).current),u=(0,S.useState)(function(){return a(_(e)?t:e,n)}),c=u[0],d=u[1],f=e,h=n;_(e)&&(f=c.numAsString,h=!0);var p=a(f,h);return(0,S.useMemo)(function(){d(p)},[p.formattedValue]),[c,function(e,t){e.formattedValue!==c.formattedValue&&d({formattedValue:e.formattedValue,numAsString:e.value}),s(e,t)}]}function X(e){return e.replace(/[^0-9]/g,"")}function ee(e){return e}function et(e){var t=e.type;void 0===t&&(t="text");var n=e.displayType;void 0===n&&(n="input");var i=e.customInput,o=e.renderText,s=e.getInputRef,l=e.format;void 0===l&&(l=ee);var a=e.removeFormatting;void 0===a&&(a=X);var u=e.defaultValue,c=e.valueIsNumericString,d=e.onValueChange,f=e.isAllowed,h=e.onChange;void 0===h&&(h=k);var p=e.onKeyDown;void 0===p&&(p=k);var m=e.onMouseUp;void 0===m&&(m=k);var v=e.onFocus;void 0===v&&(v=k);var g=e.onBlur;void 0===g&&(g=k);var w=e.value,x=e.getCaretBoundary;void 0===x&&(x=J);var b=e.isValidInputCharacter;void 0===b&&(b=D);var y=e.isCharacterSame,E=A(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),O=Q(w,u,!!c,l,a,d),C=O[0],I=C.formattedValue,T=C.numAsString,M=O[1],R=(0,S.useRef)(),j=(0,S.useRef)({formattedValue:I,numAsString:T}),N=function(e,t){j.current={formattedValue:e.formattedValue,numAsString:e.value},M(e,t)},F=(0,S.useState)(!1),P=F[0],_=F[1],V=(0,S.useRef)(null),z=(0,S.useRef)({setCaretTimeout:null,focusTimeout:null});(0,S.useEffect)(function(){return _(!0),function(){clearTimeout(z.current.setCaretTimeout),clearTimeout(z.current.focusTimeout)}},[]);var L=l,B=function(e,t){var n=parseFloat(t);return{formattedValue:e,value:t,floatValue:isNaN(n)?void 0:n}},W=function(e,t,n){(0!==e.selectionStart||e.selectionEnd!==e.value.length)&&(K(e,t),z.current.setCaretTimeout=setTimeout(function(){e.value===n&&e.selectionStart!==t&&K(e,t)},0))},$=function(e,t,n){return Z(e,t,x(e),n)},H=function(e,t,n){var i=x(t),o=function(e,t,n,i,o,s,r){void 0===r&&(r=Y);var l=o.findIndex(function(e){return e}),a=e.slice(0,l);t||n.startsWith(a)||(t=a,n=a+n,i+=a.length);for(var u=n.length,c=e.length,d={},f=Array(u),h=0;h<u;h++){f[h]=-1;for(var p=0;p<c;p++)if(r({currentValue:n,lastValue:t,formattedValue:e,currentValueIndex:h,formattedValueIndex:p})&&!0!==d[p]){f[h]=p,d[p]=!0;break}}for(var m=i;m<u&&(-1===f[m]||!s(n[m]));)m++;var v=m===u||-1===f[m]?c:f[m];for(m=i-1;m>0&&-1===f[m];)m--;var g=-1===m||-1===f[m]?0:f[m]+1;return g>v?v:i-g<v-i?g:v}(t,I,e,n,i,b,y);return Z(t,o,i)},et=function(e){var t,n=e.formattedValue;void 0===n&&(n="");var i=e.input,o=e.source,s=e.event,r=e.numAsString;if(i){var l=e.inputValue||i.value,a=q(i);i.value=n,void 0!==(t=H(l,n,a))&&W(i,t,n)}n!==I&&N(B(n,r),{event:s,source:o})};(0,S.useEffect)(function(){var e=j.current,t=e.formattedValue,n=e.numAsString;(I!==t||T!==n)&&N(B(I,T),{event:void 0,source:r.props})},[I,T]);var en=V.current?q(V.current):void 0;("u">typeof window?S.useLayoutEffect:S.useEffect)(function(){var e=V.current;if(I!==j.current.formattedValue&&e){var t=H(j.current.formattedValue,I,en);
4e.value=I,W(e,t,I)}},[I]);var ei=function(e,t,n){var i=t.target,o=Object.assign(Object.assign({},R.current?G(R.current,i.selectionEnd):U(I,e)),{lastValue:I}),s=a(e,o),r=L(s);if(s=a(r,void 0),f&&!f(B(r,s))){var l=t.target,u=H(e,I,q(l));return l.value=I,W(l,u,I),!1}return et({formattedValue:r,numAsString:s,inputValue:e,event:t,source:n,input:t.target}),!0},eo=function(e,t){void 0===t&&(t=0),R.current={selectionStart:e.selectionStart,selectionEnd:e.selectionEnd+t}},es=Object.assign({inputMode:P&&"u">typeof navigator&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))?"numeric":void 0},E,{type:t,value:I,onChange:function(e){ei(e.target.value,e,r.event)&&h(e),R.current=void 0},onKeyDown:function(e){var t,n=e.target,i=e.key,o=n.selectionStart,s=n.selectionEnd,r=n.value;void 0===r&&(r=""),"ArrowLeft"===i||"Backspace"===i?t=Math.max(o-1,0):"ArrowRight"===i?t=Math.min(o+1,r.length):"Delete"===i&&(t=o);var l=0;"Delete"===i&&o===s&&(l=1);var a="ArrowLeft"===i||"ArrowRight"===i;if(void 0===t||o!==s&&!a){p(e),eo(n,l);return}var u=t;a?(u=$(r,t,"ArrowLeft"===i?"left":"right"))!==t&&e.preventDefault():"Delete"!==i||b(r[t])?"Backspace"!==i||b(r[t])||(u=$(r,t,"left")):u=$(r,t,"right"),u!==t&&W(n,u,r),p(e),eo(n,l)},onMouseUp:function(e){var t=e.target,n=function(){var e=t.selectionStart,n=t.selectionEnd,i=t.value;if(void 0===i&&(i=""),e===n){var o=$(i,e);o!==e&&W(t,o,i)}};n(),requestAnimationFrame(function(){n()}),m(e),eo(t)},onFocus:function(e){e.persist&&e.persist();var t=e.target,n=e.currentTarget;V.current=t,z.current.focusTimeout=setTimeout(function(){var i=t.selectionStart,o=t.selectionEnd,s=t.value;void 0===s&&(s="");var r=$(s,i);r!==i&&(0!==i||o!==s.length)&&W(t,r,s),v(Object.assign(Object.assign({},e),{currentTarget:n}))},0)},onBlur:function(e){V.current=null,clearTimeout(z.current.focusTimeout),clearTimeout(z.current.setCaretTimeout),g(e)}});return"text"===n?o?S.default.createElement(S.default.Fragment,null,o(I,E)||null):S.default.createElement("span",Object.assign({},E,{ref:s}),I):i?S.default.createElement(i,Object.assign({},es,{ref:s})):S.default.createElement("input",Object.assign({},es,{ref:s}))}function en(e,t){var n,i,o,s=t.decimalScale,r=t.fixedDecimalScale,l=t.prefix;void 0===l&&(l="");var a=t.suffix;void 0===a&&(a="");var u=t.allowNegative,c=t.thousandsGroupStyle;if(void 0===c&&(c="thousand"),""===e||"-"===e)return e;var d=ei(t),f=d.thousandSeparator,h=d.decimalSeparator,p=0!==s&&-1!==e.indexOf(".")||s&&r,m=L(e,u),v=m.beforeDecimal,g=m.afterDecimal,w=m.addNegation;return void 0!==s&&(g=B(g,s,!!r)),f&&(n=v,i=function(e){switch(e){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;default:return/(\d)(?=(\d{3})+(?!\d))/g}}(c),o=-1===(o=n.search(/[1-9]/))?n.length:o,v=n.substring(0,o)+n.substring(o,n.length).replace(i,"$1"+f)),l&&(v=l+v),a&&(g+=a),w&&(v="-"+v),e=v+(p&&h||"")+g}function ei(e){var t=e.decimalSeparator;void 0===t&&(t=".");var n=e.thousandSeparator,i=e.allowedDecimalSeparators;return!0===n&&(n=","),i||(i=[t,"."]),{decimalSeparator:t,thousandSeparator:n,allowedDecimalSeparators:i}}function eo(e){var t,n,i,o,s,l,a,u,c,d,f,h,p,m,v,g,w,x,b,y,E,O,C,I,T,M,R,j,N,F=((t=function(e){var t=ei(e),n=t.thousandSeparator,i=t.decimalSeparator,o=e.prefix;void 0===o&&(o="");var s=e.allowNegative;if(void 0===s&&(s=!0),n===i)throw Error("\n        Decimal separator can't be same as thousand separator.\n        thousandSeparator: "+n+' (thousandSeparator = {true} is same as thousandSeparator = ",")\n        decimalSeparator: '+i+" (default value for decimalSeparator is .)\n     ");return o.startsWith("-")&&s&&(console.error("\n      Prefix can't start with '-' when allowNegative is true.\n      prefix: "+o+"\n      allowNegative: "+s+"\n    "),s=!1),Object.assign(Object.assign({},e),{allowNegative:s})}(t=e)).decimalSeparator,t.allowedDecimalSeparators,t.thousandsGroupStyle,n=t.suffix,i=t.allowNegative,o=t.allowLeadingZeros,void 0===(s=t.onKeyDown)&&(s=k),void 0===(l=t.onBlur)&&(l=k),a=t.thousandSeparator,u=t.decimalScale,c=t.fixedDecimalScale,void 0===(d=t.prefix)&&(d=""),f=t.defaultValue,h=t.value,p=t.valueIsNumericString,m=t.onValueChange,v=A(t,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thous
4andSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),w=(g=ei(t)).decimalSeparator,x=g.allowedDecimalSeparators,b=function(e){return en(e,t)},y=function(e,n){return function(e,t,n){void 0===t&&(t={from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""});var i,o,s,r,l=n.allowNegative,a=n.prefix;void 0===a&&(a="");var u=n.suffix;void 0===u&&(u="");var c=n.decimalScale,d=t.from,f=t.to,h=f.start,p=f.end,m=ei(n),v=m.allowedDecimalSeparators,g=m.decimalSeparator,w=e[p]===g;if(D(e)&&(e===a||e===u)&&""===t.lastValue)return e;if(p-h==1&&-1!==v.indexOf(e[h])){var x=0===c?"":g;e=e.substring(0,h)+x+e.substring(h+1,e.length)}var b=function(e,t,n){var i=!1,o=!1;a.startsWith("-")?i=!1:e.startsWith("--")?(i=!1,o=!0):u.startsWith("-")&&e.length===u.length?i=!1:"-"===e[0]&&(i=!0);var s=+!!i;return o&&(s=2),s&&(e=e.substring(s),t-=s,n-=s),{value:e,start:t,end:n,hasNegation:i}},S=b(e,h,p),y=S.hasNegation;e=S.value,h=S.start,p=S.end;var E=b(t.lastValue,d.start,d.end),O=E.start,C=E.end,I=E.value,T=e.substring(h,p);e.length&&I.length&&(O>I.length-u.length||C<a.length)&&!(T&&u.startsWith(T))&&(e=I);var M=0;e.startsWith(a)?M+=a.length:h<a.length&&(M=h),e=e.substring(M),p-=M;var R=e.length,j=e.length-u.length;e.endsWith(u)?R=j:p>j?R=p:p>e.length-u.length&&(R=p),e=e.substring(0,R),void 0===(i=y?"-"+e:e)&&(i=""),o=RegExp("(-)(.)*(-)"),s=/(-)/.test(i),r=o.test(i),i=i.replace(/-/g,""),s&&!r&&l&&(i="-"+i);var N=(e=((e=i).match(RegExp("(^-)|[0-9]|"+z(g),"g"))||[]).join("")).indexOf(g),F=L(e=e.replace(RegExp(z(g),"g"),function(e,t){return t===N?".":""}),l),P=F.beforeDecimal,A=F.afterDecimal,k=F.addNegation;return f.end-f.start<d.end-d.start&&""===P&&w&&!parseFloat(A)&&(e=k?"-":""),e}(e,n,t)},E=_(h)?f:h,C=null!=p?p:(O=d,""===E||!(null==O?void 0:O.match(/\d/))&&!(null==n?void 0:n.match(/\d/))&&"string"==typeof E&&!isNaN(Number(E))),_(h)?_(f)||(C=C||"number"==typeof f):C=C||"number"==typeof h,R=(M=(T=Q((I=function(e){return V(e)?e:("number"==typeof e&&(e=$(e)),C&&"number"==typeof u)?H(e,u,!!c):e})(h),I(f),!!C,b,y,m))[0]).numAsString,j=M.formattedValue,N=T[1],Object.assign(Object.assign({},v),{value:j,valueIsNumericString:!1,isValidInputCharacter:function(e){return e===w||D(e)},isCharacterSame:function(e){var t=e.currentValue,n=e.lastValue,i=e.formattedValue,o=e.currentValueIndex,s=e.formattedValueIndex,r=t[o],l=i[s],a=U(n,t).to,f=function(e){return y(e).indexOf(".")+d.length};return!(0===h&&c&&u&&t[a.start]===w&&f(t)<o&&f(i)>s)&&(!!(o>=a.start&&o<a.end&&x&&x.includes(r))&&l===w||r===l)},onValueChange:N,format:b,removeFormatting:y,getCaretBoundary:function(e){var n,i,o,s,r,l;return void 0===(i=(n=t).prefix)&&(i=""),void 0===(o=n.suffix)&&(o=""),s=Array.from({length:e.length+1}).map(function(){return!0}),r="-"===e[0],s.fill(!1,0,i.length+ +!!r),l=e.length,s.fill(!1,l-o.length+1,l+1),s},onKeyDown:function(e){var t=e.target,n=e.key,o=t.selectionStart,r=t.selectionEnd,l=t.value;if(void 0===l&&(l=""),("Backspace"===n||"Delete"===n)&&r<d.length)return void e.preventDefault();if(o!==r)return void s(e);"Backspace"===n&&"-"===l[0]&&o===d.length+1&&i&&K(t,1),u&&c&&("Backspace"===n&&l[o-1]===w?(K(t,o-1),e.preventDefault()):"Delete"===n&&l[o]===w&&e.preventDefault()),(null==x?void 0:x.includes(n))&&l[o]===w&&K(t,o+1);var f=!0===a?",":a;"Backspace"===n&&l[o-1]===f&&K(t,o-1),"Delete"===n&&l[o]===f&&K(t,o+1),s(e)},onBlur:function(e){var n=R;n.match(/\d/g)||(n=""),o||(n=function(e){if(!e)return e;var t="-"===e[0];t&&(e=e.substring(1,e.length));var n=e.split("."),i=n[0].replace(/^0+/,"")||"0",o=n[1]||"";return(t?"-":"")+i+(o?"."+o:"")}(n)),c&&u&&(n=H(n,u,c)),n!==R&&N({formattedValue:en(n,t),value:n,floatValue:parseFloat(n)},{event:e,source:r.event}),l(e)}}));return S.default.createElement(et,Object.assign({},F))}var es=e.i(28942);let er=new Set(["843721034","133408842"]),el=({results:e,totalItems:t,from:n,size:i})=>(0,l.jsx)("p",{className:"tw-inline-block tw-font-sofia-pro tw-font-normal tw-text-base lg:tw-text-xl tw-text-gray-700 tw-tracking-normal lg:tw-tracking-[-0.2px]",children:e.length>0?(0,l.jsxs)(l.Fragment,{children:["Displaying"," ",(0,l.jsxs)("span",{className:"tw-font-sofia-pro tw-font-semibold tw-text-base lg:tw-text-xl tw-text-cn-search tw-tracking-normal lg:tw-tracking-[-0.2px]",children:[n??1,"-",(0,l.jsx)(eo,{value:Math.min(i,e.length)+n||1,decimalScale:0,thousandSeparator:",",displayType:"text"})]})," ","of"," ",(0,l.jsx)("span",{className:"tw-font-sofia-pro tw-font-semibold tw-text-base lg:tw-text-xl tw-text-cn-search tw-tracking-normal lg:tw-tracking-[-0.2px]",children:1e4===t?(0,l.jsx)(l.Fragment,{children:"10,000+"}):(0,l.jsx)(eo,{value:t,decimalScale:0,thousandSeparator:",",displayType:"text"})})," ","results"]}):(0,l.jsx)(l.Fragment,{children:"No Results found"})}),ea=({results:e,onResultClick:t})=>e.map(e=>(0,l.jsx)(j,{result:e,onClick:t?()=>t(e.ein):void 0},e.ein));e.s(["SearchResults",0,({results:e,totalItems:t,from:n,size:i})=>{let o=e.filter(e=>{var t;return!((t=e.ein)&&er.has((0,es.formatEIN)(t)))});return(0,l.jsxs)("div",{className:"tw-mt-3 lg:tw-px-12 tw-w-full tw-max-w-[1200px]",children:[(0,l.jsxs)("div",{className:"lg:tw-flex lg:tw-flex-row tw-items-center tw-mb-2.5 tw-mx-2.5 lg:tw-mx-5",children:[(0,l.jsx)("div",{className:"tw-flex-grow tw=basis-full lg:tw-basis-10/12 tw-mb-4 lg:tw-mb-0 lg:tw-self-end",children:(0,l.jsx)(el,{results:o,from:n,size:i,totalItems:t})}),(0,l.jsx)("div",{className:"tw-basis-full lg:tw-basis-2/12 tw-justify-end tw-mb-3 lg:tw-mb-0",children:(0,l.jsx)(P,{})})]}),(0,l.jsx)("div",{className:"tw-space-y-3 lg:tw-space-y-5",children:o.length>0?(0,l.jsx)(ea,{results:o}):(0,l.jsx)("div",{children:(0,l.jsxs)("p",{className:"tw-text-center tw-font-sofia-pro tw-font-normal tw-text-base lg:tw-text-xl tw-text-gray-700 tw-tracking-normal lg:tw-tracking-[-0.2px] tw-my-40 tw-px-10",children:["Unfortunately, no charities met your search criteria.",(0,l.jsx)("br",{}
4),"Please search again with new keywords and/or filters."]})})})]})},"SearchResultsList",0,ea],86664)}]);

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