!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a0a0e4-ef49-7221-92e6-e70fbf37563a")}catch(e){}}();(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,476578,e=>{"use strict";function t(e){return Array.isArray?Array.isArray(e):"[object Array]"===o(e)}let r=1/0;function n(e){return"string"==typeof e}function i(e){return"number"==typeof e}function u(e){return"object"==typeof e}function s(e){return null!=e}function a(e){return!e.trim().length}function o(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}let l=Object.prototype.hasOwnProperty;class c{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach(e=>{let r=h(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 h(e){let r=null,i=null,u=null,s=1,a=null;if(n(e)||t(e))u=e,r=d(e),i=f(e);else{if(!l.call(e,"name"))throw Error("Missing name property in key");let t=e.name;if(u=t,l.call(e,"weight")&&(s=e.weight)<=0)throw Error(`Property 'weight' in key '${t}' must be a positive integer`);r=d(t),i=f(t),a=e.getFn}return{path:r,id:i,weight:s,src:u,getFn:a}}function d(e){return t(e)?e:e.split(".")}function f(e){return t(e)?e.join("."):e}var p={isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx{if(s(e))if(a[d]){var f,p;let g=e[a[d]];if(!s(g))return;if(d===a.length-1&&(n(g)||i(g)||!0===(f=g)||!1===f||u(p=f)&&null!==p&&"[object Boolean]"==o(f)))l.push(null==g?"":function(e){if("string"==typeof e)return e;let t=e+"";return"0"==t&&1/e==-r?"-0":t}(g));else if(t(g)){c=!0;for(let e=0,t=g.length;e{this._keysMap[e.id]=t})}create(){!this.isCreated&&this.docs.length&&(this.isCreated=!0,n(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();n(e)?this._addString(e,t):this._addObject(e,t)}removeAt(e){this.records.splice(e,1);for(let t=e,r=this.size();t{let o=r.getFn?r.getFn(e):this.getFn(e,r.path);if(s(o)){if(t(o)){let e=[],r=[{nestedArrIndex:-1,value:o}];for(;r.length;){let{nestedArrIndex:i,value:u}=r.pop();if(s(u))if(n(u)&&!a(u)){let t={v:u,i:i,n:this.norm.get(u)};e.push(t)}else t(u)&&u.forEach((e,t)=>{r.push({nestedArrIndex:t,value:e})})}i.$[u]=e}else if(n(o)&&!a(o)){let e={v:o,n:this.norm.get(o)};i.$[u]=e}}}),this.records.push(i)}toJSON(){return{keys:this.keys,records:this.records}}}function x(e,t,{getFn:r=p.getFn,fieldNormWeight:n=p.fieldNormWeight}={}){let i=new m({getFn:r,fieldNormWeight:n});return i.setKeys(e.map(h)),i.setSources(t),i.create(),i}function A(e,{errors:t=0,currentLocation:r=0,expectedLocation:n=0,distance:i=p.distance,ignoreLocation:u=p.ignoreLocation}={}){let s=t/e.length;if(u)return s;let a=Math.abs(n-r);return i?s+a/i:a?1:s}let y=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\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,""):e=>e;class C{constructor(e,{location:t=p.location,threshold:r=p.threshold,distance:n=p.distance,includeMatches:i=p.includeMatches,findAllMatches:u=p.findAllMatches,minMatchCharLength:s=p.minMatchCharLength,isCaseSensitive:a=p.isCaseSensitive,ignoreDiacritics:o=p.ignoreDiacritics,ignoreLocation:l=p.ignoreLocation}={}){if(this.options={location:t,threshold:r,distance:n,includeMatches:i,findAllMatches:u,minMatchCharLength:s,isCaseSensitive:a,ignoreDiacritics:o,ignoreLocation:l},e=a?e:e.toLowerCase(),e=o?y(e):e,this.pattern=e,this.chunks=[],!this.pattern.length)return;const c=(e,t)=>{this.chunks.push({pattern:e,alphabet:function(e){let t={};for(let r=0,n=e.length;r32){let e=0;const t=h%32,r=h-t;for(;e{let{isMatch:g,score:m,indices:x}=function(e,t,r,{location:n=p.location,distance:i=p.distance,threshold:u=p.threshold,findAllMatches:s=p.findAllMatches,minMatchCharLength:a=p.minMatchCharLength,includeMatches:o=p.includeMatches,ignoreLocation:l=p.ignoreLocation}={}){let c;if(t.length>32)throw Error("Pattern length exceeds max of 32.");let h=t.length,d=e.length,f=Math.max(0,Math.min(n,d)),g=u,m=f,x=a>1||o,y=x?Array(d):[];for(;(c=e.indexOf(t,m))>-1;)if(g=Math.min(A(t,{currentLocation:c,expectedLocation:f,distance:i,ignoreLocation:l}),g),m=c+h,x){let e=0;for(;e=o;u-=1){let s=u-1,a=r[e.charAt(s)];if(x&&(y[s]=+!!a),p[u]=(p[u+1]<<1|1)&a,n&&(p[u]|=(C[u+1]|C[u])<<1|1|C[u+1]),p[u]&b&&(D=A(t,{errors:n,currentLocation:s,expectedLocation:f,distance:i,ignoreLocation:l}))<=g){if(g=D,(m=s)<=f)break;o=Math.max(1,2*f-m)}}if(A(t,{errors:n+1,currentLocation:f,expectedLocation:f,distance:i,ignoreLocation:l})>g)break;C=p}let M={isMatch:m>=0,score:Math.max(.001,D)};if(x){let e=function(e=[],t=p.minMatchCharLength){let r=[],n=-1,i=-1,u=0;for(let s=e.length;u=t&&r.push([n,i]),n=-1)}return e[u-1]&&u-n>=t&&r.push([n,u-1]),r}(y,a);e.length?o&&(M.indices=e):M.isMatch=!1}return M}(e,t,r,{location:i+f,distance:u,threshold:s,findAllMatches:a,minMatchCharLength:o,includeMatches:n,ignoreLocation:l});g&&(d=!0),h+=m,g&&x&&(c=[...c,...x])});let f={isMatch:d,score:d?h/this.chunks.length:1};return d&&n&&(f.indices=c),f}}class D{constructor(e){this.pattern=e}static isMultiMatch(e){return v(e,this.multiRegex)}static isSingleMatch(e){return v(e,this.singleRegex)}search(){}}function v(e,t){let r=e.match(t);return r?r[1]:null}class b extends D{constructor(e,{location:t=p.location,threshold:r=p.threshold,distance:n=p.distance,includeMatches:i=p.includeMatches,findAllMatches:u=p.findAllMatches,minMatchCharLength:s=p.minMatchCharLength,isCaseSensitive:a=p.isCaseSensitive,ignoreDiacritics:o=p.ignoreDiacritics,ignoreLocation:l=p.ignoreLocation}={}){super(e),this._bitapSearch=new C(e,{location:t,threshold:r,distance:n,includeMatches:i,findAllMatches:u,minMatchCharLength:s,isCaseSensitive:a,ignoreDiacritics:o,ignoreLocation:l})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class M extends D{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let t,r=0,n=[],i=this.pattern.length;for(;(t=e.indexOf(this.pattern,r))>-1;)r=t+i,n.push([t,r-1]);let u=!!n.length;return{isMatch:u,score:+!u,indices:n}}}let E=[class extends D{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,indices:[0,this.pattern.length-1]}}},M,class extends D{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,indices:[0,this.pattern.length-1]}}},class extends D{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,indices:[0,e.length-1]}}},class extends D{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,indices:[0,e.length-1]}}},class extends D{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,indices:[e.length-this.pattern.length,e.length-1]}}},class extends D{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,indices:[0,e.length-1]}}},b],S=E.length,F=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,k=new Set([b.type,M.type]),w=[];function B(e,t){for(let r=0,n=w.length;r!!(e[N]||e.$or),I=e=>({[N]:Object.keys(e).map(t=>({[t]:e[t]}))});function O(e,r,{auto:i=!0}={}){let s=e=>{let a=Object.keys(e),o=!!e[_];if(!o&&a.length>1&&!T(e))return s(I(e));if(!t(e)&&u(e)&&!T(e)){let t=o?e[_]:a[0],u=o?e.$val:e[t];if(!n(u))throw Error(`Invalid value for key ${t}`);let s={keyId:f(t),pattern:u};return i&&(s.searcher=B(u,r)),s}let l={children:[],operator:a[0]};return a.forEach(r=>{let n=e[r];t(n)&&n.forEach(e=>{l.children.push(s(e))})}),l};return T(e)||(e=I(e)),s(e)}function P(e,t){let r=e.matches;t.matches=[],s(r)&&r.forEach(e=>{if(!s(e.indices)||!e.indices.length)return;let{indices:r,value:n}=e,i={indices:r,value:n};e.key&&(i.key=e.key.src),e.idx>-1&&(i.refIndex=e.idx),t.matches.push(i)})}function $(e,t){t.score=e.score}class j{constructor(e,t={},r){this.options={...p,...t},this.options.useExtendedSearch,this._keyStore=new c(this.options.keys),this.setCollection(e,r)}setCollection(e,t){if(this._docs=e,t&&!(t instanceof m))throw Error("Incorrect 'index' type");this._myIndex=t||x(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){s(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=()=>!1){let t=[];for(let r=0,n=this._docs.length;r{let r=1;e.matches.forEach(({key:e,norm:n,score:i})=>{let u=e?e.weight:null;r*=Math.pow(0===i&&u?Number.EPSILON:i,(u||1)*(t?1:n))}),e.score=r})}(l,{ignoreFieldNorm:o}),s&&l.sort(a),i(t)&&t>-1&&(l=l.slice(0,t)),function(e,t,{includeMatches:r=p.includeMatches,includeScore:n=p.includeScore}={}){let i=[];return r&&i.push(P),n&&i.push($),e.map(e=>{let{idx:r}=e,n={item:t[r],refIndex:r};return i.length&&i.forEach(t=>{t(e,n)}),n})}(l,this._docs,{includeMatches:r,includeScore:u})}_searchStringList(e){let t=B(e,this.options),{records:r}=this._myIndex,n=[];return r.forEach(({v:e,i:r,n:i})=>{if(!s(e))return;let{isMatch:u,score:a,indices:o}=t.searchIn(e);u&&n.push({item:e,idx:r,matches:[{score:a,value:e,norm:i,indices:o}]})}),n}_searchLogical(e){let t=O(e,this.options),r=(e,t,n)=>{if(!e.children){let{keyId:r,searcher:i}=e,u=this._findMatches({key:this._keyStore.get(r),value:this._myIndex.getValueForItemAtKeyId(t,r),searcher:i});return u&&u.length?[{idx:n,item:t,matches:u}]:[]}let i=[];for(let u=0,s=e.children.length;u{if(s(e)){let s=r(t,e,n);s.length&&(i[n]||(i[n]={idx:n,item:e,matches:[]},u.push(i[n])),s.forEach(({matches:e})=>{i[n].matches.push(...e)}))}}),u}_searchObjectList(e){let t=B(e,this.options),{keys:r,records:n}=this._myIndex,i=[];return n.forEach(({$:e,i:n})=>{if(!s(e))return;let u=[];r.forEach((r,n)=>{u.push(...this._findMatches({key:r,value:e[n],searcher:t}))}),u.length&&i.push({idx:n,item:e,matches:u})}),i}_findMatches({key:e,value:r,searcher:n}){if(!s(r))return[];let i=[];if(t(r))r.forEach(({v:t,i:r,n:u})=>{if(!s(t))return;let{isMatch:a,score:o,indices:l}=n.searchIn(t);a&&i.push({score:o,key:e,value:t,idx:r,norm:u,indices:l})});else{let{v:t,n:u}=r,{isMatch:s,score:a,indices:o}=n.searchIn(t);s&&i.push({score:a,key:e,value:t,norm:u,indices:o})}return i}}j.version="7.1.0",j.createIndex=x,j.parseIndex=function(e,{getFn:t=p.getFn,fieldNormWeight:r=p.fieldNormWeight}={}){let{keys:n,records:i}=e,u=new m({getFn:t,fieldNormWeight:r});return u.setKeys(n),u.setIndexRecords(i),u},j.config=p,j.parseQuery=O,function(...e){w.push(...e)}(class{constructor(e,{isCaseSensitive:t=p.isCaseSensitive,ignoreDiacritics:r=p.ignoreDiacritics,includeMatches:n=p.includeMatches,minMatchCharLength:i=p.minMatchCharLength,ignoreLocation:u=p.ignoreLocation,findAllMatches:s=p.findAllMatches,location:a=p.location,threshold:o=p.threshold,distance:l=p.distance}={}){this.query=null,this.options={isCaseSensitive:t,ignoreDiacritics:r,includeMatches:n,minMatchCharLength:i,findAllMatches:s,ignoreLocation:u,location:a,threshold:o,distance:l},e=t?e:e.toLowerCase(),e=r?y(e):e,this.pattern=e,this.query=function(e,t={}){return e.split("|").map(e=>{let r=e.trim().split(F).filter(e=>e&&!!e.trim()),n=[];for(let e=0,i=r.length;e{"use strict";let t=(0,e.i(202913).default)("file-text",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);e.s(["FileText",0,t],969949)},756367,e=>{"use strict";let t=(0,e.i(202913).default)("funnel",[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]]);e.s(["Filter",0,t],756367)},283529,e=>{"use strict";let t=(0,e.i(202913).default)("hash",[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]]);e.s(["Hash",0,t],283529)},259844,e=>{"use strict";let t=(0,e.i(202913).default)("sliders-horizontal",[["path",{d:"M10 5H3",key:"1qgfaw"}],["path",{d:"M12 19H3",key:"yhmn1j"}],["path",{d:"M14 3v4",key:"1sua03"}],["path",{d:"M16 17v4",key:"1q0r14"}],["path",{d:"M21 12h-9",key:"1o4lsq"}],["path",{d:"M21 19h-5",key:"1rlt1p"}],["path",{d:"M21 5h-7",key:"1oszz2"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M8 12H3",key:"a7s4jb"}]]);e.s(["SlidersHorizontal",0,t],259844)},576081,629343,e=>{"use strict";let t=(0,e.i(202913).default)("square-arrow-out-up-right",[["path",{d:"M21 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h6",key:"y09zxi"}],["path",{d:"m21 3-9 9",key:"mpx6sq"}],["path",{d:"M15 3h6v6",key:"1q9fwt"}]]);e.s(["default",0,t],629343),e.s(["SquareArrowOutUpRight",0,t],576081)},108663,e=>{"use strict";var t=e.i(270401);function r(e,r,n,i){var u=this,s=(0,t.useRef)(null),a=(0,t.useRef)(0),o=(0,t.useRef)(0),l=(0,t.useRef)(null),c=(0,t.useRef)([]),h=(0,t.useRef)(),d=(0,t.useRef)(),f=(0,t.useRef)(e),p=(0,t.useRef)(!0);f.current=e;var g="u">typeof window,m=!r&&0!==r&&g;if("function"!=typeof e)throw TypeError("Expected a function");r=+r||0;var x=!!(n=n||{}).leading,A=!("trailing"in n)||!!n.trailing,y="maxWait"in n,C="debounceOnServer"in n&&!!n.debounceOnServer,D=y?Math.max(+n.maxWait||0,r):null;return(0,t.useEffect)(function(){return p.current=!0,function(){p.current=!1}},[]),(0,t.useMemo)(function(){var e=function(e){var t=c.current,r=h.current;return c.current=h.current=null,a.current=e,o.current=o.current||e,d.current=f.current.apply(r,t)},t=function(e,t){m&&cancelAnimationFrame(l.current),l.current=m?requestAnimationFrame(e):setTimeout(e,t)},n=function(e){if(!p.current)return!1;var t=e-s.current;return!s.current||t>=r||t<0||y&&e-a.current>=D},v=function(t){return l.current=null,A&&c.current?e(t):(c.current=h.current=null,d.current)},b=function e(){var i=Date.now();if(x&&o.current===a.current&&M(),n(i))return v(i);if(p.current){var u=r-(i-s.current);t(e,y?Math.min(u,D-(i-a.current)):u)}},M=function(){i&&i({})},E=function(){if(g||C){var i=Date.now(),o=n(i);if(c.current=[].slice.call(arguments),h.current=u,s.current=i,o){if(!l.current&&p.current)return a.current=s.current,t(b,r),x?e(s.current):d.current;if(y)return t(b,r),e(s.current)}return l.current||t(b,r),d.current}};return E.cancel=function(){var e=l.current;e&&(m?cancelAnimationFrame(l.current):clearTimeout(l.current)),a.current=0,c.current=s.current=h.current=l.current=null,e&&i&&i({})},E.isPending=function(){return!!l.current},E.flush=function(){return l.current?v(Date.now()):d.current},E},[x,y,r,D,A,m,g,C,i])}function n(e,t){return e===t}e.s(["useDebounce",0,function(e,i,u){var s=u&&u.equalityFn||n,a=(0,t.useRef)(e),o=(0,t.useState)({})[1],l=r((0,t.useCallback)(function(e){a.current=e,o({})},[o]),i,u,o),c=(0,t.useRef)(e);return s(c.current,e)||(l(e),c.current=e),[a.current,l]},"useDebouncedCallback",0,r])},575043,e=>{"use strict";e.i(462904),e.i(204067),e.s(["toClickhouseTimestamp",0,function(e){return e.toISOString().replace("T"," ").split(".")[0]}])},963,e=>{"use strict";var t,r,n=((t={}).Text="text",t.Image="image",t.Embeddings="embeddings",t.Audio="audio",t.Video="video",t.Rerank="rerank",t.TTS="speech",t.Transcription="transcription",t);let i=new Set(["embeddings","rerank","speech","transcription"]),u=new Set(["embeddings","rerank"]),s=new Set(["text","image"]);function a(e){return 0===e.length||e.some(e=>s.has(e))&&!e.some(e=>i.has(e))}function o(e){return e.includes("video")&&!a(e)}var l=((r={}).Text="text",r.Image="image",r.File="file",r.Audio="audio",r.Video="video",r);e.s(["InputModality",()=>l,"NON_GENERATIVE_OUTPUT_MODALITIES",0,u,"OUTPUT_MODALITY_LABELS",0,{text:"Text",image:"Image",embeddings:"Embeddings",audio:"Audio",video:"Video",rerank:"Rerank",speech:"Speech",transcription:"Transcription"},"OutputModality",()=>n,"USER_FACING_OUTPUT_MODALITIES",0,["text","image","video","speech","transcription","embeddings","rerank","audio"],"isChatroomSelectableModel",0,function(e){return a(e)||o(e)},"isChattableModel",0,a,"isNonChattableVideoModel",0,o,"isTextOnly",0,function(e){return 1===e.length&&e.includes("text")}])},845961,e=>{"use strict";var t=e.i(222666),r=e.i(505962),n=e.i(452473),i=e.i(188363),u=e.i(837556);e.s(["ProviderIcon",0,e=>{let s,a,o,l,c=(0,r.c)(24),{providerName:h,providerIcon:d,className:f,frame:p}=e;if(void 0!==p&&p){let e,r,s,a;return c[0]!==f?(e=(0,n.cn)("size-8",f),c[0]=f,c[1]=e):e=c[1],c[2]!==d.className?(r=(0,n.cn)("size-full",d.className),c[2]=d.className,c[3]=r):r=c[3],c[4]!==d.darkUrl||c[5]!==d.url||c[6]!==h||c[7]!==r?(s=(0,t.jsx)(i.RemoteFavicon,{className:r,faviconFor:h,imgSrc:d.url,imgSrcDark:d.darkUrl,size:256}),c[4]=d.darkUrl,c[5]=d.url,c[6]=h,c[7]=r,c[8]=s):s=c[8],c[9]!==e||c[10]!==s?(a=(0,t.jsx)(u.IconFrame,{className:e,children:s}),c[9]=e,c[10]=s,c[11]=a):a=c[11],a}return c[12]!==f?(s=(0,n.cn)("flex items-center justify-center","rounded-lg p-1","h-8 w-8 shadow-inner","bg-muted/40",f),c[12]=f,c[13]=s):s=c[13],c[14]!==d.className?(a=(0,n.cn)("overflow-hidden rounded-sm",d.className),c[14]=d.className,c[15]=a):a=c[15],c[16]!==d.darkUrl||c[17]!==d.url||c[18]!==h||c[19]!==a?(o=(0,t.jsx)(i.RemoteFavicon,{className:a,faviconFor:h,imgSrc:d.url,imgSrcDark:d.darkUrl,size:256}),c[16]=d.darkUrl,c[17]=d.url,c[18]=h,c[19]=a,c[20]=o):o=c[20],c[21]!==s||c[22]!==o?(l=(0,t.jsx)("div",{className:s,children:o}),c[21]=s,c[22]=o,c[23]=l):l=c[23],l}])},388095,e=>{"use strict";var t=e.i(505962),r=e.i(270401);e.s(["useResettableState",0,function(e,n){let i,u,s=(0,t.c)(5);s[0]!==n||s[1]!==e?(i=()=>n(e),s[0]=n,s[1]=e,s[2]=i):i=s[2];let[a,o]=(0,r.useState)(i),[l,c]=(0,r.useState)(e);return Object.is(l,e)||(c(e),o(n(e))),s[3]!==a?(u=[a,o],s[3]=a,s[4]=u):u=s[4],u}])},638471,e=>{"use strict";var t=e.i(505962),r=e.i(270401);e.s(["useMutationObserver",0,(e,n,i)=>{let u,s,a,o=(0,t.c)(7);o[0]!==i?(u=void 0===i?{attributes:!0,characterData:!0,childList:!0,subtree:!0}:i,o[0]=i,o[1]=u):u=o[1];let l=u;o[2]!==n||o[3]!==l||o[4]!==e?(s=()=>{if(!e.current)return;let t=new MutationObserver(n);return t.observe(e.current,l),()=>t.disconnect()},a=[e,n,l],o[2]=n,o[3]=l,o[4]=e,o[5]=s,o[6]=a):(s=o[5],a=o[6]),(0,r.useEffect)(s,a)}])},463522,e=>{"use strict";e.s(["isValidDate",0,function(e){return!Number.isNaN(e.getTime())},"oneDayMS",0,864e5,"oneHourSeconds",0,3600,"oneMinuteMS",0,6e4,"oneMonthMS",0,2592e6,"oneWeekMS",0,6048e5,"parseClickhouseTimestampUTC",0,function(e){if(!e)return new Date(NaN);let t=e.replace(" ","T");return new Date(/[zZ]$|[+-]\d{2}:\d{2}$/.test(t)?t:`${t}Z`)},"safeParseDate",0,function(e,t){if(!e)return t;if(e instanceof Date)return Number.isNaN(e.getTime())?t:e;if("string"==typeof e||"number"==typeof e){let t=new Date(e);if(!Number.isNaN(t.getTime()))return t}return t},"startOfUTCMonth",0,function(e,t=0){return new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth()+t,1))},"toDateString",0,e=>e.toISOString().split("T")[0]])},958969,e=>{"use strict";e.s(["LatestRouterModel",0,{AnthropicClaudeOpus:"~anthropic/claude-opus-latest",AnthropicClaudeSonnet:"~anthropic/claude-sonnet-latest",AnthropicClaudeHaiku:"~anthropic/claude-haiku-latest",GoogleGeminiPro:"~google/gemini-pro-latest",GoogleGeminiFlash:"~google/gemini-flash-latest",OpenAIGpt:"~openai/gpt-latest",OpenAIGptSol:"~openai/gpt-sol-latest",OpenAIGptMini:"~openai/gpt-mini-latest",MoonshotKimi:"~moonshotai/kimi-latest"},"RouterModel",0,{Auto:"openrouter/auto",AutoBeta:"openrouter/auto-beta",BodyBuilder:"openrouter/bodybuilder",Free:"openrouter/free",ParetoCode:"openrouter/pareto-code",Fusion:"openrouter/fusion",FusionFlash:"openrouter/fusion-flash",Phaser:"openrouter/phaser"}])},651825,e=>{"use strict";var t=e.i(370066),r=e.i(61291);e.s(["formatTokens",0,function(e,r){return(0,t.formatNumber)(r,{locale:e,preset:"provider-tokens"})??"—"},"formatUptimePercent",0,function(e,t){return(0,r.formatPercentPoints)(t,{locale:e,preset:"fixed-2"})??"—"},"formatUptimePercentFloor",0,function(e,t){let n=Number((100*t).toPrecision(12));return(0,r.formatPercentPoints)(Math.floor(n)/100,{locale:e,preset:"native-fixed-2"})??"—"}])},148572,e=>{"use strict";var t=e.i(222666),r=e.i(505962),n=e.i(452473),i=e.i(394333),u=e.i(980351),s=e.i(779100),a=e.i(150049),o=e.i(180711),l=e.i(230953),c=e.i(270401),h=e.i(651825);let d={good:"fill-positive",ok:"fill-warning",bad:"fill-negative",noData:"fill-muted-foreground"},f=[{key:"start",widthClassName:"w-9"},{key:"middle",widthClassName:"w-9"},{key:"yesterday",widthClassName:"w-12"},{key:"now",widthClassName:"w-6"}],p=e=>null===e?d.noData:e>=95?d.good:e>=85?d.ok:d.bad;function g(e){let{key:r,widthClassName:u}=e;return(0,t.jsx)(i.Skeleton,{className:(0,n.cn)("h-3",u),"data-uptime-skeleton":"tick-label"},r)}function m(e,r){return(0,t.jsx)(i.Skeleton,{className:"h-8 flex-1 rounded-none","data-uptime-skeleton":"bar"},`uptime-bar-${r}`)}function x(e,t){return"availability"===t&&"availability"in e?e.availability:e.uptime}function A(e,t){return null===t?"N/A":(0,h.formatUptimePercentFloor)(e,t)}function y(e,t){return new Date(e.getTime()+60*t*6e4)}function C({locale:e,timeZone:t,date:r}){return`${(0,l.formatDate)(r,{locale:e,timeZone:t,preset:"day-month"})??"—"}, ${D({locale:e,timeZone:t,date:r})}`}function D({locale:e,timeZone:t,date:r}){return(0,l.formatTime)(r,{locale:e,timeZone:t,preset:"hour-only"})??"—"}e.s(["UPTIME_COLORS",0,d,"UptimeTimelineBar",0,function(e){var i,h,f;let g,m,v,b,M,E,S,F,k,w,B,N,_,T,I,O,P,$,j,R,L,U=(0,r.c)(88),{points:z,metric:V,className:G,title:q,defaultValue:H}=e,W=void 0===V?"uptime":V,K=(0,s.useLocale)(),Y=(0,a.useResolvedDisplayTimeZone)("local"),[J,Z]=(0,c.useState)(null),[Q,X]=(0,c.useState)(null),ee=(0,u.useHydrated)();if(U[0]!==H||U[1]!==J||U[2]!==W||U[3]!==z){let e=z.at(-1),t=void 0!==H;if(J){let e;U[5]!==J||U[6]!==W?(e=x(J,W),U[5]=J,U[6]=W,U[7]=e):e=U[7],g=e}else g=t?H??null:e?x(e,W):null;U[0]=H,U[1]=J,U[2]=W,U[3]=z,U[4]=g}else g=U[4];let et="Last 72 hours";if(ee){let e;U[8]!==J||U[9]!==K||U[10]!==z||U[11]!==Y?(e=J?function({locale:e,timeZone:t,date:r}){let n=y(r,1),i=(0,o.calendarDateForInstant)(r,{timeZone:t}),u=(0,o.calendarDateForInstant)(n,{timeZone:t}),s=void 0!==i&&i===u?D({locale:e,timeZone:t,date:n}):C({locale:e,timeZone:t,date:n});return`${C({locale:e,timeZone:t,date:r})} - ${s}`}({locale:K,timeZone:Y,date:J.date}):function({locale:e,timeZone:t,points:r}){let n=r[0]?.date,i=r.at(-1)?.date;return n&&i?`${C({locale:e,timeZone:t,date:n})} - ${C({locale:e,timeZone:t,date:y(i,1)})}`:"Last 72 hours"}({locale:K,timeZone:Y,points:z}),U[8]=J,U[9]=K,U[10]=z,U[11]=Y,U[12]=e):e=U[12],et=e}let er=0===z.length?0:100/z.length;if(U[13]!==G?(m=(0,n.cn)(G),U[13]=G,U[14]=m):m=U[14],U[15]!==et||U[16]!==q?(v=q?(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 flex-wrap items-baseline gap-x-2 max-sm:basis-full",children:[(0,t.jsx)("h3",{className:"text-sm font-medium text-foreground",children:q}),(0,t.jsx)("span",{className:"text-xs text-muted-foreground/70",children:et})]}):(0,t.jsx)("span",{className:"min-w-0 flex-1 text-xs text-muted-foreground/70 max-sm:basis-full",children:et}),U[15]=et,U[16]=q,U[17]=v):v=U[17],U[18]!==g?(b=(0,n.cn)("shrink-0 text-right text-sm font-medium tabular-nums",null===(i=g)?"text-muted-foreground":i>=95?"text-positive":i>=85?"text-warning":"text-destructive"),U[18]=g,U[19]=b):b=U[19],U[20]!==g||U[21]!==K||U[22]!==W?(M=function(e,{metric:t,displayValue:r}){return"availability"===t?`Availability ${A(e,r)}`:A(e,r)}(K,{metric:W,displayValue:g}),U[20]=g,U[21]=K,U[22]=W,U[23]=M):M=U[23],U[24]!==b||U[25]!==M?(E=(0,t.jsx)("span",{className:b,children:M}),U[24]=b,U[25]=M,U[26]=E):E=U[26],U[27]!==v||U[28]!==E?(S=(0,t.jsxs)("div",{className:"mb-4 flex flex-wrap items-center justify-between gap-2","data-uptime-timeline-header":"true",children:[v,E]}),U[27]=v,U[28]=E,U[29]=S):S=U[29],U[30]!==W||U[31]!==z.length?(h=W,f=z.length,F=`${"availability"===h?"Availability":"Uptime"} timeline for ${f} ${1===f?"hour":"hours"}`,U[30]=W,U[31]=z.length,U[32]=F):F=U[32],U[33]!==er||U[34]!==ee||U[35]!==K||U[36]!==W||U[37]!==z||U[38]!==Y){let e;U[40]!==er||U[41]!==ee||U[42]!==K||U[43]!==W||U[44]!==Y?(e=(e,r)=>{let i=p(x(e,W)),u=`${r*er}%`,s=`${er-.2}%`,a=()=>{Z(e),X(r)};return(0,t.jsx)("g",{children:(0,t.jsx)("rect",{role:"button",tabIndex:0,"aria-label":function(e,{point:t,metric:r,isHydrated:n,timeZone:i}){let u=n?(0,l.formatDateTime)(t.date,{locale:e,timeZone:i,preset:"numeric-seconds"})??"—":t.date.toISOString();return"availability"===r?`${u}: Availability ${A(e,x(t,r))}`:`${u}: ${A(e,t.uptime)}`}(K,{point:e,metric:W,isHydrated:ee,timeZone:Y}),x:u,y:"0",width:s,height:32,className:(0,n.cn)("transition-all duration-300",i),fillOpacity:i===d.noData?.2:.95,onFocus:a,onBlur:()=>{X(null),Z(null)},onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),a())},onMouseEnter:a,onMouseLeave:()=>{X(null),Z(null)}})},e.date.toISOString())},U[40]=er,U[41]=ee,U[42]=K,U[43]=W,U[44]=Y,U[45]=e):e=U[45],k=z.map(e),U[33]=er,U[34]=ee,U[35]=K,U[36]=W,U[37]=z,U[38]=Y,U[39]=k}else k=U[39];return U[46]!==er||U[47]!==Q||U[48]!==W||U[49]!==z?(w=null!==Q&&z[Q]&&(0,t.jsx)("circle",{cx:`${Q*er+er/2}%`,cy:"-6",r:"2.5",className:(0,n.cn)("animate-in fade-in duration-200",p(x(z[Q],W)))}),U[46]=er,U[47]=Q,U[48]=W,U[49]=z,U[50]=w):w=U[50],U[51]!==w||U[52]!==F||U[53]!==k?(B=(0,t.jsxs)("svg",{width:"100%",height:32,className:"overflow-visible","aria-label":F,role:"img",children:[k,w]}),U[51]=w,U[52]=F,U[53]=k,U[54]=B):B=U[54],U[55]!==ee||U[56]!==K||U[57]!==z[0]?.date||U[58]!==Y?(N=ee?(0,l.formatDate)(z[0]?.date,{locale:K,timeZone:Y,preset:"weekday"})??"3 Days Ago":"3 Days Ago",U[55]=ee,U[56]=K,U[57]=z[0]?.date,U[58]=Y,U[59]=N):N=U[59],U[60]!==N?(_=(0,t.jsx)("span",{children:N}),U[60]=N,U[61]=_):_=U[61],U[62]!==ee||U[63]!==K||U[64]!==z[24]?.date||U[65]!==Y?(T=ee?(0,l.formatDate)(z[24]?.date,{locale:K,timeZone:Y,preset:"weekday"})??"2 Days Ago":"2 Days Ago",U[62]=ee,U[63]=K,U[64]=z[24]?.date,U[65]=Y,U[66]=T):T=U[66],U[67]!==T?(I=(0,t.jsx)("span",{children:T}),U[67]=T,U[68]=I):I=U[68],U[69]!==ee||U[70]!==K||U[71]!==z[48]?.date||U[72]!==Y?(O=ee?(0,l.formatDate)(z[48]?.date,{locale:K,timeZone:Y,preset:"weekday"})??"Yesterday":"Yesterday",U[69]=ee,U[70]=K,U[71]=z[48]?.date,U[72]=Y,U[73]=O):O=U[73],U[74]!==O?(P=(0,t.jsx)("span",{children:O}),U[74]=O,U[75]=P):P=U[75],U[76]===Symbol.for("react.memo_cache_sentinel")?($=(0,t.jsx)("span",{children:"Now"}),U[76]=$):$=U[76],U[77]!==_||U[78]!==I||U[79]!==P?(j=(0,t.jsxs)("div",{className:"absolute -bottom-6 left-0 right-0 flex justify-between text-2xs text-muted-foreground/70",children:[_,I,P,$]}),U[77]=_,U[78]=I,U[79]=P,U[80]=j):j=U[80],U[81]!==B||U[82]!==j?(R=(0,t.jsxs)("div",{className:"relative h-8 mb-6",children:[B,j]}),U[81]=B,U[82]=j,U[83]=R):R=U[83],U[84]!==m||U[85]!==R||U[86]!==S?(L=(0,t.jsxs)("div",{className:m,children:[S,R]}),U[84]=m,U[85]=R,U[86]=S,U[87]=L):L=U[87],L},"UptimeTimelineSkeleton",0,function(e){let u,s,a,o,l,c=(0,r.c)(7),{className:h}=e;return c[0]!==h?(u=(0,n.cn)(h),c[0]=h,c[1]=u):u=c[1],c[2]===Symbol.for("react.memo_cache_sentinel")?(s=(0,t.jsxs)("div",{className:"mb-4 flex items-center justify-between",children:[(0,t.jsx)(i.Skeleton,{className:"h-4 w-40","data-uptime-skeleton":"range-label"}),(0,t.jsx)(i.Skeleton,{className:"h-5 w-12","data-uptime-skeleton":"value"})]}),c[2]=s):s=c[2],c[3]===Symbol.for("react.memo_cache_sentinel")?(a=(0,t.jsx)("div",{className:"flex h-8 gap-px overflow-hidden rounded-sm","aria-hidden":"true",children:Array.from({length:72},m)}),c[3]=a):a=c[3],c[4]===Symbol.for("react.memo_cache_sentinel")?(o=(0,t.jsxs)("div",{className:"relative h-8 mb-6",children:[a,(0,t.jsx)("div",{className:"absolute -bottom-6 left-0 right-0 flex justify-between",children:f.map(g)})]}),c[4]=o):o=c[4],c[5]!==u?(l=(0,t.jsxs)("div",{className:u,role:"status","aria-label":"Loading uptime timeline",children:[s,o]}),c[5]=u,c[6]=l):l=c[6],l},"getUptimeColor",0,p])},974601,e=>{"use strict";var t=e.i(575043),r=e.i(463522),n=e.i(204067),i=e.i(796805);let u=i.z.object({date:i.z.string().regex(/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$/u).refine(e=>{let n=(0,r.parseClickhouseTimestampUTC)(e);return!Number.isNaN(n.getTime())&&(0,t.toClickhouseTimestamp)(n)===e}),uptime:(0,n.zDouble)().min(0).max(100).nullable()}),s=i.z.object({history:i.z.array(u)});e.s(["UptimeHourlyResponseSchema",0,s])},657011,733205,e=>{"use strict";var t=e.i(288027),r=e.i(370066),n=e.i(988855),i=e.i(706527),u=e.i(408784),s=e.i(948810),a=e.i(639241);let o={Newest:"newest",Name:"name",PriceAscending:"price_asc",PriceDescending:"price_desc",ContextAscending:"context_asc",ContextDescending:"context_desc"},l={Date:"date",Provider:"provider",None:"none"},c={Detailed:"detailed",Simple:"simple"},h={sort:o.Newest,groupBy:l.Date,displayMode:c.Simple,inputModalities:[],outputModalities:[],authors:[],showFreeOnly:!1,isPinnedPanelExpanded:!0,filtersExpanded:!1},d=(0,s.create)()((0,a.persist)(e=>({...h,setSort:t=>e({sort:t}),setGroupBy:t=>e({groupBy:t}),setDisplayMode:t=>e({displayMode:t}),setInputModalities:t=>e({inputModalities:t}),setOutputModalities:t=>e({outputModalities:t}),setAuthors:t=>e({authors:t}),setShowFreeOnly:t=>e({showFreeOnly:t}),setPinnedPanelExpanded:t=>e({isPinnedPanelExpanded:t}),setFiltersExpanded:t=>e({filtersExpanded:t}),clearFilters:()=>e({inputModalities:[],outputModalities:[],authors:[],showFreeOnly:!1,filtersExpanded:!1})}),{name:"openrouter:model-select-prefs",version:1,storage:(0,a.createJSONStorage)(()=>localStorage),partialize:e=>({sort:e.sort,groupBy:e.groupBy,displayMode:e.displayMode,isPinnedPanelExpanded:e.isPinnedPanelExpanded})}));e.s(["MODEL_SELECT_PREFS_DEFAULTS",0,h,"ModelSelectDisplay",0,c,"ModelSelectGroupBy",0,l,"ModelSelectSort",0,o,"useModelSelectPrefsStore",0,d],733205);var f=e.i(690387);let p=[{value:o.Newest,label:"Newest first"},{value:o.Name,label:"Name A-Z"},{value:o.ContextAscending,label:"Context low-high"},{value:o.ContextDescending,label:"Context high-low"},{value:o.PriceAscending,label:"Price low-high"},{value:o.PriceDescending,label:"Price high-low"}],g=[{value:l.Date,label:"Date"},{value:l.Provider,label:"Provider"},{value:l.None,label:"None"}],m=[{value:c.Detailed,label:"Detailed"},{value:c.Simple,label:"Simple"}];function x(e){return e.author_display_name??e.author}function A(e){let r=e.endpoint?.pricing.prompt;return void 0===r?1/0:(0,t.bn)(r).toNumber()}function y(e,t,r){switch(r){case o.Newest:return t.toSorted((e,t)=>new Date(t.created_at).getTime()-new Date(e.created_at).getTime());case o.Name:return t.toSorted((t,r)=>(0,n.compareDisplayText)(t.short_name,r.short_name,{locale:e}));case o.PriceAscending:return t.toSorted((e,t)=>A(e)-A(t));case o.PriceDescending:return t.toSorted((e,t)=>A(t)-A(e));case o.ContextAscending:return t.toSorted((e,t)=>e.context_length-t.context_length);case o.ContextDescending:return t.toSorted((e,t)=>t.context_length-e.context_length);default:return t}}function C(e){return e.flatMap(([,e])=>e)}e.s(["DISPLAY_OPTIONS",0,m,"GROUP_BY_OPTIONS",0,g,"GROUP_EXTERNAL_LINKS",0,{"g:models":{href:"/models",aria:"Browse all models"},"g:providers":{href:"/providers",aria:"Browse all providers"}},"SORT_OPTIONS",0,p,"buildAuthorFilterOptions",0,function(e,t){let r=new Map;for(let e of C(t))r.has(e.author)||r.set(e.author,x(e));return Array.from(r.entries()).map(([e,t])=>({key:e,label:t})).toSorted((t,r)=>(0,n.compareDisplayText)(t.label,r.label,{locale:e}))},"buildDisplayGroupEntries",0,function(e,{groupEntries:t,groupBy:r,sort:n}){switch(r){case l.Date:return t.map(([t,r])=>[t,y(e,r,n)]);case l.Provider:return function(e){let t=new Map;for(let r of e){let e=x(r),n=t.get(e);if(n){n.push(r);continue}t.set(e,[r])}return Array.from(t.entries()).toSorted(([e],[t])=>(0,u.compareCanonicalText)(e,t))}(y(e,C(t),n));case l.None:return[["",y(e,C(t),n)]];default:return t}},"buildRows",0,function({flat:e,filtered:t,groupEntries:r,excludeSlugs:n}){if(t&&t.length>0)return t.map(({item:e,score:t})=>({type:"model",key:`m:${(0,i.getModelVariantSlug)(e.model)}`,group:e.group,model:e.model,score:t}));if(t)return[];let u=r.map(([e])=>e),s=new Map;for(let{group:t,model:r}of e)n?.has((0,i.getModelVariantSlug)(r))||(s.has(t)||s.set(t,[]),s.get(t).push(r));let a=[];for(let e of u){let t=s.get(e);if(t&&0!==t.length)for(let r of(e&&a.push({type:"group",key:`g:${e}`,group:e}),t))a.push({type:"model",key:`m:${(0,i.getModelVariantSlug)(r)}`,group:e,model:r})}return a},"formatCompactModelPrice",0,function(e,t){let r=t.endpoint?.display_pricing??[];if((0,f.isModelFree)(t.endpoint,r))return"Free";let n=(0,f.deriveEndpointInlinePricing)(e,t.endpoint,r);return n?.kind==="custom"?n.label:n?.kind==="standard-tokens"?`${n.inputPrice} / ${n.outputPrice}`:"—"},"formatContextLength",0,function(e,t){return(0,r.formatNumber)(t,{locale:e,preset:"model-select-context"})??"—"},"getNextContextSort",0,function(e){return e===o.ContextAscending?o.ContextDescending:e===o.ContextDescending?o.Newest:o.ContextAscending},"getNextPriceSort",0,function(e){return e===o.PriceAscending?o.PriceDescending:e===o.PriceDescending?o.Newest:o.PriceAscending},"getSelectedOptionLabel",0,function(e,t){return e.find(e=>e.value===t)?.label??t},"isModelSelected",0,function({model:e,selectedSlug:t,selectedModelSlugs:r}){let n=(0,i.getModelVariantSlug)(e);return t===n||!!r&&(r.includes(n)||r.includes((0,i.getModelVariantPermaslug)(e)))},"mergeExtraModelsIntoGroupEntries",0,function({groupEntries:e,extraModels:t,groupName:r="Local"}){if(!t||0===t.length)return e;let n=new Set(t.map(i.getModelVariantSlug));return[[r,t],...e.map(([e,t])=>[e,t.filter(e=>!n.has((0,i.getModelVariantSlug)(e)))]).filter(([,e])=>e.length>0)]}],657011)},408784,e=>{"use strict";var t=e.i(988855),r=e.i(704355);e.s(["compareCanonicalText",0,function(e,n){return(0,t.compareDisplayText)(e,n,{locale:r.DEFAULT_LOCALE})}])},175817,e=>{"use strict";e.s(["getTotalTokens",0,e=>e?e.total_prompt_tokens+(e.total_completion_tokens??0):0])}]); //# sourceMappingURL=321-zo46re4ya.js.map //# chunkId=01a0a0e4-ef49-7221-92e6-e70fbf37563a