PageSourceSearch

https://greenwise.ru/_next/static/chunks/5728.8f38478d8830d669.js

js greenwise.ru collected 2026-10-02 18:01:11 UTC 20,367 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5728],{5641:(t,e,u)=>{u.d(e,{i:()=>i});var r=u(8101),n=u(6114);function i(t){let{value:e,defaultValue:u,onChange:i,shouldUpdate:s=(t,e)=>t!==e}=t,h=(0,n.c)(i),c=(0,n.c)(s),[o,l]=(0,r.useState)(u),a=void 0!==e,d=a?e:o,p=(0,n.c)(t=>{let e="function"==typeof t?t(d):t;c(d,e)&&(a||l(e),h(e))},[a,h,d,c]);return[d,p]}},6857:(t,e,u)=>{u.d(e,{W:()=>l,t:()=>a});var r=u(5105),n=u(3144),i=u(7136),s=u(9825),h=u(480);let c=(0,s.B)("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),o=(0,h.R)(function(t,e){let{placement:u="left",...n}=t,s=(0,i.Z)(),h=s.field,o={["left"===u?"insetStart":"insetEnd"]:"0",width:h?.height??h?.h,height:h?.height??h?.h,fontSize:h?.fontSize,...s.element};return(0,r.jsx)(c,{ref:e,__css:o,...n})});o.id="InputElement",o.displayName="InputElement";let l=(0,h.R)(function(t,e){let{className:u,...i}=t,s=(0,n.cx)("chakra-input__left-element",u);return(0,r.jsx)(o,{ref:e,placement:"left",className:s,...i})});l.id="InputLeftElement",l.displayName="InputLeftElement";let a=(0,h.R)(function(t,e){let{className:u,...i}=t,s=(0,n.cx)("chakra-input__right-element",u);return(0,r.jsx)(o,{ref:e,placement:"right",className:s,...i})});a.id="InputRightElement",a.displayName="InputRightElement"},7136:(t,e,u)=>{u.d(e,{M:()=>f,Z:()=>g});var r=u(5105),n=u(8227),i=u(2870),s=u(3144),h=u(4036),c=u(5200),o=u(8101),l=u(480),a=u(5485),d=u(9825);let[p,g]=(0,i.q)({name:"InputGroupStylesContext",errorMessage:"useInputGroupStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<InputGroup />\" "}),f=(0,l.R)(function(t,e){let u=(0,a.o)("Input",t),{children:i,className:l,...g}=(0,n.M)(t),f=(0,s.cx)("chakra-input__group",l),A={},E=(0,h.a)(i),C=u.field;E.forEach(t=>{u&&(C&&"InputLeftElement"===t.type.id&&(A.paddingStart=C.height??C.h),C&&"InputRightElement"===t.type.id&&(A.paddingEnd=C.height??C.h),"InputRightAddon"===t.type.id&&(A.borderEndRadius=0),"InputLeftAddon"===t.type.id&&(A.borderStartRadius=0))});let m=E.map(e=>{let u=(0,c.o)({size:e.props?.size||t.size,variant:e.props?.variant||t.variant});return"Input"!==e.type.id?(0,o.cloneElement)(e,u):(0,o.cloneElement)(e,Object.assign(u,A,e.props))});return(0,r.jsx)(d.B.div,{className:f,ref:e,__css:{width:"100%",display:"flex",position:"relative",isolation:"isolate",...u.group},"data-group":!0,...g,children:(0,r.jsx)(p,{value:u,children:m})})});f.displayName="InputGroup"},4036:(t,e,u)=>{u.d(e,{a:()=>n});var r=u(8101);function n(t){return r.Children.toArray(t).filter(t=>(0,r.isValidElement)(t))}},7717:(t,e,u)=>{function r(t){return Array.isArray?Array.isArray(t):"[object Array]"===l(t)}u.d(e,{A:()=>Y});let n=1/0;function i(t){return"string"==typeof t}function s(t){return"number"==typeof t}function h(t){return"object"==typeof t}function c(t){return null!=t}function o(t){return!t.trim().length}function l(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}let a=t=>`Invalid value for key ${t}`,d=t=>`Pattern length exceeds max of ${t}.`,p=t=>`Missing ${t} property in key`,g=t=>`Property 'weight' in key '${t}' must be a positive integer`,f=Object.prototype.hasOwnProperty;class A{constructor(t){this._keys=[],this._keyMap={};let e=0;t.forEach(t=>{let u=E(t);this._keys.push(u),this._keyMap[u.id]=u,e+=u.weight}),this._keys.forEach(t=>{t.weight/=e})}get(t){return this._keyMap[t]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function E(t){let e=null,u=null,n=null,s=1,h=null;if(i(t)||r(t))n=t,e=C(t),u=m(t);else{if(!f.call(t,"name"))throw Error(p("name"));let r=t.name;if(n=r,f.call(t,"weight")&&(s=t.weight)<=0)throw Error(g(r));e=C(r),u=m(r),h=t.getFn}return{path:e,id:u,weight:s,src:n,getFn:h}}function C(t){return r(t)?t:t.split(".")}function m(t){return r(t)?t.join("."):t}var y={isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(t,e)=>t.score===e.score?t.idx<e.idx?-1:1:t.score<e.score?-1:1,includeMatches:!1,findAllMatches:!1,minMatchCharLength:1,location:0,threshold:.6,distance:100,useExtendedSearch:!1,getFn:function(t,e){let u=[],o=!1,a=(t,e,d)=>{if(c(t)){if(e[d]){var p,g;let f=t[e[d]];if(c(f)){if(d===e.length-1&&(i(f)||s(f)||!0===(p=f)||!1===p||h(g=p)&&null!==g&&"[object Boolean]"==l(p)))u.pu
1sh(null==f?"":function(t){if("string"==typeof t)return t;let e=t+"";return"0"==e&&1/t==-n?"-0":e}(f));else if(r(f)){o=!0;for(let t=0,u=f.length;t<u;t+=1)a(f[t],e,d+1)}else e.length&&a(f,e,d+1)}}else u.push(t)}};return a(t,i(e)?e.split("."):e,0),o?u:u[0]},ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};let B=/[^ ]+/g;class F{constructor({getFn:t=y.getFn,fieldNormWeight:e=y.fieldNormWeight}={}){this.norm=function(t=1,e=3){let u=new Map,r=Math.pow(10,e);return{get(e){let n=e.match(B).length;if(u.has(n))return u.get(n);let i=parseFloat(Math.round(1/Math.pow(n,.5*t)*r)/r);return u.set(n,i),i},clear(){u.clear()}}}(e,3),this.getFn=t,this.isCreated=!1,this.setIndexRecords()}setSources(t=[]){this.docs=t}setIndexRecords(t=[]){this.records=t}setKeys(t=[]){this.keys=t,this._keysMap={},t.forEach((t,e)=>{this._keysMap[t.id]=e})}create(){!this.isCreated&&this.docs.length&&(this.isCreated=!0,i(this.docs[0])?this.docs.forEach((t,e)=>{this._addString(t,e)}):this.docs.forEach((t,e)=>{this._addObject(t,e)}),this.norm.clear())}add(t){let e=this.size();i(t)?this._addString(t,e):this._addObject(t,e)}removeAt(t){this.records.splice(t,1);for(let e=t,u=this.size();e<u;e+=1)this.records[e].i-=1}getValueForItemAtKeyId(t,e){return t[this._keysMap[e]]}size(){return this.records.length}_addString(t,e){if(!c(t)||o(t))return;let u={v:t,i:e,n:this.norm.get(t)};this.records.push(u)}_addObject(t,e){let u={i:e,$:{}};this.keys.forEach((e,n)=>{let s=e.getFn?e.getFn(t):this.getFn(t,e.path);if(c(s)){if(r(s)){let t=[],e=[{nestedArrIndex:-1,value:s}];for(;e.length;){let{nestedArrIndex:u,value:n}=e.pop();if(c(n)){if(i(n)&&!o(n)){let e={v:n,i:u,n:this.norm.get(n)};t.push(e)}else r(n)&&n.forEach((t,u)=>{e.push({nestedArrIndex:u,value:t})})}}u.$[n]=t}else if(i(s)&&!o(s)){let t={v:s,n:this.norm.get(s)};u.$[n]=t}}}),this.records.push(u)}toJSON(){return{keys:this.keys,records:this.records}}}function D(t,e,{getFn:u=y.getFn,fieldNormWeight:r=y.fieldNormWeight}={}){let n=new F({getFn:u,fieldNormWeight:r});return n.setKeys(t.map(E)),n.setSources(e),n.create(),n}function x(t,{errors:e=0,currentLocation:u=0,expectedLocation:r=0,distance:n=y.distance,ignoreLocation:i=y.ignoreLocation}={}){let s=e/t.length;if(i)return s;let h=Math.abs(r-u);return n?s+h/n:h?1:s}let _=String.prototype.normalize?t=>t.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\u2D7F\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,""):t=>t;class M{constructor(t,{location:e=y.location,threshold:u=y.threshold,distance:r=y.distance,includeMatches:n=y.includeMatches,findAllMatches:i=y.findAllMatches,minMatchCharLength:s=y.minMatchCharLength,isCaseSensitive:h=y.isCaseSensitive,ignoreDiacritics:c=y.ignoreDiacritics,ignoreLocation:o=y.ignoreLocation}={}){if(this.options={location:e,threshold:u,distance:r,includeMatches:n,findAllMatches:i,minMatchCharLength:s,isCaseSensitive:h,ignoreDiacritics:c,ignoreLocation:o}
1,t=h?t:t.toLowerCase(),t=c?_(t):t,this.pattern=t,this.chunks=[],!this.pattern.length)return;let l=(t,e)=>{this.chunks.push({pattern:t,alphabet:function(t){let e={};for(let u=0,r=t.length;u<r;u+=1){let n=t.charAt(u);e[n]=(e[n]||0)|1<<r-u-1}return e}(t),startIndex:e})},a=this.pattern.length;if(a>32){let t=0,e=a%32,u=a-e;for(;t<u;)l(this.pattern.substr(t,32),t),t+=32;if(e){let t=a-32;l(this.pattern.substr(t),t)}}else l(this.pattern,0)}searchIn(t){let{isCaseSensitive:e,ignoreDiacritics:u,includeMatches:r}=this.options;if(t=e?t:t.toLowerCase(),t=u?_(t):t,this.pattern===t){let e={isMatch:!0,score:0};return r&&(e.indices=[[0,t.length-1]]),e}let{location:n,distance:i,threshold:s,findAllMatches:h,minMatchCharLength:c,ignoreLocation:o}=this.options,l=[],a=0,p=!1;this.chunks.forEach(({pattern:e,alphabet:u,startIndex:g})=>{let{isMatch:f,score:A,indices:E}=function(t,e,u,{location:r=y.location,distance:n=y.distance,threshold:i=y.threshold,findAllMatches:s=y.findAllMatches,minMatchCharLength:h=y.minMatchCharLength,includeMatches:c=y.includeMatches,ignoreLocation:o=y.ignoreLocation}={}){let l;if(e.length>32)throw Error(d(32));let a=e.length,p=t.length,g=Math.max(0,Math.min(r,p)),f=i,A=g,E=h>1||c,C=E?Array(p):[];for(;(l=t.indexOf(e,A))>-1;)if(f=Math.min(x(e,{currentLocation:l,expectedLocation:g,distance:n,ignoreLocation:o}),f),A=l+a,E){let t=0;for(;t<a;)C[l+t]=1,t+=1}A=-1;let m=[],B=1,F=a+p,D=1<<a-1;for(let r=0;r<a;r+=1){let i=0,h=F;for(;i<h;)x(e,{errors:r,currentLocation:g+h,expectedLocation:g,distance:n,ignoreLocation:o})<=f?i=h:F=h,h=Math.floor((F-i)/2+i);F=h;let c=Math.max(1,g-h+1),l=s?p:Math.min(g+h,p)+a,d=Array(l+2);d[l+1]=(1<<r)-1;for(let i=l;i>=c;i-=1){let s=i-1,h=u[t.charAt(s)];if(E&&(C[s]=+!!h),d[i]=(d[i+1]<<1|1)&h,r&&(d[i]|=(m[i+1]|m[i])<<1|1|m[i+1]),d[i]&D&&(B=x(e,{errors:r,currentLocation:s,expectedLocation:g,distance:n,ignoreLocation:o}))<=f){if(f=B,(A=s)<=g)break;c=Math.max(1,2*g-A)}}if(x(e,{errors:r+1,currentLocation:g,expectedLocation:g,distance:n,ignoreLocation:o})>f)break;m=d}let _={isMatch:A>=0,score:Math.max(.001,B)};if(E){let t=function(t=[],e=y.minMatchCharLength){let u=[],r=-1,n=-1,i=0;for(let s=t.length;i<s;i+=1){let s=t[i];s&&-1===r?r=i:s||-1===r||((n=i-1)-r+1>=e&&u.push([r,n]),r=-1)}return t[i-1]&&i-r>=e&&u.push([r,i-1]),u}(C,h);t.length?c&&(_.indices=t):_.isMatch=!1}return _}(t,e,u,{location:n+g,distance:i,threshold:s,findAllMatches:h,minMatchCharLength:c,includeMatches:r,ignoreLocation:o});f&&(p=!0),a+=A,f&&E&&(l=[...l,...E])});let g={isMatch:p,score:p?a/this.chunks.length:1};return p&&r&&(g.indices=l),g}}class I{constructor(t){this.pattern=t}static isMultiMatch(t){return k(t,this.multiRegex)}static isSingleMatch(t){return k(t,this.singleRegex)}search(){}}function k(t,e){let u=t.match(e);return u?u[1]:null}class v extends I{constructor(t){super(t)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(t){let e=t===this.pattern;return{isMatch:e,score:e?0:1,indices:[0,this.pattern.length-1]}}}class S extends I{constructor(t){super(t)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(t){let e=-1===t.indexOf(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,t.length-1]}}}class R extends I{constructor(t){super(t)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(t){let e=t.startsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,this.pattern.length-1]}}}class b extends I{constructor(t){super(t)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(t){let e=!t.startsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,t.length-1]}}}class w extends I{constructor(t){super(t)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(t){let e=t.endsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[t.length-this.pattern.length,t.length-1]}}}class $ extends I{constructor(t){super(t)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(t){let e=!t.endsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,t.length-1]}}}class L extends I{constructor(t,{location:e=y.location,threshold:u=y.threshold,distance:r=y.distance,includeMatches:n=y.includeMatches,findAllMatches:i=y.findAllMatches,minMatchCharLength:s=y.minMatchCharLength,isCaseSensitive:h=y.isCaseSensitive,ignoreDiacritics:c=y.ignoreDiacritics,ignoreLocation:o=y.ignoreLocation}={}){super(t),this._bitapSearch=new M(t,{location:e,threshold:u,distance:r,includeMatches:n,findAllMatches:i,minMatchCharLength:s,isCaseSensitive:h,ignoreDiacritics:c,ignoreLocation:o})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(t){return this._bitapSearch.searchIn(t)}}class N extends I{constructor(t){super(t)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(t){let e,u=0,r=[],n=this.pattern.length;for(;(e=t.indexOf(this.pattern,u))>-1;)u=e+n,r.push([e,u-1]);let i=!!r.length;return{isMatch:i,score:i?0:1,indices:r}}}let j=[v,N,R,b,$,w,S,L],O=j.length,z=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,W=new Set([L.type,N.type]);class P{constructor(t,{isCaseSensitive:e=y.isCaseSensitive,ignoreDiacritics:u=y.ignoreDiacritics,includeMatches:r=y.includeMatches,minMatchCharLength:n=y.minMatchCharLength,ignoreLocation:i=y.ignoreLocation,findAllMatches:s=y.findAllMatches,location:h=y.location,threshold:c=y.threshold,distance:o=y.distance}={}){this.query=null,this.options={isCaseSensitive:e,ignoreDiacritics:u,includeMatches:r,minMatchCharLength:n,findAllMatches:s,ignoreLocation:i,location:h,threshold:c,distance:o},t=e?t:t.toLowerCase(),t=u?_(t):t,this.pattern=t,this.query=function(t,e={}){return t.split("|").map(t=>{let u=t.trim().split(z).filter(t=>t&&!!t.trim()),r=[];for(let t=0,n=u.length;t<n;t+=1){let n=u[t],i=!1,s=-1;for(;!i&&++s<O;){let t=j[s],u=t.isMultiMatch(n);u&&(r.push(new t(u,e)),i=!0)}if(!i)for(s=-1;++s<O;){let t=j[s],u=t.isSingleMatch(n);
1if(u){r.push(new t(u,e));break}}}return r})}(this.pattern,this.options)}static condition(t,e){return e.useExtendedSearch}searchIn(t){let e=this.query;if(!e)return{isMatch:!1,score:1};let{includeMatches:u,isCaseSensitive:r,ignoreDiacritics:n}=this.options;t=r?t:t.toLowerCase(),t=n?_(t):t;let i=0,s=[],h=0;for(let r=0,n=e.length;r<n;r+=1){let n=e[r];s.length=0,i=0;for(let e=0,r=n.length;e<r;e+=1){let r=n[e],{isMatch:c,indices:o,score:l}=r.search(t);if(c){if(i+=1,h+=l,u){let t=r.constructor.type;W.has(t)?s=[...s,...o]:s.push(o)}}else{h=0,i=0,s.length=0;break}}if(i){let t={isMatch:!0,score:h/i};return u&&(t.indices=s),t}}return{isMatch:!1,score:1}}}let T=[];function K(t,e){for(let u=0,r=T.length;u<r;u+=1){let r=T[u];if(r.condition(t,e))return new r(t,e)}return new M(t,e)}let q={AND:"$and",OR:"$or"},G={PATH:"$path",PATTERN:"$val"},H=t=>!!(t[q.AND]||t[q.OR]),J=t=>!!t[G.PATH],V=t=>!r(t)&&h(t)&&!H(t),Z=t=>({[q.AND]:Object.keys(t).map(e=>({[e]:t[e]}))});function Q(t,e,{auto:u=!0}={}){let n=t=>{let s=Object.keys(t),h=J(t);if(!h&&s.length>1&&!H(t))return n(Z(t));if(V(t)){let r=h?t[G.PATH]:s[0],n=h?t[G.PATTERN]:t[r];if(!i(n))throw Error(a(r));let c={keyId:m(r),pattern:n};return u&&(c.searcher=K(n,e)),c}let c={children:[],operator:s[0]};return s.forEach(e=>{let u=t[e];r(u)&&u.forEach(t=>{c.children.push(n(t))})}),c};return H(t)||(t=Z(t)),n(t)}function U(t,e){let u=t.matches;e.matches=[],c(u)&&u.forEach(t=>{if(!c(t.indices)||!t.indices.length)return;let{indices:u,value:r}=t,n={indices:u,value:r};t.key&&(n.key=t.key.src),t.idx>-1&&(n.refIndex=t.idx),e.matches.push(n)})}function X(t,e){e.score=t.score}class Y{constructor(t,e={},u){this.options={...y,...e},this.options.useExtendedSearch,this._keyStore=new A(this.options.keys),this.setCollection(t,u)}setCollection(t,e){if(this._docs=t,e&&!(e instanceof F))throw Error("Incorrect 'index' type");this._myIndex=e||D(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(t){c(t)&&(this._docs.push(t),this._myIndex.add(t))}remove(t=()=>!1){let e=[];for(let u=0,r=this._docs.length;u<r;u+=1){let n=this._docs[u];t(n,u)&&(this.removeAt(u),u-=1,r-=1,e.push(n))}return e}removeAt(t){this._docs.splice(t,1),this._myIndex.removeAt(t)}getIndex(){return this._myIndex}search(t,{limit:e=-1}={}){let{includeMatches:u,includeScore:r,shouldSort:n,sortFn:h,ignoreFieldNorm:c}=this.options,o=i(t)?i(this._docs[0])?this._searchStringList(t):this._searchObjectList(t):this._searchLogical(t);return!function(t,{ignoreFieldNorm:e=y.ignoreFieldNorm}){t.forEach(t=>{let u=1;t.matches.forEach(({key:t,norm:r,score:n})=>{let i=t?t.weight:null;u*=Math.pow(0===n&&i?Number.EPSILON:n,(i||1)*(e?1:r))}),t.score=u})}(o,{ignoreFieldNorm:c}),n&&o.sort(h),s(e)&&e>-1&&(o=o.slice(0,e)),function(t,e,{includeMatches:u=y.includeMatches,includeScore:r=y.includeScore}={}){let n=[];return u&&n.push(U),r&&n.push(X),t.map(t=>{let{idx:u}=t,r={item:e[u],refIndex:u};return n.length&&n.forEach(e=>{e(t,r)}),r})}(o,this._docs,{includeMatches:u,includeScore:r})}_searchStringList(t){let e=K(t,this.options),{records:u}=this._myIndex,r=[];return u.forEach(({v:t,i:u,n:n})=>{if(!c(t))return;let{isMatch:i,score:s,indices:h}=e.searchIn(t);i&&r.push({item:t,idx:u,matches:[{score:s,value:t,norm:n,indices:h}]})}),r}_searchLogical(t){let e=Q(t,this.options),u=(t,e,r)=>{if(!t.children){let{keyId:u,searcher:n}=t,i=this._findMatches({key:this._keyStore.get(u),value:this._myIndex.getValueForItemAtKeyId(e,u),searcher:n});return i&&i.length?[{idx:r,item:e,matches:i}]:[]}let n=[];for(let i=0,s=t.children.length;i<s;i+=1){let s=u(t.children[i],e,r);if(s.length)n.push(...s);else if(t.operator===q.AND)return[]}return n},r=this._myIndex.records,n={},i=[];return r.forEach(({$:t,i:r})=>{if(c(t)){let s=u(e,t,r);s.length&&(n[r]||(n[r]={idx:r,item:t,matches:[]},i.push(n[r])),s.forEach(({matches:t})=>{n[r].matches.push(...t)}))}}),i}_searchObjectList(t){let e=K(t,this.options),{keys:u,records:r}=this._myIndex,n=[];return r.forEach(({$:t,i:r})=>{if(!c(t))return;let i=[];u.forEach((u,r)=>{i.push(...this._findMatches({key:u,value:t[r],searcher:e}))}),i.length&&n.push({idx:r,item:t,matches:i})}),n}_findMatches({key:t,value:e,searcher:u}){if(!c(e))return[];let n=[];if(r(e))e.forEach(({v:e,i:r,n:i})=>{if(!c(e))return;let{isMatch:s,score:h,indices:o}=u.searchIn(e);s&&n.push({score:h,key:t,value:e,idx:r,norm:i,indices:o})});else{let{v:r,n:i}=e,{isMatch:s,score:h,indices:c}=u.searchIn(r);s&&n.push({score:h,key:t,value:r,norm:i,indices:c})}return n}}Y.version="7.1.0",Y.createIndex=D,Y.parseIndex=function(t,{getFn:e=y.getFn,fieldNormWeight:u=y.fieldNormWeight}={}){let{keys:r,records:n}=t,i=new F({getFn:e,fieldNormWeight:u});return i.setKeys(r),i.setIndexRecords(n),i},Y.config=y,Y.parseQuery=Q,function(...t){T.push(...t)}(P)}}]);

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