mirror of
https://github.com/mikefarah/yq.git
synced 2024-11-13 22:38:04 +00:00
66c8390d54
Resolves: #35
1 line
14 KiB
JavaScript
1 line
14 KiB
JavaScript
!function(r,i){"function"==typeof define&&define.amd?define(i):"object"==typeof exports?module.exports=i():i()(r.lunr)}(this,function(){return function(r){if(void 0===r)throw new Error("Lunr is not present. Please include / require Lunr before this script.");if(void 0===r.stemmerSupport)throw new Error("Lunr stemmer support is not present. Please include / require Lunr stemmer support before this script.");r.tr=function(){this.pipeline.reset(),this.pipeline.add(r.tr.trimmer,r.tr.stopWordFilter,r.tr.stemmer),this.searchPipeline&&(this.searchPipeline.reset(),this.searchPipeline.add(r.tr.stemmer))},r.tr.wordCharacters="A-Za-zªºÀ-ÖØ-öø-ʸˠ-ˤᴀ-ᴥᴬ-ᵜᵢ-ᵥᵫ-ᵷᵹ-ᶾḀ-ỿⁱⁿₐ-ₜKÅℲⅎⅠ-ↈⱠ-ⱿꜢ-ꞇꞋ-ꞭꞰ-ꞷꟷ-ꟿꬰ-ꭚꭜ-ꭤff-stA-Za-z",r.tr.trimmer=r.trimmerSupport.generateTrimmer(r.tr.wordCharacters),r.Pipeline.registerFunction(r.tr.trimmer,"trimmer-tr"),r.tr.stemmer=function(){var i=r.stemmerSupport.Among,e=r.stemmerSupport.SnowballProgram,n=new function(){function r(r,i,e){for(;;){var n=jr.limit-jr.cursor;if(jr.in_grouping_b(r,i,e)){jr.cursor=jr.limit-n;break}if(jr.cursor=jr.limit-n,jr.cursor<=jr.limit_backward)return!1;jr.cursor--}return!0}function n(){var i,e;i=jr.limit-jr.cursor,r(Wr,97,305);for(var n=0;n<Er.length;n++){e=jr.limit-jr.cursor;var t=Er[n];if(jr.eq_s_b(1,t[0])&&r(t[1],t[2],t[3]))return jr.cursor=jr.limit-i,!0;jr.cursor=jr.limit-e}return jr.cursor=jr.limit-e,!(!jr.eq_s_b(1,"ü")||!r(Ar,246,252))&&(jr.cursor=jr.limit-i,!0)}function t(r,i){var e,n=jr.limit-jr.cursor;return r()&&(jr.cursor=jr.limit-n,jr.cursor>jr.limit_backward&&(jr.cursor--,e=jr.limit-jr.cursor,i()))?(jr.cursor=jr.limit-e,!0):(jr.cursor=jr.limit-n,r()?(jr.cursor=jr.limit-n,!1):(jr.cursor=jr.limit-n,!(jr.cursor<=jr.limit_backward)&&(jr.cursor--,!!i()&&(jr.cursor=jr.limit-n,!0))))}function u(r){return t(r,function(){return jr.in_grouping_b(Wr,97,305)})}function o(){return u(function(){return jr.eq_s_b(1,"n")})}function s(){return u(function(){return jr.eq_s_b(1,"s")})}function c(){return u(function(){return jr.eq_s_b(1,"y")})}function l(){return t(function(){return jr.in_grouping_b(Lr,105,305)},function(){return jr.out_grouping_b(Wr,97,305)})}function a(){return jr.find_among_b(ur,10)&&l()}function m(){return n()&&jr.in_grouping_b(Lr,105,305)&&s()}function d(){return jr.find_among_b(or,2)}function f(){return n()&&jr.in_grouping_b(Lr,105,305)&&c()}function b(){return n()&&jr.find_among_b(sr,4)}function w(){return n()&&jr.find_among_b(cr,4)&&o()}function _(){return n()&&jr.find_among_b(lr,2)&&c()}function k(){return n()&&jr.find_among_b(ar,2)}function p(){return n()&&jr.find_among_b(mr,4)}function g(){return n()&&jr.find_among_b(dr,2)}function y(){return n()&&jr.find_among_b(fr,4)}function z(){return n()&&jr.find_among_b(br,2)}function v(){return n()&&jr.find_among_b(wr,2)&&c()}function h(){return jr.eq_s_b(2,"ki")}function q(){return n()&&jr.find_among_b(_r,2)&&o()}function C(){return n()&&jr.find_among_b(kr,4)&&c()}function P(){return n()&&jr.find_among_b(pr,4)}function F(){return n()&&jr.find_among_b(gr,4)&&c()}function S(){return jr.find_among_b(yr,4)}function W(){return n()&&jr.find_among_b(zr,2)}function L(){return n()&&jr.find_among_b(vr,4)}function x(){return n()&&jr.find_among_b(hr,8)}function A(){return jr.find_among_b(qr,2)}function E(){return n()&&jr.find_among_b(Cr,32)&&c()}function j(){return jr.find_among_b(Pr,8)&&c()}function T(){return n()&&jr.find_among_b(Fr,4)&&c()}function Z(){return jr.eq_s_b(3,"ken")&&c()}function B(){var r=jr.limit-jr.cursor;return!(T()||(jr.cursor=jr.limit-r,E()||(jr.cursor=jr.limit-r,j()||(jr.cursor=jr.limit-r,Z()))))}function D(){if(A()){var r=jr.limit-jr.cursor;if(S()||(jr.cursor=jr.limit-r,W()||(jr.cursor=jr.limit-r,C()||(jr.cursor=jr.limit-r,P()||(jr.cursor=jr.limit-r,F()||(jr.cursor=jr.limit-r))))),T())return!1}return!0}function G(){if(W()){jr.bra=jr.cursor,jr.slice_del();var r=jr.limit-jr.cursor;return jr.ket=jr.cursor,x()||(jr.cursor=jr.limit-r,E()||(jr.cursor=jr.limit-r,j()||(jr.cursor=jr.limit-r,T()||(jr.cursor=jr.limit-r)))),nr=!1,!1}return!0}function H(){if(!L())return!0;var r=jr.limit-jr.cursor;return!E()&&(jr.cursor=jr.limit-r,!j())}function I(){var r,i=jr.limit-jr.cursor;return!(S()||(jr.cursor=jr.limit-i,F()||(jr.cursor=jr.limit-i,P()||(jr.cursor=jr.limit-i,C()))))||(jr.bra=jr.cursor,jr.slice_del(),r=jr.limit-jr.cursor,jr.ket=jr.cursor,T()||(jr.cursor=jr.limit-r),!1)}function J(){var r,i=jr.limit-jr.cursor;if(jr.ket=jr.cursor,nr=!0,B()&&(jr.cursor=jr.limit-i,D()&&(jr.cursor=jr.limit-i,G()&&(jr.cursor=jr.limit-i,H()&&(jr.cursor=jr.limit-i,I()))))){if(jr.cursor=jr.limit-i,!x())return;jr.bra=jr.cursor,jr.slice_del(),jr.ket=jr.cursor,r=jr.limit-jr.cursor,S()||(jr.cursor=jr.limit-r,W()||(jr.cursor=jr.limit-r,C()||(jr.cursor=jr.limit-r,P()||(jr.cursor=jr.limit-r,F()||(jr.cursor=jr.limit-r))))),T()||(jr.cursor=jr.limit-r)}jr.bra=jr.cursor,jr.slice_del()}function K(){var r,i,e,n;if(jr.ket=jr.cursor,h()){if(r=jr.limit-jr.cursor,p())return jr.bra=jr.cursor,jr.slice_del(),i=jr.limit-jr.cursor,jr.ket=jr.cursor,W()?(jr.bra=jr.cursor,jr.slice_del(),K()):(jr.cursor=jr.limit-i,a()&&(jr.bra=jr.cursor,jr.slice_del(),jr.ket=jr.cursor,W()&&(jr.bra=jr.cursor,jr.slice_del(),K()))),!0;if(jr.cursor=jr.limit-r,w()){if(jr.bra=jr.cursor,jr.slice_del(),jr.ket=jr.cursor,e=jr.limit-jr.cursor,d())jr.bra=jr.cursor,jr.slice_del();else{if(jr.cursor=jr.limit-e,jr.ket=jr.cursor,!a()&&(jr.cursor=jr.limit-e,!m()&&(jr.cursor=jr.limit-e,!K())))return!0;jr.bra=jr.cursor,jr.slice_del(),jr.ket=jr.cursor,W()&&(jr.bra=jr.cursor,jr.slice_del(),K())}return!0}if(jr.cursor=jr.limit-r,g()){if(n=jr.limit-jr.cursor,d())jr.bra=jr.cursor,jr.slice_del();else if(jr.cursor=jr.limit-n,m())jr.bra=jr.cursor,jr.slice_del(),jr.ket=jr.cursor,W()&&(jr.bra=jr.cursor,jr.slice_del(),K());else if(jr.cursor=jr.limit-n,!K())return!1;return!0}}return!1}function M(r){if(jr.ket=jr.cursor,!g()&&(jr.cursor=jr.limit-r,!k()))return!1;var i=jr.limit-jr.cursor;if(d())jr.bra=jr.cursor,jr.slice_del();else if(jr.cursor=jr.limit-i,m())jr.bra=jr.cursor,jr.slice_del(),jr.ket=jr.cursor,W()&&(jr.bra=jr.cursor,jr.slice_del(),K());else if(jr.cursor=jr.limit-i,!K())return!1;return!0}function N(r){if(jr.ket=jr.cursor,!z()&&(jr.cursor=jr.limit-r,!b()))return!1;var i=jr.limit-jr.cursor;return!(!m()&&(jr.cursor=jr.limit-i,!d()))&&(jr.bra=jr.cursor,jr.slice_del(),jr.ket=jr.cursor,W()&&(jr.bra=jr.cursor,jr.slice_del(),K()),!0)}function O(){var r,i=jr.limit-jr.cursor;return jr.ket=jr.cursor,!(!w()&&(jr.cursor=jr.limit-i,!v()))&&(jr.bra=jr.cursor,jr.slice_del(),r=jr.limit-jr.cursor,jr.ket=jr.cursor,!(!W()||(jr.bra=jr.cursor,jr.slice_del(),!K()))||(jr.cursor=jr.limit-r,jr.ket=jr.cursor,!(a()||(jr.cursor=jr.limit-r,m()||(jr.cursor=jr.limit-r,K())))||(jr.bra=jr.cursor,jr.slice_del(),jr.ket=jr.cursor,W()&&(jr.bra=jr.cursor,jr.slice_del(),K()),!0)))}function Q(){var r,i,e=jr.limit-jr.cursor;if(jr.ket=jr.cursor,!p()&&(jr.cursor=jr.limit-e,!f()&&(jr.cursor=jr.limit-e,!_())))return!1;if(jr.bra=jr.cursor,jr.slice_del(),jr.ket=jr.cursor,r=jr.limit-jr.cursor,a())jr.bra=jr.cursor,jr.slice_del(),i=jr.limit-jr.cursor,jr.ket=jr.cursor,W()||(jr.cursor=jr.limit-i);else if(jr.cursor=jr.limit-r,!W())return!0;return jr.bra=jr.cursor,jr.slice_del(),jr.ket=jr.cursor,K(),!0}function R(){var r,i,e=jr.limit-jr.cursor;if(jr.ket=jr.cursor,W())return jr.bra=jr.cursor,jr.slice_del(),void K();if(jr.cursor=jr.limit-e,jr.ket=jr.cursor,q())if(jr.bra=jr.cursor,jr.slice_del(),r=jr.limit-jr.cursor,jr.ket=jr.cursor,d())jr.bra=jr.cursor,jr.slice_del();else{if(jr.cursor=jr.limit-r,jr.ket=jr.cursor,!a()&&(jr.cursor=jr.limit-r,!m())){if(jr.cursor=jr.limit-r,jr.ket=jr.cursor,!W())return;if(jr.bra=jr.cursor,jr.slice_del(),!K())return}jr.bra=jr.cursor,jr.slice_del(),jr.ket=jr.cursor,W()&&(jr.bra=jr.cursor,jr.slice_del(),K())}else if(jr.cursor=jr.limit-e,!M(e)&&(jr.cursor=jr.limit-e,!N(e))){if(jr.cursor=jr.limit-e,jr.ket=jr.cursor,y())return jr.bra=jr.cursor,jr.slice_del(),jr.ket=jr.cursor,i=jr.limit-jr.cursor,void(a()?(jr.bra=jr.cursor,jr.slice_del(),jr.ket=jr.cursor,W()&&(jr.bra=jr.cursor,jr.slice_del(),K())):(jr.cursor=jr.limit-i,W()?(jr.bra=jr.cursor,jr.slice_del(),K()):(jr.cursor=jr.limit-i,K())));if(jr.cursor=jr.limit-e,!O()){if(jr.cursor=jr.limit-e,d())return jr.bra=jr.cursor,void jr.slice_del();jr.cursor=jr.limit-e,K()||(jr.cursor=jr.limit-e,Q()||(jr.cursor=jr.limit-e,jr.ket=jr.cursor,(a()||(jr.cursor=jr.limit-e,m()))&&(jr.bra=jr.cursor,jr.slice_del(),jr.ket=jr.cursor,W()&&(jr.bra=jr.cursor,jr.slice_del(),K()))))}}}function U(){var r;if(jr.ket=jr.cursor,r=jr.find_among_b(Sr,4))switch(jr.bra=jr.cursor,r){case 1:jr.slice_from("p");break;case 2:jr.slice_from("ç");break;case 3:jr.slice_from("t");break;case 4:jr.slice_from("k")}}function V(){for(;;){var r=jr.limit-jr.cursor;if(jr.in_grouping_b(Wr,97,305)){jr.cursor=jr.limit-r;break}if(jr.cursor=jr.limit-r,jr.cursor<=jr.limit_backward)return!1;jr.cursor--}return!0}function X(r,i,e){if(jr.cursor=jr.limit-r,V()){var n=jr.limit-jr.cursor;if(!jr.eq_s_b(1,i)&&(jr.cursor=jr.limit-n,!jr.eq_s_b(1,e)))return!0;jr.cursor=jr.limit-r;var t=jr.cursor;return jr.insert(jr.cursor,jr.cursor,e),jr.cursor=t,!1}return!0}function Y(){var r=jr.limit-jr.cursor;(jr.eq_s_b(1,"d")||(jr.cursor=jr.limit-r,jr.eq_s_b(1,"g")))&&X(r,"a","ı")&&X(r,"e","i")&&X(r,"o","u")&&X(r,"ö","ü")}function $(){for(var r,i=jr.cursor,e=2;;){for(r=jr.cursor;!jr.in_grouping(Wr,97,305);){if(jr.cursor>=jr.limit)return jr.cursor=r,!(e>0)&&(jr.cursor=i,!0);jr.cursor++}e--}}function rr(r,i,e){for(;!jr.eq_s(i,e);){if(jr.cursor>=jr.limit)return!0;jr.cursor++}return(tr=i)!=jr.limit||(jr.cursor=r,!1)}function ir(){var r=jr.cursor;return!rr(r,2,"ad")||(jr.cursor=r,!rr(r,5,"soyad"))}function er(){var r=jr.cursor;return!ir()&&(jr.limit_backward=r,jr.cursor=jr.limit,Y(),jr.cursor=jr.limit,U(),!0)}var nr,tr,ur=[new i("m",-1,-1),new i("n",-1,-1),new i("miz",-1,-1),new i("niz",-1,-1),new i("muz",-1,-1),new i("nuz",-1,-1),new i("müz",-1,-1),new i("nüz",-1,-1),new i("mız",-1,-1),new i("nız",-1,-1)],or=[new i("leri",-1,-1),new i("ları",-1,-1)],sr=[new i("ni",-1,-1),new i("nu",-1,-1),new i("nü",-1,-1),new i("nı",-1,-1)],cr=[new i("in",-1,-1),new i("un",-1,-1),new i("ün",-1,-1),new i("ın",-1,-1)],lr=[new i("a",-1,-1),new i("e",-1,-1)],ar=[new i("na",-1,-1),new i("ne",-1,-1)],mr=[new i("da",-1,-1),new i("ta",-1,-1),new i("de",-1,-1),new i("te",-1,-1)],dr=[new i("nda",-1,-1),new i("nde",-1,-1)],fr=[new i("dan",-1,-1),new i("tan",-1,-1),new i("den",-1,-1),new i("ten",-1,-1)],br=[new i("ndan",-1,-1),new i("nden",-1,-1)],wr=[new i("la",-1,-1),new i("le",-1,-1)],_r=[new i("ca",-1,-1),new i("ce",-1,-1)],kr=[new i("im",-1,-1),new i("um",-1,-1),new i("üm",-1,-1),new i("ım",-1,-1)],pr=[new i("sin",-1,-1),new i("sun",-1,-1),new i("sün",-1,-1),new i("sın",-1,-1)],gr=[new i("iz",-1,-1),new i("uz",-1,-1),new i("üz",-1,-1),new i("ız",-1,-1)],yr=[new i("siniz",-1,-1),new i("sunuz",-1,-1),new i("sünüz",-1,-1),new i("sınız",-1,-1)],zr=[new i("lar",-1,-1),new i("ler",-1,-1)],vr=[new i("niz",-1,-1),new i("nuz",-1,-1),new i("nüz",-1,-1),new i("nız",-1,-1)],hr=[new i("dir",-1,-1),new i("tir",-1,-1),new i("dur",-1,-1),new i("tur",-1,-1),new i("dür",-1,-1),new i("tür",-1,-1),new i("dır",-1,-1),new i("tır",-1,-1)],qr=[new i("casına",-1,-1),new i("cesine",-1,-1)],Cr=[new i("di",-1,-1),new i("ti",-1,-1),new i("dik",-1,-1),new i("tik",-1,-1),new i("duk",-1,-1),new i("tuk",-1,-1),new i("dük",-1,-1),new i("tük",-1,-1),new i("dık",-1,-1),new i("tık",-1,-1),new i("dim",-1,-1),new i("tim",-1,-1),new i("dum",-1,-1),new i("tum",-1,-1),new i("düm",-1,-1),new i("tüm",-1,-1),new i("dım",-1,-1),new i("tım",-1,-1),new i("din",-1,-1),new i("tin",-1,-1),new i("dun",-1,-1),new i("tun",-1,-1),new i("dün",-1,-1),new i("tün",-1,-1),new i("dın",-1,-1),new i("tın",-1,-1),new i("du",-1,-1),new i("tu",-1,-1),new i("dü",-1,-1),new i("tü",-1,-1),new i("dı",-1,-1),new i("tı",-1,-1)],Pr=[new i("sa",-1,-1),new i("se",-1,-1),new i("sak",-1,-1),new i("sek",-1,-1),new i("sam",-1,-1),new i("sem",-1,-1),new i("san",-1,-1),new i("sen",-1,-1)],Fr=[new i("miş",-1,-1),new i("muş",-1,-1),new i("müş",-1,-1),new i("mış",-1,-1)],Sr=[new i("b",-1,1),new i("c",-1,2),new i("d",-1,3),new i("ğ",-1,4)],Wr=[17,65,16,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,32,8,0,0,0,0,0,0,1],Lr=[1,16,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8,0,0,0,0,0,0,1],xr=[65],Ar=[65],Er=[["a",[1,64,16,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1],97,305],["e",[17,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,130],101,252],["ı",[1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1],97,305],["i",[17],101,105],["o",xr,111,117],["ö",Ar,246,252],["u",xr,111,117]],jr=new e;this.setCurrent=function(r){jr.setCurrent(r)},this.getCurrent=function(){return jr.getCurrent()},this.stem=function(){return!!($()&&(jr.limit_backward=jr.cursor,jr.cursor=jr.limit,J(),jr.cursor=jr.limit,nr&&(R(),jr.cursor=jr.limit_backward,er())))}};return function(r){return"function"==typeof r.update?r.update(function(r){return n.setCurrent(r),n.stem(),n.getCurrent()}):(n.setCurrent(r),n.stem(),n.getCurrent())}}(),r.Pipeline.registerFunction(r.tr.stemmer,"stemmer-tr"),r.tr.stopWordFilter=r.generateStopWordFilter("acaba altmış altı ama ancak arada aslında ayrıca bana bazı belki ben benden beni benim beri beş bile bin bir biri birkaç birkez birçok birşey birşeyi biz bizden bize bizi bizim bu buna bunda bundan bunlar bunları bunların bunu bunun burada böyle böylece da daha dahi de defa değil diye diğer doksan dokuz dolayı dolayısıyla dört edecek eden ederek edilecek ediliyor edilmesi ediyor elli en etmesi etti ettiği ettiğini eğer gibi göre halen hangi hatta hem henüz hep hepsi her herhangi herkesin hiç hiçbir iki ile ilgili ise itibaren itibariyle için işte kadar karşın katrilyon kendi kendilerine kendini kendisi kendisine kendisini kez ki kim kimden kime kimi kimse kırk milyar milyon mu mü mı nasıl ne neden nedenle nerde nerede nereye niye niçin o olan olarak oldu olduklarını olduğu olduğunu olmadı olmadığı olmak olması olmayan olmaz olsa olsun olup olur olursa oluyor on ona ondan onlar onlardan onları onların onu onun otuz oysa pek rağmen sadece sanki sekiz seksen sen senden seni senin siz sizden sizi sizin tarafından trilyon tüm var vardı ve veya ya yani yapacak yapmak yaptı yaptıkları yaptığı yaptığını yapılan yapılması yapıyor yedi yerine yetmiş yine yirmi yoksa yüz zaten çok çünkü öyle üzere üç şey şeyden şeyi şeyler şu şuna şunda şundan şunları şunu şöyle".split(" ")),r.Pipeline.registerFunction(r.tr.stopWordFilter,"stopWordFilter-tr")}}); |