1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[351],{79205:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});var n=r(2265);let u=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),i=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter((e,t,r)=>!!e&&r.indexOf(e)===t).join(" ")};var o={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let s=(0,n.forwardRef)((e,t)=>{let{color:r="currentColor",size:u=24,strokeWidth:s=2,absoluteStrokeWidth:a,className:l="",children:c,iconNode:f,...h}=e;return(0,n.createElement)("svg",{ref:t,...o,width:u,height:u,stroke:r,strokeWidth:a?24*Number(s)/Number(u):s,className:i("lucide",l),...h},[...f.map(e=>{let[t,r]=e;return(0,n.createElement)(t,r)}),...Array.isArray(c)?c:[c]])}),a=(e,t)=>{let r=(0,n.forwardRef)((r,o)=>{let{className:a,...l}=r;return(0,n.createElement)(s,{ref:o,iconNode:t,className:i("lucide-".concat(u(e)),a),...l})});return r.displayName="".concat(e),r}},40875:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});let n=(0,r(79205).Z)("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},32489:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});let n=(0,r(79205).Z)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},49600:function(e,t,r){(e.exports=r(30908)).tz.load(r(46564))},30908:function(e,t,r){var n,u,i;i=function(e){"use strict";void 0===e.version&&e.default&&(e=e.default);var t,r,n={},u={},i={},o={},s={};e&&"string"==typeof e.version||M("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/");var a=e.version.split("."),l=+a[0],c=+a[1];function f(e){return e>96?e-87:e>64?e-29:e-48}function h(e){var t,r=0,n=e.split("."),u=n[0],i=n[1]||"",o=1,s=0,a=1;for(45===e.charCodeAt(0)&&(r=1,a=-1);r<u.length;r++)s=60*s+(t=f(u.charCodeAt(r)));for(r=0;r<i.length;r++)o/=60,s+=(t=f(i.charCodeAt(r)))*o;return s*a}function d(e){for(var t=0;t<e.length;t++)e[t]=h(e[t])}function p(e,t){var r,n=[];for(r=0;r<t.length;r++)n[r]=e[t[r]];return n}function m(e){var t=e.split("|"),r=t[2].split(" "),n=t[3].split(""),u=t[4].split(" ");return d(r),d(n),d(u),function(e,t){for(var r=0;r<t;r++)e[r]=Math.round((e[r-1]||0)+6e4*e[r]);e[t-1]=1/0}(u,n.length),{name:t[0],abbrs:p(t[1].split(" "),n),offsets:p(r,n),untils:u,population:0|t[5]}}function g(e){e&&this._set(m(e))}function v(e,t){this.name=e,this.zones=t}function y(e){var t=e.toTimeString(),r=t.match(/\([a-z ]+\)/i);"GMT"===(r=r&&r[0]?(r=r[0].match(/[A-Z]/g))?r.join(""):void 0:(r=t.match(/[A-Z]{3,5}/g))?r[0]:void 0)&&(r=void 0),this.at=+e,this.abbr=r,this.offset=e.getTimezoneOffset()}function b(e){this.zone=e,this.offsetScore=0,this.abbrScore=0}function A(e,t){return e.offsetScore!==t.offsetScore?e.offsetScore-t.offsetScore:e.abbrScore!==t.abbrScore?e.abbrScore-t.abbrScore:e.zone.population!==t.zone.population?t.zone.population-e.zone.population:t.zone.name.localeCompare(e.zone.name)}function E(e){return(e||"").toLowerCase().replace(/\//g,"_")}function x(e){var t,r,u,i;for("string"==typeof e&&(e=[e]),t=0;t<e.length;t++)n[i=E(r=(u=e[t].split("|"))[0])]=e[t],o[i]=r,function(e,t){var r,n;for(d(t),r=0;r<t.length;r++)s[n=t[r]]=s[n]||{},s[n][e]=!0}(i,u[2].split(" "))}function C(e,t){var r,i=n[e=E(e)];return i instanceof g?i:"string"==typeof i?(i=new g(i),n[e]=i,i):u[e]&&t!==C&&(r=C(u[e],C))?((i=n[e]=new g)._set(r),i.name=o[e],i):null}function S(e){var t,r,n,i;for("string"==typeof e&&(e=[e]),t=0;t<e.length;t++)n=E((r=e[t].split("|"))[0]),i=E(r[1]),u[n]=i,o[n]=r[0],u[i]=n,o[i]=r[1]}function I(e){var t="X"===e._f||"x"===e._f;return!!(e._a&&void 0===e._tzm&&!t)}function M(e){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(e)}function _(t){var r,n=Array.prototype.slice.call(arguments,0,-1),u=arguments[arguments.length-1],i=e.utc.apply(null,n);return!e.isMoment(t)&&I(i)&&(r=C(u))&&i.add(r.parse(i),"minutes"),i.tz(u),i}(l<2||2===l&&c<6)&&M("Moment Timezone requires Moment.js >= 2.6.0. You are using Moment.js "+e.version+". See momentjs.com"),g.prototype={_set:function(e){this.name=e.name,this.abbrs=e.abbrs,this.untils=e.untils,this.offsets=e.offsets,this.population=e.population},_index:function(e){var t;if((t=function(e,t){var r,n=t.length;if(e<t[0])return 0;if(n>1&&t[n-1]===1/0&&e>=t[n-2])return n-1;if(e>=t[n-1])return -1;for(var u=0,i=n-1;i-u>1;)t[r=Math.floor((u+i)/2)]<=e?u=r:i=r;return i}(+e,this.untils))>=0)return t},countries:function(){var e=this.name;return Object.keys(i).filter(function(t){return -1!==i[t].zones.indexOf(e)})},parse:function(e){var t,r,n,u,i=+e,o=this.offsets,s=this.untils,a=s.length-1;for(u=0;
1u<a;u++)if(t=o[u],r=o[u+1],n=o[u?u-1:u],t<r&&_.moveAmbiguousForward?t=r:t>n&&_.moveInvalidForward&&(t=n),i<s[u]-6e4*t)return o[u];return o[a]},abbr:function(e){return this.abbrs[this._index(e)]},offset:function(e){return M("zone.offset has been deprecated in favor of zone.utcOffset"),this.offsets[this._index(e)]},utcOffset:function(e){return this.offsets[this._index(e)]}},b.prototype.scoreOffsetAt=function(e){this.offsetScore+=Math.abs(this.zone.utcOffset(e.at)-e.offset),this.zone.abbr(e.at).replace(/[^A-Z]/g,"")!==e.abbr&&this.abbrScore++},_.version="0.5.47",_.dataVersion="",_._zones=n,_._links=u,_._names=o,_._countries=i,_.add=x,_.link=S,_.load=function(e){x(e.zones),S(e.links),function(e){var t,r,n,u;if(e&&e.length)for(t=0;t<e.length;t++)r=(u=e[t].split("|"))[0].toUpperCase(),n=u[1].split(" "),i[r]=new v(r,n)}(e.countries),_.dataVersion=e.version},_.zone=C,_.zoneExists=function e(t){return e.didShowError||(e.didShowError=!0,M("moment.tz.zoneExists('"+t+"') has been deprecated in favor of !moment.tz.zone('"+t+"')")),!!C(t)},_.guess=function(e){return(!r||e)&&(r=function(){try{var e=Intl.DateTimeFormat().resolvedOptions().timeZone;if(e&&e.length>3){var t=o[E(e)];if(t)return t;M("Moment Timezone found "+e+" from the Intl api, but did not have that data loaded.")}}catch(e){}var r,n,u,i=function(){var e,t,r,n,u=new Date().getFullYear()-2,i=new y(new Date(u,0,1)),o=i.offset,s=[i];for(n=1;n<48;n++)(r=new Date(u,n,1).getTimezoneOffset())!==o&&(s.push(e=function(e,t){for(var r,n;n=((t.at-e.at)/12e4|0)*6e4;)(r=new y(new Date(e.at+n))).offset===e.offset?e=r:t=r;return e}(i,t=new y(new Date(u,n,1)))),s.push(new y(new Date(e.at+6e4))),i=t,o=r);for(n=0;n<4;n++)s.push(new y(new Date(u+n,0,1))),s.push(new y(new Date(u+n,6,1)));return s}(),a=i.length,l=function(e){var t,r,n,u,i=e.length,a={},l=[],c={};for(t=0;t<i;t++)if(n=e[t].offset,!c.hasOwnProperty(n)){for(r in u=s[n]||{})u.hasOwnProperty(r)&&(a[r]=!0);c[n]=!0}for(t in a)a.hasOwnProperty(t)&&l.push(o[t]);return l}(i),c=[];for(n=0;n<l.length;n++){for(u=0,r=new b(C(l[n]),a);u<a;u++)r.scoreOffsetAt(i[u]);c.push(r)}return c.sort(A),c.length>0?c[0].zone.name:void 0}()),r},_.names=function(){var e,t=[];for(e in o)o.hasOwnProperty(e)&&(n[e]||n[u[e]])&&o[e]&&t.push(o[e]);return t.sort()},_.Zone=g,_.unpack=m,_.unpackBase60=h,_.needsOffset=I,_.moveInvalidForward=!0,_.moveAmbiguousForward=!1,_.countries=function(){return Object.keys(i)},_.zonesForCountry=function(e,t){if(!(e=i[e.toUpperCase()]||null))return null;var r=e.zones.sort();return t?r.map(function(e){var t=C(e);return{name:e,offset:t.utcOffset(new Date)}}):r};var D=e.fn;function F(e){return function(){return this._z?this._z.abbr(this):e.call(this)}}function w(e){return function(){return this._z=null,e.apply(this,arguments)}}e.tz=_,e.defaultZone=null,e.updateOffset=function(t,r){var n,u=e.defaultZone;if(void 0===t._z&&(u&&I(t)&&!t._isUTC&&t.isValid()&&(t._d=e.utc(t._a)._d,t.utc().add(u.parse(t),"minutes")),t._z=u),t._z){if(16>Math.abs(n=t._z.utcOffset(t))&&(n/=60),void 0!==t.utcOffset){var i=t._z;t.utcOffset(-n,r),t._z=i}else t.zone(n,r)}},D.tz=function(t,r){if(t){if("string"!=typeof t)throw Error("Time zone name must be a string, got "+t+" ["+typeof t+"]");return this._z=C(t),this._z?e.updateOffset(this,r):M("Moment Timezone has no data for "+t+". See http://momentjs.com/timezone/docs/#/data-loading/."),this}if(this._z)return this._z.name},D.zoneName=F(D.zoneName),D.zoneAbbr=F(D.zoneAbbr),D.utc=w(D.utc),D.local=w(D.local),D.utcOffset=(t=D.utcOffset,function(){return arguments.length>0&&(this._z=null),t.apply(this,arguments)}),e.tz.setDefault=function(t){return(l<2||2===l&&c<9)&&M("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js "+e.version+"."),e.defaultZone=t?C(t):null,e};var P=e.momentProperties;return"[object Array]"===Object.prototype.toString.call(P)?(P.push("_z"),P.push("_a")):P&&(P._z=null),e},e.exports?e.exports=i(r(77398)):(n=[r(77398)],void 0===(u=i.apply(t,n))||(e.exports=u))},33145:function(e,t,r){"use strict";r.d(t,{default:function(){return u.a}});var n=r(48461),u=r.n(n)},27648:function(e,t,r){"use strict";r.d(t,{default:function(){return u.a}});var n=r(72972),u=r.n(n)},48461:function(e,t,r){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return a},getImageProps:function(){return s}});let n=r(60917),u=r(55346),i=r(65878),o=n._(r(5084));function s(e){let{props:t}=(0,u.getImgProps)(e,{defaultLoader:o.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}}let a=i.Image},57792:function(){},57699:function(e,t,r){"use strict";let n,u,i;r.d(t,{v:function(){return O}});var o=r(2265),s=r(90945),a=r(13323),l=r(17684),c=r(64518),f=r(32539),h=r(40048),d=r(80004),p=r(93689),m=r(4301),g=r(15518),v=r(40293),y=r(37863),b=r(47634),A=r(34778),E=r(16015),x=r(37105),C=r(24536),S=r(27847),I=r(37388),M=((n=M||{})[n.Open=0]="Open",n[n.Closed=1]="Closed",n),_=((u=_||{})[u.Pointer=0]="Pointer",u[u.Other=1]="Other",u),D=((i=D||{})[i.OpenMenu=0]="OpenMenu",i[i.CloseMenu=1]="CloseMenu",i[i.GoToItem=2]="GoToItem",i[i.Search=3]="Search",i[i.ClearSearch=4]="ClearSearch",i[i.RegisterItem=5]="RegisterItem",i[i.UnregisterItem=6]="UnregisterItem",i);function F(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,r=null!==e.activeItemIndex?e.items[e.activeItemIndex]:null,n=(0,x.z2)(t(e.items.slice()),e=>e.dataRef.current.domRef.current),u=r?n.indexOf(r):null;return -1===u&&(u=null),{items:n,activeItemIndex:u}}let w={1:e=>1===e.menuState?e:{...e,activeItemIndex:null,menuState:1},0:e=>0===e.menuState?e:{...e,__demoMode:!1,menuState:0},2:(e,t)=>{var r;let n=F(e),u=(0,A.d)(t,{resolveItems:()=>n.items,resolveActiveIndex:()=>n.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...e,...n,searchQuery:"",activeItemIndex:u,activationTrigger:null!=(r=t.trigger)?r:1}},3:(e,t)=>{let r=""!==e.searchQuery?0:1,n=e.searchQuery+t.value.toLowerCase(),u=(null!==e.activeItemIndex?e.items.slice(e.activeItemIndex+r).concat(e.items.slice(0,e.activeItemIndex+r)):e.items).find(e=>{var t;return(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(n))&&!e.dataRef.current.disabled}),i=u?e.items.indexOf(u):-1;return -1===i||i===e.activeItemIndex?{...e,searchQuery:n}:{...e,searchQuery:n,activeItemIndex:i,activationTrigger:1}},4:e=>""===e.searchQuery?e:{...e,searchQuery:"",searchActiveItemIndex:null},5:(e,t)=>{let r=F(e,e=>[...e,{id:t.id,dataRef:t.dataRef}]);return{...e,...r}},6:(e,t)=>{let r=F(e,e=>{let r=e.findIndex(e=>e.id===t.id);return -1!==r&&e.splice(r,1),e});return{...e,...r,activationTrigger:1}}},P=(0,o.createContext)(null);function k(e){let t=(0,o.useContext)(P);if(null===t){let t=Error("<".concat(e," /> is missing a parent <Menu /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,k),t}return t}function z(e,t){return(0,C.E)(t.type,w,e,t)}P.displayName="MenuContext";let B=o.Fragment,R=S.AN.RenderStrategy|S.AN.Static,T=o.Fragment,O=Object.assign((0,S.yV)(function(e,t){let{__demoMode:r=!1,...n}=e,u=(0,o.useReducer)(z,{__demoMode:r,menuState:r?0:1,buttonRef:(0,o.createRef)(),itemsRef:(0,o.createRef)(),items:[],searchQuery:"",activeItemIndex:null,activationTrigger:1}),[{menuState:i,itemsRef:s,buttonRef:l},c]=u,h=(0,p.T)(t);(0,f.O)([l,s],(e,t)=>{var r;c({type:1}),(0,x.sP)(t,x.tJ.Loose)||(e.preventDefault(),null==(r=l.current)||r.focus())},0===i);let d=(0,a.z)(()=>{c({type:1})}),m=(0,o.useMemo)(()=>({open:0===i,close:d}),[i,d]);return o.createElement(P.Provider,{value:u},o.createElement(y.up,{value:(0,C.E)(i,{0:y.ZM.Open,1:y.ZM.Closed})},(0,S.sY)({ourProps:{ref:h},theirProps:n,slot:m,defaultTag:B,name:"Menu"})))}),{Button:(0,S.yV)(function(e,t){var r;let n=(0,l.M)(),{id:u="headlessui-menu-button-".concat(n),...i}=e,[c,f]=k("Menu.Button"),h=(0,p.T)(c.buttonRef,t),m=(0,s.G)(),g=(0,a.z)(e=>{switch(e.key){case I.R.Space:case I.R.Enter:case I.R.ArrowDown:e.preventDefault(),e.stopPropagation(),f({type:0}),m.nextFrame(()=>f({type:2,focus:A.T.First}));break;case I.R.ArrowUp:e.preventDefault(),e.stopPropagation(),f({type:0}),m.nextFrame(()=>f({type:2,focus:A.T.Last}))}}),v=(0,a.z)(e=>{e.key===I.R.Space&&e.preventDefault()}),y=(0,a.z)(t=>{if((0,b.P)(t.currentTarget))return t.preventDefault();e.disabled||(0===c.menuState?(f({type:1}),m.nextFrame(()=>{var e;return null==(e=c.buttonRef.current)?void 0:e.focus({preventScroll:!0})}
1)):(t.preventDefault(),f({type:0})))}),E=(0,o.useMemo)(()=>({open:0===c.menuState}),[c]),x={ref:h,id:u,type:(0,d.f)(e,c.buttonRef),"aria-haspopup":"menu","aria-controls":null==(r=c.itemsRef.current)?void 0:r.id,"aria-expanded":0===c.menuState,onKeyDown:g,onKeyUp:v,onClick:y};return(0,S.sY)({ourProps:x,theirProps:i,slot:E,defaultTag:"button",name:"Menu.Button"})}),Items:(0,S.yV)(function(e,t){var r,n;let u=(0,l.M)(),{id:i="headlessui-menu-items-".concat(u),...f}=e,[d,m]=k("Menu.Items"),g=(0,p.T)(d.itemsRef,t),b=(0,h.i)(d.itemsRef),C=(0,s.G)(),M=(0,y.oJ)(),_=null!==M?(M&y.ZM.Open)===y.ZM.Open:0===d.menuState;(0,o.useEffect)(()=>{let e=d.itemsRef.current;e&&0===d.menuState&&e!==(null==b?void 0:b.activeElement)&&e.focus({preventScroll:!0})},[d.menuState,d.itemsRef,b]),function(e){let{container:t,accept:r,walk:n,enabled:u=!0}=e,i=(0,o.useRef)(r),s=(0,o.useRef)(n);(0,o.useEffect)(()=>{i.current=r,s.current=n},[r,n]),(0,c.e)(()=>{if(!t||!u)return;let e=(0,v.r)(t);if(!e)return;let r=i.current,n=s.current,o=Object.assign(e=>r(e),{acceptNode:r}),a=e.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,o,!1);for(;a.nextNode();)n(a.currentNode)},[t,u,i,s])}({container:d.itemsRef.current,enabled:0===d.menuState,accept:e=>"menuitem"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let D=(0,a.z)(e=>{var t,r;switch(C.dispose(),e.key){case I.R.Space:if(""!==d.searchQuery)return e.preventDefault(),e.stopPropagation(),m({type:3,value:e.key});case I.R.Enter:if(e.preventDefault(),e.stopPropagation(),m({type:1}),null!==d.activeItemIndex){let{dataRef:e}=d.items[d.activeItemIndex];null==(r=null==(t=e.current)?void 0:t.domRef.current)||r.click()}(0,x.wI)(d.buttonRef.current);break;case I.R.ArrowDown:return e.preventDefault(),e.stopPropagation(),m({type:2,focus:A.T.Next});case I.R.ArrowUp:return e.preventDefault(),e.stopPropagation(),m({type:2,focus:A.T.Previous});case I.R.Home:case I.R.PageUp:return e.preventDefault(),e.stopPropagation(),m({type:2,focus:A.T.First});case I.R.End:case I.R.PageDown:return e.preventDefault(),e.stopPropagation(),m({type:2,focus:A.T.Last});case I.R.Escape:e.preventDefault(),e.stopPropagation(),m({type:1}),(0,E.k)().nextFrame(()=>{var e;return null==(e=d.buttonRef.current)?void 0:e.focus({preventScroll:!0})});break;case I.R.Tab:e.preventDefault(),e.stopPropagation(),m({type:1}),(0,E.k)().nextFrame(()=>{(0,x.EO)(d.buttonRef.current,e.shiftKey?x.TO.Previous:x.TO.Next)});break;default:1===e.key.length&&(m({type:3,value:e.key}),C.setTimeout(()=>m({type:4}),350))}}),F=(0,a.z)(e=>{e.key===I.R.Space&&e.preventDefault()}),w=(0,o.useMemo)(()=>({open:0===d.menuState}),[d]),P={"aria-activedescendant":null===d.activeItemIndex||null==(r=d.items[d.activeItemIndex])?void 0:r.id,"aria-labelledby":null==(n=d.buttonRef.current)?void 0:n.id,id:i,onKeyDown:D,onKeyUp:F,role:"menu",tabIndex:0,ref:g};return(0,S.sY)({ourProps:P,theirProps:f,slot:w,defaultTag:"div",features:R,visible:_,name:"Menu.Items"})}),Item:(0,S.yV)(function(e,t){let r=(0,l.M)(),{id:n="headlessui-menu-item-".concat(r),disabled:u=!1,...i}=e,[s,f]=k("Menu.Item"),h=null!==s.activeItemIndex&&s.items[s.activeItemIndex].id===n,d=(0,o.useRef)(null),v=(0,p.T)(t,d);(0,c.e)(()=>{if(s.__demoMode||0!==s.menuState||!h||0===s.activationTrigger)return;let e=(0,E.k)();return e.requestAnimationFrame(()=>{var e,t;null==(t=null==(e=d.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})}),e.dispose},[s.__demoMode,d,h,s.menuState,s.activationTrigger,s.activeItemIndex]);let y=(0,m.x)(d),b=(0,o.useRef)({disabled:u,domRef:d,get textValue(){return y()}});(0,c.e)(()=>{b.current.disabled=u},[b,u]),(0,c.e)(()=>(f({type:5,id:n,dataRef:b}),()=>f({type:6,id:n})),[b,n]);let C=(0,a.z)(()=>{f({type:1})}),I=(0,a.z)(e=>{if(u)return e.preventDefault();f({type:1}),(0,x.wI)(s.buttonRef.current)}),M=(0,a.z)(()=>{if(u)return f({type:2,focus:A.T.Nothing});f({type:2,focus:A.T.Specific,id:n})}),_=(0,g.g)(),D=(0,a.z)(e=>_.update(e)),F=(0,a.z)(e=>{_.wasMoved(e)&&(u||h||f({type:2,focus:A.T.Specific,id:n,trigger:0}))}),w=(0,a.z)(e=>{_.wasMoved(e)&&(u||h&&f({type:2,focus:A.T.Nothing}))}),P=(0,o.useMemo)(()=>({active:h,disabled:u,close:C}),[h,u,C]);return(0,S.sY)({ourProps:{id:n,ref:v,role:"menuitem",tabIndex:!0===u?void 0:-1,"aria-disabled":!0===u||void 0,disabled:void 0,onClick:I,onFocus:M,onPointerEnter:D,onMouseEnter:D,onPointerMove:F,onMouseMove:F,onPointerLeave:w,onMouseLeave:w},theirProps:i,slot:P,defaultTag:T,name:"Menu.Item"})})})},62756:function(e,t,r){"use strict";let n,u;r.d(t,{J:function(){return L}});
1var i=r(2265),o=r(31094),s=r(13323),a=r(96802),l=r(17684),c=r(64518),f=r(31948),h=r(32539),d=r(40048),p=r(80004),m=r(28851),g=r(93689),v=r(18369),y=r(38198),b=r(37863),A=r(47634),E=r(37105),x=r(24536),C=r(40293),S=r(27847),I=r(37388),M=((n=M||{})[n.Open=0]="Open",n[n.Closed=1]="Closed",n),_=((u=_||{})[u.TogglePopover=0]="TogglePopover",u[u.ClosePopover=1]="ClosePopover",u[u.SetButton=2]="SetButton",u[u.SetButtonId=3]="SetButtonId",u[u.SetPanel=4]="SetPanel",u[u.SetPanelId=5]="SetPanelId",u);let D={0:e=>{let t={...e,popoverState:(0,x.E)(e.popoverState,{0:1,1:0})};return 0===t.popoverState&&(t.__demoMode=!1),t},1:e=>1===e.popoverState?e:{...e,popoverState:1},2:(e,t)=>e.button===t.button?e:{...e,button:t.button},3:(e,t)=>e.buttonId===t.buttonId?e:{...e,buttonId:t.buttonId},4:(e,t)=>e.panel===t.panel?e:{...e,panel:t.panel},5:(e,t)=>e.panelId===t.panelId?e:{...e,panelId:t.panelId}},F=(0,i.createContext)(null);function w(e){let t=(0,i.useContext)(F);if(null===t){let t=Error("<".concat(e," /> is missing a parent <Popover /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,w),t}return t}F.displayName="PopoverContext";let P=(0,i.createContext)(null);function k(e){let t=(0,i.useContext)(P);if(null===t){let t=Error("<".concat(e," /> is missing a parent <Popover /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,k),t}return t}P.displayName="PopoverAPIContext";let z=(0,i.createContext)(null);function B(){return(0,i.useContext)(z)}z.displayName="PopoverGroupContext";let R=(0,i.createContext)(null);function T(e,t){return(0,x.E)(t.type,D,e,t)}R.displayName="PopoverPanelContext";let O=S.AN.RenderStrategy|S.AN.Static,N=S.AN.RenderStrategy|S.AN.Static,L=Object.assign((0,S.yV)(function(e,t){var r;let{__demoMode:n=!1,...u}=e,l=(0,i.useRef)(null),c=(0,g.T)(t,(0,g.h)(e=>{l.current=e})),p=(0,i.useRef)([]),v=(0,i.useReducer)(T,{__demoMode:n,popoverState:n?0:1,buttons:p,button:null,buttonId:null,panel:null,panelId:null,beforePanelSentinel:(0,i.createRef)(),afterPanelSentinel:(0,i.createRef)()}),[{popoverState:y,button:A,buttonId:C,panel:I,panelId:M,beforePanelSentinel:_,afterPanelSentinel:D},w]=v,k=(0,d.i)(null!=(r=l.current)?r:A),z=(0,i.useMemo)(()=>{if(!A||!I)return!1;for(let e of document.querySelectorAll("body > *"))if(Number(null==e?void 0:e.contains(A))^Number(null==e?void 0:e.contains(I)))return!0;let e=(0,E.GO)(),t=e.indexOf(A),r=(t+e.length-1)%e.length,n=(t+1)%e.length,u=e[r],i=e[n];return!I.contains(u)&&!I.contains(i)},[A,I]),O=(0,f.E)(C),N=(0,f.E)(M),L=(0,i.useMemo)(()=>({buttonId:O,panelId:N,close:()=>w({type:1})}),[O,N,w]),j=B(),$=null==j?void 0:j.registerPopover,Z=(0,s.z)(()=>{var e;return null!=(e=null==j?void 0:j.isFocusWithinPopoverGroup())?e:(null==k?void 0:k.activeElement)&&((null==A?void 0:A.contains(k.activeElement))||(null==I?void 0:I.contains(k.activeElement)))});(0,i.useEffect)(()=>null==$?void 0:$(L),[$,L]);let[W,V]=(0,o.k)(),G=(0,m.v)({mainTreeNodeRef:null==j?void 0:j.mainTreeNodeRef,portals:W,defaultContainers:[A,I]});(0,a.O)(null==k?void 0:k.defaultView,"focus",e=>{var t,r,n,u;e.target!==window&&e.target instanceof HTMLElement&&0===y&&(Z()||A&&I&&(G.contains(e.target)||null!=(r=null==(t=_.current)?void 0:t.contains)&&r.call(t,e.target)||null!=(u=null==(n=D.current)?void 0:n.contains)&&u.call(n,e.target)||w({type:1})))},!0),(0,h.O)(G.resolveContainers,(e,t)=>{w({type:1}),(0,E.sP)(t,E.tJ.Loose)||(e.preventDefault(),null==A||A.focus())},0===y);let K=(0,s.z)(e=>{w({type:1});let t=e?e instanceof HTMLElement?e:"current"in e&&e.current instanceof HTMLElement?e.current:A:A;null==t||t.focus()}),U=(0,i.useMemo)(()=>({close:K,isPortalled:z}),[K,z]),Y=(0,i.useMemo)(()=>({open:0===y,close:K}),[y,K]);return i.createElement(R.Provider,{value:null},i.createElement(F.Provider,{value:v},i.createElement(P.Provider,{value:U},i.createElement(b.up,{value:(0,x.E)(y,{0:b.ZM.Open,1:b.ZM.Closed})},i.createElement(V,null,(0,S.sY)({ourProps:{ref:c},theirProps:u,slot:Y,defaultTag:"div",name:"Popover"}),i.createElement(G.MainTreeNode,null))))))}),{Button:(0,S.yV)(function(e,t){let r=(0,l.M)(),{id:n="headlessui-popover-button-".concat(r),...u}=e,[o,a]=w("Popover.Button"),{isPortalled:c}=k("Popover.Button"),f=(0,i.useRef)(null),h="headlessui-focus-sentinel-".concat((0,l.M)()),m=B(),b=null==m?void 0:m.closeOthers,C=null!==(0,i.useContext)(R);(0,i.useEffect)(()=>
1{if(!C)return a({type:3,buttonId:n}),()=>{a({type:3,buttonId:null})}},[C,n,a]);let[M]=(0,i.useState)(()=>Symbol()),_=(0,g.T)(f,t,C?null:e=>{if(e)o.buttons.current.push(M);else{let e=o.buttons.current.indexOf(M);-1!==e&&o.buttons.current.splice(e,1)}o.buttons.current.length>1&&console.warn("You are already using a <Popover.Button /> but only 1 <Popover.Button /> is supported."),e&&a({type:2,button:e})}),D=(0,g.T)(f,t),F=(0,d.i)(f),P=(0,s.z)(e=>{var t,r,n;if(C){if(1===o.popoverState)return;switch(e.key){case I.R.Space:case I.R.Enter:e.preventDefault(),null==(r=(t=e.target).click)||r.call(t),a({type:1}),null==(n=o.button)||n.focus()}}else switch(e.key){case I.R.Space:case I.R.Enter:e.preventDefault(),e.stopPropagation(),1===o.popoverState&&(null==b||b(o.buttonId)),a({type:0});break;case I.R.Escape:if(0!==o.popoverState)return null==b?void 0:b(o.buttonId);if(!f.current||null!=F&&F.activeElement&&!f.current.contains(F.activeElement))return;e.preventDefault(),e.stopPropagation(),a({type:1})}}),z=(0,s.z)(e=>{C||e.key===I.R.Space&&e.preventDefault()}),T=(0,s.z)(t=>{var r,n;(0,A.P)(t.currentTarget)||e.disabled||(C?(a({type:1}),null==(r=o.button)||r.focus()):(t.preventDefault(),t.stopPropagation(),1===o.popoverState&&(null==b||b(o.buttonId)),a({type:0}),null==(n=o.button)||n.focus()))}),O=(0,s.z)(e=>{e.preventDefault(),e.stopPropagation()}),N=0===o.popoverState,L=(0,i.useMemo)(()=>({open:N}),[N]),j=(0,p.f)(e,f),$=C?{ref:D,type:j,onKeyDown:P,onClick:T}:{ref:_,id:o.buttonId,type:j,"aria-expanded":0===o.popoverState,"aria-controls":o.panel?o.panelId:void 0,onKeyDown:P,onKeyUp:z,onClick:T,onMouseDown:O},Z=(0,v.l)(),W=(0,s.z)(()=>{let e=o.panel;e&&(0,x.E)(Z.current,{[v.N.Forwards]:()=>(0,E.jA)(e,E.TO.First),[v.N.Backwards]:()=>(0,E.jA)(e,E.TO.Last)})===E.fE.Error&&(0,E.jA)((0,E.GO)().filter(e=>"true"!==e.dataset.headlessuiFocusGuard),(0,x.E)(Z.current,{[v.N.Forwards]:E.TO.Next,[v.N.Backwards]:E.TO.Previous}),{relativeTo:o.button})});return i.createElement(i.Fragment,null,(0,S.sY)({ourProps:$,theirProps:u,slot:L,defaultTag:"button",name:"Popover.Button"}),N&&!C&&c&&i.createElement(y._,{id:h,features:y.A.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:W}))}),Overlay:(0,S.yV)(function(e,t){let r=(0,l.M)(),{id:n="headlessui-popover-overlay-".concat(r),...u}=e,[{popoverState:o},a]=w("Popover.Overlay"),c=(0,g.T)(t),f=(0,b.oJ)(),h=null!==f?(f&b.ZM.Open)===b.ZM.Open:0===o,d=(0,s.z)(e=>{if((0,A.P)(e.currentTarget))return e.preventDefault();a({type:1})}),p=(0,i.useMemo)(()=>({open:0===o}),[o]);return(0,S.sY)({ourProps:{ref:c,id:n,"aria-hidden":!0,onClick:d},theirProps:u,slot:p,defaultTag:"div",features:O,visible:h,name:"Popover.Overlay"})}),Panel:(0,S.yV)(function(e,t){let r=(0,l.M)(),{id:n="headlessui-popover-panel-".concat(r),focus:u=!1,...o}=e,[a,f]=w("Popover.Panel"),{close:h,isPortalled:p}=k("Popover.Panel"),m="headlessui-focus-sentinel-before-".concat((0,l.M)()),A="headlessui-focus-sentinel-after-".concat((0,l.M)()),C=(0,i.useRef)(null),M=(0,g.T)(C,t,e=>{f({type:4,panel:e})}),_=(0,d.i)(C),D=(0,S.Y2)();(0,c.e)(()=>(f({type:5,panelId:n}),()=>{f({type:5,panelId:null})}),[n,f]);let F=(0,b.oJ)(),P=null!==F?(F&b.ZM.Open)===b.ZM.Open:0===a.popoverState,z=(0,s.z)(e=>{var t;if(e.key===I.R.Escape){if(0!==a.popoverState||!C.current||null!=_&&_.activeElement&&!C.current.contains(_.activeElement))return;e.preventDefault(),e.stopPropagation(),f({type:1}),null==(t=a.button)||t.focus()}});(0,i.useEffect)(()=>{var t;e.static||1===a.popoverState&&(null==(t=e.unmount)||t)&&f({type:4,panel:null})},[a.popoverState,e.unmount,e.static,f]),(0,i.useEffect)(()=>{if(a.__demoMode||!u||0!==a.popoverState||!C.current)return;let e=null==_?void 0:_.activeElement;C.current.contains(e)||(0,E.jA)(C.current,E.TO.First)},[a.__demoMode,u,C,a.popoverState]);let B=(0,i.useMemo)(()=>({open:0===a.popoverState,close:h}),[a,h]),T={ref:M,id:n,onKeyDown:z,onBlur:u&&0===a.popoverState?e=>{var t,r,n,u,i;let o=e.relatedTarget;o&&C.current&&(null!=(t=C.current)&&t.contains(o)||(f({type:1}),(null!=(n=null==(r=a.beforePanelSentinel.current)?void 0:r.contains)&&n.call(r,o)||null!=(i=null==(u=a.afterPanelSentinel.current)?void 0:u.contains)&&i.call(u,o))&&o.focus({preventScroll:!0})))}:void 0,tabIndex:-1},O=(0,v.l)(),L=(0,s.z)(()=>{let e=C.current;e&&(0,x.E)(O.current,{[v.N.Forwards]:()=>{var t;(0,E.jA)(e,E.TO.First)===E.fE.Error&&(null==(t=a.afterPanelSentinel.current)||t.focu
1s())},[v.N.Backwards]:()=>{var e;null==(e=a.button)||e.focus({preventScroll:!0})}})}),j=(0,s.z)(()=>{let e=C.current;e&&(0,x.E)(O.current,{[v.N.Forwards]:()=>{var e;if(!a.button)return;let t=(0,E.GO)(),r=t.indexOf(a.button),n=t.slice(0,r+1),u=[...t.slice(r+1),...n];for(let t of u.slice())if("true"===t.dataset.headlessuiFocusGuard||null!=(e=a.panel)&&e.contains(t)){let e=u.indexOf(t);-1!==e&&u.splice(e,1)}(0,E.jA)(u,E.TO.First,{sorted:!1})},[v.N.Backwards]:()=>{var t;(0,E.jA)(e,E.TO.Previous)===E.fE.Error&&(null==(t=a.button)||t.focus())}})});return i.createElement(R.Provider,{value:n},P&&p&&i.createElement(y._,{id:m,ref:a.beforePanelSentinel,features:y.A.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:L}),(0,S.sY)({mergeRefs:D,ourProps:T,theirProps:o,slot:B,defaultTag:"div",features:N,visible:P,name:"Popover.Panel"}),P&&p&&i.createElement(y._,{id:A,ref:a.afterPanelSentinel,features:y.A.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:j}))}),Group:(0,S.yV)(function(e,t){let r=(0,i.useRef)(null),n=(0,g.T)(r,t),[u,o]=(0,i.useState)([]),a=(0,m.H)(),l=(0,s.z)(e=>{o(t=>{let r=t.indexOf(e);if(-1!==r){let e=t.slice();return e.splice(r,1),e}return t})}),c=(0,s.z)(e=>(o(t=>[...t,e]),()=>l(e))),f=(0,s.z)(()=>{var e;let t=(0,C.r)(r);if(!t)return!1;let n=t.activeElement;return!!(null!=(e=r.current)&&e.contains(n))||u.some(e=>{var r,u;return(null==(r=t.getElementById(e.buttonId.current))?void 0:r.contains(n))||(null==(u=t.getElementById(e.panelId.current))?void 0:u.contains(n))})}),h=(0,s.z)(e=>{for(let t of u)t.buttonId.current!==e&&t.close()}),d=(0,i.useMemo)(()=>({registerPopover:c,unregisterPopover:l,isFocusWithinPopoverGroup:f,closeOthers:h,mainTreeNodeRef:a.mainTreeNodeRef}),[c,l,f,h,a.mainTreeNodeRef]),p=(0,i.useMemo)(()=>({}),[]);return i.createElement(z.Provider,{value:d},(0,S.sY)({ourProps:{ref:n},theirProps:e,slot:p,defaultTag:"div",name:"Popover.Group"}),i.createElement(a.MainTreeNode,null))})})},80004:function(e,t,r){"use strict";r.d(t,{f:function(){return o}});var n=r(2265),u=r(64518);function i(e){var t;if(e.type)return e.type;let r=null!=(t=e.as)?t:"button";if("string"==typeof r&&"button"===r.toLowerCase())return"button"}function o(e,t){let[r,o]=(0,n.useState)(()=>i(e));return(0,u.e)(()=>{o(i(e))},[e.type,e.as]),(0,u.e)(()=>{r||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&o("button")},[r,t]),r}},4301:function(e,t,r){"use strict";r.d(t,{x:function(){return s}});var n=r(2265);let u=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function i(e){var t,r;let n=null!=(t=e.innerText)?t:"",i=e.cloneNode(!0);if(!(i instanceof HTMLElement))return n;let o=!1;for(let e of i.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))e.remove(),o=!0;let s=o?null!=(r=i.innerText)?r:"":n;return u.test(s)&&(s=s.replace(u,"")),s}var o=r(13323);function s(e){let t=(0,n.useRef)(""),r=(0,n.useRef)("");return(0,o.z)(()=>{let n=e.current;if(!n)return"";let u=n.innerText;if(t.current===u)return r.current;let o=(function(e){let t=e.getAttribute("aria-label");if("string"==typeof t)return t.trim();let r=e.getAttribute("aria-labelledby");if(r){let e=r.split(" ").map(e=>{let t=document.getElementById(e);if(t){let e=t.getAttribute("aria-label");return"string"==typeof e?e.trim():i(t).trim()}return null}).filter(Boolean);if(e.length>0)return e.join(", ")}return i(e).trim()})(n).trim().toLowerCase();return t.current=u,r.current=o,o})}},15518:function(e,t,r){"use strict";r.d(t,{g:function(){return i}});var n=r(2265);function u(e){return[e.screenX,e.screenY]}function i(){let e=(0,n.useRef)([-1,-1]);return{wasMoved(t){let r=u(t);return(e.current[0]!==r[0]||e.current[1]!==r[1])&&(e.current=r,!0)},update(t){e.current=u(t)}}}},34778:function(e,t,r){"use strict";let n;r.d(t,{T:function(){return u},d:function(){return i}});var u=((n=u||{})[n.First=0]="First",n[n.Previous=1]="Previous",n[n.Next=2]="Next",n[n.Last=3]="Last",n[n.Specific=4]="Specific",n[n.Nothing=5]="Nothing",n);function i(e,t){let r=t.resolveItems();if(r.length<=0)return null;let n=t.resolveActiveIndex(),u=null!=n?n:-1;switch(e.focus){case 0:for(let e=0;e<r.length;++e)if(!t.resolveDisabled(r[e],e,r))return e;return n;case 1:for(let e=u-1;e>=0;--e)if(!t.resolveDisabled(r[e],e,r))return e;return n;case 2:for(let e=u+1;e<r.length;++e)if(!t.resolveDisabled(r[e],e,r))return e;return n;case 3:for(let e=r.length-1;e>=0;--e)if(!t.resolveDisabled(r[e],e,r))return e;return n;case 4:for(let n=0;n<r.length;++n)if(t.resolveId(r[n],n,r)===e.id)return n;return n;case 5:return null;default:!function(e){throw Error("Unexpected object: "+e)}(e)}}},53916:function(e,t,r){"use strict";function n(e){return Array.isArray?Array.isArray(e):"[object Array]"===c(e)}function u(e){return null==e?"":function(e){if("string"==typeof e)return e;if("bigint"==typeof e)return e.toString();let t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(e)}function i(e){return"string"==typeof e}function o(e){return"number"==typeof e}function s(e){return"object"==typeof e}function a(e){return null!=e}function l(e){return!e.trim().length}
1function c(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}r.d(t,{Z:function(){return eo}});let f=e=>`Invalid value for key ${e}`,h=e=>`Pattern length exceeds max of ${e}.`,d=e=>`Missing ${e} property in key`,p=e=>`Property 'weight' in key '${e}' must be a positive integer`,m=Object.prototype.hasOwnProperty;class g{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach(e=>{let r=v(e);this._keys.push(r),this._keyMap[r.id]=r,t+=r.weight}),this._keys.forEach(e=>{e.weight/=t})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function v(e){let t=null,r=null,u=null,o=1,s=null;if(i(e)||n(e))u=e,t=y(e),r=b(e);else{if(!m.call(e,"name"))throw Error(d("name"));let n=e.name;if(u=n,m.call(e,"weight")&&(o=e.weight)<=0)throw Error(p(n));t=y(n),r=b(n),s=e.getFn}return{path:t,id:r,weight:o,src:u,getFn:s}}function y(e){return n(e)?e:e.split(".")}function b(e){return n(e)?e.join("."):e}let A=Object.freeze({isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1,includeMatches:!1,findAllMatches:!1,minMatchCharLength:1,location:0,threshold:.6,distance:100,useExtendedSearch:!1,useTokenSearch:!1,getFn:function(e,t){let r=[],l=!1,f=(e,t,h,d)=>
1{if(a(e)){if(t[h]){var p,m;let g=e[t[h]];if(a(g)){if(h===t.length-1&&(i(g)||o(g)||!0===(p=g)||!1===p||s(m=p)&&null!==m&&"[object Boolean]"==c(p)||"bigint"==typeof g))r.push(void 0!==d?{v:u(g),i:d}:u(g));else if(n(g)){l=!0;for(let e=0,r=g.length;e<r;e+=1)f(g[e],t,h+1,e)}else t.length&&f(g,t,h+1,d)}}else r.push(void 0!==d?{v:e,i:d}:e)}};return f(e,i(t)?t.split("."):t,0),l?r:r[0]},ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1}),E=/[^ ]+/g;class x{constructor({getFn:e=A.getFn,fieldNormWeight:t=A.fieldNormWeight}={}){this.norm=function(e=1,t=3){let r=new Map,n=Math.pow(10,t);return{get(t){let u=t.match(E).length;if(r.has(u))return r.get(u);let i=parseFloat(Math.round(1/Math.pow(u,.5*e)*n)/n);return r.set(u,i),i},clear(){r.clear()}}}(t,3),this.getFn=e,this.isCreated=!1,this.docs=[],this.keys=[],this._keysMap={},this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach((e,t)=>{this._keysMap[e.id]=t})}create(){!this.isCreated&&this.docs.length&&(this.isCreated=!0,i(this.docs[0])?this.docs.forEach((e,t)=>{this._addString(e,t)}):this.docs.forEach((e,t)=>{this._addObject(e,t)}),this.norm.clear())}add(e){let t=this.size();i(e)?this._addString(e,t):this._addObject(e,t)}removeAt(e){this.records.splice(e,1);for(let t=e,r=this.size();t<r;t+=1)this.records[t].i-=1}removeAll(e){for(let t=e.length-1;t>=0;t-=1)this.records.splice(e[t],1);for(let e=0,t=this.records.length;e<t;e+=1)this.records[e].i=e}getValueForItemAtKeyId(e,t){return e[this._keysMap[t]]}size(){return this.records.length}_addString(e,t){if(!a(e)||l(e))return;let r={v:e,i:t,n:this.norm.get(e)};this.records.push(r)}_addObject(e,t){let r={i:t,$:{}};this.keys.forEach((t,o)=>{let s=t.getFn?t.getFn(e):this.getFn(e,t.path);if(a(s)){if(n(s)){let e=[];for(let t=0,r=s.length;t<r;t+=1){let r=s[t];if(a(r)){if(i(r)){if(!l(r)){let n={v:r,i:t,n:this.norm.get(r)};e.push(n)}}else if(a(r.v)){let t=i(r.v)?r.v:u(r.v);if(!l(t)){let n={v:t,i:r.i,n:this.norm.get(t)};e.push(n)}}}}r.$[o]=e}else if(i(s)&&!l(s)){let e={v:s,n:this.norm.get(s)};r.$[o]=e}}}),this.records.push(r)}toJSON(){return{keys:this.keys.map(({getFn:e,...t})=>t),records:this.records}}}function C(e,t,{getFn:r=A.getFn,fieldNormWeight:n=A.fieldNormWeight}={}){let u=new x({getFn:r,fieldNormWeight:n});return u.setKeys(e.map(v)),u.setSources(t),u.create(),u}function S(e){if(e.length<=1)return e;e.sort((e,t)=>e[0]-t[0]||e[1]-t[1]);let t=[e[0]];for(let r=1,n=e.length;r<n;r+=1){let n=t[t.length-1],u=e[r];u[0]<=n[1]+1?n[1]=Math.max(n[1],u[1]):t.push(u)}return t}let I={Å:"l",Å:"L",Ä:"d",Ä:"D",ø:"o",Ã:"O",ħ:"h",Ħ:"H",ŧ:"t",Ŧ:"T",ı:"i",Ã:"ss"},M=RegExp("["+Object.keys(I).join("")+"]","g"),_=String.prototype.normalize?e=>e.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D
17F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,"").replace(M,e=>I[e]):e=>e;class D{constructor(e,{location:t=A.location,threshold:r=A.threshold,distance:n=A.distance,includeMatches:u=A.includeMatches,findAllMatches:i=A.findAllMatches,minMatchCharLength:o=A.minMatchCharLength,isCaseSensitive:s=A.isCaseSensitive,ignoreDiacritics:a=A.ignoreDiacritics,ignoreLocation:l=A.ignoreLocation}={}){if(this.options={location:t,threshold:r,distance:n,includeMatches:u,findAllMatches:i,minMatchCharLength:o,isCaseSensitive:s,ignoreDiacritics:a,ignoreLocation:l},e=s?e:e.toLowerCase(),e=a?_(e):e,this.pattern=e,this.chunks=[],!this.pattern.length)return;let c=(e,t)=>{this.chunks.push({pattern:e,alphabet:function(e){let t={};for(let r=0,n=e.length;r<n;r+=1){let u=e.charAt(r);t[u]=(t[u]||0)|1<<n-r-1}return t}(e),startIndex:t})},f=this.pattern.length;if(f>32){let e=0,t=f%32,r=f-t;for(;e<r;)c(this.pattern.substr(e,32),e),e+=32;if(t){let e=f-32;c(this.pattern.substr(e),e)}}else c(this.pattern,0)}searchIn(e){let{isCaseSensitive:t,ignoreDiacritics:r,includeMatches:n}=this.options;if(e=t?e:e.toLowerCase(),e=r?_(e):e,this.pattern===e){let t={isMatch:!0,score:0};return n&&(t.indices=[[0,e.length-1]]),t}let{location:u,distance:i,threshold:o,findAllMatches:s,minMatchCharLength:a,ignoreLocation:l}=this.options,c=[],f=0,d=!1;this.chunks.forEach(({pattern:t,alphabet:r,startIndex:p})=>{let{isMatch:m,score:g,indices:v}=function(e,t,r,{location:n=A.location,distance:u=A.distance,threshold:i=A.threshold,findAllMatches:o=A.findAllMatches,minMatchCharLength:s=A.minMatchCharLength,includeMatches:a=A.includeMatches,ignoreLocation:l=A.ignoreLocation}={}){let c;if(t.length>32)throw Error(h(32));let f=t.length,d=e.length,p=Math.max(0,Math.min(n,d)),m=i,g=p,v=(e,t)=>{let r=e/f;if(l)return r;let n=Math.abs(p-t);return u?r+n/u:n?1:r},y=s>1||a,b=y?Array(d):[];for(;(c=e.indexOf(t,g))>-1;)if(m=Math.min(v(0,c),m),g=c+f,y){let e=0;for(;e<f;)b[c+e]=1,e+=1}g=-1;let E=[],x=1,C=f+d,S=1<<f-1;for(let t=0;t<f;t+=1){let n=0,u=C;for(;n<u;)v(t,p+u)<=m?n=u:C=u,u=Math.floor((C-n)/2+n);C=u;let i=Math.max(1,p-u+1),s=o?d:Math.min(p+u,d)+f,a=Array(s+2);a[s+1]=(1<<t)-1;for(let n=s;n>=i;n-=1){let u=n-1,o=r[e[u]];if(y&&(b[u]=+!!o),a[n]=(a[n+1]<<1|1)&o,t&&(a[n]|=(E[n+1]|E[n])<<1|1|E[n+1]),a[n]&S&&(x=v(t,u))<=m){if(m=x,(g=u)<=p)break;i=Math.max(1,2*p-g)}}if(v(t+1,p)>m)break;E=a}let I={isMatch:g>=0,score:Math.max(.001,x)};if(y){let e=function(e=[],t=A.minMatchCharLength){let r=[],n=-1,u=-1,i=0;for(let o=e.length;i<o;i+=1){let o=e[i];o&&-1===n?n=i:o||-1===n||((u=i-1)-n+1>=t&&r.push([n,u]),n=-1)}return e[i-1]&&i-n>=t&&r.push([n,i-1]),r}(b,s);e.length?a&&(I.indices=e):I.isMatch=!1}return I}(e,t,r,{location:u+p,distance:i,threshold:o,findAllMatches:s,minMatchCharLength:a,includeMatches:n,ignoreLocation:l});m&&(d=!0),f+=g,m&&v&&c.push(...v)});let p={isMatch:d,score:d?f/this.chunks.length:1};return d&&n&&(p.indices=S(c)),p}}class F{constructor(e){this.pattern=e}static isMultiMatch(e){return w(e,this.multiRegex)}static isSingleMatch(e){return w(e,this.singleRegex)}search(e){return{isMatch:!1,score:1}}}function w(e,t){let r=e.match(t);return r?r[1]:null}class P extends F{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){let t=e===this.pattern;return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}}class k extends F{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){let t=-1===e.indexOf(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}}class z extends F{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){let t=e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}}class B extends F{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){let t=!e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}}class R extends F{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){let t=e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[e.length-this.pattern.length,e.length-1]}}}class T extends F{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){let t=!e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}}class O extends F{constructor(e,{location:t=A.location,threshold:r=A.threshold,distance:n=A.distance,includeMatches:u=A.includeMatches,findAllMatches:i=A.findAllMatches,minMatchCharLength:o=A.minMatchCharLength,isCaseSensitive:s=A.isCaseSensitive,ignoreDiacritics:a=A.ignoreDiacritics,ignoreLocation:l=A.ignoreLocation}={}){super(e),this._bitapSearch=new D(e,{location:t,threshold:r,distance:n,includeMatches:u,findAllMatches:i,minMatchCharLength:o,isCaseSensitive:s,ignoreDiacritics:a,ignoreLocation:l})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class N extends F{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let t,r=0,n=[],u=this.pattern.length;for(;(t=e.indexOf(this.pattern,r))>-1;)r=t+u,n.push([t,r-1]);let i=!!n.length;return{isMatch:i,score:i?0:1,indices:n}}}let L=[P,N,z,B,T,R,k,O],j=L.length,$=new Set([O.type,N.type]);class Z{constructor(e,{isCaseSensitive:t=A.isCaseSensitive,ignoreDiacritics:r=A.ignoreDiacritics,includeMatches:n=A.includeMatches,minMatchCharLength:u=A.minMatchCharLength,ignoreLocation:i=A.ignoreLocation,findAllMatches:o=A.findAllMatches,location:s=A.location,threshold:a=A.threshold,distance:l=A.distance}={}){this.query=null,this.options={isCaseSensitive:t,ignoreDiacritics:r,includeMatches:n,minMatchCharLength:u,findAllMatches:o,ignoreLocation:i,location:s,threshold:a,distance:l},e=t?e:e.toLowerCase(),e=r?_(e):e,this.pattern=e,this.query=function(e,t={}){return e.replace(/\\\|/g,"\0").split("|").map(e=>{let r=(function(e){let t=[],r=e.length,n=0;for(;n<r;){for(;n<r&&" "===e[n];)n++;if(n>=r)break;let u=n;for(;u<r&&" "!==e[u]&&'"'!==e[u];)u++;if(u<r&&'"'===e[u]){for(u++;
1u<r;){if('"'===e[u]){let t=u+1;if(t>=r||" "===e[t]){u++;break}if("$"===e[t]&&(t+1>=r||" "===e[t+1])){u+=2;break}}u++}t.push(e.substring(n,u)),n=u}else{for(;u<r&&" "!==e[u];)u++;t.push(e.substring(n,u)),n=u}}return t})(e.replace(/\u0000/g,"|").trim()).filter(e=>e&&!!e.trim()),n=[];for(let e=0,u=r.length;e<u;e+=1){let u=r[e],i=!1,o=-1;for(;!i&&++o<j;){let e=L[o],r=e.isMultiMatch(u);r&&(n.push(new e(r,t)),i=!0)}if(!i)for(o=-1;++o<j;){let e=L[o],r=e.isSingleMatch(u);if(r){n.push(new e(r,t));break}}}return n})}(this.pattern,this.options)}static condition(e,t){return t.useExtendedSearch}searchIn(e){let t=this.query;if(!t)return{isMatch:!1,score:1};let{includeMatches:r,isCaseSensitive:n,ignoreDiacritics:u}=this.options;e=n?e:e.toLowerCase(),e=u?_(e):e;let i=0,o=[],s=0,a=!1;for(let n=0,u=t.length;n<u;n+=1){let u=t[n];o.length=0,i=0,a=!1;for(let t=0,n=u.length;t<n;t+=1){let n=u[t],{isMatch:l,indices:c,score:f}=n.search(e);if(l){i+=1,s+=f;let e=n.constructor.type;e.startsWith("inverse")&&(a=!0),r&&($.has(e)?o.push(...c):o.push(c))}else{s=0,i=0,o.length=0,a=!1;break}}if(i){let e={isMatch:!0,score:s/i};return a&&(e.hasInverse=!0),r&&(e.indices=S(o)),e}}return{isMatch:!1,score:1}}}let W=[];function V(...e){W.push(...e)}function G(e,t){for(let r=0,n=W.length;r<n;r+=1){let n=W[r];if(n.condition(e,t))return new n(e,t)}return new D(e,t)}let K={AND:"$and",OR:"$or"},U={PATH:"$path",PATTERN:"$val"},Y=e=>!!(e[K.AND]||e[K.OR]),Q=e=>!!e[U.PATH],H=e=>!n(e)&&s(e)&&!Y(e),q=e=>({[K.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function J(e,t,{auto:r=!0}={}){let u=e=>{if(i(e)){let n={keyId:null,pattern:e};return r&&(n.searcher=G(e,t)),n}let o=Object.keys(e),s=Q(e);if(!s&&o.length>1&&!Y(e))return u(q(e));if(H(e)){let n=s?e[U.PATH]:o[0],u=s?e[U.PATTERN]:e[n];if(!i(u))throw Error(f(n));let a={keyId:b(n),pattern:u};return r&&(a.searcher=G(u,t)),a}let a={children:[],operator:o[0]};return o.forEach(t=>{let r=e[t];n(r)&&r.forEach(e=>{a.children.push(u(e))})}),a};return Y(e)||(e=q(e)),u(e)}function X(e,{ignoreFieldNorm:t=A.ignoreFieldNorm}){let r=1;return e.forEach(({key:e,norm:n,score:u})=>{let i=e?e.weight:null;r*=Math.pow(0===u&&i?Number.EPSILON:u,(i||1)*(t?1:n))}),r}class ee{constructor(e){this.limit=e,this.heap=[]}get size(){return this.heap.length}shouldInsert(e){return this.size<this.limit||e<this.heap[0].score}insert(e){this.size<this.limit?(this.heap.push(e),this._bubbleUp(this.size-1)):e.score<this.heap[0].score&&(this.heap[0]=e,this._sinkDown(0))}extractSorted(e){return this.heap.sort(e)}_bubbleUp(e){let t=this.heap;for(;e>0;){let r=e-1>>1;if(t[e].score<=t[r].score)break;let n=t[e];t[e]=t[r],t[r]=n,e=r}}_sinkDown(e){let t=this.heap,r=t.length,n=e;do{let u=2*(e=n)+1,i=2*e+2;if(u<r&&t[u].score>t[n].score&&(n=u),i<r&&t[i].score>t[n].score&&(n=i),n!==e){let r=t[e];t[e]=t[n],t[n]=r}}while(n!==e)}}function et(e,t){let r=e.matches;t.matches=[],a(r)&&r.forEach(e=>{if(!a(e.indices)||!e.indices.length)return;let{indices:r,value:n}=e,u={indices:r,value:n};e.key&&(u.key=e.key.src),e.idx>-1&&(u.refIndex=e.idx),t.matches.push(u)})}function er(e,t){t.score=e.score}let en=/\b\w+\b/g;function eu({isCaseSensitive:e=!1,ignoreDiacritics:t=!1}={}){return{tokenize:r=>(e||(r=r.toLowerCase()),t&&(r=_(r)),r.match(en)||[])}}function ei(e,t){for(let[r,n]of e.terms){let u=n.filter(e=>e.docIdx!==t),i=n.length-u.length;i>0&&(e.fieldCount-=i,e.df.set(r,(e.df.get(r)||0)-i),0===u.length?(e.terms.delete(r),e.df.delete(r)):e.terms.set(r,u))}}class eo{constructor(e,t,r){this.options={...A,...t},this.options.useExtendedSearch,this.options.useTokenSearch,this._keyStore=new g(this.options.keys),this._docs=e,this._myIndex=null,this._invertedIndex=null,this.setCollection(e,r),this._lastQuery=null,this._lastSearcher=null}_getSearcher(e){if(this._lastQuery===e)return this._lastSearcher;let t=G(e,this._invertedIndex?{...this.options,_invertedIndex:this._invertedIndex}:this.options);return this._lastQuery=e,this._lastSearcher=t,t}setCollection(e,t){if(this._docs=e,t&&!(t instanceof x))throw Error("Incorrect 'index' type");if(this._myIndex=t||C(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight}),this.options.useTokenSearch){let e=eu({isCaseSensitive:this.options.isCaseSensitive,ignoreDiacritics:this.options.ignoreDiacritics});this._invertedIndex=function(e,t,r){let n=new Map,u=new Map,i=0;function o(e,t,o,s){let a=r.tokenize(e);if(!a.length)return;i++;let l=new Map;for(let e of a)l.set(e,(l.get(e)||0)+1);for(let[e,r]of l){let i={docIdx:t,keyIdx:o,subIdx:s,tf:r},a=n.get(e);a||(a=[],n.set(e,a)),a.push(i),u.set(e,(u.get(e)||0)+1)}}for(let r of e){let{i:e,v:n,$:u}=r;if(void 0!==n){o(n,e,-1,-1);continue}if(u)for(let r=0;r<t;r++){let t=u[r];if(t){if(Array.isArray(t))for(let n of t)o(n.v,e,r,n.i??-1);else o(t.v,e,r,-1)}}}return{terms:n,fieldCount:i,df:u}}(this._myIndex.records,this._myIndex.keys.length,e)}}add(e){if(a(e)&&(this._docs.push(e),this._myIndex.add(e),this._invertedIndex)){let e=this._myIndex.records[this._myIndex.records.length-1],t=eu({isCaseSensitive:this.options.isCaseSensitive,ignoreDiacritics:this.options.ignoreDiacritics});!function(e,t,r,n){let{i:u,v:i,$:o}=t;function s(t,r,i){let o=n.tokenize(t);if(!o.length)return;e.fieldCount++;let s=new Map;for(let e of o)s.set(e,(s.get(e)||0)+1);for(let[t,n]of s){let o={docIdx:u,keyIdx:r,subIdx:i,tf:n},s=e.terms.get(t);s||(s=[],e.terms.set(t,s)),s.push(o),e.df.set(t,(e.df.get(t)||0)+1)}}if(void 0!==i){s(i,-1,-1);return}if(o)for(let e=0;e<r;
1e++){let t=o[e];if(t){if(Array.isArray(t))for(let r of t)s(r.v,e,r.i??-1);else s(t.v,e,-1)}}}(this._invertedIndex,e,this._myIndex.keys.length,t)}}remove(e=()=>!1){let t=[],r=[];for(let n=0,u=this._docs.length;n<u;n+=1)e(this._docs[n],n)&&(t.push(this._docs[n]),r.push(n));if(r.length){if(this._invertedIndex)for(let e of r)ei(this._invertedIndex,e);for(let e=r.length-1;e>=0;e-=1)this._docs.splice(r[e],1);this._myIndex.removeAll(r)}return t}removeAt(e){this._invertedIndex&&ei(this._invertedIndex,e);let t=this._docs.splice(e,1)[0];return this._myIndex.removeAt(e),t}getIndex(){return this._myIndex}search(e,t){let r;let{limit:n=-1}=t||{},{includeMatches:u,includeScore:s,shouldSort:a,sortFn:l,ignoreFieldNorm:c}=this.options;if(i(e)&&!e.trim()){let e=this._docs.map((e,t)=>({item:e,refIndex:t}));return o(n)&&n>-1&&(e=e.slice(0,n)),e}if(o(n)&&n>0&&i(e)){let t=new ee(n);i(this._docs[0])?this._searchStringList(e,{heap:t,ignoreFieldNorm:c}):this._searchObjectList(e,{heap:t,ignoreFieldNorm:c}),r=t.extractSorted(l)}else!function(e,{ignoreFieldNorm:t=A.ignoreFieldNorm}){e.forEach(e=>{e.score=X(e.matches,{ignoreFieldNorm:t})})}(r=i(e)?i(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e),{ignoreFieldNorm:c}),a&&r.sort(l),o(n)&&n>-1&&(r=r.slice(0,n));return function(e,t,{includeMatches:r=A.includeMatches,includeScore:n=A.includeScore}={}){let u=[];return r&&u.push(et),n&&u.push(er),e.map(e=>{let{idx:r}=e,n={item:t[r],refIndex:r};return u.length&&u.forEach(t=>{t(e,n)}),n})}(r,this._docs,{includeMatches:u,includeScore:s})}_searchStringList(e,{heap:t,ignoreFieldNorm:r}={}){let n=this._getSearcher(e),{records:u}=this._myIndex,i=t?null:[];return u.forEach(({v:e,i:u,n:o})=>{if(!a(e))return;let{isMatch:s,score:l,indices:c}=n.searchIn(e);if(s){let n={item:e,idx:u,matches:[{score:l,value:e,norm:o,indices:c}]};t?(n.score=X(n.matches,{ignoreFieldNorm:r}),t.shouldInsert(n.score)&&t.insert(n)):i.push(n)}}),i}_searchLogical(e){let t=J(e,this.options),r=(e,t,n)=>{if(!("children"in e)){let r;let{keyId:u,searcher:i}=e;return(null===u?(r=[],this._myIndex.keys.forEach((e,n)=>{r.push(...this._findMatches({key:e,value:t[n],searcher:i}))})):r=this._findMatches({key:this._keyStore.get(u),value:this._myIndex.getValueForItemAtKeyId(t,u),searcher:i}),r&&r.length)?[{idx:n,item:t,matches:r}]:[]}let{children:u,operator:i}=e,o=[];for(let e=0,s=u.length;e<s;e+=1){let s=r(u[e],t,n);if(s.length)o.push(...s);else if(i===K.AND)return[]}return o},n=this._myIndex.records,u=new Map,i=[];return n.forEach(({$:e,i:n})=>
1{if(a(e)){let o=r(t,e,n);o.length&&(u.has(n)||(u.set(n,{idx:n,item:e,matches:[]}),i.push(u.get(n))),o.forEach(({matches:e})=>{u.get(n).matches.push(...e)}))}}),i}_searchObjectList(e,{heap:t,ignoreFieldNorm:r}={}){let n=this._getSearcher(e),{keys:u,records:i}=this._myIndex,o=t?null:[];return i.forEach(({$:e,i:i})=>{if(!a(e))return;let s=[],l=!1,c=!1;if(u.forEach((t,r)=>{let u=this._findMatches({key:t,value:e[r],searcher:n});u.length?(s.push(...u),u[0].hasInverse&&(c=!0)):l=!0}),(!c||!l)&&s.length){let n={idx:i,item:e,matches:s};t?(n.score=X(n.matches,{ignoreFieldNorm:r}),t.shouldInsert(n.score)&&t.insert(n)):o.push(n)}}),o}_findMatches({key:e,value:t,searcher:r}){if(!a(t))return[];let u=[];if(n(t))t.forEach(({v:t,i:n,n:i})=>{if(!a(t))return;let{isMatch:o,score:s,indices:l,hasInverse:c}=r.searchIn(t);o&&u.push({score:s,key:e,value:t,idx:n,norm:i,indices:l,hasInverse:c})});else{let{v:n,n:i}=t,{isMatch:o,score:s,indices:a,hasInverse:l}=r.searchIn(n);o&&u.push({score:s,key:e,value:n,norm:i,indices:a,hasInverse:l})}return u}}class es{static condition(e,t){return t.useTokenSearch}constructor(e,t){this.options=t,this.analyzer=eu({isCaseSensitive:t.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics});let r=this.analyzer.tokenize(e),{df:n,fieldCount:u}=t._invertedIndex;for(let e of(this.termSearchers=[],this.idfWeights=[],r)){this.termSearchers.push(new D(e,{location:t.location,threshold:t.threshold,distance:t.distance,includeMatches:t.includeMatches,findAllMatches:t.findAllMatches,minMatchCharLength:t.minMatchCharLength,isCaseSensitive:t.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics,ignoreLocation:!0}));let r=n.get(e)||0,i=Math.log(1+(u-r+.5)/(r+.5));this.idfWeights.push(i)}}searchIn(e){if(!this.termSearchers.length)return{isMatch:!1,score:1};let t=[],r=0,n=0,u=0;for(let i=0;i<this.termSearchers.length;i++){let o=this.termSearchers[i].searchIn(e),s=this.idfWeights[i];n+=s,o.isMatch&&(u++,r+=s*(1-o.score),o.indices&&t.push(...o.indices))}if(0===u)return{isMatch:!1,score:1};let i={isMatch:!0,score:Math.max(.001,n>0?1-r/n:0)};return this.options.includeMatches&&t.length&&(i.indices=S(t)),i}}eo.version="7.3.0",eo.createIndex=C,eo.parseIndex=function(e,{getFn:t=A.getFn,fieldNormWeight:r=A.fieldNormWeight}={}){let{keys:n,records:u}=e,i=new x({getFn:t,fieldNormWeight:r});return i.setKeys(n),i.setIndexRecords(u),i},eo.config=A,eo.match=function(e,t,r){return G(e,{...A,...r}).searchIn(t)},eo.parseQuery=J,V(Z),V(es),eo.use=function(...e){e.forEach(e=>V(e))}}}]);
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.